test-getpeername: fix typo
[gnulib.git] / ChangeLog
1 2013-01-26  Eric Blake  <eblake@redhat.com>
2
3         test-getpeername: fix typo
4         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
5
6 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
7
8         bootstrap: remove the need for a sorted .gitignore file
9         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
10         rename to insert_if_absent(), so that we don't need or generate
11         a sorted .gitignore file.  We do require a .gitignore with no
12         existing duplicate entries and enforce that.
13         (sort_patterns): Remove this function as we now use the simpler
14         technigue of inserting blacklist entries at the top of the file,
15         assuming gnulib won't be inserting !whitelist entries.
16
17 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18
19         readlinkat: don't depend on gl_FUNC_OPENAT
20         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
21         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
22         renameat.m4, symlinkat.m4; but one thing at a time.
23
24         statat: new module, split out from fstatat
25         GNU Emacs needs the POSIX-specified fstatat, but not the
26         gnulib-specified statat and lstat.  Split the latter two into a
27         new module 'statat'.
28         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
29         * lib/openat.h, lib/statat.c (STATAT_INLINE):
30         Rename from FSTATAT_INLINE. All uses changed.
31         * modules/fstatat (Files): Remove lib/statat.c.
32         (gl_MODULE_INDICATOR([fstatat])): Remove.
33         (lib_SOURCES): Remove.
34         (Maintainer): Add self.
35         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36         * tests/test-fstatat.c (BASE): Don't define if already defined.
37         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
38
39 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40
41         tests: don't assume fd 99 is closed
42         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
43         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
44         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
45         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
46         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
47         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
48         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
49         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
50         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
51         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
52         * tests/test-fwrite.c, tests/test-getpeername.c:
53         * tests/test-getsockname.c, tests/test-getsockopt.c:
54         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
55         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
56         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
57         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
58         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
59         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
60         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
61         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
62         * tests/test-unlinkat.c, tests/test-unlockpt.c:
63         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
64         Close file descriptor 99, instead of assuming it's already closed.
65
66 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67
68         stpncpy: port to OS X 10.8
69         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
70         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
71
72 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73
74         unistd: port to recent mingw
75         * lib/unistd.in.h: Remove special invocation convention for mingw,
76         which breaks for the latest mingw version.  See John W. Eaton in
77         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
78
79         largefile: port better to Mac OS X 10.5
80         This patch is backported from Autoconf git.
81         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
82         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
83         with ino_t size being different for configuration time versus
84         build/run time.  Problem reported by PHO in
85         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
86
87 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
88
89         doc: clarify -Werror
90         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
91         clarify that it's intended for developers, not for ordinary builds,
92         and mention --enable-gcc-warnings as one possible use.
93
94 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
95
96         stdint: fix build with Android's Bionic fox x86
97         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
98         was already included as _SSIZE_T_DEFINED_ might also be defined
99         in include/machine/_types.h, which is included by stdio.h
100
101 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
102
103         net_if-tests: port to Solaris 7 + GCC 3.4.6
104         Problem reported by Tom G. Christensen in
105         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
106         * tests/test-net_if.c (ni): Move to next the code that uses it,
107         so that it's declared only if needed.
108
109 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110
111         net_if-tests: port to older Solaris
112         Problem reported by Tom G. Christensen in
113         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
114         * modules/net_if-tests (NET_IF_LIB): New substitution.
115         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
116         (HAVE_IF_NAMEINDEX): New C macro.
117         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
118
119         system-quote-tests: port to older Solaris
120         Problem reported by Tom G. Christensen in
121         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
122         * tests/test-system-quote-child.c (fopen, fread): Undef.
123
124         c-xvasprintf etc.: fix link errors on older Solaris
125         These need to link with @LIBINTL@ to get libintl_gettext.
126         Problem reported by Tom G. Christensen in
127         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
128         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
129         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
130         * modules/futimens-tests (test_futimens_LDADD):
131         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
132
133 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
134
135         locale: port to Solaris 2.6 and 7 + GNU gettext
136         * lib/locale.in.h: Just include_next <locale.h> when
137         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
138         when combining the localename module with GNU gettext 0.18.2.
139         Problem reported by Tom G. Christensen in
140         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
141
142 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
143
144         stdlib: port to Solaris 2.6
145         Also, the code worked on Solaris 7 through 9 only by accident.
146         Problem reported by Tom G. Christensen in
147         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
148         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
149         simply include the system stdlib.h.
150         * lib/getopt.in.h (__need_system_stdlib_h):
151         * lib/pthread.in.h (__need_system_stdlib_h):
152         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
153         Define when including <stdlib.h>, to avoid problems at least for
154         the pthread case on Solaris 2.6 and 7.  These .h files can get by
155         with the system stdlib.h.
156
157 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
158
159         doc: update main copyright year
160         * doc/gnulib.texi: Update copyright date.
161
162         doc: improve ISO 8601 discussion
163         * doc/parse-datetime.texi (Combined date and time of day items):
164         Specify more carefully what formats are supported and what is
165         done with excess precision.
166
167 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
168
169         doc: avoid small caps
170         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
171         they're more trouble than they're worth.  Suggested by Karl Berry
172         in <http://bugs.gnu.org/13360>.
173
174         regex: conform to strict C
175         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
176         From Aharon Robbins.
177
178         gnulib-tool: fix incompatibility with autopoint 0.18.2
179         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
180         Problem reported by Tom G. Christensen in
181         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
182
183 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
184
185         fprintftime: bring back and reword fwrite comment
186         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
187
188         stdio: remove now-unnecessary stdio.c
189         Since stdio.in.h no longer uses inline functions, we no longer
190         need to compile the extern versions.
191         * lib/stdio.c: Remove.
192         * modules/stdio (Files): Remove lib/stdio.c.
193         (lib_SOURCES): Remove.
194
195         unicodeio: depend on stdio, not ignore-value
196         * lib/unicodeio.c: Do not include ignore-value.h.
197         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
198         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
199
200         fprintftime: depend on stdio, not ignore-value
201         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
202         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
203         since the stdio module arranges to silence that warning now.
204         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
205
206 2012-10-04  Simon Josefsson  <simon@josefsson.org>
207
208         stdint-tests: Fix expanded-before-required-warning.
209         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
210
211 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
212
213         fwrite: silence __wur only for older glibc versions
214         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
215         This will help us remove this workaround some time in the far future.
216
217 2013-01-03  Eric Blake  <eblake@redhat.com>
218
219         fwrite: silence __wur without using inline
220         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
221         just gcc, and in a way that avoids inline issues.
222         * modules/stdio (Depends-on): Drop extern-inline.
223
224 2013-01-03  Jim Meyering  <jim@meyering.net>
225
226         update-copyright: avoid copyright notice date corruption
227         Given a sequence of copyright year numbers in which the final
228         one was a two-digit number that happened to be a substring of
229         a preceding four-digit year number, we would mistakenly update
230         the substring (from two- to four-digit) rather than the two-digit
231         number at the end, which, combined with the addition of the current
232         4-digit year number would yield two 5-digit year numbers, e.g.,
233         here, it would convert the first "99" to "1999, 2013" rather than
234         the final one:
235           1991, 99
236           11999, 20131, 1999
237         * build-aux/update-copyright: Tighten a regexp.
238         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
239         Reported by Joseph Myers in
240         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
241
242 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
243
244         regex: omit needless signed-pointer casts
245         * lib/regcomp.c (build_charclass, build_charclass_op):
246         Use char *, not unsigned char *, for class name and extra.
247         The char values are always nonnegative so there's no need to
248         insist on unsigned char * here, and using char * removes the need
249         for casts.  Reported by Aharon Robbins in
250         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
251
252         regex: support Gawk, which never uses alloca
253         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
254         Do not include in this case.  Gawk doesn't supply a substitute
255         alloca.h and doesn't need one.
256
257         regex: port __libc_lock_define usage to C89
258         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
259         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
260         does not conform to C89, as it has an empty macro argument.
261         Reported by Aharon Robbins in
262         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
263
264 2013-01-01  Eric Blake  <eblake@redhat.com>
265
266         maint: update all copyright year number ranges
267         Run "make update-copyright".
268
269         version-etc: bump copyright year reported in --version
270         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
271
272 2012-12-31  Eric Blake  <eblake@redhat.com>
273
274         sigprocmask-tests: skip test if pid is unexpectedly large
275         * tests/test-sigprocmask.c (main): Add range check.
276
277         git-version-gen: avoid test -z portability glitch
278         * build-aux/git-version-gen: Prefer portable test spelling, since
279         git-version-gen is run on more than just developer machines.
280
281 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
282
283         git-version-gen: add --fallback option to use if git is not present
284         * build-aux/git-version-gen: Add support for the new option --fallback,
285         which comes into play when there is no $tarball_version_file and
286         git is not working.
287         (scriptversion): Update.
288
289         maint.mk: handle missing git with more grace
290         * top/maint.mk (no-submodule-changes, public-submodule-commit):
291         Quietly proceed if git is not present.
292
293 2012-12-31  Eric Blake  <eblake@redhat.com>
294
295         dup2: work around cygwin bug
296         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
297         * lib/dup2.c (rpl_dup2): Work around it.
298         * doc/posix-functions/dup2.texi (dup2): Document it.
299
300 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
301
302         regex: remove unnecessary dependency on localcharset.h
303         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
304         hasn't been needed for years.
305         * modules/regex (Depends-on): Remove localcharset.
306
307         regex: revert single-byte change
308         * lib/regexec.c (check_node_accept_bytes): Revert previous change
309         to this function.  This was alredy fixed in a different way, at
310         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
311         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
312         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
313
314         regex: simplify based on Gawk version
315         * lib/regex_internal.c (re_dfa_add_node): Simplify.
316         Reported by Aharon Robbins in
317         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
318
319 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
320
321         regex: check that pattern char is single-byte
322         Reported by Aharon Robbins in
323         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
324         * lib/regexec.c (check_node_accept_bytes):
325         Return 0 if the pattern string has a multibyte character here.
326
327         regex: implement rational ranges
328         Reported by Aharon Robbins in
329         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
330         * lib/regcomp.c (build_range_exp) [!_LIBC]:
331         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
332         Implement rational ranges.
333
334         regex: avoid redefining __wctype
335         Reported by Aharon Robbins in
336         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
337         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
338         #undef before defining.
339
340         regex: port to hosts where malloc (0) == NULL
341         Reported by Aharon Robbins in
342         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
343         * lib/regex_internal.c (re_node_set_alloc):
344         Don't assume that malloc (0) yields nonnull.
345         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
346         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
347         * modules/regex (Files): Add m4/eealloc.m4.
348
349         regex: port to C89
350         Reported by Aharon Robbins in
351         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
352         * lib/regcomp.c (init_word_char): Declaration before statement.
353
354         regex: merge glibc changes
355         Also, copy the license wording from glibc.  This simplifies
356         merging changes.  gnulib-tool will change the wording to GPL as
357         appropriate, when importing it to other packages.  The only
358         glibc change made since the last merge, which needs merging, is:
359         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
360         * lib/regex_internal.h (gettext): Remove use of INTUSE.
361
362         * users.txt: Add Emacs.
363
364         doc: omit mention of version when not needed
365         * doc/gnulib-intro.texi (Portability and Application Code):
366         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
367         Don't mention particular dates or versions when not necessary, so
368         that the documentation won't go out of date so quickly.
369
370         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
371
372 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
373
374         bootstrap: pass --force to autoreconf.
375         * build-aux/bootstrap (AUTORECONFFLAGS): New.
376         Add "--force" so that Automake's ylwrap and other such tools
377         be updated at each bootstrap invocation.
378         Use it.
379
380 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
381
382         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
383         The earlier patch forgot to update one of the #if conditions, causing
384         a problem on Debian testing i386 reported by Mats Erik Andersson
385         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
386         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
387         (__argp_fmtstream_puts, argp_fmtstream_puts)
388         (__argp_fmtstream_write, argp_fmtstream_write)
389         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
390
391         * doc/gnulib-readme.texi: Minor fixups.
392         (Portability guidelines): Modernize URLs.  Remove some repetition.
393         (Indent with spaces not TABs): Reword to avoid too-long lines.
394         Remove some '@ifset standalone' stuff that isn't used.
395
396         * doc/gnulib-readme.texi (Portability guidelines):
397         ctype.h, not ctime.h.
398
399         Correct name of POSIX.1-2001.
400         * doc/posix-functions/fgetc.texi (fgetc):
401         * doc/posix-functions/fgets.texi (fgets):
402         * doc/posix-functions/fread.texi (fread):
403         * doc/posix-functions/fscanf.texi (fscanf):
404         * doc/posix-functions/getc.texi (getc):
405         * doc/posix-functions/getchar.texi (getchar):
406         * doc/posix-functions/scanf.texi (scanf):
407         POSIX.1-2001, not POSIX-2001.
408
409         doc: move README into manual
410         * README: Move contents to new file doc/gnulib-readme.texi.
411         Replace with a one-line summary.
412         * doc/gnulib.texi (Brief Overview): New section,
413         with old intro preface.  Include gnulib-readme.texi for contents.
414         (Philosophy): Rename from "Introduction", since this
415         section no longer introduces the rest.  Write a new preface.
416         * doc/gnulib-readme.texi: New file, with the old contents of
417         README texinfo-ized.  This way, the README info appears
418         in the online and printed manual.
419
420 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
421
422         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
423         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
424         c_vasprintf() prototype.
425
426 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
427
428         c-vasprintf: Fix "empty declaration" warning reported by GCC.
429         * lib/c-vasprintf.h: Remove stray semicolon.
430
431 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
432
433         gettext: avoid obsolete macro AM_PROG_MKDIR_P
434         It is obsolete and is planned to be removed from Automake 1.14; see
435         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
436         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
437         (installdirs-data, installdirs-data-yes):
438         Use $(MKDIR_P), not $(mkdir_p).
439         * m4/intl.m4 (AM_INTL_SUBDIR):
440         * m4/po.m4 (AM_PO_SUBDIRS):
441         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
442
443 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
444
445         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
446         On this platform, we are not optimizing but we are using
447         the substitute for extern inlines, so compile as if
448         C99-style extern inline, or a substitute, is available.
449         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
450         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
451         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
452         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
453         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
454         Declare as ARGP_FS_EI, not as extern.
455         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
456         (__option_is_short, _option_is_end, __option_is_end)
457         [!_LIBC && __USE_EXTERN_INLINES]:
458         Declare as ARGP_EI, not as extern.
459
460 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
461
462         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
463         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
464         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
465         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
466         ...), as the latter is fatal with older Autoconfs.
467         Problem reported and fix suggested by Eric Blake in thread starting at
468         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
469
470 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
471
472         AC_PROG_MKDIR_P: don't workaround if not buggy
473         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
474         Define only for Autoconf versions before 2.62.
475         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
476         undocumented m4_PACKAGE_VERSION, for consistency with the
477         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
478         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
479         was introduced in 2.62.
480
481 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
482
483         New 'c-*printf' modules for formatted output in C locale.
484
485         New module 'c-vasnprintf'.
486         * modules/c-vasnprintf: New file.
487         * lib/c-vasnprintf.c: New file.
488         * lib/c-vasnprintf.h: New file.
489
490         New module 'c-snprintf'.
491         * modules/c-snprintf: New file.
492         * modules/c-snprintf-tests: New file.
493         * lib/c-snprintf.c: New file.
494         * lib/c-snprintf.h: New file.
495         * tests/test-c-snprintf.c: New file.
496         * tests/test-c-snprintf.sh: New file.
497
498         New module 'c-vsnprintf'.
499         * modules/c-vsnprintf: New file.
500         * modules/c-vsnprintf-tests: New file.
501         * lib/c-vsnprintf.c: New file.
502         * lib/c-vsnprintf.h: New file.
503         * tests/test-c-vsnprintf.c: New file.
504         * tests/test-c-vsnprintf.sh: New file.
505
506         New module 'c-vasprintf'.
507         * modules/c-vasprintf: New file.
508         * modules/c-vasprintf-tests: New file.
509         * lib/c-asprintf.c: New file.
510         * lib/c-vasprintf.c: New file.
511         * lib/c-vasprintf.h: New file.
512         * tests/test-c-vasprintf.c  +: New file.
513         * tests/test-c-vasprintf.sh: New file.
514
515         New module 'c-xvasprintf'.
516         * modules/c-xvasprintf: New file.
517         * modules/c-xvasprintf-tests: New file.
518         * lib/c-xasprintf.c: New file.
519         * lib/c-xvasprintf.c: New file.
520         * lib/c-xvasprintf.h: New file.
521         * tests/test-c-xvasprintf.c: New file.
522         * tests/test-c-xvasprintf.sh: New file.
523
524 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
525
526         argp: better 'inline'
527         Use extern-inline module to declare extern inline functions.
528         This avoids some bogus warning diagnostics.  Problem discovered
529         when modifying GNU tar to use the manywarnings module.
530         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
531         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
532         Define based on extern-inline.
533         * modules/argp (Depends-on): Add extern-inline.
534
535 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
536
537         filemode, sys_stat: Handle MPX files a la AIX.
538         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
539         * lib/sys_stat.in.h (S_ISMPX): New macro.
540         * tests/test-sys_stat.c: Add tests for MPX files.
541
542 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
543
544         x-to-1: honor $PERL
545         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
546         a chance to use his preferred version of Perl.  This is typically
547         required by Darwin users whose default /usr/bin/perl does not have all
548         the libraries required by help2man, and who need to use their MacPorts
549         installation of Perl instead.
550
551 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
552
553         gnu-web-doc-update: add all the new files, even in new directories
554         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
555         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
556         Use it.
557         (main): Don't use cvsutils to get the list of unknown files,
558         just add all the existing files and directories.
559
560 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
561
562         gnu-web-doc-update: improve --help
563         * build-aux/gnu-web-doc-update: Move comments into --help.
564
565 2012-12-07  Eric Wong  <normalperson@yhbt.net>
566
567         mountlist: recognize more "dummy" file systems
568         * lib/mountlist.c (ME_DUMMY_0):
569         Add these dummy FS names to the list:
570         - "debugfs" virtual filesystem for kernel debugging
571         - "devpts" PTY slave filesystem
572         - "devtmpfs" device filesystem on top of tmpfs/ramfs
573         - "fusectl" control filesystem for FUSE
574         - "mqueue" enumerates POSIX message queues
575         - "rpc_pipefs" kernel <-> userspace bridge for NFS
576         - "sysfs" is for exporting kernel objects
577         - "devfs" device filesystem for Linux 2.4 and FreeBSD
578
579 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
580
581         extern-inline: avoid incompatibility with Darwin Libc
582         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
583         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
584         Problem reported by Akim Demaille in
585         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
586
587 2012-12-11  Simon Josefsson  <simon@josefsson.org>
588
589         gnupload: Work with GnuPG using gpg-agent (for smartcards).
590         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
591         let it handle password prompting.
592
593 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
594
595         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
596         * lib/canonicalize.c (canonicalize_filename_mode):
597         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
598         fetching the current directory.  Don't overrun the beginning of
599         rpath if there's no slashes after the MS-Windows drive letter.
600
601 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
602
603         maint.mk: avoid extra forks
604         * top/maint.mk (_cfg_mk): The GNU make manual documents that
605         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
606         So use that instead of "$(shell test -f FILE && echo FILE)".
607
608 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
609
610         vasnprintf: fix ASCII_ONLY typo
611         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
612         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
613         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
614         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
615         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
616
617 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
618
619         list, oset, xlist, xoset: fix extern inline issue with C99
620         This was introduced by my recent changes for 'inline'.
621         Problem reported for gettext by Daiki Ueno in
622         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
623         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
624         (gl_list_nx_create, gl_list_size, gl_list_node_value)
625         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
626         (gl_list_previous_node, gl_list_get_at)
627         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
628         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
629         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
630         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
631         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
632         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
633         (gl_list_iterator_free, gl_sortedlist_search)
634         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
635         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
636         (gl_sortedlist_remove):
637         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
638         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
639         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
640         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
641         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
642         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
643         (gl_list_add_at, gl_sortedlist_add):
644         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
645         Wrap these extern decls inside "#if 0", because they are implemented
646         as inline functions, and extern inline is not what's wanted here.
647         It would simplify these .h files to remove the extern decls entirely,
648         although a downside would be less-clear separation between
649         specification and implementation.
650
651 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
652
653         sys_stat: no 'static inline'
654         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
656
657         extern-inline: no 'static inline'
658         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
659         Do not require AC_C_INLINE.
660         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
661         'static inline', for older compilers.
662
663         snippet/warn-on-use: no 'static inline'
664         * build-aux/snippet/warn-on-use.h:
665         Remove unnecessary 'inline' in comment.
666
667         rbtree-list, rbtreehash-list: no 'static inline'
668         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
669         * lib/gl_anytree_list2.h (node_at):
670         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
671         (gl_oset_first, add_nodes_to_buckets):
672         Now static, not static inline.
673
674         regex: no 'static inline'
675         * lib/regex_internal.c (calc_state_hash):
676         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
677         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
678         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
679         Now static, not static inline.
680         (inline) [__GNUC__ < 3 && _LIBC]:
681         Remove macro; no longer needed.
682
683         xvasprintf: no 'static inline'
684         * lib/xvasprintf.c (xstrcat):
685         Now static, not static inline.
686         * m4/xvasprintf.m4 (gl_XVASPRINTF):
687         Do not require AC_C_INLINE.
688
689         parse-datetime, parse-duration: no 'static inline'
690         * lib/parse-datetime.y (to_uchar):
691         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
692         (scale_n_add):
693         Now static, not static inline.
694         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
695         * modules/parse-duration (configure.ac):
696         Do not require AC_C_INLINE.
697
698         getaddrinfo: no 'static inline'
699         * lib/getaddrinfo.c (validate_family):
700         Now static, not static inline.
701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
702         Do not require AC_C_INLINE.
703
704         ftruncate, fts, lstat, openat, raise: no 'static inline'
705         * lib/ftruncate.c (chsize_nothrow):
706         * lib/fts.c (opendirat, diropen):
707         * lib/lstat.c (orig_lstat):
708         * lib/openat.c (orig_openat):
709         * lib/raise.c (raise_nothrow):
710         Now static, not static inline.
711         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
712         * m4/fts.m4 (gl_FUNC_FTS_CORE):
713         * m4/lstat.m4 (gl_PREREQ_LSTAT):
714         * m4/openat.m4 (gl_PREREQ_OPENAT):
715         * m4/raise.m4 (gl_PREREQ_RAISE):
716         Do not require AC_C_INLINE.
717
718         fflush, stat: no 'static inline'
719         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
720         (clear_ungetc_buffer, disable_seek_optimization)
721         (restore_seek_optimization, update_fpos_cache):
722         * lib/stat.c (orig_stat):
723         Now static, not static inline.
724         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
725         (update_fpos_cache):
726         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
727         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
728         * m4/stat.m4 (gl_PREREQ_STAT):
729         Do not require AC_C_INLINE.
730
731         error, filevercmp: no 'static inline'
732         * lib/error.c (is_open, flush_stdout):
733         * lib/filevercmp.c (order):
734         Now static, not static inline.
735         * m4/error.m4 (gl_PREREQ_ERROR):
736         * modules/filevercmp (configure.ac):
737         Do not require AC_C_INLINE.
738
739         dup, execute, fatal-signal, etc.: no 'static inline'
740         * lib/dup.c (dup_nothrow):
741         * lib/execute.c (nonintr_close, nonintr_open):
742         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
743         * lib/fopen.c (orig_fopen):
744         * lib/freadseek.c (freadptrinc):
745         * lib/freopen.c (orig_freopen):
746         * lib/fstat.c (orig_fstat, fstat_nothrow):
747         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
748         (get_rusage_as_via_iterator):
749         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
750         * lib/getdtablesize.c (_setmaxstdio_nothrow):
751         * lib/isatty.c (_isatty_nothrow):
752         * lib/open.c (orig_open):
753         * lib/read.c (read_nothrow):
754         * lib/sigprocmask.c (signal_nothrow):
755         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
756         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
757         * lib/wait-process.c (unregister_slave_subprocess):
758         * lib/write.c (write_nothrow):
759         Now static, not static inline.
760         * lib/spawn-pipe.c (nonintr_open): Define only if
761         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
762         * m4/dup.m4 (gl_PREREQ_DUP):
763         * m4/execute.m4 (gl_EXECUTE):
764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
765         * m4/fopen.m4 (gl_PREREQ_FOPEN):
766         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
767         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
768         * m4/fstat.m4 (gl_PREREQ_FSTAT):
769         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
770         * m4/isatty.m4 (gl_PREREQ_ISATTY):
771         * m4/open.m4 (gl_PREREQ_OPEN):
772         * m4/read.m4 (gl_PREREQ_READ):
773         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
774         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
776         * m4/wait-process.m4 (gl_WAIT_PROCESS):
777         * m4/write.m4 (gl_PREREQ_WRITE):
778         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
779         Do not require AC_C_INLINE.
780
781         c-strtod, memcoll, readutmp: no 'static inline'
782         * lib/c-strtod.c (c_locale):
783         * lib/memcoll.c (strcoll_loop):
784         * lib/readutmp.c (desirable_utmp_entry):
785         Now static, not static inline.
786         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
787         * m4/memcoll.m4 (gl_MEMCOLL):
788         * m4/readutmp.m4 (gl_READUTMP):
789         Do not require AC_C_INLINE.
790
791         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
792         * lib/arctwo.c (to_uchar):
793         * lib/md4.c (set_uint32):
794         * lib/md5.c (set_uint32):
795         * lib/sha1.c (set_uint32):
796         * lib/sha256.c (set_uint32):
797         * lib/sha512.c (set_uint64):
798         Now static, not static inline.  This is a bit simpler, and doesn't
799         affect performance with GCC and default optimization.
800         * m4/arctwo.m4 (gl_ARCTWO):
801         * m4/md4.m4 (gl_MD4):
802         * m4/md5.m4 (gl_MD5):
803         * m4/sha1.m4 (gl_SHA1):
804         * m4/sha256.m4 (gl_SHA256):
805         * m4/sha512.m4 (gl_SHA512):
806         Do not require AC_C_INLINE.
807
808         cond, lock, thread: better 'inline'
809         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
810         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
811         New macros.  Use them instead of static inline, for header functions.
812         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
813         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
814         * lib/glthread/lock.c (gl_waitqueue_init)
815         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
816         * lib/glthread/thread.c (get_current_thread_handle):
817         Change 'static inline' to 'inline'.
818         * lib/glthread/cond.h, lib/glthread/thread.h:
819         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
820         * m4/cond.m4 (gl_COND):
821         * m4/lock.m4 (gl_PREREQ_LOCK):
822         * m4/thread.m4 (gl_THREAD):
823         Do not require AC_C_INLINE.
824         * modules/cond, modules/thread (Depends-on): Add extern-inline.
825
826         chdir-long, cycle-check, savewd: better 'inline'
827         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
828         (find_non_slash):
829         * lib/cycle-check.c (is_zero_or_power_of_two):
830         * lib/savewd.c (savewd_delegating):
831         Change 'static inline' to 'inline'.
832         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
833         Replace all remaining uses of 'static inline' with it.
834         * lib/savewd.h:
835         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
836         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
837         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
838         * m4/savewd.m4 (gl_SAVEWD):
839         Do not require AC_C_INLINE.
840         * modules/savewd (Depends-on): Add extern-inline.
841
842         base32, base64: no need for 'inline'
843         * lib/base32.c (to_uchar, get_8, decode_8):
844         * lib/base64.c (to_uchar, get_4, decode_4):
845         Change 'static inline' to 'inline'.
846         * m4/base32.m4 (gl_PREREQ_BASE32):
847         * m4/base64.m4 (gl_PREREQ_BASE64):
848         Do not require AC_C_INLINE.
849
850         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
851         * lib/gl_array_oset.c (gl_array_nx_add_at):
852         (gl_array_remove_at):
853         * lib/gl_linkedhash_list.c (hash_resize_after_add)
854         (add_to_bucket, remove_from_bucket):
855         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
856         Change 'static inline' to 'static', as it's simpler to omit
857         'inline' unless there's a significant performance advantage.
858
859         list, oset, xlist, xoset, xsublist: simplify via extern inline
860         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
861         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
862         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
863         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
864         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
865         New macro.  Replace all uses of 'static inline' with it.
866         [HAVE_INLINE]: Implement functions as *_INLINE functions,
867         instead of as macros FOO that are defined to static inline
868         functions FOO_inline.
869         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
870         * lib/gl_xsublist.c:
871         Reimplement from scratch, by defining the corresponding *_INLINE
872         macro and including the corresponding .h file.  This is simpler.
873         * modules/list, modules/oset, modules/xlist, modules/xoset:
874         (Files): Remove m4/gl_list.m4.
875         (configure.ac): Remove gl_LIST.
876         * m4/gl_list.m4: Remove.
877         * modules/list, modules/oset, modules/xlist, modules/xoset:
878         * modules/xsublist:
879         (Depends-on): Depend on extern-inline, not inline.
880
881         xalloc: better 'inline'
882         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
883         New macro.  Replace all uses of 'static inline' with it.
884         (static_inline): Remove.
885         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
886         Let 'extern inline' do the work automatically, instead of doing
887         it by hand.
888         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
889         Remove.  All uses removed.
890         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
891
892         gethrxtime: better 'inline'
893         * lib/xtime.c: New file.
894         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
895         * lib/xtime.h (XTIME_INCLUDE):
896         New macros.  Replace all uses of 'static inline' with them.
897         * lib/gethrxtime.c (gethrxtime): Define only if
898         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
899         this source file is now always compiled, because of the extern inline.
900         * lib/gethrxtime.h, lib/xtime.h:
901         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
902         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
903         if gethrtime works, as they're not needed in that case.
904         (gl_XTIME): Do not require AC_C_INLINE.
905         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
906         compiled now.  Move the check into gl_GETHRXTIME.
907         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
908         (Depends-on): Add extern-inline.
909         (configure.ac): gethrxtime is always compiled now.
910         (lib_SOURCES): Add gethrxtime.c.
911
912         wctype-h: better 'inline'
913         * lib/wctype-h.c: New file.
914         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
915         New macro.  Replace all uses of 'static inline' with it.
916         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
917         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
918         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
919         (Depends-on): Add extern-inline.
920
921         unistd: better 'inline'
922         * lib/unistd.c: New file.
923         * lib/unistd.in.h (_GL_UNISTD_INLINE):
924         New macro.  Replace all uses of 'static inline' with it.
925         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
926         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
927         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
928         (Depends-on): Add extern-inline.
929
930         sys_socket: better 'inline'
931         * lib/sys_socket.c: New file.
932         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
933         New macro.  Replace all uses of 'static inline' with it.
934         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
936         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
937         (Depends-on): Add extern-inline.
938
939         stdio: better 'inline'
940         * lib/stdio.c: New file.
941         * lib/stdio.in.h (_GL_STDIO_INLINE):
942         New macro.  Replace all uses of 'static inline' with it.
943         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
944         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
945         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
946         (Depends-on): Add extern-inline.
947
948         sigaction: better 'inline'
949         * lib/sig-handler.c: New file.
950         * lib/sig-handler.h (SIG_HANDLER_INLINE):
951         New macro.  Replace all uses of 'static inline' with it.
952         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
953         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
954         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
955         (Depends-on): Add extern-inline.
956
957         selinux-h: better 'inline'
958         * lib/se-context.c, lib/se-selinux.c: New files.
959         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
960         * lib/se-context.in.h (SE_CONTEXT_INLINE):
961         New macro.  Replace all uses of 'static inline' with it.
962         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
963         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
964         New macro.  Replace all uses of 'static inline' with it.
965         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
966         * modules/selinux-h (Files, lib_SOURCES):
967         Add lib/se-context.c, lib/se-selinux.c.
968         (Depends-on): Add extern-inline.
969         (configure.ac): Do not require AC_C_INLINE.
970
971         pthread: better 'inline'
972         * lib/pthread.c: New file.
973         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
974         New macro.  Replace all uses of 'static inline' with it.
975         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
976         * m4/pthread.m4 (gl_PTHREAD_CHECK):
977         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
978         * modules/pthread (Files): Add lib/pthread.c.
979         (Depends-on): Add extern-inline.
980
981         math: better 'inline'
982         * lib/math.c: New file.
983         * lib/math.in.h (_GL_MATH_INLINE):
984         New macro.  Replace all uses of 'static inline' with it.
985         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
986         * m4/math_h.m4 (gl_MATH_H):
987         Do not require AC_C_INLINE.
988         * modules/math (Files, lib_SOURCES):
989         Add lib/math.c.
990         (Depends-on): Add extern-inline.
991
992         count-one-bits: better 'inline'
993         * lib/count-one-bits.c: New file.
994         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
995         New macro.  Replace all uses of 'static inline' with it.
996         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
997         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
998         Do not require AC_C_INLINE.
999         * modules/count-one-bits (Files, lib_SOURCES):
1000         Add lib/count-one-bits.c.
1001         (Depends-on): Add extern-inline.
1002
1003         count-leading-zeros: better 'inline'
1004         * lib/count-leading-zeros.c: New file.
1005         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1006         New macro.  Replace all uses of 'static inline' with it.
1007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1008         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1009         Do not require AC_C_INLINE.
1010         * modules/count-leading-zeros (Files, lib_SOURCES):
1011         Add lib/count-leading-zeros.c.
1012         (Depends-on): Add extern-inline.
1013
1014         bitrotate: better 'inline'
1015         * lib/bitrotate.c: New file.
1016         * lib/bitrotate.h (BITROTATE_INLINE):
1017         New macros.
1018         Replace all uses of 'static inline' with them.
1019         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1020         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1021         (Depends-on): Add extern-inline.
1022         (configure.ac): Do not require AC_C_INLINE.
1023
1024 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1025
1026         maint.mk: avoid gratuitous failure
1027         Reported by Stefano Lattarini in
1028         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1029         * top/maint.mk (public-submodule-commit): Quote more safely.
1030
1031 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1032
1033         canonicalize, canonicalize-lgpl: support MS-Windows file names
1034         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1035         for test cases, which it'd be nice to add at some point.
1036         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1037         * lib/canonicalize.c (canonicalize_filename_mode):
1038         * lib/canonicalize-lgpl.c (__realpath):
1039         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1040         slash is at the beginning of the file name.  Use ISSLASH, instead
1041         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1042         the first character with '/'.  Test for
1043         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1044         with a drive letter.
1045         * lib/canonicalize.c (SLASHES): New macro.
1046         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1047
1048 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1049
1050         fts: introduce FTS_VERBATIM
1051         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1052         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1053         * lib/fts.c (fts_open): Honor it.
1054
1055 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1056
1057         getlogin-tests: allow errno == ENXIO
1058         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1059         with errno == ENXIO (No controlling tty).
1060         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1061         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1062         with errno == ENOENT.  This was reported to happen in various
1063         situations on GNU/Linux.
1064
1065 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         getlogin-tests: allow errno == ENOENT
1068         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1069         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1070         when running a test in an Emacs shell buffer.
1071
1072 2012-11-08  Jim Meyering  <jim@meyering.net>
1073
1074         tests/nap.h: avoid warning about unused variable
1075         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1076
1077         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1078         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1079         white space before each of the special-cased file names, to avoid
1080         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1081         in http://bugs.gnu.org/12830.
1082
1083 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1086         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1087         fails with errno == EBADF when fd is opened with O_PATH.
1088         Reported by Jim Meyering in
1089         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1090         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1091         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1092
1093 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1094
1095         test-utimens: speed up by taking shorter naps
1096         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1097         New functions.
1098         (nap): Use them, to do a better job of guessing the delay.
1099         On Fedora 17 with ext4 atop md atop hard disks, this made
1100         test-utimens run 10x faster, because the test napped for
1101         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1102         <http://bugs.gnu.org/12820#11>.
1103
1104 2012-11-07  Jim Meyering  <jim@meyering.net>
1105
1106         mountlist.c: fix a compilation failure
1107         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1108         I introduced while transforming commit v0.0-7683-g613bcb6
1109
1110 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1111
1112         errno: port to LynxOS 178 2.2.2
1113         Problem reported by Joel Brobecker in
1114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1115         * doc/posix-headers/errno.texi (errno.h): Document this.
1116         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1117         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1118         Supply a string for EILSEQ.
1119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1120
1121 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1122
1123         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1124         Linux kernel 2.6.39 introduced O_PATH (see
1125         <http://lwn.net/Articles/433854/>) and this is a better fallback
1126         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1127         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1128         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1129         * lib/fcntl.in.h (O_ACCMODE):
1130         * tests/test-fcntl-h.c (main):
1131         Do not reject O_ACCMODE merely because it has more than the
1132         minimal number of bits, as POSIX allows extensions here.
1133
1134 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1135
1136         mountlist: do not classify a bind-mounted dir entry as "dummy"
1137         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1138         the "none"-testing clause.
1139         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1140         exception for bind-mounted directories.
1141
1142 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1143
1144         quote: provide a means to escape strings with nul characters
1145         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1146         (quote, quote_n): Rename formal arguments for consistency with
1147         quotearg.
1148
1149 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1150
1151         test-raise: don't assume 199 is an invalid signal
1152         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1153
1154         sh-quote-tests: port to Solaris 9
1155         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1156         Problem reported by Dagobert Michelsen in
1157         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1158
1159 2012-10-28  Jim Meyering  <jim@meyering.net>
1160
1161         maint.mk: rename a new configurable variable
1162         * top/maint.mk (_gl_translatable_string_re): Rename from
1163         translation-markers: _gl_ prefix to insulate from user Makefile code,
1164         and the _re suffix to inform that it's a regular expression.
1165
1166 2012-10-26  Eric Blake  <eblake@redhat.com>
1167
1168         maint.mk: let packages tweak sc_po_check pattern
1169         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1170         finding files with other translation markers.
1171
1172 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1173
1174         euidaccess: speed up 'configure' on GNU hosts
1175         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1176         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1177         it's needed only in this case.  Use AC_CHECK_DECLS, not
1178         AC_CHECK_DECLS_ONCE.
1179         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1180         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1181
1182         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1183
1184 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1185
1186         fchmodat, fchownat, fstatat: port to non-inlining compilers
1187         Problem reported for FreeBSD 9 by Jim Meyering in
1188         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1189         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1190         New files, which define FCHMODAT_INLINE etc.
1191         * lib/fchmodat.c (FCHMODAT_INLINE):
1192         * lib/fchownat.c (FCHOWNAT_INLINE):
1193         * lib/fstatat.c (FSTATAT_INLINE):
1194         Remove, as chmodat.c etc. now do this.
1195         * modules/fchmodat (Files): Add lib/chmodat.c.
1196         * modules/fchownat (Files): Add lib/chownat.c.
1197         * modules/fstatat (Files): Add lib/statat.c.
1198
1199 2012-10-15  Jim Meyering  <jim@meyering.net>
1200
1201         fchmodat.c, fchownat.c: compile-impeding typos
1202         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1203         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1204         Introduced in commit v0.0-7636-gd202279.
1205
1206 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1207
1208         fcntl-h: support GNU flags like O_IGNORE_CTTY
1209         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1210         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1211         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1212         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1213         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1214         Define to 0 if not already defined.
1215         * tests/test-fcntl-h.c: Test these new flags.
1216
1217 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         faccessat, etc.: support AT_FDCWD-only use
1220         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1221         this function only if its first argument is AT_FDCWD.
1222         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1223         values other than AT_FDCWD, so it doesn't want all the openat
1224         machinery with fchdir etc.
1225         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1226         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1227         * modules/unlinkat (Files):
1228         Remove lib/openat-priv.h, as at-internal supplies this file.
1229         Removing this file here allows us to support programs like Emacs
1230         that avoid at-internal.
1231
1232         faccessat: speed up 'configure' on mainstream hosts
1233         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1234         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1235         since it's only on unusual platforms that we need to check for
1236         'access', and it's better not to slow 'configure' down on all
1237         platforms.
1238
1239         faccessat: port to Solaris 10
1240         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1241         Needed on Solaris 10, which doesn't have AT_EACCESS,
1242         so we need the Gnulib fcntl.h, which defines it.
1243
1244 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1245         canonicalize: fix C89 compilation
1246         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1247         declarations so C89 is supported.  Also remove the comment
1248         referencing memorty allocation as the suggested feature could
1249         not be implemented as suggested.
1250         Reported by Michael Goffioul.
1251
1252 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1253
1254         group-member: omit unnecessary dependencies
1255         This is for Emacs, which has its own allocator and where we
1256         don't want to use xalloc.
1257         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1258         since we no longer use xmalloc.  Do not include stdbool.h, since
1259         the changes below happen to remove the only use of bool.
1260         (GROUPBUF_SIZE): New constant.
1261         (struct group_info): Remove n_groups member.  Add groupbuf member.
1262         This lets us get the groups without using malloc, usually.
1263         (free_group_info, get_group_info): Adjust to this.
1264         (get_group_info): Return the number of groups found, or -1 on error.
1265         Use plain malloc not xmalloc, and treat its failure as if there
1266         are no groups, as the user already loses in case of error.
1267         (group_member): Simplify, based on changes to get_group_info.
1268         * modules/group-member (Depends-on): Remove dependencies on
1269         xalloc and stdbool.  Add dependency on xalloc-oversized.
1270
1271 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1272
1273         gethrxtime: port to C++
1274         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1275
1276 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1277
1278         ptsname: fix macro-name typo
1279         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1280
1281 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1282
1283         inttostr: Relax license.
1284         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1285
1286 2012-10-03  Eric Blake  <eblake@redhat.com>
1287
1288         ptsname_r: support ptys returned by FreeBSD posix_openpt
1289         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1290         lives in /dev/pts/.
1291
1292 2012-10-02  Eric Blake  <eblake@redhat.com>
1293
1294         pselect: reject invalid file descriptors
1295         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1296         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1297         * modules/pselect (Depends-on): Add dup2.
1298         * doc/posix-functions/pselect.texi (pselect): Document this.
1299
1300         select: reject invalid file descriptors
1301         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1302         * lib/select.c (rpl_select) [!win32]: Work around it.
1303         * modules/select (Depends-on): Add dup2.
1304         * doc/posix-functions/select.texi (select): Document this.
1305
1306         select: enhance test
1307         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1308         New functions.
1309         (test_function): Enhance test.
1310         (do_select_bad_fd): Avoid any stale errno values.
1311
1312         ptsname: reject invalid file descriptors
1313         http://www.austingroupbugs.net/view.php?id=503
1314         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1316         * modules/stdlib (Makefile.am): Replace witness.
1317         * lib/stdlib.in.h (ptsname): Allow for replacement.
1318         * modules/ptsname (configure.ac): Trigger replacement.
1319         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1320
1321 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1322
1323         hash-pjw-bare: new module
1324         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1325         * lib/hash-pjw-bare.h: Likewise.
1326         * modules/hash-pjw-bare: New file.
1327         * MODULES.html.sh (Misc): Add it.
1328
1329 2012-10-02  Eric Blake  <eblake@redhat.com>
1330
1331         manywarnings: cater to more gcc infelicities
1332         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1333         -Wuninitialized without -O.
1334
1335 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1336
1337         select, poll tests: Make setsockopt invocation effective.
1338         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1339         the bind() call.
1340         * tests/test-select.h (open_server_socket): Likewise.
1341
1342 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1343
1344         sockets, sys_stat: restore AC_C_INLINE
1345         This undoes the 2012-09-22 patch.
1346         * m4/sockets.m4 (gl_SOCKETS):
1347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1348         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1349         and does not support plain 'inline'.  Reported by Bruno Haible in
1350         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1351
1352 2012-09-30  Bruno Haible  <bruno@clisp.org>
1353
1354         localeconv tests: Avoid test failure on OpenIndiana.
1355         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1356         skip the 'grouping' and 'mon_grouping' tests.
1357         Reported by Jim Meyering.
1358
1359 2012-09-30  Bruno Haible  <bruno@clisp.org>
1360
1361         havelib: Follow libtool developments.
1362         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1363         Suggested by Simon Josefsson.
1364
1365 2012-09-29  Jim Meyering  <meyering@redhat.com>
1366
1367         fstatat.c: fix a compile-impeding typo
1368         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1369         Introduced in commit v0.0-7636-gd202279.
1370         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1371
1372 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1373
1374         extern-inline: provide a -Wundef safe config.h
1375         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1376         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1377         to produce a -Wundef warning free config.h.
1378
1379 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         hash-pjw: relax license to LGPLv2+
1382         * modules/hash-pjw (License): Relax, with consent of author.
1383
1384 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1385
1386         maint.mk: fix strict vs. lazy variable issues with RELEASE
1387         * top/maint.mk (_equal): New function.
1388         (member_check): Strip the result to avoid spurious spaces.
1389         (url_dir_list): Do not use ifeq, which is strict, as it will
1390         require RELEASE_TYPE to be defined.
1391         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1392         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1393         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1394         (announcement_Cc_beta,announcement_mail_headers_beta)
1395         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1396         (release): Do not depend on $(release-type), as it forces its
1397         evaluation.  Bounce to it.
1398
1399 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1400
1401         maint.mk: formatting changes
1402         * top/maint.mk: Indent bodies of if's.
1403
1404 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1405
1406         maint.mk: factor the validation of RELEASE_TYPE
1407         With help from Jim Meyering.
1408         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1409         * top/maint.mk (_empty, _sp): Move their definition earlier.
1410         (member-check, release-type): New.
1411         Use the latter instead of $(RELEASE_TYPE).
1412         Remove now useless local checks.
1413
1414 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1415
1416         maint.mk: provide "make upload" to ease uploading
1417         See
1418         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1419         Do not depend simply on the current $(VERSION), as there may have been
1420         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1421         as "make release-commit" already does.
1422
1423         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1424         "make TYPE".
1425
1426         * top/maint.mk (upload_command, upload, release): New.
1427         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1428         (VERSION): first word of $(RELEASE) is always right.
1429         (emit_upload_commands): Adjust.
1430         * top/README-release: Update.
1431
1432 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1433
1434         maint.mk: silent rules
1435         With help from Stefano Lattarini.
1436         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1437         (announcement): Use $(AM_V_at).
1438
1439 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1440
1441         localename: port gl_locale_name_thread_unsafe to FreeBSD
1442         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1443         and use the simpler FreeBSD implementation on Mac OS X as well.
1444         Original idea suggested by Ed Maste in
1445         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1446
1447 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1448
1449         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1450         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1451         * lib/mbuiter.c, lib/xsize.c: New files.
1452         * lib/binary-io.h (BINARY_IO_INLINE):
1453         * lib/eealloc.h (EEALLOC_INLINE):
1454         * lib/mbfile.h (MBFILE_INLINE):
1455         * lib/mbiter.h (MBITER_INLINE):
1456         * lib/mbuiter.h (MBUITER_INLINE):
1457         * lib/xsize.h (XSIZE_INLINE):
1458         New macros.
1459         Replace all uses of 'static inline' with them.
1460         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1461         * m4/eealloc.m4 (gl_EEALLOC):
1462         * m4/mbfile.m4 (gl_MBFILE):
1463         * m4/mbiter.m4 (gl_MBITER):
1464         * m4/xsize.m4 (gl_XSIZE):
1465         Do not require AC_C_INLINE.
1466         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1467         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1468         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1469         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1470         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1471         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1472         * modules/binary-io, modules/eealloc, modules/mbfile:
1473         * modules/mbiter, modules/mbuiter:
1474         (Depends-on): Add extern-inline.
1475
1476         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1477         * lib/pipe-filter-aux.c: New file.
1478         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1479         Replace all uses of 'static inline' with it.
1480         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1481         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1482         (filter_retcode): No real need for inline here.
1483         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1484         (Files): Add lib/pipe-filter-aux.c.
1485         (Depends-on): Add extern-inline.
1486         (configure.ac): Do not require AC_C_INLINE.
1487         (lib_SOURCES): Add pipe-filter-aux.c.
1488
1489         fdutimensat: omit unnecessary AC_C_INLINE
1490         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1491
1492         fchmodat, fchownat, fstatat: use extern-inline
1493         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1494         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1495         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1496         New macros.
1497         * lib/openat.h:
1498         Replace all uses of 'static inline' with them.
1499         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1500         * modules/fchmodat, modules/fchownat, modules/fstatat:
1501         * modules/openat-h:
1502         (Depends-on):
1503         Add extern-inline.
1504         (configure.ac): Remove AC_C_INLINE.
1505
1506         acl, mbchar, priv-set: use extern-inline
1507         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1508         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1509         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1510         New macros.
1511         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1512         Replace all uses of 'static inline' with it.
1513         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1514         * m4/acl.m4 (gl_FUNC_ACL):
1515         * m4/mbchar.m4 (gl_MBCHAR):
1516         * m4/priv-set.m4 (gl_PRIV_SET):
1517         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1518         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1519         Add extern-inline.
1520
1521         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1522         * m4/sockets.m4 (gl_SOCKETS):
1523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1524         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1525         environments where it's already guaranteed to work, so we needn't
1526         check for it at 'configure'-time.
1527
1528         tls-tests: omit unnecessary 'inline'
1529         * tests/test-tls.c (perhaps_yield): No longer inline.
1530         Simplicity and portability trump efficiency in test cases.
1531
1532         utimens-tests: avoid unnecessary 'inline'
1533         * modules/fdutimensat-tests (configure.ac):
1534         * modules/futimens-tests (configure.ac):
1535         * modules/utimens-tests (configure.ac):
1536         * modules/utimensat-tests (configure.ac):
1537         Remove AC_C_INLINE.
1538         * tests/test-utimens-common.h (ctime_compare):
1539         No longer inline.  Simplicity and portability trump efficiency here.
1540
1541         misc: don't limit commentary to inline functions
1542         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1543         * lib/xalloc-oversized.h, lib/xsize.h:
1544         Contrast macros to functions in general, not just to inline functions,
1545         when the commentary does not apply only to inline functions.
1546
1547 2012-09-20  Jim Meyering  <meyering@redhat.com>
1548
1549         non-recursive-gnulib-prefix-hack: new module
1550         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1551         the file that originated in Bison.
1552         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1553         largely copied from a snippet that resided in bison's configure.ac.
1554         * modules/non-recursive-gnulib-prefix-hack: New file.
1555         * MODULES.html.sh (Support for maintaining and releasing projects):
1556         Add it.
1557
1558 2012-09-18  Jim Meyering  <meyering@redhat.com>
1559
1560         maint.mk: generalize _gl_tight_scope for non-recursive make
1561         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1562         that *.h would describe additional .h files in the directory
1563         specified by $(_gl_TS_dir).  I.e., add this...
1564         (_gl_TS_other_headers): New variable.
1565
1566         maint.mk: exempt trailing blanks found in "binary" files
1567         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1568         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1569         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1570
1571 2012-09-17  Jim Meyering  <meyering@redhat.com>
1572
1573         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1574         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1575         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1576         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1577
1578 2012-09-17  Jim Meyering  <meyering@redhat.com>
1579
1580         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1581         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1582         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1583         It is not in the same category as "exit (0)" or "exit (1)", and
1584         besides, I know of no symbolic name for that 77.  Reported by
1585         Richard W.M. Jones in
1586         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1587
1588 2012-09-17  Jim Meyering  <meyering@redhat.com>
1589
1590         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1591         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1592         all uses of #define, not just those that start in column 1.
1593         Richard W.M. Jones reported a false positive in
1594         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1595
1596 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1597
1598         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1599         * lib/localcharset.c (locale_charset) [DARWIN7]:
1600         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1601         as these two values are incompatible.  Problem reported by Max Horn.
1602         For more discussion, please see
1603         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1604
1605         doc: document sticky-EOF issue
1606         * doc/posix-functions/fgetc.texi (fgetc):
1607         * doc/posix-functions/fgets.texi (fgets):
1608         * doc/posix-functions/fread.texi (fread):
1609         * doc/posix-functions/fscanf.texi (fscanf):
1610         * doc/posix-functions/getc.texi (getc):
1611         * doc/posix-functions/getchar.texi (getchar):
1612         * doc/posix-functions/scanf.texi (scanf):
1613         Mention that glibc and default Solaris do not conform to
1614         C99 and POSIX-2001 or later, with respect to how getchar
1615         etc. behave when feof reports nonzero.
1616
1617 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1618
1619         poll: fix poll(0, NULL, msec)
1620         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1621         but nfd is 0.  In that case poll should behave like select.
1622
1623 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1624             Paolo Bonzini <bonzini@gnu.org>
1625
1626         poll: fix for systems that can't recv() on a non-socket
1627         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1628         is readable.  In this case POLLHUP will not be supported.
1629         * doc/posix-functions/poll.texi: Document this.
1630
1631 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1632
1633         poll/select: document portability problems not fixed by Gnulib.
1634         * doc/posix-functions/poll.texi: poll does not work well on
1635         pipes under Windows.  It has the same limitations as select on
1636         BeOS.
1637         * doc/posix-functions/select.texi: select does not work well
1638         on pipes under Windows.
1639
1640 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1643         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1644         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1645         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1646
1647 2012-09-06  Eric Blake  <eblake@redhat.com>
1648
1649         net_if: give more details about the bug being fixed
1650         * doc/posix-headers/net_if.texi: Add clarification.
1651
1652 2012-09-05  Eric Blake  <eblake@redhat.com>
1653
1654         net_if: new module
1655         * modules/net_if: New module, borrowing ideas from netinet_in.
1656         * m4/net_if_h.m4: New file.
1657         * lib/net_if.in.h: Likewise.
1658         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1659         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1660         * tests/test-net_if.c: Make function checks conditional.
1661         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1662
1663 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1664
1665         readutmp: fix non-portable UT_PID use
1666         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1667         Use `UT_PID (u) > 0' as absolute condition.
1668
1669 2012-09-04  Jim Meyering  <meyering@redhat.com>
1670
1671         fts: reduce two or more trailing spaces to just one, usually
1672         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1673         or more slashes, trim all but the final one.  But if a name consists
1674         solely of two slashes, don't modify it.  If it consists solely of
1675         three or more slashes, strip all but one.
1676
1677         This is part of the solution to a minor problem with rm:
1678         it would print a bogus ELOOP diagnostic when failing to remove
1679         the slash-decorated name of a symlink-to-directory:
1680
1681             $ mkdir d && ln -s d s && env rm -r s/
1682             rm: cannot remove 's': Too many levels of symbolic links
1683
1684         With the change below and a trivial don't-trim-trailing-slashes
1685         adjustment to remove.c, it does this:
1686
1687             $ env rm -r s/
1688             rm: cannot remove 's/': Not a directory
1689
1690         Improved by: Eric Blake
1691
1692         fts: when there is no risk of overlap, use memcpy, not memmove
1693         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1694
1695 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1696
1697         stdbool: be more compatible with mixed C/C++ compiles
1698         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1699         Define to bool, true, false, respectively, as GCC's builtin
1700         stdbool.h does.  Problem reported by Michael Goffioul in
1701         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1702
1703 2012-08-28  Jim Meyering  <meyering@redhat.com>
1704
1705         revert last change: it was not needed
1706         * tests/test-vc-list-files-git.sh: There's already a test for
1707         a working git, just below.
1708
1709 2012-08-28  Jim Meyering  <meyering@redhat.com>
1710
1711         tests: test-vc-list-files-git.sh: skip if git is not available
1712         * tests/test-vc-list-files-git.sh: Skip this test when git is
1713         not available.
1714
1715 2012-08-26  Bruno Haible  <bruno@clisp.org>
1716
1717         gnulib-tool: Remove no-op option --no-changelog.
1718         * gnulib-tool (func_usage): Don't mention --no-changelog.
1719         (do_changelog): Remove variable.
1720         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1721
1722 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         doc: remove fdl-1.2.texi
1725         It is no longer used or maintained, and its use of @acronym
1726         is problematic.  See the thread containing
1727         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1728         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1729         * doc/old-licenses/fdl-1.2.texi: Remove.
1730
1731         execinfo: port to FreeBSD
1732         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1733         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1734         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1735         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1736
1737 2012-08-23  Jim Meyering  <meyering@redhat.com>
1738
1739         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1740         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1741         to placate gcc's -Wold-style-declaration.
1742
1743 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1744
1745         doc: do not use @acronym
1746         * doc/inet_ntoa.texi (inet_ntoa):
1747         * doc/parse-datetime.texi (Seconds since the Epoch)
1748         (Specifying time zone rules):
1749         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1750         Don't use @acronym.  Problem reported by John Darlington in
1751         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1752
1753 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1754
1755         stdnoreturn: port to newer GCCs
1756         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1757         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1758         Problem reported by Jim Meyering in
1759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1760         Also, rename the 'test' function to a void a clash with the
1761         already-supplied 'main' function; this fixes a bug that incorrectly
1762         rejected GCC 4.7.1's <stdnoreturn.h>.
1763         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1764         Document GCC problem.
1765
1766 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1767
1768         pipe-filter: fix comment typo
1769         * lib/pipe-filter.h: Mention correct function.
1770
1771 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1772
1773         execinfo: new module
1774         This is for Emacs.  Currently, it provides a no-effect stub
1775         on all platforms where it does not already work.
1776         It already works on glibc-based systems, and on Solaris 11.
1777         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1778         New files.
1779         * doc/glibc-headers/execinfo.texi (execinfo.h):
1780         * MODULES.html.sh (Misc): Document it.
1781
1782 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         extern-inline: support old GCC 'inline'
1785         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1786         if available.  This applies to GCC versions 2.7 through 4.2, or
1787         when newer GCC is using -fgnu89-inline.  The goal is to address
1788         some of the performance issues mentioned by Bruno Haible in
1789         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1790
1791 2012-08-20  Eric Blake  <eblake@redhat.com>
1792
1793         maint.mk: avoid redundant file name in message
1794         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1795         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1796         (sc_makefile_path_separator_check): Remove bogus $(ME).
1797
1798 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1799
1800         timer-time: fix link order when static linking on glibc
1801         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1802         _after_ -lrt so that it's significant.
1803
1804 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         timespec: omit unnecessary AC_C_INLINE
1807         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1808
1809         stat-time: omit unnecessary AC_C_INLINE
1810         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1811         Do not require AC_C_INLINE.
1812
1813         ignore-value: omit unnecessary AC_C_INLINE
1814         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1815
1816         sys_select: avoid 'static inline'
1817         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1818
1819         mktime: avoid 'static inline'
1820         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1821         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1822
1823 2012-08-19  Bruno Haible  <bruno@clisp.org>
1824
1825         gnulib-tool: Improve coding style.
1826         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1827         func_emit_lib_Makefile_am.
1828         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1829
1830 2012-08-19  Bruno Haible  <bruno@clisp.org>
1831
1832         gnulib-tool: Fix indentation.
1833         * gnulib-tool (func_import): Fix indentation.
1834
1835 2012-08-19  Bruno Haible  <bruno@clisp.org>
1836
1837         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1838         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1839         on the list of removed files.
1840
1841 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         test-parse-datetime: avoid glibc leap-second glitch
1844         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1845         with the 2012 rules.  Problem reported by Bruce Dubbs in
1846         <http://bugs.gnu.org/12206>.
1847
1848 2012-08-14  Bruno Haible  <bruno@clisp.org>
1849
1850         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1851         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1852         from argument.
1853         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1854
1855 2012-08-14  Eric Blake  <eblake@redhat.com>
1856
1857         ldexp: relax license
1858         * modules/ldexp (License): Trivial relax, since the module only
1859         provides a permissively licensed m4 file.
1860
1861 2012-08-13  Bruno Haible  <bruno@clisp.org>
1862
1863         gnulib-tool: Fix persistence of --witness-c-macro option.
1864         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1865         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1866
1867 2012-08-11  Eric Blake  <eblake@redhat.com>
1868
1869         count-leading-zeros: use a lookup table on non-gcc compilers
1870         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1871         alternate implementation, suggested by Jim Meyering.
1872
1873 2012-08-10  Eric Blake  <eblake@redhat.com>
1874
1875         count-leading-zeros: new module
1876         * modules/count-leading-zeros: New module.
1877         * m4/count-leading-zeros.m4: New file.
1878         * lib/count-leading-zeros.h: Likewise.
1879         * modules/count-leading-zeros-tests: New test.
1880         * tests/test-count-leading-zeros.c: New file.
1881         * MODULES.html.sh (Integer arithmetic functions): Document it.
1882
1883 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1884             Jim Meyering  <meyering@redhat.com>
1885
1886         maintainer-makefile: Fix syntax error with dash.
1887         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1888         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1889
1890 2012-08-05  Jim Meyering  <meyering@redhat.com>
1891
1892         extern-inline: also ignore -Wmissing-declarations
1893         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1894         required with gcc-4.8.0-to-be.
1895
1896         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1897         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1898         for /error ?([^,]*)/.  This avoids false-positives for strings like
1899         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1900
1901 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1902
1903         gnumakefile: better interaction with Automake-NG
1904         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1905         Automake-NG always contain a definition of VPATH, even in non-VPATH
1906         builds (its value being simply '.' in that case).  So, in the
1907         'clean-GNUmakefile' rule, to determine whether running under a
1908         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1909         '$(VPATH)' expands to the empty string.
1910
1911 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1912
1913         base64: Use extern C scope in header file, for C++.
1914         * lib/base64.h: Add C++ namespace protection.
1915
1916 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1917
1918         stat-time, timespec, u64: support naive out-of-dir builds
1919         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1920         Use '#include "foo.h"', not '#include <foo.h>', when including
1921         one's own interface.  This works better when configuring with
1922         out-of-directory builds, since packages need not add an
1923         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1924
1925 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         utimens: use extern-inline
1928         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1929         * lib/utimens.h: Add copyright notice, since this is now large enough
1930         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1931         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1932         * modules/utimens (Depends-on): Add extern-inline.
1933
1934         u64: use extern-inline
1935         * lib/u64.c: New file.
1936         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1937         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1938         * modules/u64 (Files): Add lib/u64.c.
1939         (Depends-on): Add extern-inline.
1940         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1941         does that now.
1942         (lib_SOURCES): Add u64.c.
1943
1944         timespec: use extern-inline
1945         * lib/timespec.c: New file.
1946         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1947         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1948         * modules/timespec (Files): Add lib/timespec.c.
1949         (Depends-on): Add extern-inline.
1950         (lib_SOURCES): Add timespec.c.
1951
1952         stat-time: use extern-inline
1953         * lib/stat-time.c: New file.
1954         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1955         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1956         * modules/stat-time (Files): Add lib/stat-time.c.
1957         (Depends-on): Add extern-inline.
1958         (lib_SOURCES): Add stat-time.c.
1959
1960         extern-inline: new module
1961         * modules/extern-inline, m4/extern-inline.m4: New files.
1962         This is for better support of 'extern inline' a la ISO C99,
1963         with a portable alternative on compilers that do not support
1964         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1965         of the Emacs executable, when compiled with debugging disabled,
1966         which is a typical way that Emacs is built while developing.
1967
1968 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1969
1970         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1971         * build-aux/do-release-commit-and-tag: Move variable definitions
1972         together.
1973         ($branch): Instead of defaulting to "master", default to the current
1974         branch (as gnu-web-doc-update does).
1975         (help): Display the current values of the option arguments.
1976         * top/maint.mk (release-commit): New.
1977         * top/README-release: Simplify the corresponding step.
1978
1979 2012-07-30  Eric Blake  <eblake@redhat.com>
1980
1981         passfd: fix comment on recvfd
1982         * lib/passfd.c (recvfd): Fix comment.
1983         Reported by Jann Horn <jannhorn@googlemail.com>.
1984
1985 2012-07-30  Jim Meyering  <meyering@redhat.com>
1986
1987         maint.mk: avoid a sub-shell
1988         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1989
1990 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1991
1992         maint.mk: use silent-rules support from Automake
1993         * top/maint.mk (news-check, vc-diff-check, announcement)
1994         (no-submodule-changes, alpha beta stable, release-prep)
1995         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1996
1997 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1998
1999         maint.mk: provide a web-manual-update target
2000         * top/maint.mk: here.
2001         * top/README-release: Use it to simplify the web manual update step.
2002
2003 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2004
2005         README-release: shorten the circuit to post a news
2006         * top/README-release: Point directly to the news submission form.
2007
2008 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2009
2010         gnu-web-doc-update: fix --help
2011         * build-aux/gnu-web-doc-update: The information "top level" was written
2012         twice.
2013
2014 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2015
2016         maint.mk: absolute VPATH issue
2017         * top/maint.mk (release-prep): Help Git find .git/.
2018         From Jim Meyering.
2019
2020 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2021
2022         gitlog-to-changelog: fix previous change
2023         * build-aux/gitlog-to-changelog: Fix condition.
2024         Add missing ";".
2025
2026 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2027
2028         gitlog-to-changelog: don't expect .git to be in $srcdir
2029         Reported by Bruno Haible.
2030         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2031         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2032         Use it.
2033
2034 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2035
2036         maint.mk: absolute VPATH build fix
2037         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2038         $(srcdir) is not a parent of $(builddir).
2039
2040 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2041
2042         clean-temp: Fix memory leak.
2043         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2044         'files' members of tmpdir.
2045
2046 2012-07-27  Jim Meyering  <meyering@redhat.com>
2047
2048         maint.mk: new rule: refresh-gnulib-patches
2049         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2050         Use this rule to refresh them.
2051         * top/maint.mk (refresh-gnulib-patches): New rule.
2052
2053 2012-07-24  Bruno Haible  <bruno@clisp.org>
2054
2055         gnulib-tool: Fix handling of inctests variable.
2056         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2057         Reported by Nick Bowler <nbowler@elliptictech.com>.
2058
2059 2012-07-22  Bruno Haible  <bruno@clisp.org>
2060
2061         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2062         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2063         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2064         Remove exemption for getpass.h.
2065         Suggested by Eric Blake.
2066
2067 2012-07-20  Eric Blake  <eblake@redhat.com>
2068
2069         verify: document conflict with -Wnested-externs
2070         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2071
2072         maint.mk: forbid exit(-1)
2073         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2074
2075 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         fsusage: port back to Solaris
2078         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2079         error (fsd not declared) on Solaris 10.  Reported privately by
2080         Andrew Borodin.
2081
2082 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2083
2084         gnu-web-doc-update: fix error messages
2085         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2086
2087         gnu-web-doc-update: check the requirements.
2088         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2089         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2090         * build-aux/bootstrap (find_tool): Comment change.
2091
2092 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2093
2094         maint.mk: minor simplication.
2095         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2096         for default values.
2097
2098 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2099
2100         gitlog-to-changelog: VPATH build issues
2101         If builddir is not a subdirectory of srcdir, running git from it will
2102         fail.
2103         * build-aux/gitlog-to-changelog (--srcdir): New option.
2104
2105 2012-07-15  Bruno Haible  <bruno@clisp.org>
2106
2107         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2108         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2109         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2110         Remove exemption for fpending.h.
2111         Suggested by Eric Blake.
2112
2113 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2114
2115         pthread_sigmask: fix bug on FreeBSD 9
2116         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2117         Include string.h.
2118         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2119         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2120         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2121         but pthread_sigmask (1729, NULL, NULL) returns zero.
2122         See <http://bugs.gnu.org/11884>.
2123         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2124         by inspecting whether the main call changed the old mask.
2125
2126 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2127
2128         README-release: make it more legible
2129         * top/README-release: Improve typography slightly.
2130
2131 2012-07-15  Jim Meyering  <meyering@redhat.com>
2132
2133         maint: require that each sc_... command start with "@"
2134         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2135         "make sc_maint" helps us avoid this nit.
2136
2137 2012-07-15  Jim Meyering  <meyering@redhat.com>
2138
2139         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2140         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2141
2142 2012-07-13  Eric Blake  <eblake@redhat.com>
2143
2144         maint.mk: new syntax check for HAVE_DECL checks
2145         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2146         * cfg.mk
2147         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2148         Exempt some false positives.
2149         Based on a report by Karel Zak.
2150
2151         argp: make HAVE_DECL usage consistent
2152         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2153         macros, not whether they are defined.
2154         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2155         convention with other declaration checks.
2156         Reported by Karel Zak, with suggestions from Paul Eggert.
2157
2158         stat-time: relax license to LGPLv2+
2159         * modules/stat-time (License): Relax, with consent of all authors.
2160
2161         strndup: fix m4 usage error
2162         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2163         defined, to either 0 or 1.
2164         Reported by Karel Zak.
2165
2166 2012-07-11  Jim Meyering  <meyering@redhat.com>
2167
2168         maint: enable the sc_avoid_if_before_free syntax-check rule
2169         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2170         (if_before_free_offenders_): Define.
2171         (if_before_free_basename_re_): Define.
2172         Exempt current files with useless if-before-free.
2173
2174 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2175
2176         gettext: do not assume '#define ... defined ...' behavior
2177         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2178         Do not use '#define FOO ... defined BAR ...', as the C standard says
2179         it's not portable to expect that this works after macro expansion.
2180         Problem reported for gzip by Steven M. Schweda in
2181         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2182
2183 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2184
2185         getloadavg: clean out old Emacs and Autoconf cruft
2186         See Glenn Morris in <http://bugs.gnu.org/11905>.
2187         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2188         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2189         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2190         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2191
2192 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2193
2194         bootstrap: let warn be like tests/init.sh's warn_
2195         Reported by Jim Meyering.
2196         * build-aux/bootstrap (warn): Remove, replaced by...
2197         (warnf_, warn_): these.
2198         Adjust callers.
2199         Shorten messages that no longer fit in 80 columns.
2200
2201 2012-07-09  Bruno Haible  <bruno@clisp.org>
2202
2203         getopt: Simplify after Emacs changed.
2204         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2205         (gl_GETOPT_IFELSE): Remove macro.
2206
2207 2012-07-09  Jim Meyering  <meyering@redhat.com>
2208
2209         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2210         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2211
2212         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2213         Bugs in both of those conspired to make the
2214         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2215         _sc_search_regexp's handling of non-empty $in_files would filter
2216         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2217         choice of in_files value meant there would be no match in most
2218         projects, due to the presence of two or more Makefile.in files.
2219         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2220         Fix a bug in how a non-empty $$in_files was processed:
2221         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2222         in spite of the name, it's a regexp, not a list of file names.
2223
2224 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2225
2226         getloadavg, getopt: fix commentary re configure.in
2227         Autoconf is deprecating the name 'configure.in', so change it to
2228         to the new name 'configure.ac' in a couple of places.
2229         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2230         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2231         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2232         Emacs has renamed it to configure.ac, and it no longer refers
2233         to these macros anyway.
2234
2235         timespec: mark functions with const attributes
2236         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2237         Mark with _GL_ATTRIBUTE_CONST.
2238
2239 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2240
2241         canonicalize[-lgpl]: handle "guessing" values when cross-building
2242         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2243         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2244         matches "*yes" instead of just "yes".  Regression introduced in commit
2245         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2246
2247 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2248             Bruno Haible  <bruno@clisp.org>
2249
2250         canonicalize: make the right guess when cross-compiling to GNU
2251         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2252         determine whether cross-compiling to glibc systems, so as to
2253         include GNU/Hurd.
2254
2255 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2256
2257         timespec-sub: avoid duplicate include
2258         * lib/timespec-sub.c: Do not include <config.h> twice.
2259         Reported by Juanma Barranquero.
2260
2261 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2262
2263         bootstrap: use a more consistent error reporting scheme
2264         * build-aux/bootstrap (warn, die): New.
2265         Use them.
2266
2267 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2268
2269         sys_time: allow too-wide tv_sec
2270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2271         timeval even if tv_sec is wider than time_t.  This allows
2272         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2273         as without this patch gnulib replaces struct timeval
2274         and OpenBSD futimes therefore has a type mismatch.
2275         * doc/posix-headers/sys_time.texi: Mention this.
2276
2277         pthread: check for both pthread_create and pthread_join
2278         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2279         alter the check so that it tests for both pthread_create and
2280         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2281         Suggested by Bruno Haible and Richard Yao in
2282         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2283
2284         parse-datetime: doc tuneup
2285         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2286         spacing issues.
2287
2288 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2289
2290         do-release-commit-and-tag: fix the previous commit
2291         * build-aux/do-release-commit-and-tag: Actually the test was right,
2292         but the comment and the error message were misleading.
2293         Fix comment, and improve error message.
2294         Perform check first, so that NEWS is not modified uselessly.
2295
2296         do-release-commit-and-tag: fix typo
2297         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2298         _not_ start with a stub.
2299
2300 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2301
2302         pthread: check for pthread_create, not pthread_join
2303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2304         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2305         pthread_join in libc.  I hope this removes the need for all the
2306         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2307         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2308
2309 2012-07-04  Jim Meyering  <meyering@redhat.com>
2310
2311         parse-datetime: fix failure to diagnose invalid input
2312         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2313         rather than diagnosing the invalid input.  Now it reports this:
2314         date: invalid date '\260'
2315         * lib/parse-datetime.y (to_uchar): Define.
2316         (yylex): Don't sign-extend "other" bytes.
2317         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2318         Thanks to Bruno Haible for the patch to this file.
2319         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2320         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2321
2322 2012-07-03  Jim Meyering  <meyering@redhat.com>
2323
2324         bootstrap: do not require now-removed build-aux/missing
2325         Now that build-aux/missing is, er, missing, bootstrap would
2326         silently fail.
2327         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2328         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2329         no longer part of gnulib.
2330         Diagnose the failure.
2331
2332 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         alloca: add support for HP NonStop TNS/E native
2335         * lib/alloca.in.h (alloca): Support the new host.
2336         From a suggestion by Joachim Schmitz in
2337         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2338
2339 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2340
2341         fsusage: remove code not needed on non GNU/Linux systems.
2342
2343         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2344         Don't include headers no longer needed in this case.
2345         * lib/fsusage.c [STAT_STATVFS &&
2346         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2347         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2348
2349 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2350
2351         fsusage: include files needed for glibc 2.6 fallback
2352         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2353         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2354         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2355         Problem reported by Ludovic Courtès in
2356         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2357
2358         fsusage: avoid needless check on GNU/Linux
2359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2360         on GNU/Linux systems, since it can't possibly work.
2361
2362 2012-07-01  Bruno Haible  <bruno@clisp.org>
2363
2364         log: Fix an autoconf >= 2.64 warning.
2365         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2366         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2367
2368 2012-06-28  Bruno Haible  <bruno@clisp.org>
2369
2370         log10f: Fix possible configuration problem.
2371         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2372         $LOGF_LIBM.
2373         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2374
2375 2012-06-28  Bruno Haible  <bruno@clisp.org>
2376
2377         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2378         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2379         not gl_cv_func_unlink_works.
2380         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2381
2382 2012-06-27  Eric Blake  <eblake@redhat.com>
2383
2384         config: drop scripts that automake says are not independent
2385         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2386         * build-aux/elisp-comp: Delete.
2387         * build-aux/missing: Likewise.
2388         * build-aux/ylwrap: Likewise.
2389         * modules/elisp-comp: Likewise.
2390         * MODULES.html.sh: Drop mention of elisp-comp.
2391         * NEWS: Mention this.
2392
2393 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2394
2395         root-uid: new module
2396         This is for portability to Tandem's NonStop Kernel.
2397         * lib/root-uid.h, modules/root-uid: New files.
2398         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2399         * lib/write-any-file.c, tests/test-sethostname2.c:
2400         Include "root-uid.h".
2401         * lib/euidaccess.c (euidaccess):
2402         * lib/pt_chown.c (main):
2403         * lib/unlinkdir.c (cannot_unlink_dir):
2404         * lib/write-any-file.c (can_write_any_file):
2405         * m4/mknod.m4 (gl_FUNC_MKNOD):
2406         * tests/test-sethostname2.c (geteuid, main):
2407         Don't assume ROOT_UID == 0.
2408         * modules/euidaccess (Depends-on):
2409         * modules/pt_chown (Depends-on):
2410         * modules/sethostname-tests (Depends-on):
2411         * modules/unlinkdir (Depends-on):
2412         * modules/write-any-file (Depends-on):
2413         Add root-uid.
2414
2415         regex: use locale-independent comparison for codeset name
2416         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2417         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2418         for codeset name.
2419         * lib/regex_internal.h: Do not include <strings.h>, since we
2420         no longer use strcasecmp.
2421         * modules/regex (Depends-on): Remove strcase.
2422
2423 2012-06-23  Bruno Haible  <bruno@clisp.org>
2424
2425         getopt-posix: No longer guarantee that option processing is resettable.
2426         * doc/posix-functions/getopt.texi: Drop description of problem with
2427         internal state. Fix info about mingw and msvc9.
2428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2429         option processing by getopt(). Run three test programs instead of one.
2430         Simplify cross-compilation guess.
2431         * NEWS: Mention the change.
2432         Reported by Rich Felker <dalias@aerifal.cx>.
2433
2434 2012-06-26  Bruno Haible  <bruno@clisp.org>
2435
2436         argp, regex: Ensure strcasecmp gets declared.
2437         * lib/argp-help.c: Include <strings.h>.
2438         * lib/regex_internal.h: Likewise.
2439         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2440
2441 2012-06-24  Bruno Haible  <bruno@clisp.org>
2442
2443         ptsname_r: Make it consistent with ptsname on AIX.
2444         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2445         implementation as for OSF/1.
2446         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2447         a pty master.
2448
2449         ptsname_r: Make it consistent with ptsname on OSF/1.
2450         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2451         OSF/1.
2452
2453 2012-06-24  Bruno Haible  <bruno@clisp.org>
2454
2455         ttyname_r: Fix result on OSF/1, Solaris.
2456         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2457
2458 2012-06-24  Bruno Haible  <bruno@clisp.org>
2459
2460         ptsname_r: Add support for Solaris.
2461         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2462         Solaris.
2463
2464         ptsname_r: Fix test failure on native Windows.
2465         * modules/ptsname_r (Depends-on): Add isatty.
2466
2467         ptsname_r: Fix test failures on IRIX, Solaris.
2468         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2469         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2470         accordingly.
2471         * lib/ptsname_r.c: Include <fcntl.h>.
2472         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2473         set errno if fd is invalid.
2474         * tests/test-isatty.c (main): Update comments.
2475
2476 2012-06-24  Bruno Haible  <bruno@clisp.org>
2477
2478         ptsname test: Extend test.
2479         * tests/test-ptsname.c: Include <errno.h>.
2480         (main): Test behaviour with invalid file descriptor.
2481
2482 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         time: fix obsolete comment
2485         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2486         reference to HAVE_STRUCT_TIMESPEC in comment.
2487
2488 2012-06-23  Bruno Haible  <bruno@clisp.org>
2489
2490         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2492         does not handle abbreviated long options with equivalent
2493         disambiguations, set gl_replace_getopt to yes.
2494         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2495
2496 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2497
2498         time_r: fix typo that always overrode localtime_r decl
2499         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2500         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2501         not in a standard include.
2502
2503 2012-06-22  Bruno Haible  <bruno@clisp.org>
2504
2505         Write "Mac OS X" instead of "MacOS X".
2506         * README: Write "Mac OS X" instead of "MacOS X".
2507         * build-aux/bootstrap: Likewise.
2508         * build-aux/install-reloc: Likewise.
2509         * lib/acl-internal.h: Likewise.
2510         * lib/acl_entries.c: Likewise.
2511         * lib/argp-ba.c: Likewise.
2512         * lib/argp-pv.c: Likewise.
2513         * lib/config.charset: Likewise.
2514         * lib/copy-acl.c: Likewise.
2515         * lib/csharpexec.c: Likewise.
2516         * lib/euidaccess.c: Likewise.
2517         * lib/fbufmode.c: Likewise.
2518         * lib/fflush.c: Likewise.
2519         * lib/file-has-acl.c: Likewise.
2520         * lib/filemode.h: Likewise.
2521         * lib/fpurge.c: Likewise.
2522         * lib/freadable.c: Likewise.
2523         * lib/freadahead.c: Likewise.
2524         * lib/freading.c: Likewise.
2525         * lib/freadptr.c: Likewise.
2526         * lib/freadseek.c: Likewise.
2527         * lib/fseeko.c: Likewise.
2528         * lib/fseterr.c: Likewise.
2529         * lib/fsusage.c: Likewise.
2530         * lib/fwritable.c: Likewise.
2531         * lib/fwriting.c: Likewise.
2532         * lib/get-rusage-as.c: Likewise.
2533         * lib/get-rusage-data.c: Likewise.
2534         * lib/getdomainname.c: Likewise.
2535         * lib/idpriv-drop.c: Likewise.
2536         * lib/idpriv-droptemp.c: Likewise.
2537         * lib/localcharset.c: Likewise.
2538         * lib/locale.in.h: Likewise.
2539         * lib/localename.c: Likewise.
2540         * lib/mbsrtowcs-state.c: Likewise.
2541         * lib/nproc.c: Likewise.
2542         * lib/passfd.c: Likewise.
2543         * lib/posix_openpt.c: Likewise.
2544         * lib/printf-parse.c: Likewise.
2545         * lib/progreloc.c: Likewise.
2546         * lib/safe-read.h: Likewise.
2547         * lib/safe-write.h: Likewise.
2548         * lib/sched.in.h: Likewise.
2549         * lib/set-mode-acl.c: Likewise.
2550         * lib/signal.in.h: Likewise.
2551         * lib/stdint.in.h: Likewise.
2552         * lib/stdio-impl.h: Likewise.
2553         * lib/stdlib.in.h: Likewise.
2554         * lib/strtod.c: Likewise.
2555         * lib/sys_select.in.h: Likewise.
2556         * lib/tcgetsid.c: Likewise.
2557         * lib/unistd.in.h: Likewise.
2558         * lib/unlockpt.c: Likewise.
2559         * lib/vasnprintf.c: Likewise.
2560         * lib/vma-iter.c: Likewise.
2561         * lib/wcsrtombs-state.c: Likewise.
2562         * m4/acl.m4: Likewise.
2563         * m4/acosl.m4: Likewise.
2564         * m4/asinl.m4: Likewise.
2565         * m4/atanl.m4: Likewise.
2566         * m4/c-stack.m4: Likewise.
2567         * m4/cosl.m4: Likewise.
2568         * m4/expl.m4: Likewise.
2569         * m4/extensions.m4: Likewise.
2570         * m4/fdatasync.m4: Likewise.
2571         * m4/fmal.m4: Likewise.
2572         * m4/frexp.m4: Likewise.
2573         * m4/frexpf.m4: Likewise.
2574         * m4/frexpl.m4: Likewise.
2575         * m4/fsusage.m4: Likewise.
2576         * m4/getdomainname.m4: Likewise.
2577         * m4/getloadavg.m4: Likewise.
2578         * m4/getopt.m4: Likewise.
2579         * m4/gettext.m4: Likewise.
2580         * m4/gnulib-common.m4: Likewise.
2581         * m4/intdiv0.m4: Likewise.
2582         * m4/intlmacosx.m4: Likewise.
2583         * m4/largefile.m4: Likewise.
2584         * m4/ldexpl.m4: Likewise.
2585         * m4/link-follow.m4: Likewise.
2586         * m4/locale-ar.m4: Likewise.
2587         * m4/locale-fr.m4: Likewise.
2588         * m4/locale-ja.m4: Likewise.
2589         * m4/locale-tr.m4: Likewise.
2590         * m4/locale-zh.m4: Likewise.
2591         * m4/locale_h.m4: Likewise.
2592         * m4/lock.m4: Likewise.
2593         * m4/logl.m4: Likewise.
2594         * m4/mathfunc.m4: Likewise.
2595         * m4/minus-zero.m4: Likewise.
2596         * m4/mktime.m4: Likewise.
2597         * m4/mmap-anon.m4: Likewise.
2598         * m4/multiarch.m4: Likewise.
2599         * m4/nanosleep.m4: Likewise.
2600         * m4/nocrash.m4: Likewise.
2601         * m4/poll.m4: Likewise.
2602         * m4/printf-frexpl.m4: Likewise.
2603         * m4/printf.m4: Likewise.
2604         * m4/signbit.m4: Likewise.
2605         * m4/sinl.m4: Likewise.
2606         * m4/sqrtl.m4: Likewise.
2607         * m4/strerror_r.m4: Likewise.
2608         * m4/tanl.m4: Likewise.
2609         * m4/threadlib.m4: Likewise.
2610         * m4/ttyname_r.m4: Likewise.
2611         * m4/unlink.m4: Likewise.
2612         * m4/visibility.m4: Likewise.
2613         * m4/wcwidth.m4: Likewise.
2614         * tests/minus-zero.h: Likewise.
2615         * tests/test-alloca-opt.c: Likewise.
2616         * tests/test-copy-acl.sh: Likewise.
2617         * tests/test-copy-file.sh: Likewise.
2618         * tests/test-fdatasync.c: Likewise.
2619         * tests/test-file-has-acl.sh: Likewise.
2620         * tests/test-flock.c: Likewise.
2621         * tests/test-fsync.c: Likewise.
2622         * tests/test-localename.c: Likewise.
2623         * tests/test-malloca.c: Likewise.
2624         * tests/test-nonblocking-pipe.h: Likewise.
2625         * tests/test-nonblocking-socket.h: Likewise.
2626         * tests/test-openpty.c: Likewise.
2627         * tests/test-posix_openpt.c: Likewise.
2628         * tests/test-ptsname.c: Likewise.
2629         * tests/test-ptsname_r.c: Likewise.
2630         * tests/test-sameacls.c: Likewise.
2631         * tests/test-select.h: Likewise.
2632         * tests/test-set-mode-acl.sh: Likewise.
2633         * tests/test-snprintf-posix.h: Likewise.
2634         * tests/test-sprintf-posix.h: Likewise.
2635         * tests/test-strtod.c: Likewise.
2636         * tests/test-time.c: Likewise.
2637         * tests/test-vasnprintf-posix.c: Likewise.
2638         * tests/test-vasprintf-posix.c: Likewise.
2639         * doc/acl-resources.txt: Likewise.
2640         * doc/**/*.texi: Likewise.
2641         Reported by Max Horn <max@quendi.de>.
2642
2643 2012-06-22  Bruno Haible  <bruno@clisp.org>
2644
2645         grantpt: Relax requirement regarding invalid file descriptors.
2646         * lib/grantpt.c: Don't include <fcntl.h>.
2647         (grantpt): Don't verify the validity of the file descriptor.
2648         * modules/grantpt (Depends-on): Remove fcntl-h.
2649         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2650         file descriptors.
2651         * doc/posix-functions/grantpt.texi: Document more platforms on which
2652         grantpt succeeds for invalid file descriptors.
2653         Reported by Rich Felker <dalias@aerifal.cx>.
2654
2655 2012-06-22  Bruno Haible  <bruno@clisp.org>
2656
2657         fbufmode test: Don't test unportable behaviour.
2658         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2659         (main): Invoke it three times.
2660         Reported by Szabolcs Nagy <nsz@port70.net>
2661         and Rich Felker <dalias@aerifal.cx>.
2662
2663 2012-06-21  Bruno Haible  <bruno@clisp.org>
2664
2665         gnulib-tool: Refactor inctests variable.
2666         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2667         (func_modules_transitive_closure,
2668         func_modules_transitive_closure_separately,
2669         func_import, func_create_testdir): Update.
2670
2671         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2672         * gnulib-tool: Accept option --without-tests.
2673         (func_usage): Document --without-tests option. Rearrange.
2674         (inctests): Normalize according to the mode.
2675         * NEWS: Mention the change.
2676         Suggested by Simon Josefsson.
2677
2678 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2679
2680         parse-duration test: Avoid spurious output.
2681         * tests/test-parse-duration.sh: Reindent with leading tabs.
2682
2683 2012-06-21  Jim Meyering  <meyering@redhat.com>
2684
2685         maint: disable the strncpy prohibition
2686         * cfg.mk: Do not prohibit strncpy here.
2687
2688 2012-06-21  Bruno Haible  <bruno@clisp.org>
2689
2690         nonblocking: Avoid compilation error on mingw64.
2691         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2692         fscanf.
2693         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2694         * modules/vfscanf (configure.ac): Likewise.
2695         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2696         definition only if stdio.h has prepared it.
2697         Reported by Daniel P. Berrange <berrange@redhat.com>.
2698
2699 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2700
2701         gnulib-tool: Use readlink if it is available.
2702         * gnulib-tool (func_readlink): Choose function more appropriately.
2703
2704 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2705
2706         posixtm-tests: port to buggy compiler
2707         Problem reported by Simon Josefsson in
2708         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2709         * modules/posixtm-tests (Depends-on): Add stdint.
2710         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2711         Now of type int_least64_t, not int64_t, both because that's
2712         what INT64_C returns and because int_least64_t works even
2713         on 72-bit hosts.
2714         (T): Use INT64_C on constants outside the traditional int range,
2715         to work around compiler bug noted by Simon.
2716
2717         mktime: fix integer overflow in 'configure'-time test
2718         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2719         after integer overflow.  Problem reported by Rich Felker in
2720         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2721         Also, don't look for further instances of a bug if we've already
2722         found one instance; this helps 'configure' run faster.
2723
2724 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2725
2726         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2727         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2728         GetVersionEx correctly.
2729         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2730
2731 2012-06-20  Bruno Haible  <bruno@clisp.org>
2732
2733         fdopen: Allow implementations that don't reject invalid fd arguments.
2734         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2735         succeeds.
2736         Reported by Rich Felker <dalias@aerifal.cx>.
2737
2738 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2739
2740         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2741         bring in LIBINTL.
2742
2743 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2744
2745         init.sh: do not rely on autoupated PWD
2746         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2747         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2748         Although Nelson's bug was not necessarily fixed by this patch,
2749         it seems wise to make the change for safety.
2750         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2751         automagically after 'cd'; this is not reliable on older shells.
2752         (setup_): Fail if we cannot cd to temporary directory.
2753
2754 2012-06-19  Bruno Haible  <bruno@clisp.org>
2755
2756         stat, fstat: Avoid warnings on mingw64.
2757         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2758         redefining.
2759         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2760         Reported by Daniel P. Berrange <berrange@redhat.com>.
2761
2762 2012-06-19  Bruno Haible  <bruno@clisp.org>
2763
2764         stdioext: Add support for musl libc.
2765
2766         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2767         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2768
2769         * m4/fseterr.m4: New file.
2770         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2771         function exists.
2772         * modules/fseterr (Files): Add m4/fseterr.m4.
2773         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2774         __fseterr does not exist.
2775         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2776
2777         * lib/freadable.h: Update comment.
2778
2779         * lib/fwritable.h: Update comment.
2780
2781         * lib/freading.h: Update comment.
2782
2783         * lib/fwriting.h: Update comment.
2784
2785         * m4/freadahead.m4: New file.
2786         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2787         that function exists.
2788         * modules/freadahead (Files): Add m4/freadahead.m4.
2789         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2790         __freadahead does not exist.
2791         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2792
2793         * m4/freadptr.m4: New file.
2794         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2795         function exists.
2796         * modules/freadptr (Files): Add m4/freadptr.m4.
2797         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2798         __freadptr does not exist.
2799         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2800
2801         * m4/freadseek.m4: New file.
2802         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2803         exists.
2804         * modules/freadseek (Files): Add m4/freadseek.m4.
2805         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2806
2807         * lib/fpurge.c (fpurge): Update comment.
2808
2809         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2810
2811 2012-06-19  Bruno Haible  <bruno@clisp.org>
2812
2813         *printf-posix: Put more info into config.log.
2814         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2815         exit code into config.log.
2816
2817 2012-06-19  Bruno Haible  <bruno@clisp.org>
2818
2819         getopt-gnu: Fix exit code overflow in autoconf test.
2820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2821         to keep them below < 128.
2822
2823 2012-06-17  Jim Meyering  <meyering@redhat.com>
2824
2825         maint.mk: fix typo in code to derive GPG key at release time
2826         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2827
2828 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2829
2830         regex: avoid warning when pointers are not long
2831         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2832         and uintptr_t, not long, for portability to hosts where pointers and
2833         long have different sizes.  Issue noted by Daniel P. Berrange in
2834         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2835         and fix suggested by Bruno Haible in
2836         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2837
2838 2012-06-17  Bruno Haible  <bruno@clisp.org>
2839
2840         dummy: Relicense into the public domain.
2841         * modules/dummy (License): Set to "public domain".
2842         Suggested by Reuben Thomas.
2843
2844 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2845
2846         announce-gen: VPATH issues
2847         * build-aux/announce-gen (--srcdir): New option, used to trim the
2848         $srcdir part of the path from $builddir to NEWS.
2849         * top/maint.mk (announcement): Adjust.
2850
2851 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2852
2853         gnu-web-doc-update: VPATH builds
2854         * build-aux/gnu-web-doc-update (--builddir): New option.
2855         Revamp the handling of options.
2856         Prefer $(...) to `...`.
2857         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2858         the template, and it is GNU mktemp specific.
2859         Prefer set -e to long series of &&.
2860         Restore the initial git branch, not "master".
2861         Properly initialize submodules (don't rely only on bootstrap).
2862         Do not reconfigure blindly, use config.status.
2863         * top/README-release: Update instructions for gnu-web-doc-update.
2864
2865 2012-06-11  Jim Meyering  <meyering@redhat.com>
2866
2867         maint.mk: revert most of the previous change re "all these"
2868         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2869         For rationale, see the discussion at
2870         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2871
2872 2012-06-10  Karl Berry  <karl@gnu.org>
2873
2874         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2875
2876         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2877
2878 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2879
2880         parse-duration: Relicense under LGPLv2+.
2881         * modules/parse-duration (License): Change to LGPLv2+.
2882
2883 2012-06-10  Jim Meyering  <meyering@redhat.com>
2884
2885         maint.mk: prohibit common grammar error: "all these"
2886         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2887         the list of prohibited word sequences.  It should be "all of these".
2888         * lib/tempname.c (__gen_tempname): Fix one of them.
2889
2890 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2891
2892         do-release-commit-and-tag: support VPATH builds
2893         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2894         (noteworthy): Defined earlier to factor its value.
2895         (noteworthy_stub): New.
2896         Use it to factor.
2897         (help_version): Split into...
2898         (help, version): these.
2899         Adjust the option processing part.
2900         Support "--option=value" in addition to "--option value".
2901         (builddir): New.
2902         (--builddir): New option.
2903         * top/README-release: Document this.
2904         Reword slightly so that the reader cannot understand that he
2905         has to do these steps before calling do-release-commit-and-tag.
2906
2907 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2908
2909         readme-release: also require announce-gen and maintainer-makefile
2910         * modules/readme-release (Depends-on): here.
2911         * modules/announce-gen, modules/do-release-commit-and-tag,
2912         modules/gnu-web-doc-update, modules/maintainer-makefile
2913         (Description): Point to readme-release.
2914
2915 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2916
2917         maint.mk: fix VPATH issues.
2918         * top/maint.mk (news-check): GNU Make understand $< very well.
2919         (release-prep): NEWS is in $(srcdir).
2920
2921 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2922
2923         readme-release: require the promoted modules.
2924         * modules/readme-release (Depends-on): Add
2925         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2926         in this text.
2927
2928 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2929             Bruno Haible  <bruno@clisp.org>
2930
2931         error, strerror-override: Support mingw64 from Fedora 17.
2932         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2933         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2934         EINPROGRESS.
2935         * lib/strerror-override.h (strerror_override): Test it.
2936         * lib/strerror-override.c (strerror_override): Likewise.
2937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2938
2939 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2940             Bruno Haible  <bruno@clisp.org>
2941
2942         error, strerror-override: Support mingw64 from Fedora 17.
2943         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2944         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2945         * lib/strerror-override.h (strerror_override): Test it.
2946         * lib/strerror-override.c (strerror_override): Likewise.
2947
2948 2012-06-03  Bruno Haible  <bruno@clisp.org>
2949
2950         error, strerror-override: Support new errno values from POSIX:2008.
2951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2952         ENOTRECOVERABLE.
2953         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2954         platforms.
2955         * lib/strerror-override.c (strerror_override): Conditionalize the
2956         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2957         * lib/strerror-override.h (strerror_override): Declare also if
2958         GNULIB_defined_EOWNERDEAD is defined.
2959         * tests/test-errno.c (e130, e131): New variables.
2960         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2961         ENOTRECOVERABLE.
2962         Reported by Paolo Bonzini.
2963
2964 2012-05-31  Jim Meyering  <meyering@redhat.com>
2965
2966         savewd: add missing dependency on sys_wait module
2967         * modules/savewd (Depends-on): Add sys_wait, needed at least
2968         for MSVC.  Report and suggested change by Michael Goffioul.
2969
2970 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2971
2972         system-quote-tests: port to CentOS 5
2973         Problem reported by Tom G. Christensen in
2974         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2975         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2976
2977 2012-05-29  Jim Meyering  <meyering@redhat.com>
2978
2979         maint: fix typos in comments and ChangeLog
2980         Culprits identified and fixed mostly automatically using these commands:
2981         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2982         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2983         using http://github.com/lyda/misspell-check
2984         * ChangeLog: Fix typos.
2985         * doc/solaris-versions: Likewise.
2986         * lib/regexec.c (re_search_stub): Likewise.
2987         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2988
2989 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2990
2991         manywarnings: remove duplicate -Wmultichar entry
2992         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2993         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2994         so keep the entry marked as documented.
2995
2996 2012-05-27  Karl Berry  <karl@gnu.org>
2997
2998         * config/srclist.txt (mktime.c): remove last libc sync,
2999         perhaps just temporarily.
3000
3001 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3002
3003         regex: don't assume uint64_t or uint32_t
3004         * lib/regcomp.c (init_word_char): Don't assume that the types
3005         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3006         them, and on some 32-bit compilers there is no uint64_t.
3007         Problem reported by Gianluigi Tiesi in
3008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3009
3010 2012-05-25  Jim Meyering  <meyering@redhat.com>
3011
3012         maint.mk: add strncpy-prohibiting syntax-check rule
3013         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3014
3015 2012-05-24  Jim Meyering  <meyering@redhat.com>
3016
3017         maint.mk: compute $(gpg_key_ID) more portably
3018         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3019         That use of sed is not portable to some fringe systems.
3020         Reported by Paul Eggert in
3021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3022
3023 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3024
3025         mktime: sync from glibc
3026         * config/srclist.txt: Uncomment mktime.c.
3027         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3028         First, indent with tabs, since glibc uses tabs and doesn't want to
3029         change and we'd rather be identical to glibc.  Also, two small
3030         coding changes:
3031         (isdst_differ): Use &&, not &, as && is the usual style.
3032         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3033         for clarity.
3034
3035 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3036
3037         announce-gen: du -h is more portable than du --human
3038         * build-aux/announce-gen (sizes): Invoke du with -h instead
3039         of --human.  Accept leading white space in its output.
3040
3041 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3042
3043         announce-gen: Improve diagnostics.
3044         * build-aux/announce-gen: When parsing command line options,
3045         prefer "announce-gen: option --release-type requires an argument"
3046         to "Option release-type requires an argument".
3047
3048 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3049
3050         maint.mk: gpg_key_ID: use sed more portably
3051         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3052         the closing brace.
3053         (refresh-po): Fuse two sed invocations into one.
3054
3055 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3056
3057         gitlog-to-changelog: support the log message format used in Bison.
3058         * build-aux/gitlog-to-changelog: Support --strip-tab and
3059         --strip-cherry-picked.
3060
3061 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3062
3063         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3064         the rest of the current time slice to another thread in the current
3065         process. So if the thread that feeds the file decscriptor we're
3066         polling is not in the current process, we get busy-waiting.
3067         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3068         Patch from Theodore Leblond.
3069         * lib/select.c: Split polling out of the loop that sets the output
3070         fd_sets.  Check for zero result and loop if the wait timeout is
3071         infinite.
3072
3073 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3074
3075         select: Fix build error on IRIX 6.5.
3076         * lib/select.c: Include stddef.h for NULL.
3077
3078 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3079
3080         gc: fix libgcrypt detection on older machines.
3081         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3082         copyright years because the file has been distributed every year
3083         since it was created.
3084
3085 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3086
3087         crypto: fix bug in large buffer handling
3088         Problem reported by Serge Belyshev for glibc in
3089         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3090         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3091         * lib/md4.c (md4_process_block):
3092         * lib/md5.c (md5_process_block):
3093         * lib/sha1.c (sha1_process_block):
3094         * lib/sha256.c (sha256_process_block):
3095         Don't assume the buffer length is less than 2**32.
3096         * lib/sha512.c (sha512_process_block): Likewise.
3097         Here, the bug is present only in the rare case where the host does
3098         not support uint64_t or where size_t is wider than 64 bits.
3099         Use u64size to work around the problems.
3100         * lib/u64.h (u64size): New macro.
3101
3102 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3103
3104         fsusage: fix block size returned on older Linux 2.6
3105
3106         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3107         which is available since Linux 2.6.
3108         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3109         when the member is available so it can be used as a fallback.
3110         * doc/posix-functions/statvfs.texi: Mention the hang issue
3111         on Linux < 2.6.36.
3112
3113 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3114
3115         bootstrap: suppress stderr chatter
3116         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3117         Omit unnecessary chatter to stderr.  The main program chatter
3118         was there only inadvertantly.
3119
3120         bootstrap: .gitignore files created by autopoint, libtool
3121         I ran into this problem when bootstrapping the latest diffutils.
3122         After './bootstrap', 'git status' reported lots of untracked files
3123         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3124         autopoint and do not need to be version-controlled.
3125         * build-aux/bootstrap: Put into .gitignore the files that
3126         autopoint and libtool create, by keeping track of files that exist
3127         after but not before these programs are run.
3128         (version_controlled_file): Move up.  2nd arg is now full file
3129         name, not base name; this is more convenient.  Put CVS at the end,
3130         as it's now somewhat deprecated.
3131
3132 2012-05-14  Jim Meyering  <meyering@redhat.com>
3133
3134         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3135         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3136         definition.  Reported by Bruno Haible.
3137
3138 2012-05-13  Bruno Haible  <bruno@clisp.org>
3139             Paul Eggert  <eggert@cs.ucla.edu>
3140
3141         binary-io: Define set_binary_mode function.
3142         * lib/binary-io.h (set_binary_mode): New function.
3143         (SET_BINARY): Define in terms of set_binary_mode.
3144         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3145         * tests/test-binary-io.c (main): Accept an argument, and test either
3146         set_binary_mode or SET_BINARY depending on the argument.
3147         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3148         argument. Clean up also t-bin-out0.tmp.
3149
3150 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3151
3152         bootstrap: take advantage of POSIX shell features
3153
3154         The 'bootstrap' script offered by Gnulib script already uses POSIX
3155         shell features (like $((...)) arithmetic expansions) that are not
3156         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3157         means that bootstrap must already be run using a proper POSIX shell,
3158         which will thus provide more features, like ${var#pattern} parameter
3159         expansion or inversion of a command exit status with '!'.  We can
3160         thus use these features to improve the clarity and the performances
3161         of the bootstrap script.
3162
3163         Suggested by Eric Blake.
3164
3165         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3166         of sed/expr plus command substitutions, to save some forks.  While
3167         we are at it, prefer the POSIX $(...) form of command substitution,
3168         rather than the legacy form `...` (since the former is visually
3169         clearer and interacts better with quoting), and prefer the idiom:
3170           "if ! CMD; then ACTION ..."
3171         over the idiom:
3172           "if CMD; then :; else ACTION ..."
3173         which was required by legacy Bourne shells not supporting '!'.
3174
3175 2012-05-12  Bruno Haible  <bruno@clisp.org>
3176
3177         system-quote: Add more comments.
3178         * lib/system-quote.h: Add more comments about wilcards and limitations.
3179         Suggested by Eli Zaretskii <eliz@gnu.org>.
3180
3181         sh-quote, system-quote: Add comments about wildcards.
3182         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3183         * lib/system-quote.h: Likewise.
3184         Reported by Eli Zaretskii <eliz@gnu.org>.
3185
3186 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         fsusage: check for GNU/Linux statvfs problem dynamically
3189         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3190         Define STAT_STATFS2_BSIZE too, since in this case the code now
3191         checks dynamically whether statvfs is reliable, falling back on
3192         Linux-style statfs otherwise.
3193         (statvfs_works): New function, for dynamically testing statvfs.
3194         (get_fs_usage) [STAT_STATVFS]: Use it.
3195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3196         statvfs on GNU/Linux hosts, since it's now done dynamically.
3197
3198 2012-05-10  Bruno Haible  <bruno@clisp.org>
3199
3200         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3201         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3202         '?' character.
3203         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3204         * tests/test-system-quote-main.c (check_all): Check also strings like
3205         "??????????".
3206         Reported by Eli Zaretskii <eliz@gnu.org>.
3207
3208 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3209
3210         _Noreturn: port config.h to gcc -Wundef
3211         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3212         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3213         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3214
3215 2012-05-10  Bruno Haible  <bruno@clisp.org>
3216
3217         system-quote: Refactor.
3218         * lib/system-quote.h (system_quote_copy): Fix comment.
3219         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3220         New functions, extracted from system_quote_copy.
3221         (system_quote_length, system_quote_copy): Use these functions.
3222         Reported by Paul Eggert.
3223
3224 2012-05-08  Bruno Haible  <bruno@clisp.org>
3225
3226         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3227         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3228
3229 2012-05-08  Bruno Haible  <bruno@clisp.org>
3230
3231         Tests for module 'system-quote'.
3232         * modules/system-quote-tests: New file.
3233         * tests/test-system-quote.sh: New file.
3234         * tests/test-system-quote-main.c: New file.
3235         * tests/test-system-quote-child.c: New file.
3236
3237         New module 'system-quote'.
3238         * lib/system-quote.h: New file.
3239         * lib/system-quote.c: New file.
3240         * modules/system-quote: New file.
3241
3242 2012-05-08  Bruno Haible  <bruno@clisp.org>
3243
3244         sh-quote: Make C++ safe and allow multiple inclusion.
3245         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3246         declarations in extern "C".
3247
3248 2012-05-08  Bruno Haible  <bruno@clisp.org>
3249
3250         sh-quote tests: Make tests stricter.
3251         * tests/test-sh-quote.c (check_one): Check the return value of
3252         shell_quote_copy.
3253         (main): Check a string with a CR character. Check a string that
3254         contains UCHAR_MAX.
3255
3256 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3257
3258         warnings.m4: provide a means to specify the program to compile.
3259         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3260         (gl_WARN_ADD): here.
3261         Use gl_AS_VAR_APPEND.
3262         Support an argument to specify the program to compile.
3263         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3264         AC_SUBST the WARN_CFLAGS when they are used.
3265         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3266         leave this to gl_WARN_ADD.
3267
3268 2012-05-08  Eric Blake  <eblake@redhat.com>
3269
3270         doc: recommendations on gettext version
3271         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3272         choice between versions.
3273         * DEPENDENCIES (gettext): Cover both approaches.
3274
3275 2012-05-08  Jim Meyering  <meyering@redhat.com>
3276
3277         init.sh: explain why EXEEXT support uses aliases rather than functions
3278         * tests/init.sh: Add a comment.
3279
3280         init.sh: don't let bash aliases interfere with tests
3281         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3282         is bash.  This avoids problems for those who alias standard commands to
3283         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3284         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3285
3286 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3287
3288         stdint: be more consistent with glibc, SunOS libc
3289         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3290         (gl_int_fast16_t, gl_uint_fast16_t)
3291         (gl_int_fast32_t, gl_uint_fast32_t)
3292         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3293         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3294         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3295         Be consistent with glibc by default, and with SunOS 5.10 and later
3296         if __sun is defined.  This lessens the likelihood of clashes if
3297         code compiled for older hosts is combined with code compiled for
3298         newer ones.  Problem reported by Niels Möller in
3299         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3300
3301 2012-05-07  Eric Blake  <eblake@redhat.com>
3302
3303         isatty: relax license to LGPLv2+
3304         * modules/isatty (License): Relax license.
3305
3306 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3307
3308         stat-size: comment fix
3309         * lib/stat-size.h: Remove obsolete comment about indenting.
3310
3311 2012-05-06  Bruno Haible  <bruno@clisp.org>
3312
3313         Tests for module 'sh-quote'.
3314         * modules/sh-quote-tests: New file.
3315         * tests/test-sh-quote.c: New file.
3316
3317 2012-05-06  Bruno Haible  <bruno@clisp.org>
3318
3319         sh-quote: Improve shell_quote_argv's signature.
3320         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3321         * lib/sh-quote.c (shell_quote_argv): Likewise.
3322
3323 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3324
3325         stdint: document issues with int_fast8_t etc.
3326         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3327         stdint.h substitutes may define these types differently.  See
3328         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3329
3330 2012-05-05  Bruno Haible  <bruno@clisp.org>
3331
3332         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3334         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3335         or 'guessing no (mishandles large arguments)'.
3336
3337 2012-05-05  Bruno Haible  <bruno@clisp.org>
3338
3339         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3341         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3342         set gl_cv_func_link_follows_symlink to "guessing no".
3343
3344 2012-05-05  Bruno Haible  <bruno@clisp.org>
3345
3346         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3347         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3348         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3349         "guessing no".
3350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3351
3352 2012-05-05  Bruno Haible  <bruno@clisp.org>
3353
3354         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3355         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3356         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3357         set gl_cv_struct_dirent_d_ino to "guessing yes".
3358
3359 2012-05-05  Bruno Haible  <bruno@clisp.org>
3360
3361         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3362         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3363         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3364         "guessing yes".
3365
3366 2012-05-05  Bruno Haible  <bruno@clisp.org>
3367
3368         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3369         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3370         compiling to a glibc system, set gl_cv_func_signbit and
3371         gl_cv_func_signbit_gcc to "guessing yes".
3372
3373 2012-05-05  Bruno Haible  <bruno@clisp.org>
3374
3375         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3376         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3377         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3378         to "guessing yes".
3379         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3380         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3381
3382 2012-05-05  Bruno Haible  <bruno@clisp.org>
3383
3384         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3385         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3386         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3387         gl_cv_func_realpath_works to "guessing yes".
3388
3389 2012-05-05  Bruno Haible  <bruno@clisp.org>
3390
3391         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3393         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3394
3395 2012-05-04  Bruno Haible  <bruno@clisp.org>
3396
3397         Tweak last commit.
3398         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3400
3401 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3402
3403         unistd_h: make it easier to avoid sys_types_h
3404         This is useful for Emacs, which has its own method of porting to
3405         Windows, and which therefore does not need the sys_types_h module.
3406         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3407         code moved here from gl_SYS_TYPES_H.
3408         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3409         using the code directly.
3410         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3411         gl_SYS_TYPES_H.
3412         * modules/sys_types (Files):
3413         * modules/unistd (Files): Add m4/off_t.m4.
3414
3415 2012-05-03  Bruno Haible  <bruno@clisp.org>
3416
3417         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3418         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3419         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3420         "guessing yes" or "guessing no".
3421         (gl_FUNC_LSTAT): Update.
3422         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3423         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3424         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3425
3426 2012-05-03  Bruno Haible  <bruno@clisp.org>
3427
3428         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3429         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3430         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3432         cross-compiling, choose the first alternative on glibc systems.
3433         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3434
3435 2012-05-03  Bruno Haible  <bruno@clisp.org>
3436
3437         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3438         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3439         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3440
3441 2012-05-03  Bruno Haible  <bruno@clisp.org>
3442
3443         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3444         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3445
3446 2012-05-03  Bruno Haible  <bruno@clisp.org>
3447
3448         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3449         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3450         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3451         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3452         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3453         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3454         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3455         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3456         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3457         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3458         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3459         gl_cv_func_chown_ctime_works to "guessing yes".
3460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3461         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3462         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3463         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3464         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3466         compiling to glibc systems, set gl_cv_func_open_directory_works to
3467         "guessing yes".
3468         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3469         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3470         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3471         "guessing yes".
3472         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3473         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3474         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3475         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3476         "guessing yes".
3477         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3478         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3479         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3480         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3481         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3482         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3483         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3484         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3485         "guessing yes".
3486         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3487         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3488         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3489         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3490         "guessing yes".
3491         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3492         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3493         "guessing yes".
3494         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3495         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3496         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3497         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3498         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3499         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3500         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3501         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3502         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3503         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3504         "guessing yes".
3505         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3506         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3507         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3508         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3509         "guessing yes".
3510         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3511         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3512         "guessing yes".
3513         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3514         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3515         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3516         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3517         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3518         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3519         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3520         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3521         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3522         "guessing yes".
3523         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3524         compiling to glibc systems, set gl_cv_func_mknod_works to
3525         "guessing yes".
3526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3527         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3528         "guessing yes".
3529         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3530         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3531         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3532         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3533         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3534         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3535         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3536         compiling to glibc systems, set gl_cv_func_svid_putenv to
3537         "guessing yes".
3538         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3539         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3540         "guessing yes".
3541         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3542         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3543         "guessing yes".
3544         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3545         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3546         to "guessing yes".
3547         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3548         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3549         to "guessing yes".
3550         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3551         compiling to glibc systems, set gl_cv_func_rmdir_works to
3552         "guessing yes".
3553         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3554         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3555         gl_cv_func_unlink_parent_fails to "guessing yes".
3556         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3557         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3558         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3559         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3560         gl_cv_func_rename_dest_works to "guessing yes".
3561         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3562         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3564         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3565         "guessing yes".
3566         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3567         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3568         "guessing yes".
3569         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3570         compiling to glibc systems, set gl_cv_func_setenv_works to
3571         "guessing yes".
3572         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3573         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3574         "guessing yes".
3575         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3576         compiling to glibc systems, set gl_cv_func_sleep_works to
3577         "guessing yes".
3578         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3579         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3580         "guessing yes".
3581         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3582         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3583         "guessing yes".
3584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3585         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3586         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3587         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3588         "guessing yes".
3589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3590         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3591         "guessing yes".
3592         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3593         compiling to glibc systems, set gl_cv_func_usleep_works to
3594         "guessing yes".
3595         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3596         compiling to glibc systems, set gl_cv_func_futimesat_works to
3597         "guessing yes".
3598
3599 2012-05-03  Bruno Haible  <bruno@clisp.org>
3600
3601         Say "guessing yes" or "guessing no" when cross-compiling.
3602         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3603         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3605         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3606         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3607         am_cv_func_working_getline to "guessing yes" or "guessing no".
3608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3609         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3610         (gl_FUNC_MEMMEM): When cross-compiling, set
3611         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3613         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3615         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3616         "guessing no".
3617         (gl_FUNC_STRCASESTR): When cross-compiling, set
3618         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3619         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3620         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3621         (gl_FUNC_STRSTR): When cross-compiling, set
3622         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3623         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3624         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3625         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3626         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3627
3628 2012-05-01  Bruno Haible  <bruno@clisp.org>
3629
3630         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3631         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3632         * build-aux/reloc-ldflags: Likewise.
3633         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3634
3635 2012-05-01  Bruno Haible  <bruno@clisp.org>
3636
3637         gnulib-tool: Remove transitional code.
3638         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3639         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3640
3641 2012-05-01  Bruno Haible  <bruno@clisp.org>
3642
3643         getcwd: Fix misindentation.
3644         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3645
3646 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3647
3648         exclude: process exclude and include directives in order
3649         This restores the pre-2009 behavior, and is part of a fix of a
3650         grep bug reported by Quentin Arce in
3651         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3652         * lib/exclude.c (struct exclude): Remove 'tail' member.
3653         (new_exclude_segment): Prepend the new segment instead of appending.
3654         Return void, since that's now more convenient.
3655         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3656         (file_name_matches): Renamed from excluded_file_name_p.
3657         (file_pattern_matches, file_name_matches):
3658         Return true if the pattern matches, not if it excludes.
3659         All callers changed.
3660         (excluded_file_name): Process the list in reverse order;
3661         since the list is now reversed this restores the pre-2009 behavior.
3662         (add_exclude): Adjust to new reversed-order list.  Use local var
3663         rather than macro, for clarity.
3664         * tests/test-exclude7.sh: Adjust to corrected behavior.
3665
3666         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3667         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3668         it's not possible here.  Handle the case of \ at end of pattern
3669         without dumping core.
3670         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3671
3672         _Noreturn: future-proof non-GNU and non-MSVC compilers
3673         * build-aux/snippet/_Noreturn.h (_Noreturn):
3674         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3675         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3676         C11 or later.  This is more likely to work with random future C
3677         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3678         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3679
3680         exclude: handle wildcards with FNM_EXTMATCH
3681         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3682         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3683         comment that "has wildcards" really means "has or may have
3684         wildcards".  Simplify by avoiding the need to call strcspn.
3685
3686 2012-04-29  Bruno Haible  <bruno@clisp.org>
3687
3688         gnulib-tool: Fix list of authors.
3689         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3690
3691 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3692
3693         bootstrap: support Automake-NG in $buildreq
3694         * bootstrap (check_versions): Handle automake and aclocal from
3695         Automake-NG specially.  They can be specified as respectively
3696         the "automake-ng" and "aclocal-ng" requirements.
3697
3698 2012-04-25  Eric Blake  <eblake@redhat.com>
3699
3700         bootstrap: only force latest Makefile.in.in for gettext module
3701         * build-aux/bootstrap (with_gettext): Only install latest
3702         Makefile.in.in for projects requesting bleeding edge gettext.
3703
3704 2012-04-22  Bruno Haible  <bruno@clisp.org>
3705
3706         doc: Mention reason for replacement on glibc/Linux systems.
3707         * doc/posix-functions/dprintf.texi: Mention the problem with special
3708         'long double' values.
3709         * doc/posix-functions/fprintf.texi: Likewise.
3710         * doc/posix-functions/printf.texi: Likewise.
3711         * doc/posix-functions/snprintf.texi: Likewise.
3712         * doc/posix-functions/sprintf.texi: Likewise.
3713         * doc/posix-functions/vdprintf.texi: Likewise.
3714         * doc/posix-functions/vfprintf.texi: Likewise.
3715         * doc/posix-functions/vprintf.texi: Likewise.
3716         * doc/posix-functions/vsnprintf.texi: Likewise.
3717         * doc/posix-functions/vsprintf.texi: Likewise.
3718         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3719         platforms with F_DUPFD_CLOEXEC problems.
3720         * doc/posix-functions/glob.texi: Mention which platforms are affected
3721         by the problem with symbolic links.
3722         * doc/posix-functions/linkat.texi: Mention the problem with
3723         AT_SYMLINK_FOLLOW on Linux.
3724
3725 2012-04-22  Bruno Haible  <bruno@clisp.org>
3726
3727         pwrite: Don't replace on all platforms.
3728         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3729
3730 2012-04-22  Bruno Haible  <bruno@clisp.org>
3731
3732         rint* tests: Avoid gcc warnings.
3733         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3734         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3735         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3736
3737 2012-04-21  Bruno Haible  <bruno@clisp.org>
3738
3739         users.txt: Update.
3740         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3741         switched from CVS to git, bzr, or svn.
3742
3743 2012-04-21  Bruno Haible  <bruno@clisp.org>
3744
3745         Large File Support for native Windows platforms.
3746
3747         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3748         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3749
3750         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3751         type.
3752         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3753         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3754         * doc/posix-headers/sys_types.texi: Mention the effect of the
3755         'largefile' module.
3756
3757         * lib/fcntl.in.h: Add comments about off_t.
3758         * modules/fcntl-h (Depends-on): Add sys_types.
3759
3760         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3761         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3762         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3763         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3764         * modules/unistd (Depends-on): Add sys_types.
3765         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3766
3767         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3768         instead of lseek.
3769         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3770         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3771         * modules/lseek (Depends-on): Add sys_types.
3772
3773         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3774         msvc-nothrow.h.
3775         (SetFileSize): New function.
3776         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3777         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3778         if Large File Support is requested.
3779         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3780         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3781
3782         * lib/stdio.in.h: Add comments about off_t.
3783         * modules/stdio (Depends-on): Add sys_types.
3784
3785         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3786         instead of ftello.
3787         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3788         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3789         (gl_PREREQ_FTELLO): New macro.
3790         * modules/ftello (Depends-on): Add sys_types.
3791         (configure.ac): Incoke gl_PREREQ_FTELLO.
3792
3793         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3794         instead of fseeko.
3795         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3796         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3797         (gl_PREREQ_FSEEKO): New macro.
3798         * modules/fseeko (Depends-on): Add sys_types.
3799         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3800
3801         * lib/sys_stat.in.h: Add comments about off_t.
3802         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3803         64-bit integer for st_size in 'struct stat'.
3804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3805         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3806         * modules/sys_stat (Depends-on): Add sys_types.
3807         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3808
3809         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3810         instead of stat or _stat.
3811
3812         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3813         'struct _stati64' instead of fstat and 'struct stat'.
3814         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3815         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3816
3817         Reported by Ray Satiro <raysatiro@yahoo.com>.
3818
3819 2012-04-19  Eric Blake  <eblake@redhat.com>
3820
3821         bootstrap: accommodate older libtool
3822         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3823         Reported by Daniel P. Berrange.
3824
3825 2012-04-19  Jim Meyering  <meyering@redhat.com>
3826
3827         announce-gen: avoid failure due to lack of Digest::SHA1
3828         Even with the preferred Digest::SHA available, this script
3829         would fail when the backup module, Digest::SHA1, was not installed.
3830         * build-aux/announce-gen: Quote the conditional use of "use".
3831         Reported by Reuben Thomas in:
3832         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3833
3834         bootstrap: don't let a user's CDPATH setting affect this script
3835         When CDPATH is set, cd will sometimes generate output.
3836         When "cd" is run in a subshell whose output matters, that
3837         surprising-to-some output can cause malfunction.
3838         Unsetting CDPATH turns off this shell "feature."
3839         * build-aux/bootstrap (CDPATH): Unset.
3840         Reported by Reuben Thomas in:
3841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3842         and inspired by his patch here:
3843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3844
3845 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3846         and Jim Meyering  <meyering@redhat.com>
3847
3848         maint.mk: catch "see @xref{}" and similar
3849         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3850         prohibit "See also @xref{", "Also see @pxref{", and similar.
3851
3852 2012-04-16  Jim Meyering  <meyering@redhat.com>
3853
3854         bootstrap: really use gnulib's po/Makefile.in.in
3855         * build-aux/bootstrap: Correct the source file name in previous change.
3856         Reported by Akim Demaille.
3857
3858         configmake: correct minor inconsistency in Makefile rule
3859         * modules/configmake (Makefile.am): All other rules like this one
3860         run the final "mv -f ..." in the same backslash-continued command
3861         as the one that does everything else.  This one put the mv -f ...
3862         command on a separate, non-backslash-continued line.
3863         Make it like the others.
3864
3865         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3866         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3867         the one from gettext.  Reported by Akim Demaille.
3868
3869 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3870
3871         Fix recursion of install-* into po directories.
3872         Bison's install-pdf bug reported by Hans Aberg at
3873         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3874         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3875         (install-info, install-pdf, install-ps): New targets.
3876
3877 2012-04-16  Jim Meyering  <meyering@redhat.com>
3878
3879         maint: avoid spurious "make sc_maint" failure
3880         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3881         exempt all *.class file names, for lib/javaversion.class.
3882
3883 2012-04-15  Bruno Haible  <bruno@clisp.org>
3884
3885         lseek: Make configure test independent of environment.
3886         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3887         Windows, we know that lseek() on pipes is broken; skip the runtime
3888         test.
3889
3890 2012-04-14  Bruno Haible  <bruno@clisp.org>
3891
3892         stat: Bypass buggy override in mingw64.
3893         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3894         * lib/stat.c (stat) [mingw64]: Define to _stat.
3895         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3896
3897 2012-04-14  Bruno Haible  <bruno@clisp.org>
3898
3899         pathmax: Fix compilation error on MSVC 9.
3900         * modules/pathmax (Depends-on): Add unistd.
3901
3902 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3903
3904         README: document pointer comparison assumption
3905         * README (Portability guidelines): Document assumption about
3906         pointer comparisons, in response to a recent bug-gnulib comment by
3907         Jeffrey Kegler.
3908
3909 2012-04-12  Bruno Haible  <bruno@clisp.org>
3910
3911         Tests for module 'getrusage'.
3912         * modules/getrusage-tests: New file.
3913         * tests/test-getrusage.c: New file.
3914
3915         New module 'getrusage'.
3916         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3917         warn-on-use.h.
3918         (getrusage): New declaration.
3919         * lib/getrusage.c: New file.
3920         * m4/getrusage.m4: New file.
3921         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3922         is declared.
3923         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3924         HAVE_GETRUSAGE.
3925         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3926         snippet/c++defs, snippet/warn-on-use.
3927         (Makefile.am): Update generation of sys/resource.h. Substitute
3928         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3929         * modules/getrusage: New file.
3930         * doc/posix-functions/getrusage.texi: Mention the new module.
3931
3932 2012-04-12  Bruno Haible  <bruno@clisp.org>
3933
3934         Tests for module 'sys_resource'.
3935         * modules/sys_resource-tests: New file.
3936         * tests/test-sys_resource.c: New file.
3937
3938         New module 'sys_resource'.
3939         * lib/sys_resource.in.h: New file.
3940         * m4/sys_resource_h.m4: New file.
3941         * modules/sys_resource: New file.
3942         * doc/posix-headers/sys_resource.texi: Mention the new module.
3943
3944 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3945
3946         ioctl: Fix compilation error on mingw.
3947         * lib/ioctl.c: Include <windows.h>.
3948         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3949
3950 2012-04-04  Jim Meyering  <meyering@redhat.com>
3951
3952         regex: correct #pragma guard expression
3953         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3954         not 4.3.  Correct its cpp guard expression.
3955
3956 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3957
3958         regex: remove unnecessary type punning
3959         Problem reported by Vladimir Serbinenko in
3960         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3961         * lib/regex.h (struct re_pattern_buffer): Change the type of
3962         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3963         Fix comment to match code.
3964         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3965         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3966         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3967         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3968         (set_regs):
3969         Omit no-longer-necessary casts.
3970
3971 2012-04-03  Bruno Haible  <bruno@clisp.org>
3972
3973         Tests for module 'ilogbl'.
3974         * modules/ilogbl-tests: New file.
3975         * tests/test-ilogbl.c: New file.
3976
3977         New module 'ilogbl'.
3978         * lib/math.in.h (ilogbl): New declaration.
3979         * lib/ilogbl.c: New file.
3980         * m4/ilogbl.m4: New file.
3981         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3983         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3984         Split sed invocation, to avoid the limit of 100 substitutions of
3985         HP-UX 'sed'.
3986         * modules/ilogbl: New file.
3987         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3988         * doc/posix-functions/ilogbl.texi: Mention the new module.
3989
3990 2012-04-03  Bruno Haible  <bruno@clisp.org>
3991
3992         Tests for module 'ilogbf'.
3993         * modules/ilogbf-tests: New file.
3994         * tests/test-ilogbf.c: New file.
3995
3996         New module 'ilogbf'.
3997         * lib/math.in.h (ilogbf): New declaration.
3998         * lib/ilogbf.c: New file.
3999         * m4/ilogbf.m4: New file.
4000         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4002         REPLACE_ILOGBF.
4003         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4004         REPLACE_ILOGBF.
4005         * modules/ilogbf: New file.
4006         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4007         * doc/posix-functions/ilogbf.texi: Mention the new module.
4008
4009 2012-04-03  Bruno Haible  <bruno@clisp.org>
4010
4011         Tests for module 'ilogb'.
4012         * modules/ilogb-tests: New file.
4013         * tests/test-ilogb.c: New file.
4014         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4015         tests/test-logb-ieee.h.
4016
4017         New module 'ilogb'.
4018         * lib/math.in.h (ilogb): New declaration.
4019         * lib/ilogb.c: New file.
4020         * m4/ilogb.m4: New file.
4021         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4023         REPLACE_ILOGB.
4024         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4025         REPLACE_ILOGB.
4026         * modules/ilogb: New file.
4027         * tests/test-math-c++.cc: Check the declaration of ilogb.
4028         * doc/posix-functions/ilogb.texi: Mention the new module.
4029
4030 2012-04-03  Bruno Haible  <bruno@clisp.org>
4031
4032         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4033         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4034         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4035         (main): Check their values.
4036         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4037         problem.
4038
4039 2012-04-03  Bruno Haible  <bruno@clisp.org>
4040
4041         Tests for module 'logbl-ieee'.
4042         * modules/logbl-ieee-tests: New file.
4043         * tests/test-logbl-ieee.c: New file.
4044
4045         New module 'logbl-ieee'.
4046         * modules/logbl-ieee: New file.
4047
4048         Tests for module 'logb-ieee'.
4049         * modules/logb-ieee-tests: New file.
4050         * tests/test-logb-ieee.c: New file.
4051
4052         New module 'logb-ieee'.
4053         * modules/logb-ieee: New file.
4054
4055         Tests for module 'logbf-ieee'.
4056         * modules/logbf-ieee-tests: New file.
4057         * tests/test-logbf-ieee.c: New file.
4058         * tests/test-logb-ieee.h: New file.
4059
4060         New module 'logbf-ieee'.
4061         * modules/logbf-ieee: New file.
4062
4063 2012-04-03  Bruno Haible  <bruno@clisp.org>
4064
4065         Tests for module 'logbl'.
4066         * modules/logbl-tests: New file.
4067         * tests/test-logbl.c: New file.
4068
4069         New module 'logbl'.
4070         * lib/math.in.h (logbl): New declaration.
4071         * lib/logbl.c: New file.
4072         * m4/logbl.m4: New file.
4073         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4075         REPLACE_LOGBL.
4076         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4077         REPLACE_LOGBL.
4078         * modules/logbl: New file.
4079         * tests/test-math-c++.cc: Check the declaration of logbl.
4080         * doc/posix-functions/logbl.texi: Mention the new module.
4081
4082 2012-04-02  Bruno Haible  <bruno@clisp.org>
4083
4084         Tests for module 'logbf'.
4085         * modules/logbf-tests: New file.
4086         * tests/test-logbf.c: New file.
4087
4088         New module 'logbf'.
4089         * lib/math.in.h (logbf): New declaration.
4090         * lib/logbf.c: New file.
4091         * m4/logbf.m4: New file.
4092         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4094         REPLACE_LOGBF.
4095         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4096         REPLACE_LOGBF.
4097         * modules/logbf: New file.
4098         * tests/test-math-c++.cc: Check the declaration of logbf.
4099         * doc/posix-functions/logbf.texi: Mention the new module.
4100
4101 2012-04-02  Bruno Haible  <bruno@clisp.org>
4102
4103         logb tests: More tests.
4104         * tests/test-logb.h: New file, based on tests/test-logb.c and
4105         tests/test-frexp.h.
4106         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4107         (main): Just invoke test_function.
4108         * modules/logb-tests (Files): Add tests/test-logb.h,
4109         tests/minus-zero.h, tests/randomd.c.
4110         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4111
4112         logb: Provide replacement and workarounds.
4113         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4114         is 1.
4115         * lib/logb.c: New file.
4116         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4117         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4119         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4120         * modules/logb (Files): Add lib/logb.c.
4121         (Depends-on): Add isfinite, frexp, isnand.
4122         (configure.ac): Compile the replacement code logb.c if needed.
4123         * tests/test-math-c++.cc: Check the declaration of logb.
4124         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4125         with subnormal numbers.
4126
4127 2012-04-02  Bruno Haible  <bruno@clisp.org>
4128
4129         log10* tests: Speed up.
4130         * tests/test-log10.h (test_function): Reduce amount of random numbers
4131         to test.
4132
4133 2012-04-01  Bruno Haible  <bruno@clisp.org>
4134
4135         logf-ieee: Fix test whether logf works.
4136         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4137
4138 2012-04-01  Bruno Haible  <bruno@clisp.org>
4139
4140         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4141         * lib/log10l.c: Include <float.h>
4142         (log10l): On IRIX, normalize the +Infinity value.
4143         * modules/log10l (Depends-on): Add 'float'.
4144         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4145         +Infinity.
4146
4147         log10f-ieee: Work around test failure on NetBSD 5.1.
4148         * m4/log10f-ieee.m4: New file.
4149         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4150         test whether log10f works with a negative argument. Replace it if not.
4151         * lib/log10f.c (log10f): For negative arguments, return NaN.
4152         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4153         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4154         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4155
4156         log10f-ieee: Work around test failure on Solaris 9.
4157         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4158         (configure.ac): Require gl_FUNC_LOG10F.
4159
4160         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4161         * m4/log10-ieee.m4: New file.
4162         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4163         whether log10 works with a negative argument. Replace it if not.
4164         * lib/log10.c (log10): For negative arguments, return NaN.
4165         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4166         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4167         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4168
4169         Tests for module 'log10l-ieee'.
4170         * modules/log10l-ieee-tests: New file.
4171         * tests/test-log10l-ieee.c: New file.
4172
4173         New module 'log10l-ieee'.
4174         * modules/log10l-ieee: New file.
4175
4176         Tests for module 'log10-ieee'.
4177         * modules/log10-ieee-tests: New file.
4178         * tests/test-log10-ieee.c: New file.
4179
4180         New module 'log10-ieee'.
4181         * modules/log10-ieee: New file.
4182
4183         Tests for module 'log10f-ieee'.
4184         * modules/log10f-ieee-tests: New file.
4185         * tests/test-log10f-ieee.c: New file.
4186         * tests/test-log10-ieee.h: New file.
4187
4188         New module 'log10f-ieee'.
4189         * modules/log10f-ieee: New file.
4190
4191 2012-04-01  Bruno Haible  <bruno@clisp.org>
4192
4193         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4194         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4195         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4196         workaround.
4197         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4198         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4200         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4201         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4202         (Depends-on): Update conditions.
4203         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4204         IRIX 6.5, OSF/1 5.1 problems.
4205
4206 2012-04-01  Bruno Haible  <bruno@clisp.org>
4207
4208         log10f: Work around OSF/1 5.1 bug.
4209         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4210         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4211         workaround.
4212         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4213         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4215         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4216         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4217         (Depends-on): Update conditions.
4218         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4219
4220 2012-04-01  Bruno Haible  <bruno@clisp.org>
4221
4222         log10: Work around OSF/1 5.1 bug.
4223         * lib/math.in.h (log10): New declaration.
4224         * lib/log10.c: New file.
4225         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4226         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4227         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4229         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4230         * modules/log10 (Files): Add lib/log10.c.
4231         (Depends-on): Add math.
4232         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4233         * tests/test-math-c++.cc: Check the declaration of log10.
4234         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4235
4236 2012-03-31  Bruno Haible  <bruno@clisp.org>
4237
4238         log10l tests: More tests.
4239         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4240         tests/minus-zero.h, tests/randoml.c.
4241         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4242         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4243         (main): Invoke test_function.
4244
4245         log10f tests: More tests.
4246         * modules/log10f-tests (Files): Add tests/test-log10.h,
4247         tests/minus-zero.h, tests/randomf.c.
4248         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4249         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4250         (main): Invoke test_function.
4251
4252         log10 tests: More tests.
4253         * tests/test-log10.h: New file.
4254         * modules/log10-tests (Files): Add tests/test-log10.h,
4255         tests/minus-zero.h, tests/randomd.c.
4256         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4257         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4258         (main): Invoke test_function.
4259
4260 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4261
4262         fflush: Fix syntax error.
4263         * lib/fflush.c: Include unused-parameter.h, needed for
4264         _GL_UNUSED_PARAMETER.
4265         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4266
4267 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4268
4269         regex: pacify GCC when compiling GRUB
4270         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4271         a diagnostic.  Reported by Vladimir Serbinenko in
4272         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4273
4274 2012-03-29  Eric Blake  <eblake@redhat.com>
4275
4276         stdio: don't assume gets any more
4277         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4278         support.
4279         * modules/stdio (Makefile.am): Likewise.
4280         * lib/stdio-read.c (gets): Likewise.
4281         * tests/test-stdio-c++.cc: Likewise.
4282         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4283         * lib/stdio.in.h (gets): Make warning occur in more places.
4284         * doc/posix-functions/gets.texi (gets): Update documentation.
4285         Reported by Christer Solskogen.
4286
4287         maint.mk: fix syntax checks without exclusions
4288         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4289         Reported by Daniel P. Berrange.
4290
4291         strerror_r: avoid compiler warning
4292         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4293         level.
4294
4295         fflush: avoid compiler warning
4296         * lib/fflush.c (update_fpos_cache): Mark variables that are
4297         potentially unused.
4298
4299 2012-03-25  Bruno Haible  <bruno@clisp.org>
4300
4301         Tests for module 'localeconv'.
4302         * modules/localeconv-tests: New file.
4303         * tests/test-localeconv.c: New file.
4304
4305         New module 'localeconv'.
4306         * lib/locale.in.h (localeconv): New declaration.
4307         * lib/localeconv.c: New file.
4308         * m4/localeconv.m4: New file.
4309         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4310         REPLACE_LOCALECONV.
4311         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4312         REPLACE_LOCALECONV.
4313         * modules/localeconv: New file.
4314         * modules/nl_langinfo (Depends-on): Add localeconv.
4315         * modules/human (Depends-on): Likewise.
4316         * doc/posix-functions/localeconv.texi: Mention the new module.
4317
4318 2012-03-25  Bruno Haible  <bruno@clisp.org>
4319
4320         locale: Provide a complete 'struct lconv'.
4321         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4322         'struct lconv' does not contain int_p_cs_precedes.
4323         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4324         * doc/posix-headers/locale.texi: Update.
4325
4326         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4327         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4328         * doc/posix-headers/locale.texi: Update.
4329
4330         locale: Provide a working 'struct lconv'.
4331         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4332         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4333         'struct lconv' does not even contain decimal_point.
4334         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4335         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4336         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4337         * doc/posix-headers/locale.texi: Mention the problems with
4338         'struct lconv'.
4339         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4340
4341 2012-03-24  Bruno Haible  <bruno@clisp.org>
4342
4343         Enable common subexpression optimization in GCC.
4344         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4345         macros.
4346         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4347         GCC attribute 'const'.
4348         (uc_locale_language): Declare with GCC attribute 'pure'.
4349         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4350         with GCC attribute 'const'.
4351         * lib/unictype.in.h (uc_is_general_category_withtable,
4352         uc_combining_class, uc_combining_class_name,
4353         uc_combining_class_long_name, uc_bidi_class_name,
4354         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4355         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4356         uc_decimal_value, uc_digit_value, uc_numeric_value,
4357         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4358         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4359         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4360         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4361         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4362         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4363         Declare with GCC attribute 'const'.
4364         (uc_general_category_name, uc_general_category_long_name,
4365         uc_general_category_byname, uc_general_category,
4366         uc_is_general_category, uc_combining_class_byname,
4367         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4368         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4369         Declare with GCC attribute 'pure'.
4370         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4371         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4372         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4373         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4374         with GCC attribute 'pure'.
4375         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4376         'const'.
4377         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4378         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4379         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4380         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4381         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4382         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4383         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4384         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4385         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4386         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4387         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4388         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4389         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4390         GCC attribute 'pure'.
4391         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4392         'const'.
4393         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4394         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4395         u32_strwidth): Declare with GCC attribute 'pure'.
4396
4397         Enable common subexpression optimization in GCC.
4398         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4399         (alphasort): Declare with GCC attribute 'pure'.
4400         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4401         (atoll): Declare with GCC attribute 'pure'.
4402         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4403         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4404         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4405         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4406         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4407         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4408         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4409
4410 2012-03-24  Bruno Haible  <bruno@clisp.org>
4411
4412         gnulib-tool: Avoid unintended error output from 'cmp'.
4413         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4414         "cmp -s", not "cmp > /dev/null".
4415
4416 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4417
4418         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4419
4420         It's not just Automake versions < 1.9b that creates an empty
4421         pkgdatadir at installation time if pkgdata_DATA is specified
4422         to empty; modern automake versions do this as well, at least
4423         until automake 1.11.4 (not yet released at the moment of writing,
4424         but soon to appear).  That behaviour was generally considered a
4425         feature rather than a bug, at least until this discussion:
4426         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4427
4428         See also automake bugs #10997 and #11030.
4429
4430         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4431         reference to relevant automake bug numbers.
4432         (func_emit_tests_Makefile_am): Likewise.
4433
4434 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4435
4436         announce-gen: use Digest::SHA when possible
4437         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4438         back to Digest::SHA1 if necessary.
4439
4440 2012-03-20  Jim Meyering  <meyering@redhat.com>
4441
4442         tests: avoid gcc warnings about argv vs. const initializers
4443         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4444         warnings about discarding 'const' qualifier from pointer target type.
4445         * tests/test-posix_spawn2.c (main): Likewise.
4446
4447 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4448
4449         README-release: simplify slightly
4450         * top/README-release: Run "git checkout master" only once.
4451
4452 2012-03-15  Mark Wielaard  <mark@klomp.org>
4453
4454         git-merge-changelog: add specific example on how to use with hg.
4455         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4456
4457 2012-03-18  Mark Wielaard  <mark@klomp.org>
4458
4459         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4460
4461 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4462
4463         git-version-gen: don't let "prefix" envvar cause trouble
4464         * build-aux/git-version-gen (prefix): Initialize properly,
4465         so as not to use a value specified via the environment.
4466         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4467
4468 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4469
4470         regex: diagnose too-large repeat counts in EREs
4471         Previously, the code did not diagnose the too-large repeat count
4472         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4473         as if it were 'b\{1000000000}', which is unexpected.
4474         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4475         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4476         is a reasonable one for this problem.  Another option would be to
4477         create a new REG_OVERFLOW error for repeat counts that are too large.
4478         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4479         count is too large, so that the caller can distinguish the two cases.
4480         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4481         "Too large" return code, and that repeat counts are one example of this.
4482
4483 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4484
4485         doc: some glibc x32 integer width issues
4486         * doc/posix-headers/sys_types.texi (sys/types.h):
4487         * doc/posix-headers/time.texi (time.h):
4488         Mention that glibc x32 does not conform to POSIX in a couple of
4489         areas related to integer widths.
4490
4491 2012-03-15  Bruno Haible  <bruno@clisp.org>
4492
4493         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4494         * lib/fma.c (VOLATILE): New macro.
4495         (FUNC): Use it to work around a GCC compiler bug.
4496
4497 2012-03-13  Bruno Haible  <bruno@clisp.org>
4498
4499         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4500         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4501         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4502         REPLACE_HYPOTL to 1.
4503         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4504
4505 2012-03-13  Bruno Haible  <bruno@clisp.org>
4506
4507         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4508         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4509         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4510         REPLACE_REMAINDERL to 1.
4511         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4512         bug.
4513
4514 2012-03-13  Bruno Haible  <bruno@clisp.org>
4515
4516         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4517         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4518         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4519         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4520         too big rounding errors.
4521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4522         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4523         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4524         (Depends-on): Update conditions.
4525         * tests/test-sqrtl.c (my_ldexpl): New function.
4526         (main): Add test of a particular value.
4527         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4528
4529 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4530
4531         doc: Update timer_* platform portability notes.
4532         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4533         that always return ENOSYS.
4534         * doc/posix-functions/timer_delete.texi: Likewise.
4535         * doc/posix-functions/timer_gettime.texi: Likewise.
4536         * doc/posix-functions/timer_settime.texi: Likewise.
4537
4538 2012-03-13  Bruno Haible  <bruno@clisp.org>
4539
4540         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4541         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4542         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4543         REPLACE_CBRTL to 1.
4544         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4545
4546 2012-03-13  Bruno Haible  <bruno@clisp.org>
4547
4548         remainderl: Avoid compilation error on AIX >= 5.2.
4549         * lib/math.in.h (remainderl): Undefine macro from the system header.
4550
4551 2012-03-13  Bruno Haible  <bruno@clisp.org>
4552
4553         Avoid compilation errors with MSVC option -fp:strict.
4554         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4555         * lib/cbrtf.c: Likewise.
4556         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4557
4558 2012-03-12  Bruno Haible  <bruno@clisp.org>
4559
4560         uninorm: Don't crash in out-of-memory conditions.
4561         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4562         gracefully.
4563         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4564         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4565
4566 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4567
4568         quote: fix syntax-check
4569         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4570         also exports quote_quoting_options.
4571
4572 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4573
4574         Collapse list of copyright years to ranges.  See
4575         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4576         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4577         build-aux/csharpexec.sh.in, build-aux/gnupload,
4578         build-aux/install-reloc, build-aux/javacomp.sh.in,
4579         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4580         build-aux/move-if-change, build-aux/reloc-ldflags,
4581         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4582
4583 2012-03-11  Bruno Haible  <bruno@clisp.org>
4584
4585         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4586         * m4/log2f-ieee.m4: New file.
4587         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4588         whether log2f works with a minus zero argument. Replace it if not.
4589         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4590         (Depends-on): Add log2-ieee.
4591         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4592         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4593
4594         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4595         * m4/log2-ieee.m4: New file.
4596         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4597         whether log2 works with a minus zero argument. Replace it if not.
4598         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4599         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4600         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4601
4602         Tests for module 'log2l-ieee'.
4603         * modules/log2l-ieee-tests: New file.
4604         * tests/test-log2l-ieee.c: New file.
4605
4606         New module 'log2l-ieee'.
4607         * modules/log2l-ieee: New file.
4608
4609         Tests for module 'log2-ieee'.
4610         * modules/log2-ieee-tests: New file.
4611         * tests/test-log2-ieee.c: New file.
4612
4613         New module 'log2-ieee'.
4614         * modules/log2-ieee: New file.
4615
4616         Tests for module 'log2f-ieee'.
4617         * modules/log2f-ieee-tests: New file.
4618         * tests/test-log2f-ieee.c: New file.
4619         * tests/test-log2-ieee.h: New file.
4620
4621         New module 'log2f-ieee'.
4622         * modules/log2f-ieee: New file.
4623
4624 2012-03-11  Bruno Haible  <bruno@clisp.org>
4625
4626         Tests for module 'log2l'.
4627         * modules/log2l-tests: New file.
4628         * tests/test-log2l.c: New file.
4629
4630         New module 'log2l'.
4631         * lib/math.in.h (log2l): New declaration.
4632         * lib/log2l.c: New file.
4633         * m4/log2l.m4: New file.
4634         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4636         REPLACE_LOG2L.
4637         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4638         REPLACE_LOG2L.
4639         * modules/log2l: New file.
4640         * tests/test-math-c++.cc: Check the declaration of log2l.
4641         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4642         and OSF/1 problems.
4643
4644 2012-03-11  Bruno Haible  <bruno@clisp.org>
4645
4646         Tests for module 'log2f'.
4647         * modules/log2f-tests: New file.
4648         * tests/test-log2f.c: New file.
4649
4650         New module 'log2f'.
4651         * lib/math.in.h (log2f): New declaration.
4652         * lib/log2f.c: New file.
4653         * m4/log2f.m4: New file.
4654         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4656         REPLACE_LOG2F.
4657         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4658         REPLACE_LOG2F.
4659         * modules/log2f: New file.
4660         * tests/test-math-c++.cc: Check the declaration of log2f.
4661         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4662         and OSF/1 and Cygwin problems.
4663
4664 2012-03-11  Bruno Haible  <bruno@clisp.org>
4665
4666         Tests for module 'log2'.
4667         * modules/log2-tests: New file.
4668         * tests/test-log2.c: New file.
4669         * tests/test-log2.h: New file.
4670
4671         New module 'log2'.
4672         * lib/math.in.h (log2): New declaration.
4673         * lib/log2.c: New file.
4674         * m4/log2.m4: New file.
4675         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4677         REPLACE_LOG2.
4678         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4679         REPLACE_LOG2.
4680         * modules/log2: New file.
4681         * tests/test-math-c++.cc: Check the declaration of log2.
4682         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4683         and OSF/1 and Cygwin problems.
4684
4685 2012-03-11  Bruno Haible  <bruno@clisp.org>
4686
4687         exp2* tests: More tests.
4688         * tests/test-exp2.h (test_function): Test all integral arguments that
4689         don't need to overflow or denormalized numbers.
4690         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4691         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4692         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4693
4694 2012-03-10  Bruno Haible  <bruno@clisp.org>
4695
4696         log1pl-ieee: Work around test failure on AIX 7.1.
4697         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4698
4699         log1pl-ieee: Work around test failure on IRIX 6.5.
4700         * m4/log1pl-ieee.m4: New file.
4701         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4702         test whether log1pl works with a minus zero argument. Replace it if
4703         not.
4704         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4706         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4707         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4708         (Depends-on): Update conditions.
4709         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4710         m4/signbit.m4.
4711         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4712         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4713
4714         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4715         * m4/log1pf-ieee.m4: New file.
4716         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4717         test whether log1pf works with a minus zero argument. Replace it if
4718         not.
4719         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4720         m4/signbit.m4.
4721         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4722         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4723
4724         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4725         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4726         (configure.ac): Require gl_FUNC_LOG1PF.
4727
4728         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4729         * m4/log1p-ieee.m4: New file.
4730         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4731         whether log1p works with a minus zero argument. Replace it if not.
4732         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4734         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4735         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4736         (Depends-on): Update conditions.
4737         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4738         m4/signbit.m4.
4739         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4740         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4741
4742         Tests for module 'log1pl-ieee'.
4743         * modules/log1pl-ieee-tests: New file.
4744         * tests/test-log1pl-ieee.c: New file.
4745
4746         New module 'log1pl-ieee'.
4747         * modules/log1pl-ieee: New file.
4748
4749         Tests for module 'log1p-ieee'.
4750         * modules/log1p-ieee-tests: New file.
4751         * tests/test-log1p-ieee.c: New file.
4752
4753         New module 'log1p-ieee'.
4754         * modules/log1p-ieee: New file.
4755
4756         Tests for module 'log1pf-ieee'.
4757         * modules/log1pf-ieee-tests: New file.
4758         * tests/test-log1pf-ieee.c: New file.
4759         * tests/test-log1p-ieee.h: New file.
4760
4761         New module 'log1pf-ieee'.
4762         * modules/log1pf-ieee: New file.
4763
4764 2012-03-10  Bruno Haible  <bruno@clisp.org>
4765
4766         Tests for module 'log1pl'.
4767         * modules/log1pl-tests: New file.
4768         * tests/test-log1pl.c: New file.
4769
4770         New module 'log1pl'.
4771         * lib/math.in.h (log1pl): New declaration.
4772         * lib/log1pl.c: New file.
4773         * m4/log1pl.m4: New file.
4774         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4776         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4777         * modules/log1pl: New file.
4778         * tests/test-math-c++.cc: Check the declaration of log1pl.
4779         * doc/posix-functions/log1pl.texi: Mention the new module.
4780
4781 2012-03-10  Bruno Haible  <bruno@clisp.org>
4782
4783         Tests for module 'log1pf'.
4784         * modules/log1pf-tests: New file.
4785         * tests/test-log1pf.c: New file.
4786
4787         New module 'log1pf'.
4788         * lib/math.in.h (log1pf): New declaration.
4789         * lib/log1pf.c: New file.
4790         * m4/log1pf.m4: New file.
4791         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4793         REPLACE_LOG1PF.
4794         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4795         REPLACE_LOG1PF.
4796         * modules/log1pf: New file.
4797         * tests/test-math-c++.cc: Check the declaration of log1pf.
4798         * doc/posix-functions/log1pf.texi: Mention the new module.
4799
4800 2012-03-10  Bruno Haible  <bruno@clisp.org>
4801
4802         log1p tests: More tests.
4803         * tests/test-log1p.h: New file.
4804         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4805         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4806         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4807         (main): Invoke test_function.
4808
4809         log1p: Provide replacement for Minix and MSVC.
4810         * lib/math.in.h (log1p): New declaration.
4811         * lib/log1p.c: New file.
4812         * m4/log1p.m4: New file.
4813         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4815         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4816         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4817         (Depends-on): Add math, isnand, log, round.
4818         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4819         HAVE_LOG1P is 0.
4820         * tests/test-math-c++.cc: Check the declaration of log1p.
4821         * doc/posix-functions/log1p.texi: Mention the replacement.
4822
4823 2012-03-10  Bruno Haible  <bruno@clisp.org>
4824
4825         math tests: Small simplification.
4826         * tests/test-exp.h (test_function): Use the same err_bound for
4827         'double' on platforms with sizeof (long double) == sizeof (double)
4828         than on platforms with sizeof (long double) > sizeof (double).
4829         * tests/test-exp2.h (test_function): Likewise.
4830         * tests/test-expm1.h (test_function): Likewise.
4831         * tests/test-log.h (test_function): Likewise.
4832
4833 2012-03-10  Bruno Haible  <bruno@clisp.org>
4834
4835         Fix some comments.
4836         * lib/expl.c: Fix an ambiguous comment.
4837         * lib/expm1.c: Likewise.
4838         * lib/expm1l.c: Likewise.
4839         * lib/exp2.c: Likewise.
4840         * lib/exp2l.c: Likewise.
4841
4842 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4843
4844         regex: allow inclusion of <regex.h> before <limits.h>
4845         Without this patch, portable programs had to include <limits.h> before
4846         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4847         I ran into this problem with a test version of GNU grep on Solaris 8.
4848         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4849         This is done conditionally so that this change can be merged
4850         back to glibc.
4851         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4852         using the included regex.
4853
4854         fts: depend on fdopendir
4855         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4856         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4857         problem was introduced when fdopendir was split out.
4858
4859 2012-03-10  Bruno Haible  <bruno@clisp.org>
4860
4861         Remove unused variables.
4862         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4863         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4864
4865 2012-03-10  Bruno Haible  <bruno@clisp.org>
4866
4867         isnanf-nolibm: Fix last commit.
4868         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4869
4870         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4871         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4872
4873 2012-03-10  Bruno Haible  <bruno@clisp.org>
4874
4875         logf-ieee: Work around test failure on NetBSD 5.1.
4876         * m4/logf-ieee.m4: New file.
4877         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4878         whether logf works with a negative argument. Replace it if not.
4879         * lib/logf.c (logf): For negative arguments, return NaN.
4880         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4881         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4882         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4883
4884         logf-ieee: Work around test failure on Solaris 9.
4885         * modules/logf-ieee (Depends-on): Add log-ieee.
4886         (configure.ac): Require gl_FUNC_LOGF.
4887
4888         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4889         * m4/log-ieee.m4: New file.
4890         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4891         log works with a negative argument. Replace it if not.
4892         * lib/log.c (log): For negative arguments, return NaN.
4893         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4894         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4895         * doc/posix-functions/log.texi: Mention the log-ieee module.
4896
4897         Tests for module 'logl-ieee'.
4898         * modules/logl-ieee-tests: New file.
4899         * tests/test-logl-ieee.c: New file.
4900
4901         New module 'logl-ieee'.
4902         * modules/logl-ieee: New file.
4903
4904         Tests for module 'log-ieee'.
4905         * modules/log-ieee-tests: New file.
4906         * tests/test-log-ieee.c: New file.
4907
4908         New module 'log-ieee'.
4909         * modules/log-ieee: New file.
4910
4911         Tests for module 'logf-ieee'.
4912         * modules/logf-ieee-tests: New file.
4913         * tests/test-logf-ieee.c: New file.
4914         * tests/test-log-ieee.h: New file.
4915
4916         New module 'logf-ieee'.
4917         * modules/logf-ieee: New file.
4918
4919 2012-03-10  Bruno Haible  <bruno@clisp.org>
4920
4921         log: Fix bug introduced on 2012-03-09.
4922         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4923
4924 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4925
4926         timer-time: link explicitly with pthreads on glibc
4927         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4928         to support static linking, when newer glibc is
4929         detected, as that contains pthread emulation of
4930         POSIX timer functions where required.
4931         * modules/timer-time: Depend on threadlib to
4932         pull in the appropriate library to link.
4933
4934 2012-03-10  Bruno Haible  <bruno@clisp.org>
4935
4936         log* tests: More tests.
4937         * tests/test-log.h: New file.
4938         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4939         (main): Invoke test_function.
4940         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4941         (main): Invoke test_function.
4942         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4943         (main): Invoke test_function.
4944         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4945         tests/randomd.c.
4946         (Makefile.am): Add randomd.c to test_log_SOURCES.
4947         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4948         tests/randomf.c.
4949         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4950         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4951         tests/randoml.c.
4952         (Depends-on): Add 'float'.
4953         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4954
4955 2012-03-09  Bruno Haible  <bruno@clisp.org>
4956
4957         logl: Work around OSF/1 5.1 bug.
4958         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4959         * lib/logl.c (logl): If logl exists, use it and provide just the
4960         workaround.
4961         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4962         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4964         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4965         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4966         (Depends-on): Update conditions.
4967         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4968
4969 2012-03-09  Bruno Haible  <bruno@clisp.org>
4970
4971         logf: Work around OSF/1 5.1 bug.
4972         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4973         * lib/logf.c (logf): If logf exists, use it and provide just the
4974         workaround.
4975         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4976         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4978         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4979         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4980         (Depends-on): Update conditions.
4981         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4982
4983 2012-03-09  Bruno Haible  <bruno@clisp.org>
4984
4985         log: Work around OSF/1 5.1 bug.
4986         * lib/math.in.h (log): New declaration.
4987         * lib/log.c: New file.
4988         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4989         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4990         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4992         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4993         * modules/log (Files): Add lib/log.c.
4994         (Depends-on): Add math.
4995         (configure.ac): If REPLACE_LOG is 1, compile an override.
4996         * tests/test-math-c++.cc: Check the declaration of log.
4997         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4998
4999 2012-03-09  Jim Meyering  <meyering@redhat.com>
5000
5001         readtokens.c: adjust wording in a comment
5002         * lib/readtokens.c: Insert omitted "that" in a comment.
5003
5004 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5005
5006         modechange: add notations +40, 00440, etc.
5007         * lib/modechange.c (mode_compile): Support new notations
5008         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5009
5010 2012-03-08  Bruno Haible  <bruno@clisp.org>
5011
5012         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5013         * m4/exp2l-ieee.m4: New file.
5014         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5015         test whether exp2l works with a NaN argument and with a negative
5016         infinity argument. Replace it if not.
5017         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5019         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5020         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5021         (Depends-on): Update conditions.
5022         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5023         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5024         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5025
5026         Tests for module 'exp2l-ieee'.
5027         * modules/exp2l-ieee-tests: New file.
5028         * tests/test-exp2l-ieee.c: New file.
5029
5030         New module 'exp2l-ieee'.
5031         * modules/exp2l-ieee: New file.
5032
5033         Tests for module 'exp2-ieee'.
5034         * modules/exp2-ieee-tests: New file.
5035         * tests/test-exp2-ieee.c: New file.
5036
5037         New module 'exp2-ieee'.
5038         * modules/exp2-ieee: New file.
5039
5040         Tests for module 'exp2f-ieee'.
5041         * modules/exp2f-ieee-tests: New file.
5042         * tests/test-exp2f-ieee.c: New file.
5043         * tests/test-exp2-ieee.h: New file.
5044
5045         New module 'exp2f-ieee'.
5046         * modules/exp2f-ieee: New file.
5047
5048 2012-03-08  Bruno Haible  <bruno@clisp.org>
5049
5050         Tests for module 'exp2l'.
5051         * modules/exp2l-tests: New file.
5052         * tests/test-exp2l.c: New file.
5053
5054         New module 'exp2l'.
5055         * lib/math.in.h (exp2l): New declaration.
5056         * lib/exp2l.c: New file.
5057         * lib/expl-table.c: New file, extracted from lib/expl.c.
5058         * lib/expl.c (gl_expl_table): New declaration.
5059         (expl): Remove expl_table. Update reference.
5060         * m4/exp2l.m4: New file.
5061         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5063         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5064         * modules/exp2l: New file.
5065         * modules/expl (Files): Add lib/expl-table.c.
5066         (configure.ac): Compile also expl-table.c.
5067         * tests/test-math-c++.cc: Check the declaration of exp2l.
5068         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5069         problem.
5070
5071 2012-03-08  Bruno Haible  <bruno@clisp.org>
5072
5073         Tests for module 'exp2f'.
5074         * modules/exp2f-tests: New file.
5075         * tests/test-exp2f.c: New file.
5076
5077         New module 'exp2f'.
5078         * lib/math.in.h (exp2f): New declaration.
5079         * lib/exp2f.c: New file.
5080         * m4/exp2f.m4: New file.
5081         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5083         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5084         * modules/exp2f: New file.
5085         * tests/test-math-c++.cc: Check the declaration of exp2f.
5086         * doc/posix-functions/exp2f.texi: Mention the new module and the
5087         IRIX problem.
5088
5089 2012-03-08  Bruno Haible  <bruno@clisp.org>
5090
5091         Tests for module 'exp2'.
5092         * modules/exp2-tests: New file.
5093         * tests/test-exp2.c: New file.
5094         * tests/test-exp2.h: New file.
5095
5096         New module 'exp2'.
5097         * lib/math.in.h (exp2): New declaration.
5098         * lib/exp2.c: New file.
5099         * m4/exp2.m4: New file.
5100         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5102         REPLACE_EXP2.
5103         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5104         REPLACE_EXP2.
5105         * modules/exp2: New file.
5106         * tests/test-math-c++.cc: Check the declaration of exp2.
5107         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5108         and OpenBSD problems.
5109
5110 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         savedir: fix comment typo
5113         * lib/savedir.c (savedirstream): Fix typo in comment.
5114
5115 2012-03-08  Bruno Haible  <bruno@clisp.org>
5116
5117         test-readtokens.c: use const; remove unwarranted cast
5118         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5119
5120 2012-03-08  Bruno Haible  <bruno@clisp.org>
5121
5122         fmal: Avoid compilation error on AIX.
5123         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5124         AIX 5.2..7.1.
5125
5126 2012-03-08  Bruno Haible  <bruno@clisp.org>
5127
5128         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5129         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5130         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5131         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5132         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5133         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5134         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5135
5136 2012-03-08  Bruno Haible  <bruno@clisp.org>
5137
5138         remainderf: Override buggy system function on IRIX 6.5.
5139         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5140         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5141         when it exists.
5142         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5143
5144 2012-03-08  Jim Meyering  <meyering@redhat.com>
5145
5146         test-readtokens.c: avoid const-related compilation warnings
5147         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5148
5149 2012-03-07  Jim Meyering  <meyering@redhat.com>
5150             Bruno Haible  <bruno@clisp.org>
5151
5152         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5153         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5154         tests/randomd.c.
5155         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5156         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5157         tests/randoml.c.
5158         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5159
5160 2012-03-07  Bruno Haible  <bruno@clisp.org>
5161
5162         expm1l: Avoid compilation error on AIX.
5163         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5164         AIX 5.2..7.1.
5165
5166 2012-03-07  Bruno Haible  <bruno@clisp.org>
5167
5168         expm1l: Don't override undeclared system function on IRIX 6.5.
5169         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5170         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5171         it exists. Set HAVE_DECL_EXPM1L.
5172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5173         HAVE_EXPM1L.
5174         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5175         HAVE_EXPM1L.
5176         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5177
5178 2012-03-07  Bruno Haible  <bruno@clisp.org>
5179
5180         remainderl: Don't override undeclared system function on IRIX 6.5.
5181         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5182         HAVE_REMAINDERL.
5183         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5184         declared when it exists. Set HAVE_DECL_REMAINDERL.
5185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5186         not HAVE_REMAINDERL.
5187         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5188         HAVE_REMAINDERL.
5189         * doc/posix-functions/remainderl.texi: Mention missing declaration
5190         problem.
5191
5192 2012-03-07  Bruno Haible  <bruno@clisp.org>
5193
5194         rintf: Don't override undeclared system function on IRIX 6.5.
5195         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5196         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5197         exists. Set HAVE_DECL_RINTF.
5198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5199         HAVE_RINTF.
5200         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5201         HAVE_RINTF.
5202         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5203
5204 2012-03-07  Bruno Haible  <bruno@clisp.org>
5205
5206         roundl: Avoid compilation error on AIX.
5207         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5208         AIX 5.2..7.1.
5209
5210 2012-03-07  Bruno Haible  <bruno@clisp.org>
5211
5212         roundl: Don't override undeclared system function on IRIX 6.5.
5213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5214         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5215         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5216         * modules/roundl (configure.ac): For replacement code, test
5217         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5218         (Depends-on): Update conditions.
5219         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5220
5221 2012-03-07  Bruno Haible  <bruno@clisp.org>
5222
5223         roundf: Don't override undeclared system function on IRIX 6.5.
5224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5225         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5226         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5227         * modules/roundf (configure.ac): For replacement code, test
5228         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5229         (Depends-on): Update conditions.
5230         * modules/roundf-ieee (Depends-on): Update conditions.
5231         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5232
5233 2012-03-07  Bruno Haible  <bruno@clisp.org>
5234
5235         round: Don't override undeclared system function on IRIX 6.5.
5236         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5237         argument.
5238         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5239         also when it is not declared. Set HAVE_ROUND. For replacement code,
5240         test HAVE_ROUND, not HAVE_DECL_ROUND.
5241         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5242         not HAVE_DECL_ROUND.
5243         (Depends-on): Update conditions.
5244         * modules/round-ieee (Depends-on): Update conditions.
5245         * doc/posix-functions/round.texi: Mention the IRIX problem.
5246
5247 2012-03-07  Bruno Haible  <bruno@clisp.org>
5248
5249         copysignf: Don't override undeclared system function on IRIX 6.5.
5250         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5251         HAVE_COPYSIGNF.
5252         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5253         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5255         not HAVE_COPYSIGNF.
5256         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5257         HAVE_COPYSIGNF.
5258         * doc/posix-functions/copysignf.texi: Mention missing declaration
5259         problem.
5260
5261 2012-03-07  Jim Meyering  <meyering@redhat.com>
5262
5263         readtokens: add tests
5264         * modules/readtokens-tests: New file.
5265         * tests/test-readtokens.c: New file.
5266
5267 2012-03-07  Jim Meyering  <meyering@redhat.com>
5268
5269         quotearg: the module must now include quote.h
5270         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5271         So must the module.
5272         * modules/quotearg (Files): Add quote.h.
5273
5274 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5275
5276         readtokens: avoid core dumps with unusual calling patterns
5277         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5278         * lib/readtokens.c: Include limits.h.
5279         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5280         (readtoken): Don't cache the delimiters; the cache code was buggy
5281         if !delim && saved_delim, or if the new n_delim differs from the old.
5282         Also, it wasn't thread-safe.
5283
5284 2012-03-07  Bruno Haible  <bruno@clisp.org>
5285
5286         quote: Adhere to common module description layout.
5287         * modules/quote (Makefile.am): Add back empty section.
5288
5289 2012-03-06  Akim Demaille  <demaille@gostai.com>
5290
5291         quote: fuse into quotearg
5292         This patch is made for the benefit of Bison.
5293         quote does not leave the choice of the quoting style to the user.
5294         quoting_style provides poor customizability, yet quoting_options,
5295         which is very rich, is hidden inside quotearg.c.  So in order to
5296         allow quote customization, move its implementation to quotearg.c.
5297         * lib/quote.c: Remove.
5298         * modules/quote: Adjust.
5299         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5300         warning: provide all the members of literal structs.
5301         (quote_quoting_options): New.
5302         (quote, quote_n): Import implementation from quote.c.
5303         * lib/quote.h: Import the comments from quote.c.
5304         (quote_quoting_options): New.
5305
5306 2012-03-06  Bruno Haible  <bruno@clisp.org>
5307
5308         Tests for module 'expm1l-ieee'.
5309         * modules/expm1l-ieee-tests: New file.
5310         * tests/test-expm1l-ieee.c: New file.
5311
5312         New module 'expm1l-ieee'.
5313         * modules/expm1l-ieee: New file.
5314
5315         Tests for module 'expm1f-ieee'.
5316         * modules/expm1f-ieee-tests: New file.
5317         * tests/test-expm1f-ieee.c: New file.
5318
5319         New module 'expm1f-ieee'.
5320         * modules/expm1f-ieee: New file.
5321
5322         Tests for module 'expm1-ieee'.
5323         * modules/expm1-ieee-tests: New file.
5324         * tests/test-expm1-ieee.c: New file.
5325         * tests/test-expm1-ieee.h: New file.
5326
5327         New module 'expm1-ieee'.
5328         * modules/expm1-ieee: New file.
5329         * m4/expm1-ieee.m4: New file.
5330         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5331         whether expm1 works with a minus zero argument. Replace it if not.
5332         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5334         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5335         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5336         (Depends-on): Update conditions.
5337         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5338         AIX problem.
5339
5340 2012-03-06  Bruno Haible  <bruno@clisp.org>
5341
5342         Work around expm1f bug on IRIX 6.5.
5343         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5344         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5345         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5346         not work.
5347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5348         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5349         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5350         (Depends-on): Update conditions.
5351         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5352
5353 2012-03-06  Bruno Haible  <bruno@clisp.org>
5354
5355         Tests for module 'expm1l'.
5356         * modules/expm1l-tests: New file.
5357         * tests/test-expm1l.c: New file.
5358
5359         New module 'expm1l'.
5360         * lib/math.in.h (expm1l): New declaration.
5361         * lib/expm1l.c: New file.
5362         * m4/expm1l.m4: New file.
5363         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5365         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5366         * modules/expm1l: New file.
5367         * tests/test-math-c++.cc: Check the declaration of expm1l.
5368         * doc/posix-functions/expm1l.texi: Mention the new module.
5369
5370 2012-03-06  Bruno Haible  <bruno@clisp.org>
5371
5372         Tests for module 'expm1f'.
5373         * modules/expm1f-tests: New file.
5374         * tests/test-expm1f.c: New file.
5375
5376         New module 'expm1f'.
5377         * lib/math.in.h (expm1f): New declaration.
5378         * lib/expm1f.c: New file.
5379         * m4/expm1f.m4: New file.
5380         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5382         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5383         * modules/expm1f: New file.
5384         * tests/test-math-c++.cc: Check the declaration of expm1f.
5385         * doc/posix-functions/expm1f.texi: Mention the new module.
5386
5387 2012-03-06  Bruno Haible  <bruno@clisp.org>
5388
5389         Tests for module 'expm1'.
5390         * modules/expm1-tests: New file.
5391         * tests/test-expm1.c: New file.
5392         * tests/test-expm1.h: New file.
5393
5394         New module 'expm1'.
5395         * lib/math.in.h (expm1): New declaration.
5396         * lib/expm1.c: New file.
5397         * m4/expm1.m4: New file.
5398         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5400         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5401         * modules/expm1: New file.
5402         * tests/test-math-c++.cc: Check the declaration of expm1.
5403         * doc/posix-functions/expm1.texi: Mention the new module.
5404
5405 2012-03-06  Bruno Haible  <bruno@clisp.org>
5406
5407         math: Ensure declarations of math functions.
5408         * modules/acosf (Depends-on): Add 'extensions'.
5409         * modules/asinf (Depends-on): Likewise.
5410         * modules/atan2f (Depends-on): Likewise.
5411         * modules/atanf (Depends-on): Likewise.
5412         * modules/cbrt (Depends-on): Likewise.
5413         * modules/cbrtf (Depends-on): Likewise.
5414         * modules/cbrtl (Depends-on): Likewise.
5415         * modules/copysignf (Depends-on): Likewise.
5416         * modules/copysignl (Depends-on): Likewise.
5417         * modules/cosf (Depends-on): Likewise.
5418         * modules/coshf (Depends-on): Likewise.
5419         * modules/expf (Depends-on): Likewise.
5420         * modules/fabsf (Depends-on): Likewise.
5421         * modules/fabsl (Depends-on): Likewise.
5422         * modules/fmaf (Depends-on): Likewise.
5423         * modules/fmal (Depends-on): Likewise.
5424         * modules/fmodf (Depends-on): Likewise.
5425         * modules/fmodl (Depends-on): Likewise.
5426         * modules/frexpf (Depends-on): Likewise.
5427         * modules/frexpl (Depends-on): Likewise.
5428         * modules/hypot (Depends-on): Likewise.
5429         * modules/hypotf (Depends-on): Likewise.
5430         * modules/hypotl (Depends-on): Likewise.
5431         * modules/ldexpf (Depends-on): Likewise.
5432         * modules/ldexpl (Depends-on): Likewise.
5433         * modules/log10f (Depends-on): Likewise.
5434         * modules/log10l (Depends-on): Likewise.
5435         * modules/log1p (Depends-on): Likewise.
5436         * modules/logb (Depends-on): Likewise.
5437         * modules/logf (Depends-on): Likewise.
5438         * modules/modff (Depends-on): Likewise.
5439         * modules/modfl (Depends-on): Likewise.
5440         * modules/powf (Depends-on): Likewise.
5441         * modules/remainderf (Depends-on): Likewise.
5442         * modules/remainderl (Depends-on): Likewise.
5443         * modules/rintf (Depends-on): Likewise.
5444         * modules/rintl (Depends-on): Likewise.
5445         * modules/sinf (Depends-on): Likewise.
5446         * modules/sinhf (Depends-on): Likewise.
5447         * modules/sqrtf (Depends-on): Likewise.
5448         * modules/tanf (Depends-on): Likewise.
5449         * modules/tanhf (Depends-on): Likewise.
5450         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5451         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5452         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5453         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5454         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5455         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5456         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5457         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5458         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5459         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5460         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5461         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5462         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5463         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5464         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5465         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5466         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5467         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5468         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5469         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5470         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5471         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5472         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5473         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5475         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5476         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5477         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5478         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5479         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5480         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5481         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5482         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5483         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5484         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5485         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5486         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5487         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5488         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5489         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5490         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5491
5492 2012-03-06  Bruno Haible  <bruno@clisp.org>
5493
5494         math: Update module names in warnings.
5495         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5496         tanl): Use specific module name in warn-on-use warning.
5497
5498 2012-03-06  Bruno Haible  <bruno@clisp.org>
5499
5500         expl: Simplify computation.
5501         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5502
5503 2012-03-05  Bruno Haible  <bruno@clisp.org>
5504
5505         exp* tests: More tests.
5506         * tests/test-exp.h: New file.
5507         * tests/test-exp.c: Include <float.h> and test-exp.h.
5508         (main): Invoke test_function.
5509         * tests/test-expf.c: Include <float.h> and test-exp.h.
5510         (main): Invoke test_function.
5511         * tests/test-expl.c: Include <float.h> and test-exp.h.
5512         (main): Invoke test_function.
5513         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5514         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5515         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5516         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5517         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5518         (Depends-on): Add 'float'.
5519         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5520
5521         expl: Fix precision of computed result.
5522         * lib/expl.c: Completely rewritten.
5523         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5524         (Maintainer): Add me.
5525         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5526
5527 2012-03-05  Bruno Haible  <bruno@clisp.org>
5528
5529         cbrt* tests: More tests.
5530         * tests/test-cbrt.h: New file.
5531         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5532         (main): Invoke test_function.
5533         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5534         (main): Invoke test_function.
5535         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5536         (main): Invoke test_function.
5537         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5538         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5539         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5540         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5541         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5542         (Depends-on): Add 'float'.
5543         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5544
5545 2012-03-05  Bruno Haible  <bruno@clisp.org>
5546
5547         hypot* tests: More tests.
5548         * tests/test-hypot.h: New file, partially extracted from
5549         tests/test-hypotl.c.
5550         * tests/test-hypot.c: Include test-hypot.h.
5551         (main): Invoke test_function.
5552         * tests/test-hypotf.c: Include test-hypot.h.
5553         (main): Invoke test_function.
5554         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5555         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5556         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5557         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5558         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5559         tests/randomf.c.
5560         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5561         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5562         tests/randoml.c.
5563         (Depends-on): Add 'fpucw', 'float'.
5564         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5565
5566 2012-03-05  Bruno Haible  <bruno@clisp.org>
5567
5568         fpucw: Doc about FreeBSD.
5569         * lib/fpucw.h: Mention FreeBSD in comments.
5570
5571 2012-03-04  Bruno Haible  <bruno@clisp.org>
5572
5573         sqrt* tests: More tests.
5574         * tests/test-sqrt.h: New file.
5575         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5576         (main): Invoke test_function.
5577         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5578         (main): Invoke test_function.
5579         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5580         (main): Invoke test_function.
5581         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5582         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5583         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5584         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5585         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5586         (Depends-on): Add 'float'.
5587         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5588
5589 2012-03-04  Bruno Haible  <bruno@clisp.org>
5590
5591         remainder* tests: More tests.
5592         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5593         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5594         (main): Invoke test_function.
5595         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5596         (main): Invoke test_function.
5597         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5598         (main): Invoke test_function.
5599         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5600         tests/randomd.c.
5601         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5602         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5603         tests/randomf.c.
5604         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5605         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5606         tests/randoml.c.
5607         (Depends-on): Add 'float'.
5608         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5609
5610 2012-03-04  Bruno Haible  <bruno@clisp.org>
5611
5612         remainder, remainderf, remainderl: Fix computation for large quotients.
5613         * lib/remainder.c: Completely rewritten.
5614         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5615         USE_FLOAT.
5616         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5617         USE_LONG_DOUBLE.
5618         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5619         isnand, isinf. Remove round, fma.
5620         * modules/remainderf (Files): Add lib/remainder.c.
5621         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5622         Remove roundf, fmaf.
5623         * modules/remainderl (Files): Add lib/remainder.c.
5624         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5625         isinf. Remove roundl, fmal.
5626         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5627         REMAINDER_LIBM.
5628         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5629         REMAINDERF_LIBM.
5630         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5631         REMAINDERL_LIBM.
5632
5633 2012-03-04  Bruno Haible  <bruno@clisp.org>
5634
5635         fmod* tests: More tests.
5636         * tests/test-fmod.h (my_ldexp): New function.
5637         (test_function): Reduce amount of random numbers to test. Add tests
5638         of very large quotients x / y.
5639         * tests/test-fmod.c (MAX_EXP): New macro.
5640         * tests/test-fmodf.c (MAX_EXP): Likewise.
5641         * tests/test-fmodl.c (MAX_EXP): Likewise.
5642
5643 2012-03-04  Bruno Haible  <bruno@clisp.org>
5644
5645         fmod, fmodl: Fix computation for large quotients x / y.
5646         * lib/fmod.c: Completely rewritten.
5647         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5648         USE_LONG_DOUBLE.
5649         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5650         isnand. Remove fma.
5651         * modules/fmodl (Files): Add lib/fmod.c.
5652         (Depends-on): Add float, isfinite, signbit, fabsl,
5653         frexpl, ldexpl, isnanl. Remove fma.
5654         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5655         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5656
5657 2012-03-03  Bruno Haible  <bruno@clisp.org>
5658
5659         fmod* tests: More tests.
5660         * tests/test-fmod.h: New file.
5661         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5662         (main): Invoke test_function.
5663         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5664         (main): Invoke test_function.
5665         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5666         (main): Invoke test_function.
5667         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5668         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5669         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5670         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5671         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5672         (Depends-on): Add 'float'.
5673         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5674
5675 2012-03-03  Bruno Haible  <bruno@clisp.org>
5676
5677         rint* tests: More tests.
5678         * tests/test-rint.h: New file, partially extracted from
5679         tests/test-rintl.c.
5680         * tests/test-rint.c: Include test-rint.h.
5681         (main): Invoke test_function.
5682         * tests/test-rintf.c: Include test-rint.h.
5683         (main): Invoke test_function.
5684         * tests/test-rintl.c: Include test-rint.h.
5685         (main): Invoke test_function.
5686         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5687         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5688         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5689         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5690         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5691         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5692
5693 2012-03-03  Bruno Haible  <bruno@clisp.org>
5694
5695         modf* tests: More tests.
5696         * tests/test-modf.h: New file.
5697         * tests/test-modf.c: Include <float.h> and test-modf.h.
5698         (main): Invoke test_function.
5699         * tests/test-modff.c: Include <float.h> and test-modf.h.
5700         (main): Invoke test_function.
5701         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5702         (main): Invoke test_function.
5703         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5704         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5705         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5706         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5707         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5708         (Depends-on): Add 'float'.
5709         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5710
5711 2012-03-03  Bruno Haible  <bruno@clisp.org>
5712
5713         fabs* tests: More tests.
5714         * tests/test-fabs.h: New file, partially extracted from
5715         tests/test-fabsl.c.
5716         * tests/test-fabs.c (RANDOM): New macro.
5717         * tests/test-fabsf.c (RANDOM): New macro.
5718         * tests/test-fabsl.c (RANDOM): New macro.
5719         * modules/fabs-tests (Files): Add tests/randomd.c.
5720         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5721         * modules/fabsf-tests (Files): Add tests/randomf.c.
5722         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5723         * modules/fabsl-tests (Files): Add tests/randoml.c.
5724         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5725
5726 2012-03-03  Bruno Haible  <bruno@clisp.org>
5727
5728         ldexp* tests: More tests.
5729         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5730         * tests/test-ldexp.c (RANDOM): New macro.
5731         * tests/test-ldexpf.c (RANDOM): New macro.
5732         * tests/test-ldexpl.c (RANDOM): New macro.
5733         * modules/ldexp-tests (Files): Add tests/randomd.c.
5734         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5735         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5736         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5737         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5738         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5739
5740 2012-03-03  Bruno Haible  <bruno@clisp.org>
5741
5742         frexp* tests: More tests.
5743         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5744         * tests/test-frexp.c (RANDOM): New macro.
5745         * tests/test-frexpf.c (RANDOM): New macro.
5746         * tests/test-frexpl.c (RANDOM): New macro.
5747         * modules/frexp-tests (Files): Add tests/randomd.c.
5748         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5749         * modules/frexpf-tests (Files): Add tests/randomf.c.
5750         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5751         * modules/frexpl-tests (Files): Add tests/randoml.c.
5752         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5753
5754 2012-03-03  Bruno Haible  <bruno@clisp.org>
5755
5756         Support for pseudo-random numbers in tests.
5757         * tests/randomf.c: New file.
5758         * tests/randomd.c: New file.
5759         * tests/randoml.c: New file.
5760         * tests/macros.h (randomf, randomd, randoml): New declarations.
5761
5762 2012-03-03  Bruno Haible  <bruno@clisp.org>
5763
5764         frexp* tests: Refactor.
5765         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5766         * tests/test-frexp.c: Include and use it.
5767         * tests/test-frexpf.c: Likewise.
5768         * tests/test-frexpl.c: Likewise.
5769         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5770         * modules/frexpf-tests (Files): Likewise.
5771         * modules/frexpl-tests (Files): Likewise.
5772
5773 2012-03-02  Jim Meyering  <meyering@redhat.com>
5774
5775         maint: don't specify XZ_OPT=-9ev in dist-related rule
5776         Using xz's -9 option is warranted only if you have a very large
5777         tarball (see xz's documentation for the sizes vs. presets), and
5778         requires 64MiB of memory at decompression time.
5779         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5780         Automake's default of just "-e" is fine.  Override on a
5781         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5782
5783 2012-03-01  Eric Blake  <eblake@redhat.com>
5784
5785         maint.mk: allow announcement for non-gnulib project
5786         * maint.mk (announcement): Skip gnulib version if not used.
5787
5788 2012-03-01  Jim Meyering  <meyering@redhat.com>
5789
5790         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5791         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5792         envvar settings cannot interfere.  Otherwise, setting envvars like
5793         prohibit=foo require=bar, etc. would cause spurious test failures.
5794
5795 2012-03-01  Eric Blake  <eblake@redhat.com>
5796
5797         maint.mk: add per-line exclusions to prohibitions
5798         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5799         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5800         (sc_const_long_option): Use it.
5801
5802 2012-03-01  Bruno Haible  <bruno@clisp.org>
5803
5804         Tests for module 'expl-ieee'.
5805         * modules/expl-ieee-tests: New file.
5806         * tests/test-expl-ieee.c: New file.
5807
5808         New module 'expl-ieee'.
5809         * modules/expl-ieee: New file.
5810
5811         Tests for module 'exp-ieee'.
5812         * modules/exp-ieee-tests: New file.
5813         * tests/test-exp-ieee.c: New file.
5814
5815         New module 'exp-ieee'.
5816         * modules/exp-ieee: New file.
5817
5818         Tests for module 'expf-ieee'.
5819         * modules/expf-ieee-tests: New file.
5820         * tests/test-expf-ieee.c: New file.
5821         * tests/test-exp-ieee.h: New file.
5822
5823         New module 'expf-ieee'.
5824         * modules/expf-ieee: New file.
5825
5826 2012-02-29  Bruno Haible  <bruno@clisp.org>
5827
5828         cbrtl-ieee: Work around test failure on IRIX 6.5.
5829         * m4/cbrtl-ieee.m4: New file.
5830         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5831         test whether cbrtl works with a minus zero argument. Replace it if not.
5832         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5834         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5835         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5836         (Depends-on): Update conditions.
5837         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5838         m4/signbit.m4.
5839         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5840         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5841         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5842
5843         Tests for module 'cbrtl-ieee'.
5844         * modules/cbrtl-ieee-tests: New file.
5845         * tests/test-cbrtl-ieee.c: New file.
5846
5847         New module 'cbrtl-ieee'.
5848         * modules/cbrtl-ieee: New file.
5849
5850         Tests for module 'cbrt-ieee'.
5851         * modules/cbrt-ieee-tests: New file.
5852         * tests/test-cbrt-ieee.c: New file.
5853
5854         New module 'cbrt-ieee'.
5855         * modules/cbrt-ieee: New file.
5856
5857         Tests for module 'cbrtf-ieee'.
5858         * modules/cbrtf-ieee-tests: New file.
5859         * tests/test-cbrtf-ieee.c: New file.
5860         * tests/test-cbrt-ieee.h: New file.
5861
5862         New module 'cbrtf-ieee'.
5863         * modules/cbrtf-ieee: New file.
5864
5865 2012-02-29  Bruno Haible  <bruno@clisp.org>
5866
5867         cbrtf: Work around bug in IRIX 6.5 system function.
5868         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5869         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5870         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5871         work.
5872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5873         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5874         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5875         (Depends-on): Update conditions.
5876         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5877
5878 2012-02-29  Bruno Haible  <bruno@clisp.org>
5879
5880         Tests for module 'cbrtl'.
5881         * modules/cbrtl-tests: New file.
5882         * tests/test-cbrtl.c: New file.
5883
5884         New module 'cbrtl'.
5885         * lib/math.in.h (cbrtl): New declaration.
5886         * lib/cbrtl.c: New file.
5887         * m4/cbrtl.m4: New file.
5888         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5890         HAVE_DECL_CBRTL.
5891         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5892         HAVE_DECL_CBRTL.
5893         * modules/cbrtl: New file.
5894         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5895         * doc/posix-functions/cbrtl.texi: Mention the new module.
5896
5897 2012-02-29  Bruno Haible  <bruno@clisp.org>
5898
5899         Tests for module 'cbrtf'.
5900         * modules/cbrtf-tests: New file.
5901         * tests/test-cbrtf.c: New file.
5902
5903         New module 'cbrtf'.
5904         * lib/math.in.h (cbrtf): New declaration.
5905         * lib/cbrtf.c: New file.
5906         * m4/cbrtf.m4: New file.
5907         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5909         HAVE_DECL_CBRTF.
5910         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5911         HAVE_DECL_CBRTF.
5912         * modules/cbrtf: New file.
5913         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5914         * doc/posix-functions/cbrtf.texi: Mention the new module.
5915
5916 2012-02-29  Bruno Haible  <bruno@clisp.org>
5917
5918         cbrt: Provide replacement on MSVC and Minix.
5919         * lib/math.in.h (cbrt): New declaration.
5920         * lib/cbrt.c: New file.
5921         * m4/cbrt.m4: New file.
5922         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5924         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5925         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5926         (Depends-on): Add dependencies.
5927         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5928         * tests/test-math-c++.cc: Check the declaration of cbrt.
5929         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5930         replacement.
5931
5932 2012-02-29  Bruno Haible  <bruno@clisp.org>
5933
5934         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5935         * m4/hypotl-ieee.m4: New file.
5936         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5937         test whether hypotl works with mixed NaN and Infinity arguments.
5938         Replace it if not.
5939         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5941         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5942         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5943         (Depends-on): Update conditions.
5944         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5945         (Depends-on): Add hypot-ieee.
5946         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5947         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5948
5949         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5950         * m4/hypotf-ieee.m4: New file.
5951         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5952         test whether hypotf works with mixed NaN and Infinity arguments.
5953         Replace it if not.
5954         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5955         (Depends-on): Add hypot-ieee.
5956         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5957         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5958
5959         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5960         * lib/math.in.h (hypot): New declaration.
5961         * lib/hypot.c: New file.
5962         * m4/hypot-ieee.m4: New file.
5963         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5964         whether hypot works with mixed NaN and Infinity arguments. Replace it
5965         if not.
5966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5967         REPLACE_HYPOT.
5968         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5969         * modules/hypot (Files): Add lib/hypot.c.
5970         (Depends-on): Add dependencies.
5971         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5972         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5973         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5974         * tests/test-math-c++.cc: Check the declaration of hypot.
5975         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5976
5977         Tests for module 'hypotl-ieee'.
5978         * modules/hypotl-ieee-tests: New file.
5979         * tests/test-hypotl-ieee.c: New file.
5980
5981         New module 'hypotl-ieee'.
5982         * modules/hypotl-ieee: New file.
5983
5984         Tests for module 'hypot-ieee'.
5985         * modules/hypot-ieee-tests: New file.
5986         * tests/test-hypot-ieee.c: New file.
5987
5988         New module 'hypot-ieee'.
5989         * modules/hypot-ieee: New file.
5990
5991         Tests for module 'hypotf-ieee'.
5992         * modules/hypotf-ieee-tests: New file.
5993         * tests/test-hypotf-ieee.c: New file.
5994         * tests/test-hypot-ieee.h: New file.
5995
5996         New module 'hypotf-ieee'.
5997         * modules/hypotf-ieee: New file.
5998
5999 2012-02-29  Bruno Haible  <bruno@clisp.org>
6000
6001         Remove unused variables.
6002         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6003         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6004         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6005         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6006
6007 2012-02-29  Eric Blake  <eblake@redhat.com>
6008
6009         termios: fix pid_t always, not just for tcgetsid
6010         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6011         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6012         just when building tcgetsid.
6013
6014 2012-02-29  Bruno Haible  <bruno@clisp.org>
6015
6016         Tests for module 'hypotl'.
6017         * modules/hypotl-tests: New file.
6018         * tests/test-hypotl.c: New file.
6019
6020         New module 'hypotl'.
6021         * lib/math.in.h (hypotl): New declaration.
6022         * lib/hypotl.c: New file.
6023         * m4/hypotl.m4: New file.
6024         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6026         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6027         * modules/hypotl: New file.
6028         * tests/test-math-c++.cc: Check the hypotl declaration.
6029         * doc/posix-functions/hypotl.texi: Mention the new module.
6030
6031 2012-02-29  Eric Blake  <eblake@redhat.com>
6032
6033         tcgetsid: fix cygwin header bug
6034         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6035
6036         docs: update cygwin progress
6037         * doc/posix-functions/llround.texi (llround): Added in cygwin
6038         1.7.8.
6039         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6040         * doc/glibc-functions/program_invocation_name.texi
6041         (program_invocation_name): Likewise.
6042         * doc/glibc-functions/program_invocation_short_name.texi
6043         (program_invocation_short_name): Likewise.
6044         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6045         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6046         Likewise.
6047         * doc/posix-functions/pthread_spin_destroy.texi
6048         (pthread_spin_destroy): Added in cygwin 1.7.10.
6049         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6050         Likewise.
6051         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6052         Likewise.
6053         * doc/posix-functions/pthread_spin_trylock.texi
6054         (pthread_spin_trylock): Likewise.
6055         * doc/posix-functions/pthread_spin_unlock.texi
6056         (pthread_spin_unlock): Likewise.
6057         * doc/posix-functions/pthread_setschedprio.texi
6058         (pthread_setschedprio): Likewise.
6059         * doc/posix-functions/pthread_attr_getstack.texi
6060         (pthread_attr_getstack): Likewise.
6061         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6062         (pthread_attr_getstackaddr): Likewise.
6063         * doc/glibc-functions/pthread_getattr_np.texi
6064         (pthread_getattr_np): Likewise.
6065         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6066         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6067         * doc/posix-functions/clock_settime.texi (clock_settime):
6068         Likewise.
6069         * doc/posix-functions/pthread_attr_getguardsize.texi
6070         (pthread_attr_getguardsize): Likewise.
6071         * doc/posix-functions/pthread_attr_setguardsize.texi
6072         (pthread_attr_setguardsize): Likewise.
6073         * doc/posix-functions/pthread_attr_setstack.texi
6074         (pthread_attr_setstack): Likewise.
6075         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6076         (pthread_attr_setstackaddr): Likewise.
6077         * doc/posix-functions/clock_getcpuclockid.texi
6078         (clock_getcpuclockid): Likewise.
6079         * doc/posix-functions/pthread_getcpuclockid.texi
6080         (pthread_getcpuclockid): Likewise.
6081         * doc/glibc-functions/error.texi (error): Likewise.
6082         * doc/glibc-functions/error_at_line.texi (error_at_line):
6083         Likewise.
6084         * doc/glibc-functions/error_message_count.texi
6085         (error_message_count): Likewise.
6086         * doc/glibc-functions/error_one_per_line.texi
6087         (error_one_per_line): Likewise.
6088         * doc/glibc-functions/error_print_progname.texi
6089         (error_print_progname): Likewise.
6090         * doc/posix-functions/pthread_condattr_getclock.texi
6091         (pthread_condattr_getclock): Likewise.
6092         * doc/posix-functions/pthread_condattr_setclock.texi
6093         (pthread_condattr_setclock): Likewise.
6094         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6095         Likewise.
6096         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6097         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6098         * doc/glibc-functions/get_current_dir_name.texi
6099         (get_current_dir_name): Likewise.
6100         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6101         Likewise.
6102         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6103         wrong return type.
6104         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6105         1.7.11.
6106
6107 2012-02-29  Bruno Haible  <bruno@clisp.org>
6108
6109         Tests for module 'hypotf'.
6110         * modules/hypotf-tests: New file.
6111         * tests/test-hypotf.c: New file.
6112
6113         New module 'hypotf'.
6114         * lib/math.in.h (hypotf): New declaration.
6115         * lib/hypotf.c: New file.
6116         * m4/hypotf.m4: New file.
6117         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6119         REPLACE_HYPOTF.
6120         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6121         REPLACE_HYPOTF.
6122         * modules/hypotf: New file.
6123         * tests/test-math-c++.cc: Check the hypotf declaration.
6124         * doc/posix-functions/hypotf.texi: Mention the new module.
6125
6126         hypot: Prepare for hypotf module.
6127         * m4/hypot.m4: New file.
6128         * modules/hypot (Files): Add m4/hypot.m4.
6129         (configure.ac): Invoke gl_FUNC_HYPOT.
6130
6131 2012-02-29  Bruno Haible  <bruno@clisp.org>
6132
6133         hypot tests: More tests.
6134         * tests/test-hypot.c: Include <float.h>.
6135         (main): Add tests about overflow and underflow.
6136
6137 2012-02-29  Bruno Haible  <bruno@clisp.org>
6138
6139         math code: Add comments.
6140         * lib/acosl.c: Add comment about related glibc source files.
6141         * lib/asinl.c: Likewise.
6142         * lib/atanl.c: Likewise.
6143         * lib/expl.c: Likewise.
6144         * lib/logl.c: Likewise.
6145         * lib/sincosl.c: Likewise.
6146         * lib/sinl.c: Likewise.
6147         * lib/tanl.c: Likewise.
6148         * lib/trigl.c: Likewise.
6149         * lib/cosl.c: Likewise. Fix comments.
6150
6151 2012-02-28  Bruno Haible  <bruno@clisp.org>
6152
6153         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6154         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6155         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6156         HUGE_VALL are defined.
6157         (numeric_equald): Renamed from numeric_equal.
6158         (numeric_equalf, numeric_equall): New functions.
6159         (main): Check also HUGE_VALF, HUGE_VALL.
6160         * modules/math-tests (Files): Add tests/macros.h.
6161         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6162         HUGE_VALL.
6163
6164 2012-02-28  Bruno Haible  <bruno@clisp.org>
6165
6166         doc: Move ISO C11 feature notes into POSIX chapters.
6167         * doc/posix-functions/aligned_alloc.texi: Renamed from
6168         doc/glibc-functions/aligned_alloc.texi.
6169         * doc/posix-functions/quick_exit.texi: Renamed from
6170         doc/glibc-functions/quick_exit.texi.
6171         * doc/posix-headers/uchar.texi: Renamed from
6172         doc/glibc-headers/uchar.texi.
6173         * doc/posix-functions/c16rtomb.texi: Renamed from
6174         doc/glibc-functions/c16rtomb.texi.
6175         * doc/posix-functions/c32rtomb.texi: Renamed from
6176         doc/glibc-functions/c32rtomb.texi.
6177         * doc/posix-functions/mbrtoc16.texi: Renamed from
6178         doc/glibc-functions/mbrtoc16.texi.
6179         * doc/posix-functions/mbrtoc32.texi: Renamed from
6180         doc/glibc-functions/mbrtoc32.texi.
6181         * doc/gnulib.texi: Update.
6182         (Glibc uchar.h): Remove section.
6183         Suggested by Eric Blake.
6184
6185 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         stdnoreturn: port to MSVC better
6188         MSVC standard headers use __declspec(noreturn), so #define noreturn
6189         to empty on that platform.  Reported by Bruno Haible in
6190         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6191         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6192         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6193
6194 2012-02-28  Bruno Haible  <bruno@clisp.org>
6195
6196         doc: Mention new glibc headers and functions.
6197         * doc/glibc-headers/uchar.texi: New file.
6198         * doc/glibc-functions/aligned_alloc.texi: New file.
6199         * doc/glibc-functions/c16rtomb.texi: New file.
6200         * doc/glibc-functions/c32rtomb.texi: New file.
6201         * doc/glibc-functions/clock_adjtime.texi: New file.
6202         * doc/glibc-functions/fanotify_init.texi: New file.
6203         * doc/glibc-functions/fanotify_mark.texi: New file.
6204         * doc/glibc-functions/inet6_opt_append.texi: New file.
6205         * doc/glibc-functions/inet6_opt_find.texi: New file.
6206         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6207         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6208         * doc/glibc-functions/inet6_opt_init.texi: New file.
6209         * doc/glibc-functions/inet6_opt_next.texi: New file.
6210         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6211         * doc/glibc-functions/inet6_rth_add.texi: New file.
6212         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6213         * doc/glibc-functions/inet6_rth_init.texi: New file.
6214         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6215         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6216         * doc/glibc-functions/inet6_rth_space.texi: New file.
6217         * doc/glibc-functions/login.texi: New file.
6218         * doc/glibc-functions/mbrtoc16.texi: New file.
6219         * doc/glibc-functions/mbrtoc32.texi: New file.
6220         * doc/glibc-functions/name_to_handle_at.texi: New file.
6221         * doc/glibc-functions/ntp_gettimex.texi: New file.
6222         * doc/glibc-functions/open_by_handle_at.texi: New file.
6223         * doc/glibc-functions/prlimit.texi: New file.
6224         * doc/glibc-functions/process_vm_readv.texi: New file.
6225         * doc/glibc-functions/process_vm_writev.texi: New file.
6226         * doc/glibc-functions/recvmmsg.texi: New file.
6227         * doc/glibc-functions/scandirat.texi: New file.
6228         * doc/glibc-functions/sendmmsg.texi: New file.
6229         * doc/glibc-functions/setns.texi: New file.
6230         * doc/glibc-functions/timespec_get.texi: New file.
6231         * doc/gnulib.texi: Include them.
6232         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6233         sections.
6234         Reported by Eric Blake.
6235
6236 2012-02-28  Bruno Haible  <bruno@clisp.org>
6237
6238         Avoid compilation errors with MSVC option -fp:strict.
6239         * lib/floor.c: Use MSVC specific pragma fenv_access.
6240         * lib/ceil.c: Likewise.
6241         * lib/trunc.c: Likewise.
6242         * lib/round.c: Likewise.
6243         * lib/rint.c: Likewise.
6244         * lib/fma.c: Likewise.
6245         * lib/integer_length.c: Likewise.
6246         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6248         * tests/test-floor2.c: Likewise.
6249         * tests/test-floorf2.c: Likewise.
6250         * tests/test-ceil2.c: Likewise.
6251         * tests/test-ceilf2.c: Likewise.
6252         * tests/test-trunc2.c: Likewise.
6253         * tests/test-truncf2.c: Likewise.
6254         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6255
6256 2012-02-27  Bruno Haible  <bruno@clisp.org>
6257
6258         Tests for module 'sqrtl-ieee'.
6259         * modules/sqrtl-ieee-tests: New file.
6260         * tests/test-sqrtl-ieee.c: New file.
6261
6262         New module 'sqrtl-ieee'.
6263         * modules/sqrtl-ieee: New file.
6264
6265         Tests for module 'sqrt-ieee'.
6266         * modules/sqrt-ieee-tests: New file.
6267         * tests/test-sqrt-ieee.c: New file.
6268
6269         New module 'sqrt-ieee'.
6270         * modules/sqrt-ieee: New file.
6271
6272         Tests for module 'sqrtf-ieee'.
6273         * modules/sqrtf-ieee-tests: New file.
6274         * tests/test-sqrtf-ieee.c: New file.
6275         * tests/test-sqrt-ieee.h: New file.
6276
6277         New module 'sqrtf-ieee'.
6278         * modules/sqrtf-ieee: New file.
6279
6280 2012-02-27  Bruno Haible  <bruno@clisp.org>
6281
6282         remainderl-ieee: Work around test failure on OSF/1.
6283         * m4/remainderl-ieee.m4: New file.
6284         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6285         present, test whether remainderl works with a zero second argument.
6286         Replace it if not.
6287         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6289         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6290         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6291         (Depends-on): Update conditions.
6292         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6293         (Depends-on): Add remainder-ieee.
6294         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6295         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6296         module.
6297
6298         remainderf-ieee: Work around test failure on OSF/1.
6299         * m4/remainderf-ieee.m4: New file.
6300         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6301         present, test whether remainderf works with a zero second argument.
6302         Replace it if not.
6303         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6305         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6306         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6307         (Depends-on): Update conditions.
6308         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6309         (Depends-on): Add remainder-ieee.
6310         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6311         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6312         module.
6313
6314         remainder-ieee: Work around test failure on OSF/1.
6315         * m4/remainder-ieee.m4: New file.
6316         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6317         present, test whether remainder works with a zero second argument.
6318         Replace it if not.
6319         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6321         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6322         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6323         (Depends-on): Update dependencies.
6324         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6325         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6326         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6327
6328         Tests for module 'remainderl-ieee'.
6329         * modules/remainderl-ieee-tests: New file.
6330         * tests/test-remainderl-ieee.c: New file.
6331
6332         New module 'remainderl-ieee'.
6333         * modules/remainderl-ieee: New file.
6334
6335         Tests for module 'remainder-ieee'.
6336         * modules/remainder-ieee-tests: New file.
6337         * tests/test-remainder-ieee.c: New file.
6338
6339         New module 'remainder-ieee'.
6340         * modules/remainder-ieee: New file.
6341
6342         Tests for module 'remainderf-ieee'.
6343         * modules/remainderf-ieee-tests: New file.
6344         * tests/test-remainderf-ieee.c: New file.
6345         * tests/test-remainder-ieee.h: New file.
6346
6347         New module 'remainderf-ieee'.
6348         * modules/remainderf-ieee: New file.
6349
6350 2012-02-27  Bruno Haible  <bruno@clisp.org>
6351
6352         modff, modfl: Fix configure syntax error.
6353         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6354         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6355
6356 2012-02-27  Bruno Haible  <bruno@clisp.org>
6357
6358         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6359         * m4/fmodl-ieee.m4: New file.
6360         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6361         whether fmodl works with zero arguments. Replace it if not.
6362         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6363         (Depends-on): Add fmod-ieee.
6364         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6365         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6366
6367         fmodf-ieee: Work around test failure on OSF/1.
6368         * m4/fmodf-ieee.m4: New file.
6369         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6370         whether fmodf works with zero arguments. Replace it if not.
6371         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6373         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6374         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6375         (Depends-on): Update dependencies.
6376         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6377         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6378         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6379
6380         fmodf-ieee: Work around test failure on MSVC 9.
6381         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6382         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6383
6384         fmod-ieee: Work around test failures on OSF/1, mingw.
6385         * m4/fmod-ieee.m4: New file.
6386         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6387         whether fmod works with zero arguments. Replace it if not.
6388         * lib/math.in.h (fmod): New declaration.
6389         * lib/fmod.c: New file.
6390         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6392         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6393         * modules/fmod (Files): Add lib/fmod.c.
6394         (Depends-on): Add math, isinf, trunc, fma.
6395         (configure.ac): Arrange to compile lib/fmod.c if needed.
6396         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6397         m4/signbit.m4.
6398         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6399         * tests/test-math-c++.cc: Check the declaration of fmod.
6400         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6401
6402         fmodl-ieee: Fix test failures.
6403         * lib/fmodl.c (fmodl): Treat Inf specially.
6404         * modules/fmodl (Depends-on): Add isinf.
6405
6406         Tests for module 'fmodl-ieee'.
6407         * modules/fmodl-ieee-tests: New file.
6408         * tests/test-fmodl-ieee.c: New file.
6409
6410         New module 'fmodl-ieee'.
6411         * modules/fmodl-ieee: New file.
6412
6413         Tests for module 'fmod-ieee'.
6414         * modules/fmod-ieee-tests: New file.
6415         * tests/test-fmod-ieee.c: New file.
6416
6417         New module 'fmod-ieee'.
6418         * modules/fmod-ieee: New file.
6419
6420         Tests for module 'fmodf-ieee'.
6421         * modules/fmodf-ieee-tests: New file.
6422         * tests/test-fmodf-ieee.c: New file.
6423         * tests/test-fmod-ieee.h: New file.
6424
6425         New module 'fmodf-ieee'.
6426         * modules/fmodf-ieee: New file.
6427
6428 2012-02-27  Bruno Haible  <bruno@clisp.org>
6429
6430         Tests for module 'rintl-ieee'.
6431         * modules/rintl-ieee-tests: New file.
6432         * tests/test-rintl-ieee.c: New file.
6433
6434         New module 'rintl-ieee'.
6435         * modules/rintl-ieee: New file.
6436
6437         Tests for module 'rint-ieee'.
6438         * modules/rint-ieee-tests: New file.
6439         * tests/test-rint-ieee.c: New file.
6440
6441         New module 'rint-ieee'.
6442         * modules/rint-ieee: New file.
6443
6444         Tests for module 'rintf-ieee'.
6445         * modules/rintf-ieee-tests: New file.
6446         * tests/test-rintf-ieee.c: New file.
6447         * tests/test-rint-ieee.h: New file.
6448
6449         New module 'rintf-ieee'.
6450         * modules/rintf-ieee: New file.
6451
6452 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6453
6454         regex: re_search etc. should return -2 when memory exhausted
6455         This bug was uncovered when testing 'grep'.  Without the fix,
6456         re_search and friends return -1 when memory is exhausted, but -1
6457         means no match, and this causes grep to falsely report no-match
6458         instead of memory-exhaustion.  See
6459         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6460         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6461         trouble; this can occur if re_search_internal ran out of memory.
6462
6463 2012-02-26  Bruno Haible  <bruno@clisp.org>
6464
6465         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6466         * m4/modfl-ieee.m4: New file.
6467         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6468         whether modfl works with Inf. Replace it if not.
6469         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6471         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6472         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6473         (Depends-on): Update dependencies.
6474         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6475         m4/signbit.m4.
6476         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6477         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6478
6479         modfl-ieee: Fix dependencies.
6480         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6481
6482         modfl-ieee: Fix test failures.
6483         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6484         * modules/modfl (Depends-on): Add isfinite, isinf.
6485
6486         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6487         * m4/modff-ieee.m4: New file.
6488         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6489         whether modff works with NaN and Inf. Replace it if not.
6490         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6492         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6493         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6494         (Depends-on): Update dependencies.
6495         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6496         m4/signbit.m4.
6497         (Depends-on): Add modf-ieee.
6498         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6499         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6500
6501         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6502         * m4/modf-ieee.m4: New file.
6503         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6504         whether modf works with NaN and Inf. Replace it if not.
6505         * lib/math.in.h (modf): New declaration.
6506         * lib/modf.c: New file.
6507         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6509         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6510         * modules/modf (Files): Add lib/modf.c.
6511         (Depends-on): Add math, isfinite, trunc, isinf.
6512         (configure.ac): Addrange to compile lib/modf.c if needed.
6513         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6514         m4/signbit.m4.
6515         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6516         * tests/test-math-c++.cc: Check the declaration of modf.
6517         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6518
6519         Tests for module 'modfl-ieee'.
6520         * modules/modfl-ieee-tests: New file.
6521         * tests/test-modfl-ieee.c: New file.
6522
6523         New module 'modfl-ieee'.
6524         * modules/modfl-ieee: New file.
6525
6526         Tests for module 'modf-ieee'.
6527         * modules/modf-ieee-tests: New file.
6528         * tests/test-modf-ieee.c: New file.
6529
6530         New module 'modf-ieee'.
6531         * modules/modf-ieee: New file.
6532
6533         Tests for module 'modff-ieee'.
6534         * modules/modff-ieee-tests: New file.
6535         * tests/test-modff-ieee.c: New file.
6536         * tests/test-modf-ieee.h: New file.
6537
6538         New module 'modff-ieee'.
6539         * modules/modff-ieee: New file.
6540
6541 2012-02-26  Bruno Haible  <bruno@clisp.org>
6542
6543         Tests for module 'fabsl-ieee'.
6544         * modules/fabsl-ieee-tests: New file.
6545         * tests/test-fabsl-ieee.c: New file.
6546
6547         New module 'fabsl-ieee'.
6548         * modules/fabsl-ieee: New file.
6549
6550         Tests for module 'fabs-ieee'.
6551         * modules/fabs-ieee-tests: New file.
6552         * tests/test-fabs-ieee.c: New file.
6553
6554         New module 'fabs-ieee'.
6555         * modules/fabs-ieee: New file.
6556
6557         Tests for module 'fabsf-ieee'.
6558         * modules/fabsf-ieee-tests: New file.
6559         * tests/test-fabsf-ieee.c: New file.
6560         * tests/test-fabs-ieee.h: New file.
6561
6562         New module 'fabsf-ieee'.
6563         * modules/fabsf-ieee: New file.
6564
6565 2012-02-26  Bruno Haible  <bruno@clisp.org>
6566
6567         Tests for module 'fmal-ieee'.
6568         * modules/fmal-ieee-tests: New file.
6569         * tests/test-fmal-ieee.c: New file.
6570
6571         New module 'fmal-ieee'.
6572         * modules/fmal-ieee: New file.
6573
6574         Tests for module 'fma-ieee'.
6575         * modules/fma-ieee-tests: New file.
6576         * tests/test-fma-ieee.c: New file.
6577
6578         New module 'fma-ieee'.
6579         * modules/fma-ieee: New file.
6580
6581         Tests for module 'fmaf-ieee'.
6582         * modules/fmaf-ieee-tests: New file.
6583         * tests/test-fmaf-ieee.c: New file.
6584         * tests/test-fma-ieee.h: New file.
6585
6586         New module 'fmaf-ieee'.
6587         * modules/fmaf-ieee: New file.
6588
6589 2012-02-26  Bruno Haible  <bruno@clisp.org>
6590
6591         Tests for module 'ldexpl-ieee'.
6592         * modules/ldexpl-ieee-tests: New file.
6593         * tests/test-ldexpl-ieee.c: New file.
6594
6595         New module 'ldexpl-ieee'.
6596         * modules/ldexpl-ieee: New file.
6597
6598         Tests for module 'ldexp-ieee'.
6599         * modules/ldexp-ieee-tests: New file.
6600         * tests/test-ldexp-ieee.c: New file.
6601
6602         New module 'ldexp-ieee'.
6603         * modules/ldexp-ieee: New file.
6604
6605         Tests for module 'ldexpf-ieee'.
6606         * modules/ldexpf-ieee-tests: New file.
6607         * tests/test-ldexpf-ieee.c: New file.
6608         * tests/test-ldexp-ieee.h: New file.
6609
6610         New module 'ldexpf-ieee'.
6611         * modules/ldexpf-ieee: New file.
6612
6613 2012-02-26  Bruno Haible  <bruno@clisp.org>
6614
6615         Refactor frexp*-ieee tests.
6616         * tests/test-frexp-ieee.h: New file.
6617         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6618         (main): Just call test_function.
6619         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6620         (main): Just call test_function.
6621         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6622         (main): Just call test_function.
6623         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6624         * modules/frexp-ieee-tests (Files): Likewise.
6625         * modules/frexpl-ieee-tests (Files): Likewise.
6626
6627         Tests for module 'frexpl-ieee'.
6628         * modules/frexpl-ieee-tests: New file.
6629         * tests/test-frexpl-ieee.c: New file.
6630
6631         New module 'frexpl-ieee'.
6632         * modules/frexpl-ieee: New file.
6633
6634         Tests for module 'frexp-ieee'.
6635         * modules/frexp-ieee-tests: New file.
6636         * tests/test-frexp-ieee.c: New file.
6637
6638         New module 'frexp-ieee'.
6639         * modules/frexp-ieee: New file.
6640
6641         Tests for module 'frexpf-ieee'.
6642         * modules/frexpf-ieee-tests: New file.
6643         * tests/test-frexpf-ieee.c: New file.
6644
6645         New module 'frexpf-ieee'.
6646         * modules/frexpf-ieee: New file.
6647
6648 2012-02-26  Bruno Haible  <bruno@clisp.org>
6649
6650         roundl-ieee tests: More tests.
6651         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6652         (main): Add tests for [MX] shaded specification in POSIX.
6653         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6654         (Depends-on): Add isnanl-nolibm.
6655
6656         round-ieee tests: More tests.
6657         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6658         (main): Add tests for [MX] shaded specification in POSIX.
6659         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6660         (Depends-on): Add isnand-nolibm.
6661
6662         roundf-ieee tests: More tests.
6663         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6664         (main): Add tests for [MX] shaded specification in POSIX.
6665         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6666         (Depends-on): Add isnanf-nolibm.
6667
6668         truncl-ieee tests: More tests.
6669         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6670         (main): Add tests for [MX] shaded specification in POSIX.
6671         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6672         (Depends-on): Add isnanl-nolibm.
6673
6674         trunc-ieee tests: More tests.
6675         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6676         (main): Add tests for [MX] shaded specification in POSIX.
6677         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6678         (Depends-on): Add isnand-nolibm.
6679
6680         truncf-ieee tests: More tests.
6681         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6682         (main): Add tests for [MX] shaded specification in POSIX.
6683         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6684         (Depends-on): Add isnanf-nolibm.
6685
6686         ceill-ieee tests: More tests.
6687         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6688         (main): Add tests for [MX] shaded specification in POSIX.
6689         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6690         (Depends-on): Add isnanl-nolibm.
6691
6692         ceil-ieee tests: More tests.
6693         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6694         (main): Add tests for [MX] shaded specification in POSIX.
6695         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6696         (Depends-on): Add isnand-nolibm.
6697
6698         ceilf-ieee tests: More tests.
6699         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6700         (main): Add tests for [MX] shaded specification in POSIX.
6701         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6702         (Depends-on): Add isnanf-nolibm.
6703
6704         floorl-ieee tests: More tests.
6705         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6706         (main): Add tests for [MX] shaded specification in POSIX.
6707         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6708         (Depends-on): Add isnanl-nolibm.
6709
6710         floor-ieee tests: More tests.
6711         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6712         (main): Add tests for [MX] shaded specification in POSIX.
6713         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6714         (Depends-on): Add isnand-nolibm.
6715
6716         floorf-ieee tests: More tests.
6717         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6718         (main): Add tests for [MX] shaded specification in POSIX.
6719         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6720         (Depends-on): Add isnanf-nolibm.
6721
6722 2012-02-26  Bruno Haible  <bruno@clisp.org>
6723
6724         fpieee: More comments.
6725         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6726
6727 2012-02-25  Bruno Haible  <bruno@clisp.org>
6728
6729         Tests for module 'log10l'.
6730         * modules/log10l-tests: New file.
6731         * tests/test-log10l.c: New file.
6732         * tests/test-math-c++.cc: Check the declaration of log10l.
6733
6734         New module 'log10l'.
6735         * lib/math.in.h (log10l): New declaration.
6736         * lib/log10l.c: New file.
6737         * m4/log10l.m4: New file.
6738         * modules/log10l: New file.
6739         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6741         HAVE_DECL_LOG10L.
6742         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6743         HAVE_DECL_LOG10L.
6744         * doc/posix-functions/log10l.texi: Mention the new module.
6745
6746 2012-02-25  Bruno Haible  <bruno@clisp.org>
6747
6748         fmodl, remainder*: Avoid wrong results due to rounding errors.
6749         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6750         expected bounds.
6751         * lib/remainderf.c (remainderf): Likewise.
6752         * lib/remainder.c (remainder): Likewise.
6753         * lib/remainderl.c (remainderl): Likewise.
6754
6755 2012-02-25  Bruno Haible  <bruno@clisp.org>
6756
6757         Tests for module 'remainderl'.
6758         * modules/remainderl-tests: New file.
6759         * tests/test-remainderl.c: New file.
6760         * tests/test-math-c++.cc: Check the declaration of remainderl.
6761
6762         New module 'remainderl'.
6763         * lib/math.in.h (remainderl): New declaration.
6764         * lib/remainderl.c: New file.
6765         * m4/remainderl.m4: New file.
6766         * modules/remainderl: New file.
6767         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6769         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6770         HAVE_REMAINDERL.
6771         * doc/posix-functions/remainderl.texi: Mention the new module.
6772
6773 2012-02-25  Bruno Haible  <bruno@clisp.org>
6774
6775         Tests for module 'remainderf'.
6776         * modules/remainderf-tests: New file.
6777         * tests/test-remainderf.c: New file.
6778         * tests/test-math-c++.cc: Check the declaration of remainderf.
6779
6780         New module 'remainderf'.
6781         * lib/math.in.h (remainderf): New declaration.
6782         * lib/remainderf.c: New file.
6783         * m4/remainderf.m4: New file.
6784         * modules/remainderf: New file.
6785         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6787         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6788         HAVE_REMAINDERF.
6789         * doc/posix-functions/remainderf.texi: Mention the new module.
6790
6791 2012-02-25  Bruno Haible  <bruno@clisp.org>
6792
6793         remainder: Support for MSVC.
6794         * lib/math.in.h (remainder): New declaration.
6795         * lib/remainder.c: New file.
6796         * m4/remainder.m4: New file.
6797         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6798         (Depends-on): Add math, round, fma.
6799         (configure.ac): Use results of gl_FUNC_REMAINDER.
6800         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6802         HAVE_DECL_REMAINDER.
6803         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6804         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6805         * tests/test-math-c++.cc: Check the declaration of remainder.
6806         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6807         problems are fixed.
6808
6809 2012-02-25  Bruno Haible  <bruno@clisp.org>
6810
6811         Tests for module 'fmodl'.
6812         * modules/fmodl-tests: New file.
6813         * tests/test-fmodl.c: New file.
6814         * tests/test-math-c++.cc: Check the declaration of fmodl.
6815
6816         New module 'fmodl'.
6817         * lib/math.in.h (fmodl): New declaration.
6818         * lib/fmodl.c: New file.
6819         * m4/fmodl.m4: New file.
6820         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6822         REPLACE_FMODL.
6823         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6824         REPLACE_FMODL.
6825         * modules/fmodl: New file.
6826         * doc/posix-functions/fmodl.texi: Mention the new module.
6827
6828 2012-02-25  Bruno Haible  <bruno@clisp.org>
6829
6830         Tests for module 'modfl'.
6831         * modules/modfl-tests: New file.
6832         * tests/test-modfl.c: New file.
6833         * tests/test-math-c++.cc: Check the declaration of modfl.
6834
6835         New module 'modfl'.
6836         * lib/math.in.h (modfl): New declaration.
6837         * lib/modfl.c: New file.
6838         * m4/modfl.m4: New file.
6839         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6841         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6842         * modules/modfl: New file.
6843         * doc/posix-functions/modfl.texi: Mention the new module.
6844
6845 2012-02-25  Bruno Haible  <bruno@clisp.org>
6846
6847         Tests for module 'fabsl'.
6848         * modules/fabsl-tests: New file.
6849         * tests/test-fabsl.c: New file.
6850         * tests/test-math-c++.cc: Check the declaration of fabsl.
6851
6852         New module 'fabsl'.
6853         * lib/math.in.h (fabsl): New declaration.
6854         * lib/fabsl.c: New file.
6855         * m4/fabsl.m4: New file.
6856         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6858         REPLACE_FABSL.
6859         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6860         REPLACE_FABSL.
6861         * modules/fabsl: New file.
6862         * doc/posix-functions/fabsl.texi: Mention the new module.
6863
6864 2012-02-25  Bruno Haible  <bruno@clisp.org>
6865
6866         fabs tests: More tests.
6867         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6868         (zero): New variable.
6869         (main): Add tests for signed zero.
6870         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6871
6872         fabsf tests: More tests.
6873         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6874         (zero): New variable.
6875         (main): Add tests for signed zero.
6876         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6877
6878 2012-02-24  Bruno Haible  <bruno@clisp.org>
6879
6880         atanl: Provide function definition on MSVC.
6881         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6882         function pointer.
6883         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6884
6885 2012-02-24  Bruno Haible  <bruno@clisp.org>
6886
6887         acosl: Provide function definition on MSVC.
6888         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6889         function pointer.
6890         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6891
6892 2012-02-24  Bruno Haible  <bruno@clisp.org>
6893
6894         asinl: Provide function definition on MSVC.
6895         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6896         function pointer.
6897         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6898
6899 2012-02-24  Bruno Haible  <bruno@clisp.org>
6900
6901         tanl: Provide function definition on MSVC.
6902         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6903         function pointer.
6904         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6905
6906 2012-02-24  Bruno Haible  <bruno@clisp.org>
6907
6908         cosl: Provide function definition on MSVC.
6909         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6910         function pointer.
6911         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6912
6913 2012-02-24  Bruno Haible  <bruno@clisp.org>
6914
6915         sinl: Provide function definition on MSVC.
6916         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6917         function pointer.
6918         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6919
6920 2012-02-24  Bruno Haible  <bruno@clisp.org>
6921
6922         logl: Provide function definition on MSVC.
6923         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6924         function pointer.
6925         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6926
6927 2012-02-24  Bruno Haible  <bruno@clisp.org>
6928
6929         expl: Provide function definition on MSVC.
6930         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6931         function pointer.
6932         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6933
6934 2012-02-24  Bruno Haible  <bruno@clisp.org>
6935
6936         sqrtl: Provide function definition on MSVC.
6937         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6938         a function pointer.
6939         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6940
6941 2012-02-24  Bruno Haible  <bruno@clisp.org>
6942
6943         ceill: Provide function definition on MSVC.
6944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6945         used as a function pointer.
6946         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6947
6948 2012-02-24  Bruno Haible  <bruno@clisp.org>
6949
6950         floorl: Provide function definition on MSVC.
6951         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6952         used as a function pointer.
6953         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6954
6955 2012-02-24  Bruno Haible  <bruno@clisp.org>
6956
6957         ceilf: Provide function definition on MSVC.
6958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6959         used as a function pointer.
6960         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6961
6962 2012-02-24  Bruno Haible  <bruno@clisp.org>
6963
6964         floorf: Provide function definition on MSVC.
6965         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6966         used as a function pointer.
6967         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6968
6969 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6970
6971         stdnoreturn: new module
6972         This implements a replacement for C11's <stdnoreturn.h>.
6973         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6974         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6975         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6976         * tests/test-stdnoreturn.c: New files.
6977
6978 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6979
6980         regex: fix false multibyte matches in some regular expressions
6981         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6982         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6983         * lib/regex_internal.c (re_string_skip_chars):
6984         Fix miscomputation of remain_len that may cause incomplete
6985         multi-byte character and false match.
6986
6987 2012-02-24  Jim Meyering  <meyering@redhat.com>
6988
6989         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6990         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6991         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6992         Remove now-unnecessary str''cmp obfuscation.
6993         Suggested by Akim Demaille.
6994
6995 2012-02-24  Bruno Haible  <bruno@clisp.org>
6996
6997         streq: Rename macro.
6998         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6999         * NEWS: Mention the change.
7000         * lib/mbrtowc.c (mbrtowc): Update.
7001         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7002         * lib/wcwidth.c (wcwidth): Update.
7003         Suggested by Akim Demaille and Jim Meyering.
7004
7005 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7006
7007         regex: fix typo in definition of MIN
7008         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7009         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7010
7011 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7012             Bruno Haible  <bruno@clisp.org>
7013
7014         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7015         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7016         entries into a stack-allocated buffer directly.
7017         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7018
7019 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7020             Bruno Haible  <bruno@clisp.org>
7021
7022         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7023
7024          - There were several instances of this pattern:
7025
7026              for (;;) {
7027                n = acl (f, GETACLCNT, 0, NULL);
7028                [ allocate an array A of size N ]
7029                if (acl (f, GETACL, n, a) == n)
7030                  break;
7031              }
7032
7033            This loop might never terminate if some other process is constantly
7034            manipulating the file's ACL.  The loop should be rewritten to
7035            terminate.
7036
7037          - The acl (... GETACLNT ...) call is merely an optimization; its value
7038            is merely a hint as to how big to make the array.  A better
7039            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7040            and just guess a reasonably-big size, growing the size and trying
7041            again if it's not large enough.  This guarantees termination, and
7042            saves a system call.
7043
7044         * lib/acl-internal.h: Include <limits.h>.
7045         (MIN, SIZE_MAX): New macros.
7046         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7047         a stack-allocated buffer, and use malloc if it does not fit. Don't
7048         use GETACLCNT.
7049         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7050
7051 2012-02-19  Bruno Haible  <bruno@clisp.org>
7052
7053         acl: Fix endless loop on Solaris with vxfs.
7054         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7055         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7056         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7057         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7058         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7059         Reported by Bill Jones in
7060         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7061
7062 2012-02-19  Bruno Haible  <bruno@clisp.org>
7063
7064         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7065         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7066         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7067         that this function returns 0 in some more cases.
7068
7069 2012-02-19  Bruno Haible  <bruno@clisp.org>
7070
7071         acl: Update doc references.
7072         * doc/acl-resources.txt: Update links to Solaris documentation.
7073
7074 2012-02-19  Bruno Haible  <bruno@clisp.org>
7075
7076         Fix test failure in many locales on Solaris 11.
7077         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7078         'tr' arguments.
7079         * tests/test-pipe-filter-ii1.c (main): Likewise.
7080         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7081         expressions in the C locale.
7082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7083         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7084
7085 2012-02-19  Bruno Haible  <bruno@clisp.org>
7086
7087         gnulib-tool: Improve usage message.
7088         * gnulib-tool (func_usage): Move doc of --help and --version to the
7089         section "Operation modes".
7090
7091 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7092
7093         README-release: make it easier to execute commands
7094         * top/README-release: break commands out on to separate lines.
7095
7096 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7097
7098         GNUmakefile: simplify detection of unconfigured trees
7099         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7100         whether the tree make is being run from is already configured or
7101         not.  Related simplifications.
7102
7103 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7104
7105         * gnulib-tool (func_usage): Document --help and --version.
7106
7107 2012-02-11  Jim Meyering  <meyering@redhat.com>
7108
7109         bootstrap: don't exit 0 upon gnulib-tool failure
7110         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7111         its exit status, not 0.
7112
7113 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7114
7115         README-release: various improvements
7116         * top/README-release: Give a command to push changes for the
7117         release.  Add "distcheck" to list of other pre-release checks.
7118         Fix instance of "make stable" which should be "make TYPE".
7119
7120 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7121
7122         maint: replace FSF snail-mail addresses with URLs
7123         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7124         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7125         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7126         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7127         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7128         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7129         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7130         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7131         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7132         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7133         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7134         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7135         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7136         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7137         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7138         * lib/glthread/thread.c, lib/glthread/thread.h:
7139         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7140         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7141         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7142         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7143         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7144         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7145         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7146         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7147         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7148         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7149         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7150         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7151         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7152         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7153         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7154         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7155         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7156         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7157         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7158         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7159         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7160         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7161         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7162         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7163         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7164         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7165         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7166         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7167         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7168         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7169         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7170         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7171         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7172         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7173         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7174         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7175         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7176         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7177         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7178         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7179         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7180         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7181         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7182         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7183         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7184         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7185         * tests/test-poll.c, tests/test-quotearg-simple.c:
7186         * tests/test-quotearg.c, tests/test-quotearg.h:
7187         * tests/test-round-ieee.c, tests/test-round1.c:
7188         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7189         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7190         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7191         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7192         * tests/test-strerror.c, tests/test-strerror_r.c:
7193         * tests/test-strsignal.c, tests/test-strverscmp.c:
7194         * tests/test-xmemdup0.c:
7195         Replace FSF snail mail addresses with URLs, as per GNU coding
7196         standards.  See glibc bug
7197         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7198
7199 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7200
7201         README-release: capitalize a word and split a line
7202         * top/README-release: Fix punctuation and spacing.
7203
7204 2012-02-08  Akim Demaille  <demaille@gostai.com>
7205
7206         fatal-signal: use C prototypes (with explicit void).
7207         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7208         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7209
7210 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7211
7212         regex: spelling fix
7213         * lib/regexec.c: spelling fix
7214
7215         regex: rely on stdint.h for SIZE_MAX
7216         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7217
7218 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7219
7220         regex: merge glibc changes
7221
7222         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7223         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7224         (init_word_char): Work even if bitset words are not exactly 32 or
7225         64 bits wide.  Don't assume there are no padding bits.
7226         * lib/regex.c [_LIBC]: Do not include <config.h>.
7227         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7228         and -Wtype-limits.
7229         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7230         needless disagreement with glibc.  All uses changed.  Define it to
7231         1 only if _GNU_SOURCE, to match glibc.
7232         (_REG_RM_NAME): Remove; no longer needed, since the names in
7233         question are now all protected by __USE_GNU.
7234         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7235         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7236         * lib/regex_internal.h (MIN): New macro.
7237
7238         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7239         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7240
7241         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7242         * lib/regex_internal.c (re_string_fetch_byte_case):
7243         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7244         is miscompiled, and it turns out it is because of an incorrect
7245         attribute on re_string_fetch_byte_case.  Unlike
7246         re_string_peek_byte_case, this one is really not pure, it modifies
7247         memory (increments pstr->cur_idx), and with the pure attribute GCC
7248         assumed it doesn't and it cached the presumed value of
7249         regexp->cur_idx in a variable across the
7250          for (;; ++i)
7251            {
7252              if (i >= BRACKET_NAME_BUF_SIZE)
7253                return REG_EBRACK;
7254              if (token->type == OP_OPEN_CHAR_CLASS)
7255                ch = re_string_fetch_byte_case (regexp);
7256              else
7257                ch = re_string_fetch_byte (regexp);
7258              if (re_string_eoi(regexp))
7259                return REG_EBRACK;
7260              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7261                break;
7262              elem->opr.name[i] = ch;
7263            }
7264
7265         2011-11-29 Andreas Schwab <schwab@redhat.com>
7266         * lib/regcomp.c (build_equiv_class):
7267         Fix access after end of search string in regex matcher.
7268
7269         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7270         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7271
7272         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7273         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7274
7275         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7276         * lib/regcomp.c (parse_branch, parse_sub_exp):
7277         More regex memory leak fixes and tests.
7278         (parse_sub_exp, parse_bracket_exp):
7279         Fix memory leak for some invalid regular expressions.
7280
7281         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7282         * lib/regex_internal.c, lib/regexec.c:
7283         Fix unnecessary overallocation due to incomplete character.  When
7284         incomplete characters are found at the end of a string the code
7285         ran amok and allocated lots of memory.  Stricter limits are now in
7286         place.
7287
7288         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7289         * lib/regex.h: Update documentation.
7290
7291         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7292         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7293
7294         2010-05-05 Andreas Schwab <schwab@redhat.com>
7295         * lib/regexec.c (find_collation_sequence_value):
7296         Fix lookup of collation sequence value during regexp matching.
7297
7298         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7299         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7300
7301         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7302         * lib/regex.h: Cleanup namespace.
7303
7304         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7305         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7306
7307         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7308         * lib/regex_internal.h: Prevent some declarations and definitions
7309         to be seen when used in tests.
7310
7311         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7312         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7313         __libc_lock_* macros if not _LIBC.
7314         (struct re_dfa_t): Add lock.
7315
7316 2012-02-07  Eric Blake  <eblake@redhat.com>
7317
7318         maint.mk: also prohibit lower-case @var@
7319         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7320         lower case, like @top_srcdir@.
7321
7322 2012-02-04  Eric Blake  <eblake@redhat.com>
7323
7324         canonicalize: avoid uninitialized memory use
7325         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7326         random '/' left in dest.
7327         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7328
7329 2012-02-04  Bruno Haible  <bruno@clisp.org>
7330
7331         isatty: Fix test failure of ptsname_r on native Windows.
7332         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7333         and don't set errno.
7334         (isatty): Test first whether fd is valid. Set errno when returning 0.
7335
7336 2012-02-04  Bruno Haible  <bruno@clisp.org>
7337
7338         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7339         * tests/test-spawn-pipe-main.c: Include progname.h.
7340         (main): Invoke set_program_name.
7341         * modules/spawn-pipe-tests (Depends-on): Add progname.
7342
7343         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7344         * tests/test-nonblocking-socket-main.c: Include progname.h.
7345         (main): Invoke set_program_name.
7346         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7347
7348         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7349         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7350         (main): Invoke set_program_name.
7351         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7352
7353 2012-02-04  Eric Blake  <eblake@redhat.com>
7354
7355         canonicalize-lgpl: fix // handling
7356         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7357
7358         canonicalize: fix // handling
7359         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7360         /// to //, since only // is special.
7361
7362 2012-02-04  Bruno Haible  <bruno@clisp.org>
7363
7364         ioctl: Fix test failure on native Windows.
7365         * lib/ioctl.c: Include msvc-nothrow.h.
7366         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7367
7368 2012-02-04  Bruno Haible  <bruno@clisp.org>
7369
7370         fsync: Avoid test failure on native Windows.
7371         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7372         read-only.
7373
7374 2012-02-04  Bruno Haible  <bruno@clisp.org>
7375
7376         sys_select: Avoid syntax error on OpenBSD 5.0.
7377         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7378         currently being included, just include the system's <sys/select.h>.
7379
7380 2012-02-04  Bruno Haible  <bruno@clisp.org>
7381
7382         sys_select: Avoid syntax error on OpenBSD 5.0.
7383         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7384         <sys/select.h>, not before.
7385         Reported by Jiri B <jirib@devio.us>.
7386
7387 2012-02-04  Bruno Haible  <bruno@clisp.org>
7388
7389         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7390         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7391         global variables.
7392         * tests/test-get-rusage-data.c (main): Likewise.
7393         Reported by Jim Meyering.
7394
7395 2012-02-04  Bruno Haible  <bruno@clisp.org>
7396
7397         stdioext: Fix last commit.
7398         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7399
7400 2012-02-03  Bruno Haible  <bruno@clisp.org>
7401
7402         stdioext: Add tentative support for Plan9.
7403         * lib/stdio-impl.h: Include <errno.h>.
7404         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7405         * lib/freadable.c (freadable): Likewise.
7406         * lib/fwritable.c (fwritable): Likewise.
7407         * lib/fbufmode.c (fbufmode): Likewise.
7408         * lib/freading.c (freading): Likewise.
7409         * lib/fwriting.c (fwriting): Likewise.
7410         * lib/freadptr.c (freadptr): Likewise.
7411         * lib/freadseek.c (freadptrinc): Likewise.
7412         * lib/freadahead.c (freadahead): Likewise.
7413         * lib/fpurge.c (fpurge): Likewise.
7414         * lib/fseeko.c (rpl_fseeko): Likewise.
7415         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7416         Reported by Jens Staal <staal1978@gmail.com>.
7417
7418 2012-02-02  Jim Meyering  <meyering@redhat.com>
7419
7420         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7421         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7422         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7423         not even to try to add the attribute.  Instead, add a pragma to suppress
7424         the suggestion/warning.
7425
7426 2012-01-31  Karl Berry  <karl@gnu.org>
7427
7428         setstate doc: typo.
7429         * doc/posix-functions/setstate.texi (setstate): { not (.
7430
7431 2012-01-31  Bruno Haible  <bruno@clisp.org>
7432
7433         popen: Make more robust on Windows.
7434         * lib/popen.c: On native Windows, use the _popen based code even if
7435         HAVE_POPEN is set.
7436         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7437         environment variable on native Windows.
7438
7439 2012-01-30  Bruno Haible  <bruno@clisp.org>
7440
7441         pclose: Fix typo.
7442         * lib/stdio.in.h (pclose): Fix typo in warning message.
7443
7444 2012-01-30  Bruno Haible  <bruno@clisp.org>
7445
7446         doc about getlogin_r, setstate.
7447         * doc/posix-functions/getlogin_r.texi: List the incompatible
7448         declaration problem under "not fixed by gnulib".
7449         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7450         problem on Solaris 11 and other platforms.
7451
7452 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7453             Bruno Haible  <bruno@clisp.org>
7454
7455         poll tests: Make test more robust.
7456         * tests/test-poll.c: Include macros.h.
7457         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7458         return value of various I/O operations.
7459         * modules/poll-tests (Files): Add tests/macros.h.
7460
7461 2012-01-30  Bruno Haible  <bruno@clisp.org>
7462
7463         sys_stat: Fix support for mingw64 and MSVC.
7464         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7465         header files already do it.
7466         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7467         stat itself.
7468         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7469
7470 2012-01-30  Bruno Haible  <bruno@clisp.org>
7471
7472         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7474         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7475
7476 2012-01-29  Bruno Haible  <bruno@clisp.org>
7477
7478         quotearg: Fix test failure on MacOS X 10.5.
7479         * tests/test-quotearg-simple.c: Include localcharset.h.
7480         (main): If the locale encoding is not ASCII, bypass the tests of
7481         locale_quoting_style and clocale_quoting_style.
7482         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7483
7484 2012-01-29  Jim Meyering  <meyering@redhat.com>
7485
7486         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7487         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7488         detect uses of canonicalize_file_name.
7489
7490 2012-01-28  Bruno Haible  <bruno@clisp.org>
7491
7492         test-framework-sh: Fix test failure with AIX 7.1 diff.
7493         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7494         in column 1, like 'diff -c' does.
7495         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7496         whether 'diff -u' is used. Instead, test whether the output contains
7497         some '@' character.
7498
7499 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7500
7501         strtoimax: eliminate need for stdint.h, inttypes.h checks
7502         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7503         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7504         the prerequisites for a recently-introduced strtoimax test.
7505         I guess this might cause strtoimax to be replaced when not
7506         strictly necessary on older hosts, but this shouldn't introduce
7507         any bugs and it should make Emacs 'configure' faster on typical
7508         modern hosts.  Problem discovered when importing the latest gnulib
7509         to an Emacs test version.
7510         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7511
7512 2012-01-28  Bruno Haible  <bruno@clisp.org>
7513
7514         sys_time: Override 'struct timeval' on some native Windows platforms.
7515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7516         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7517         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7518         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7519         needs to be overridden.
7520         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7521         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7522         * tests/test-sys_select.c: Check that the tv_sec member has the same
7523         size as a 'time_t'.
7524         * tests/test-sys_time.c: Likewise.
7525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7526         is set, set also REPLACE_GETTIMEOFDAY.
7527         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7528         convert the resulting 'struct timeval' before returning.
7529         * lib/select.c: Include <sys/time.h>.
7530         (select, timeval): Undefine at the right place.
7531         * modules/select (Depends-on): Add sys_time.
7532         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7533         some Windows platforms.
7534         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7535
7536 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7537
7538         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7539         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7540         an integer.
7541         * lib/fcntl.c (dupfd): Likewise.
7542         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7543
7544 2012-01-28  Bruno Haible  <bruno@clisp.org>
7545
7546         fcntl: Avoid compilation error on native Windows.
7547         * modules/fcntl (Depends-on): Add 'close'.
7548
7549 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7550
7551         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7552         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7553         pointer to an integer.
7554         * lib/poll.c (IsConsoleHandle): Likewise.
7555         * lib/isatty.c (IsConsoleHandle): Likewise.
7556
7557 2012-01-28  Jim Meyering  <meyering@redhat.com>
7558
7559         doc: clarify README-release
7560         * top/README-release: Clarify: you should make a point to have
7561         the latest stable versions of build tools in your PATH, and the
7562         reference to buildreq is solely for its list of tool names, not
7563         for its minimal-functional version numbers.
7564         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7565
7566         maint.mk: use more readable (yet functionally equivalent) quoting
7567         It is common to quote a single quote in a single quoted string like
7568         this:  '...'\''...'.  Unless you know the idiom, that looks like
7569         gibberish, so prefer to double-quote the string when possible.
7570         Then you can use a more readable, lone single quote: "...'..."
7571         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7572         "don't" is more readable than the equivalent 'don'\''t'.
7573         (sc_cast_of_x_alloc_return_value): Likewise.
7574         (sc_cast_of_alloca_return_value): Likewise.
7575         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7576         rather than '\'':'\''.
7577
7578 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7579
7580         stdalign: relax _Alignof and tighten _Alignas test
7581         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7582         as it was too strict: alignof must divide offsetof, but it need
7583         not equal offsetof.  Inspired by Joseph S. Myers's comment
7584         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7585         Conversely, tighten the _Alignas test a bit, as the resulting
7586         alignment must be exactly 8.
7587
7588 2012-01-27  Bruno Haible  <bruno@clisp.org>
7589
7590         stdalign: Document the last change.
7591         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7592
7593 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7594
7595         stdalign: check that alignof and offsetof are consistent
7596         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7597         Problem reported for gnulib by Richard W.M. Jones in
7598         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7599
7600 2012-01-27  Jim Meyering  <meyering@redhat.com>
7601
7602         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7603         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7604         convert a sequence with gaps to the minimal containing range.
7605         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7606         * tests/test-update-copyright.sh: Test for this.
7607         The FSF confirmed it is ok to do this, assuming there is at
7608         least one significant change per year in the affected range:
7609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7610
7611 2012-01-26  Bruno Haible  <bruno@clisp.org>
7612
7613         pipe2: refine doc about thread-safety
7614         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7615         multithread-safety problem.
7616         * doc/glibc-functions/accept4.texi: Likewise.
7617
7618 2012-01-26  Bruno Haible  <bruno@clisp.org>
7619
7620         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7621         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7622         In the test program, include <fcntl.h>, for O_RDONLY.
7623
7624 2012-01-26  Eric Blake  <eblake@redhat.com>
7625
7626         pipe2: document lack of thread-safety in replacement
7627         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7628         issue in replacement.
7629         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7630         Based on a report by Eric Wong.
7631
7632 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7633             Bruno Haible  <bruno@clisp.org>
7634
7635         malloca: Avoid warnings on x86_64 mingw64.
7636         * lib/malloca.c: Include <stdint.h>.
7637         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7638         * modules/malloca (Depends-on): Add stdint.
7639         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7640
7641 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7642
7643         obstack: remove __STDC__ conditionals
7644         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7645         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7646         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7647         m4/include_next.m4 as the only gnulib-maintained places that still
7648         refer to __STDC__.
7649
7650 2012-01-24  Bruno Haible  <bruno@clisp.org>
7651
7652         havelib: Modern quoting.
7653         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7654         the recent change to the GNU coding standards.
7655
7656 2012-01-24  Bruno Haible  <bruno@clisp.org>
7657
7658         stdint: Improve support for Android.
7659         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7660         Reported by Simon Josefsson <simon@josefsson.org>.
7661
7662 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7663
7664         doc: omit trailing empty lines from INSTALL etc.
7665         * doc/Makefile (INSTALL): Omit trailing empty lines.
7666         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7667         omit trailing empty lines.  This simplifies the build procedure.
7668
7669 2012-01-23  Jim Meyering  <meyering@redhat.com>
7670
7671         tests: avoid spurious warnings about gl_sockets_startup
7672         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7673         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7674         reporting a "statement with no effect".
7675         * tests/test-accept.c (main): Mark as "(void)".
7676         * tests/test-accept4.c (main): Likewise.
7677         * tests/test-bind.c (main): Likewise.
7678         * tests/test-connect.c (main): Likewise.
7679         * tests/test-getpeername.c (main): Likewise.
7680         * tests/test-getsockname.c (main): Likewise.
7681         * tests/test-getsockopt.c (main): Likewise.
7682         * tests/test-listen.c (main): Likewise.
7683         * tests/test-recv.c (main): Likewise.
7684         * tests/test-recvfrom.c (main): Likewise.
7685         * tests/test-send.c (main): Likewise.
7686         * tests/test-sendto.c (main): Likewise.
7687         * tests/test-setsockopt.c (main): Likewise.
7688         * tests/test-shutdown.c (main): Likewise.
7689
7690 2012-01-21  Bruno Haible  <bruno@clisp.org>
7691
7692         locale-fr.m4: Fix for Android.
7693         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7694         failure of the test program on Bionic libc.
7695
7696 2012-01-21  Jim Meyering  <meyering@redhat.com>
7697
7698         bootstrap: fail when bootstrap_post_import_hook fails
7699         Otherwise, it's far too easy to miss diagnostics emitted
7700         between gnulib-tool's output and that of running configure.
7701         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7702
7703 2012-01-17  Jim Meyering  <meyering@redhat.com>
7704
7705         maint: enable sc_trailing_blank
7706         * build-aux/pmccabe.css: Remove trailing blanks.
7707         * doc/acl-cygwin.txt: Likewise.
7708         * doc/gnu-oids.texi: Likewise
7709         * cfg.mk: Enable sc_trailing_blank.
7710         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7711
7712 2012-01-17  Jim Meyering  <meyering@redhat.com>
7713
7714         maint: enable sc_prohibit_openat_without_use
7715         * cfg.mk: Enable sc_prohibit_openat_without_use.
7716         Exempt lib/selinux-at.c.
7717
7718 2012-01-17  Jim Meyering  <meyering@redhat.com>
7719
7720         maint: enable sc_prohibit_cloexec_without_use
7721         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7722         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7723
7724 2012-01-17  Jim Meyering  <meyering@redhat.com>
7725
7726         maint: enable sc_prohibit_intprops_without_use
7727         * cfg.mk: Enable sc_prohibit_intprops_without_use
7728         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7729
7730 2012-01-17  Jim Meyering  <meyering@redhat.com>
7731
7732         maint: enable sc_prohibit_hash_pjw_without_use
7733         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7734         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7735         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7736         following " (".
7737
7738 2012-01-17  Jim Meyering  <meyering@redhat.com>
7739
7740         maint: enable double-word-prohibiting rule
7741         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7742         Exempt three files.
7743
7744 2012-01-17  Jim Meyering  <meyering@redhat.com>
7745
7746         maint: remove empty lines at EOF, but excluding modules/*
7747         Apply syntax rules at home as well as abroad.  Most changes
7748         were induced by running this:
7749           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7750             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7751             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7752         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7753         Exempt modules/* and two binary files.
7754         Also exempt doc/INSTALL*, per request from Bruno Haible.
7755         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7756         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7757         * doc/Copyright/request-assign.future: Likewise.
7758         * doc/Copyright/request-disclaim.changes: Likewise.
7759         * doc/INSTALL: Likewise.
7760         * doc/INSTALL.ISO: Likewise.
7761         * doc/INSTALL.UTF-8: Likewise.
7762         * doc/acl-cygwin.txt: Likewise.
7763         * doc/acl-resources.txt: Likewise.
7764         * doc/fdl-1.2.texi: Likewise.
7765         * doc/fdl-1.3.texi: Likewise.
7766         * doc/fdl.texi: Likewise.
7767         * lib/argp-pin.c: Likewise.
7768         * lib/round.c: Likewise.
7769         * lib/unicase/u16-totitle.c: Likewise.
7770         * lib/unictype/block_test.c: Likewise.
7771         * lib/uninorm/canonical-decomposition.c: Likewise.
7772         * m4/README: Likewise.
7773         * m4/relocatable-lib.m4: Likewise.
7774         * tests/test-isnand-nolibm.c: Likewise.
7775         * tests/test-isnand.c: Likewise.
7776         * tests/uninorm/NormalizationTest.txt: Likewise.
7777
7778 2012-01-17  Jim Meyering  <meyering@redhat.com>
7779
7780         maint: add framework to run syntax-check rules against gnulib sources
7781         * cfg.mk: New file, to disable all currently-failing tests.
7782         We'll enable them one by one, as they are made to pass.
7783         * Makefile (sc_maint): New rule.
7784
7785 2012-01-21  Bruno Haible  <bruno@clisp.org>
7786
7787         stdint: Add support for Android.
7788         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7789         include the system's <stdint.h>.
7790         Reported by Simon Josefsson <simon@josefsson.org>.
7791
7792 2012-01-19  Jim Meyering  <meyering@redhat.com>
7793
7794         bootstrap: add bootstrap_post_import_hook
7795         Bison does still need something like the gnulib_mk_hook whose
7796         invocation I had to remove along with slurp in commit 767ccd40.
7797         Technically, we could get along without it, but doing so would
7798         have required living with a warning and a mandatory post-bootstrap
7799         automake rerun.
7800         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7801         (bootstrap_post_import_hook): New function.
7802         Invoke it after gnulib-tool --import and before autoreconf.
7803
7804 2012-01-18  Jim Meyering  <meyering@redhat.com>
7805
7806         gitlog-to-changelog: don't use "no_"-prefixed variable name
7807         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7808         to enable both --cluster and --no-cluster.  Change variable name,
7809         s/\$no_cluster/$cluster/, and reverse usage to match.
7810
7811         gitlog-to-changelog: use "||", not "or" in expressions
7812         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7813         expressions.
7814
7815 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7816
7817         gitlog-to-changelog: new option --no-cluster
7818         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7819         clustering of adjacent commit messages.
7820
7821 2012-01-17  Jim Meyering  <meyering@redhat.com>
7822
7823         maint: spell file systems with two words, not one
7824         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7825         two words, not one.
7826
7827 2012-01-16  Jim Meyering  <meyering@redhat.com>
7828
7829         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7830         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7831
7832 2012-01-16  Eric Blake  <eblake@redhat.com>
7833
7834         bootstrap: cater to autoconf 2.59
7835         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7836         is not available.
7837
7838         bootstrap: properly check for libtool
7839         * build-aux/bootstrap (libtoolize): Also run libtool when older
7840         usage is detected.
7841
7842 2012-01-15  Bruno Haible  <bruno@clisp.org>
7843
7844         Improve support for MSVC 9.
7845         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7846         clashes on MSVC.
7847         * lib/fcntl.in.h: Likewise.
7848         * lib/stdlib.in.h: Likewise.
7849         * lib/sys_stat.in.h: Likewise.
7850
7851 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7852
7853         gnupload: we hold the master copy of this script now
7854         For motivation and more information, see:
7855         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7856         * build-aux/gnupload: Make it clear in the heading comments that the
7857         master copy of this file is maintained by gnulib.  Since we are at
7858         it, bump its copyright year and ...
7859         ($scriptversion): ... the date in its version.
7860         ($usage): Patches and bug reports should be sent to the gnulib list,
7861         not the automake one.
7862         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7863         anymore.
7864
7865 2012-01-15  Bruno Haible  <bruno@clisp.org>
7866
7867         Fix module 'random'.
7868         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7869         initstate, setstate are declared.
7870
7871 2012-01-14  Bruno Haible  <bruno@clisp.org>
7872
7873         Tests for module 'random'.
7874         * modules/random-tests: New file.
7875         * tests/test-random.c: New file, based on tests/test-random_r.c.
7876
7877         New module 'random'.
7878         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7879         declarations.
7880         * lib/random.c: New file, based on glibc/stdlib/random.c.
7881         * m4/random.m4: New file.
7882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7883         HAVE_RANDOM.
7884         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7885         * modules/random: New file.
7886         * config/srclist.txt: Add an entry for random.c.
7887         * doc/posix-functions/random.texi: Mention the 'random' module.
7888         * doc/posix-functions/initstate.texi: Likewise.
7889         * doc/posix-functions/setstate.texi: Likewise.
7890         * doc/posix-functions/srandom.texi: Likewise.
7891
7892 2012-01-12  Bruno Haible  <bruno@clisp.org>
7893
7894         random_r: Use common idioms.
7895         * lib/random_r.c: Include <stdlib.h> first.
7896
7897         random_r: Override incompatible API on AIX, OSF/1.
7898         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7899         Override the system function if REPLACE_RANDOM_R is 1.
7900         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7901         and OSF/1, set REPLACE_RANDOM_R.
7902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7903         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7904         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7905         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7906         * doc/glibc-functions/random_r.texi: Likewise.
7907         * doc/glibc-functions/setstate_r.texi: Likewise.
7908
7909         random_r: Support for MSVC 9.
7910         * lib/random_r.c: Include stdint.h, not inttypes.h.
7911
7912 2012-01-12  Eric Blake  <eblake@redhat.com>
7913
7914         inet_ntop: guard extra work by IF_LINT
7915         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7916         better code generation when not checking for warnings.
7917         Suggested by Paul Eggert and Jim Meyering.
7918
7919         strptime: fix regression on mingw
7920         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7921         Fix regression.  Reported by Bruno Haible.
7922
7923 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7924             Bruno Haible  <bruno@clisp.org>
7925
7926         copy-file: add error-code-returning variant.
7927         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7928         (qcopy_file_preserving): New declaration.
7929         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7930         copy_file_preserving. Change return type to 'int'. Don't emit an error
7931         message here.
7932         (copy_file_preserving): New function.
7933         * tests/test-copy-file.c: Include <stdlib.h>.
7934         (main): Test qcopy_file_preserving if the environment variable
7935         NO_STDERR_OUTPUT is set.
7936         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7937         with NO_STDERR_OUTPUT
7938         * tests/test-copy-file-2.sh: Likewise.
7939
7940 2012-01-10  Bruno Haible  <bruno@clisp.org>
7941
7942         copy-file: Use 'quote' module consistently.
7943         * lib/copy-file.c (copy_file_preserving): Use quote().
7944
7945         copy-file: Refactor.
7946         * lib/copy-file.c: Include quote.h.
7947         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7948         message here.
7949         * modules/copy-file (Depends-on): Add quote.
7950
7951         acl: Export qcopy_acl.
7952         * lib/acl.h (qcopy_acl): New declaration.
7953         * lib/copy-acl.c (qcopy_acl): Make non-static.
7954
7955         acl: Rename a local variable.
7956         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7957
7958         acl: Align return values of copy_acl and qcopy_acl.
7959         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7960         maybe < -1.
7961
7962 2012-01-11  Eric Blake  <eblake@redhat.com>
7963
7964         strptime: silence gcc warnings
7965         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7966         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7967         Reported by Daniel P. Berrange.
7968
7969         inet_ntop: silence gcc warning
7970         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7971         Reported by Daniel P. Berrange.
7972
7973 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7974
7975         getloadavg test: skip the test on GNU/Linux without /proc mounted
7976         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7977         file.  When /proc is not mounted, it always fails with ENOENT.
7978         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7979         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7980
7981 2012-01-10  Bruno Haible  <bruno@clisp.org>
7982
7983         regex: Avoid link error on MSVC 9.
7984         * modules/regex (Depends-on): Add wctype.
7985
7986 2012-01-10  Bruno Haible  <bruno@clisp.org>
7987
7988         doc: Mention --with-tests option.
7989         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7990         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7991         --with-tests.
7992         Reported by Reuben Thomas.
7993
7994 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7995
7996         users.txt: order package names lexicographically.
7997         * users.txt: Order package names lexicographically.
7998
7999 2012-01-10  Jim Meyering  <meyering@redhat.com>
8000
8001         maint.mk: fix description in comment
8002         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8003
8004         ignore-value: remove deprecated ignore_ptr function
8005         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8006         * NEWS: Note this.
8007
8008 2012-01-09  Jim Meyering  <meyering@redhat.com>
8009
8010         test-init.sh: avoid a subshell
8011         * tests/test-init.sh: Remove protective subshell.
8012         Suggested by Bernhard Voelker.  While a subshell is normally
8013         required to protect against older shells (Solaris, FreeBSD) that
8014         warn about a missing program before performing redirection, the
8015         shell-selection tests performed by init.sh probably exclude any
8016         offending shell.
8017
8018 2012-01-08  Bruno Haible  <bruno@clisp.org>
8019
8020         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8021         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8022         variable.
8023
8024 2012-01-08  Bruno Haible  <bruno@clisp.org>
8025
8026         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8027         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8028         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8029         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8030         macro.
8031         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8033         * lib/spawn_faction_addopen.c: Add workaround implementation if
8034         HAVE_WORKING_POSIX_SPAWN.
8035         * modules/spawn (Makefile): Substitute
8036         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8037         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8038         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8039         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8040         (Depends-on): Update conditions.
8041         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8042         the Solaris 11 bug.
8043
8044 2012-01-08  Bruno Haible  <bruno@clisp.org>
8045
8046         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8047         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8048         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8049         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8050         macro.
8051         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8053         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8054         HAVE_WORKING_POSIX_SPAWN.
8055         * modules/spawn (Makefile): Substitute
8056         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8057         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8058         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8060         (Depends-on): Update conditions.
8061         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8062         the Solaris 11 bug.
8063
8064 2012-01-08  Bruno Haible  <bruno@clisp.org>
8065
8066         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8067         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8068         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8070         HAVE_WORKING_POSIX_SPAWN.
8071         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8072         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8074         * lib/spawn_faction_addclose.c: Add workaround implementation if
8075         HAVE_WORKING_POSIX_SPAWN.
8076         * modules/spawn (Makefile): Substitute
8077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8078         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8079         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8080         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8081         (Depends-on): Update conditions.
8082         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8083         the Solaris 11 bug.
8084
8085 2012-01-08  Bruno Haible  <bruno@clisp.org>
8086
8087         doc: Update for Solaris 11 2011-11.
8088         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8089         * m4/printf.m4: Update comments.
8090
8091 2012-01-08  Bruno Haible  <bruno@clisp.org>
8092
8093         mktime: Avoid compilation error on Solaris 11.
8094         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8095
8096 2012-01-08  Bruno Haible  <bruno@clisp.org>
8097
8098         doc: Small fix.
8099         * doc/posix-headers/nl_types.texi: Correct platforms list.
8100
8101 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8102
8103         Add lgpl-3.0 module.
8104         * MODULES.html.sh (Support for building documentation): Add
8105         lgpl-3.0.
8106         * modules/lgpl-3.0: New file.
8107
8108 2012-01-08  Jim Meyering  <meyering@redhat.com>
8109
8110         select.c: indent with spaces, not TABs
8111         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8112
8113 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8114
8115         quotearg: do not use grave accent for left quote
8116         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8117         locale_quoting_style.
8118         (quotearg_buffer_restyled): Fix example.
8119         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8120
8121 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8122
8123         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8124         Most programs do not have translation catalogs for English and much
8125         less separate catalogs for British and American English.  Drop the
8126         suggestion to translators about these two, and provide it
8127         automatically for Unicode locales.  Like most programs, even those
8128         using American English, we use single quotation marks.  This conflicts
8129         with the American typographic convention, but works better when you
8130         cite the entire error message within double quotes.  It also tries not
8131         to clash with established practice and with what non-gnulib programs
8132         will usually do.
8133         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8134         using an UTF-8 or GB-18030 locale.  The list of other locales with
8135         quotes was provided by Bruno Haible.
8136         (quotearg_buffer_restyled): Adjust instructions to translators.
8137         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8138         text, since this would be wrong when using Unicode.
8139         * modules/quotearg: Depend on c-strcaseeq.
8140
8141 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8142
8143         quotearg: fix Wikipedia link
8144         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8145
8146 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8147
8148         Fix for mingw with MSVC9.
8149         * m4/ld-version-script.m4: Check that compiler rejects version
8150         scripts with syntax errors.  Reported by Bruno Haible
8151         <bruno@clisp.org>.
8152
8153 2012-01-06  Bruno Haible  <bruno@clisp.org>
8154
8155         Talk about "native Windows API", not "Woe32".
8156         * lib/accept4.c: Update comments to mention native Windows.
8157         * lib/execute.c: Likewise.
8158         * lib/fatal-signal.c: Likewise.
8159         * lib/localcharset.c: Likewise.
8160         * lib/nanosleep.c: Likewise.
8161         * lib/nl_langinfo.c: Likewise.
8162         * lib/pclose.c: Likewise.
8163         * lib/pipe-filter-gi.c: Likewise.
8164         * lib/pipe-filter-ii.c: Likewise.
8165         * lib/pipe.c: Likewise.
8166         * lib/pipe2.c: Likewise.
8167         * lib/popen.c: Likewise.
8168         * lib/progreloc.c: Likewise.
8169         * lib/relocatable.c: Likewise.
8170         * lib/sigaction.c: Likewise.
8171         * lib/sigprocmask.c: Likewise.
8172         * lib/spawn-pipe.h: Likewise.
8173         * lib/spawn-pipe.c: Likewise.
8174         * lib/spawni.c: Likewise.
8175         * lib/stat-time.h: Likewise.
8176         * lib/w32spawn.h: Likewise.
8177         * tests/test-isatty.c: Likewise.
8178         * lib/config.charset: More comments.
8179         * doc/gnulib-intro.texi: Mention native Windows.
8180         * doc/posix-functions/_Exit_C99.texi: Likewise.
8181         * doc/posix-headers/fcntl.texi: Likewise.
8182
8183 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8184
8185         argp: Avoid crash if translator uses % characters in a translation.
8186         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8187         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8188
8189 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8190
8191         doc: C11 and C++11 are now official
8192         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8193         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8194         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8195         * modules/stdalign:
8196         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8197
8198 2012-01-06  Bruno Haible  <bruno@clisp.org>
8199
8200         uc-is-grapheme-break tests: Tweak.
8201         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8202         message.
8203
8204 2012-01-06  Bruno Haible  <bruno@clisp.org>
8205
8206         test-init.sh: correct the test for diff -u
8207         * tests/test-init.sh: Also redirect stdout to /dev/null.
8208
8209 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8210
8211         Use ', not `, for quoting output.
8212         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8213         (print_changelog_deltas, get_tool_versions, main program):
8214         * build-aux/git-version-gen:
8215         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8216         * build-aux/move-if-change (help):
8217         * build-aux/useless-if-before-free (usage, main program):
8218         * check-module (parse_module_file, usage)
8219         (find_included_lib_files, check_module):
8220         * lib/argmatch.c (main) [TEST]:
8221         * lib/argp-help.c (_help):
8222         * lib/getopt1.c (main) [TEST]:
8223         * lib/git-merge-changelog.c (usage):
8224         * lib/xstrtol-error.c (xstrtol_error):
8225         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8226         * m4/argz.m4 (gl_FUNC_ARGZ):
8227         * m4/bison.m4 (gl_BISON):
8228         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8229         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8230         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8231         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8232         * m4/gc-random.m4 (gl_GC_RANDOM):
8233         * m4/intl.m4 (gt_CHECK_DECL):
8234         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8236         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8238         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8239         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8240         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8241         * tests/test-dirname.c (main):
8242         * tests/test-getpass.c (main):
8243         * tests/test-iconvme.c (main):
8244         * tests/test-parse-datetime.c (LOG):
8245         * tests/test-xstrtoimax.sh:
8246         * tests/test-xstrtol.sh:
8247         * tests/test-xstrtoll.sh:
8248         * tests/test-xstrtoumax.sh:
8249         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8250         * top/GNUmakefile (abort-due-to-no-makefile):
8251         Quote 'like this', not `like this', as per the recent change to
8252         the GNU coding standards.
8253
8254 2012-01-05  Bruno Haible  <bruno@clisp.org>
8255
8256         strtoimax: Don't force a replacement on systems where intmax_t is int.
8257         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8258         'intmax_t' is not larger than 'int'.
8259         Reported by Pádraig Brady <P@draigBrady.com>.
8260
8261 2012-01-05  Bruno Haible  <bruno@clisp.org>
8262
8263         doc: Mention NetBSD bugs.
8264         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8265         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8266
8267 2012-01-05  Bruno Haible  <bruno@clisp.org>
8268
8269         strtoumax tests: Enhance tests.
8270         * tests/test-strtoumax.c (main): Add tests for large values.
8271
8272 2012-01-05  Bruno Haible  <bruno@clisp.org>
8273
8274         strtoimax: Work around AIX 5.1 bug.
8275         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8276         definition.
8277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8278         Set HAVE_STRTOIMAX.
8279         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8280         REPLACE_STRTOIMAX.
8281         * modules/inttypes-incomplete (Makefile.am): Substitute
8282         REPLACE_STRTOIMAX.
8283         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8284         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8285         (Depends-on): Update conditions.
8286         * tests/test-strtoimax.c (main): Add tests for large values.
8287         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8288
8289 2012-01-05  Bruno Haible  <bruno@clisp.org>
8290
8291         inttypes: Modernize.
8292         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8293         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8294         (Makefile.am): Update inttypes.h rule.
8295
8296 2012-01-05  Jim Meyering  <meyering@redhat.com>
8297
8298         init.sh: don't waste a subshell just to redirect stderr
8299         * tests/init.sh: In testing for diff -u and diff -c, use a
8300         stderr-redirecting exec inside `...` rather than a subshell.
8301
8302         test-init.sh: avoid failure on HP-UX 11.00
8303         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8304         resolves to diff -c or cmp.  Reported by Bruno Haible.
8305
8306 2012-01-05  Bruno Haible  <bruno@clisp.org>
8307
8308         Tests for module 'strtoull'.
8309         * modules/strtoull-tests: New file.
8310         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8311
8312 2012-01-05  Bruno Haible  <bruno@clisp.org>
8313
8314         Tests for module 'strtoll'.
8315         * modules/strtoll-tests: New file.
8316         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8317
8318 2012-01-05  Bruno Haible  <bruno@clisp.org>
8319
8320         Tests for module 'strtoul'.
8321         * modules/strtoul-tests: New file.
8322         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8323
8324 2012-01-05  Bruno Haible  <bruno@clisp.org>
8325
8326         Tests for module 'strtol'.
8327         * modules/strtol-tests: New file.
8328         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8329
8330 2012-01-04  Jim Meyering  <meyering@redhat.com>
8331
8332         test-init.sh: accommodate Solaris 5.10's different diff -u output
8333         * tests/test-init.sh: Also exempt @@ lines from the comparison
8334         of diff output, since Solaris 5.10 and GNU diff formats differ.
8335         Reported by Stefano Lattarini.
8336
8337 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8338
8339         test-posixtm: don't assume signed integer wraparound
8340         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8341         after signed integer overflow.  Inspired by (though it may not
8342         fix) Bruno Haible's bug report in
8343         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8344
8345         Spell out "Windows 9x" and "Windows XP".
8346         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8347         "Windows 9x" and "WinXP" with "Windows XP".
8348
8349 2012-01-04  Jim Meyering  <meyering@redhat.com>
8350
8351         test-vc-list-files-cvs.sh: remove obsolete comment
8352         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8353         double exit.  Now that's all encapsulated via skip_ and Exit.
8354
8355 2012-01-04  Bruno Haible  <bruno@clisp.org>
8356
8357         Talk about "native Windows API", not "Win32".
8358         * lib/classpath.c: Update comments to mention native Windows.
8359         * lib/csharpexec.c: Likewise.
8360         * lib/dup2.c: Likewise.
8361         * lib/error.c: Likewise.
8362         * lib/fcntl.c: Likewise.
8363         * lib/filename.h: Likewise.
8364         * lib/findprog.c: Likewise.
8365         * lib/get-rusage-as.c: Likewise.
8366         * lib/get-rusage-data.c: Likewise.
8367         * lib/getpagesize.c: Likewise.
8368         * lib/javaexec.c: Likewise.
8369         * lib/msvc-inval.c: Likewise.
8370         * lib/msvc-nothrow.c: Likewise.
8371         * lib/nanosleep.c: Likewise.
8372         * lib/nonblocking.c: Likewise.
8373         * lib/printf-parse.c: Likewise.
8374         * lib/setlocale.c: Likewise.
8375         * lib/sigaction.c: Likewise.
8376         * lib/strerror_r.c: Likewise.
8377         * lib/tmpdir.c: Likewise.
8378         * lib/vasnprintf.c: Likewise.
8379         * lib/w32spawn.h: Likewise.
8380         * lib/waitpid.c: Likewise.
8381         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8382         * m4/locale-ar.m4: Likewise.
8383         * m4/locale-fr.m4: Likewise.
8384         * m4/locale-ja.m4: Likewise.
8385         * m4/locale-tr.m4: Likewise.
8386         * m4/locale-zh.m4: Likewise.
8387         * m4/printf.m4: Likewise.
8388         * tests/test-cloexec.c: Likewise.
8389         * tests/test-copy-acl.sh: Likewise.
8390         * tests/test-copy-file.sh: Likewise.
8391         * tests/test-file-has-acl.sh: Likewise.
8392         * tests/test-set-mode-acl.sh: Likewise.
8393         * tests/test-dup-safer.c: Likewise.
8394         * tests/test-dup2.c: Likewise.
8395         * tests/test-dup3.c: Likewise.
8396         * tests/test-fcntl.c: Likewise.
8397         * tests/test-nonblocking-pipe.h: Likewise.
8398         * tests/test-nonblocking-socket.h: Likewise.
8399         * tests/test-pipe.c: Likewise.
8400         * tests/test-pipe2.c: Likewise.
8401         * tests/test-spawn-pipe-child.c: Likewise.
8402         * doc/acl-resources.txt: Likewise.
8403         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8404         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8405         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8406         * lib/localcharset.c: Update comments to mention native Windows.
8407         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8408         * lib/localename.c: Likewise.
8409         * lib/progreloc.c: Likewise.
8410         * lib/relocatable.c: Likewise.
8411         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8412         (windows_compute_revents): Renamed from win32_compute_revents.
8413         (windows_compute_revents_socket): Renamed from
8414         win32_compute_revents_socket.
8415         * lib/select.c: Update comments to mention native Windows.
8416         (windows_poll_handle): Renamed from win32_poll_handle.
8417         * m4/threadlib.m4: Update comments to mention native Windows.
8418         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8419         --enable-threads=windows instead of --enable-threads=win32. Set
8420         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8421         * lib/glthread/lock.h: Update comments to mention native Windows.
8422         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8423         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8424         USE_WIN32_THREADS.
8425         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8426         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8427         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8428         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8429         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8430         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8431         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8432         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8433         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8434         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8435         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8436         * tests/test-tls.c: Likewise.
8437         Rationale:
8438         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8439         on both 32-bit and 64-bit Windows systems.
8440         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8441         line of distinction is between "native Windows" on one side and Unix/
8442         POSIX systems on the other side. More details in
8443         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8444         Suggested by Paul Eggert.
8445
8446 2012-01-03  Bruno Haible  <bruno@clisp.org>
8447
8448         isatty: Support for MSVC 9.
8449         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8450         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8451         (_isatty_nothrow): New function.
8452         (isatty): Use it instead of _isatty.
8453         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8454         * lib/poll.c (IsConsoleHandle): Likewise.
8455         * lib/select.c (IsConsoleHandle): Likewise.
8456         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8457         (gl_PREREQ_ISATTY): New macro.
8458         * modules/isatty (Depends-on): Add msvc-inval.
8459         (configure.ac): Invoke gl_PREREQ_ISATTY.
8460
8461 2012-01-03  Jim Meyering  <meyering@redhat.com>
8462
8463         maint.mk: remove temporary transition aid from over 1.5 years ago
8464         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8465         purpose was to aid in the transition (avoiding silent malfunction)
8466         from that old name to the new _sc_search_regexp.  This shim was
8467         added by commit 219c504b.
8468
8469         init.sh: do not try to accommodate compare arguments starting with "-"
8470         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8471         compare arguments that start with "-".  Besides, we do not worry
8472         about this when invoking diff or cmp; why start now with sed?
8473         Using "--" to separate options from argument would trigger sed
8474         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8475         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8476
8477 2012-01-02  Bruno Haible  <bruno@clisp.org>
8478
8479         Enhance tests for module 'isatty'.
8480         * modules/isatty-tests (Depends-on): Add pipe-posix.
8481         * tests/test-isatty.c: Include <fcntl.h>.
8482         (DEV_NULL): New macro.
8483         (main): Test the resut of isatty() also on regular files, pipes, and
8484         /dev/null.
8485
8486         New module 'isatty'.
8487         * lib/unistd.in.h (isatty): New declaration.
8488         * lib/isatty.c: New file, based on an idea of
8489         Bastien Roucariès <roucaries.bastien@gmail.com>.
8490         * m4/isatty.m4: New file.
8491         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8492         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8493         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8494         REPLACE_ISATTY.
8495         * modules/isatty: New file.
8496         * doc/posix-functions/isatty.texi: Mention the new module.
8497         Suggested by Paolo Bonzini.
8498
8499 2012-01-02  Bruno Haible  <bruno@clisp.org>
8500
8501         canonicalize: Tweak 2011-12-29 commit.
8502         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8503         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8504
8505 2012-01-02  Jim Meyering  <meyering@redhat.com>
8506
8507         gitlog-to-changelog: describe input syntax in --help output
8508         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8509
8510         gitlog-to-changelog: fix typo in --help: show backslash before email @
8511         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8512         in sources, but not in actual output.
8513
8514 2011-12-30  Jim Meyering  <meyering@redhat.com>
8515
8516         gitlog-to-changelog: don't malfunction when name contains %-directive
8517         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8518         in a name string cause trouble.  E.g., with a user name of "%s",
8519         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8520
8521 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8522
8523         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8524         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8525         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8526         the "  (tiny change)" notation that is appended to the standard
8527         ChangeLog "date  name  email" header line.
8528
8529 2012-01-01  Jim Meyering  <meyering@redhat.com>
8530
8531         test-framework-sh: init.sh: fix "make dist" failure
8532         When using gnulib-tool's --with-tests option and any module that
8533         depends on test-framework-sh, "make dist" would fail due to the
8534         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8535         in the gltests directory, and not in the gllib/ directory.
8536         One way to work around that is to move the EXTRA_DIST += init.sh
8537         from the primary module to the -tests one:
8538         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8539         * modules/test-framework-sh (Makefile.am): ...not here.
8540         Reported by Tom G. Christensen in
8541         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8542
8543         version-etc: update copyright year reported by --version
8544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8545
8546 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8547
8548         canonicalize: only stat() if required
8549         * lib/canonicalize.c (canonicalize_filename_mode):
8550         Avoid calling l?stat() when both CAN_MISSING,
8551         and CAN_NOLINKS are set, as we neither need
8552         to resolve symlinks or test component existence.
8553
8554 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8555
8556         doc: cover st_ino issues once; add OpenVMS etc.
8557         * doc/posix-functions/stat.texi (stat):
8558         * doc/posix-functions/lstat.texi (lstat):
8559         * doc/posix-functions/fstatat.texi (fstatat):
8560         * doc/posix-functions/fstat.texi (fstat):
8561         Move general 'struct stat' stuff to sys_stat.texi,
8562         leaving behind a pointer.
8563         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8564         Merge duplicate info about 'struct stat' problems into here.
8565         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8566         and suggest partial workarounds.
8567
8568         same-inode: port to OpenVMS
8569         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8570         three st_ino values.
8571
8572 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8573
8574         canonicalize: fix references to stat() and lstat()
8575         * lib/canonicalize.c (canonicalize_filename_mode):
8576         Ensure references always resolve to a replacement
8577         function if required (even via a macro).
8578
8579 2011-12-30  Jim Meyering  <meyering@redhat.com>
8580
8581         gitlog-to-changelog: remove a little duplication
8582         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8583         rather than twice.
8584
8585 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8586
8587         canonicalize: add support for not resolving symlinks
8588         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8589         indicate we don't want to follow symlinks.  Also
8590         provide CAN_MODE_MASK to aid setting these existing
8591         mutually exclusive values.
8592         * lib/canonicalize.c (canonicalize_filename_mode):
8593         Extract the flags from can_mode parameter, which
8594         are currently just used to select between stat()
8595         and lstat().  Also ensure that mutually exclusive
8596         values are flagged immediately as invalid.
8597         * tests/test-canonicalize.c: Verify symlinks are
8598         not followed, and that invalid flag combinations
8599         are diagnosed.
8600
8601 2011-12-25  Jim Meyering  <meyering@redhat.com>
8602
8603         gitlog-to-changelog: do not clump multi-paragraph entries
8604         Identical header lines (date,name,email+coauthors) are suppressed,
8605         thus putting all entries with those same characteristics under
8606         a single header.  However, when a log entry consists of two or
8607         more paragraphs, it may not be clear where it starts and ends.
8608         This change makes it so that such an entry is always separated
8609         from others by a header line, even when that header would
8610         otherwise be suppressed.
8611         * build-aux/gitlog-to-changelog: Implement the above.
8612         Inspired by a related request from Stefano Lattarini in
8613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8614
8615 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         announce-gen: fix `cmd' typo in diagnostic
8618         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8619         diagnostic: a missing '$' meant that the command was not output.
8620
8621 2011-12-23  Jim Meyering  <meyering@redhat.com>
8622
8623         test-framework-sh: distribute init.sh
8624         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8625         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8626         fail due to the lack of init.sh.
8627
8628         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8629         * modules/atexit-tests: Rather than listing tests/init.sh,
8630         now that there's a module for it, simply depend on that new module.
8631         * modules/closein-tests: Likewise.
8632         * modules/exclude-tests: Likewise.
8633         * modules/getcwd-tests: Likewise.
8634         * modules/perror-tests: Likewise.
8635         * modules/pread-tests: Likewise.
8636         * modules/pwrite-tests: Likewise.
8637         * modules/vc-list-files-tests: Likewise.
8638         * modules/verify-tests: Likewise.
8639         * modules/xalloc-die-tests: Likewise.
8640         * modules/xstrtoimax-tests: Likewise.
8641         * modules/xstrtol-tests: Likewise.
8642         * modules/xstrtoll-tests: Likewise.
8643         * modules/xstrtoumax-tests: Likewise.
8644         * modules/yesno-tests: Likewise.
8645
8646 2011-12-22  Jim Meyering  <meyering@redhat.com>
8647
8648         test-framework-sh: add minimal tests of init.sh's compare function
8649         * modules/test-framework-sh-tests: New file.
8650         * tests/test-init.sh: New file.
8651
8652         test-framework-sh: new module
8653         * modules/test-framework-sh: New file.
8654         * MODULES.html.sh (Support for maintaining and releasing projects):
8655         List it.
8656
8657         init.sh: do not emit simulated diff output to stderr
8658         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8659
8660 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8661
8662         .gitignore: ignore gnulib.dvi and regex.info
8663         * doc/.gitignore:add gnulib.dvi and regex.info
8664
8665 2011-12-22  Jim Meyering  <meyering@redhat.com>
8666
8667         init.sh: correct previous change
8668         * tests/init.sh (compare): My previous change was wrong.
8669         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8670
8671         init.sh: avoid unwarranted test failure when using "set -e"
8672         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8673         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8674         a use like "compare exp out" would get evoke an unconditional failure.
8675
8676 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8677
8678         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8679         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8680         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8681         autoreconf that did not.
8682         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8683         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8684
8685 2011-12-17  Jim Meyering  <meyering@redhat.com>
8686
8687         bootstrap: remove some now-unneeded code
8688         This script arose back when gnulib-tool was young.
8689         Since then, it has seen improvements that render much of this
8690         script unnecessary.  In particular, it can now make symlinks
8691         to the files it uses.  Also, I no longer see as much value in
8692         marking files as read-only via comments.
8693         If you relied on the symlink-creation feature of the preceding
8694         version of this script, you can get most of that functionality
8695         by adding the --symlink option to the definition of
8696         gnulib_tool_option_extras in your bootstrap.conf file.
8697         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8698         Run autopoint and libtoolize *before* gnulib-tool.
8699         After it, run an abbreviated autoreconf, rather than a loop around
8700         all tools.
8701         (slirp, bt_mark_as_generated): Remove functions.
8702
8703 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8704
8705         ftoastr: fix typo
8706         * lib/ftoastr.h: Fix misspelling in comment.
8707
8708 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8709
8710         * top/README-release: fix punctuation.
8711
8712 2011-12-17  Jim Meyering  <meyering@redhat.com>
8713
8714         bootstrap: correct the recent buildreq change
8715         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8716         had no effect.
8717         * build-aux/bootstrap (buildreq): Bracket each search term with
8718         "*...*", so that the shell "case" statement works as intended.
8719         Add comments.
8720
8721 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8722
8723         build: let bootstrap resort to wget when downloading .po files
8724         * build-aux/bootstrap (download_po_files): Fallback to wget when
8725         downloading the .po files via rsync fails.  This is necessary to
8726         bootstrap from behind a strict firewall.
8727
8728 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8729
8730         stdint: don't assume C++11 when compiling with g++
8731         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8733         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8734         work also in C++ before C++11, as that improperly inhibits
8735         generating a substitute stdint.h for that case.
8736
8737 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8738
8739         alloca: protect comment from gnulib-tool
8740         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8741         that gnulib-tool doesn't think it's a license, and munge it to
8742         say "GCC version 3".
8743
8744 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8745
8746         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8747         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8748         $(abs_top_builddir) instead of $(top_builddir).
8749
8750 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8751
8752         strftime-tests: also test nanoseconds
8753         * tests/test-strftime.c (T): Add a test of %N.
8754
8755 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8756
8757         inttypes, stdint: add C++11 support
8758         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8759         when including inttypes.h and stdint.h.  Support this change to
8760         the standard.
8761         * doc/posix-headers/inttypes.texi (inttypes.h):
8762         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8763         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8764         Define if not defined already, for the benefit of pre-C++11 hosts.
8765         Define the standard format macros (e.g., PRId8) always.
8766         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8767         Likewise, if __cpluspus.  Define the standard constant and limit
8768         macros (e.g., INT8_C, INT8_MAX) always.
8769         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8770         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8771         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8772         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8773         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8774         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8775         Likewise.
8776
8777 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8778
8779         nonblocking tests: Fix test failure on Linux/PPC.
8780         Suggested by Prerna Saxena in
8781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8782         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8783         Set to 1100000.
8784
8785 2011-12-12  Jim Meyering  <meyering@redhat.com>
8786
8787         argmatch: don't hard-code `' when listing valid option arguments
8788         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8789         use the quote function to add quotes.  Use fputs rather than
8790         fprintf for the format string with no format directive.
8791
8792 2011-12-07  Eric Blake  <eblake@redhat.com>
8793
8794         bootstrap: detect tools required by gnulib-tool
8795         * build-aux/bootstrap (buildreq): Provide minimum implicit
8796         dependencies.
8797         * DEPENDENCIES: Mention patch as a prereq.
8798
8799 2011-12-04  Bruno Haible  <bruno@clisp.org>
8800
8801         sethostname: Port to Windows platforms.
8802         * lib/sethostname.c: Provide an alternate implementation for Windows
8803         platforms.
8804         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8805         (main): Skip the test if sethostname() fails with EPERM. On Windows
8806         platforms, don't check the result of gethostname().
8807
8808 2011-12-04  Bruno Haible  <bruno@clisp.org>
8809             Jim Meyering  <meyering@redhat.com>
8810
8811         tests: Avoid spurious error message on platforms without mktemp program.
8812         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8813
8814 2011-12-04  Bruno Haible  <bruno@clisp.org>
8815
8816         sethostname: Fix documentation.
8817         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8818         "not fixed" section.
8819
8820 2011-12-03  Bruno Haible  <bruno@clisp.org>
8821
8822         gnulib-tool: Verify that the License field is present and non-empty.
8823         * gnulib-tool (func_get_license_raw): New function, extracted from
8824         func_get_license.
8825         (func_get_license): Use it. Warn if the module is not a test module and
8826         has no license.
8827         Suggested by Jim Meyering.
8828
8829 2011-12-03  Bruno Haible  <bruno@clisp.org>
8830
8831         sethostname tests: Fix link error on mingw.
8832         * tests/test-sethostname1.c: New file, extracted from
8833         tests/test-sethostname.c.
8834         * tests/test-sethostname2.c: New file, extracted from
8835         tests/test-sethostname.c.
8836         * tests/test-sethostname.c: Remove file.
8837         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8838         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8839         (Depends-on): Add gethostname.
8840         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8841         Link the latter with $(GETHOSTNAME_LIB).
8842
8843         sethostname tests: Fix compilation error on mingw.
8844         * tests/test-sethostname.c: Don't include <sys/types.h>.
8845         (geteuid): Use a dummy value without uid_t.
8846         * modules/sethostname-tests (Depends-on): Remove sys_types.
8847
8848         sethostname tests: Avoid a gcc warning.
8849         * tests/test-sethostname.c (main): Remove an unused variable.
8850
8851         Tweak last commit.
8852         * modules/sethostname-tests (Files): Sort by decreasing importance.
8853         (configure.ac): Check for geteuid.
8854         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8855         the test when there's nothing to test. Drop an unnecessary cast.
8856         Improve an error message. Verify that the final sethostname() call
8857         succeeds.
8858
8859 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8860
8861         Add a test suite for the sethostname module.
8862         * modules/sethostname-tests: New file.  A test program
8863         for the sethostname module.
8864         * tests/test-sethostname.c: Likewise.
8865
8866 2011-12-03  Bruno Haible  <bruno@clisp.org>
8867
8868         Tweak last commit.
8869         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8870         Fix preprocessor directives indentation. Fix typos.
8871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8872         * modules/unistd (Makefile): Likewise.
8873
8874 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8875
8876         Integrate the sethostname module into unistd.
8877         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8878         into the unistd.h header.
8879         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8880         preprocessor directives.
8881         * modules/unistd: Setup the Makefile substitutions of the
8882         SETHOSTNAME preprocessor directives.
8883
8884 2011-12-03  Bruno Haible  <bruno@clisp.org>
8885
8886         Tweak last commit.
8887         * lib/sethostname.c: Don't include <string.h>.
8888         (sethostname): No need to copy the argument string to the stack. Don't
8889         call clearerr. Preserve errno when fprintf failed.
8890         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8891         Don't invoke AC_REPLACE_FUNCS.
8892         * modules/sethostname (Link): Remove empty section.
8893         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8894         failure problem.
8895
8896 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8897
8898         New module 'sethostname'.
8899         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8900         for systems that lack it.
8901         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8902         sethostname declaration and function.
8903         * modules/sethostname: New file.  Define the sethostname module.
8904
8905 2011-12-03  Bruno Haible  <bruno@clisp.org>
8906
8907         Tweak last commit.
8908         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8909
8910 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8911
8912         Split the HOST_NAME_MAX detection into a separate m4 macro.
8913         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8914         macro so it can be used by the pending sethostname module.
8915
8916 2011-12-03  Bruno Haible  <bruno@clisp.org>
8917
8918         Fix module descriptions syntax.
8919         * modules/argv-iter (License): Fix syntax.
8920         * modules/di-set (License): Likewise.
8921         * modules/ino-map (License): Likewise.
8922         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8923
8924 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         stdalign: port to Clang 3.0
8927         Problem reported by Simon Josefsson in
8928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8929         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8930         which has <stdalign.h> but which does not define alignof.
8931         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8932
8933 2011-12-01  Eric Blake  <eblake@redhat.com>
8934
8935         mktempd: silence dd usage
8936         * build-aux/mktempd (rand_bytes): Silence dd.
8937
8938 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8939
8940         manywarnings: Don't mention gcc version in docstring.
8941         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8942         Jim Meyering <meyering@redhat.com>.
8943
8944 2011-11-30  Jim Meyering  <meyering@redhat.com>
8945
8946         hash: mark a few floating point constants with "f" suffix
8947         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8948         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8949         floating point constants with "f", since they're destined to be
8950         saved/used as "float"s.
8951
8952 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8953
8954         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8955         * tests/test-float.c (test_long_double): Correct and re-enable the
8956         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8957
8958 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8959
8960         Avoid subtracting two pointers that don't point into the same block.
8961         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8962         only pointers into the same memory block are subtracted. We cannot
8963         assume that sizeof (ptrdiff_t) == sizeof (void *).
8964
8965 2011-11-29  Eric Blake  <eblake@redhat.com>
8966
8967         maint.mk: add syntax check for use of compare from init.sh
8968         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8969         moved here from coreutils.
8970
8971         manywarnings: drop -Wunsuffixed-float-constants
8972         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8973         '1.0D', which is the only way to silence this warning for 'double'.
8974
8975 2011-11-29  Jim Meyering  <meyering@redhat.com>
8976
8977         hash: mark compute_bucket_size with the pure attribute
8978         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8979
8980         quotearg, propername: correct pragma guard expression
8981         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8982         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8983
8984 2011-11-28  Jim Meyering  <meyering@redhat.com>
8985
8986         propername: do not mark proper_name with the const attribute
8987         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8988         since it examines data pointed to by its parameter.
8989         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8990         the suggestion from -Wsuggest-attribute=const.
8991
8992         propername: mark one more function as const
8993         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8994
8995 2011-11-27  Jim Meyering  <meyering@redhat.com>
8996
8997         mark functions with const and pure attributes
8998
8999         Mark functions per suggestions from gcc-4.6 when using these options:
9000         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9001         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9002         Follow these guidelines: when possible, apply the attribute to
9003         an extern declaration, not to its definition.  Apply it to the
9004         definition only when the definition is static.
9005         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9006         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9007         * lib/base64.h (isbase64): Likewise.
9008         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9009         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9010         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9011         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9012         (c_tolower, c_toupper): Likewise.
9013         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9014         * lib/chdir-long.c (find_non_slash): Likewise.
9015         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9016         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9017         * lib/file-type.h (file_type): Likewise.
9018         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9019         * lib/filevercmp.c (verrevcmp): Likewise.
9020         * lib/freadahead.h (freadahead): Likewise.
9021         * lib/fts.c (fts_maxarglen): Likewise.
9022         * lib/hash-pjw.h (hash_pjw): Likewise.
9023         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9024         * lib/hash.c (is_prime, next_prime): Likewise.
9025         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9026         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9027         (hash_table_ok, hash_get_first, hash_string): Likewise.
9028         (compute_bucket_size): Likewise.
9029         * lib/i-ring.h (i_ring_empty): Likewise.
9030         * lib/isnan.c (isnanl): Likewise.
9031         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9032         * lib/memcasecmp.h (memcasecmp): Likewise.
9033         * lib/memchr2.h (memchr2): Likewise.
9034         * lib/memcmp2.h (memcmp2): Likewise.
9035         * lib/parse-datetime.y (lookup_zone): Likewise.
9036         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9037         [!WINDOWS_SOCKETS]: Likewise.
9038         * lib/strnlen1.h (strnlen1): Likewise.
9039         * lib/uniwidth.in.h (uc_width): Likewise.
9040         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9041         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9042         (quoting_options_from_style): Add a comment.
9043         * lib/propername.h (proper_name): Add a comment.
9044
9045 2011-11-27  Bruno Haible  <bruno@clisp.org>
9046
9047         Remove unused macros from !_LIBC code in glibc-borrowed files.
9048         * lib/fnmatch.c (STRCOLL): Remove macro.
9049         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9050         * lib/glob.c (__stat, __readdir64): Remove macros.
9051         * lib/tempname.c (__open64, __xstat64): Remove macros.
9052         Suggested by Paul Eggert.
9053
9054 2011-11-27  Bruno Haible  <bruno@clisp.org>
9055
9056         getcwd: Fix link error on MSVC 9.
9057         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9058
9059 2011-11-27  Bruno Haible  <bruno@clisp.org>
9060
9061         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9062         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9063         HAVE_OPENDIR is 0.
9064         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9065         HAVE_CLOSEDIR is 0.
9066         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9067         is 0.
9068         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9069
9070 2011-11-27  Bruno Haible  <bruno@clisp.org>
9071
9072         getcwd: Fix bug from 2011-08-17.
9073         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9074         platforms that need it.
9075         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9076         code of 4 to be a failure, not a success. This ensures that
9077         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9078
9079 2011-11-27  Bruno Haible  <bruno@clisp.org>
9080
9081         binary-io tests: Avoid test failure on mingw when libtool is used.
9082         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9083         Don't verify the size of t-bin-out1.tmp here.
9084         * tests/test-binary-io.sh: Verify it here.
9085         Reported by Simon Josefsson.
9086
9087 2011-11-26  Bruno Haible  <bruno@clisp.org>
9088
9089         Fix conflict between two instantiations of module 'unistd'.
9090         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9091         ${include_guard_prefix} also in the autoconf snippet.
9092         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9094         GNULIB_UNISTD_H_GETOPT.
9095         * modules/getopt-posix (configure.ac): Set the
9096         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9097         * modules/getopt-gnu (configure.ac): Likewise.
9098         * modules/unistd (Makefile.am): Change the substitution value of
9099         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9100         Reported by Simon Josefsson.
9101
9102 2011-11-25  Bruno Haible  <bruno@clisp.org>
9103
9104         pagealign_alloc: Doc and comments.
9105         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9106         module.
9107         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9108
9109 2011-11-25  Jim Meyering  <meyering@redhat.com>
9110
9111         test-update-copyright.sh: avoid false-positive failure
9112         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9113         around false positive failure on Cygwin/Windows.  The latter was
9114         matching erroneously-created files with names like
9115         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9116
9117 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9118
9119         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9120         * m4/valgrind-tests.m4: Check that the parameters that will be
9121         used works, not just a subset of them.  Reported by Bruno Haible
9122         <bruno@clisp.org>.
9123
9124 2011-11-24  Jim Meyering  <meyering@redhat.com>
9125
9126         test-stdalign.c: comment out long double tests
9127         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9128         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9129         error: '_Alignas' specifiers cannot reduce alignment of \
9130         'static_longdouble_alignas'.
9131
9132 2011-11-22  Jim Meyering  <meyering@redhat.com>
9133
9134         init.sh: make "compare /dev/null FILE" output more readable
9135         * tests/init.sh (compare_): Document the preferred order of arguments.
9136         (emit_diff_u_header_): New function.
9137         (compare_dev_null_): Emit a simulated diff, rather than just the
9138         contents of the unexpected file.  Suggestion from Bruno Haible.
9139
9140 2011-11-21  Jim Meyering  <meyering@redhat.com>
9141             Eric Blake  <eblake@redhat.com>
9142
9143         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9144         * tests/init.sh: Make our compare function slightly more portable.
9145         Reported by Bruno Haible in
9146         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9147
9148 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9149
9150         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9151         before using it, in code that ends up in config.h.
9152
9153 2011-11-20  Bruno Haible  <bruno@clisp.org>
9154
9155         getcwd: Work around getcwd bug on AIX 5..7.
9156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9157         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9158         Use a different value for gl_cv_func_getcwd_path_max. Move the
9159         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9160         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9161         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9162         Define HAVE_MINIMALLY_WORKING_GETCWD.
9163         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9164         where it is not even minimally working, that is, on AIX.
9165         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9166         m4/getcwd-path-max.m4.
9167         (main): Update exit code computation.
9168         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9169         getcwd does not handle long file names.
9170
9171 2011-11-20  Bruno Haible  <bruno@clisp.org>
9172
9173         getcwd: Fix bug from 2009-09-10.
9174         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9175         like "no".
9176
9177 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9178
9179         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9180
9181 2011-11-20  Bruno Haible  <bruno@clisp.org>
9182
9183         fma tests: Avoid shadowing local variables.
9184         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9185         expected.
9186
9187 2011-11-20  Bruno Haible  <bruno@clisp.org>
9188
9189         copysignf tests: Fix.
9190         * tests/test-copysignf.c: Fix signature check.
9191
9192 2011-11-20  Bruno Haible  <bruno@clisp.org>
9193
9194         fma: Remove unused code.
9195         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9196         unused macros.
9197
9198 2011-11-20  Bruno Haible  <bruno@clisp.org>
9199
9200         sethostname: Fix doc about AIX.
9201         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9202         sethostname; it has it.
9203
9204         sethostname: Mention more portability problems.
9205         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9206         problem.
9207         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9208
9209 2011-11-19  Bruno Haible  <bruno@clisp.org>
9210
9211         Depend on module fcntl-h when AT_FDCWD is used.
9212         * modules/utimens (Depends-on): Add fcntl-h.
9213         * modules/areadlinkat (Depends-on): Likewise.
9214         * modules/areadlinkat-with-size (Depends-on): Likewise.
9215         * modules/faccessat (Depends-on): Likewise.
9216         * modules/fchmodat (Depends-on): Likewise.
9217         * modules/fchownat (Depends-on): Likewise.
9218         * modules/getcwd (Depends-on): Likewise.
9219         * modules/mkdirat (Depends-on): Likewise.
9220         * modules/mkfifoat (Depends-on): Likewise.
9221         * modules/readlinkat (Depends-on): Likewise.
9222         * modules/symlinkat (Depends-on): Likewise.
9223         * modules/dup2-tests (Depends-on): Likewise.
9224         * modules/fdutimensat-tests (Depends-on): Likewise.
9225         * modules/futimens-tests (Depends-on): Likewise.
9226
9227 2011-11-19  Bruno Haible  <bruno@clisp.org>
9228
9229         euidaccess: Update a comment.
9230         * lib/euidaccess.c: Update comment about platforms with faccessat.
9231
9232 2011-11-19  Bruno Haible  <bruno@clisp.org>
9233
9234         openat: Fix file list.
9235         * modules/openat (Files): Remove lib/at-func.c.
9236
9237 2011-11-19  Bruno Haible  <bruno@clisp.org>
9238
9239         fstatat: Simplify.
9240         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9241         gnulib should define rpl_fstatat, there is a
9242         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9243
9244 2011-11-19  Bruno Haible  <bruno@clisp.org>
9245
9246         Ensure 'inline' can be used in tests/test-utimens-common.h.
9247         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9248         * modules/futimens-tests (configure.ac): Likewise.
9249         * modules/utimens-tests (configure.ac): Likewise.
9250         * modules/utimensat-tests (configure.ac): Likewise.
9251
9252 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9253
9254         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9255         not hash_insert0.
9256         (hash_insert_if_absent): Doc fix.
9257
9258 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9259
9260         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9261
9262 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9263
9264         test-getcwd: disambiguate exit status
9265         * tests/test-getcwd.c (test_long_name): Return 0..7.
9266         (main): Exit with an unambiguous exit status.  The old
9267         code yielded a mysterious mixture of two failure codes.
9268
9269         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9270         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9271         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9272         rpl_fstatat or fstatat.  This should fix the other problem
9273         reported by Kai Habel in
9274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9275         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9277         and I reproduced it on a Solaris 8 host we still have in production.
9278
9279 2011-11-18  Jim Meyering  <meyering@redhat.com>
9280
9281         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9282         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9283         Add a sentence to the comment.
9284         (hash_insert0): New function that simply calls hash_insert_if_absent.
9285         * lib/hash.h (hash_insert_if_absent): Declare it.
9286         (hash_insert0): Add deprecation attribute.
9287         (_GL_ATTRIBUTE_DEPRECATED): Define.
9288         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9289         not hash_insert0.
9290         * NEWS: Mention it, even though it's not really an incompatible change.
9291
9292 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9293
9294         openat: avoid compilation failure due to lack of <errno.h> inclusion
9295         * lib/openat.c: Include <errno.h>.
9296
9297 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9298
9299         * modules/getcwd (Depends-on): Add fdopendir.
9300         This fixes one of the two problems reported by Kai Habel in
9301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9302
9303         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9304         stdalign problem reported by Ian Beckwith in
9305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9306         * modules/crypto/gc-arcfour (Depends-on):
9307         Depend conditionally on crypto/arcfour.
9308         * modules/crypto/gc-arctwo (Depends-on):
9309         Depend conditionally on crypto/arctwo.
9310         * modules/crypto/gc-des (Depends-on):
9311         Depend conditionally on crypto/des.
9312         * modules/crypto/gc-hmac-md5 (Depends-on):
9313         Depend conditionally on crypto/hmac-md5.
9314         * modules/crypto/gc-hmac-sha1 (Depends-on):
9315         Depend conditionally on crypto/hmac-sha1.
9316         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9317         * modules/crypto/gc-md4 (Depends-on):
9318         Depend conditionally on crypto/md4.
9319         * modules/crypto/gc-md5 (Depends-on):
9320         Depend conditionally on crypto/md5.
9321         * modules/crypto/gc-rijndael (Depends-on):
9322         Depend conditionally on crypto/rijndael.
9323         * modules/crypto/gc-sha1 (Depends-on):
9324         Depend conditionally on crypto/sha1.
9325         * modules/crypto/gc-arcfour:
9326         * modules/crypto/gc-arctwo:
9327         * modules/crypto/gc-des:
9328         * modules/crypto/gc-hmac-md5:
9329         * modules/crypto/gc-hmac-sha1:
9330         * modules/crypto/gc-md2:
9331         * modules/crypto/gc-md4:
9332         * modules/crypto/gc-md5:
9333         * modules/crypto/gc-rijndael:
9334         * modules/crypto/gc-sha1:
9335         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9336         now that the conditional dependencies do the work for us.
9337
9338 2011-11-17  Jim Meyering  <meyering@redhat.com>
9339
9340         tests: factor st_ctime-comparison out of two headers
9341         * tests/test-utimens-common.h (ctime_compare): Define.
9342         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9343         * tests/test-lutimens.h (test_lutimens): Likewise.
9344         * tests/test-utimens.h (test_utimens): Likewise.
9345
9346         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9347         Invoke the test program via an init.sh-using wrapper.
9348         * tests/test-getcwd.sh: New file.
9349         * modules/getcwd-tests (Files): Add it.
9350         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9351
9352 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9353
9354         gitlog-to-changelog: support multi-author commits.
9355         The FSF cares about keeping track of all authors of patches to its
9356         projects, but Git doesn't provide obvious support for multi-author
9357         changesets. Consensus seems to be forming around the use of extra
9358         Signed-off-by inspired lines in the log message formatted as
9359         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9360         multi-author commits between version control systems.
9361         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9362         log message and output in standard ChangeLog multi-author format.
9363         Reported by Peter Rosin <peda@lysator.liu.se>
9364
9365 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9366             Bruno Haible  <bruno@clisp.org>
9367
9368         Fix some modules' file list.
9369         * modules/fstatat (Files): Add m4/lstat.m4.
9370         * modules/openat (Files): Likewise.
9371         * modules/unlinkat (Files): Likewise.
9372
9373 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9374
9375         maint.mk: fix tight-scope.mk generation in VPATH builds.
9376         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9377         reference with $(srcdir) so that the file is found correctly even
9378         when running `make syntax-check' in a VPATH build.
9379
9380 2011-11-13  Bruno Haible  <bruno@clisp.org>
9381             Jim Meyering  <meyering@redhat.com>
9382
9383         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9384         * tests/init.sh (compare): Remove "No differences encountered" or
9385         synonymous output from the 'diff' program.
9386
9387 2011-11-13  Bruno Haible  <bruno@clisp.org>
9388
9389         Makefile: Tweak indentation.
9390         * Makefile: Use tab as first character in every line that contains rule
9391         commands.
9392
9393 2011-11-13  Bruno Haible  <bruno@clisp.org>
9394
9395         Syntax check for copyright statements.
9396         * check-copyright: New file.
9397         * Makefile (sc_check_copyright): New rule.
9398
9399 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9400
9401         * build-aux/git-version-gen: Add --prefix to configure the tag
9402         match string.
9403
9404 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9405
9406         * build-aux/git-version-gen: Add --help and --version.
9407
9408 2011-11-12  Jim Meyering  <meyering@redhat.com>
9409
9410         revamp the other test-exclude?.sh scripts to use init.sh, too
9411         * tests/test-exclude1.sh: Use init.sh.
9412         * tests/test-exclude2.sh: Likewise.
9413         * tests/test-exclude3.sh: Likewise.
9414         * tests/test-exclude4.sh: Likewise.
9415         * tests/test-exclude5.sh: Likewise.
9416         * tests/test-exclude6.sh: Likewise.
9417         * tests/test-exclude7.sh: Likewise.
9418         * tests/test-exclude8.sh: Likewise.
9419         * modules/exclude-tests (Files): List init.sh.
9420
9421         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9422         These shell scripts ignored failure of the binary test-exclude,
9423         so making the latter return 77 didn't cause them to be skipped.
9424         * tests/test-exclude5.sh: Exit with test-exclude's error status
9425         when that program fails.  Revamp to use init.sh.
9426         * tests/test-exclude2.sh: Likewise.
9427
9428         test-exclude: fix a typo
9429         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9430
9431 2011-11-11  Bruno Haible  <bruno@clisp.org>
9432
9433         obstack: Fix compilation error on MSVC 9.
9434         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9435
9436 2011-11-11  Jim Meyering  <meyering@redhat.com>
9437
9438         test-exclude: skip tests rather than failing on deficient systems
9439         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9440         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9441         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9442         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9443
9444 2011-11-10  Bruno Haible  <bruno@clisp.org>
9445
9446         ptsname_r test: Avoid gcc warning on glibc systems.
9447         * tests/test-ptsname_r.c (null_ptr): New function.
9448         (test_errors): Use it.
9449
9450 2011-11-10  Bruno Haible  <bruno@clisp.org>
9451
9452         ptsname_r: Avoid compilation error on OSF/1 5.1.
9453         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9455         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9456         function is not declared or incompatibly declared.
9457         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9458         * modules/ptsname_r (Depends-on, configure.ac): Update.
9459         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9460
9461 2011-11-10  Bruno Haible  <bruno@clisp.org>
9462
9463         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9464         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9465         When cross-compiling, guess yes on all platforms except AIX.
9466         Reported by Ludovic Courtès <ludo@gnu.org>.
9467
9468 2011-11-09  Bruno Haible  <bruno@clisp.org>
9469
9470         ptsname_r tests: Fix bugs.
9471         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9472         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9473
9474 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9475
9476         fstatat: work with cross-compilation
9477         Problem reported by Ludovic Courtès in
9478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9479         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9480         "cross-compiling" and assume the bug is present.  Replace
9481         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9482         an inverted sense, to be more conservative about our assumptions.
9483         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9484
9485 2011-11-09  Bruno Haible  <bruno@clisp.org>
9486
9487         Improve MODULES.html output.
9488         * modules/mkfifoat (Description): Use the word "function".
9489         * modules/readlinkat (Description): Likewise.
9490         * modules/symlinkat (Description): Likewise.
9491
9492 2011-11-09  Eric Blake  <eblake@redhat.com>
9493
9494         ptsname_r-tests: new test module
9495         * modules/ptsname_r-tests: New module.
9496         * tests/test-ptsname_r.c: New file.
9497
9498         ptsname_r: new module
9499         * modules/ptsname_r: New module.
9500         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9501         * lib/ptsname.c (__ptsname_r): Split...
9502         * lib/ptsname_r.c: ...into new file.
9503         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9504         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9505         * modules/stdlib (Makefile.am): Substitute witnesses.
9506         * lib/stdlib.in.h (ptsname_r): Declare it.
9507         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9508         * MODULES.html.sh (Misc): Likewise.
9509         * modules/ptsname (Depends-on): Alter dependency.
9510         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9511
9512 2011-11-09  Jim Meyering  <meyering@redhat.com>
9513
9514         announce-gen: be more concise when there's only one URL+tarball
9515         * build-aux/announce-gen (get_tool_versions): When you distribute
9516         only one type of tarball, combine the first two "Here are..."
9517         sections and make the key-checking grammar independent of
9518         how many tarballs there are.
9519
9520 2011-11-09  Eric Blake  <eblake@redhat.com>
9521
9522         openpty: provide a stub on mingw
9523         * lib/pty.in.h (includes): Provide forward declarations.
9524         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9525
9526         raise: fix mingw handling of SIGPIPE
9527         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9528
9529 2011-11-08  Bruno Haible  <bruno@clisp.org>
9530
9531         More conditional dependencies.
9532         * modules/faccessat (Depends-on): Add conditions.
9533         * modules/fchmodat (Depends-on): Likewise.
9534         * modules/fchownat (Depends-on): Likewise.
9535         * modules/fstatat (Depends-on): Likewise.
9536         * modules/mkfifoat (Depends-on): Likewise.
9537         * modules/readlinkat (Depends-on): Likewise.
9538         * modules/symlinkat (Depends-on): Likewise.
9539         * modules/unlinkat (Depends-on): Likewise.
9540         * modules/utimensat (Depends-on): Likewise.
9541         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9542         * modules/linkat (Depends-on): Refine the conditions.
9543         * modules/renameat (Depends-on): Likewise.
9544
9545 2011-11-08  Bruno Haible  <bruno@clisp.org>
9546
9547         faccessat: Move AC_LIBOBJ invocation to module description.
9548         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9549         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9550         invocation from here...
9551         * modules/faccessat (configure.ac): ... to here. Invoke
9552         gl_PREREQ_FACCESSAT.
9553
9554 2011-11-08  Bruno Haible  <bruno@clisp.org>
9555
9556         faccessat: Simplify autoconf macro.
9557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9558         gl_FUNC_EUIDACCESS.
9559
9560 2011-11-08  Bruno Haible  <bruno@clisp.org>
9561
9562         renameat: Fix dependencies.
9563         * modules/renameat (Depends-on): Add stdbool.
9564
9565 2011-11-08  Bruno Haible  <bruno@clisp.org>
9566
9567         mkfifoat: Fix module description.
9568         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9569         not gl_UNISTD_MODULE_INDICATOR.
9570
9571 2011-11-08  Bruno Haible  <bruno@clisp.org>
9572
9573         fstatat: Remove unused dependency.
9574         * modules/fstatat (Depends-on): Remove fstat.
9575
9576 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9577
9578         GNUmakefile: behave when Makefile is missing.
9579         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9580
9581 2011-11-08  Bruno Haible  <bruno@clisp.org>
9582
9583         openat: Conditionalize dependencies.
9584         * lib/openat.c: Reduce the scope of some #includes.
9585         * modules/openat (Depends-on): Add conditions.
9586
9587 2011-11-07  Jim Meyering  <meyering@redhat.com>
9588
9589         maint.mk: extract GPG key ID without using a temporary file
9590         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9591         without using a temporary file.  Based on a suggestion from Werner Koch
9592         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9593
9594 2011-11-07  Eric Blake  <eblake@redhat.com>
9595
9596         grantpt: fix typo
9597         * lib/stdlib.in.h (grantpt): Check correct function.
9598
9599         maint.mk: silence new syntax check
9600         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9601
9602 2011-11-06  Bruno Haible  <bruno@clisp.org>
9603
9604         Doc about floating-point and math API.
9605         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9606         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9607
9608 2011-11-06  Bruno Haible  <bruno@clisp.org>
9609
9610         stdalign tests: Skip the test when compiled by Sun C.
9611         * tests/test-stdalign.c (main): Skip the test on Sun C.
9612
9613 2011-11-06  Bruno Haible  <bruno@clisp.org>
9614
9615         ansi-c++-opt: Complete the 2011-06-05 change.
9616         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9617         does not support namespaces, set the variable to "no", not to ":".
9618
9619 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9620
9621         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9622
9623 2011-11-06  Bruno Haible  <bruno@clisp.org>
9624
9625         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9626         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9627         (minus_zerol) [HP-UX]: New macro.
9628         (unary_minus) [HP-UX]: New function.
9629         (copysignl) [HP-UX]: Use unary_minus function.
9630
9631 2011-11-06  Bruno Haible  <bruno@clisp.org>
9632
9633         ldexp, ldexpf, ldexpl: Enhance tests.
9634         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9635         and tests/test-ldexpl.c.
9636         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9637         LDEXP, MIN_EXP, MAX_EXP): New macros.
9638         Include test-ldexp.h.
9639         (main): Just call test_function.
9640         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9641         infinity.h, nan.h.
9642         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9643         MAX_EXP): New macros.
9644         Include test-ldexp.h.
9645         (x, y): Remove variables.
9646         (main): Just call test_function.
9647         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9648         infinity.h, nan.h.
9649         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9650         MAX_EXP): New macros.
9651         Include test-ldexp.h.
9652         (x, y): Remove variables.
9653         (main): Just call test_function.
9654         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9655         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9656         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9657         (Depends-on): Add isnand-nolibm, signbit, float.
9658         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9659         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9660         (Depends-on): Add isnanf-nolibm, signbit, float.
9661
9662 2011-11-06  Bruno Haible  <bruno@clisp.org>
9663
9664         math tests: Cosmetics.
9665         * tests/test-math-c++.cc: Reorder declarations.
9666
9667 2011-11-05  Bruno Haible  <bruno@clisp.org>
9668
9669         fma*: Simplify test.
9670         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9671         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9672
9673         Tests for module 'fmal'.
9674         * modules/fmal-tests: New file.
9675         * tests/test-fmal1.c: New file.
9676         * tests/test-fmal2.c: New file.
9677
9678         New module 'fmal'.
9679         * lib/math.in.h (fmal): New declaration.
9680         * lib/fmal.c: New file.
9681         * m4/fmal.m4: New file.
9682         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9684         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9685         REPLACE_FMAL.
9686         * modules/fmal: New file.
9687         * doc/posix-functions/fmal.texi: Mention the new module and the various
9688         bugs.
9689
9690         Tests for module 'fmaf'.
9691         * modules/fmaf-tests: New file.
9692         * tests/test-fmaf1.c: New file.
9693         * tests/test-fmaf2.c: New file.
9694
9695         New module 'fmaf'.
9696         * lib/math.in.h (fmaf): New declaration.
9697         * lib/fmaf.c: New file.
9698         * m4/fmaf.m4: New file.
9699         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9701         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9702         REPLACE_FMAF.
9703         * modules/fmaf: New file.
9704         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9705         bugs.
9706
9707         Tests for module 'fma'.
9708         * modules/fma-tests: New file.
9709         * tests/test-fma1.c: New file.
9710         * tests/test-fma1.h: New file.
9711         * tests/test-fma2.c: New file.
9712         * tests/test-fma2.h: New file.
9713
9714         New module 'fma'.
9715         * lib/math.in.h (fma): New declaration.
9716         * lib/fma.c: New file.
9717         * m4/fma.m4: New file.
9718         * m4/fegetround.m4: New file.
9719         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9721         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9722         REPLACE_FMA.
9723         * modules/fma: New file.
9724         * doc/posix-functions/fma.texi: Mention the new module and the various
9725         bugs.
9726
9727         Extend gl_MATHFUNC.
9728         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9729         Support 'void' as argument type.
9730         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9731
9732 2011-11-05  Jim Meyering  <meyering@redhat.com>
9733
9734         maint.mk: also prohibit inclusion of dirent.h without use
9735         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9736
9737 2011-11-05  Bruno Haible  <bruno@clisp.org>
9738
9739         ldexpl tests: Avoid test failure on MSVC 9.
9740         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9741         value. Needed in order to enforce the conversion from a value greater
9742         than LDBL_MAX to Infinity.
9743
9744 2011-11-05  Bruno Haible  <bruno@clisp.org>
9745
9746         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9747         * modules/at-internal: New file, extracted from modules/openat.
9748         * modules/openat-h: New file.
9749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9750         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9751         * modules/openat (Description): Add reference to POSIX function.
9752         (Files): Remove lib/openat.h, lib/openat-proc.c.
9753         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9754         intprops, unistd.
9755         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9756         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9757         gl_FCNTL_MODULE_INDICATOR.
9758         (Include): Remove unistd.h, openat.h.
9759         * modules/areadlinkat (Files): Add lib/at-func.c.
9760         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9761         openat-die, openat-h, save-cwd.
9762         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9763         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9764         openat-die, openat-h, save-cwd, unistd.
9765         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9766         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9767         openat-h, save-cwd. Remove fcntl-h, openat.
9768         * modules/fchmodat (Files): Remove lib/openat.h.
9769         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9770         openat, stdbool, unistd.
9771         * modules/fchownat (Files): Remove lib/openat.h.
9772         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9773         openat, stdbool, sys_stat.
9774         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9775         lib/openat-proc.c.
9776         (Depends-on): Add at-internal.
9777         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9778         * modules/fstatat (Files): Remove lib/openat.h.
9779         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9780         stdbool, unistd.
9781         * modules/fts (Depends-on): Add openat-h.
9782         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9783         openat.
9784         * modules/mkdirat (Files): Remove lib/openat.h.
9785         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9786         openat, stdbool, sys_stat.
9787         * modules/mkfifoat (Files): Add lib/at-func.c.
9788         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9789         openat-h, save-cwd. Remove fcntl-h, openat.
9790         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9791         * modules/readlinkat (Files): Add lib/at-func.c.
9792         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9793         openat-h, save-cwd. Remove fcntl-h, openat.
9794         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9795         openat.
9796         * modules/selinux-at (Files): Add lib/at-func.c.
9797         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9798         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9799         * modules/symlinkat (Files): Add lib/at-func.c.
9800         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9801         openat-h, save-cwd. Remove fcntl-h, openat.
9802         * modules/unlinkat (Files): Remove lib/openat.h.
9803         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9804         stdbool.
9805         * modules/utimensat (Files): Add lib/at-func.c.
9806         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9807         openat-die, openat-h, save-cwd.
9808         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9809         * modules/fdutimensat-tests (Depends-on): Add openat.
9810         * modules/fstatat-tests (Depends-on): Add openat-h.
9811         * modules/readlinkat-tests (Depends-on): Add openat.
9812         * modules/symlinkat-tests (Depends-on): Add openat.
9813
9814 2011-11-05  Bruno Haible  <bruno@clisp.org>
9815
9816         openat: Include <stdbool.h>.
9817         * lib/openat.c: Include <stdbool.h>.
9818
9819 2011-11-04  Bruno Haible  <bruno@clisp.org>
9820
9821         fchownat, renameat, unlinkat: Fix dependencies.
9822         * modules/fchownat (Depends-on): Add fstatat.
9823         * modules/renameat (Depends-on): Likewise.
9824         * modules/unlinkat (Depends-on): Likewise.
9825
9826 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9827
9828         openat: remove direct dependency on dirent
9829         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9830         and hasn't been needed ever since fdopendir was split into its own
9831         module on 2009-08-31.
9832         * modules/openat (Depends-on): Remove dirent.
9833
9834 2011-11-04  Bruno Haible  <bruno@clisp.org>
9835
9836         renameat: Optimize code size.
9837         * modules/renameat (configure.ac): Don't compile at-func2.c if
9838         REPLACE_RENAMEAT is 1.
9839
9840 2011-11-04  Bruno Haible  <bruno@clisp.org>
9841
9842         openat tests: Fix file list.
9843         * modules/openat-tests (Files): Add tests/test-open.h.
9844
9845 2011-11-04  Bruno Haible  <bruno@clisp.org>
9846
9847         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9848         * modules/fchmodat (Depends-on): Add openat-die.
9849         * modules/fchownat (Depends-on): Likewise.
9850         * modules/linkat (Depends-on): Likewise.
9851         * modules/renameat (Depends-on): Likewise.
9852         * modules/openat (Depends-on): Add dirent.
9853
9854 2011-11-04  Jim Meyering  <meyering@redhat.com>
9855
9856         at-func*.c: fix comments
9857         * lib/at-func2.c: Correct/improve first-line comment.
9858         * lib/at-func.c: Correct grammar in first-line comment.
9859
9860 2011-11-04  Bruno Haible  <bruno@clisp.org>
9861
9862         New module 'mkdirat', split off from module 'openat'.
9863         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9865         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9866         * modules/mkdirat: New file, extracted from modules/openat.
9867         * modules/openat (Files): Remove lib/mkdirat.c.
9868         (Depends-on): Remove mkdir.
9869         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9870         (Include): Remove <sys/stat.h>.
9871         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9872         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9873         tests/test-mkdir.h.
9874         (Depends-on): Remove ignore-value.
9875         (Makefile.am): Remove rules for test-mkdirat.
9876         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9877         of module 'openat'.
9878         * NEWS: Mention the change.
9879
9880 2011-11-04  Bruno Haible  <bruno@clisp.org>
9881
9882         closedir: Avoid warning on mingw.
9883         * lib/closedir.c: Include <unistd.h>.
9884
9885 2011-11-04  Bruno Haible  <bruno@clisp.org>
9886
9887         New module 'fstatat', split off from module 'openat'.
9888         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9889         defined.
9890         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9891         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9892         gl_FUNC_FSTATAT.
9893         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9894         * modules/fstatat: New file, extracted from modules/openat.
9895         * modules/openat (Files): Remove lib/fstatat.c.
9896         (Depends-on): Remove lstat.
9897         (configure.ac): Remove AC_LIBOBJ of fstatat.
9898         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9899         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9900         tests/test-lstat.h, tests/test-stat.h.
9901         (Depends-on): Remove getcwd-lgpl.
9902         (Makefile.am): Remove rules for test-fstatat.
9903         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9904         of module 'openat'.
9905         * NEWS: Mention the change.
9906         * modules/getcwd (Depends-on): Add fstatat.
9907         * modules/linkat (Depends-on): Likewise.
9908         * modules/mkfifoat-tests (Depends-on): Likewise.
9909         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9910
9911 2011-11-03  Bruno Haible  <bruno@clisp.org>
9912
9913         New module 'unlinkat', split off from module 'openat'.
9914         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9915         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9916         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9917         * modules/unlinkat: New file, extracted from modules/openat. Correct
9918         the dependency conditions.
9919         * modules/openat (Files): Remove lib/unlinkat.c.
9920         (Depends-on): Remove rmdir, unlink.
9921         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9922         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9923         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9924         tests/test-rmdir.h, tests/test-unlink.h.
9925         (Depends-on): Remove unlinkdir.
9926         (Makefile.am): Remove rules for test-unlinkat.
9927         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9928         of module 'openat'.
9929         * NEWS: Mention the change.
9930         * modules/linkat-tests (Depends-on): Add unlinkat.
9931         * modules/mkfifoat-tests (Depends-on): Likewise.
9932         * modules/readlinkat-tests (Depends-on): Likewise.
9933
9934 2011-11-02  Bruno Haible  <bruno@clisp.org>
9935
9936         New module 'fchmodat', split off from module 'openat'.
9937         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9938         defined.
9939         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9940         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9941         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9942         * modules/fchmodat: New file, extracted from modules/openat.
9943         * modules/openat (Files): Remove lib/fchmodat.c.
9944         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9945         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9946         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9947         (Makefile.am): Remove rules for test-fchmodat.
9948         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9949         of module 'openat'.
9950         * NEWS: Mention the change.
9951
9952 2011-11-02  Jim Meyering  <meyering@redhat.com>
9953
9954         putenv: indent #definition of "environ" to placate cppi
9955         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9956
9957         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9958         Git logs are often treated as immutable, because editing them
9959         changes the SHA1 checksums of all descendants.  Thus, errors in
9960         git logs tend to stay there forever.  However, when we generate
9961         a ChangeLog file -- typically for distribution -- from that git log,
9962         we can actually make corrections in the generated file.  The key
9963         lies in recording in machine-readable/applicable form the desired
9964         corrections.  See --help for description and an example.
9965         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9966         (usage): Describe it; alphabetize option descriptions.
9967         (main): Honor the new option, carefully.
9968
9969 2011-11-01  Jim Meyering  <meyering@redhat.com>
9970
9971         gitlog-to-changelog: avoid an infloop
9972         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9973         that ends up being empty.
9974
9975 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9976
9977         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9978         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9979         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9980         contains (possibly-quoted) backslashes.  This should avoid
9981         all-too-common shell bugs if COMPLICATED contains backslashes in
9982         the "wrong" places.  Reported by David Evans in
9983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9984         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9985         because we want ASCII ranges.  Is there some reason we don't use
9986         the C locale everywhere in this script?
9987         (func_module, top level): Avoid unwanted pathname expansion when
9988         $repo_url_prefix or $repo_url_suffix_repl contain shell
9989         metacharacters like '?' and '*'.
9990
9991 2011-11-01  Bruno Haible  <bruno@clisp.org>
9992
9993         fchownat: Improve description.
9994         * modules/fchownat (Description): Add link to function.
9995
9996 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9997
9998         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9999         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10001         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10002
10003 2011-11-01  Bruno Haible  <bruno@clisp.org>
10004
10005         alignof: Avoid collision with stdalign module.
10006         * lib/alignof.h (alignof): Remove macro.
10007         * NEWS: Mention the change.
10008         Reported by Paul Eggert.
10009
10010 2011-11-01  Bruno Haible  <bruno@clisp.org>
10011
10012         New module 'fchownat', split off from module 'openat'.
10013         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10014         defined.
10015         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10016         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10017         invoke gl_FUNC_FCHOWNAT.
10018         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10019         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10020         * modules/fchownat: New file, extracted from modules/openat.
10021         * modules/openat (Files): Remove lib/fchownat.c.
10022         (Depends-on): Remove lchown.
10023         (configure.ac): Remove AC_LIBOBJ of fchownat.
10024         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10025         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10026         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10027         (Depends-on): Remove mgetgroups, usleep, stat-time.
10028         (configure.ac): Remove test for getegid.
10029         (Makefile.am): Remove rules for test-fchownat.
10030         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10031         of module 'openat'.
10032         * NEWS: Mention the change.
10033
10034 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10035
10036         stdalign: port better to MSVC and to Sun C 5.11
10037         This fixes some of the problems reported by Bruno Haible in
10038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10039         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10040         shortcomings of MSVC and of Sun C 5.11.
10041         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10042         around __declspec arg.
10043         * modules/stdalign-tests (Files): Add tests/macros.h.
10044         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10045         Include macros.h, for ASSERT.
10046         (DECLARE_ALIGNED): Remove.
10047         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10048         to catch bug), and to 1 if not (simplifies the rest of the code).
10049         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10050         (CHECK_AUTO): Remove.
10051         (CHECK_ALIGNED): Check only the alignment of the static vars,
10052         since auto var alignment isn't supported by Sun C 5.11.
10053         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10054         ASSERT failures are easier to diagnose.
10055
10056 2011-10-31  Bruno Haible  <bruno@clisp.org>
10057
10058         doc about some IRIX 5.3 problems.
10059         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10060         on IRIX 5.3.
10061         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10062         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10063         5.3.
10064         * doc/posix-functions/grantpt.texi: Likewise.
10065         * doc/posix-functions/unlockpt.texi: Likewise.
10066         * doc/posix-functions/lgamma.texi: Likewise.
10067         * doc/posix-functions/nextafter.texi: Likewise.
10068         * doc/posix-functions/remainder.texi: Likewise.
10069         * doc/posix-functions/select.texi: Mention misplaced declaration on
10070         IRIX 5.3.
10071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10072
10073 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10074
10075         gitlog-to-changelog: fix git-log invocation.
10076         git-log mishandles date strings before 1970-01-01 UTC, and there is
10077         no use to specify --since=1970-01-01 by default anyway.
10078         * build-aux/gitlog-to-changelog: By default, when no --since option
10079         was given, do not specify explicit --since option to git-log.
10080
10081 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10082
10083         gitlog-to-changelog: new option --append-dot.
10084         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10085         first non-blank line of each commit message terminated with a dot.
10086
10087 2011-10-30  Bruno Haible  <bruno@clisp.org>
10088
10089         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10090         * lib/ffsl.h: Include <config.h>.
10091         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10092
10093 2011-10-30  Jim Meyering  <meyering@redhat.com>
10094
10095         GNUmakefile: reenable "make syntax-check" for most projects
10096         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10097         build-aux variable", "syntax-check" would do nothing but succeed with
10098         the "No version control files detected..." diagnostic (unless you
10099         happened to override _build-aux via cfg.mk).
10100         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10101         to precede inclusion of maint.mk.  Otherwise, these variables would
10102         be used undefined in any project that does not override the default.
10103
10104 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10105
10106         gitlog-to-changelog: treat a message with only blank lines as empty.
10107         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10108         trailing blank lines before the code that issues a warning about an
10109         empty commit message.
10110
10111 2011-10-30  Jim Meyering  <meyering@redhat.com>
10112
10113         test-parse-datetime.c: avoid new DST-related false positive test failure
10114         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10115         based on the time/date we'll convert, not the current time.
10116         Otherwise, the moment we cross a DST boundary like today's in
10117         Europe, (CEST to CET), that offset ends up being one hour off.
10118
10119 2011-10-27  Bruno Haible  <bruno@clisp.org>
10120
10121         fstat: Tweak documentation.
10122         * modules/fstat (Description): More precise description.
10123
10124 2011-10-27  Bruno Haible  <bruno@clisp.org>
10125
10126         Update documentation regarding 'largefile' module.
10127         * doc/posix-functions/fstat.texi: Tweak wording.
10128         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10129         problems with huge directories and/or small ino_t types.
10130         * doc/posix-functions/readdir.texi: Likewise.
10131         * doc/posix-functions/rewinddir.texi: Likewise.
10132
10133 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10134
10135         maint.mk: don't maintain a second build-aux variable.
10136         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10137         depends on GNUmakefile, which already maintains a cfg.mk
10138         overridable $(_build-aux) for projects with a non-standard
10139         build-aux directory location, although without the $(srcdir)
10140         prefix.  Use that variable consistently instead of introducing a
10141         second one.  Adjust all call sites.
10142
10143 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         Add stdalign module and use it in other modules.
10146         This is based on a previous proposal by Bruno Haible
10147         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10148
10149         stdalign: new module
10150         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10151         * modules/stdalign: New files.
10152         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10153         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10154
10155         stdalign-tests: new module
10156         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10157
10158         argp: use stdalign
10159         * lib/argp-parse.c: Include <stdalign.h>.
10160         (alignof): Remove.
10161         * modules/argp (Depends-on): Add stdalign.
10162
10163         crypto libraries: use stdalign
10164         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10165         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10166         Do not include <stdlib.h> twice, in md4.c.
10167         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10168         because we are accessing a pointer's bit-pattern, not a size.
10169         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10170         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10171         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10172         * modules/crypto/sha512: Likewise.
10173
10174         sys_socket: use stdalign, not alignof
10175         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10176         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10177
10178 2011-10-27  Bruno Haible  <bruno@clisp.org>
10179
10180         raise test: Avoid a test failure on Linux/MIPS.
10181         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10182         because 99 is a valid signal on Linux/MIPS.
10183
10184 2011-10-27  Bruno Haible  <bruno@clisp.org>
10185
10186         nonblocking tests: Fix test failure on Linux/MIPS.
10187         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10188         Set to 270000.
10189
10190 2011-10-27  Bruno Haible  <bruno@clisp.org>
10191
10192         utimensat: Work around problem on Linux/hppa.
10193         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10194         values.
10195         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10196
10197 2011-10-25  Jim Meyering  <meyering@redhat.com>
10198
10199         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10200         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10201         after symbols like NULL, size_t, etc.
10202         Reported by Alfred M. Szmidt.
10203
10204         maint.mk: exempt ENODATA from a syntax-check rule
10205         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10206         from the sc_prohibit_always-defined_macros syntax-check rule.
10207         Add a comment.  See this for more details:
10208         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10209
10210 2011-10-23  Jim Meyering  <meyering@redhat.com>
10211
10212         fts: close parent dir FD before returning from post-traversal fts_read
10213         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10214         unlink A, even though an FD open on A remained.  This is suboptimal
10215         (holding a file descriptor open longer than needed), but otherwise not
10216         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10217         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10218         that represents a real problem: it causes the removal of A to fail
10219         with e.g., "rm: cannot remove `A': Device or resource busy"
10220
10221         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10222         directory file descriptors.  After completing the final, FTS_DP,
10223         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10224         cache, but then proceeded to add a new FD to it via the subsequent
10225         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10226         final file descriptor would be closed only via fts_close's call to
10227         fd_ring_clear.  Now, it is usually closed earlier, via the final
10228         FTS_DP-returning fts_read call.
10229         * lib/fts.c (restore_initial_cwd): New function, converted from
10230         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10231         Update callers.
10232         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10233         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10234
10235 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10236             Bruno Haible  <bruno@clisp.org>
10237             Jim Meyering  <jim@meyering.net>
10238
10239         readme-release: improve safety of release prep instructions.
10240         * README-release: Don't git pull all branches when only master
10241         is needed for the release process.
10242         Run make maintainer-clean before changing trees and merging.
10243         Don't try to run ./configure right after git pull in case files
10244         that influence the bootstrap process have changed, move the
10245         ./configure step to after running ./bootstrap.
10246         Don't bootstrap "one last time"... it's the first time!
10247
10248 2011-10-22  Bruno Haible  <bruno@clisp.org>
10249
10250         errno, strerror-override: Support for MSVC 10.
10251         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10252         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10253         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10254         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10255         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10256         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10257         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10258         Assign values compatible with MSVC 10.
10259         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10260         New macros.
10261         (GNULIB_defined_EWINSOCK): New macro.
10262         * lib/strerror-override.c (strerror_override): Update accordingly.
10263         * lib/strerror-override.h: Likewise.
10264         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10265         longer equal to the corresponding errno value.
10266         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10267
10268 2011-10-22  Bruno Haible  <bruno@clisp.org>
10269
10270         perror: Recognize when test program crashes.
10271         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10272         strerror, set gl_cv_func_perror_works to no.
10273         Reported by Daniel Richard G. <skunk@iskunk.org>.
10274
10275         perror: Fix indentation.
10276         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10277
10278 2011-10-22  Bruno Haible  <bruno@clisp.org>
10279
10280         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10281         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10282         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10283         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10284         functions, not as a macro.
10285         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10286         macros.
10287         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10288         absence of macro.
10289         Suggested by Eric Blake.
10290         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10291
10292 2011-10-21  Bruno Haible  <bruno@clisp.org>
10293
10294         relocatable-prog-wrapper: Don't leave object files behind.
10295         * build-aux/install-reloc: Re-synchronize list of .o files to be
10296         removed with list of compilation units.
10297
10298 2011-10-20  Bruno Haible  <bruno@clisp.org>
10299
10300         openpty, posix_openpt: Remove code duplication.
10301         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10302         * lib/openpty.c: Include <stdlib.h>.
10303         (openpty): Use posix_openpt on all platforms except IRIX.
10304         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10305
10306 2011-10-20  Bruno Haible  <bruno@clisp.org>
10307
10308         unlockpt: Detect invalid argument.
10309         * lib/unlockpt.c: Include <fcntl.h>.
10310         (unlockpt): Check whether fd is valid, using fcntl().
10311         * modules/unlockpt (Depends-on): Add fcntl-h.
10312
10313 2011-10-20  Bruno Haible  <bruno@clisp.org>
10314
10315         openpty: Avoid compilation error on AIX 6.1.
10316         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10317
10318 2011-10-20  Bruno Haible  <bruno@clisp.org>
10319
10320         posix_openpt: Support for OpenBSD.
10321         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10322         (posix_openpt) [OpenBSD]: New code.
10323         * lib/grantpt.c: Include <fcntl.h>.
10324         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10325         * modules/grantpt (Depends-on): Add fcntl-h.
10326
10327 2011-10-20  Bruno Haible  <bruno@clisp.org>
10328
10329         posix_openpt test: Coding style.
10330         * tests/test-posix_openpt.c: Use GNU coding style.
10331
10332 2011-10-20  Bruno Haible  <bruno@clisp.org>
10333
10334         grantpt: Support --avoid=pt_chown.
10335         * modules/grantpt (Files): Add lib/pty-private.h.
10336
10337 2011-10-20  Bruno Haible  <bruno@clisp.org>
10338
10339         posix_openpt: Fix autoconf macro.
10340         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10341         unneeded check for _getpty.
10342
10343 2011-10-20  Bruno Haible  <bruno@clisp.org>
10344
10345         openpty: Update comments.
10346         * lib/openpty.c: Add comments about Minix.
10347
10348 2011-10-19  Eric Blake  <eblake@redhat.com>
10349
10350         openpty: relax license
10351         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10352
10353         pt_chown: use configmake to simplify build
10354         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10355
10356         ptsname and others: relax license
10357         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10358         * modules/unlockpt (License): Likewise.
10359         * modules/pt_chown (License): Likewise.
10360         * modules/ptsname (License): Likewise.
10361         * modules/ttyname_r (License): Likewise.
10362
10363 2011-10-19  Jim Meyering  <meyering@redhat.com>
10364
10365         posix_openpt: remove spurious #endif
10366         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10367
10368 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10369
10370         maint.mk: Respect $(build_aux) in web-manual rule.
10371         * top/maint.mk (web-manual): Find gen-announce script in user's
10372         $(build_aux) directory instead of hard-coding 'build-aux'.
10373
10374 2011-10-19  Bruno Haible  <bruno@clisp.org>
10375
10376         posix_openpt: Fix compilation error.
10377         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10378         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10379         Mention the openpty module as an alternative.
10380
10381 2011-10-19  Bruno Haible  <bruno@clisp.org>
10382
10383         Support for old NeXTstep 3.3 frexp().
10384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10385         execution time of the test to 5 seconds.
10386         Reported by Daniel Richard G. <skunk@iskunk.org>.
10387
10388 2011-10-19  Bruno Haible  <bruno@clisp.org>
10389
10390         Support for old NeXTstep 3.3 sed.
10391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10392         part, use /.../, not \|...|. Escape periods in the header file name.
10393         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10394         Reported by Daniel Richard G. <skunk@iskunk.org>.
10395
10396 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10397
10398         Support for old NeXTstep 3.3 gcc.
10399         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10400         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10401         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10402         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10403         * lib/regex.h (_Restrict_arr_): Likewise.
10404         * lib/regex_internal.h (re_token_t): Likewise.
10405         * lib/regexec.c (check_node_accept_bytes): Likewise.
10406         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10407
10408 2011-10-18  Eric Blake  <eblake@redhat.com>
10409
10410         posix_openpt: new module
10411         * modules/posix_openpt: New module.
10412         * m4/posix_openpt.m4: New file.
10413         * lib/posix_openpt.c: Likewise.
10414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10415         (gl_STDLIB_H_DEFAULTS): Set defaults.
10416         * modules/stdlib (Makefile.am): Substitute macros.
10417         * lib/stdlib.in.h (posix_openpt): Declare.
10418         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10419         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10420         * modules/posix_openpt-tests: New test module.
10421         * tests/test-posix_openpt.c: New test.
10422
10423 2011-10-15  Bruno Haible  <bruno@clisp.org>
10424
10425         xstrtoll: Fix compilation failure.
10426         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10427         from lib/strtol.c.
10428         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10429         some platforms.
10430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10431
10432 2011-10-15  Bruno Haible  <bruno@clisp.org>
10433
10434         vasnprintf: Optimize bit search operation.
10435         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10437         gl_DOUBLE_EXPONENT_LOCATION.
10438         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10439         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10440         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10441         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10442         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10443         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10444         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10445         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10446         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10447
10448 2011-10-15  Bruno Haible  <bruno@clisp.org>
10449
10450         vasnprintf: Fix comments.
10451         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10452
10453 2011-10-14  Bruno Haible  <bruno@clisp.org>
10454
10455         Tests for module 'integer_length_ll'.
10456         * modules/integer_length_ll-tests: New file.
10457         * tests/test-integer_length_ll.c: New file.
10458
10459         New module 'integer_length_ll'.
10460         * lib/integer_length_ll.c: New file.
10461         * modules/integer_length_ll: New file.
10462
10463 2011-10-14  Bruno Haible  <bruno@clisp.org>
10464
10465         Tests for module 'integer_length_l'.
10466         * modules/integer_length_l-tests: New file.
10467         * tests/test-integer_length_l.c: New file.
10468
10469         New module 'integer_length_l'.
10470         * lib/integer_length_l.c: New file.
10471         * modules/integer_length_l: New file.
10472
10473 2011-10-14  Bruno Haible  <bruno@clisp.org>
10474
10475         Tests for module 'integer_length'.
10476         * modules/integer_length-tests: New file.
10477         * tests/test-integer_length.c: New file.
10478
10479         New module 'integer_length'.
10480         * lib/integer_length.h: New file.
10481         * lib/integer_length.c: New file.
10482         * modules/integer_length: New file.
10483
10484 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10485
10486         popen: Fix dependency conditions.
10487         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10488
10489 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10490
10491         perror: Fix autoconf test.
10492         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10493         <stdlib.h> and <string.h>.
10494
10495 2011-10-14  Bruno Haible  <bruno@clisp.org>
10496
10497         ffsl: Optimize on 64-bit platforms.
10498         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10499         unrolling.
10500
10501 2011-10-13  Bruno Haible  <bruno@clisp.org>
10502
10503         ffsl: Optimize on 32-bit platforms.
10504         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10505         use ffs() without a loop.
10506
10507         ffsl, ffsll: Optimize for GCC.
10508         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10509         * lib/ffsl.c (GCC_BUILTIN): New macro.
10510         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10511
10512 2011-10-13  Bruno Haible  <bruno@clisp.org>
10513
10514         ffs, bcopy, memset: Support symbol renaming via config.h.
10515         * lib/ffs.c: Include <config.h>.
10516         * lib/bcopy.c: Likewise.
10517         * lib/memset.c: Likewise.
10518
10519 2011-10-10  Bruno Haible  <bruno@clisp.org>
10520
10521         atanl: Simplify for platforms where 'long double' == 'double'.
10522         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10523         alternative implementation.
10524         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10525         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10526         * modules/atanl (Depends-on): Add atan. Update conditions.
10527
10528 2011-10-10  Bruno Haible  <bruno@clisp.org>
10529
10530         acosl: Simplify for platforms where 'long double' == 'double'.
10531         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10532         alternative implementation.
10533         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10534         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10535         * modules/acosl (Depends-on): Add acos. Update conditions.
10536
10537 2011-10-10  Bruno Haible  <bruno@clisp.org>
10538
10539         asinl: Simplify for platforms where 'long double' == 'double'.
10540         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10541         alternative implementation.
10542         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10543         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10544         * modules/asinl (Depends-on): Add asin. Update conditions.
10545
10546 2011-10-10  Bruno Haible  <bruno@clisp.org>
10547
10548         tanl: Simplify for platforms where 'long double' == 'double'.
10549         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10550         implementation.
10551         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10552         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10553         * modules/tanl (Depends-on): Add tan. Update conditions.
10554         (configure.ac): Don't compile trigl.c if
10555         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10556
10557 2011-10-10  Bruno Haible  <bruno@clisp.org>
10558
10559         cosl: Simplify for platforms where 'long double' == 'double'.
10560         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10561         implementation.
10562         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10563         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10564         * modules/cosl (Depends-on): Add cos. Update conditions.
10565         (configure.ac): Don't compile sincosl.c and trigl.c if
10566         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10567
10568 2011-10-10  Bruno Haible  <bruno@clisp.org>
10569
10570         sinl: Simplify for platforms where 'long double' == 'double'.
10571         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10572         implementation.
10573         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10574         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10575         * modules/sinl (Depends-on): Add sin. Update conditions.
10576         (configure.ac): Don't compile sincosl.c and trigl.c if
10577         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10578
10579 2011-10-10  Bruno Haible  <bruno@clisp.org>
10580
10581         logl: Simplify for platforms where 'long double' == 'double'.
10582         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10583         implementation.
10584         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10585         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10586         * modules/logl (Depends-on): Add log. Update conditions.
10587
10588 2011-10-10  Bruno Haible  <bruno@clisp.org>
10589
10590         expl: Simplify for platforms where 'long double' == 'double'.
10591         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10592         implementation.
10593         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10594         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10595         * modules/expl (Depends-on): Add exp. Update conditions.
10596
10597 2011-10-10  Bruno Haible  <bruno@clisp.org>
10598
10599         sqrtl: Simplify for platforms where 'long double' == 'double'.
10600         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10601         alternative implementation.
10602         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10603         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10604         * modules/sqrtl (Depends-on): Update conditions.
10605
10606 2011-10-10  Bruno Haible  <bruno@clisp.org>
10607
10608         ldexpl: Simplify for platforms where 'long double' == 'double'.
10609         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10610         alternative implementation.
10611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10612         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10613         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10614
10615 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10616
10617         ffsll: set correct witness
10618         * modules/ffsll (configure.ac): Fix typo.
10619
10620 2011-10-10  Bruno Haible  <bruno@clisp.org>
10621
10622         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10623         * lib/printf-frexpl.c: Include <config.h>.
10624         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10625         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10626         second time.
10627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10628         gl_LONG_DOUBLE_VS_DOUBLE.
10629         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10630         conditions.
10631
10632 2011-10-10  Bruno Haible  <bruno@clisp.org>
10633
10634         frexpl: Simplify for platforms where 'long double' == 'double'.
10635         * lib/frexpl.c: Include <config.h>.
10636         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10637         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10638         time.
10639         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10640         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10641         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10642         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10643         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10644         conditions.
10645
10646 2011-10-10  Jim Meyering  <meyering@redhat.com>
10647
10648         test-renameat: don't leave behind a temporary file
10649         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10650           ERROR: files left in build directory after distclean:
10651           ./gltests/test-renameat.too
10652           make[1]: *** [distcleancheck] Error 1
10653         Reported by Tom G. Christensen.
10654
10655 2011-10-09  Bruno Haible  <bruno@clisp.org>
10656
10657         rint: Determine RINT_LIBM correctly on AIX 7.
10658         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10659         directly, not only through a function pointer. Also accept an optional
10660         4th argument with extra code.
10661         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10662         rintf() call by gcc when optimizing.
10663
10664         mathfunc.m4: Refactor.
10665         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10666         m4 variable.
10667
10668 2011-10-09  Bruno Haible  <bruno@clisp.org>
10669
10670         rintl: Simplify for platforms where 'long double' == 'double'.
10671         * lib/rintl.c: Include <config.h>.
10672         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10673         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10674         time.
10675         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10676         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10677         * modules/rintl (Depends-on): Add rint. Update conditions.
10678
10679 2011-10-09  Bruno Haible  <bruno@clisp.org>
10680
10681         roundl: Simplify for platforms where 'long double' == 'double'.
10682         * lib/roundl.c: Include <config.h>.
10683         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10684         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10685         time.
10686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10687         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10688         * modules/roundl (Depends-on): Add round. Update conditions.
10689
10690 2011-10-09  Bruno Haible  <bruno@clisp.org>
10691
10692         truncl: Simplify for platforms where 'long double' == 'double'.
10693         * lib/truncl.c: Include <config.h>.
10694         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10695         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10696         time.
10697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10698         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10699         * modules/truncl (Depends-on): Add trunc. Update conditions.
10700
10701 2011-10-09  Bruno Haible  <bruno@clisp.org>
10702
10703         ceill: Simplify for platforms where 'long double' == 'double'.
10704         * lib/ceill.c: Include <config.h>.
10705         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10706         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10707         time.
10708         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10709         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10710         * modules/ceill (Depends-on): Add ceil. Update conditions.
10711
10712 2011-10-09  Bruno Haible  <bruno@clisp.org>
10713
10714         floorl: Simplify for platforms where 'long double' == 'double'.
10715         * lib/floorl.c: Include <config.h>.
10716         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10717         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10718         time.
10719         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10720         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10721         * modules/floorl (Depends-on): Add floor. Update conditions.
10722
10723 2011-10-09  Bruno Haible  <bruno@clisp.org>
10724
10725         rint: Fix ordering constraints.
10726         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10727         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10728         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10729
10730 2011-10-09  Bruno Haible  <bruno@clisp.org>
10731
10732         copysignl: Simplify for platforms where 'long double' == 'double'.
10733         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10734         alternative.
10735         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10736         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10737         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10738
10739 2011-10-09  Bruno Haible  <bruno@clisp.org>
10740
10741         Tests for module 'rintl'.
10742         * modules/rintl-tests: New file.
10743         * tests/test-rintl.c: New file.
10744
10745         New module 'rintl'.
10746         * lib/math.in.h (rintl): New declaration.
10747         * lib/rintl.c: New file.
10748         * m4/rintl.m4: New file.
10749         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10751         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10752         * modules/rintl: New file.
10753         * tests/test-math-c++.cc: Check the declaration of rintl.
10754         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10755         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10756         * doc/posix-functions/rintl.texi: Mention the new module.
10757
10758 2011-10-09  Bruno Haible  <bruno@clisp.org>
10759
10760         Tests for module 'rintf'.
10761         * modules/rintf-tests: New file.
10762         * tests/test-rintf.c: New file.
10763
10764         New module 'rintf'.
10765         * lib/math.in.h (rintf): New declaration.
10766         * lib/rintf.c: New file.
10767         * m4/rintf.m4: New file.
10768         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10770         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10771         * modules/rintf: New file.
10772         * tests/test-math-c++.cc: Check the declaration of rintf.
10773         * doc/posix-functions/rintf.texi: Mention the new module.
10774
10775 2011-10-09  Bruno Haible  <bruno@clisp.org>
10776
10777         rint: Support for MSVC.
10778         * lib/math.in.h (rint): New declaration.
10779         * lib/rint.c: New file.
10780         * m4/rint.m4: New file.
10781         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10783         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10784         * modules/rint (Description): Fix.
10785         (Files): Add lib/rint.c, m4/rint.m4.
10786         (Depends-on): Add math.
10787         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10788         gl_MATH_MODULE_INDICATOR.
10789         * tests/test-math-c++.cc: Check the declaration of rint.
10790         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10791         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10792         * doc/posix-functions/rint.texi: Mention the replacement provided by
10793         the module.
10794
10795         rint tests: More tests.
10796         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10797         minus-zero.h, infinity.h, nan.h.
10798         (main): Skip the test if the current rounding mode is not standard. Add
10799         tests for negative numbers, minus zero, infinity, NaN.
10800         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10801         tests/nan.h.
10802         (Depends-on): Add isnand-nolibm.
10803
10804 2011-10-09  Bruno Haible  <bruno@clisp.org>
10805
10806         Tests for module 'copysignl'.
10807         * modules/copysignl-tests: New file.
10808         * tests/test-copysignl.c: New file.
10809
10810         New module 'copysignl'.
10811         * lib/math.in.h (copysignl): New declaration.
10812         * lib/copysignl.c: New file.
10813         * m4/copysignl.m4: New file.
10814         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10816         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10817         HAVE_COPYSIGNL.
10818         * modules/copysignl: New file.
10819         * tests/test-math-c++.cc: Check the declaration of copysignl.
10820         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10821         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10822         * doc/posix-functions/copysignl.texi: Mention the new module.
10823
10824 2011-10-09  Bruno Haible  <bruno@clisp.org>
10825
10826         Tests for module 'copysignf'.
10827         * modules/copysignf-tests: New file.
10828         * tests/test-copysignf.c: New file.
10829
10830         New module 'copysignf'.
10831         * lib/math.in.h (copysignf): New declaration.
10832         * lib/copysignf.c: New file.
10833         * m4/copysignf.m4: New file.
10834         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10836         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10837         HAVE_COPYSIGNF.
10838         * modules/copysignf: New file.
10839         * tests/test-math-c++.cc: Check the declaration of copysignf.
10840         * doc/posix-functions/copysignf.texi: Mention the new module.
10841
10842 2011-10-09  Bruno Haible  <bruno@clisp.org>
10843
10844         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10846         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10847         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10849         gl_SIGNAL_H_DEFAULTS.
10850
10851 2011-10-09  Bruno Haible  <bruno@clisp.org>
10852
10853         poll: Make macro safer.
10854         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10855         ac_cv_header_poll_h is not set.
10856
10857 2011-10-09  Bruno Haible  <bruno@clisp.org>
10858
10859         copysign: Provide replacement.
10860         * lib/math.in.h (copysign): New declaration.
10861         * lib/copysign.c: New file.
10862         * m4/copysign.m4: New file.
10863         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10865         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10866         HAVE_COPYSIGN.
10867         * modules/copysign (Description): Clarify.
10868         (Files): Add lib/copysign.c, m4/copysign.m4.
10869         (Depends-on): Add math, signbit.
10870         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10871         gl_MATH_MODULE_INDICATOR.
10872         * tests/test-math-c++.cc: Check the declaration of copysign.
10873         * doc/posix-functions/copysign.texi: Mention the effects of the module
10874         on Minix and MSVC.
10875
10876 2011-10-09  Bruno Haible  <bruno@clisp.org>
10877
10878         isinf: Ensure macro on AIX 5.1.
10879         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10880         macro.
10881         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10882
10883 2011-10-09  Bruno Haible  <bruno@clisp.org>
10884
10885         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10886         * modules/snprintf-posix-tests (configure.ac): Require
10887         gl_LONG_DOUBLE_VS_DOUBLE.
10888         * modules/sprintf-posix-tests (configure.ac): Likewise.
10889         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10890         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10891         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10892         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10893         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10894         tests on platforms where 'long double' is the same as 'double'.
10895         * tests/test-sprintf-posix.h (test_function): Likewise.
10896         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10897         * tests/test-vasprintf-posix.c (test_function): Likewise.
10898
10899         *printf: Fix for platforms where 'long double' == 'double'.
10900         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10901         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10902         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10903         * modules/fprintf-posix (Files): Likewise.
10904         * modules/obstack-printf-posix (Files): Likewise.
10905         * modules/snprintf-posix (Files): Likewise.
10906         * modules/sprintf-posix (Files): Likewise.
10907         * modules/vasnprintf (Files): Likewise.
10908         * modules/vasnprintf-posix (Files): Likewise.
10909         * modules/vasprintf-posix (Files): Likewise.
10910         * modules/vdprintf-posix (Files): Likewise.
10911         * modules/vfprintf-posix (Files): Likewise.
10912         * modules/vsnprintf-posix (Files): Likewise.
10913         * modules/vsprintf-posix (Files): Likewise.
10914         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10915         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10916         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10917         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10918         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10919         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10920         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10921
10922         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10923         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10924         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10925         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10926         'long double'.
10927         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10928
10929         isinf: Fix for platforms where 'long double' == 'double'.
10930         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10931         Don't blindly assume 80-bit 'long double'.
10932
10933         isfinite: Fix for platforms where 'long double' == 'double'.
10934         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10935         Don't blindly assume 80-bit 'long double'.
10936
10937         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10938         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10939         * modules/isfinite-tests (configure.ac): Require
10940         gl_LONG_DOUBLE_VS_DOUBLE.
10941         * modules/isinf-tests (configure.ac): Likewise.
10942         * modules/isnan-tests (configure.ac): Likewise.
10943         * modules/isnanl-tests (configure.ac): Likewise.
10944         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10945         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10946         tests on platforms where 'long double' is the same as 'double'.
10947         * tests/test-isinf.c (test_isinfl): Likewise.
10948         * tests/test-isnan.c (test_long_double): Likewise.
10949         * tests/test-isnanl.h (main): Likewise.
10950
10951 2011-10-08  Bruno Haible  <bruno@clisp.org>
10952
10953         Tests for module 'tanhf'.
10954         * modules/tanhf-tests: New file.
10955         * tests/test-tanhf.c: New file.
10956
10957         New module 'tanhf'.
10958         * lib/math.in.h (tanhf): New declaration.
10959         * lib/tanhf.c: New file.
10960         * m4/tanhf.m4: New file.
10961         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10963         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10964         * modules/tanhf: New file.
10965         * tests/test-math-c++.cc: Check the declaration of tanhf.
10966         * doc/posix-functions/tanhf.texi: Mention the new module.
10967
10968         tanh: Use a .m4 file.
10969         * m4/tanh.m4: New file.
10970         * modules/tanh (Files): Add it.
10971         (configure.ac): Just invoke gl_FUNC_TANH.
10972
10973 2011-10-08  Bruno Haible  <bruno@clisp.org>
10974
10975         Tests for module 'coshf'.
10976         * modules/coshf-tests: New file.
10977         * tests/test-coshf.c: New file.
10978
10979         New module 'coshf'.
10980         * lib/math.in.h (coshf): New declaration.
10981         * lib/coshf.c: New file.
10982         * m4/coshf.m4: New file.
10983         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10985         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10986         * modules/coshf: New file.
10987         * tests/test-math-c++.cc: Check the declaration of coshf.
10988         * doc/posix-functions/coshf.texi: Mention the new module.
10989
10990         cosh: Use a .m4 file.
10991         * m4/cosh.m4: New file.
10992         * modules/cosh (Files): Add it.
10993         (configure.ac): Just invoke gl_FUNC_COSH.
10994
10995 2011-10-08  Bruno Haible  <bruno@clisp.org>
10996
10997         Tests for module 'sinhf'.
10998         * modules/sinhf-tests: New file.
10999         * tests/test-sinhf.c: New file.
11000
11001         New module 'sinhf'.
11002         * lib/math.in.h (sinhf): New declaration.
11003         * lib/sinhf.c: New file.
11004         * m4/sinhf.m4: New file.
11005         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11007         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11008         * modules/sinhf: New file.
11009         * tests/test-math-c++.cc: Check the declaration of sinhf.
11010         * doc/posix-functions/sinhf.texi: Mention the new module.
11011
11012         sinh: Use a .m4 file.
11013         * m4/sinh.m4: New file.
11014         * modules/sinh (Files): Add it.
11015         (configure.ac): Just invoke gl_FUNC_SINH.
11016
11017 2011-10-08  Bruno Haible  <bruno@clisp.org>
11018
11019         Tests for module 'atan2f'.
11020         * modules/atan2f-tests: New file.
11021         * tests/test-atan2f.c: New file.
11022
11023         New module 'atan2f'.
11024         * lib/math.in.h (atan2f): New declaration.
11025         * lib/atan2f.c: New file.
11026         * m4/atan2f.m4: New file.
11027         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11029         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11030         * modules/atan2f: New file.
11031         * tests/test-math-c++.cc: Check the declaration of atan2f.
11032         * doc/posix-functions/atan2f.texi: Mention the new module.
11033
11034         atan2: Use a .m4 file.
11035         * m4/atan2.m4: New file.
11036         * modules/atan2 (Files): Add it.
11037         (configure.ac): Just invoke gl_FUNC_ATAN2.
11038
11039 2011-10-08  Bruno Haible  <bruno@clisp.org>
11040
11041         Tests for module 'atanf'.
11042         * modules/atanf-tests: New file.
11043         * tests/test-atanf.c: New file.
11044
11045         New module 'atanf'.
11046         * lib/math.in.h (atanf): New declaration.
11047         * lib/atanf.c: New file.
11048         * m4/atanf.m4: New file.
11049         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11051         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11052         * modules/atanf: New file.
11053         * tests/test-math-c++.cc: Check the declaration of atanf.
11054         * doc/posix-functions/atanf.texi: Mention the new module.
11055
11056         atan: Use a .m4 file.
11057         * m4/atan.m4: New file.
11058         * modules/atan (Files): Add it.
11059         (configure.ac): Just invoke gl_FUNC_ATAN.
11060
11061 2011-10-08  Bruno Haible  <bruno@clisp.org>
11062
11063         Tests for module 'acosf'.
11064         * modules/acosf-tests: New file.
11065         * tests/test-acosf.c: New file.
11066
11067         New module 'acosf'.
11068         * lib/math.in.h (acosf): New declaration.
11069         * lib/acosf.c: New file.
11070         * m4/acosf.m4: New file.
11071         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11073         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11074         * modules/acosf: New file.
11075         * tests/test-math-c++.cc: Check the declaration of acosf.
11076         * doc/posix-functions/acosf.texi: Mention the new module.
11077
11078         acos: Use a .m4 file.
11079         * m4/acos.m4: New file.
11080         * modules/acos (Files): Add it.
11081         (configure.ac): Just invoke gl_FUNC_ACOS.
11082
11083 2011-10-08  Bruno Haible  <bruno@clisp.org>
11084
11085         Tests for module 'asinf'.
11086         * modules/asinf-tests: New file.
11087         * tests/test-asinf.c: New file.
11088
11089         New module 'asinf'.
11090         * lib/math.in.h (asinf): New declaration.
11091         * lib/asinf.c: New file.
11092         * m4/asinf.m4: New file.
11093         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11095         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11096         * modules/asinf: New file.
11097         * tests/test-math-c++.cc: Check the declaration of asinf.
11098         * doc/posix-functions/asinf.texi: Mention the new module.
11099
11100         asin: Use a .m4 file.
11101         * m4/asin.m4: New file.
11102         * modules/asin (Files): Add it.
11103         (configure.ac): Just invoke gl_FUNC_ASIN.
11104
11105 2011-10-08  Bruno Haible  <bruno@clisp.org>
11106
11107         Tests for module 'tanf'.
11108         * modules/tanf-tests: New file.
11109         * tests/test-tanf.c: New file.
11110
11111         New module 'tanf'.
11112         * lib/math.in.h (tanf): New declaration.
11113         * lib/tanf.c: New file.
11114         * m4/tanf.m4: New file.
11115         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11117         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11118         * modules/tanf: New file.
11119         * tests/test-math-c++.cc: Check the declaration of tanf.
11120         * doc/posix-functions/tanf.texi: Mention the new module.
11121
11122         tan: Use a .m4 file.
11123         * m4/tan.m4: New file.
11124         * modules/tan (Files): Add it.
11125         (configure.ac): Just invoke gl_FUNC_TAN.
11126
11127 2011-10-08  Bruno Haible  <bruno@clisp.org>
11128
11129         Tests for module 'cosf'.
11130         * modules/cosf-tests: New file.
11131         * tests/test-cosf.c: New file.
11132
11133         New module 'cosf'.
11134         * lib/math.in.h (cosf): New declaration.
11135         * lib/cosf.c: New file.
11136         * m4/cosf.m4: New file.
11137         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11139         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11140         * modules/cosf: New file.
11141         * tests/test-math-c++.cc: Check the declaration of cosf.
11142         * doc/posix-functions/cosf.texi: Mention the new module.
11143
11144         cos: Use a .m4 file.
11145         * m4/cos.m4: New file.
11146         * modules/cos (Files): Add it.
11147         (configure.ac): Just invoke gl_FUNC_COS.
11148
11149 2011-10-08  Bruno Haible  <bruno@clisp.org>
11150
11151         Tests for module 'sinf'.
11152         * modules/sinf-tests: New file.
11153         * tests/test-sinf.c: New file.
11154
11155         New module 'sinf'.
11156         * lib/math.in.h (sinf): New declaration.
11157         * lib/sinf.c: New file.
11158         * m4/sinf.m4: New file.
11159         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11161         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11162         * modules/sinf: New file.
11163         * tests/test-math-c++.cc: Check the declaration of sinf.
11164         * doc/posix-functions/sinf.texi: Mention the new module.
11165
11166         sin: Use a .m4 file.
11167         * m4/sin.m4: New file.
11168         * modules/sin (Files): Add it.
11169         (configure.ac): Just invoke gl_FUNC_SIN.
11170
11171 2011-10-08  Bruno Haible  <bruno@clisp.org>
11172
11173         Tests for module 'powf'.
11174         * modules/powf-tests: New file.
11175         * tests/test-powf.c: New file.
11176
11177         New module 'powf'.
11178         * lib/math.in.h (powf): New declaration.
11179         * lib/powf.c: New file.
11180         * m4/powf.m4: New file.
11181         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11182         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11183         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11184         * modules/powf: New file.
11185         * tests/test-math-c++.cc: Check the declaration of powf.
11186         * doc/posix-functions/powf.texi: Mention the new module.
11187
11188         pow: Use a .m4 file.
11189         * m4/pow.m4: New file.
11190         * modules/pow (Files): Add it.
11191         (configure.ac): Just invoke gl_FUNC_POW.
11192
11193 2011-10-08  Bruno Haible  <bruno@clisp.org>
11194
11195         Tests for module 'log10f'.
11196         * modules/log10f-tests: New file.
11197         * tests/test-log10f.c: New file.
11198
11199         New module 'log10f'.
11200         * lib/math.in.h (log10f): New declaration.
11201         * lib/log10f.c: New file.
11202         * m4/log10f.m4: New file.
11203         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11205         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11206         * modules/log10f: New file.
11207         * tests/test-math-c++.cc: Check the declaration of log10f.
11208         * doc/posix-functions/log10f.texi: Mention the new module.
11209
11210         log10: Use a .m4 file.
11211         * m4/log10.m4: New file.
11212         * modules/log10 (Files): Add it.
11213         (configure.ac): Just invoke gl_FUNC_LOG10.
11214
11215 2011-10-08  Bruno Haible  <bruno@clisp.org>
11216
11217         Tests for module 'logf'.
11218         * modules/logf-tests: New file.
11219         * tests/test-logf.c: New file.
11220
11221         New module 'logf'.
11222         * lib/math.in.h (logf): New declaration.
11223         * lib/logf.c: New file.
11224         * m4/logf.m4: New file.
11225         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11227         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11228         * modules/logf: New file.
11229         * tests/test-math-c++.cc: Check the declaration of logf.
11230         * doc/posix-functions/logf.texi: Mention the new module.
11231
11232         log: Use a .m4 file.
11233         * m4/log.m4: New file.
11234         * modules/log (Files): Add it.
11235         (configure.ac): Just invoke gl_FUNC_LOG.
11236
11237 2011-10-08  Bruno Haible  <bruno@clisp.org>
11238
11239         Tests for module 'expf'.
11240         * modules/expf-tests: New file.
11241         * tests/test-expf.c: New file.
11242
11243         New module 'expf'.
11244         * lib/math.in.h (expf): New declaration.
11245         * lib/expf.c: New file.
11246         * m4/expf.m4: New file.
11247         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11249         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11250         * modules/expf: New file.
11251         * tests/test-math-c++.cc: Check the declaration of expf.
11252         * doc/posix-functions/expf.texi: Mention the new module.
11253
11254         exp: Use a .m4 file.
11255         * m4/exp.m4: New file.
11256         * modules/exp (Files): Add it.
11257         (configure.ac): Just invoke gl_FUNC_EXP.
11258
11259 2011-10-08  Bruno Haible  <bruno@clisp.org>
11260
11261         Tests for module 'sqrtf'.
11262         * modules/sqrtf-tests: New file.
11263         * tests/test-sqrtf.c: New file.
11264
11265         New module 'sqrtf'.
11266         * lib/math.in.h (sqrtf): New declaration.
11267         * lib/sqrtf.c: New file.
11268         * m4/sqrtf.m4: New file.
11269         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11271         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11272         * modules/sqrtf: New file.
11273         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11274         * doc/posix-functions/sqrtf.texi: Mention the new module.
11275
11276 2011-10-08  Bruno Haible  <bruno@clisp.org>
11277
11278         Tests: Avoid link failures w.r.t. libintl.
11279         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11280         $(LIBINTL).
11281         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11282         $(LIBINTL).
11283         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11284         against $(LIBINTL).
11285         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11286         $(LIBINTL).
11287         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11288         $(LIBINTL).
11289         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11290
11291 2011-10-08  Bruno Haible  <bruno@clisp.org>
11292
11293         pow tests: Defeat compiler optimizations.
11294         * tests/test-pow.c (main): Assign arguments to x and y before use.
11295
11296 2011-10-08  Bruno Haible  <bruno@clisp.org>
11297
11298         gnulib-tool: Improve last commit.
11299         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11300         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11301         ignore dependencies that are not among the modules list.
11302
11303 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11304
11305         gnulib-tool: don't follow dependencies to avoided modules
11306         This fixes a bug that is related to the previous one.
11307         * gnulib-tool (func_modules_transitive_closure)
11308         (func_emit_autoconf_snippets):
11309         Check whether a dependency is acceptable before using it.
11310         (--extract-dependencies): Report an error if --avoid is also used,
11311         since this combination of options is not yet supported.
11312
11313         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11314         Problem reported by Peter Dyballa in
11315         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11316         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11317         when echoing "$condition".
11318
11319 2011-10-07  Bruno Haible  <bruno@clisp.org>
11320
11321         Fix documentation about math functions on MacOS X.
11322         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11323         MacOS X 10.5.
11324         * doc/posix-functions/fdim.texi: Likewise.
11325         * doc/posix-functions/feclearexcept.texi: Likewise.
11326         * doc/posix-functions/fegetenv.texi: Likewise.
11327         * doc/posix-functions/fegetround.texi: Likewise.
11328         * doc/posix-functions/feholdexcept.texi: Likewise.
11329         * doc/posix-functions/feraiseexcept.texi: Likewise.
11330         * doc/posix-functions/fesetenv.texi: Likewise.
11331         * doc/posix-functions/fesetround.texi: Likewise.
11332         * doc/posix-functions/fetestexcept.texi: Likewise.
11333         * doc/posix-functions/feupdateenv.texi: Likewise.
11334         * doc/posix-functions/fmax.texi: Likewise.
11335         * doc/posix-functions/fmin.texi: Likewise.
11336         * doc/posix-functions/log2.texi: Likewise.
11337         * doc/posix-functions/modff.texi: Likewise.
11338         * doc/posix-functions/nan.texi: Likewise.
11339         * doc/posix-functions/nanf.texi: Likewise.
11340         * doc/posix-functions/nextafterf.texi: Likewise.
11341         * doc/posix-functions/remquo.texi: Likewise.
11342
11343 2011-10-07  Bruno Haible  <bruno@clisp.org>
11344
11345         modff: Drop assumption about library that defines modff.
11346         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11347         AC_CHECK_FUNCS.
11348         * modules/modff (Files): Add m4/mathfunc.m4.
11349
11350 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11351
11352         raise tests: Avoid a GCC warning.
11353         * tests/test-raise.c (handler): Use _Noreturn.
11354
11355 2011-10-07  Bruno Haible  <bruno@clisp.org>
11356
11357         Tests for module 'ldexpf'.
11358         * modules/ldexpf-tests: New file.
11359         * tests/test-ldexpf.c: New file.
11360
11361         New module 'ldexpf'.
11362         * lib/math.in.h (ldexpf): New declaration.
11363         * lib/ldexpf.c: New file.
11364         * m4/ldexpf.m4: New file.
11365         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11367         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11368         * modules/ldexpf: New file.
11369         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11370         * doc/posix-functions/ldexpf.texi: Mention the new module.
11371
11372 2011-10-06  Bruno Haible  <bruno@clisp.org>
11373
11374         frexpf: Work around problems on IRIX and mingw.
11375         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11377         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11378         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11379         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11380         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11381         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11382
11383 2011-10-06  Bruno Haible  <bruno@clisp.org>
11384
11385         fabsf: Drop assumption about library that defines fabsf.
11386         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11387         AC_CHECK_FUNCS.
11388         * modules/fabsf (Files): Add m4/mathfunc.m4.
11389
11390 2011-10-06  Bruno Haible  <bruno@clisp.org>
11391
11392         frexpf: Drop assumption about library that defines frexpf.
11393         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11394         'int *', 'float *', 'long double *', 'float', 'long double'.
11395         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11396         AC_CHECK_FUNCS.
11397         * modules/frexpf (Files): Add m4/mathfunc.m4.
11398
11399         Tests for module 'frexpf'.
11400         * modules/frexpf-tests: New file.
11401         * tests/test-frexpf.c: New file.
11402
11403         New module 'frexpf'.
11404         * lib/math.in.h (frexpf): New declaration.
11405         * lib/frexpf.c: New file.
11406         * m4/frexpf.m4: New file.
11407         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11409         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11410         * modules/frexpf: New file.
11411         * tests/test-math-c++.cc: Check the declaration of frexpf.
11412         * doc/posix-functions/frexpf.texi: Mention the new module.
11413
11414 2011-10-06  Bruno Haible  <bruno@clisp.org>
11415
11416         math: Sort function declarations of math.in.h.
11417         * lib/math.in.h (frexp, logb): Move declarations.
11418
11419 2011-10-05  Bruno Haible  <bruno@clisp.org>
11420
11421         Tests for module 'modff'.
11422         * modules/modff-tests: New file.
11423         * tests/test-modff.c: New file.
11424
11425         New module 'modff'.
11426         * lib/math.in.h (modff): New declaration.
11427         * lib/modff.c: New file.
11428         * m4/modff.m4: New file.
11429         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11431         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11432         * modules/modff: New file.
11433         * tests/test-math-c++.cc: Check the declaration of modff.
11434         * doc/posix-functions/modff.texi: Mention the new module.
11435
11436         modf tests: Make test sharper.
11437         * tests/test-modf.c (main): Strengthen upper bound.
11438
11439         modf: Use a .m4 file.
11440         * m4/modf.m4: New file.
11441         * modules/modf (Files): Add it.
11442         (configure.ac): Just invoke gl_FUNC_MODF.
11443
11444 2011-10-05  Bruno Haible  <bruno@clisp.org>
11445
11446         Tests for module 'fmodf'.
11447         * modules/fmodf-tests: New file.
11448         * tests/test-fmodf.c: New file.
11449
11450         New module 'fmodf'.
11451         * lib/math.in.h (fmodf): New declaration.
11452         * lib/fmodf.c: New file.
11453         * m4/fmodf.m4: New file.
11454         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11456         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11457         * modules/fmodf: New file.
11458         * tests/test-math-c++.cc: Check the declaration of fmodf.
11459         * doc/posix-functions/fmodf.texi: Mention the new module.
11460
11461         fmod: Use a .m4 file.
11462         * m4/fmod.m4: New file.
11463         * modules/fmod (Files): Add it.
11464         (configure.ac): Just invoke gl_FUNC_FMOD.
11465
11466 2011-10-05  Bruno Haible  <bruno@clisp.org>
11467
11468         Tests for module 'fabsf'.
11469         * modules/fabsf-tests: New file.
11470         * tests/test-fabsf.c: New file.
11471
11472         New module 'fabsf'.
11473         * lib/math.in.h (fabsf): New declaration.
11474         * lib/fabsf.c: New file.
11475         * m4/fabsf.m4: New file.
11476         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11478         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11479         * modules/fabsf: New file.
11480         * tests/test-math-c++.cc: Check the declaration of fabsf.
11481         * doc/posix-functions/fabsf.texi: Mention the new module.
11482
11483         fabs: Use a .m4 file.
11484         * m4/fabs.m4: New file.
11485         * modules/fabs (Files): Add it.
11486         (configure.ac): Just invoke gl_FUNC_FABS.
11487
11488 2011-10-05  Jim Meyering  <meyering@redhat.com>
11489
11490         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11491         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11492         ls -lL regression introduced in coreutils-8.12, it does so at the
11493         cost of an additional stat call in the common case.  Besides, now
11494         that the kernel change that prompted commit 95f7c57f has been reverted
11495         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11496         we have no use for commit 95f7c57f, "file-has-acl: use
11497         acl_extended_file_nofollow if available".
11498
11499 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11500
11501         file-has-acl: revert unintended change in behavior of ls -L
11502         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11503         derived from...
11504         (file_has_acl): ...code here.  Call it.
11505         This problem was introduced with 2011-07-22 commit 95f7c57f,
11506         "file-has-acl: use acl_extended_file_nofollow if available".
11507         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11508
11509 2011-10-03  Bruno Haible  <bruno@clisp.org>
11510
11511         poll: Avoid link errors on MSVC.
11512         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11513         * modules/poll (Depends-on): Add sockets.
11514         (Link): New section.
11515         * NEWS: Mention the change.
11516         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11517         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11518         $(LIB_POLL) instead of $(LIBSOCKET).
11519
11520 2011-10-03  Bruno Haible  <bruno@clisp.org>
11521
11522         sys_select tests: Fix link error on MSVC 9.
11523         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11524         with $(LIB_SELECT) instead of $(LIBSOCKET).
11525
11526 2011-10-03  Bruno Haible  <bruno@clisp.org>
11527
11528         sys_select: Fix compilation error on mingw.
11529         * lib/sys_select.in.h: On native Windows, include <io.h>.
11530
11531 2011-10-03  Bruno Haible  <bruno@clisp.org>
11532
11533         wmemset: Support for MSVC.
11534         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11535         whether wmemset() exists.
11536
11537 2011-10-03  Bruno Haible  <bruno@clisp.org>
11538
11539         wmemmove: Support for MSVC.
11540         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11541         whether wmemmove() exists.
11542
11543 2011-10-03  Bruno Haible  <bruno@clisp.org>
11544
11545         wmemcpy: Support for MSVC.
11546         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11547         whether wmemcpy() exists.
11548
11549 2011-10-03  Bruno Haible  <bruno@clisp.org>
11550
11551         wmemcmp: Support for MSVC.
11552         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11553         whether wmemcmp() exists.
11554
11555 2011-10-03  Bruno Haible  <bruno@clisp.org>
11556
11557         wmemchr: Support for MSVC.
11558         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11559         whether wmemchr() exists.
11560
11561 2011-10-03  Bruno Haible  <bruno@clisp.org>
11562
11563         glthread/*, strsignal: Support for MSVC.
11564         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11565         including <winsock.h> on MSVC 9.
11566         * lib/glthread/lock.h: Likewise.
11567         * lib/glthread/thread.h: Likewise.
11568         * lib/glthread/tls.h: Likewise.
11569         * lib/glthread/yield.h: Likewise.
11570         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11571         if HAVE_UNISTD_H is false.
11572         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11573
11574 2011-10-03  Bruno Haible  <bruno@clisp.org>
11575
11576         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11577         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11578         Set to 100000.
11579
11580 2011-10-03  Bruno Haible  <bruno@clisp.org>
11581
11582         acl: Fix specification.
11583         * lib/file-has-acl.c (file_has_acl): Fix specification.
11584
11585 2011-10-03  Bruno Haible  <bruno@clisp.org>
11586
11587         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11588         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11589         (compute_curr_prefix, shared_library_fullname,
11590         find_shared_library_fullname, get_shared_library_fullname, relocate):
11591         Use it together with PIC && INSTALLDIR.
11592         Reported by <jojelino@gmail.com>
11593         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11594
11595 2011-10-01  Jim Meyering  <meyering@redhat.com>
11596
11597         maint.mk: adjust a release-related rule not to require use of gzip
11598         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11599         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11600         projects that build only .tar.xz files.  Also fix an erroneous test.
11601
11602         test-linkat: don't leave behind a temporary file
11603         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11604         Otherwise, coreutils' "make distcheck" would fail with this:
11605           Only in /c/cu/tests/torture/coreutils/test/\
11606             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11607           make[2]: *** [my-distcheck] Error 1
11608
11609         float, math: add omitted file
11610         * lib/itold.c: Add file, required for yesterday's float change.
11611
11612 2011-10-01  Bruno Haible  <bruno@clisp.org>
11613
11614         isinf: Fix for OpenBSD/x86.
11615         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11616         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11617         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11618
11619 2011-10-01  Bruno Haible  <bruno@clisp.org>
11620
11621         isfinite: Fix syntax error in configure test.
11622         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11623
11624         isfinite: Fix typo.
11625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11626         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11627
11628 2011-10-01  Bruno Haible  <bruno@clisp.org>
11629
11630         nonblocking tests: Fix test failure on Linux/IA-64.
11631         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11632         Set to 270000.
11633
11634 2011-10-01  Bruno Haible  <bruno@clisp.org>
11635
11636         mkfifoat tests: Fix a test failure on mingw.
11637         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11638         with error ENOSYS.
11639
11640 2011-09-30  Bruno Haible  <bruno@clisp.org>
11641
11642         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11643         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11644         'long double'. Set REPLACE_ITOLD.
11645         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11646         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11647         * lib/itold.c: New file.
11648         * modules/float (Files): Add lib/itold.c.
11649         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11650         (Makefile.am): Substitute REPLACE_ITOLD.
11651         * modules/math (Depends-on): Add float.
11652         (Makefile.am): Substitute REPLACE_ITOLD.
11653         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11654         * doc/posix-headers/math.texi: Likewise.
11655         * doc/posix-functions/logl.texi: Likewise.
11656
11657 2011-09-30  Bruno Haible  <bruno@clisp.org>
11658
11659         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11660         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11661         Set to 140000.
11662
11663 2011-09-30  Bruno Haible  <bruno@clisp.org>
11664
11665         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11666         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11667         invocation, say "right after AC_PROG_CC_STDC", not "right after
11668         AC_PROG_CC".
11669         Reported by Gary V. Vaughan <gary@gnu.org>.
11670
11671 2011-09-30  Bruno Haible  <bruno@clisp.org>
11672
11673         Centralize C99 requirement.
11674         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11675         * modules/stdarg (configure.ac-early): Invoke it instead of
11676         AC_PROG_CC_STDC.
11677         Reported by Gary V. Vaughan and Paul Eggert.
11678
11679 2011-09-29  Bruno Haible  <bruno@clisp.org>
11680
11681         float: Fix LDBL_MAX value on Linux/PowerPC.
11682         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11683         on Linux/PowerPC.
11684         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11685         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11686         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11687         platform.
11688         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11689
11690 2011-09-29  Bruno Haible  <bruno@clisp.org>
11691
11692         doc: Improve doc about gl_EARLY.
11693         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11694         AC_PROG_CC_STDC invocation.
11695         Reported by Gary V. Vaughan <gary@gnu.org>.
11696
11697 2011-09-28  Bruno Haible  <bruno@clisp.org>
11698
11699         fgetc, fputc, fread, fwrite tests: Fix link error.
11700         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11701         on non-MSVC platforms.
11702         * tests/test-fputc.c (main): Likewise.
11703         * tests/test-fread.c (main): Likewise.
11704         * tests/test-fwrite.c (main): Likewise.
11705         Reported by Jim Meyering.
11706
11707 2011-09-27  Bruno Haible  <bruno@clisp.org>
11708
11709         fputc, fwrite tests: Avoid test failure on MSVC.
11710         * tests/test-fgetc.c: Include msvc-inval.h.
11711         (main): Invoke gl_msvc_inval_ensure_handler.
11712         * tests/test-fputc.c: Include msvc-inval.h.
11713         (main): Invoke gl_msvc_inval_ensure_handler.
11714         * tests/test-fread.c: Include msvc-inval.h.
11715         (main): Invoke gl_msvc_inval_ensure_handler.
11716         * tests/test-fwrite.c: Include msvc-inval.h.
11717         (main): Invoke gl_msvc_inval_ensure_handler.
11718         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11719         * modules/fputc-tests (Depends-on): Likewise.
11720         * modules/fread-tests (Depends-on): Likewise.
11721         * modules/fwrite-tests (Depends-on): Likewise.
11722
11723 2011-09-27  Bruno Haible  <bruno@clisp.org>
11724
11725         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11726         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11727         (raise): Remove older, duplicated declaration.
11728         (_gl_raise_SIGPIPE): New declaration.
11729         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11730         (rpl_raise): Remove function.
11731         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11732         a gnulib-defined SIGPIPE here.
11733         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11734         'sigprocmask' has detected missing signal-blocking and the module
11735         'sigpipe' is enabled.
11736         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11737
11738 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11739
11740         base64-tests: avoid memory leak
11741         * tests/test-base64.c (main): Plug memory leak.
11742
11743         base32: new module
11744         * modules/base32: New module.
11745         * lib/base32.c: New file.
11746         * lib/base32.h: Likewise.
11747         * m4/base32.m4: Likewise.
11748         * modules/base32-tests: New test.
11749         * tests/test-base32.c: Likewise.
11750         * MODULES.html.sh (Misc): Mention it.
11751
11752 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11753
11754         gnulib: use more-standard license notice wording
11755         * gnulib-tool (func_emit_copyright_notice): When emitting a
11756         license notice into a file, use the standard wording as suggested
11757         by the current information for GNU maintainers, except say "file"
11758         rather than "program".  The new wording gives a license version
11759         number, which addresses an issue raised by Glenn Morris in
11760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11761         * m4/onceonly.m4: Use that same wording here, too.
11762
11763         dup2: minor simplification
11764         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11765         as lib/dup2.c no longer uses 'inline'.
11766
11767 2011-09-25  Bruno Haible  <bruno@clisp.org>
11768
11769         strings: Fix compilation error on MSVC.
11770         * lib/strings.in.h: Include <stddef.h> for size_t.
11771
11772 2011-09-25  Bruno Haible  <bruno@clisp.org>
11773
11774         fflush et al.: Document limitation on MSVC.
11775         * doc/posix-functions/fflush.texi: Document possible crash in handling
11776         mode other than DEFAULT_HANDLING.
11777         * doc/posix-functions/fgetc.texi: Likewise.
11778         * doc/posix-functions/fputc.texi: Likewise.
11779         * doc/posix-functions/fread.texi: Likewise.
11780         * doc/posix-functions/fwrite.texi: Likewise.
11781
11782 2011-09-25  Bruno Haible  <bruno@clisp.org>
11783
11784         msvc-inval: Allow three invalid parameter handling modes.
11785         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11786         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11787         macros.
11788         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11789         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11790         SANE_LIBRARY_HANDLING as a no-op.
11791         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11792         <stdlib.h>.
11793         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11794
11795 2011-09-25  Bruno Haible  <bruno@clisp.org>
11796
11797         msvc-inval: Make handler multithread-safe.
11798         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11799         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11800         declarations.
11801         (gl_msvc_inval_current): New declaration.
11802         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11803         Operate on the structure returned by gl_msvc_inval_current().
11804         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11805         Remove varaiables.
11806         (tls_index, tls_initialized): New variables.
11807         (not_per_thread): New variable.
11808         (gl_msvc_inval_current): New function.
11809         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11810         returned by gl_msvc_inval_current().
11811
11812 2011-09-25  Bruno Haible  <bruno@clisp.org>
11813
11814         msvc-inval: Install handler globally.
11815         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11816         !_MSC_VER.
11817         (gl_msvc_invalid_parameter_handler): Remove declaration.
11818         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11819         declarations.
11820         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11821         Install the handler globally, don't uninstall it.
11822         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11823         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11824         currently valid, call RaiseException instead.
11825         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11826         for !_MSC_VER.
11827
11828 2011-09-25  Bruno Haible  <bruno@clisp.org>
11829
11830         strerror_r-posix: Fix for MSVC 9.
11831         * lib/strerror_r.c (local_snprintf): New function.
11832         (snprintf): Define to local_snprintf, not to _snprintf.
11833
11834 2011-09-25  Bruno Haible  <bruno@clisp.org>
11835
11836         ftruncate: Support for MSVC 9.
11837         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11838         (chsize_nothrow): New function.
11839         (chsize): Redefine as a macro.
11840         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11841         * modules/ftruncate (Depends-on): Add msvc-inval.
11842
11843 2011-09-25  Bruno Haible  <bruno@clisp.org>
11844
11845         New module 'fstat'.
11846         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11847         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11848         * lib/fchdir.c (rpl_fstat): Remove function.
11849         * m4/fstat.m4: New file.
11850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11852         declared.
11853         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11854         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11855         * modules/fstat: New file.
11856         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11857         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11858         is set.
11859         * doc/posix-functions/fstat.texi: Mention the new module and the
11860         problem on MSVC.
11861         * NEWS: Mention the change.
11862         * modules/acl (Depends-on): Add fstat.
11863         * modules/chdir-safer (Depends-on): Likewise.
11864         * modules/chown (Depends-on): Likewise.
11865         * modules/copy-file (Depends-on): Likewise.
11866         * modules/fchdir (Depends-on): Likewise.
11867         * modules/fdopendir (Depends-on): Likewise.
11868         * modules/fopen (Depends-on): Likewise.
11869         * modules/fts (Depends-on): Likewise.
11870         * modules/getcwd (Depends-on): Likewise.
11871         * modules/isapipe (Depends-on): Likewise.
11872         * modules/linkat (Depends-on): Likewise.
11873         * modules/lseek (Depends-on): Likewise.
11874         * modules/mkdir-p (Depends-on): Likewise.
11875         * modules/open (Depends-on): Likewise.
11876         * modules/openat (Depends-on): Likewise.
11877         * modules/read-file (Depends-on): Likewise.
11878         * modules/renameat (Depends-on): Likewise.
11879         * modules/utimens (Depends-on): Likewise.
11880
11881 2011-09-25  Bruno Haible  <bruno@clisp.org>
11882
11883         linkat: Fix compilation on MSVC 9.
11884         * lib/linkat.c: Don't include <stdint.h>.
11885
11886 2011-09-25  Bruno Haible  <bruno@clisp.org>
11887
11888         fclose: Support for MSVC 9.
11889         * lib/fclose.c: Include msvc-inval.h.
11890         (fclose_nothrow): New function.
11891         (rpl_fclose): Use it.
11892         * modules/fclose (Depends-on): Add msvc-inval.
11893         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11894
11895 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         dup2: minor simplifications
11898         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11899         that it's a performance win.
11900         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11901         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11902
11903 2011-09-24  Jim Meyering  <meyering@redhat.com>
11904
11905         test-futimens: avoid a warning from gcc -Wshadow
11906         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11907         to avoid a shadowing warning.
11908
11909 2011-09-24  Bruno Haible  <bruno@clisp.org>
11910
11911         fdopen: Support for MSVC 9.
11912         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11913         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11914         * lib/fdopen.c: Include msvc-inval.h.
11915         (fdopen_nothrow): New function.
11916         (rpl_fdopen): Use it.
11917         * modules/fdopen (Depends-on): Add msvc-inval.
11918         * modules/fclose-tests (Depends-on): Add fdopen.
11919         * modules/fflush-tests (Depends-on): Likewise.
11920         * modules/fgetc-tests (Depends-on): Likewise.
11921         * modules/fputc-tests (Depends-on): Likewise.
11922         * modules/fread-tests (Depends-on): Likewise.
11923         * modules/freopen-tests (Depends-on): Likewise.
11924         * modules/fseeko-tests (Depends-on): Likewise.
11925         * modules/ftello-tests (Depends-on): Likewise.
11926         * modules/fwrite-tests  (Depends-on): Likewise.
11927         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11928
11929 2011-09-24  Bruno Haible  <bruno@clisp.org>
11930
11931         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11932         * modules/fgetc-tests (Depends-on): Add unistd.
11933         * modules/fputc-tests (Depends-on): Likewise.
11934         * modules/fread-tests (Depends-on): Likewise.
11935         * modules/fwrite-tests (Depends-on): Likewise.
11936
11937 2011-09-24  Bruno Haible  <bruno@clisp.org>
11938
11939         dup: Simplify autoconf test.
11940         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11941         on gl_MSVC_INVAL's result.
11942
11943 2011-09-24  Bruno Haible  <bruno@clisp.org>
11944
11945         Tests for function fwrite().
11946         * modules/fwrite-tests: New file.
11947         * tests/test-fwrite.c: New file.
11948         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11949
11950         Tests for function fread().
11951         * modules/fread-tests: New file.
11952         * tests/test-fread.c: New file.
11953         * modules/stdio-tests (Depends-on): Add fread-tests.
11954
11955         Activate fputc tests.
11956         * modules/stdio-tests (Depends-on): Add fputc-tests.
11957
11958         Enhance fgetc, fputc tests.
11959         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11960         * tests/test-fputc.c (main): Likewise.
11961
11962 2011-09-24  Bruno Haible  <bruno@clisp.org>
11963
11964         write: Support for MSVC 9.
11965         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11966         is not 1.
11967         * lib/write.c (write_nothrow): New function.
11968         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11969         not 1. Use write_nothrow.
11970         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11971         invalid parameter handler.
11972         (gl_PREREQ_WRITE): New macro.
11973         * modules/write (Depends-on): Add msvc-inval.
11974         (configure.ac): Invoke gl_PREREQ_WRITE.
11975         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11976
11977 2011-09-24  Bruno Haible  <bruno@clisp.org>
11978
11979         read: Fix last commit.
11980         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11981
11982 2011-09-24  Bruno Haible  <bruno@clisp.org>
11983
11984         dup2: Fix last commit.
11985         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11986         (rpl_dup2): Disable fcntl workaround on native Windows.
11987
11988         sigprocmask: Make code safer.
11989         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11990         section that changes macro definitions for this compilation unit.
11991
11992 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11993
11994         dup2: clarify by coalescing Windows-specific material
11995         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11996         "msvc-nothrow.h"' to the Windows-specific section, so that the
11997         Emacs source need not contain these include files.
11998         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11999         Windows-specific fixes into this function rather than just the
12000         nothrow fix, as this shortens and clarifies the code.  Always
12001         define as a function, as that's a bit cleaner than having it be
12002         sometimes a function and sometimes a macro.
12003         (rpl_dup2): Move the Windows-specific stuff out of here and into
12004         ms_windows_dup2.  Don't protect the Haiku-related fix with
12005         "#if !defined __linux__", as the same code also works around
12006         a Linux kernel bug, and it doesn't add any system calls on any
12007         platform.  Add comment about FreeBSD 6.1.
12008
12009         sigprocmask: move #include directive
12010         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12011         Windows-specific section, so that the Emacs source need not
12012         contain msvc-inval.h.
12013
12014 2011-09-23  Bruno Haible  <bruno@clisp.org>
12015
12016         read: Support for MSVC 9.
12017         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12018         is not 1.
12019         * lib/read.c (read_nothrow): New function.
12020         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12021         read_nothrow.
12022         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12023         invalid parameter handler.
12024         (gl_PREREQ_READ): New macro.
12025         * modules/read (Depends-on): Add msvc-inval.
12026         (configure.ac): Invoke gl_PREREQ_READ.
12027         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12028
12029 2011-09-23  Bruno Haible  <bruno@clisp.org>
12030
12031         close: Support for MSVC 9.
12032         * lib/close.c: Include <errno.h>, msvc-inval.h.
12033         (close_nothrow): New function.
12034         (rpl_close): Use it.
12035         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12036         invalid parameter handler.
12037         * modules/close (Depends-on): Add msvc-inval.
12038         * modules/dup2-tests (Depends-on): Add close.
12039         * modules/dup3-tests (Depends-on): Likewise.
12040         * modules/fcntl-tests (Depends-on): Likewise.
12041         * modules/spawn-pipe-tests (Depends-on): Likewise.
12042         * modules/unistd-safer-tests (Depends-on): Likewise.
12043         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12044
12045 2011-09-23  Bruno Haible  <bruno@clisp.org>
12046
12047         New module 'dup'.
12048         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12049         Allow replacement.
12050         * lib/dup.c: New file.
12051         * lib/fchdir.c (rpl_dup): Remove function.
12052         * m4/dup.m4: New file.
12053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12054         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12056         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12057         * modules/dup: New file.
12058         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12059         'dup' module is in use.
12060         * modules/fdopendir (Depends-on): Add dup.
12061         * modules/fdutimensat-tests (Depends-on): Likewise.
12062         * modules/fts (Depends-on): Likewise.
12063         * modules/futimens-tests (Depends-on): Likewise.
12064         * modules/posix_spawnp-tests (Depends-on): Likewise.
12065         * modules/unistd-safer-tests (Depends-on): Likewise.
12066         * modules/utimens-tests (Depends-on): Likewise.
12067         * doc/posix-functions/dup.texi: Mention the new module and the problem
12068         on MSVC.
12069
12070 2011-09-23  Bruno Haible  <bruno@clisp.org>
12071
12072         getdtablesize: Support for MSVC 9.
12073         * lib/getdtablesize.c: Include msvc-inval.h.
12074         (_setmaxstdio_nothrow): New function.
12075         (_setmaxstdio): Redefine it.
12076         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12077         * modules/getdtablesize (Depends-on): Add msvc-inval.
12078         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12079
12080 2011-09-23  Bruno Haible  <bruno@clisp.org>
12081
12082         signal-h: Rename from signal.
12083         * modules/signal-h: Renamed from modules/signal.
12084         * modules/pthread_sigmask (Depends-on): Update.
12085         * modules/raise (Depends-on): Likewise.
12086         * modules/sigaction (Depends-on): Likewise.
12087         * modules/sigpipe (Depends-on): Likewise.
12088         * modules/sigprocmask (Depends-on): Likewise.
12089         * modules/sys_select (Depends-on): Likewise.
12090         * modules/signal-h-tests: Renamed from modules/signal-tests.
12091         (Files, Depends-on, Makefile.am): Update.
12092         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12093         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12094         (Files, Makefile.am): Update.
12095         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12096         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12097         * modules/signal: New placeholder file.
12098         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12099         * doc/posix-headers/signal.texi: Update.
12100         * NEWS: Mention the change.
12101
12102 2011-09-23  Bruno Haible  <bruno@clisp.org>
12103
12104         sigprocmask: Avoid crashes through signal() on MSVC 9.
12105         * lib/sigprocmask.c: Include msvc-inval.h.
12106         (signal_nothrow): New function.
12107         (signal): Redefine it.
12108         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12109         * modules/sigprocmask (Depends-on): Add msvc-inval.
12110         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12111
12112 2011-09-23  Bruno Haible  <bruno@clisp.org>
12113
12114         Tests for module 'raise'.
12115         * modules/raise-tests: New file.
12116         * tests/test-raise.c: New file.
12117
12118         raise: Support for MSVC.
12119         * lib/signal.in.h (raise): New declaration.
12120         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12121         for native Windows platforms.
12122         * m4/raise.m4: New file.
12123         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12124         HAVE_RAISE, REPLACE_RAISE.
12125         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12126         REPLACE_RAISE.
12127         * modules/raise (Status, Notice): Remove fields.
12128         (Files): Add m4/raise.m4.
12129         (Depends-on): Add signal, msvc-inval.
12130         (configure.ac): Use the common idioms.
12131         (Maintainer): Add me.
12132         * tests/test-signal-c++.cc: Check the signature of raise.
12133         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12134
12135 2011-09-23  Bruno Haible  <bruno@clisp.org>
12136
12137         pipe2: Fix compilation on pre-C99 compilers.
12138         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12139
12140 2011-09-23  Bruno Haible  <bruno@clisp.org>
12141
12142         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12143         * lib/msvc-nothrow.h: New file.
12144         * lib/msvc-nothrow.c: New file.
12145         * m4/msvc-nothrow.m4: New file.
12146         * modules/msvc-nothrow: New file.
12147         * lib/dup2.c: Include msvc-nothrow.h.
12148         (rpl_dup2): No need to protect _get_osfhandle call here.
12149         * lib/accept4.c: Include msvc-nothrow.h.
12150         * lib/error.c: Likewise.
12151         * lib/fcntl.c: Likewise.
12152         * lib/lseek.c: Likewise.
12153         * lib/nonblocking.c: Likewise.
12154         * lib/poll.c: Likewise.
12155         * lib/read.c: Likewise.
12156         * lib/select.c: Likewise.
12157         * lib/sockets.h: Likewise.
12158         * lib/sockets.c: Likewise.
12159         * lib/stdio-read.c: Likewise.
12160         * lib/stdio-write.c: Likewise.
12161         * lib/write.c: Likewise.
12162         * lib/w32sock.h: Likewise.
12163         * lib/w32spawn.h: Likewise.
12164         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12165         * lib/fsync.c: Likewise.
12166         * lib/isapipe.c: Likewise.
12167         * modules/dup2 (Depends-on): Add msvc-nothrow.
12168         * modules/accept4 (Depends-on): Likewise.
12169         * modules/error (Depends-on): Likewise.
12170         * modules/fcntl (Depends-on): Likewise.
12171         * modules/lseek (Depends-on): Likewise.
12172         * modules/nonblocking (Depends-on): Likewise.
12173         * modules/poll (Depends-on): Likewise.
12174         * modules/read (Depends-on): Likewise.
12175         * modules/select (Depends-on): Likewise.
12176         * modules/sockets (Depends-on): Likewise.
12177         * modules/sigpipe (Depends-on): Likewise.
12178         * modules/write (Depends-on): Likewise.
12179         * modules/accept (Depends-on): Likewise.
12180         * modules/bind (Depends-on): Likewise.
12181         * modules/connect (Depends-on): Likewise.
12182         * modules/gethostname (Depends-on): Likewise.
12183         * modules/getpeername (Depends-on): Likewise.
12184         * modules/getsockname (Depends-on): Likewise.
12185         * modules/getsockopt (Depends-on): Likewise.
12186         * modules/ioctl (Depends-on): Likewise.
12187         * modules/listen (Depends-on): Likewise.
12188         * modules/recv (Depends-on): Likewise.
12189         * modules/recvfrom (Depends-on): Likewise.
12190         * modules/send (Depends-on): Likewise.
12191         * modules/sendto (Depends-on): Likewise.
12192         * modules/setsockopt (Depends-on): Likewise.
12193         * modules/shutdown (Depends-on): Likewise.
12194         * modules/socket (Depends-on): Likewise.
12195         * modules/execute (Depends-on): Likewise.
12196         * modules/spawn-pipe (Depends-on): Likewise.
12197         * modules/flock (Depends-on): Likewise.
12198         * modules/fsync (Depends-on): Likewise.
12199         * modules/isapipe (Depends-on): Likewise.
12200         * tests/test-cloexec.c: Include msvc-nothrow.h.
12201         * tests/test-dup-safer.c: Likewise.
12202         * tests/test-dup2.c: Likewise.
12203         * tests/test-dup3.c: Likewise.
12204         * tests/test-fcntl.c: Likewise.
12205         * tests/test-pipe.c: Likewise.
12206         * tests/test-pipe2.c: Likewise.
12207         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12208         * modules/unistd-safer-tests (Depends-on): Likewise.
12209         * modules/dup2-tests (Depends-on): Likewise.
12210         * modules/dup3-tests (Depends-on): Likewise.
12211         * modules/fcntl-tests (Depends-on): Likewise.
12212         * modules/pipe-posix-tests (Depends-on): Likewise.
12213         * modules/pipe2-tests (Depends-on): Likewise.
12214
12215 2011-09-23  Bruno Haible  <bruno@clisp.org>
12216
12217         dup2: Make code more maintainable.
12218         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12219         (rpl_dup2): Use it.
12220         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12221         * modules/dup2 (configure.ac): Invoke it.
12222         Reported by Paul Eggert.
12223
12224 2011-09-23  Bruno Haible  <bruno@clisp.org>
12225
12226         msvc-inval: Fix compilation error.
12227         * lib/msvc-inval.h: Include <excpt.h>.
12228
12229 2011-09-23  Bruno Haible  <bruno@clisp.org>
12230
12231         mkdir: Tweak for MSVC 9.
12232         * lib/sys_stat.in.h: Update comments.
12233         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12234
12235         Tests for module 'chdir'.
12236         * modules/chdir-tests: New file.
12237         * tests/test-chdir.c: New file.
12238
12239         New module 'chdir'.
12240         * modules/chdir: New file.
12241         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12242         (chdir): New declaration.
12243         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12244         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12245         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12246         * tests/test-unistd-c++.cc: Check signature of chdir.
12247         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12248         * modules/chdir-long (Depends-on): Add chdir.
12249         * modules/fchdir (Depends-on): Likewise.
12250         * modules/rename (Depends-on): Likewise.
12251         * modules/savewd (Depends-on): Likewise.
12252
12253         rmdir: Support for mingw, MSVC 9.
12254         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12255         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12256
12257         getcwd: Tweak for MSVC 9.
12258         * lib/unistd.in.h: Update comments.
12259         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12260
12261 2011-09-22  Bruno Haible  <bruno@clisp.org>
12262
12263         strerror_r-posix: Avoid a link error on MSVC.
12264         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12265         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12266
12267 2011-09-22  Bruno Haible  <bruno@clisp.org>
12268
12269         select: Avoid link errors on MSVC.
12270         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12271         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12272         * modules/pselect (Link): Likewise.
12273         * NEWS: Mention the change.
12274         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12275         test-select-stdin against $(LIB_SELECT).
12276         * modules/pselect-tests (Makefile.am): Link test-pselect against
12277         $(LIB_SELECT).
12278
12279 2011-09-22  Bruno Haible  <bruno@clisp.org>
12280
12281         select: Avoid compilation error on MSVC.
12282         * lib/select.c: Don't include <stdbool.h>.
12283
12284 2011-09-21  Bruno Haible  <bruno@clisp.org>
12285
12286         Consolidate all uses of PATH_MAX in *.m4 files.
12287         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12288         macros.
12289         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12290         and gl_PATHMAX_SNIPPET.
12291         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12293         * modules/chdir-long (Files): Add m4/pathmax.m4.
12294         * modules/getcwd (Files): Likewise.
12295
12296 2011-09-21  Bruno Haible  <bruno@clisp.org>
12297
12298         ftruncate: Un-deprecate, concentrate on Win32 support.
12299         * modules/ftruncate (Status, Notice): Remove sections.
12300         (Depends-on): Add largefile.
12301         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12302         non-mingw platforms.
12303         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12304         include <io.h>.
12305         * modules/perror-tests (Depends-on): Add ftruncate.
12306         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12307         'ftruncate' module.
12308
12309 2011-09-21  Bruno Haible  <bruno@clisp.org>
12310
12311         Add dependencies to new dirent related modules.
12312         * modules/opendir (Depends-on): Add closedir.
12313         * modules/getcwd (Depends-on): Add opendir, closedir.
12314         * modules/dirent-safer-tests (Depends-on): Likewise.
12315         * modules/fdopendir-tests (Depends-on): Likewise.
12316         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12317         * modules/renameat-tests (Depends-on): Likewise.
12318
12319 2011-09-21  Bruno Haible  <bruno@clisp.org>
12320
12321         opendir: Avoid compilation error on mingw.
12322         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12323         * modules/opendir (Depends-on): Add unistd.
12324
12325 2011-09-21  Bruno Haible  <bruno@clisp.org>
12326
12327         ftruncate tests: Avoid a test failure on mingw.
12328         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12329
12330 2011-09-21  Bruno Haible  <bruno@clisp.org>
12331
12332         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12333         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12334         native Windows.
12335
12336 2011-09-21  Bruno Haible  <bruno@clisp.org>
12337
12338         New module 'fdopen'.
12339         * lib/stdio.in.h (fdopen): New declaration.
12340         * lib/fdopen.c: New file.
12341         * m4/fdopen.m4: New file.
12342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12343         REPLACE_FDOPEN.
12344         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12345         REPLACE_FDOPEN.
12346         * modules/fdopen: New file.
12347         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12348         * tests/test-stdio-c++.cc: Check signature of fdopen.
12349         * doc/posix-functions/fdopen.texi: Mention the new module.
12350
12351 2011-09-21  Bruno Haible  <bruno@clisp.org>
12352
12353         unlockpt tests: Avoid test failure on NetBSD 5.1.
12354         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12355         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12356
12357 2011-09-21  Bruno Haible  <bruno@clisp.org>
12358
12359         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12360         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12361         * tests/test-getlogin_r.c (main): Likewise.
12362
12363 2011-09-20  Bruno Haible  <bruno@clisp.org>
12364
12365         time tests: Don't require pid_t.
12366         * doc/posix-headers/time.texi: Revert last change.
12367         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12368         * tests/test-time.c: Comment out the check for pid_t.
12369
12370 2011-09-20  Bruno Haible  <bruno@clisp.org>
12371
12372         fsync tests: Avoid a test failure on mingw.
12373         * tests/test-fsync.c (main): Allow a failure with EIO.
12374
12375 2011-09-20  Bruno Haible  <bruno@clisp.org>
12376
12377         euidaccess: Update comments.
12378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12379
12380 2011-09-20  Bruno Haible  <bruno@clisp.org>
12381
12382         Ensure EBADF returns for socket functions on mingw.
12383         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12384         descriptor is invalid.
12385         * lib/bind.c (rpl_bind): Likewise.
12386         * lib/connect.c (rpl_connect): Likewise.
12387         * lib/getpeername.c (rpl_getpeername): Likewise.
12388         * lib/getsockname.c (rpl_getsockname): Likewise.
12389         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12390         * lib/listen.c (rpl_listen): Likewise.
12391         * lib/recv.c (rpl_recv): Likewise.
12392         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12393         * lib/send.c (rpl_send): Likewise.
12394         * lib/sendto.c (rpl_sendto): Likewise.
12395         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12396         * lib/shutdown.c (rpl_shutdown): Likewise.
12397
12398 2011-09-20  Bruno Haible  <bruno@clisp.org>
12399
12400         select tests: EBADF tests.
12401         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12402         test_bad_fd): New functions.
12403         (test_function): Invoke also test_bad_fd.
12404
12405 2011-09-20  Bruno Haible  <bruno@clisp.org>
12406
12407         Tests for module 'posix_spawn_file_actions_addopen.
12408         * modules/posix_spawn_file_actions_addopen-tests: New file.
12409         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12410
12411         Tests for module 'posix_spawn_file_actions_adddup2'.
12412         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12413         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12414
12415         Tests for module 'posix_spawn_file_actions_addclose'.
12416         * modules/posix_spawn_file_actions_addclose-tests: New file.
12417         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12418
12419 2011-09-20  Bruno Haible  <bruno@clisp.org>
12420
12421         Tests for module 'unlockpt'.
12422         * modules/unlockpt-tests: New file.
12423         * tests/test-unlockpt.c: New file.
12424         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12425
12426         Tests for module 'grantpt'.
12427         * modules/grantpt-tests: New file.
12428         * tests/test-grantpt.c: New file.
12429         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12430
12431 2011-09-20  Bruno Haible  <bruno@clisp.org>
12432
12433         freopen tests: EBADF tests.
12434         * tests/test-freopen.c: Include errno.h, unistd.h.
12435         (main): Add tests for EBADF, commented out for the moment.
12436
12437         fclose tests: EBADF tests.
12438         * tests/test-fclose.c (main): Add tests for EBADF.
12439
12440         fflush tests: EBADF tests.
12441         * tests/test-fflush.c: Include errno.h, macros.h.
12442         (main): Add tests for EBADF.
12443
12444         ftello tests: EBADF tests.
12445         * tests/test-ftello4.sh: New file.
12446         * tests/test-ftello4.c: New file.
12447         * modules/ftello-tests (Files): Add them.
12448         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12449
12450         fseeko tests: EBADF tests.
12451         * tests/test-fseeko4.sh: New file.
12452         * tests/test-fseeko4.c: New file.
12453         * modules/fseeko-tests (Files): Add them.
12454         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12455
12456         Tests for function fputc().
12457         * modules/fputc-tests: New file.
12458         * tests/test-fputc.c: New file.
12459         * modules/stdio-tests (Depends-on): Add fputc-tests.
12460
12461         Tests for function fgetc().
12462         * modules/fgetc-tests: New file.
12463         * tests/test-fgetc.c: New file.
12464         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12465
12466         Tests for function fdopen().
12467         * modules/fdopen-tests: New file.
12468         * tests/test-fdopen.c: New file.
12469         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12470
12471         Tests for module 'vdprintf'.
12472         * modules/vdprintf-tests: New file.
12473         * tests/test-vdprintf.c: New file.
12474
12475         Tests for module 'dprintf'.
12476         * modules/dprintf-tests: New file.
12477         * tests/test-dprintf.c: New file.
12478
12479 2011-09-20  Bruno Haible  <bruno@clisp.org>
12480
12481         Tests for module 'ioctl'.
12482         * modules/ioctl-tests: New file.
12483         * tests/test-ioctl.c: New file.
12484
12485 2011-09-20  Bruno Haible  <bruno@clisp.org>
12486
12487         fcntl tests: EBADF tests.
12488         * tests/test-fcntl.c (main): Add more tests for EBADF.
12489
12490 2011-09-20  Bruno Haible  <bruno@clisp.org>
12491
12492         utimensat tests: EBADF tests.
12493         * tests/test-utimensat.c (main): Add tests for EBADF.
12494
12495         renameat tests: EBADF tests.
12496         * tests/test-renameat.c (main): Add tests for EBADF.
12497
12498         mkfifoat tests: EBADF tests.
12499         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12500
12501         readlinkat tests: EBADF tests.
12502         * tests/test-readlinkat.c (main): Add tests for EBADF.
12503
12504         symlinkat tests: EBADF tests.
12505         * tests/test-symlinkat.c (main): Add tests for EBADF.
12506
12507         linkat tests: EBADF tests.
12508         * tests/test-linkat.c (main): Add tests for EBADF.
12509
12510         Tests for module 'faccessat'.
12511         * modules/faccessat-tests: New file.
12512         * tests/test-faccessat.c: New file.
12513
12514         fdopendir tests: EBADF tests.
12515         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12516
12517         openat tests: EBADF tests.
12518         * tests/test-fchownat.c (main): Add tests for EBADF.
12519         * tests/test-fstatat.c (main): Likewise.
12520         * tests/test-mkdirat.c (main): Likewise.
12521         * tests/test-openat.c (main): Likewise.
12522         * tests/test-unlinkat.c (main): Likewise.
12523         * tests/test-fchmodat.c: New file.
12524         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12525         (Makefile.am): Also run 'test-fchmodat'.
12526
12527 2011-09-20  Bruno Haible  <bruno@clisp.org>
12528
12529         utimens, futimens, fdutimensat tests: EBADF tests.
12530         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12531
12532         Tests for function fstat().
12533         * modules/fstat-tests: New file.
12534         * tests/test-fstat.c: New file.
12535         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12536
12537 2011-09-20  Bruno Haible  <bruno@clisp.org>
12538
12539         test-ttyname_r tests: EBADF tests.
12540         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12541
12542         Tests for module 'isatty'.
12543         * modules/isatty-tests: New file.
12544         * tests/test-isatty.c: New file.
12545
12546         Tests for module 'write'.
12547         * modules/write-tests: New file.
12548         * tests/test-write.c: New file.
12549
12550         Tests for module 'read'.
12551         * modules/read-tests: New file.
12552         * tests/test-read.c: New file.
12553
12554         pwrite tests: EBADF tests.
12555         * tests/test-pwrite.c (main): Add tests for EBADF.
12556
12557         pread tests: EBADF tests.
12558         * tests/test-pread.c (main): Add tests for EBADF.
12559
12560         lseek tests: EBADF tests.
12561         * tests/test-lseek.c (main): Add more tests for EBADF.
12562
12563         Tests for module 'ftruncate'.
12564         * modules/ftruncate-tests: New file.
12565         * tests/test-ftruncate.sh: New file.
12566         * tests/test-ftruncate.c: New file.
12567
12568         fsync tests: EBADF tests.
12569         * tests/test-fsync.c (main): Add more tests for EBADF.
12570
12571         fdatasync tests: EBADF tests.
12572         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12573
12574         Tests for module 'fchown'.
12575         * modules/fchown-tests: New file.
12576         * tests/test-fchown.c: New file.
12577
12578         Tests for module 'fchmod'.
12579         * modules/fchmod-tests: New file.
12580         * tests/test-fchmod.c: New file.
12581
12582         fchdir tests: EBADF tests.
12583         * tests/test-fchdir.c (main): Add more tests for EBADF.
12584
12585         dup2 tests: EBADF tests.
12586         * tests/test-dup2.c (main): Add more tests for EBADF.
12587
12588         Tests for module 'dup'.
12589         * modules/dup-tests: New file.
12590         * tests/test-dup.c: New file.
12591
12592         Tests for module 'close'.
12593         * modules/close-tests: New file.
12594         * tests/test-close.c: New file.
12595
12596 2011-09-20  Bruno Haible  <bruno@clisp.org>
12597
12598         Tests for module 'shutdown'.
12599         * modules/shutdown-tests: New file.
12600         * tests/test-shutdown.c: New file.
12601
12602         Tests for module 'setsockopt'.
12603         * modules/setsockopt-tests: New file.
12604         * tests/test-setsockopt.c: New file.
12605
12606         Tests for module 'sendto'.
12607         * modules/sendto-tests: New file.
12608         * tests/test-sendto.c: New file.
12609
12610         Tests for module 'send'.
12611         * modules/send-tests: New file.
12612         * tests/test-send.c: New file.
12613
12614         Tests for module 'recvfrom'.
12615         * modules/recvfrom-tests: New file.
12616         * tests/test-recvfrom.c: New file.
12617
12618         Tests for module 'recv'.
12619         * modules/recv-tests: New file.
12620         * tests/test-recv.c: New file.
12621
12622         Tests for module 'listen'.
12623         * modules/listen-tests: New file.
12624         * tests/test-listen.c: New file.
12625
12626         Tests for module 'getsockopt'.
12627         * modules/getsockopt-tests: New file.
12628         * tests/test-getsockopt.c: New file.
12629
12630         Tests for module 'getsockname'.
12631         * modules/getsockname-tests: New file.
12632         * tests/test-getsockname.c: New file.
12633
12634         Tests for module 'getpeername'.
12635         * modules/getpeername-tests: New file.
12636         * tests/test-getpeername.c: New file.
12637
12638         Tests for module 'connect'.
12639         * modules/connect-tests: New file.
12640         * tests/test-connect.c: New file.
12641
12642         Tests for module 'bind'.
12643         * modules/bind-tests: New file.
12644         * tests/test-bind.c: New file.
12645
12646         accept4 tests: Fix for native Windows.
12647         * tests/test-accept4.c: Include sockets.h.
12648         (main): Invoke gl_sockets_startup.
12649         * modules/accept4-tests (Depends-on): Add sockets.
12650
12651         accept tests: Fix for native Windows.
12652         * tests/test-accept.c: Include sockets.h.
12653         (main): Invoke gl_sockets_startup.
12654         * modules/accept-tests (Depends-on): Add sockets.
12655
12656 2011-09-19  Bruno Haible  <bruno@clisp.org>
12657
12658         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12659         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12660         do...while(0).
12661         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12662         Suggested by Paul Eggert.
12663
12664 2011-09-19  Bruno Haible  <bruno@clisp.org>
12665
12666         sched: Ensure pid_t is defined.
12667         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12668         not define pid_t.
12669         * lib/sched.in.h: Include <sys/types.h>.
12670         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12672
12673 2011-09-19  Bruno Haible  <bruno@clisp.org>
12674
12675         msvc-inval: Ensure the entire expansion is a single statement.
12676         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12677         of braces.
12678
12679 2011-09-19  Jim Meyering  <meyering@redhat.com>
12680
12681         tests: use printf, not echo in init.sh's warn_ function
12682         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12683         misbehave when given strings containing a backslash or starting
12684         with e.g., -n.  James Youngman suggested setting IFS.
12685
12686 2011-09-19  Eric Blake  <eblake@redhat.com>
12687
12688         futimens: enhance test
12689         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12690         closed non-negative fd.
12691
12692         date: accept 'hence' as opposite of 'ago'
12693         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12694         * tests/test-parse-datetime.c (main): Enhance test.
12695         Suggested by Jesse Wilson.
12696
12697 2011-09-19  Jim Meyering  <meyering@redhat.com>
12698
12699         getcwd: don't fail in a deep directory on a system without openat
12700         Before this change, getcwd would fail when called from a directory
12701         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12702         the non-openat implementation used "..", "../..", "../../..", etc.
12703         to access ancestor directories.  With too many, that string would
12704         be longer than PATH_MAX.
12705         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12706         using gnulib's openat replacement.
12707         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12708         we're using the replacement function.
12709
12710 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12711
12712         maint.mk: avoid warnings from perl about missing files
12713         * top/maint.mk (def_sym_regex): Ignore files listed in
12714         $(gl_other_headers_) that do not exist, say because a project
12715         does not use a corresponding module.
12716
12717 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12718
12719         stat: use pathmax.h only if needed
12720         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12721         This is better for Emacs, which does not have a mingw port and
12722         therefore can avoid the pathmax module.
12723
12724         utimens: remove dependency on dup2
12725         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12726         to work around the Linux kernel bug.
12727         * modules/utimens (Depends-on): Remove dup2.
12728
12729 2011-09-18  Bruno Haible  <bruno@clisp.org>
12730
12731         inet_ntop, inet_pton: Look for it also in libresolv.
12732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12733         libnsl, search for it in libresolv.
12734         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12735         Needed on Solaris 7.
12736
12737 2011-09-18  Bruno Haible  <bruno@clisp.org>
12738
12739         accept, accept4 tests: Avoid link error on Solaris.
12740         * modules/accept-tests (Makefile.am): Link test-accept against
12741         $(LIBSOCKET).
12742         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12743         $(LIBSOCKET).
12744
12745         accept4: Avoid link error on Solaris.
12746         * modules/accept4 (Link): New section.
12747
12748         socket functions: Avoid link errors on Solaris.
12749         * modules/accept (Depends-on): Add socketlib.
12750         (Link): New section.
12751         * modules/bind (Depends-on): Add socketlib.
12752         (Link): New section.
12753         * modules/connect (Depends-on): Add socketlib.
12754         (Link): New section.
12755         * modules/getpeername (Depends-on): Add socketlib.
12756         (Link): New section.
12757         * modules/getsockname (Depends-on): Add socketlib.
12758         (Link): New section.
12759         * modules/getsockopt (Depends-on): Add socketlib.
12760         (Link): New section.
12761         * modules/listen (Depends-on): Add socketlib.
12762         (Link): New section.
12763         * modules/recv (Depends-on): Add socketlib.
12764         (Link): New section.
12765         * modules/recvfrom (Depends-on): Add socketlib.
12766         (Link): New section.
12767         * modules/send (Depends-on): Add socketlib.
12768         (Link): New section.
12769         * modules/sendto (Depends-on): Add socketlib.
12770         (Link): New section.
12771         * modules/setsockopt (Depends-on): Add socketlib.
12772         (Link): New section.
12773         * modules/shutdown (Depends-on): Add socketlib.
12774         (Link): New section.
12775         * modules/socket (Depends-on): Add socketlib.
12776         (Link): New section.
12777
12778 2011-09-18  Bruno Haible  <bruno@clisp.org>
12779
12780         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12781         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12782         than 5 seconds.
12783         * modules/ptsname-tests (configure.ac): Test for alarm.
12784
12785 2011-09-18  Bruno Haible  <bruno@clisp.org>
12786
12787         posix_spawn_file_actions_add*: Fix module dependencies.
12788         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12789         posix_spawn_file_actions_init.
12790         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12791         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12792
12793 2011-09-18  Bruno Haible  <bruno@clisp.org>
12794
12795         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12796         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12797         * tests/test-renameat.c (main): Likewise.
12798
12799 2011-09-18  Bruno Haible  <bruno@clisp.org>
12800
12801         Tests for module 'accept4'.
12802         * modules/accept4-tests: New file.
12803         * tests/test-accept4.c: New file.
12804
12805 2011-09-18  Bruno Haible  <bruno@clisp.org>
12806
12807         Tests for module 'accept'.
12808         * modules/accept-tests: New file.
12809         * tests/test-accept.c: New file.
12810
12811 2011-09-18  Bruno Haible  <bruno@clisp.org>
12812
12813         dup2: Support for MSVC.
12814         * lib/dup2.c: Include msvc-inval.h.
12815         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12816         _get_osfhandle calls.
12817         * modules/dup2 (Depends-on): Add msvc-inval.
12818         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12819
12820         New module 'msvc-inval'.
12821         * lib/msvc-inval.h: New file.
12822         * lib/msvc-inval.c: New file.
12823         * m4/msvc-inval.m4: New file.
12824         * modules/msvc-inval: New file.
12825
12826 2011-09-17  Bruno Haible  <bruno@clisp.org>
12827
12828         Tests for module 'pclose'.
12829         * modules/pclose-tests: New file.
12830
12831         New module 'pclose'.
12832         * lib/stdio.in.h (pclose): New declaration.
12833         * lib/pclose.c: New file.
12834         * m4/pclose.m4: New file.
12835         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12836         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12837         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12838         * modules/pclose: New file.
12839         * modules/popen-tests (Depends-on): Add pclose.
12840         * modules/popen-safer-tests (Depends-on): Likewise.
12841         * doc/posix-functions/pclose.texi: Mention the new module.
12842
12843 2011-09-17  Bruno Haible  <bruno@clisp.org>
12844
12845         popen: Support for MSVC.
12846         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12847         * lib/popen.c (popen): Provide alternate definition for native Windows.
12848         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12850         * modules/popen (Depends-on, configure.ac): Update condition.
12851         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12852         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12853         fixed.
12854
12855 2011-09-17  Bruno Haible  <bruno@clisp.org>
12856
12857         isnanl, isnand, isnanf: Work around MSVC bug.
12858         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12859
12860 2011-09-17  Bruno Haible  <bruno@clisp.org>
12861
12862         sys_socket tests: Fix recent mistake.
12863         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12864
12865 2011-09-17  Bruno Haible  <bruno@clisp.org>
12866
12867         putenv: Support for MSVC.
12868         * modules/putenv (Depends-on): Add environ.
12869         * lib/putenv.c (environ): Disable declaration.
12870         * lib/unistd.in.h: Update comment.
12871
12872 2011-09-17  Bruno Haible  <bruno@clisp.org>
12873
12874         math: Avoid macro redefinition warnings on MSVC.
12875         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12876         Undefine before redefining.
12877
12878 2011-09-17  Bruno Haible  <bruno@clisp.org>
12879
12880         doc: Mention functions which are declared as macros.
12881         * doc/posix-functions/*[fl].texi: Mention that some functions are
12882         defined as macros with arguments only.
12883
12884 2011-09-17  Bruno Haible  <bruno@clisp.org>
12885
12886         Add dependencies to new dirent related modules.
12887         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12888         * modules/fts (Depends-on): Likewise.
12889         * modules/glob (Depends-on): Likewise.
12890         * modules/savedir (Depends-on): Likewise.
12891         * modules/scandir (Depends-on): Likewise.
12892         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12893         * modules/fdopendir (Depends-on): Add opendir.
12894
12895 2011-09-17  Bruno Haible  <bruno@clisp.org>
12896
12897         inet_pton: Support for MSVC on Windows Vista or newer.
12898         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12899         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12900         HAVE_DECL_INET_PTON is defined.
12901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12902         On platforms with <winsock2.h>, test whether inet_pton is declared in
12903         <ws2tcpip.h>. If so, arrange to replace it.
12904         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12905         REPLACE_INET_PTON.
12906         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12907         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12908         (Depends-on, configure.ac): Update condition.
12909         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12910
12911 2011-09-17  Bruno Haible  <bruno@clisp.org>
12912
12913         inet_ntop: Support for MSVC on Windows Vista or newer.
12914         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12915         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12916         HAVE_DECL_INET_NTOP is defined.
12917         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12918         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12919         <ws2tcpip.h>. If so, arrange to replace it.
12920         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12921         REPLACE_INET_NTOP.
12922         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12923         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12924         (Depends-on, configure.ac): Update condition.
12925         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12926
12927 2011-09-16  Eric Blake  <eblake@redhat.com>
12928
12929         test-fsync: yet another enhancement
12930         * tests/test-fsync.c (main): Also test behavior on read-only text
12931         file.
12932
12933 2011-09-16  Bruno Haible  <bruno@clisp.org>
12934
12935         Enhance fsync, fdatasync tests.
12936         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12937         * tests/test-fdatasync.c (main): Likewise.
12938
12939 2011-09-16  Bruno Haible  <bruno@clisp.org>
12940
12941         Support for MSVC compiler: Ensure mode_t gets defined.
12942         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12943         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12944         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12945         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12946         * tests/test-fcntl-h.c: Check that mode_t is defined.
12947         * tests/test-sys_stat.c: Likewise.
12948         * tests/test-sys_types.c: Likewise.
12949         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12950         * doc/posix-headers/sys_stat.texi: Likewise.
12951         * doc/posix-headers/sys_types.texi: Likewise.
12952
12953 2011-09-16  Bruno Haible  <bruno@clisp.org>
12954
12955         sys_stat: Support for MSVC.
12956         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12957         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12958         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12959         MSVC.
12960
12961 2011-09-16  Bruno Haible  <bruno@clisp.org>
12962
12963         Support for MSVC compiler: Ensure off_t gets defined.
12964         * lib/unistd.in.h: Include <sys/types.h>.
12965         * tests/test-fcntl-h.c: Check that off_t is defined.
12966         * tests/test-sys_stat.c: Likewise.
12967         * tests/test-sys_types.c: Likewise.
12968
12969 2011-09-16  Eric Blake  <eblake@redhat.com>
12970
12971         fdatasync: port to Solaris
12972         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12973         * modules/fdatasync (Link): Document it.
12974         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12975
12976         fdatasync: port to MacOS X 10.7
12977         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12978         declared.
12979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12980         * modules/unistd (Makefile.am): Substitute it.
12981         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12982         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12983
12984         fdatasync: minor improvements
12985         * modules/fdatasync (Depends-on): Add condition for fsync.
12986         * lib/fdatasync.c (fdatasync): Add comment.
12987         * tests/test-unistd-c++.cc: Test fdatasync.
12988
12989         unistd: update refs to newer POSIX
12990         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12991         Suggested by Bruno Haible.
12992
12993         fdatasync: new module
12994         * modules/fsync (Description): Document difference to fdatasync.
12995         * modules/fdatasync: New module.
12996         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12997         * lib/fdatasync.c (fdatasync): Likewise.
12998         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12999         defaults.
13000         * modules/unistd (Makefile.am): Set witnesses.
13001         * lib/unistd.in.h (fdatasync): Declare.
13002         * MODULES.html.sh: Document it.
13003         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13004         * modules/fdatasync-tests: New test.
13005         * tests/test-fdatasync.c: Likewise.
13006
13007 2011-09-16  Eric Blake  <eblake@redhat.com>
13008
13009         test-fsync: enhance tests
13010         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13011         * tests/test-fsync.c (main): Enhance test.
13012
13013 2011-09-15  Bruno Haible  <bruno@clisp.org>
13014
13015         Support for MSVC compiler: Ensure ssize_t gets defined.
13016         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13017         * doc/posix-headers/stdio.texi: Likewise.
13018         * modules/stdio (Depends-on): Add ssize_t.
13019         * modules/sys_socket (Depends-on): Likewise.
13020         * modules/sys_types (Depends-on): Likewise.
13021         * modules/sys_uio (Depends-on): Likewise.
13022         * modules/unistd (Depends-on): Likewise.
13023         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13024         * tests/test-sys_types.c: Check that ssize_t is defined.
13025
13026 2011-09-14  Bruno Haible  <bruno@clisp.org>
13027
13028         Avoid using #, the m4 comment starter character, near brackets.
13029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13030         delimiter character in sed expressions.
13031         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13032         Suggested by Eric Blake.
13033
13034         Properly quote AC_CHECK_DECLS' 4th argument.
13035         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13036         argument.
13037         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13038         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13039         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13040         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13041         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13042         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13044         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13045         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13046         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13047         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13048         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13049         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13050         * m4/isinf.m4 (gl_ISINF): Likewise.
13051         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13052         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13054         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13057         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13058         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13059         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13060         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13061         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13062         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13064         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13066         Reported by Eric Blake.
13067
13068         Properly quote AC_CHECK_DECL's 4th argument.
13069         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13070         argument.
13071         * m4/argp.m4 (gl_ARGP): Likewise.
13072         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13073         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13074         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13075         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13076         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13077         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13079         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13081         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13082         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13083         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13084         Reported by Eric Blake.
13085
13086 2011-09-14  Eric Blake  <eblake@redhat.com>
13087
13088         opendir: avoid compile warning
13089         * lib/opendir.c (includes): Always include errno.h.
13090         Reported by Tatsuro MATSUOKA.
13091
13092 2011-09-14  Jim Meyering  <meyering@redhat.com>
13093
13094         maint.mk: sc_tight_scope: propagate failure from sub-make
13095         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13096         Reported by Martin von Gagern.
13097
13098 2011-09-13  Bruno Haible  <bruno@clisp.org>
13099
13100         tempname: Support for MSVC.
13101         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13102         MSVC.
13103         * modules/tempname (Depends-on): Add fcntl-h.
13104
13105 2011-09-13  Bruno Haible  <bruno@clisp.org>
13106
13107         sys_time: Support for MSVC.
13108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13109         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13110         include <winsock2.h>.
13111         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13112         function declarations that collide with POSIX.
13113         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13114         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13115
13116 2011-09-13  Bruno Haible  <bruno@clisp.org>
13117
13118         stat: Support for MSVC.
13119         * lib/stat.c: Include pathmax.h.
13120         * modules/stat (Depends-on): Add pathmax.
13121
13122         pathmax: Support for native Windows.
13123         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13124
13125 2011-09-12  Bruno Haible  <bruno@clisp.org>
13126
13127         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13128         * lib/dirent.in.h (struct dirent): New type.
13129         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13130         DT_WHT): New macros.
13131         (DIR): New type.
13132         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13133         (readdir, rewinddir): New declarations.
13134         * lib/dirent-private.h: New file.
13135         * lib/opendir.c: New file.
13136         * lib/readdir.c: New file.
13137         * lib/rewinddir.c: New file.
13138         * lib/closedir.c: New file.
13139         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13140         * m4/opendir.m4: New file.
13141         * m4/readdir.m4: New file.
13142         * m4/rewinddir.m4: New file.
13143         * m4/closedir.m4: New file.
13144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13145         REPLACE_CLOSEDIR here.
13146         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13147         readdir, rewinddir are declared.
13148         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13149         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13150         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13151         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13152         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13153         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13154         * modules/opendir: New file.
13155         * modules/readdir: New file.
13156         * modules/rewinddir: New file.
13157         * modules/closedir: New file.
13158         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13159         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13160         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13161         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13162         * NEWS: Mention the 'fchdir' change.
13163
13164 2011-09-11  Bruno Haible  <bruno@clisp.org>
13165
13166         asm-underscore.m4: Support for MSVC.
13167         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13168         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13169
13170 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13171
13172         Doc about crypt functions.
13173         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13174         needing for _GNU_SOURCE to get crypt.
13175         * doc/posix-functions/encrypt.texi: Likewise.
13176         * doc/posix-functions/setkey.texi: Likewise.
13177
13178 2011-09-11  Bruno Haible  <bruno@clisp.org>
13179
13180         doc: Update regarding MSVC 9.
13181         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13182         tested".
13183         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13184         * doc/posix-headers/*.texi: Likewise.
13185         * doc/pastposix-functions/*.texi: Likewise.
13186         * doc/glibc-functions/*.texi: Likewise.
13187         * doc/glibc-headers/*.texi: Likewise.
13188
13189 2011-09-11  Bruno Haible  <bruno@clisp.org>
13190
13191         unistd et al.: Don't assume <unistd.h> exists.
13192         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13193         does not exist.
13194         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13195         exist. But include <stdlib.h>.
13196         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13197         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13198         symlink() does not exist.
13199         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13200         include <io.h> instead.
13201         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13202         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13203         include <direct.h> instead.
13204         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13206         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13207         <io.h> instead.
13208         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13209         correctly if the system does not have hard links.
13210         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13211         <direct.h> instead.
13212         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13213         it when looking for function declarations.
13214         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13215         <direct.h> and <io.h> instead.
13216         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13217
13218 2011-09-11  Bruno Haible  <bruno@clisp.org>
13219
13220         strcase: Support for MSVC.
13221         * modules/strcase (Status, Notice): Remove obsoletion mark.
13222         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13223         * doc/posix-functions/strncasecmp.texi: Likewise.
13224
13225         strings: Don't assume <strings.h> exists.
13226         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13227         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13228         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13229         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13230
13231 2011-09-11  Bruno Haible  <bruno@clisp.org>
13232
13233         dirent: Don't assume <dirent.h> exists.
13234         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13235         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13236         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13237         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13238
13239 2011-09-11  Bruno Haible  <bruno@clisp.org>
13240
13241         Fix wint_t on MSVC.
13242         * lib/wchar.in.h (wint_t): On MSVC, override it.
13243         * lib/wctype.in.h (wint_t): Likewise.
13244         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13245         MSVC.
13246         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13247         * doc/posix-headers/wctype.texi: Likewise.
13248
13249 2011-09-11  Bruno Haible  <bruno@clisp.org>
13250
13251         sys_types: Fix typo.
13252         * lib/sys_types.in.h: Fix typo in comment.
13253         Reported by Paul Eggert.
13254
13255         Support for MSVC compiler: Ensure size_t gets defined.
13256         * modules/strings (Depends-on): Add 'sys_types'.
13257         * modules/sys_uio (Depends-on): Likewise.
13258         * lib/sys_uio.in.h: Update comment.
13259
13260         C++ tests for module 'sys_types'.
13261         * modules/sys_types-c++-tests: New file.
13262         * tests/test-sys_types-c++.cc: New file.
13263
13264         Tests for module 'sys_types'.
13265         * modules/sys_types-tests: New file.
13266         * tests/test-sys_types.c: New file.
13267
13268         New module 'sys_types'.
13269         * lib/sys_types.in.h: New file.
13270         * m4/sys_types_h.m4: New file.
13271         * modules/sys_types: New file.
13272         * doc/posix-headers/sys_types.texi: Mention the new module and the
13273         size_t problem on MSVC 9.
13274
13275 2011-09-11  Bruno Haible  <bruno@clisp.org>
13276
13277         Support for MSVC compiler: Avoid division by a literal 0.
13278         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13279         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13280         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13281         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13282         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13283         * tests/infinity.h: New file.
13284         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13285         on MSVC.
13286         * tests/test-ceilf1.c: Include infinity.h.
13287         (main): Use Infinityf.
13288         * tests/test-ceil1.c: Include infinity.h.
13289         (main): Use Infinityd.
13290         * tests/test-ceill.c: Include infinity.h.
13291         (main): Use Infinityl.
13292         * tests/test-dprintf-posix.c: Include infinity.h.
13293         (test_function): Use Infinityd.
13294         * tests/test-floorf1.c: Include infinity.h.
13295         (main): Use Infinityf.
13296         * tests/test-floor1.c: Include infinity.h.
13297         (main): Use Infinityd.
13298         * tests/test-floorl.c: Include infinity.h.
13299         (main): Use Infinityl.
13300         * tests/test-fprintf-posix.c: Include infinity.h.
13301         (test_function): Use Infinityd.
13302         * tests/test-frexp.c: Include infinity.h.
13303         (main): Use Infinityd.
13304         * tests/test-frexpl.c: Include infinity.h.
13305         (main): Use Infinityl.
13306         * tests/test-isfinite.c: Include infinity.h.
13307         (test_isfinitef): Use Infinityf.
13308         (test_isfinited): Use Infinityd.
13309         (test_isfinitel): Use Infinityl.
13310         * tests/test-isinf.c: Include infinity.h.
13311         (test_isinff): Use Infinityf.
13312         (test_isinfd): Use Infinityd.
13313         (test_isinfl): Use Infinityl.
13314         * tests/test-isnan.c: Include infinity.h.
13315         (test_float): Use Infinityf.
13316         (test_double): Use Infinityd.
13317         (test_long_double): Use Infinityl.
13318         * tests/test-isnanf.h: Include infinity.h.
13319         (main): Use Infinityf.
13320         * tests/test-isnand.h: Include infinity.h.
13321         (main): Use Infinityd.
13322         * tests/test-isnanl.h: Include infinity.h.
13323         (main): Use Infinityl.
13324         * tests/test-ldexpl.c: Include infinity.h.
13325         (main): Use Infinityl.
13326         * tests/test-printf-posix.h: Include infinity.h.
13327         (test_function): Use Infinityd.
13328         * tests/test-roundf1.c: Include infinity.h.
13329         (main): Use Infinityf.
13330         * tests/test-round1.c: Include infinity.h.
13331         (main): Use Infinityd.
13332         * tests/test-roundl.c: Include infinity.h.
13333         (main): Use Infinityl.
13334         * tests/test-signbit.c: Include infinity.h.
13335         (test_signbitf): Use Infinityf.
13336         (test_signbitd): Use Infinityd.
13337         (test_signbitl): Use Infinityl.
13338         * tests/test-snprintf-posix.h: Include infinity.h.
13339         (test_function): Use Infinityd, Infinityl.
13340         * tests/test-sprintf-posix.h: Include infinity.h.
13341         (test_function): Use Infinityd, Infinityl.
13342         * tests/test-truncf1.c: Include infinity.h.
13343         (main): Use Infinityf.
13344         * tests/test-trunc1.c: Include infinity.h.
13345         (main): Use Infinityd.
13346         * tests/test-truncl.c: Include infinity.h.
13347         (main): Use Infinityl.
13348         * tests/test-vasnprintf-posix.c: Include infinity.h.
13349         (test_function): Use Infinityd, Infinityl.
13350         * tests/test-vasprintf-posix.c: Include infinity.h.
13351         (test_function): Use Infinityd, Infinityl.
13352         * modules/ceilf-tests (Files): Add tests/infinity.h.
13353         * modules/ceil-tests (Files): Likewise.
13354         * modules/ceill-tests (Files): Likewise.
13355         * modules/dprintf-posix-tests (Files): Likewise.
13356         * modules/floorf-tests (Files): Likewise.
13357         * modules/floor-tests (Files): Likewise.
13358         * modules/floorl-tests (Files): Likewise.
13359         * modules/fprintf-posix-tests (Files): Likewise.
13360         * modules/frexp-tests (Files): Likewise.
13361         * modules/frexp-nolibm-tests (Files): Likewise.
13362         * modules/frexpl-tests (Files): Likewise.
13363         * modules/frexpl-nolibm-tests (Files): Likewise.
13364         * modules/isfinite-tests (Files): Likewise.
13365         * modules/isinf-tests (Files): Likewise.
13366         * modules/isnan-tests (Files): Likewise.
13367         * modules/isnanf-tests (Files): Likewise.
13368         * modules/isnanf-nolibm-tests (Files): Likewise.
13369         * modules/isnand-tests (Files): Likewise.
13370         * modules/isnand-nolibm-tests (Files): Likewise.
13371         * modules/isnanl-tests (Files): Likewise.
13372         * modules/isnanl-nolibm-tests (Files): Likewise.
13373         * modules/ldexpl-tests (Files): Likewise.
13374         * modules/printf-posix-tests (Files): Likewise.
13375         * modules/roundf-tests (Files): Likewise.
13376         * modules/round-tests (Files): Likewise.
13377         * modules/roundl-tests (Files): Likewise.
13378         * modules/signbit-tests (Files): Likewise.
13379         * modules/snprintf-posix-tests (Files): Likewise.
13380         * modules/sprintf-posix-tests (Files): Likewise.
13381         * modules/truncf-tests (Files): Likewise.
13382         * modules/trunc-tests (Files): Likewise.
13383         * modules/truncl-tests (Files): Likewise.
13384         * modules/vasnprintf-posix-tests (Files): Likewise.
13385         * modules/vasprintf-posix-tests (Files): Likewise.
13386         * modules/vdprintf-posix-tests (Files): Likewise.
13387         * modules/vfprintf-posix-tests (Files): Likewise.
13388         * modules/vprintf-posix-tests (Files): Likewise.
13389         * modules/vsnprintf-posix-tests (Files): Likewise.
13390         * modules/vsprintf-posix-tests (Files): Likewise.
13391         * modules/xprintf-posix-tests (Files): Likewise.
13392
13393 2011-09-11  Bruno Haible  <bruno@clisp.org>
13394
13395         Ensure pid_t gets defined.
13396         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13397         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13398         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13399         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13400         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13401         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13402         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13403         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13404         * tests/test-fcntl-h.c: Check that pid_t is defined.
13405         * tests/test-sched.c: Likewise.
13406         * tests/test-termios.c: Likewise.
13407         * tests/test-time.c: Likewise.
13408         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13409         * doc/posix-headers/signal.texi: Likewise.
13410         * doc/posix-headers/sys_types.texi: Likewise.
13411         * doc/posix-headers/time.texi: Likewise.
13412
13413 2011-09-11  Bruno Haible  <bruno@clisp.org>
13414
13415         acl: Fix compilation on Solaris 10 (older version).
13416         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13417         of ACE_EVERYONE.
13418         * lib/set-mode-acl.c (qset_acl): Likewise.
13419         Reported by Christian Jullien <eligis@orange.fr>.
13420
13421 2011-09-10  Bruno Haible  <bruno@clisp.org>
13422
13423         iconv, unsetenv: Add support for MSVC compiler.
13424         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13425         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13426
13427 2011-09-10  Bruno Haible  <bruno@clisp.org>
13428
13429         *printf: Add support for MSVC compiler.
13430         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13431         handles the exception caused by the %n directive. When cross-compiling,
13432         guess no on native Windows.
13433         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13434         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13435         emulate it through vsnprintf.
13436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13437         * doc/posix-functions/dprintf.texi: Update documentation regarding
13438         MSVC 9.
13439         * doc/posix-functions/fprintf.texi: Likewise.
13440         * doc/posix-functions/printf.texi: Likewise.
13441         * doc/posix-functions/snprintf.texi: Likewise.
13442         * doc/posix-functions/sprintf.texi: Likewise.
13443         * doc/posix-functions/swprintf.texi: Likewise.
13444         * doc/posix-functions/vdprintf.texi: Likewise.
13445         * doc/posix-functions/vfprintf.texi: Likewise.
13446         * doc/posix-functions/vprintf.texi: Likewise.
13447         * doc/posix-functions/vsnprintf.texi: Likewise.
13448         * doc/posix-functions/vsprintf.texi: Likewise.
13449         * doc/glibc-functions/asprintf.texi: Likewise.
13450         * doc/glibc-functions/obstack_printf.texi: Likewise.
13451         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13452         * doc/glibc-functions/vasprintf.texi: Likewise.
13453
13454 2011-09-10  Bruno Haible  <bruno@clisp.org>
13455
13456         nocrash: Add support for native Windows.
13457         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13458
13459 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13460             Bruno Haible  <bruno@clisp.org>
13461
13462         absolute-header, include-next: Add support for MSVC compiler.
13463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13464         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13465         directory separator in #line directives.
13466         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13467         recognize also backslash as directory separator in #line directives.
13468
13469 2011-09-08  Jim Meyering  <meyering@redhat.com>
13470
13471         maint.mk: mark the post-release commit log with "maint: " prefix
13472         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13473         one-line commit-log summary.
13474
13475 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13476             Bruno Haible  <bruno@clisp.org>
13477
13478         Doc about crypt functions.
13479         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13480         systems.
13481         * doc/posix-functions/encrypt.texi: Likewise.
13482         * doc/posix-functions/setkey.texi: Likewise.
13483
13484 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13485
13486         * lib/gc.h: Fix copyright header.
13487
13488 2011-09-07  Bruno Haible  <bruno@clisp.org>
13489
13490         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13492         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13493
13494 2011-09-07  Bruno Haible  <bruno@clisp.org>
13495
13496         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13497         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13498         * lib/freopen.c: Likewise.
13499         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13500         * lib/lstat.c: Likewise.
13501         * lib/stat.c: Likewise.
13502         * lib/open.c: Use different syntax for include of <fcntl.h>.
13503         * lib/openat.c: Include fcntl.h again, explicitly.
13504
13505 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13506
13507         parse-datetime: document the newly accepted format
13508         * doc/parse-datetime.texi (Combined date and time of day items):
13509         New section.
13510
13511 2011-09-06  Bruno Haible  <bruno@clisp.org>
13512
13513         acl: Fix a test failure on newer Solaris 10 with ZFS.
13514         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13515         ENOSYS as no ACL.
13516         Reported by Jim Meyering.
13517
13518 2011-09-06  Bruno Haible  <bruno@clisp.org>
13519
13520         acl: Update for AIX >= 5.3 with NFS.
13521         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13522         ENOSYS as no ACL.
13523
13524         acl: Fix a test failure on AIX >= 5.3 with NFS.
13525         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13526         as no ACL.
13527
13528 2011-09-06  Bruno Haible  <bruno@clisp.org>
13529
13530         acl: Fix a test failure on IRIX 6.5 with NFS.
13531         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13532         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13533         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13534         * lib/copy-acl.c (qcopy_acl): Likewise.
13535
13536 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13537
13538         openat: port to AIX 7.1 with large files
13539         AIX 7.1 does a "#define openat open64at" if large files are in use,
13540         so we can't simply #undef openat.  Use the orig_openat trick (similar
13541         to orig_open in lib/open.c) to work around the problem.  Problem
13542         reported by Kevin Brott for GNU tar, in the thread containing
13543         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13544         * lib/openat.c (__need_system_fcntl_h): Define first.
13545         Include <fcntl.h> and <sys/types.h> before undefining.
13546         (orig_openat) [HAVE_OPENAT]: New inline function.
13547         (openat) [HAVE_OPENAT]: Do not undef.
13548         (rpl_openat): Use orig_openat, not openat.
13549
13550 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13551             Bruno Haible  <bruno@clisp.org>
13552
13553         acl: Avoid errors on NonStop Kernel.
13554         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13555         ENOTSUP errors.
13556
13557 2011-09-05  Bruno Haible  <bruno@clisp.org>
13558
13559         acl: Clean up Solaris code.
13560         * lib/acl-internal.h: Remove no-op #if.
13561         * lib/file-has-acl.c: Likewise.
13562         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13563         * lib/copy-acl.c (qcopy_acl): Likewise.
13564
13565 2011-09-05  Bruno Haible  <bruno@clisp.org>
13566
13567         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13568         binaries built on the original Solaris 10.
13569         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13570         trivial.
13571
13572 2011-09-05  Bruno Haible  <bruno@clisp.org>
13573
13574         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13575         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13576         10.
13577         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13578         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13579         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13580         instead of acl_get, facl_get, acl_set, facl_set.
13581
13582 2011-09-05  Bruno Haible  <bruno@clisp.org>
13583
13584         copy-file: Try unit tests on more file systems.
13585         * tests/test-copy-file-1.sh: New file.
13586         * tests/test-copy-file-2.sh: New file.
13587         * modules/copy-file-tests (Files): Add them.
13588         (Makefile.am): Add them to TESTS.
13589
13590         acl: Try unit tests on more file systems.
13591         * tests/test-file-has-acl-1.sh: New file.
13592         * tests/test-file-has-acl-2.sh: New file.
13593         * tests/test-set-mode-acl-1.sh: New file.
13594         * tests/test-set-mode-acl-2.sh: New file.
13595         * tests/test-copy-acl-1.sh: New file.
13596         * tests/test-copy-acl-2.sh: New file.
13597         * modules/acl-tests (Files): Add them.
13598         (Makefile.am): Add them to TESTS.
13599
13600 2011-09-04  Bruno Haible  <bruno@clisp.org>
13601
13602         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13603         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13604         10.
13605         (OLD_ALLOW, OLD_DENY): New macros.
13606         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13607         ACE_ACCESS_ALLOWED_ACE_TYPE.
13608         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13609         ACE_ACCESS_DENIED_ACE_TYPE.
13610         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13611         (NEW_ACE_EXECUTE): Fix value.
13612         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13613         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13614         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13615         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13616         NEW_ACE_SYNCHRONIZE): New macros.
13617         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13618         instead of acl_fromtext, acl_set, facl_set.
13619         Fixes a coreutils/tests/cp/perm failure.
13620
13621 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13622
13623         openat: test for fstatat (..., 0) bug
13624         Further testing with tar suggests that fstatat (..., 0)
13625         does not work in general, on AIX 7.1; see
13626         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13627         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13628         replacement fstatat (which is what older AIX releases were using
13629         anyway).
13630         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13631         use is now changed to orig_fstatat.  This was probably the right
13632         thing to do anyway.
13633         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13634         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13635         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13636         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13637         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13638         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13639         if the bug is found.
13640
13641         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13642         This tests for another fstatat bug on AIX 7.1:
13643         fstatat (AT_FDCWD, ..., 0) does not work.  See
13644         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13645         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13646         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13647         (rpl_fstatat): Adjust so that it works around either (or both)
13648         bugs if present.
13649         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13650
13651 2011-09-03  Karl Berry  <karl@gnu.org>
13652
13653         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13654         in index entries.
13655
13656 2011-09-02  Bruno Haible  <bruno@clisp.org>
13657
13658         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13659         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13660         values of AR, ARFLAGS, RANLIB.
13661         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13662
13663 2011-09-02  Bruno Haible  <bruno@clisp.org>
13664
13665         Find 'ar' program that fits with --host argument.
13666         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13667
13668 2011-09-02  Bruno Haible  <bruno@clisp.org>
13669
13670         tests: init.sh: Support any non-GNU diff.
13671         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13672         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13673         Solaris 8.
13674
13675 2011-09-02  Bruno Haible  <bruno@clisp.org>
13676
13677         tests: init.sh: work also with any non-GNU diff that supports -u
13678         * tests/init.sh: Relax check for diff -u support.
13679         Rather than checking for GNU diff via --version, simply check
13680         for support for -u itself.  Useful at least on OpenBSD 4.9,
13681         AIX 7.1, IRIX 6.5, and Solaris 10.
13682
13683 2011-09-01  Bruno Haible  <bruno@clisp.org>
13684
13685         strtoimax, strtoumax: Document problem on HP-UX 11.
13686         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13687         * doc/posix-functions/strtoumax.texi: Likewise.
13688
13689 2011-09-01  Bruno Haible  <bruno@clisp.org>
13690
13691         strtoumax: Avoid link error on OSF/1 with DTK cc.
13692         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13693         defined as a function.
13694         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13695         strtoumax is defined, not whether it is declared.
13696
13697 2011-09-01  Bruno Haible  <bruno@clisp.org>
13698
13699         strtoimax: Avoid link error on OSF/1 with DTK cc.
13700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13701         defined as a function.
13702         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13703         strtoimax is defined, not whether it is declared.
13704
13705 2011-09-01  Bruno Haible  <bruno@clisp.org>
13706
13707         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13708         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13709         as a function.
13710         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13711         whether it is declared.
13712
13713 2011-09-01  Bruno Haible  <bruno@clisp.org>
13714
13715         imaxabs: Avoid link error on OSF/1 with DTK cc.
13716         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13717         as a function.
13718         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13719         whether it is declared.
13720
13721 2011-09-01  Bruno Haible  <bruno@clisp.org>
13722
13723         Tests for module 'strtoumax'.
13724         * modules/strtoumax-tests: New file.
13725         * tests/test-strtoumax.c: New file.
13726
13727         Tests for module 'strtoimax'.
13728         * modules/strtoimax-tests: New file.
13729         * tests/test-strtoimax.c: New file.
13730
13731         Tests for module 'imaxdiv'.
13732         * modules/imaxdiv-tests: New file.
13733         * tests/test-imaxdiv.c: New file.
13734
13735         Tests for module 'imaxabs'.
13736         * modules/imaxabs-tests: New file.
13737         * tests/test-imaxabs.c: New file.
13738
13739 2011-09-01  Bruno Haible  <bruno@clisp.org>
13740
13741         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13742         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13743         pthread_create.
13744
13745 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13746
13747         openat: work around AIX 7.1 fstatat issue
13748         This should fix the problem that was not properly fixed
13749         in the previous change, dated 2011-08-30.
13750         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13751         __need_system_stat_h defined.
13752         (orig_fstatat) [HAVE_FSTATAT]: New function.
13753         (rpl_fstatat): Go back to the old way of doing things,
13754         except call orig_fstatat instead of fstatat.
13755         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13756         Remove unnecessary check whether fstatat fills in st_size etc.
13757
13758 2011-09-01  Bruno Haible  <bruno@clisp.org>
13759
13760         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13761         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13762         just include the system's header.
13763
13764 2011-08-31  Jim Meyering  <meyering@redhat.com>
13765
13766         tests: avoid spurious assertion failure in test-float.c on ppc64
13767         * tests/test-float.c (test_long_double): Comment out an assertion,
13768         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13769         with gcc-4.4.4.
13770
13771         maint: indent with spaces, not TABs
13772         I need to get in the habit of running gnulib's "make check".
13773         Both of these would have been caught.
13774         * m4/largefile.m4: Indent with spaces, not TABs.
13775         * lib/parse-datetime.y (iso_8601_time): Likewise.
13776         Spotted by Pádraig Brady.
13777
13778         test-parse-datetime.c: accommodate a relatively strict gcc warning
13779         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13780         to avoid a warning from gcc's -Werror=missing-declarations.
13781         Insert a few spaces-before-funcall-parenthesis.
13782
13783 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13784
13785         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13786         The parser now accepts ISO 8601 date-time strings with "T" as the
13787         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13788         with a space between the date and time strings.  Now it also parses
13789         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13790         variants like "2004-02-29T16:21:42.333-07:00"
13791         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13792         of day representation using the 'T' separator character.
13793         * doc/parse-datetime.texi (General date syntax): replace use of
13794         deprecated --iso-8601 option with --rfc-3339 in example of date
13795         command output formats that can be parsed.
13796         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13797         lib/parse-datetime.y.
13798         (gmt_offset): New function.
13799         (main): Add additional test cases to validate ISO8601 extended
13800         date and time of day parsing.
13801
13802 2011-08-31  Bruno Haible  <bruno@clisp.org>
13803
13804         freopen: Documentation.
13805         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13806         name.
13807         Reported by Claudio Bley <claudio.bley@gmail.com>.
13808
13809 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13810
13811         freopen: Don't crash if the filename argument is NULL.
13812         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13813         NULL.
13814
13815 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13816
13817         openat: work around AIX 7.1 fstatat bug
13818         Problem reported by Kevin Brott for GNU tar, in the thread containing
13819         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13820         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13821         FSTATAT_ST_SIZE_ETC_BROKEN.
13822         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13823         rpl_fstatat.
13824         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13825         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13826         AC_CHECK_FUNCS_ONCE for fstatat.
13827         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13828         fchmodat, mkdirat, openat and unlinkat.
13829
13830 2011-08-30  Bruno Haible  <bruno@clisp.org>
13831
13832         Avoid endless recursions if config.h includes some header files.
13833         * lib/fopen.c (__need_FILE): Define already before including config.h.
13834         * lib/freopen.c (__need_FILE): Likewise.
13835         * lib/open.c (__need_system_fcntl_h): Likewise.
13836         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13837         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13838         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13839
13840 2011-08-25  Karl Berry  <karl@gnu.org>
13841
13842         * config/srclist.txt (ylwrap): new try.
13843         * build-aux/ylwrap: new file.
13844
13845 2011-08-23  Bruno Haible  <bruno@clisp.org>
13846
13847         tmpdir: Use a good default directory on native Windows.
13848         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13849         (P_tmpdir): Default to _P_tmpdir on native Windows.
13850         (path_search): On native Windows, try the value returned by GetTempPath
13851         before trying P_tmpdir.
13852         * modules/tmpdir (Depends-on): Add pathmax.
13853         Suggested by John Darrington <john@darrington.wattle.id.au>.
13854
13855 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13856
13857         doc: fix typo in README-release
13858         * top/README-release: Capitalize first word of a sentence.
13859
13860 2011-08-19  Jim Meyering  <meyering@redhat.com>
13861
13862         fts: do not exhaust memory when processing million-entry directories
13863         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13864         directory would require about 256*N bytes of memory.  Thus, it was
13865         easy to construct a directory too large to be processed by any of
13866         those tools.  With this change, fts' maximum memory utilization is
13867         now limited to around 30MB.
13868         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13869         (fts_read): When we've processed the final entry (i.e., when
13870         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13871         using the parent entry to read any remaining entries.  Dispatch
13872         depending on what fts_build returns:
13873         - NULL+stop, aka failure: stop
13874         - NULL otherwise: move up in the dir hierarchy
13875         - non-NULL: handle this new entry
13876         (fts_build): Declare and use new local, continue_readdir.
13877         Prepare to be called from fts_read, when the entries
13878         from a partially-read directory have just been exhausted.
13879         In that case, we'll skip the opendir and instead use the parent's
13880         fts_dirp and derive dir_fd from that.
13881         Finally, in the readdir loop, if we read max_entries entries,
13882         exit the loop ensuring *not* to call closedir.  This is required
13883         so that fts_dirp can be reused on a subsequent call.
13884         Prompted by Ben England's report of memory exhaustion in find
13885         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13886
13887         maint: fts: move decl of `dp' down into while loop; split a long line
13888         * lib/fts.c (fts_build): No semantic change.
13889
13890         fts: add/use new struct member, fts_dirp
13891         We are about to use this to manage any directory with
13892         too many entries to read all of them into memory at once.
13893         To do that, we'll need to save the DIR* pointer in each
13894         affected FTSENT struct.
13895         * lib/fts_.h: Include <dirent.h>.
13896         (struct FTSENT) [fts_dirp]: New member.
13897         * lib/fts.c (closedir_and_clear): Define.
13898         Use it in place of closedir so that we are sure to
13899         clear the new fts_dirp member when done with it.
13900         (fts_alloc): Initialize the new member.
13901         (fts_lfree): Free, if needed.
13902
13903         maint: fts: give __opendir2 a new parameter and rename
13904         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13905         than surreptitiously using sole caller's "dir_fd".
13906         (fts_opendir): Rename from __opendir2.
13907
13908         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13909         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13910
13911         maint: fts.c: correct off-by-one indentation
13912         * lib/fts.c (fts_build): Correct indentation, change style
13913         of a couple of block comments, and bracing style.
13914
13915         maint: fts.c: move __opendir2 #define "up" out of function body
13916         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13917
13918         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13919         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13920         out for a long time and besides was useful only on BSD systems.
13921
13922 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         regex: port to Stratus OpenVOS
13925         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13926         define to empty, rather than attempting nonportable optimizations.
13927         Problem reported by Paul Green in:
13928         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13929         and fix suggested by Eric Blake in:
13930         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13931
13932 2011-08-17  Eric Blake  <eblake@redhat.com>
13933
13934         getcwd: fix test failures on mingw
13935         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13936         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13937         test if long directory cannot be created, and allow mingw errno.
13938
13939         getcwd-lgpl: fix m4 to match relaxed test for BSD
13940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13941         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13942         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13943         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13944         signature problem.
13945
13946         getcwd: fix compilation on mingw64
13947         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13948         getcwd.
13949         Reported by Marc-André Lureau.
13950
13951         pipe2: silence compiler warning
13952         * lib/pipe2.c (pipe2): Hide label if it is not used.
13953
13954 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13955
13956         relocatable-prog: fix link error
13957         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13958         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13959         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13960         into modules/relocatable-lib without noticing that
13961         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13962         also needs to build relocatable.c.
13963
13964 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13965
13966         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13968         shell code: it contained a 'break' that was not in a loop.
13969         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13970         via a shell-language loop; this may have been true in old Autoconf
13971         versions, but it's not true in Autoconf 2.68.  I found this bug
13972         when testing coreutils git on Solaris 8, whose shell complains
13973         about the syntax error.
13974
13975 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13976
13977         * lib/base64.c: Fix comment to reference RFC 4648.
13978         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13979         <gvtulder@gmail.com>.
13980
13981 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13984
13985         po/Makefile.in.in: fix make -q problem
13986         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13987         rule, since there's no file named 'check-macro-version' and its
13988         use as a file breaks make -q.
13989         (all): Don't depend on check-macro-version.
13990         (CHECK_MACRO_VERSION): New macro.
13991         (stamp-po): Use it.
13992
13993         configmake: fix make -q problem
13994         * modules/configmake (configmake.h): Update configmake.h's time stamp
13995         even if the file does not change.  Otherwise, 'make -q' fails.
13996         Problem reported by Simon Josefsson in
13997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13998
13999 2011-08-11  Jim Meyering  <meyering@redhat.com>
14000
14001         git-version-gen: correct the advice in a comment
14002         * build-aux/git-version-gen: Correct comment.
14003         Don't recommend to list .tarball-version in .gitignore.
14004
14005 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14006
14007         base64: fix off-by-one buffer size bug
14008         Problem and (trivial) fix reported by Gijs van Tulder in
14009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14010         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14011         * tests/test-base64.c (main): Catch the bug.
14012
14013 2011-08-10  Eric Blake  <eblake@redhat.com>
14014
14015         closein: correct comments
14016         * lib/closein.c (close_stdin): Improve comments.
14017
14018 2011-08-09  Bruno Haible  <bruno@clisp.org>
14019
14020         More tests for 'fseeko'.
14021         * tests/test-fseeko3.c: New file, from Eric Blake.
14022         * tests/test-fseeko3.sh: New file.
14023         * modules/fseeko-tests (Files): Add them.
14024         (TESTS): Add test-fseeko3.sh.
14025         (check_PROGRAMS): Add test-fseeko3.
14026
14027 2011-08-09  Eric Blake  <eblake@redhat.com>
14028
14029         fseeko: remove unneeded hack
14030         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14031
14032         fseeko: fix bug on glibc
14033         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14034         Reported by John W. Eaton.
14035
14036 2011-08-08  Bruno Haible  <bruno@clisp.org>
14037
14038         unictype/base: Fix interoperability with preinstalled libunistring.
14039         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14040         Reported by Simon Josefsson.
14041
14042 2011-08-08  Bruno Haible  <bruno@clisp.org>
14043
14044         iswblank: Detect declaration correctly.
14045         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14046         AC_CHECK_DECLS invocation.
14047
14048 2011-08-08  Bruno Haible  <bruno@clisp.org>
14049
14050         tcgetsid: Detect declaration correctly.
14051         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14052         AC_CHECK_DECLS invocation.
14053         Reported by Simon Josefsson.
14054
14055 2011-08-08  Eric Blake  <eblake@redhat.com>
14056
14057         largefile: fix typo that regressed large file support
14058         * modules/largefile (configure.ac-early): Fix section name.
14059
14060 2011-08-06  Karl Berry  <karl@gnu.org>
14061
14062         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14063         a separate module.
14064
14065 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14066
14067         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14068         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14069         get prototype for free.
14070
14071 2011-08-04  Bruno Haible  <bruno@clisp.org>
14072
14073         Tests for module 'pathmax'.
14074         * modules/pathmax-tests: New file.
14075         * tests/test-pathmax.c: New file.
14076
14077         canonicalize-lgpl: Support larger filenames on the Hurd.
14078         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14079         Reported by Paul Eggert.
14080
14081         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14082         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14083         * lib/chdir-long.h: Include pathmax.h.
14084         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14085         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14086         (PATH_MAX): Remove code that is done by pathmax.h.
14087         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14088         * lib/tmpfile.c: Add a comment.
14089         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14090         * modules/chdir-long (Depends-on): Add pathmax.
14091         * modules/getcwd (Depends-on): Add pathmax.
14092         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14093         is not defined.
14094         * doc/posix-headers/limits.texi: Mention the pathmax module.
14095         * NEWS: Mention the change.
14096
14097 2011-08-02  Bruno Haible  <bruno@clisp.org>
14098
14099         pthread_sigmask: Actually use results of gl_THREADLIB.
14100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14101         gl_THREADLIB, not gl_[]THREADLIB.
14102         Reported by Eric Blake.
14103
14104 2011-08-02  Jim Meyering  <meyering@redhat.com>
14105
14106         maint.mk: relax the default _gl_TS_function_match regexp
14107         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14108         space between function name and "(" in an "extern" declaration.
14109         That would fail to match a decl with no space there: extern void foo();
14110
14111 2011-07-31  Iain Nicol  <iain@thenicols.net>
14112
14113         git-version-gen: document that EXTRA_DIST must include .version
14114         * build-aux/git-version-gen: In the how-to-use comment, document
14115         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14116         will fail when run from an unpacked distribution tarball.
14117
14118 2011-08-01  Bruno Haible  <bruno@clisp.org>
14119
14120         wctype-h: Fix last change.
14121         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14122         REPLACE_TOWLOWER to 0.
14123         Reported by Sam Steingold <sds@gnu.org>.
14124
14125 2011-07-31  Bruno Haible  <bruno@clisp.org>
14126
14127         frexpl: Update autoconf test.
14128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14129         according to changes of 2011-06-20.
14130
14131 2011-07-31  Bruno Haible  <bruno@clisp.org>
14132
14133         sys_utsname: Add support for Minix.
14134         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14135         <sys/utsname.h>.
14136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14137         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14138
14139 2011-07-31  Bruno Haible  <bruno@clisp.org>
14140
14141         strings: Add support for Minix.
14142         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14143         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14144         * doc/posix-headers/strings.texi: Document the Minix problem.
14145
14146 2011-07-31  Bruno Haible  <bruno@clisp.org>
14147
14148         wctype-h: Add support for Minix.
14149         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14150         REPLACE_TOWLOWER.
14151         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14152         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14153         REPLACE_ISWCNTRL.
14154
14155 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14158         This is a performance improvement for 64-bit hosts: it causes the
14159         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14160
14161 2011-07-31  Bruno Haible  <bruno@clisp.org>
14162
14163         stdioext: Add support for Minix.
14164         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14165         * lib/fpurge.c (fpurge): Likewise.
14166         * lib/freadahead.c (freadahead): Likewise.
14167         * lib/freadable.c (freadable): Likewise.
14168         * lib/freading.c (freading): Likewise.
14169         * lib/freadptr.c (freadptr): Likewise.
14170         * lib/freadseek.c (freadptrinc): Likewise.
14171         * lib/fseeko.c (rpl_fseeko): Likewise.
14172         * lib/fseterr.c (fseterr): Likewise.
14173         * lib/fwritable.c (fwritable): Likewise.
14174         * lib/fwriting.c (fwriting): Likewise.
14175         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14176         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14177
14178 2011-07-31  Bruno Haible  <bruno@clisp.org>
14179
14180         errno: Port to Minix.
14181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14182         ECONNABORTED are defined.
14183         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14184         GNULIB_defined_ECONNABORTED): New macros.
14185         * lib/strerror-override.h (strerror_override): Test also
14186         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14187         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14188         ECONNABORTED.
14189         * doc/posix-headers/errno.texi: Mention the Minix problem.
14190
14191 2011-07-31  Bruno Haible  <bruno@clisp.org>
14192
14193         Work around declaration collisions on Minix.
14194         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14195         defined, set REPLACE_MBSINIT.
14196         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14197         defined, set REPLACE_MBRTOWC.
14198         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14199         set REPLACE_MBRLEN.
14200         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14201         defined, set REPLACE_MBSRTOWCS.
14202         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14203         defined, set REPLACE_WCRTOMB.
14204         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14205         defined, set REPLACE_WCSRTOMBS.
14206
14207 2011-07-31  Bruno Haible  <bruno@clisp.org>
14208
14209         Add support for Minix with ACK compiler.
14210         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14211         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14212         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14213
14214 2011-07-31  Bruno Haible  <bruno@clisp.org>
14215
14216         Documentation about Minix.
14217         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14218         * doc/glibc-headers/*.texi: Likewise.
14219         * doc/posix-functions/*.texi: Likewise.
14220         * doc/glibc-functions/*.texi: Likewise.
14221
14222 2011-07-31  Bruno Haible  <bruno@clisp.org>
14223
14224         snippet/warn-on-use: Fix indentation.
14225         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14226
14227 2011-07-25  Jim Meyering  <meyering@redhat.com>
14228
14229         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14230         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14231         commands.
14232
14233 2011-07-27  Jim Meyering  <meyering@redhat.com>
14234
14235         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14236         * top/maint.mk (gl_extract_significant_defines_): Now that
14237         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14238         gnulib/lib/signal.in.h, and now that we recommend to
14239         define-if-undefined those two symbols in application code,
14240         we must filter them out of the "significant" list.
14241         This avoids a "make syntax-check" failure in coreutils.
14242
14243 2011-07-26  Eric Blake  <eblake@redhat.com>
14244
14245         warnings: add comments about previous patch
14246         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14247         * m4/include_next.m4: Likewise.
14248         * m4/warn-on-use.m4: Likewise.
14249         * m4/warnings.m4: Likewise, and simplify use.
14250         Suggested by Stefano Lattarini.
14251
14252         include-next, warnings: support older autoconf
14253         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14254         AS_VAR_PUSHDEF in a way that works with older autoconf.
14255         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14256         Reported by Daniel P. Berrange.
14257
14258 2011-07-25  Bruno Haible  <bruno@clisp.org>
14259
14260         fseek, ftell: Fix doc.
14261         * doc/posix-functions/fseek.texi: Reword statement about
14262         AC_SYS_LARGEFILE.
14263         * doc/posix-functions/ftell.texi: Likewise.
14264
14265 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14266             Bruno Haible  <bruno@clisp.org>
14267
14268         Add dependencies to the 'largefile' module.
14269         * modules/fopen (Depends-on): Add 'largefile'.
14270         * modules/freopen (Depends-on): Likewise.
14271         * modules/fseeko (Depends-on): Likewise.
14272         * modules/ftello (Depends-on): Likewise.
14273         * modules/glob (Depends-on): Likewise.
14274         * modules/lseek (Depends-on): Likewise.
14275         * modules/lstat (Depends-on): Likewise.
14276         * modules/mkostemp (Depends-on): Likewise.
14277         * modules/mkostemps (Depends-on): Likewise.
14278         * modules/mkstemp (Depends-on): Likewise.
14279         * modules/mkstemps (Depends-on): Likewise.
14280         * modules/open (Depends-on): Likewise.
14281         * modules/openat (Depends-on): Likewise.
14282         * modules/pread (Depends-on): Likewise.
14283         * modules/pwrite (Depends-on): Likewise.
14284         * modules/scandir (Depends-on): Likewise.
14285         * modules/stat (Depends-on): Likewise.
14286         * modules/tmpfile (Depends-on): Likewise.
14287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14288         since the containing module now depends on the largefile module.
14289         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14290         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14291         off_t is fixed by gnulib.
14292         * doc/posix-functions/freopen.texi: Likewise.
14293         * doc/posix-functions/fseeko.texi: Likewise.
14294         * doc/posix-functions/fstatat.texi: Likewise.
14295         * doc/posix-functions/ftello.texi: Likewise.
14296         * doc/posix-functions/glob.texi: Likewise.
14297         * doc/posix-functions/lseek.texi: Likewise.
14298         * doc/posix-functions/lstat.texi: Likewise.
14299         * doc/posix-functions/mkstemp.texi: Likewise.
14300         * doc/posix-functions/open.texi: Likewise.
14301         * doc/posix-functions/openat.texi: Likewise.
14302         * doc/posix-functions/pread.texi: Likewise.
14303         * doc/posix-functions/pwrite.texi: Likewise.
14304         * doc/posix-functions/scandir.texi: Likewise.
14305         * doc/posix-functions/stat.texi: Likewise.
14306         * doc/posix-functions/tmpfile.texi: Likewise.
14307         * doc/glibc-functions/mkostemp.texi: Likewise.
14308         * doc/glibc-functions/mkostemps.texi: Likewise.
14309         * doc/glibc-functions/mkstemps.texi: Likewise.
14310
14311 2011-07-25  Bruno Haible  <bruno@clisp.org>
14312
14313         fcntl: Move AC_LIBOBJ invocation to module description.
14314         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14315         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14316
14317         fcntl: Remove call-in from fchdir.m4.
14318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14320
14321         dup3: Remove potential call-in from fchdir.m4.
14322         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14324
14325         dup2: Move AC_LIBOBJ invocation to module description.
14326         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14327         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14328         Don't invoke AC_LIBOBJ.
14329         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14330
14331         dup2: Remove call-in from fchdir.m4.
14332         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14334
14335         fclose: Move AC_LIBOBJ invocation to module description.
14336         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14337         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14338         to 1.
14339         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14340
14341         fclose: Remove call-in from close.m4.
14342         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14343         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14344
14345         close: Move AC_LIBOBJ invocation to module description.
14346         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14347         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14348         1.
14349         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14350
14351         close: Remove call-in from fchdir.m4.
14352         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14354
14355         open: Move AC_LIBOBJ invocation to module description.
14356         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14357         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14358         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14359
14360         open: Remove call-in from fchdir.m4.
14361         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14363
14364         fchdir: Start to remove gl_REPLACE_* idiom.
14365         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14366         (gl_FUNC_FCHDIR): Invoke it.
14367
14368 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14369
14370         * lib/ftell.c (ftell): Comment out cast.
14371
14372         close: use gl_REPLACE_FCLOSE only if defined
14373         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14374         is defined.  The close module doesn't depend on the fclose module
14375         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14377         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14378
14379 2011-07-24  Jim Meyering  <meyering@redhat.com>
14380
14381         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14382         * tests/test-select.h (test_function): Declare as "static".
14383
14384 2011-07-24  Bruno Haible  <bruno@clisp.org>
14385
14386         doc: Mention the effects of AC_SYS_LARGEFILE.
14387         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14388         on this function.
14389         * doc/posix-functions/aio_error.texi: Likewise.
14390         * doc/posix-functions/aio_fsync.texi: Likewise.
14391         * doc/posix-functions/aio_read.texi: Likewise.
14392         * doc/posix-functions/aio_return.texi: Likewise.
14393         * doc/posix-functions/aio_suspend.texi: Likewise.
14394         * doc/posix-functions/aio_write.texi: Likewise.
14395         * doc/posix-functions/fgetpos.texi: Likewise.
14396         * doc/posix-functions/fopen.texi: Likewise.
14397         * doc/posix-functions/freopen.texi: Likewise.
14398         * doc/posix-functions/fsetpos.texi: Likewise.
14399         * doc/posix-functions/fstatvfs.texi: Likewise.
14400         * doc/posix-functions/ftruncate.texi: Likewise.
14401         * doc/posix-functions/ftw.texi: Likewise.
14402         * doc/posix-functions/getrlimit.texi: Likewise.
14403         * doc/posix-functions/glob.texi: Likewise.
14404         * doc/posix-functions/lio_listio.texi: Likewise.
14405         * doc/posix-functions/lockf.texi: Likewise.
14406         * doc/posix-functions/mkstemp.texi: Likewise.
14407         * doc/posix-functions/mmap.texi: Likewise.
14408         * doc/posix-functions/nftw.texi: Likewise.
14409         * doc/posix-functions/openat.texi: Likewise.
14410         * doc/posix-functions/opendir.texi: Likewise.
14411         * doc/posix-functions/posix_fadvise.texi: Likewise.
14412         * doc/posix-functions/posix_fallocate.texi: Likewise.
14413         * doc/posix-functions/pread.texi: Likewise.
14414         * doc/posix-functions/pwrite.texi: Likewise.
14415         * doc/posix-functions/readdir.texi: Likewise.
14416         * doc/posix-functions/readdir_r.texi: Likewise.
14417         * doc/posix-functions/rewinddir.texi: Likewise.
14418         * doc/posix-functions/scandir.texi: Likewise.
14419         * doc/posix-functions/seekdir.texi: Likewise.
14420         * doc/posix-functions/setrlimit.texi: Likewise.
14421         * doc/posix-functions/statvfs.texi: Likewise.
14422         * doc/posix-functions/telldir.texi: Likewise.
14423         * doc/posix-functions/tmpfile.texi: Likewise.
14424         * doc/posix-functions/truncate.texi: Likewise.
14425         * doc/glibc-functions/fallocate.texi: Likewise.
14426         * doc/glibc-functions/fstatfs.texi: Likewise.
14427         * doc/glibc-functions/fts_children.texi: Likewise.
14428         * doc/glibc-functions/fts_read.texi: Likewise.
14429         * doc/glibc-functions/getdirentries.texi: Likewise.
14430         * doc/glibc-functions/mkostemp.texi: Likewise.
14431         * doc/glibc-functions/mkostemps.texi: Likewise.
14432         * doc/glibc-functions/mkstemps.texi: Likewise.
14433         * doc/glibc-functions/preadv.texi: Likewise.
14434         * doc/glibc-functions/pwritev.texi: Likewise.
14435         * doc/glibc-functions/sendfile.texi: Likewise.
14436         * doc/glibc-functions/statfs.texi: Likewise.
14437
14438 2011-07-24  Bruno Haible  <bruno@clisp.org>
14439
14440         doc: Fix typo.
14441         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14442
14443 2011-07-24  Bruno Haible  <bruno@clisp.org>
14444
14445         doc: Mention fsusage.
14446         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14447
14448 2011-07-24  Bruno Haible  <bruno@clisp.org>
14449
14450         doc: Mention new glibc headers and functions.
14451         * doc/glibc-headers/gshadow.texi: New file.
14452         * doc/glibc-functions/endsgent.texi: New file.
14453         * doc/glibc-functions/fgetsgent.texi: New file.
14454         * doc/glibc-functions/fgetsgent_r.texi: New file.
14455         * doc/glibc-functions/getsgent.texi: New file.
14456         * doc/glibc-functions/getsgent_r.texi: New file.
14457         * doc/glibc-functions/getsgnam.texi: New file.
14458         * doc/glibc-functions/getsgnam_r.texi: New file.
14459         * doc/glibc-functions/putsgent.texi: New file.
14460         * doc/glibc-functions/setsgent.texi: New file.
14461         * doc/glibc-functions/sgetsgent.texi: New file.
14462         * doc/glibc-functions/sgetsgent_r.texi: New file.
14463         * doc/glibc-functions/malloc_info.texi: New file.
14464         * doc/glibc-functions/preadv.texi: New file.
14465         * doc/glibc-functions/pwritev.texi: New file.
14466         * doc/glibc-functions/register_printf_modifier.texi: New file.
14467         * doc/glibc-functions/register_printf_specifier.texi: New file.
14468         * doc/glibc-functions/register_printf_type.texi: New file.
14469         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14470         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14471         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14472         * doc/glibc-functions/pthread_getname_np.texi: New file.
14473         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14474         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14475         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14476         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14477         * doc/glibc-functions/pthread_setname_np.texi: New file.
14478         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14479         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14480         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14481         * doc/glibc-functions/qsort_r.texi: New file.
14482         * doc/glibc-functions/quick_exit.texi: New file.
14483         * doc/glibc-functions/syncfs.texi: New file.
14484         * doc/gnulib.texi: Include them.
14485         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14486         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14487         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14488         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14489         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14490         * doc/glibc-functions/execvpe.texi: Likewise.
14491
14492 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14493
14494         ftell: don't include <unistd.h>
14495         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14496         guaranteed to define off_t, and the ftell module depends on the
14497         stdio module.
14498
14499         ftell: do not assume wraparound signed arithmetic
14500         * lib/ftell.c: Include <limits.h>.
14501         (ftell): Don't assume wraparound signed arithmetic.
14502
14503 2011-07-24  Bruno Haible  <bruno@clisp.org>
14504
14505         close: No longer depend on module 'fclose'.
14506         * modules/close (Depends-on): Remove fclose.
14507         * NEWS: Mention the change.
14508         Suggested by Sam Steingold <sds@gnu.org>.
14509
14510 2011-07-24  Bruno Haible  <bruno@clisp.org>
14511
14512         fsusage: Enable large volume support on AIX >= 5.2.
14513         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14514         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14515         instead of STAT_STATVFS.
14516         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14517
14518         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14520         f_blocks field only on MacOS X.
14521
14522         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14524         * modules/fsusage (Depends-on): Add largefile.
14525
14526 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14527
14528         * README: Modernize discussion of signed integers.
14529         Assuming overflow wraparound is no longer safe.
14530         Mention ones' complement and signed magnitude.
14531
14532 2011-07-22  Bruno Haible  <bruno@clisp.org>
14533
14534         select tests, pselect tests: Refactor.
14535         * tests/test-select.h: New file, extracted from tests/test-select.c.
14536         (select_fn): New type.
14537         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14538         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14539         test_pipe): Add my_select argument.
14540         (test_function): Renamed from main. Add my_select argument.
14541         * tests/test-select.c: Move most code to tests/test-select.h. Include
14542         test-select.h.
14543         * modules/select-tests (Files): Add tests/test-select.h.
14544         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14545         (my_select, main): New functions.
14546         * modules/pselect-tests (Files): Add tests/test-select.h,
14547         tests/macros.h, tests/signature.h.
14548         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14549         (configure.ac): Check for <sys/wait.h>.
14550
14551 2011-07-22  Bruno Haible  <bruno@clisp.org>
14552
14553         sys_select tests: Check the signature of FD_*.
14554         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14555         signature tests from here...
14556         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14557         here.
14558         * modules/sys_select-tests (Files): Add tests/signature.h.
14559
14560 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         largefile: new module, replacing large-inode
14563         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14564         * MODULES.html.sh: Add largefile, remove large-inode.
14565         * modules/largefile, m4/largefile.m4: New files.
14566         * modules/large-inode, m4/large-inode.m4: Remove.
14567
14568         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14570         implementations that use only 32 bits to count blocks.
14571         On typical hosts with 1024-byte blocks, this fails with file
14572         systems as small as 4 TiB.  Problem reported by Herb Wartens
14573         <http://debbugs.gnu.org/9140> and this should also fix a similar
14574         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14575
14576         large-inode: New module
14577         * MODULES.html.sh: Add it.
14578         * modules/large-inode, m4/large-inode.m4: New files.
14579
14580         extensions: Enable extensions on MacOS X 10.5 and later.
14581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14582
14583 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14584
14585         file-has-acl: use acl_extended_file_nofollow if available
14586         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14587         (acl_extended_file): New macro.
14588         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14589         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14590
14591 2011-07-21  Bruno Haible  <bruno@clisp.org>
14592
14593         Declare system functions in a way that works with C++.
14594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14595         declare fdopendir as extern "C".
14596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14597         declare frexpl as extern "C".
14598         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14599         declare gai_strerror as extern "C".
14600         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14601         programs, declare gai_strerror as extern "C".
14602         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14603         declare getlogin_r as extern "C".
14604         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14605         as extern "C".
14606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14607         declare ldexpl as extern "C".
14608         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14609         as extern "C".
14610         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14611         program, declare getmntinfo as extern "C".
14612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14613         stpncpy as extern "C".
14614         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14615         program, declare __xpg_strerror_r as extern "C".
14616         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14617         strndup as extern "C".
14618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14619         declare memset and bzero as extern "C".
14620         Reported by Sam Steingold <sds@gnu.org>.
14621
14622 2011-07-12  Jim Meyering  <meyering@redhat.com>
14623
14624         maint.mk: prohibit inclusion of "verify.h" without use
14625         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14626
14627 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14628
14629         timer-time: A new module to check for timer_settime()
14630         * m4/timer_time.m4: Check for the posix function.
14631         * modules/timer-time: Add the new module.
14632         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14633         Mention it.
14634
14635 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14636             Bruno Haible  <bruno@clisp.org>
14637
14638         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14639         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14640         not defined, assume POSIX threads and look for pthread_sigmask in
14641         $LIBS, without changing $CPPFLAGS.
14642
14643 2011-07-19  Bruno Haible  <bruno@clisp.org>
14644
14645         strstr: Update cross-compilation guess.
14646         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14647         CPUs, guess no, in view of glibc
14648         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14649         Suggested by Eric Blake. Reported by Reuben Thomas.
14650
14651 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14652
14653         getopt-gnu: suppress core dumps from detection code
14654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14655         to suppress core dumps that may well occur on glibc systems.
14656         * modules/getopt-gnu: Depend on nocrash.
14657
14658 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14659
14660         pthread_sigmask: ensure usleep is declared
14661         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14662         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14663
14664 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14665
14666         doc: Document NonStop portability issues.
14667         * doc/posix-functions/sigaction.texi (sigaction):
14668         * doc/posix-headers/signal.texi (signal.h):
14669         Document NonStop.  See Joachim Schmitz in
14670         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14671
14672 2011-07-15  Bruno Haible  <bruno@clisp.org>
14673
14674         ffsl, ffsll: Avoid unportable behaviour.
14675         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14676
14677 2011-07-15  Bruno Haible  <bruno@clisp.org>
14678
14679         ffs: More tests.
14680         * tests/test-ffs.c (NBITS): New macro.
14681         (main): Add more tests.
14682         * tests/test-ffsl.c (NBITS): New macro.
14683         (main): Add more tests.
14684         * tests/test-ffsll.c (NBITS): New macro.
14685         (main): Add more tests.
14686
14687 2011-07-15  Eric Blake  <eblake@redhat.com>
14688
14689         ffsl, ffsll: new modules
14690         * modules/ffsl: New file.
14691         * modules/ffsll: Likewise.
14692         * m4/ffsl.m4: Likewise.
14693         * m4/ffsll.m4: Likewise.
14694         * lib/ffsl.c: Likewise.
14695         * lib/ffsl.h: Likewise.
14696         * lib/ffsll.c: Likewise.
14697         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14698         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14699         * modules/string (Makefile.am): Substitute witnesses.
14700         * lib/strings.in.h (ffsl, ffsll): Declare.
14701         * modules/ffsl-tests: New test file.
14702         * modules/ffsll-tests: Likewise.
14703         * tests/test-ffsl.c: Likewise.
14704         * tests/test-ffsll.c: Likewise.
14705         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14706         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14707         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14708
14709         ffs: fix m4 prerequisite
14710         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14711
14712         ffs: avoid undefined behavior
14713         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14714         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14715         Reported by Bruno Haible.
14716
14717 2011-07-12  Bruno Haible  <bruno@clisp.org>
14718
14719         pthread_sigmask: Rely on module 'threadlib'.
14720         * modules/pthread_sigmask (Depends-on): Add threadlib.
14721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14722         is defined.
14723
14724 2011-07-12  Bruno Haible  <bruno@clisp.org>
14725
14726         regex: Depend on module 'strcase'.
14727         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14728
14729 2011-07-12  Jim Meyering  <meyering@redhat.com>
14730
14731         warn-on-use: fix typo in file name
14732         * modules/snippet/warn-on-use (Files): Correct file name:
14733         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14734
14735 2011-07-12  Bruno Haible  <bruno@clisp.org>
14736
14737         strings: Document module.
14738         * doc/posix-headers/strings.texi: Mention module 'strings'.
14739
14740 2011-07-12  Bruno Haible  <bruno@clisp.org>
14741
14742         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14743         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14744         (Files, Makefile.am): Update.
14745         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14746         * modules/stdlib (Depends-on): Update.
14747
14748 2011-07-12  Bruno Haible  <bruno@clisp.org>
14749
14750         * NEWS: Mention the changes.
14751
14752         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14753         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14754         (Files, Makefile.am): Update.
14755         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14756         * modules/arpa_inet (Depends-on): Update.
14757         * modules/ctype (Depends-on): Update.
14758         * modules/dirent (Depends-on): Update.
14759         * modules/fcntl-h (Depends-on): Update.
14760         * modules/glob (Depends-on): Update.
14761         * modules/iconv-h (Depends-on): Update.
14762         * modules/inttypes-incomplete (Depends-on): Update.
14763         * modules/langinfo (Depends-on): Update.
14764         * modules/locale (Depends-on): Update.
14765         * modules/math (Depends-on): Update.
14766         * modules/netdb (Depends-on): Update.
14767         * modules/poll-h (Depends-on): Update.
14768         * modules/pty (Depends-on): Update.
14769         * modules/search (Depends-on): Update.
14770         * modules/signal (Depends-on): Update.
14771         * modules/spawn (Depends-on): Update.
14772         * modules/stdio (Depends-on): Update.
14773         * modules/stdlib (Depends-on): Update.
14774         * modules/string (Depends-on): Update.
14775         * modules/strings (Depends-on): Update.
14776         * modules/sys_file (Depends-on): Update.
14777         * modules/sys_ioctl (Depends-on): Update.
14778         * modules/sys_select (Depends-on): Update.
14779         * modules/sys_socket (Depends-on): Update.
14780         * modules/sys_stat (Depends-on): Update.
14781         * modules/sys_time (Depends-on): Update.
14782         * modules/sys_times (Depends-on): Update.
14783         * modules/sys_utsname (Depends-on): Update.
14784         * modules/sys_wait (Depends-on): Update.
14785         * modules/termios (Depends-on): Update.
14786         * modules/time (Depends-on): Update.
14787         * modules/unistd (Depends-on): Update.
14788         * modules/wchar (Depends-on): Update.
14789         * modules/wctype-h (Depends-on): Update.
14790         * MODULES.html.sh (Support for building libraries and executables):
14791         Update.
14792
14793         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14794         * modules/snippet/unused-parameter: Renamed from
14795         modules/unused-parameter.
14796         (Files, Makefile.am): Update.
14797         * build-aux/snippet/unused-parameter.h: Renamed from
14798         build-aux/unused-parameter.h.
14799         * modules/selinux-h (Depends-on): Update.
14800         * modules/unistr/base (Depends-on): Update.
14801         * MODULES.html.sh (Core language properties): Update.
14802
14803         Rename module 'link-warning' to 'snippet/link-warning'.
14804         * modules/snippet/link-warning: Renamed from modules/link-warning.
14805         (Files, Makefile.am): Update.
14806         * build-aux/snippet/link-warning.h: Renamed from
14807         build-aux/link-warning.h.
14808         * MODULES.html.sh (Support for building libraries and executables):
14809         Update.
14810
14811         Rename module 'c++defs' to 'snippet/c++defs'.
14812         * modules/snippet/c++defs: Renamed from modules/c++defs.
14813         (Files, Makefile.am): Update.
14814         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14815         * modules/arpa_inet (Depends-on): Update.
14816         * modules/ctype (Depends-on): Update.
14817         * modules/dirent (Depends-on): Update.
14818         * modules/fcntl-h (Depends-on): Update.
14819         * modules/glob (Depends-on): Update.
14820         * modules/iconv-h (Depends-on): Update.
14821         * modules/langinfo (Depends-on): Update.
14822         * modules/locale (Depends-on): Update.
14823         * modules/math (Depends-on): Update.
14824         * modules/netdb (Depends-on): Update.
14825         * modules/poll-h (Depends-on): Update.
14826         * modules/pty (Depends-on): Update.
14827         * modules/search (Depends-on): Update.
14828         * modules/signal (Depends-on): Update.
14829         * modules/spawn (Depends-on): Update.
14830         * modules/stdio (Depends-on): Update.
14831         * modules/stdlib (Depends-on): Update.
14832         * modules/string (Depends-on): Update.
14833         * modules/strings (Depends-on): Update.
14834         * modules/sys_ioctl (Depends-on): Update.
14835         * modules/sys_select (Depends-on): Update.
14836         * modules/sys_socket (Depends-on): Update.
14837         * modules/sys_stat (Depends-on): Update.
14838         * modules/sys_time (Depends-on): Update.
14839         * modules/sys_wait (Depends-on): Update.
14840         * modules/termios (Depends-on): Update.
14841         * modules/time (Depends-on): Update.
14842         * modules/unistd (Depends-on): Update.
14843         * modules/wchar (Depends-on): Update.
14844         * modules/wctype-h (Depends-on): Update.
14845
14846         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14847         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14848         (Files, Makefile.am): Update.
14849         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14850         * modules/argv-iter (Depends-on): Update.
14851         * modules/arpa_inet (Depends-on): Update.
14852         * modules/dirent (Depends-on): Update.
14853         * modules/fcntl-h (Depends-on): Update.
14854         * modules/fnmatch (Depends-on): Update.
14855         * modules/getopt-posix (Depends-on): Update.
14856         * modules/glob (Depends-on): Update.
14857         * modules/iconv-h (Depends-on): Update.
14858         * modules/inttypes-incomplete (Depends-on): Update.
14859         * modules/locale (Depends-on): Update.
14860         * modules/math (Depends-on): Update.
14861         * modules/netdb (Depends-on): Update.
14862         * modules/search (Depends-on): Update.
14863         * modules/signal (Depends-on): Update.
14864         * modules/spawn (Depends-on): Update.
14865         * modules/stdio (Depends-on): Update.
14866         * modules/stdlib (Depends-on): Update.
14867         * modules/string (Depends-on): Update.
14868         * modules/strings (Depends-on): Update.
14869         * modules/sys_socket (Depends-on): Update.
14870         * modules/sys_stat (Depends-on): Update.
14871         * modules/sys_time (Depends-on): Update.
14872         * modules/sys_times (Depends-on): Update.
14873         * modules/sys_utsname (Depends-on): Update.
14874         * modules/time (Depends-on): Update.
14875         * modules/unistd (Depends-on): Update.
14876         * modules/wchar (Depends-on): Update.
14877         * MODULES.html.sh (Support for building libraries and executables):
14878         Update.
14879
14880 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14881
14882         Improvements on _Noreturn and related modules.
14883
14884         modules/_Exit-tests: test _Noreturn too
14885         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14886         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14887         (main): Use them.
14888
14889         stdnoreturn, stdnoreturn-tests: remove modules
14890         They're not needed here and a bit premature for use elsewhere.  See
14891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14892         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14893         * tests/test-stdnoreturn.c: Remove files.
14894         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14895         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14896         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14897         and using noreturn.
14898         * modules/openat, modules/sigpipe-die, modules/xalloc:
14899         * modules/xmemdup0, modules/xstrtol:
14900         Remove dependency on stdnoreturn.
14901
14902         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14903         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14904         Reparenthesize to avoid GCC warning.
14905         Support Microsoft's syntax.
14906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14907
14908         _Noreturn-tests: remove module
14909         * modules/_Noreturn-tests: Remove.
14910         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14911         * tests/test-_Noreturn.c: Remove.
14912         * tests/test-stdnoreturn.c: Merge from the old
14913         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14914
14915 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         _Noreturn, stdnoreturn, and related modules.
14918
14919         * top/maint.mk: Adjust to new noreturn support.
14920         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14921         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14922
14923         xalloc: use stdnoreturn.h
14924         * lib/xalloc.h: Include <stdnoreturn.h>.
14925         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14926         * modules/xalloc (Depends-on): Add stdnoreturn.
14927
14928         xstrtol: use stdnoreturn.h
14929         * lib/xstrtol.h: Include <stdnoreturn.h>.
14930         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14931         * modules/xstrtol (Depends-on): Add stdnoreturn.
14932
14933         xmemdup0: use stdnoreturn.h
14934         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14935         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14936         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14937
14938         sigpipe-die: use stdnoreturn.h
14939         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14940         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14941         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14942
14943         openat: use stdnoreturn.h
14944         * lib/openat.h: Include <stdnoreturn.h>.
14945         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14946         * modules/openat (Depends-on): Add stdnoreturn.
14947
14948         * lib/openat-die.c (openat_save_fail): Modernize comment.
14949
14950         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14951
14952         * lib/glthread/thread.h: Modernize comment.
14953
14954         obstack: use _Noreturn
14955         * lib/obstack.c (__attribute__): Remove macro.
14956         (print_and_abort): Use _Noreturn.
14957
14958         c-stack: use _Noreturn
14959         * lib/c-stack.c (die, overflow_handler, segv_handler):
14960         Use _Noreturn rather than __attribute__((noreturn)).
14961
14962         argmatch-tests, exclude_tests: use _Noreturn
14963         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14964         Remove.
14965         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14966
14967         stdlib: use _Noreturn
14968         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14969         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14970         * modules/stdlib (Depends-on): Add _Noreturn.
14971         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14972
14973         stdnoreturn-tests: new module
14974         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14975
14976         stdnoreturn: new module
14977         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14978         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14979
14980         _Noreturn-tests: new module
14981         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14982
14983         _Noreturn: new module
14984         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14985         New section, mentioning it.
14986         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14987
14988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14989
14990 2011-07-11  Eric Blake  <eblake@redhat.com>
14991
14992         ffs: new module
14993         * modules/ffs: New file.
14994         * m4/ffs.m4: Likewise.
14995         * lib/ffs.c: Likewise.
14996         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14997         * modules/strings (Makefile.am): Substitute witness.
14998         (Depends-on): Add c++defs.
14999         * lib/strings.in.h (ffs): Declare.
15000         * modules/ffs-tests: New test file.
15001         * tests/test-ffs.c: Test new module.
15002         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15003         * doc/posix-functions/ffs.texi (ffs): Likewise.
15004
15005         regex: avoid compiler warning
15006         * lib/regex.c (includes): Include <strings.h>, for use of
15007         strcasecmp in regcomp.c.
15008         Reported by Joachim Schmitz.
15009
15010 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15011
15012         stdint: respect system's intmax_t if INTMAX_MAX
15013         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15014         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15015         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15016         long but int64_t is long long, and where we will clash with the
15017         system intmax_t if we override it.  See
15018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15019         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15020         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15021         similarly for UINTMAX_C.
15022
15023 2011-07-08  Bruno Haible  <bruno@clisp.org>
15024
15025         pthread_sigmask tests: Avoid a compiler warning.
15026         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15027         non-zero.
15028
15029         sigprocmask tests: A better way to avoid a compiler warning.
15030         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15031         (main): Complain if system() returns non-zero.
15032         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15033
15034 2011-07-08  Bruno Haible  <bruno@clisp.org>
15035
15036         pthread_sigmask: Work around IRIX bug.
15037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15038         bug.
15039         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15040         there may be unblocked pending signals.
15041         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15042
15043 2011-07-08  Bruno Haible  <bruno@clisp.org>
15044
15045         pthread_sigmask: Work around Cygwin bug.
15046         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15047         bug.
15048         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15049         the system's pthread_sigmask function.
15050         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15051
15052 2011-07-08  Bruno Haible  <bruno@clisp.org>
15053
15054         pthread_sigmask: Work around bug in single-threaded implementation.
15055         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15056         FreeBSD, HP-UX, Solaris bug.
15057         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15058         * lib/pthread_sigmask.c: Include <stddef.h>.
15059         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15060         the system's pthread_sigmask function.
15061         * modules/pthread_sigmask (configure.ac): Invoke
15062         gl_PREREQ_PTHREAD_SIGMASK.
15063         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15064         HP-UX, Solaris.
15065
15066 2011-07-08  Eric Blake  <eblake@redhat.com>
15067
15068         test-sigprocmask: avoid compiler warning
15069         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15070         * tests/test-sigprocmask.c (main): Use it to silence warning.
15071         Reported by Jim Meyering.
15072
15073         test-snprintf: avoid compiler warning
15074         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15075         * tests/test-vsnprintf.c (main): Likewise.
15076         Reported by Jim Meyering.
15077
15078 2011-07-08  Bruno Haible  <bruno@clisp.org>
15079
15080         Tests for module 'pthread_sigmask'.
15081         * modules/pthread_sigmask-tests: New file.
15082         * tests/test-pthread_sigmask1.c: New file, based on
15083         tests/test-sigprocmask.c.
15084         * tests/test-pthread_sigmask2.c: New file.
15085
15086 2011-07-08  Jim Meyering  <meyering@redhat.com>
15087
15088         test-getopt.h: avoid warning about an unused variable
15089         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15090
15091 2011-07-07  Jim Meyering  <meyering@redhat.com>
15092
15093         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15094         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15095         now that it no longer contains leading TABs.
15096         Remove unused "url=FIXME" statement.
15097
15098 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15099
15100         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15101         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15102         When gl_THREADLIB is not in use, assume that the POSIX sematics
15103         are desired.  This is better for Emacs, which uses POSIX semantics
15104         on GNUish and/or POSIXish platforms, and does not use threads at
15105         all otherwise.
15106
15107         pthread_sigmask: fix typo when testing for libraries
15108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15109         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15110
15111 2011-07-08  Eric Blake  <eblake@redhat.com>
15112
15113         fts: introduce FTS_NOATIME
15114         * lib/fts_.h (FTS_NOATIME): New bit flag.
15115         (FTS_OPTIONMASK): Adjust.
15116         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15117         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15118
15119 2011-07-08  Bruno Haible  <bruno@clisp.org>
15120
15121         Tests for module 'thread'.
15122         * modules/thread-tests: New file.
15123         * tests/test-thread_self.c: New file.
15124         * tests/test-thread_create.cc: New file.
15125
15126 2011-07-08  Bruno Haible  <bruno@clisp.org>
15127
15128         thread: Avoid gcc warnings when using gl_thread_self().
15129         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15130         'void *'.
15131         (gl_thread_self_pointer): Update.
15132
15133 2011-07-07  Bruno Haible  <bruno@clisp.org>
15134
15135         signal-c++-tests: Check declaration of pthread_sigmask.
15136         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15137         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15138         $(LIB_PTHREAD_SIGMASK).
15139
15140 2011-07-07  Bruno Haible  <bruno@clisp.org>
15141
15142         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15143         * lib/signal.in.h (pthread_sigmask): Override if
15144         REPLACE_PTHREAD_SIGMASK is 1.
15145         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15146         REPLACE_PTHREAD_SIGMASK.
15147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15148         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15149         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15150         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15151         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15152
15153 2011-07-07  Bruno Haible  <bruno@clisp.org>
15154
15155         pthread_sigmask: Ensure declaration in <signal.h>.
15156         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15157         include <pthread.h>.
15158         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15159         problem.
15160
15161 2011-07-07  Bruno Haible  <bruno@clisp.org>
15162
15163         pthread_sigmask: Document the module.
15164         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15165
15166 2011-07-07  Bruno Haible  <bruno@clisp.org>
15167
15168         pthread_sigmask: Follow gnulib conventions.
15169         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15170         gl_PTHREAD_SIGMASK.
15171         * modules/pthread_sigmask (configure.ac): Update.
15172
15173 2011-07-07  Bruno Haible  <bruno@clisp.org>
15174
15175         pthread_sigmask: Make declaration C++ safe.
15176         * lib/signal.in.h: In two special conditions, just do an #include_next.
15177         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15178         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15179         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15180         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15181         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15182         not REPLACE_PTHREAD_MASK.
15183         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15184         not REPLACE_PTHREAD_MASK.
15185         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15186
15187 2011-07-07  Bruno Haible  <bruno@clisp.org>
15188
15189         pthread_sigmask: Fix return value.
15190         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15191         * lib/pthread_sigmask.c: New file.
15192         * modules/pthread_sigmask (Files): Add it.
15193         (configure.ac): Invoke AC_LIBOBJ.
15194
15195 2011-07-07  Eric Blake  <eblake@redhat.com>
15196
15197         getopt: more portable argv creation
15198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15199         const, use char arrays rather than strings.
15200         Suggested by Paul Eggert.
15201
15202 2011-07-07  Bruno Haible  <bruno@clisp.org>
15203
15204         Tests for module 'sigprocmask'.
15205         * modules/sigprocmask-tests: New file.
15206         * tests/test-sigprocmask.c: New file.
15207
15208 2011-07-07  Bruno Haible  <bruno@clisp.org>
15209
15210         float tests: Tweak.
15211         * tests/test-float.c (main): Tweak skip message.
15212
15213 2011-07-07  Eric Blake  <eblake@redhat.com>
15214
15215         getopt: avoid compiler warning during configure
15216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15217         assigning string literals to non-const pointer.
15218
15219         getopt-gnu: avoid crash in glibc getopt
15220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15221         * tests/test-getopt.h (test_getopt): Enhance test.
15222         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15223         * doc/posix-functions/getopt.texi (getopt): Document it.
15224         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15226         Likewise.
15227
15228 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15229
15230         getopt: handle W; without long options in getopt [BZ #12922]
15231         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15232         but no long options are defined, just return 'W'.
15233
15234 2011-07-07  Bruno Haible  <bruno@clisp.org>
15235
15236         Avoid literal tabs.
15237         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15238         variable containing a tab instead of a literal tab.
15239         Reported by Jim Meyering.
15240
15241 2011-07-07  Bruno Haible  <bruno@clisp.org>
15242
15243         Comments.
15244         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15245
15246 2011-07-06  Bruno Haible  <bruno@clisp.org>
15247
15248         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15249         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15250         <winsock2.h>.
15251         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15252         lib/sys_socket.in.h.
15253         (close, gethostname): Hide declarations from <winsock2.h>.
15254         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15255         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15256         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15257         (select): Don't override if gnulib's <sys/select.h> was already
15258         included.
15259         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15260         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15261         setsockopt, shutdown, select): Tweak indentation.
15262
15263 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15264
15265         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15266         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15267         in an application that does not use the sys_select module.
15268
15269 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15270
15271         poll: do not return 0 on timeout=-1
15272         * lib/poll.c: Loop with yield if no events occurred.
15273
15274 2011-07-06  Eric Blake  <eblake@redhat.com>
15275
15276         pthread_sigmask: always replace when not using pthread
15277         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15278         replacement when using some threading other than pthread.  Fix
15279         logic bug.
15280
15281 2011-07-06  Bruno Haible  <bruno@clisp.org>
15282
15283         Comments.
15284         * m4/printf.m4: Update comments about mingw.
15285
15286 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15287
15288         sys_select: define sigset_t more portably
15289         * lib/sys_select.in.h: Always include <sys/types.h>, since
15290         we now need sigset_t and mingw defines it there.
15291         Include <signal.h> before split inclusion guard, to avoid
15292         mishaps on Solaris, whose <signal.h> eventually includes us.
15293         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15294         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15295         which come from ...
15296         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15297         gl_CHECK_TYPE_SIGSET_T.
15298         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15299         does the real work.
15300         * modules/sys_select (Depends-on): Add 'signal'.
15301
15302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15303         Suggested by Bruno Haible.
15304
15305         pselect: Use pthread_sigmask, not sigprocmask.
15306         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15307         multithreaded apps better than sigprocmask does.
15308         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15309         sigprocmask directly.
15310
15311 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15312
15313         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15314         Don't #undef,  since we don't need any underlying pselect.
15315         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15316         (Depends-on): Add select.
15317         (Link): Add $(LIBSOCKET).
15318         These changes suggested by Bruno Haible.
15319
15320         pselect: document better
15321         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15322         * doc/posix-functions/pselect.texi (pselect): Document new module.
15323
15324         pthread_sigmask: new module
15325         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15326         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15327         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15328         This is done only as a macro; I don't know how well that'll
15329         work for C++.  Move <sys/types.h> include before the include_next,
15330         to avoid mishap on Solaris.
15331         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15332         * modules/signal (Makefile.am): Substitute the check's results.
15333         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15334
15335         test-pselect: new module
15336         * modules/pselect-tests, tests/test-pselect.c: New files.
15337         * tests/test-select.c, tests/test-sys_select-c++.cc:
15338         If TEST_PSELECT is defined, test pselect instead of testing select.
15339
15340         * tests/test-sys_select.c (sigset_t): Test for it, too.
15341         Suggested by Bruno Haible.
15342
15343 2011-07-05  Eric Blake  <eblake@redhat.com>
15344
15345         snprintf: guarantee %1$d, for libintl
15346         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15347         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15348         * doc/posix-functions/snprintf.texi (snprintf): Update.
15349         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15350         * tests/test-snprintf.c (main): Enhance test.
15351         * tests/test-vsnprintf.c (main): Likewise.
15352
15353 2011-07-05  Jim Meyering  <meyering@redhat.com>
15354
15355         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15356         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15357         per Bruno's request, to accommodate this idiom (no space after "#")
15358         even when the function is inside an #if block:
15359         char *
15360         gets (char *s)
15361         #undef gets
15362         {
15363           ...
15364         }
15365
15366 2011-07-04  Jim Meyering  <meyering@redhat.com>
15367
15368         maint: indent with spaces, not TABs, and add a rule to check this
15369         * tests/test-userspec.c: Indent with spaces, not TABs.
15370         * tests/test-argp.c: Likewise.
15371         * tests/test-c-stack2.sh: Likewise.
15372         * tests/test-parse-duration.sh: Likewise
15373         * m4/strtod.m4: Likewise.
15374         * m4/alloca.m4: Likewise.
15375         * m4/pselect.m4: Likewise.
15376         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15377
15378 2011-07-03  Jim Meyering  <meyering@redhat.com>
15379
15380         maint.mk: correct omissions in prohibit_argmatch_without_use check
15381         This rule would mistakenly report that argmatch.h is included without
15382         use even when both the argmatch and invalid_arg macro were used.
15383         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15384         of argmatch and invalid_arg.
15385
15386 2011-07-03  Bruno Haible  <bruno@clisp.org>
15387
15388         Comments about EINTR.
15389         * lib/safe-read.h: Explain the purpose of this module.
15390         * lib/safe-write.h: Likewise.
15391         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15392         module.
15393         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15394         module.
15395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15396
15397 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15398
15399         xnanosleep: Rewrite to use new dtotimespec module.
15400         It has the conversion code that used to be in xnanosleep.
15401         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15402         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15403         (TIME_T_MAX): Remove.
15404         (xnanosleep): Rewrite in terms of dtotimespec.
15405         * modules/xnanosleep (Depends-on): Add dtotimespec.
15406         Remove intprops, stdbool.
15407
15408         timespec-add, timespec-sub: new modules
15409         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15410         * lib/timespec-add.c, lib/timespec-sub.c:
15411         * modules/timespec-add, modules/timespec-sub: New files.
15412
15413         dtotimespec: new module
15414         * lib/timespec.h (dtotimespec): New decl.
15415         * lib/dtotimespec.c, modules/dtotimespec: New files.
15416
15417         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15418
15419         pselect: new module
15420         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15421         (pselect): New decls.
15422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15423         since the standard pselect decl uses 'restrict'.
15424         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15425         HAVE_PSELECT, REPLACE_PSELECT.
15426         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15427         HAVE_PSELECT, REPLACE_PSELECT.
15428         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15429
15430         sys_select: don't depend on sys_socket
15431         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15433         This fix works on GNU and GNU-like platforms, but has not been tested
15434         on native Windows.
15435         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15437         gl_HEADER_SYS_SOCKET.
15438         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15439         gl_PREREQ_SYS_H_WINSOCK2.
15440
15441 2011-06-29  Eric Blake  <eblake@redhat.com>
15442
15443         pipe2: fix C89 compile problem
15444         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15445         Reported by Bruno Haible.
15446
15447         pipe, pipe2: don't corrupt fd on error
15448         * lib/pipe.c (pipe): Leave fd unchanged on error.
15449         * lib/pipe2.c (pipe2): Likewise.
15450         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15451         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15452
15453 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15454
15455         mmap-anon: do not use regular expressions inadvertently
15456         * m4/mmap-anon.m4: Remove trailing period from strings sought
15457         in the output.
15458
15459 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         nanosleep: fix integer overflow problem
15462         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15463         arithmetic wraps around on overflow.
15464
15465         nanosleep: simplify carrying
15466         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15467         first call to the underyling nanosleep, not for the last one.
15468         This doesn't fix any bugs, but it simplifies the computation of
15469         the remaining delay.  Found while auditing integer overflow issues.
15470
15471         dup2: remove test for existence of fcntl
15472         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15473         "#if HAVE_FCNTL", in the configure-time test program.
15474         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15475         and therefore speeds up "configure" a bit.  Found while
15476         adding the dup2 module to Emacs.
15477
15478 2011-06-24  Eric Blake  <eblake@redhat.com>
15479
15480         maint.mk: enhance useless header checks
15481         * top/maint.mk (_sc_header_without_use): Check both include
15482         styles.
15483         (sc_prohibit_assert_without_use)
15484         (sc_prohibit_close_stream_without_use)
15485         (sc_prohibit_getopt_without_use)
15486         (sc_prohibit_quotearg_without_use)
15487         (sc_prohibit_quote_without_use)
15488         (sc_prohibit_long_options_without_use)
15489         (sc_prohibit_inttostr_without_use)
15490         (sc_prohibit_ignore_value_without_use)
15491         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15492         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15493         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15494         (sc_prohibit_hash_pjw_without_use)
15495         (sc_prohibit_safe_read_without_use)
15496         (sc_prohibit_argmatch_without_use)
15497         (sc_prohibit_canonicalize_without_use)
15498         (sc_prohibit_root_dev_ino_without_use)
15499         (sc_prohibit_openat_without_use)
15500         (sc_prohibit_c_ctype_without_use)
15501         (sc_prohibit_signal_without_use)
15502         (sc_prohibit_stdio--_without_use)
15503         (sc_prohibit_stdio-safer_without_use)
15504         (sc_prohibit_strings_without_use)
15505         (sc_prohibit_intprops_without_use)
15506         (sc_prohibit_stddef_without_use)
15507         (sc_prohibit_xfreopen_without_use): Update clients.
15508
15509 2011-06-24  Jim Meyering  <meyering@redhat.com>
15510
15511         syntax-check: keep one maint.mk rule in sync with its header
15512         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15513         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15514         I prefer to avoid temporary files here, so use <(...), but that
15515         is not supported by /bin/sh, so...
15516         (SHELL): Define to /bin/bash.
15517
15518 2011-06-24  Eric Blake  <eblake@redhat.com>
15519
15520         maint.mk: update sc_prohibit_intprops_without_use
15521         * top/maint.mk (_intprops_names): Match recent changes.
15522
15523 2011-06-24  Bruno Haible  <bruno@clisp.org>
15524
15525         strerror-override: No-op tweak.
15526         * lib/strerror-override.h (strerror_override): Reorder conditions,
15527         for consistency with lib/strerror-override.c.
15528
15529 2011-06-23  Eric Blake  <eblake@redhat.com>
15530
15531         maint.mk: test further PATH_MAX issues
15532         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15533         (sc_prohibit_path_max_allocation): ...and also test alloca.
15534         Suggested by Jim Meyering.
15535
15536 2011-06-22  Eric Blake  <eblake@redhat.com>
15537
15538         maint.mk: add syntax-check to avoid char[PATH_MAX]
15539         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15540
15541         stat: be robust to PATH_MAX definition
15542         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15543         * modules/stat (Depends-on): Add verify.
15544
15545         link: work around IRIX bug
15546         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15547         * lib/link.c (rpl_link): Work around it.
15548         * tests/test-link.h (test_link): Enhance test.
15549         * doc/posix-functions/link.texi (link): Document the bug.
15550
15551         getopt: silence clang warning
15552         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15553         dereference.
15554         Reported by Gustavo Martin Domato.
15555
15556 2011-06-22  Jim Meyering  <meyering@redhat.com>
15557
15558         bootstrap: do not insert a blank line into each .gitignore file
15559         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15560
15561 2011-06-21  Eric Blake  <eblake@redhat.com>
15562
15563         perror: test for output mismatch
15564         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15565         perror on IRIX.
15566
15567         strerror_r: fix OpenBSD behavior on out-of-range
15568         * lib/strerror_r.c (strerror_r): Always use maximal string.
15569         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15570
15571         strerror_r: fix OpenBSD behavior on 0
15572         * lib/strerror-override.c (strerror_override): Also override 0
15573         when needed.
15574         * lib/strerror-override.h (strerror_override): Likewise.
15575         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15576         earlier.
15577         * lib/strerror_r.c (strerror_r): Likewise.
15578         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15579         behavior...
15580         (gl_FUNC_STRERROR_0): ...into new macro.
15581         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15582         is overridden.
15583         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15584         * modules/strerror-override (Files): Add strerror.m4.
15585         (configure.ac): Also provide override for 0 when needed.
15586         * doc/posix-functions/strerror.texi (strerror): Document this.
15587         * doc/posix-functions/perror.texi (perror): Likewise.
15588
15589         perror: adjust array size
15590         * modules/perror (Depends-on): Add strerror-override.
15591         * lib/perror.c (perror): Use it to avoid magic number.
15592
15593         strerror-override: reduce size
15594         * lib/strerror-override.c (strerror_override): Use fewer lines.
15595
15596 2011-06-20  Bruno Haible  <bruno@clisp.org>
15597
15598         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15599         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15600
15601 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15602
15603         alloca: port to compilers that can optimize like GCC 4.6.0
15604         * lib/alloca.c (find_stack_direction): New signature, taken from
15605         Autoconf git.  This works with GCC 4.6.0.  This code should never
15606         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15607         be used with other compilers that optimize as well as GCC 4.6.0 does.
15608         (alloca): Adjust to new signature.
15609         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15610         New macro, which patches Autoconf in a similar way.
15611
15612         c-stack: stop worrying about stack direction
15613         * lib/c-stack.c (find_stack_direction): Remove.
15614         (segv_handler): Don't worry about stack direction growth, as it's
15615         too much of a pain to configure this correctly, given how compilers
15616         are optimizing-away our stack-growth detection code.  Instead, assume
15617         that any access to just before or just after the stack is OK.
15618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15619         Don't require AC_FUNC_ALLOCA; no longer needed.
15620
15621 2011-06-20  Eric Blake  <eblake@redhat.com>
15622
15623         test-stat: don't allocate PATH_MAX bytes
15624         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15625         PATH_MAX-sized buffer.
15626         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15627         * modules/stat-tests (Depends-on): Likewise.
15628         * tests/test-fstatat.c (includes): Drop pathmax.h.
15629         * tests/test-stat.c (includes): Likewise.
15630         Reported by Bruno Haible.
15631
15632 2011-06-20  Bruno Haible  <bruno@clisp.org>
15633
15634         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15635         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15636         * lib/float.c: New file.
15637         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15638         REPLACE_FLOAT_LDBL.
15639         * modules/float (Files): Add lib/float.c.
15640         (configure.ac): Invoke AC_LIBOBJ.
15641         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15642
15643 2011-06-20  Bruno Haible  <bruno@clisp.org>
15644
15645         Tests for module 'float'.
15646         * modules/float-tests: New file.
15647         * tests/test-float.c: New file.
15648
15649 2011-06-19  Bruno Haible  <bruno@clisp.org>
15650
15651         isinf: Coding style.
15652         * lib/isinf.c: Use GNU coding style.
15653
15654 2011-06-19  Bruno Haible  <bruno@clisp.org>
15655
15656         linkat test: Avoid test failure on AIX 7.1.
15657         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15658         * tests/test-link.h (test_link): Likewise.
15659
15660 2011-06-19  Bruno Haible  <bruno@clisp.org>
15661
15662         pread test: Avoid test failure on OpenBSD 4.9.
15663         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15664
15665 2011-06-19  Bruno Haible  <bruno@clisp.org>
15666
15667         sprintf-posix: Fix test failure on AIX 7.1.
15668         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15669         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15670         on AIX.
15671         * doc/posix-functions/fprintf.texi: Likewise.
15672         * doc/posix-functions/printf.texi: Likewise.
15673         * doc/posix-functions/snprintf.texi: Likewise.
15674         * doc/posix-functions/sprintf.texi: Likewise.
15675         * doc/posix-functions/vdprintf.texi: Likewise.
15676         * doc/posix-functions/vfprintf.texi: Likewise.
15677         * doc/posix-functions/vprintf.texi: Likewise.
15678         * doc/posix-functions/vsnprintf.texi: Likewise.
15679         * doc/posix-functions/vsprintf.texi: Likewise.
15680
15681 2011-06-19  Bruno Haible  <bruno@clisp.org>
15682
15683         roundl-ieee: Fix test failure on AIX 7.1.
15684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15685         * doc/posix-functions/roundl.texi: Mention problem with negative
15686         arguments.
15687
15688 2011-06-19  Bruno Haible  <bruno@clisp.org>
15689
15690         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15691         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15692         * doc/posix-functions/round.texi: Mention problem with negative
15693         arguments.
15694         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15695
15696 2011-06-19  Bruno Haible  <bruno@clisp.org>
15697
15698         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15700         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15701         * doc/posix-functions/roundf.texi: Mention problem with negative
15702         arguments.
15703         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15704
15705 2011-06-19  Bruno Haible  <bruno@clisp.org>
15706
15707         ceilf-ieee: Work around bug on MacOS X 10.5.
15708         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15709
15710         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15711         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15712         IEEE compliant, avoid compiler optimizations.
15713         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15714         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15715         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15716         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15717         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15718         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15719         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15721         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15722         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15723
15724 2011-06-19  Bruno Haible  <bruno@clisp.org>
15725
15726         ceilf-ieee: Work around bug on AIX 7.1.
15727         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15728         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15729
15730 2011-06-19  Bruno Haible  <bruno@clisp.org>
15731
15732         ceil-ieee: Work around bug on AIX 7.1.
15733         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15734         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15735
15736 2011-06-18  Bruno Haible  <bruno@clisp.org>
15737
15738         fsync test: Avoid test failure on MacOS X and AIX.
15739         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15740         EINVAL.
15741
15742 2011-06-18  Bruno Haible  <bruno@clisp.org>
15743
15744         openat, fdopendir tests: Fix link errors.
15745         * modules/openat-tests (Depends-on): Add progname.
15746         * modules/fdopendir-tests (Depends-on): Likewise.
15747         * tests/test-fchownat.c: Include progname.h.
15748         (main): Call set_program_name.
15749         * tests/test-fstatat.c: Include progname.h.
15750         (main): Call set_program_name.
15751         * tests/test-mkdirat.c: Include progname.h.
15752         (main): Call set_program_name.
15753         * tests/test-openat.c: Include progname.h.
15754         (main): Call set_program_name.
15755         * tests/test-unlinkat.c: Include progname.h.
15756         (main): Call set_program_name.
15757         * tests/test-fdopendir.c: Include progname.h.
15758         (main): Call set_program_name.
15759
15760 2011-06-18  Bruno Haible  <bruno@clisp.org>
15761
15762         Doc update.
15763         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15764         HP-UX.
15765         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15766
15767 2011-06-18  Bruno Haible  <bruno@clisp.org>
15768
15769         getcwd tests: Avoid compilation error on HP-UX 11.31.
15770         * modules/getcwd-tests (Depends-on): Add pathmax.
15771         * tests/test-getcwd.c: Include pathmax.h.
15772
15773 2011-06-18  Bruno Haible  <bruno@clisp.org>
15774
15775         isfinite, isinf: Fix link error on AIX 6 and 7.
15776         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15777         needed, also test the macro with a 'float' argument.
15778         * m4/isinf.m4 (gl_ISINF): Likewise.
15779
15780 2011-06-18  Bruno Haible  <bruno@clisp.org>
15781
15782         getloadavg: Don't clobber LIBS. Regression from previous commit.
15783         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15784         AC_CHECK_LIB from here...
15785         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15786         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15787         gl_func_getloadavg_done.
15788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15789
15790 2011-06-18  Bruno Haible  <bruno@clisp.org>
15791
15792         clean-temp: Improve documentation.
15793         * lib/clean-temp.h: Explain better how to use this module.
15794         Reported by John Darrington <john@darrington.wattle.id.au>.
15795
15796 2011-06-17  Bruno Haible  <bruno@clisp.org>
15797
15798         pread, pwrite: Avoid cc warning on AIX.
15799         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15800         (pwrite): Likewise.
15801
15802 2011-06-17  Bruno Haible  <bruno@clisp.org>
15803
15804         spawn-pipe tests: Fix link error.
15805         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15807
15808 2011-06-17  Bruno Haible  <bruno@clisp.org>
15809
15810         Tests: Remove unnecessary dependency.
15811         * modules/canonicalize-tests (Depends-on): Remove progname.
15812         * modules/chown-tests (Depends-on): Likewise.
15813         * modules/dirname-tests (Depends-on): Likewise.
15814         * modules/fdopendir-tests (Depends-on): Likewise.
15815         * modules/fdutimensat-tests (Depends-on): Likewise.
15816         * modules/hash-tests (Depends-on): Likewise.
15817         * modules/lchown-tests (Depends-on): Likewise.
15818         * modules/linkat-tests (Depends-on): Likewise.
15819         * modules/renameat-tests (Depends-on): Likewise.
15820         * modules/spawn-pipe-tests (Depends-on): Likewise.
15821         * modules/utimensat-tests (Depends-on): Likewise.
15822
15823 2011-06-17  Bruno Haible  <bruno@clisp.org>
15824
15825         spawn-pipe tests: Fix link error.
15826         * tests/test-spawn-pipe-child.c: Undefine fflush.
15827
15828 2011-06-17  Bruno Haible  <bruno@clisp.org>
15829
15830         Fix tests link errors.
15831         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15832         * modules/chown-tests (Makefile.am): Don't link test-chown with
15833         LIBINTL.
15834         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15835         LIBINTL.
15836         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15837         LIBINTL.
15838         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15839         LIBINTL.
15840
15841 2011-06-16  Bruno Haible  <bruno@clisp.org>
15842
15843         crypto/gc-sha1: Fix recent regression.
15844         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15845         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15846
15847         crypto/gc-md5: Fix recent regression.
15848         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15849
15850         crypto/gc-md4: Fix recent regression.
15851         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15852         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15853
15854         crypto/gc-arctwo: Fix recent regression.
15855         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15856         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15857
15858         crypto/gc-rijndael: Fix recent regression.
15859         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15860         (configure.ac): Invoke AC_LIBOBJ here.
15861         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15863
15864         crypto/gc-hmac-sha1: Fix recent regression.
15865         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15866         (configure.ac): Invoke AC_LIBOBJ here.
15867         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15869
15870         crypto/gc-hmac-md5: Fix recent regression.
15871         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15872         (configure.ac): Invoke AC_LIBOBJ here.
15873         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15875
15876         crypto/gc-des: Fix recent regression.
15877         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15878         (configure.ac): Invoke AC_LIBOBJ here.
15879         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15881
15882         crypto/gc-arcfour: Fix recent regression.
15883         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15884         (configure.ac): Invoke AC_LIBOBJ here.
15885         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15887
15888 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15889
15890         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15891         After the 2011-05-21 change, this macro requires
15892         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15893         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15894
15895 2011-06-16  Bruno Haible  <bruno@clisp.org>
15896
15897         fprintftime: Move AC_LIBOBJ invocations to module description.
15898         * m4/fprintftime.m4: Remove file.
15899         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15900         (configure.ac): Remove gl_FPRINTFTIME call.
15901         (Makefile.am): Augment lib_SOURCES.
15902         Reported by Jim Meyering.
15903
15904 2011-06-16  Bruno Haible  <bruno@clisp.org>
15905
15906         tmpfile-safer: Finish 2011-05-23 commit.
15907         * m4/stdio-safer.m4: Really remove file.
15908         Reported by Jim Meyering.
15909
15910 2011-06-16  Bruno Haible  <bruno@clisp.org>
15911
15912         syntax-check: Fix typo.
15913         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15914         printf-posix.m4.
15915         Reported by Jim Meyering.
15916
15917 2011-06-13  Jim Meyering  <meyering@redhat.com>
15918
15919         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15920         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15921
15922 2011-05-23  Bruno Haible  <bruno@clisp.org>
15923
15924         yesno: Move AC_LIBOBJ invocations to module description.
15925         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15926         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15927
15928 2011-05-23  Bruno Haible  <bruno@clisp.org>
15929
15930         xstrtol: Move AC_LIBOBJ invocations to module description.
15931         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15932         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15933
15934 2011-05-23  Bruno Haible  <bruno@clisp.org>
15935
15936         xstrtold: Move AC_LIBOBJ invocations to module description.
15937         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15938         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15939
15940 2011-05-23  Bruno Haible  <bruno@clisp.org>
15941
15942         xstrtod: Move AC_LIBOBJ invocations to module description.
15943         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15944         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15945
15946 2011-05-23  Bruno Haible  <bruno@clisp.org>
15947
15948         xnanosleep: Move AC_LIBOBJ invocations to module description.
15949         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15950         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15951
15952 2011-05-23  Bruno Haible  <bruno@clisp.org>
15953
15954         xgetcwd: Move AC_LIBOBJ invocations to module description.
15955         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15956         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15957
15958 2011-05-23  Bruno Haible  <bruno@clisp.org>
15959
15960         xalloc: Move AC_LIBOBJ invocations to module description.
15961         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15962         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15963
15964 2011-05-23  Bruno Haible  <bruno@clisp.org>
15965
15966         write-any-file: Move AC_LIBOBJ invocations to module description.
15967         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15968         invocation.
15969         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15970
15971 2011-05-23  Bruno Haible  <bruno@clisp.org>
15972
15973         utimens: Move AC_LIBOBJ invocations to module description.
15974         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15975         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15976
15977 2011-05-23  Bruno Haible  <bruno@clisp.org>
15978
15979         utimecmp: Move AC_LIBOBJ invocations to module description.
15980         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15981         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15982
15983 2011-05-23  Bruno Haible  <bruno@clisp.org>
15984
15985         userspec: Move AC_LIBOBJ invocations to module description.
15986         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15987         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15988
15989 2011-05-23  Bruno Haible  <bruno@clisp.org>
15990
15991         unlinkdir: Move AC_LIBOBJ invocations to module description.
15992         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15993         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15994
15995 2011-05-23  Bruno Haible  <bruno@clisp.org>
15996
15997         unistd-safer: Move AC_LIBOBJ invocations to module description.
15998         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15999         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16000
16001 2011-05-23  Bruno Haible  <bruno@clisp.org>
16002
16003         tempname: Move AC_LIBOBJ invocations to module description.
16004         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16005         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16006
16007 2011-05-23  Bruno Haible  <bruno@clisp.org>
16008
16009         strftime: Move AC_LIBOBJ invocations to module description.
16010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16011         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16012
16013 2011-05-23  Bruno Haible  <bruno@clisp.org>
16014
16015         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16016         * m4/stdlib-safer.m4: Remove file.
16017         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16018         (configure.ac): Remove gl_STDLIB_SAFER call.
16019         (Makefile.am): Augment lib_SOURCES.
16020
16021 2011-05-23  Bruno Haible  <bruno@clisp.org>
16022
16023         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16024         * m4/stdio-safer.m4: Remove file.
16025         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16026         (configure.ac): Remove gl_TMPFILE_SAFER call.
16027         (Makefile.am): Augment lib_SOURCES.
16028
16029 2011-05-23  Bruno Haible  <bruno@clisp.org>
16030
16031         popen-safer: Move AC_LIBOBJ invocations to module description.
16032         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16033         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16034         (configure.ac): Remove gl_POPEN_SAFER call.
16035         (Makefile.am): Augment lib_SOURCES.
16036
16037 2011-05-23  Bruno Haible  <bruno@clisp.org>
16038
16039         freopen-safer: Move AC_LIBOBJ invocations to module description.
16040         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16041         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16042         (configure.ac): Remove gl_FREOPEN_SAFER call.
16043         (Makefile.am): Augment lib_SOURCES.
16044
16045 2011-05-23  Bruno Haible  <bruno@clisp.org>
16046
16047         fopen-safer: Move AC_LIBOBJ invocations to module description.
16048         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16049         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16050         (configure.ac): Remove gl_FOPEN_SAFER call.
16051         (Makefile.am): Augment lib_SOURCES.
16052
16053 2011-05-23  Bruno Haible  <bruno@clisp.org>
16054
16055         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16056         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16057         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16058
16059 2011-05-23  Bruno Haible  <bruno@clisp.org>
16060
16061         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16062         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16063         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16064
16065 2011-05-23  Bruno Haible  <bruno@clisp.org>
16066
16067         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16068         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16069         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16070
16071 2011-05-23  Bruno Haible  <bruno@clisp.org>
16072
16073         settime: Move AC_LIBOBJ invocations to module description.
16074         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16075         * modules/settime (Makefile.am): Augment lib_SOURCES.
16076
16077 2011-05-23  Bruno Haible  <bruno@clisp.org>
16078
16079         savedir: Move AC_LIBOBJ invocations to module description.
16080         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16081         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16082
16083 2011-05-23  Bruno Haible  <bruno@clisp.org>
16084
16085         save-cwd: Move AC_LIBOBJ invocations to module description.
16086         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16087         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16088
16089 2011-05-23  Bruno Haible  <bruno@clisp.org>
16090
16091         same: Move AC_LIBOBJ invocations to module description.
16092         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16093         * modules/same (Makefile.am): Augment lib_SOURCES.
16094
16095 2011-05-23  Bruno Haible  <bruno@clisp.org>
16096
16097         safe-write: Move AC_LIBOBJ invocations to module description.
16098         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16099         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16100         instead of gl_SAFE_WRITE.
16101         (Makefile.am): Augment lib_SOURCES.
16102
16103 2011-05-23  Bruno Haible  <bruno@clisp.org>
16104
16105         safe-read: Move AC_LIBOBJ invocations to module description.
16106         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16107         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16108         of gl_SAFE_READ.
16109         (Makefile.am): Augment lib_SOURCES.
16110
16111 2011-05-23  Bruno Haible  <bruno@clisp.org>
16112
16113         safe-alloc: Move AC_LIBOBJ invocations to module description.
16114         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16115         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16116
16117 2011-05-23  Bruno Haible  <bruno@clisp.org>
16118
16119         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16120         * m4/rijndael.m4: Remove file.
16121         * modules/crypto/rijndael (Files): Remove it.
16122         (configure.ac): Remove gl_RIJNDAEL call.
16123         (Makefile.am): Augment lib_SOURCES.
16124
16125 2011-05-23  Bruno Haible  <bruno@clisp.org>
16126
16127         readtokens: Move AC_LIBOBJ invocations to module description.
16128         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16129         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16130
16131 2011-05-23  Bruno Haible  <bruno@clisp.org>
16132
16133         read-file: Move AC_LIBOBJ invocations to module description.
16134         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16135         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16136         of gl_FUNC_READ_FILE.
16137         (Makefile.am): Augment lib_SOURCES.
16138
16139 2011-05-23  Bruno Haible  <bruno@clisp.org>
16140
16141         quotearg: Move AC_LIBOBJ invocations to module description.
16142         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16143         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16144
16145 2011-05-23  Bruno Haible  <bruno@clisp.org>
16146
16147         quote: Move AC_LIBOBJ invocations to module description.
16148         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16149         * modules/quote (Makefile.am): Augment lib_SOURCES.
16150
16151 2011-05-23  Bruno Haible  <bruno@clisp.org>
16152
16153         posixver: Move AC_LIBOBJ invocations to module description.
16154         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16155         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16156
16157 2011-05-23  Bruno Haible  <bruno@clisp.org>
16158
16159         posixtm: Move AC_LIBOBJ invocations to module description.
16160         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16161         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16162
16163 2011-05-23  Bruno Haible  <bruno@clisp.org>
16164
16165         physmem: Move AC_LIBOBJ invocations to module description.
16166         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16167         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16168
16169 2011-05-23  Bruno Haible  <bruno@clisp.org>
16170
16171         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16172         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16173         invocation.
16174         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16175
16176 2011-05-23  Bruno Haible  <bruno@clisp.org>
16177
16178         mpsort: Move AC_LIBOBJ invocations to module description.
16179         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16180         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16181
16182 2011-05-23  Bruno Haible  <bruno@clisp.org>
16183
16184         modechange: Move AC_LIBOBJ invocations to module description.
16185         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16186         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16187
16188 2011-05-23  Bruno Haible  <bruno@clisp.org>
16189
16190         mkdir-p: Move AC_LIBOBJ invocations to module description.
16191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16192         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16193
16194 2011-05-23  Bruno Haible  <bruno@clisp.org>
16195
16196         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16197         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16198         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16199
16200 2011-05-23  Bruno Haible  <bruno@clisp.org>
16201
16202         mgetgroups: Move AC_LIBOBJ invocations to module description.
16203         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16204         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16205
16206 2011-05-23  Bruno Haible  <bruno@clisp.org>
16207
16208         memxor: Move AC_LIBOBJ invocations to module description.
16209         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16210         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16211
16212 2011-05-23  Bruno Haible  <bruno@clisp.org>
16213
16214         memcoll: Move AC_LIBOBJ invocations to module description.
16215         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16216         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16217
16218 2011-05-23  Bruno Haible  <bruno@clisp.org>
16219
16220         memcasecmp: Move AC_LIBOBJ invocations to module description.
16221         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16222         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16223
16224 2011-05-23  Bruno Haible  <bruno@clisp.org>
16225
16226         crypto/md5: Move AC_LIBOBJ invocations to module description.
16227         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16228         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16229
16230 2011-05-23  Bruno Haible  <bruno@clisp.org>
16231
16232         crypto/md4: Move AC_LIBOBJ invocations to module description.
16233         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16234         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16235
16236 2011-05-23  Bruno Haible  <bruno@clisp.org>
16237
16238         crypto/md2: Move AC_LIBOBJ invocations to module description.
16239         * m4/md2.m4: Remove file.
16240         * modules/crypto/md2 (Files): Remove it.
16241         (configure.ac): Remove gl_MD2 call.
16242         (Makefile.am): Augment lib_SOURCES.
16243
16244 2011-05-23  Bruno Haible  <bruno@clisp.org>
16245
16246         long-options: Move AC_LIBOBJ invocations to module description.
16247         * m4/long-options.m4: Remove file.
16248         * modules/long-options (Files): Remove it.
16249         (configure.ac): Remove gl_LONG_OPTIONS call.
16250         (Makefile.am): Augment lib_SOURCES.
16251
16252 2011-05-23  Bruno Haible  <bruno@clisp.org>
16253
16254         i-ring: Move AC_LIBOBJ invocations to module description.
16255         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16256         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16257
16258 2011-05-23  Bruno Haible  <bruno@clisp.org>
16259
16260         idcache: Move AC_LIBOBJ invocations to module description.
16261         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16262         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16263
16264 2011-05-23  Bruno Haible  <bruno@clisp.org>
16265
16266         human: Move AC_LIBOBJ invocations to module description.
16267         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16268         * modules/human (Makefile.am): Augment lib_SOURCES.
16269
16270 2011-05-23  Bruno Haible  <bruno@clisp.org>
16271
16272         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16273         * m4/hmac-sha1.m4: Remove file.
16274         * modules/crypto/hmac-sha1 (Files): Remove it.
16275         (configure.ac): Remove gl_HMAC_SHA1 call.
16276         (Makefile.am): Augment lib_SOURCES.
16277
16278 2011-05-23  Bruno Haible  <bruno@clisp.org>
16279
16280         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16281         * m4/hmac-md5.m4: Remove file.
16282         * modules/crypto/hmac-md5 (Files): Remove it.
16283         (configure.ac): Remove gl_HMAC_MD5 call.
16284         (Makefile.am): Augment lib_SOURCES.
16285
16286 2011-05-23  Bruno Haible  <bruno@clisp.org>
16287
16288         hash: Move AC_LIBOBJ invocations to module description.
16289         * m4/hash.m4: Remove file.
16290         * modules/hash (Files): Remove it.
16291         (configure.ac): Remove gl_HASH call.
16292         (Makefile.am): Augment lib_SOURCES.
16293
16294 2011-05-23  Bruno Haible  <bruno@clisp.org>
16295
16296         hard-locale: Move AC_LIBOBJ invocations to module description.
16297         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16298         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16299
16300 2011-05-23  Bruno Haible  <bruno@clisp.org>
16301
16302         getugroups: Move AC_LIBOBJ invocations to module description.
16303         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16304         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16305
16306 2011-05-23  Bruno Haible  <bruno@clisp.org>
16307
16308         gettime: Move AC_LIBOBJ invocations to module description.
16309         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16310         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16311
16312 2011-05-23  Bruno Haible  <bruno@clisp.org>
16313
16314         getndelim2: Move AC_LIBOBJ invocations to module description.
16315         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16316         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16317
16318 2011-05-23  Bruno Haible  <bruno@clisp.org>
16319
16320         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16321         * m4/gc-pbkdf2-sha1.m4: Remove file.
16322         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16323         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16324         (Makefile.am): Augment lib_SOURCES.
16325
16326 2011-05-23  Bruno Haible  <bruno@clisp.org>
16327
16328         fts: Move AC_LIBOBJ invocations to module description.
16329         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16330         * modules/fts (configure.ac): ... to here.
16331
16332 2011-05-23  Bruno Haible  <bruno@clisp.org>
16333
16334         file-type: Move AC_LIBOBJ invocations to module description.
16335         * m4/file-type.m4: Remove file.
16336         * modules/file-type (Files): Remove it.
16337         (configure.ac): Remove gl_FILE_TYPE call.
16338         (Makefile.am): Augment lib_SOURCES.
16339
16340 2011-05-23  Bruno Haible  <bruno@clisp.org>
16341
16342         filenamecat*: Respect rules for use of AC_LIBOBJ.
16343         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16344         Remove AC_LIBOBJ invocation.
16345         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16346         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16347
16348 2011-05-23  Bruno Haible  <bruno@clisp.org>
16349
16350         filemode: Move AC_LIBOBJ invocations to module description.
16351         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16352         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16353
16354 2011-05-23  Bruno Haible  <bruno@clisp.org>
16355
16356         openat-safer: Move AC_LIBOBJ invocations to module description.
16357         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16358         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16359
16360 2011-05-23  Bruno Haible  <bruno@clisp.org>
16361
16362         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16363         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16364         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16365
16366 2011-05-23  Bruno Haible  <bruno@clisp.org>
16367
16368         exclude: Move AC_LIBOBJ invocations to module description.
16369         * m4/exclude.m4: Remove file.
16370         * modules/exclude (Files): Remove it.
16371         (configure.ac): Remove gl_EXCLUDE call.
16372         (Makefile.am): Augment lib_SOURCES.
16373
16374 2011-05-23  Bruno Haible  <bruno@clisp.org>
16375
16376         dirname*: Respect rules for use of AC_LIBOBJ.
16377         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16378         invocations.
16379         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16380         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16381
16382 2011-05-23  Bruno Haible  <bruno@clisp.org>
16383
16384         dirent-safer: Move AC_LIBOBJ invocations to module description.
16385         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16386         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16387
16388 2011-05-23  Bruno Haible  <bruno@clisp.org>
16389
16390         crypto/des: Move AC_LIBOBJ invocations to module description.
16391         * m4/des.m4: Remove file.
16392         * modules/crypto/des (Files): Remove it.
16393         (configure.ac): Remove gl_DES call.
16394         (Makefile.am): Augment lib_SOURCES.
16395
16396 2011-05-23  Bruno Haible  <bruno@clisp.org>
16397
16398         cycle-check: Move AC_LIBOBJ invocations to module description.
16399         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16400         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16401
16402 2011-05-23  Bruno Haible  <bruno@clisp.org>
16403
16404         c-strtold: Move AC_LIBOBJ invocations to module description.
16405         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16406         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16407
16408 2011-05-23  Bruno Haible  <bruno@clisp.org>
16409
16410         c-strtod: Move AC_LIBOBJ invocations to module description.
16411         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16412         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16413
16414 2011-05-23  Bruno Haible  <bruno@clisp.org>
16415
16416         crc: Move AC_LIBOBJ invocations to module description.
16417         * m4/crc.m4: Remove file.
16418         * modules/crc (Files): Remove it.
16419         (configure.ac): Remove gl_CRC call.
16420         (Makefile.am): Augment lib_SOURCES.
16421
16422 2011-05-23  Bruno Haible  <bruno@clisp.org>
16423
16424         close-stream: Move AC_LIBOBJ invocations to module description.
16425         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16426         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16427
16428 2011-05-23  Bruno Haible  <bruno@clisp.org>
16429
16430         closeout: Move AC_LIBOBJ invocations to module description.
16431         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16432         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16433
16434 2011-05-23  Bruno Haible  <bruno@clisp.org>
16435
16436         closein: Move AC_LIBOBJ invocations to module description.
16437         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16438         * modules/closein (Makefile.am): Augment lib_SOURCES.
16439
16440 2011-05-23  Bruno Haible  <bruno@clisp.org>
16441
16442         cloexec: Move AC_LIBOBJ invocations to module description.
16443         * m4/cloexec.m4: Remove file.
16444         * modules/cloexec (Files): Remove it.
16445         (configure.ac): Remove gl_CLOEXEC call.
16446         (Makefile.am): Augment lib_SOURCES.
16447
16448 2011-05-23  Bruno Haible  <bruno@clisp.org>
16449
16450         check-version: Move AC_LIBOBJ invocations to module description.
16451         * m4/check-version.m4: Remove file.
16452         * modules/check-version (Files): Remove it.
16453         (configure.ac): Remove gl_CHECK_VERSION call.
16454         (Makefile.am): Augment lib_SOURCES.
16455
16456 2011-05-23  Bruno Haible  <bruno@clisp.org>
16457
16458         chdir-safer: Move AC_LIBOBJ invocations to module description.
16459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16460         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16461
16462 2011-05-23  Bruno Haible  <bruno@clisp.org>
16463
16464         canonicalize: Move AC_LIBOBJ invocations to module description.
16465         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16466         AC_LIBOBJ invocation.
16467         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16468
16469 2011-05-23  Bruno Haible  <bruno@clisp.org>
16470
16471         canon-host: Move AC_LIBOBJ invocations to module description.
16472         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16473         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16474         instead of gl_CANON_HOST.
16475         (Makefile.am): Augment lib_SOURCES.
16476
16477 2011-05-23  Bruno Haible  <bruno@clisp.org>
16478
16479         backupfile: Move AC_LIBOBJ invocations to module description.
16480         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16481         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16482
16483 2011-05-23  Bruno Haible  <bruno@clisp.org>
16484
16485         argmatch: Move AC_LIBOBJ invocations to module description.
16486         * m4/argmatch.m4: Remove file.
16487         * modules/argmatch (Files): Remove it.
16488         (configure.ac): Remove gl_ARGMATCH call.
16489         (Makefile.am): Augment lib_SOURCES.
16490
16491 2011-05-23  Bruno Haible  <bruno@clisp.org>
16492
16493         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16494         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16495         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16496
16497 2011-05-23  Bruno Haible  <bruno@clisp.org>
16498
16499         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16500         * m4/arcfour.m4: Remove file.
16501         * modules/crypto/arcfour (Files): Remove it.
16502         (configure.ac): Remove gl_ARCFOUR call.
16503         (Makefile.am): Augment lib_SOURCES.
16504
16505 2011-05-22  Bruno Haible  <bruno@clisp.org>
16506
16507         write: Move AC_LIBOBJ invocations to module description.
16508         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16509         * modules/write (configure.ac): ... to here.
16510
16511 2011-05-22  Bruno Haible  <bruno@clisp.org>
16512
16513         wmemset: Move AC_LIBOBJ invocations to module description.
16514         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16515         here...
16516         * modules/wmemset (configure.ac): ... to here.
16517
16518 2011-05-22  Bruno Haible  <bruno@clisp.org>
16519
16520         wmemmove: Move AC_LIBOBJ invocations to module description.
16521         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16522         here...
16523         * modules/wmemmove (configure.ac): ... to here.
16524
16525 2011-05-22  Bruno Haible  <bruno@clisp.org>
16526
16527         wmemcpy: Move AC_LIBOBJ invocations to module description.
16528         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16529         here...
16530         * modules/wmemcpy (configure.ac): ... to here.
16531
16532 2011-05-22  Bruno Haible  <bruno@clisp.org>
16533
16534         wmemcmp: Move AC_LIBOBJ invocations to module description.
16535         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16536         here...
16537         * modules/wmemcmp (configure.ac): ... to here.
16538
16539 2011-05-22  Bruno Haible  <bruno@clisp.org>
16540
16541         wmemchr: Move AC_LIBOBJ invocations to module description.
16542         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16543         here...
16544         * modules/wmemchr (configure.ac): ... to here.
16545
16546 2011-05-22  Bruno Haible  <bruno@clisp.org>
16547
16548         wcswidth: Move AC_LIBOBJ invocations to module description.
16549         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16550         here...
16551         * modules/wcswidth (configure.ac): ... to here.
16552
16553 2011-05-22  Bruno Haible  <bruno@clisp.org>
16554
16555         wcwidth: Respect rules for use of AC_LIBOBJ.
16556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16557         invocation from here...
16558         * modules/wcwidth (configure.ac): ... to here.
16559         (Depends-on): Update conditions.
16560
16561 2011-05-22  Bruno Haible  <bruno@clisp.org>
16562
16563         wctype: Move AC_LIBOBJ invocations to module description.
16564         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16565         invocation from here...
16566         * modules/wctype (configure.ac): ... to here.
16567         (Depends-on): Update conditions.
16568
16569 2011-05-22  Bruno Haible  <bruno@clisp.org>
16570
16571         wctrans: Move AC_LIBOBJ invocations to module description.
16572         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16573         invocation from here...
16574         * modules/wctrans (configure.ac): ... to here.
16575
16576 2011-05-22  Bruno Haible  <bruno@clisp.org>
16577
16578         wctomb: Move AC_LIBOBJ invocations to module description.
16579         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16580         invocations from here...
16581         * modules/wctomb (configure.ac): ... to here.
16582
16583 2011-05-22  Bruno Haible  <bruno@clisp.org>
16584
16585         wctob: Move AC_LIBOBJ invocations to module description.
16586         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16587         gl_PREREQ_WCTOB invocations from here...
16588         * modules/wctob (configure.ac): ... to here.
16589         (Depends-on): Update conditions.
16590
16591 2011-05-22  Bruno Haible  <bruno@clisp.org>
16592
16593         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16594         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16595         here...
16596         * modules/wcsxfrm (configure.ac): ... to here.
16597
16598 2011-05-22  Bruno Haible  <bruno@clisp.org>
16599
16600         wcstok: Move AC_LIBOBJ invocations to module description.
16601         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16602         * modules/wcstok (configure.ac): ... to here.
16603
16604 2011-05-22  Bruno Haible  <bruno@clisp.org>
16605
16606         wcsstr: Move AC_LIBOBJ invocations to module description.
16607         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16608         * modules/wcsstr (configure.ac): ... to here.
16609
16610 2011-05-22  Bruno Haible  <bruno@clisp.org>
16611
16612         wcsspn: Move AC_LIBOBJ invocations to module description.
16613         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16614         * modules/wcsspn (configure.ac): ... to here.
16615
16616 2011-05-22  Bruno Haible  <bruno@clisp.org>
16617
16618         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16619         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16620         gl_PREREQ_WCSRTOMBS invocations from here...
16621         * modules/wcsrtombs (configure.ac): ... to here.
16622
16623 2011-05-22  Bruno Haible  <bruno@clisp.org>
16624
16625         wcsrchr: Move AC_LIBOBJ invocations to module description.
16626         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16627         here...
16628         * modules/wcsrchr (configure.ac): ... to here.
16629
16630 2011-05-22  Bruno Haible  <bruno@clisp.org>
16631
16632         wcspbrk: Move AC_LIBOBJ invocations to module description.
16633         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16634         here...
16635         * modules/wcspbrk (configure.ac): ... to here.
16636
16637 2011-05-22  Bruno Haible  <bruno@clisp.org>
16638
16639         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16640         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16641         gl_PREREQ_WCSNRTOMBS invocations from here...
16642         * modules/wcsnrtombs (configure.ac): ... to here.
16643
16644 2011-05-22  Bruno Haible  <bruno@clisp.org>
16645
16646         wcsnlen: Move AC_LIBOBJ invocations to module description.
16647         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16648         here...
16649         * modules/wcsnlen (configure.ac): ... to here.
16650
16651 2011-05-22  Bruno Haible  <bruno@clisp.org>
16652
16653         wcsncpy: Move AC_LIBOBJ invocations to module description.
16654         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16655         here...
16656         * modules/wcsncpy (configure.ac): ... to here.
16657
16658 2011-05-22  Bruno Haible  <bruno@clisp.org>
16659
16660         wcsncmp: Move AC_LIBOBJ invocations to module description.
16661         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16662         here...
16663         * modules/wcsncmp (configure.ac): ... to here.
16664
16665 2011-05-22  Bruno Haible  <bruno@clisp.org>
16666
16667         wcsncat: Move AC_LIBOBJ invocations to module description.
16668         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16669         here...
16670         * modules/wcsncat (configure.ac): ... to here.
16671
16672 2011-05-22  Bruno Haible  <bruno@clisp.org>
16673
16674         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16675         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16676         from here...
16677         * modules/wcsncasecmp (configure.ac): ... to here.
16678
16679 2011-05-22  Bruno Haible  <bruno@clisp.org>
16680
16681         wcslen: Move AC_LIBOBJ invocations to module description.
16682         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16683         * modules/wcslen (configure.ac): ... to here.
16684
16685 2011-05-22  Bruno Haible  <bruno@clisp.org>
16686
16687         wcsdup: Move AC_LIBOBJ invocations to module description.
16688         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16689         * modules/wcsdup (configure.ac): ... to here.
16690
16691 2011-05-22  Bruno Haible  <bruno@clisp.org>
16692
16693         wcscspn: Move AC_LIBOBJ invocations to module description.
16694         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16695         here...
16696         * modules/wcscspn (configure.ac): ... to here.
16697
16698 2011-05-22  Bruno Haible  <bruno@clisp.org>
16699
16700         wcscpy: Move AC_LIBOBJ invocations to module description.
16701         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16702         * modules/wcscpy (configure.ac): ... to here.
16703
16704 2011-05-22  Bruno Haible  <bruno@clisp.org>
16705
16706         wcscoll: Move AC_LIBOBJ invocations to module description.
16707         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16708         here...
16709         * modules/wcscoll (configure.ac): ... to here.
16710
16711 2011-05-22  Bruno Haible  <bruno@clisp.org>
16712
16713         wcscmp: Move AC_LIBOBJ invocations to module description.
16714         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16715         * modules/wcscmp (configure.ac): ... to here.
16716
16717 2011-05-22  Bruno Haible  <bruno@clisp.org>
16718
16719         wcschr: Move AC_LIBOBJ invocations to module description.
16720         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16721         * modules/wcschr (configure.ac): ... to here.
16722
16723 2011-05-22  Bruno Haible  <bruno@clisp.org>
16724
16725         wcscat: Move AC_LIBOBJ invocations to module description.
16726         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16727         * modules/wcscat (configure.ac): ... to here.
16728
16729 2011-05-22  Bruno Haible  <bruno@clisp.org>
16730
16731         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16732         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16733         here...
16734         * modules/wcscasecmp (configure.ac): ... to here.
16735
16736 2011-05-22  Bruno Haible  <bruno@clisp.org>
16737
16738         wcrtomb: Move AC_LIBOBJ invocations to module description.
16739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16740         invocations from here...
16741         * modules/wcrtomb (configure.ac): ... to here.
16742
16743 2011-05-22  Bruno Haible  <bruno@clisp.org>
16744
16745         wcpncpy: Move AC_LIBOBJ invocations to module description.
16746         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16747         here...
16748         * modules/wcpncpy (configure.ac): ... to here.
16749
16750 2011-05-22  Bruno Haible  <bruno@clisp.org>
16751
16752         wcpcpy: Move AC_LIBOBJ invocations to module description.
16753         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16754         * modules/wcpcpy (configure.ac): ... to here.
16755
16756 2011-05-22  Bruno Haible  <bruno@clisp.org>
16757
16758         waitpid: Move AC_LIBOBJ invocations to module description.
16759         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16760         invocation from here...
16761         * modules/waitpid (configure.ac): ... to here.
16762
16763 2011-05-22  Bruno Haible  <bruno@clisp.org>
16764
16765         utimensat: Move AC_LIBOBJ invocations to module description.
16766         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16767         here...
16768         * modules/utimensat (configure.ac): ... to here.
16769
16770 2011-05-22  Bruno Haible  <bruno@clisp.org>
16771
16772         usleep: Move AC_LIBOBJ invocations to module description.
16773         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16774         here...
16775         * modules/usleep (configure.ac): ... to here.
16776
16777 2011-05-22  Bruno Haible  <bruno@clisp.org>
16778
16779         unlockpt: Move AC_LIBOBJ invocations to module description.
16780         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16781         gl_PREREQ_UNLOCKPT invocations from here...
16782         * modules/unlockpt (configure.ac): ... to here.
16783
16784 2011-05-22  Bruno Haible  <bruno@clisp.org>
16785
16786         unlink: Respect rules for use of AC_LIBOBJ.
16787         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16788         * modules/unlink (configure.ac): ... to here.
16789
16790 2011-05-22  Bruno Haible  <bruno@clisp.org>
16791
16792         uname: Move AC_LIBOBJ invocations to module description.
16793         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16795         here...
16796         * modules/uname (configure.ac): ... to here.
16797
16798 2011-05-22  Bruno Haible  <bruno@clisp.org>
16799
16800         ttyname_r: Move AC_LIBOBJ invocations to module description.
16801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16802         gl_PREREQ_TTYNAME_R invocations from here...
16803         * modules/ttyname_r (configure.ac): ... to here.
16804
16805 2011-05-22  Bruno Haible  <bruno@clisp.org>
16806
16807         tsearch: Move AC_LIBOBJ invocations to module description.
16808         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16809         invocations from here...
16810         * modules/tsearch (configure.ac): ... to here.
16811
16812 2011-05-22  Bruno Haible  <bruno@clisp.org>
16813
16814         towctrans: Move AC_LIBOBJ invocations to module description.
16815         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16816         AC_LIBOBJ invocation from here...
16817         * modules/towctrans (configure.ac): ... to here.
16818
16819 2011-05-22  Bruno Haible  <bruno@clisp.org>
16820
16821         tmpfile: Move AC_LIBOBJ invocations to module description.
16822         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16823         invocations from here...
16824         * modules/tmpfile (configure.ac): ... to here.
16825
16826 2011-05-22  Bruno Haible  <bruno@clisp.org>
16827
16828         times: Move AC_LIBOBJ invocations to module description.
16829         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16830         * modules/times (configure.ac): ... to here.
16831
16832 2011-05-22  Bruno Haible  <bruno@clisp.org>
16833
16834         time_r: Move AC_LIBOBJ invocations to module description.
16835         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16836         invocations from here...
16837         * modules/time_r (configure.ac): ... to here.
16838
16839 2011-05-22  Bruno Haible  <bruno@clisp.org>
16840
16841         timegm: Move AC_LIBOBJ invocations to module description.
16842         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16843         invocations from here...
16844         * modules/timegm (configure.ac): ... to here.
16845
16846 2011-05-22  Bruno Haible  <bruno@clisp.org>
16847
16848         tcgetsid: Move AC_LIBOBJ invocations to module description.
16849         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16850         and gl_PREREQ_TCGETSID invocations from here...
16851         * modules/tcgetsid (configure.ac): ... to here.
16852         (Depends-on): Update conditions.
16853
16854 2011-05-22  Bruno Haible  <bruno@clisp.org>
16855
16856         symlinkat: Move AC_LIBOBJ invocations to module description.
16857         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16858         here...
16859         * modules/symlinkat (configure.ac): ... to here.
16860
16861 2011-05-22  Bruno Haible  <bruno@clisp.org>
16862
16863         symlink: Move AC_LIBOBJ invocations to module description.
16864         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16865         here...
16866         * modules/symlink (configure.ac): ... to here.
16867
16868 2011-05-22  Bruno Haible  <bruno@clisp.org>
16869
16870         strverscmp: Move AC_LIBOBJ invocations to module description.
16871         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16873         from here...
16874         * modules/strverscmp (configure.ac): ... to here.
16875
16876 2011-05-22  Bruno Haible  <bruno@clisp.org>
16877
16878         strtok_r: Move AC_LIBOBJ invocations to module description.
16879         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16880         and gl_PREREQ_STRTOK_R invocations from here...
16881         * modules/strtok_r (configure.ac): ... to here.
16882         (Depends-on): Update conditions.
16883
16884 2011-05-22  Bruno Haible  <bruno@clisp.org>
16885
16886         strtoumax: Move AC_LIBOBJ invocations to module description.
16887         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16889         from here...
16890         * modules/strtoumax (configure.ac): ... to here.
16891
16892 2011-05-22  Bruno Haible  <bruno@clisp.org>
16893
16894         strtoimax: Move AC_LIBOBJ invocations to module description.
16895         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16897         from here...
16898         * modules/strtoimax (configure.ac): ... to here.
16899
16900 2011-05-22  Bruno Haible  <bruno@clisp.org>
16901
16902         strtoull: Move AC_LIBOBJ invocations to module description.
16903         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16904         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16905         from here...
16906         * modules/strtoull (configure.ac): ... to here.
16907
16908 2011-05-22  Bruno Haible  <bruno@clisp.org>
16909
16910         strtoll: Move AC_LIBOBJ invocations to module description.
16911         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16913         here...
16914         * modules/strtoll (configure.ac): ... to here.
16915
16916 2011-05-22  Bruno Haible  <bruno@clisp.org>
16917
16918         strtoul: Move AC_LIBOBJ invocations to module description.
16919         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16920         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16921         * modules/strtoul (configure.ac): ... to here.
16922
16923 2011-05-22  Bruno Haible  <bruno@clisp.org>
16924
16925         strtol: Move AC_LIBOBJ invocations to module description.
16926         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16927         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16928         * modules/strtol (configure.ac): ... to here.
16929
16930 2011-05-22  Bruno Haible  <bruno@clisp.org>
16931
16932         strtod: Move AC_LIBOBJ invocations to module description.
16933         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16934         invocations from here...
16935         * modules/strtod (configure.ac): ... to here.
16936
16937 2011-05-22  Bruno Haible  <bruno@clisp.org>
16938
16939         strstr*: Move AC_LIBOBJ invocations to module description.
16940         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16941         invocations from here...
16942         * modules/strstr-simple (configure.ac): ... to here.
16943         * modules/strstr (configure.ac): ... and here.
16944
16945 2011-05-22  Bruno Haible  <bruno@clisp.org>
16946
16947         strsignal: Move AC_LIBOBJ invocations to module description.
16948         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16949         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16950         * modules/strsignal (configure.ac): ... to here.
16951         (Depends-on): Update conditions.
16952
16953 2011-05-22  Bruno Haible  <bruno@clisp.org>
16954
16955         strsep: Move AC_LIBOBJ invocations to module description.
16956         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16958         here...
16959         * modules/strsep (configure.ac): ... to here.
16960
16961 2011-05-22  Bruno Haible  <bruno@clisp.org>
16962
16963         strptime: Move AC_LIBOBJ invocations to module description.
16964         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16965         gl_PREREQ_STRPTIME invocations from here...
16966         * modules/strptime (configure.ac): ... to here.
16967
16968 2011-05-22  Bruno Haible  <bruno@clisp.org>
16969
16970         strpbrk: Move AC_LIBOBJ invocations to module description.
16971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16973         here...
16974         * modules/strpbrk (configure.ac): ... to here.
16975
16976 2011-05-22  Bruno Haible  <bruno@clisp.org>
16977
16978         strnlen: Move AC_LIBOBJ invocations to module description.
16979         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16980         invocations from here...
16981         * modules/strnlen (configure.ac): ... to here.
16982
16983 2011-05-22  Bruno Haible  <bruno@clisp.org>
16984
16985         strndup: Move AC_LIBOBJ invocations to module description.
16986         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16987         invocations from here...
16988         * modules/strndup (configure.ac): ... to here.
16989         (Depends-on): Update conditions.
16990
16991 2011-05-22  Bruno Haible  <bruno@clisp.org>
16992
16993         strncat: Move AC_LIBOBJ invocations to module description.
16994         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16995         invocations from here...
16996         * modules/strncat (configure.ac): ... to here.
16997
16998 2011-05-22  Bruno Haible  <bruno@clisp.org>
16999
17000         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17001         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17002         invocations from here...
17003         * modules/strdup (configure.ac): ... to here.
17004         * modules/strdup-posix (configure.ac): ... and here.
17005
17006 2011-05-22  Bruno Haible  <bruno@clisp.org>
17007
17008         strcspn: Move AC_LIBOBJ invocations to module description.
17009         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17011         here...
17012         * modules/strcspn (configure.ac): ... to here.
17013
17014 2011-05-22  Bruno Haible  <bruno@clisp.org>
17015
17016         strchrnul: Move AC_LIBOBJ invocations to module description.
17017         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17018         gl_PREREQ_STRCHRNUL invocations from here...
17019         * modules/strchrnul (configure.ac): ... to here.
17020
17021 2011-05-22  Bruno Haible  <bruno@clisp.org>
17022
17023         strcasestr*: Move AC_LIBOBJ invocations to module description.
17024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17025         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17026         * modules/strcasestr-simple (configure.ac): ... to here.
17027         * modules/strcasestr (configure.ac): ... and here.
17028
17029 2011-05-22  Bruno Haible  <bruno@clisp.org>
17030
17031         strcase: Move AC_LIBOBJ invocations to module description.
17032         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17033         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17034         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17035         gl_PREREQ_STRNCASECMP invocations from here...
17036         * modules/strcase (configure.ac): ... to here.
17037
17038 2011-05-22  Bruno Haible  <bruno@clisp.org>
17039
17040         stpncpy: Move AC_LIBOBJ invocations to module description.
17041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17042         here...
17043         * modules/stpncpy (configure.ac): ... to here.
17044
17045 2011-05-22  Bruno Haible  <bruno@clisp.org>
17046
17047         stpcpy: Move AC_LIBOBJ invocations to module description.
17048         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17050         here...
17051         * modules/stpcpy (configure.ac): ... to here.
17052
17053 2011-05-21  Bruno Haible  <bruno@clisp.org>
17054
17055         stat: Move AC_LIBOBJ invocations to module description.
17056         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17057         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17058         here...
17059         * modules/stat (configure.ac): ... to here.
17060
17061 2011-05-21  Bruno Haible  <bruno@clisp.org>
17062
17063         sleep: Move AC_LIBOBJ invocations to module description.
17064         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17065         * modules/sleep (configure.ac): ... to here.
17066
17067 2011-05-21  Bruno Haible  <bruno@clisp.org>
17068
17069         signbit: Move AC_LIBOBJ invocations to module description.
17070         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17071         * modules/signbit (configure.ac): ... to here.
17072
17073 2011-05-21  Bruno Haible  <bruno@clisp.org>
17074
17075         sigprocmask: Move AC_LIBOBJ invocations to module description.
17076         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17077         gl_PREREQ_SIGPROMASK invocations from here...
17078         * modules/sigprocmask (configure.ac): ... to here.
17079
17080 2011-05-21  Bruno Haible  <bruno@clisp.org>
17081
17082         sigaction: Move AC_LIBOBJ invocations to module description.
17083         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17084         gl_PREREQ_SIGACTION invocations from here...
17085         * modules/sigaction (configure.ac): ... to here.
17086
17087 2011-05-21  Bruno Haible  <bruno@clisp.org>
17088
17089         sig2str: Move AC_LIBOBJ invocations to module description.
17090         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17092         here...
17093         * modules/sig2str (configure.ac): ... to here.
17094
17095 2011-05-21  Bruno Haible  <bruno@clisp.org>
17096
17097         setlocale: Move AC_LIBOBJ invocations to module description.
17098         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17099         gl_PREREQ_SETLOCALE invocations from here...
17100         * modules/setlocale (configure.ac): ... to here.
17101
17102 2011-05-21  Bruno Haible  <bruno@clisp.org>
17103
17104         unsetenv: Move AC_LIBOBJ invocations to module description.
17105         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17106         and gl_PREREQ_UNSETENV invocations from here...
17107         * modules/unsetenv (configure.ac): ... to here.
17108         (Depends-on): Update.
17109
17110 2011-05-21  Bruno Haible  <bruno@clisp.org>
17111
17112         setenv: Move AC_LIBOBJ invocations to module description.
17113         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17114         here...
17115         * modules/setenv (configure.ac): ... to here.
17116
17117 2011-05-21  Bruno Haible  <bruno@clisp.org>
17118
17119         selinux-h: Move AC_LIBOBJ invocations to module description.
17120         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17121         AC_LIBOBJ invocation from here...
17122         * modules/selinux-h (configure.ac): ... to here.
17123
17124 2011-05-21  Bruno Haible  <bruno@clisp.org>
17125
17126         select: Respect rules for use of AC_LIBOBJ.
17127         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17128         here...
17129         * modules/select (configure.ac): ... to here.
17130
17131 2011-05-21  Bruno Haible  <bruno@clisp.org>
17132
17133         scandir: Move AC_LIBOBJ invocations to module description.
17134         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17135         invocations from here...
17136         * modules/scandir (configure.ac): ... to here.
17137
17138 2011-05-21  Bruno Haible  <bruno@clisp.org>
17139
17140         rpmatch: Move AC_LIBOBJ invocations to module description.
17141         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17143         here...
17144         * modules/rpmatch (configure.ac): ... to here.
17145
17146 2011-05-21  Bruno Haible  <bruno@clisp.org>
17147
17148         rmdir: Respect rules for use of AC_LIBOBJ.
17149         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17150         * modules/rmdir (configure.ac): ... to here.
17151
17152 2011-05-21  Bruno Haible  <bruno@clisp.org>
17153
17154         renameat: Move AC_LIBOBJ invocations to module description.
17155         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17156         here...
17157         * modules/renameat (configure.ac): ... to here.
17158
17159 2011-05-21  Bruno Haible  <bruno@clisp.org>
17160
17161         rename: Respect rules for use of AC_LIBOBJ.
17162         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17163         here...
17164         * modules/rename (configure.ac): ... to here.
17165
17166 2011-05-21  Bruno Haible  <bruno@clisp.org>
17167
17168         remove: Move AC_LIBOBJ invocations to module description.
17169         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17170         here...
17171         * modules/remove (configure.ac): ... to here.
17172
17173 2011-05-21  Bruno Haible  <bruno@clisp.org>
17174
17175         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17176         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17177         macro.
17178         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17179         * modules/relocatable-lib (configure.ac): ... to here.
17180         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17181         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17182
17183 2011-05-21  Bruno Haible  <bruno@clisp.org>
17184
17185         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17186         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17187         here...
17188         * modules/relocatable-prog (configure.ac): ... to here.
17189
17190 2011-05-21  Bruno Haible  <bruno@clisp.org>
17191
17192         regex: Move AC_LIBOBJ invocations to module description.
17193         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17194         invocations from here...
17195         * modules/regex (configure.ac): ... to here.
17196
17197 2011-05-21  Bruno Haible  <bruno@clisp.org>
17198
17199         realloc-*: Move AC_LIBOBJ invocations to module description.
17200         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17201         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17202         AC_LIBOBJ invocations from here...
17203         * modules/realloc-gnu (configure.ac): ... to here.
17204         * modules/realloc-posix (configure.ac): ... and here.
17205
17206 2011-05-21  Bruno Haible  <bruno@clisp.org>
17207
17208         readutmp: Move AC_LIBOBJ invocations to module description.
17209         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17210         * modules/readutmp (configure.ac): ... to here.
17211
17212 2011-05-21  Bruno Haible  <bruno@clisp.org>
17213
17214         readlinkat: Move AC_LIBOBJ invocations to module description.
17215         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17216         here...
17217         * modules/readlinkat (configure.ac): ... to here.
17218
17219 2011-05-21  Bruno Haible  <bruno@clisp.org>
17220
17221         readlink: Move AC_LIBOBJ invocations to module description.
17222         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17223         gl_PREREQ_READLINK invocations from here...
17224         * modules/readlink (configure.ac): ... to here.
17225
17226 2011-05-21  Bruno Haible  <bruno@clisp.org>
17227
17228         readline: Move AC_LIBOBJ invocations to module description.
17229         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17230         gl_PREREQ_READLINE invocations from here...
17231         * modules/readline (configure.ac): ... to here.
17232
17233 2011-05-21  Bruno Haible  <bruno@clisp.org>
17234
17235         read: Move AC_LIBOBJ invocations to module description.
17236         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17237         * modules/read (configure.ac): ... to here.
17238
17239 2011-05-21  Bruno Haible  <bruno@clisp.org>
17240
17241         rawmemchr: Move AC_LIBOBJ invocations to module description.
17242         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17244         from here...
17245         * modules/rawmemchr (configure.ac): ... to here.
17246
17247 2011-05-21  Bruno Haible  <bruno@clisp.org>
17248
17249         random_r: Move AC_LIBOBJ invocations to module description.
17250         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17251         gl_PREREQ_RANDOM_R invocations from here...
17252         * modules/random_r (configure.ac): ... to here.
17253
17254 2011-05-21  Bruno Haible  <bruno@clisp.org>
17255
17256         pwrite: Move AC_LIBOBJ invocations to module description.
17257         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17258         * modules/pwrite (configure.ac): ... to here.
17259
17260 2011-05-21  Bruno Haible  <bruno@clisp.org>
17261
17262         putenv: Move AC_LIBOBJ invocations to module description.
17263         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17264         * modules/putenv (configure.ac): ... to here.
17265
17266 2011-05-21  Bruno Haible  <bruno@clisp.org>
17267
17268         login_tty: Move AC_LIBOBJ invocations to module description.
17269         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17270         * modules/login_tty (configure.ac): ... to here.
17271
17272 2011-05-21  Bruno Haible  <bruno@clisp.org>
17273
17274         openpty: Move AC_LIBOBJ invocations to module description.
17275         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17276         * modules/openpty (configure.ac): ... to here.
17277
17278 2011-05-21  Bruno Haible  <bruno@clisp.org>
17279
17280         forkpty: Move AC_LIBOBJ invocations to module description.
17281         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17282         * modules/forkpty (configure.ac): ... to here.
17283
17284 2011-05-21  Bruno Haible  <bruno@clisp.org>
17285
17286         ptsname: Move AC_LIBOBJ invocations to module description.
17287         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17288         invocations from here...
17289         * modules/ptsname (configure.ac): ... to here.
17290
17291 2011-05-21  Bruno Haible  <bruno@clisp.org>
17292
17293         pread: Move AC_LIBOBJ invocations to module description.
17294         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17295         * modules/pread (configure.ac): ... to here.
17296
17297 2011-05-21  Bruno Haible  <bruno@clisp.org>
17298
17299         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17300         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17301         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17302         * modules/posix_spawn (configure.ac): ... to here.
17303         * modules/posix_spawnp (configure.ac): ... and here.
17304
17305 2011-05-21  Bruno Haible  <bruno@clisp.org>
17306
17307         popen: Move AC_LIBOBJ invocations to module description.
17308         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17309         invocations from here...
17310         * modules/popen (configure.ac): ... to here.
17311
17312 2011-05-21  Bruno Haible  <bruno@clisp.org>
17313
17314         poll: Move AC_LIBOBJ invocations to module description.
17315         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17316         invocations from here...
17317         * modules/poll (configure.ac): ... to here.
17318
17319 2011-05-21  Bruno Haible  <bruno@clisp.org>
17320
17321         pipe-posix: Move AC_LIBOBJ invocations to module description.
17322         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17323         * modules/pipe-posix (configure.ac): ... to here.
17324
17325 2011-05-21  Bruno Haible  <bruno@clisp.org>
17326
17327         openat: Respect rules for use of AC_LIBOBJ.
17328         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17329         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17330         * modules/openat (configure.ac): ... to here.
17331
17332 2011-05-21  Bruno Haible  <bruno@clisp.org>
17333
17334         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17335         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17336         invocation from here...
17337         * modules/obstack-printf (configure.ac): ... to here.
17338         * modules/obstack-printf-posix (configure.ac): ... and here.
17339
17340 2011-05-21  Bruno Haible  <bruno@clisp.org>
17341
17342         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17343         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17344         from here...
17345         * modules/nl_langinfo (configure.ac): ... to here.
17346
17347 2011-05-21  Bruno Haible  <bruno@clisp.org>
17348
17349         nanosleep: Move AC_LIBOBJ invocations to module description.
17350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17351         gl_PREREQ_NANOSLEEP invocations from here...
17352         * modules/nanosleep (configure.ac): ... to here.
17353
17354 2011-05-21  Bruno Haible  <bruno@clisp.org>
17355
17356         mountlist: Move AC_LIBOBJ invocations to module description.
17357         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17358         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17359         * modules/mountlist (configure.ac): ... to here.
17360
17361 2011-05-21  Bruno Haible  <bruno@clisp.org>
17362
17363         mktime: Respect rules for use of AC_LIBOBJ.
17364         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17365         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17366         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17367         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17368         * modules/mktime (configure.ac): ... to here.
17369         * modules/mktime-internal (configure.ac): ... and here.
17370         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17371
17372 2011-05-21  Bruno Haible  <bruno@clisp.org>
17373
17374         mkstemps: Move AC_LIBOBJ invocations to module description.
17375         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17376         here...
17377         * modules/mkstemps (configure.ac): ... to here.
17378
17379 2011-05-21  Bruno Haible  <bruno@clisp.org>
17380
17381         mkstemp: Move AC_LIBOBJ invocations to module description.
17382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17383         gl_PREREQ_MKSTEMP invocations from here...
17384         * modules/mkstemp (configure.ac): ... to here.
17385
17386 2011-05-21  Bruno Haible  <bruno@clisp.org>
17387
17388         mkostemps: Move AC_LIBOBJ invocations to module description.
17389         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17390         here...
17391         * modules/mkostemps (configure.ac): ... to here.
17392
17393 2011-05-21  Bruno Haible  <bruno@clisp.org>
17394
17395         mkostemp: Move AC_LIBOBJ invocations to module description.
17396         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17397         gl_PREREQ_MKOSTEMP invocations from here...
17398         * modules/mkostemp (configure.ac): ... to here.
17399
17400 2011-05-21  Bruno Haible  <bruno@clisp.org>
17401
17402         mknod: Move AC_LIBOBJ invocations to module description.
17403         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17404         * modules/mknod (configure.ac): ... to here.
17405
17406 2011-05-21  Bruno Haible  <bruno@clisp.org>
17407
17408         mkfifoat: Move AC_LIBOBJ invocations to module description.
17409         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17410         here...
17411         * modules/mkfifoat (configure.ac): ... to here.
17412
17413 2011-05-21  Bruno Haible  <bruno@clisp.org>
17414
17415         mkfifo: Respect rules for use of AC_LIBOBJ.
17416         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17417         here...
17418         * modules/mkfifo (configure.ac): ... to here.
17419
17420 2011-05-21  Bruno Haible  <bruno@clisp.org>
17421
17422         mkdtemp: Move AC_LIBOBJ invocations to module description.
17423         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17424         invocations from here...
17425         * modules/mkdtemp (configure.ac): ... to here.
17426
17427 2011-05-21  Bruno Haible  <bruno@clisp.org>
17428
17429         mkdir: Move AC_LIBOBJ invocations to module description.
17430         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17431         * modules/mkdir (configure.ac): ... to here.
17432
17433 2011-05-21  Bruno Haible  <bruno@clisp.org>
17434
17435         memset: Move AC_LIBOBJ invocations to module description.
17436         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17438         here...
17439         * modules/memset (configure.ac): ... to here.
17440
17441 2011-05-21  Bruno Haible  <bruno@clisp.org>
17442
17443         memrchr: Move AC_LIBOBJ invocations to module description.
17444         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17446         here...
17447         * modules/memrchr (configure.ac): ... to here.
17448
17449 2011-05-21  Bruno Haible  <bruno@clisp.org>
17450
17451         mempcpy: Move AC_LIBOBJ invocations to module description.
17452         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17454         here...
17455         * modules/mempcpy (configure.ac): ... to here.
17456
17457 2011-05-21  Bruno Haible  <bruno@clisp.org>
17458
17459         memmove: Move AC_LIBOBJ invocations to module description.
17460         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17462         here...
17463         * modules/memmove (configure.ac): ... to here.
17464
17465 2011-05-21  Bruno Haible  <bruno@clisp.org>
17466
17467         memmem*: Move AC_LIBOBJ invocations to module description.
17468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17469         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17470         here...
17471         (gl_FUNC_MEMMEM): ... and here...
17472         * modules/memmem-simple (configure.ac): ... to here.
17473         * modules/memmem (configure.ac): ... and here.
17474
17475 2011-05-21  Bruno Haible  <bruno@clisp.org>
17476
17477         memcpy: Move AC_LIBOBJ invocations to module description.
17478         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17480         here...
17481         * modules/memcpy (configure.ac): ... to here.
17482
17483 2011-05-21  Bruno Haible  <bruno@clisp.org>
17484
17485         memcmp: Simplify autoconf macro.
17486         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17487         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17488         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17489
17490 2011-05-21  Bruno Haible  <bruno@clisp.org>
17491
17492         memcmp: Move AC_LIBOBJ invocations to module description.
17493         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17494         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17495         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17496         * modules/memcmp (configure.ac): ... to here.
17497         (Depends-on): Update conditions.
17498
17499 2011-05-21  Bruno Haible  <bruno@clisp.org>
17500
17501         memchr: Respect rules for use of AC_LIBOBJ.
17502         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17503         invocations from here...
17504         * modules/memchr (configure.ac): ... to here.
17505
17506 2011-05-21  Bruno Haible  <bruno@clisp.org>
17507
17508         mbtowc: Move AC_LIBOBJ invocations to module description.
17509         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17510         invocations from here...
17511         * modules/mbtowc (configure.ac): ... to here.
17512
17513 2011-05-21  Bruno Haible  <bruno@clisp.org>
17514
17515         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17517         gl_PREREQ_MBSRTOWCS invocations from here...
17518         * modules/mbsrtowcs (configure.ac): ... to here.
17519
17520 2011-05-21  Bruno Haible  <bruno@clisp.org>
17521
17522         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17523         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17524         gl_PREREQ_MBSNRTOWCS invocations from here...
17525         * modules/mbsnrtowcs (configure.ac): ... to here.
17526
17527 2011-05-21  Bruno Haible  <bruno@clisp.org>
17528
17529         mbsinit: Move AC_LIBOBJ invocations to module description.
17530         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17531         invocations from here...
17532         * modules/mbsinit (configure.ac): ... to here.
17533
17534 2011-05-21  Bruno Haible  <bruno@clisp.org>
17535
17536         mbrlen: Move AC_LIBOBJ invocations to module description.
17537         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17538         invocations from here...
17539         * modules/mbrlen (configure.ac): ... to here.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         mbrtowc: Respect rules for use of AC_LIBOBJ.
17544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17545         invocations from here...
17546         * modules/mbrtowc (configure.ac): ... to here.
17547
17548 2011-05-21  Bruno Haible  <bruno@clisp.org>
17549
17550         malloc-*: Move AC_LIBOBJ invocations to module description.
17551         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17552         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17553         AC_LIBOBJ invocations from here...
17554         * modules/malloc-gnu (configure.ac): ... to here.
17555         * modules/malloc-posix (configure.ac): ... and here.
17556
17557 2011-05-21  Bruno Haible  <bruno@clisp.org>
17558
17559         lstat, openat: Respect rules for use of AC_LIBOBJ.
17560         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17561         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17562         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17563         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17564         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17565         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17566         here.
17567         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17568
17569 2011-05-21  Bruno Haible  <bruno@clisp.org>
17570
17571         lseek: Move AC_LIBOBJ invocations to module description.
17572         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17573         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17574         * modules/lseek (configure.ac): ... to here.
17575
17576 2011-05-21  Bruno Haible  <bruno@clisp.org>
17577
17578         linkat: Move AC_LIBOBJ invocations to module description.
17579         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17580         here...
17581         * modules/linkat (configure.ac): ... to here.
17582
17583 2011-05-21  Bruno Haible  <bruno@clisp.org>
17584
17585         link: Respect rules for use of AC_LIBOBJ.
17586         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17587         * modules/link (configure.ac): ... to here.
17588
17589 2011-05-21  Bruno Haible  <bruno@clisp.org>
17590
17591         lchown: Move AC_LIBOBJ invocations to module description.
17592         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17593         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17594         * modules/lchown (configure.ac): ... to here.
17595
17596 2011-05-21  Bruno Haible  <bruno@clisp.org>
17597
17598         iswctype: Move AC_LIBOBJ invocations to module description.
17599         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17600         here...
17601         * modules/iswctype (configure.ac): ... to here.
17602
17603 2011-05-21  Bruno Haible  <bruno@clisp.org>
17604
17605         iswblank: Move AC_LIBOBJ invocations to module description.
17606         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17607         here...
17608         * modules/iswblank (configure.ac): ... to here.
17609
17610 2011-05-21  Bruno Haible  <bruno@clisp.org>
17611
17612         atanl: Move AC_LIBOBJ invocations to module description.
17613         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17614         * modules/atanl (configure.ac): ... to here.
17615
17616 2011-05-21  Bruno Haible  <bruno@clisp.org>
17617
17618         acosl: Move AC_LIBOBJ invocations to module description.
17619         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17620         * modules/acosl (configure.ac): ... to here.
17621
17622 2011-05-21  Bruno Haible  <bruno@clisp.org>
17623
17624         asinl: Respect rules for use of AC_LIBOBJ.
17625         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17626         * modules/asinl (configure.ac): ... to here.
17627
17628 2011-05-21  Bruno Haible  <bruno@clisp.org>
17629
17630         tanl: Move AC_LIBOBJ invocations to module description.
17631         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17632         * modules/tanl (configure.ac): ... to here.
17633
17634 2011-05-21  Bruno Haible  <bruno@clisp.org>
17635
17636         cosl: Move AC_LIBOBJ invocations to module description.
17637         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17638         * modules/cosl (configure.ac): ... to here.
17639
17640 2011-05-21  Bruno Haible  <bruno@clisp.org>
17641
17642         sinl: Move AC_LIBOBJ invocations to module description.
17643         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17644         * modules/sinl (configure.ac): ... to here.
17645
17646 2011-05-21  Bruno Haible  <bruno@clisp.org>
17647
17648         logl: Move AC_LIBOBJ invocations to module description.
17649         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17650         * modules/logl (configure.ac): ... to here.
17651
17652 2011-05-21  Bruno Haible  <bruno@clisp.org>
17653
17654         expl: Move AC_LIBOBJ invocations to module description.
17655         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17656         * modules/expl (configure.ac): ... to here.
17657
17658 2011-05-21  Bruno Haible  <bruno@clisp.org>
17659
17660         roundl: Move AC_LIBOBJ invocations to module description.
17661         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17662         * modules/roundl (configure.ac): ... to here.
17663
17664 2011-05-21  Bruno Haible  <bruno@clisp.org>
17665
17666         round: Move AC_LIBOBJ invocations to module description.
17667         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17668         * modules/round (configure.ac): ... to here.
17669
17670 2011-05-21  Bruno Haible  <bruno@clisp.org>
17671
17672         roundf: Move AC_LIBOBJ invocations to module description.
17673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17674         * modules/roundf (configure.ac): ... to here.
17675
17676 2011-05-21  Bruno Haible  <bruno@clisp.org>
17677
17678         truncl: Move AC_LIBOBJ invocations to module description.
17679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17680         * modules/truncl (configure.ac): ... to here.
17681
17682 2011-05-21  Bruno Haible  <bruno@clisp.org>
17683
17684         trunc: Move AC_LIBOBJ invocations to module description.
17685         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17686         * modules/trunc (configure.ac): ... to here.
17687
17688 2011-05-21  Bruno Haible  <bruno@clisp.org>
17689
17690         truncf: Move AC_LIBOBJ invocations to module description.
17691         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17692         * modules/truncf (configure.ac): ... to here.
17693
17694 2011-05-21  Bruno Haible  <bruno@clisp.org>
17695
17696         ceill: Move AC_LIBOBJ invocations to module description.
17697         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17698         * modules/ceill (configure.ac): ... to here.
17699
17700 2011-05-21  Bruno Haible  <bruno@clisp.org>
17701
17702         ceil: Move AC_LIBOBJ invocations to module description.
17703         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17704         * modules/ceil (configure.ac): ... to here.
17705
17706 2011-05-21  Bruno Haible  <bruno@clisp.org>
17707
17708         ceilf: Move AC_LIBOBJ invocations to module description.
17709         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17710         * modules/ceilf (configure.ac): ... to here.
17711
17712 2011-05-21  Bruno Haible  <bruno@clisp.org>
17713
17714         floorl: Respect rules for use of AC_LIBOBJ.
17715         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17716         * modules/floorl (configure.ac): ... to here.
17717
17718 2011-05-21  Bruno Haible  <bruno@clisp.org>
17719
17720         floor: Respect rules for use of AC_LIBOBJ.
17721         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17722         * modules/floor (configure.ac): ... to here.
17723
17724 2011-05-21  Bruno Haible  <bruno@clisp.org>
17725
17726         floorf: Move AC_LIBOBJ invocations to module description.
17727         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17728         * modules/floorf (configure.ac): ... to here.
17729
17730 2011-05-20  Bruno Haible  <bruno@clisp.org>
17731
17732         sqrtl: Respect rules for use of AC_LIBOBJ.
17733         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17734         * modules/sqrtl (configure.ac): ... to here.
17735
17736 2011-05-20  Bruno Haible  <bruno@clisp.org>
17737
17738         ldexpl: Respect rules for use of AC_LIBOBJ.
17739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17740         * modules/ldexpl (configure.ac): ... to here.
17741
17742 2011-05-20  Bruno Haible  <bruno@clisp.org>
17743
17744         frexpl*: Respect rules for use of AC_LIBOBJ.
17745         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17746         invocation from here...
17747         * modules/frexpl (configure.ac): ... to here.
17748         * modules/frexpl-nolibm (configure.ac): ... and here.
17749
17750 2011-05-20  Bruno Haible  <bruno@clisp.org>
17751
17752         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17753         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17754         invocation from here...
17755         * modules/frexp (configure.ac): ... to here.
17756         * modules/frexp-nolibm (configure.ac): ... and here.
17757
17758 2011-05-20  Bruno Haible  <bruno@clisp.org>
17759
17760         isnan: Respect rules for use of AC_LIBOBJ.
17761         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17762         invocations here.
17763         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17764         REPLACE_ISNAN.
17765         * modules/isnand (configure.ac): Likewise.
17766         * modules/isnanl (configure.ac): Likewise.
17767
17768 2011-05-20  Bruno Haible  <bruno@clisp.org>
17769
17770         isnanl*: Respect rules for use of AC_LIBOBJ.
17771         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17772         invocation from here...
17773         * modules/isnanl (configure.ac): ... to here.
17774         * modules/isnanl-nolibm (configure.ac): ... and here.
17775
17776 2011-05-20  Bruno Haible  <bruno@clisp.org>
17777
17778         isnand*: Move AC_LIBOBJ invocations to module description.
17779         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17780         invocation from here...
17781         * modules/isnand (configure.ac): ... to here.
17782         * modules/isnand-nolibm (configure.ac): ... and here.
17783
17784 2011-05-20  Bruno Haible  <bruno@clisp.org>
17785
17786         isnanf*: Move AC_LIBOBJ invocations to module description.
17787         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17788         invocation from here...
17789         * modules/isnanf (configure.ac): ... to here.
17790         * modules/isnanf-nolibm (configure.ac): ... and here.
17791
17792 2011-05-20  Bruno Haible  <bruno@clisp.org>
17793
17794         isnan*: Separate the AC_LIBOBJ invocations.
17795         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17796         AC_LIBOBJ invocation.
17797         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17798         here.
17799         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17800         AC_LIBOBJ invocation.
17801         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17802         here.
17803         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17804         AC_LIBOBJ invocation.
17805         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17806         here.
17807         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17808
17809 2011-05-08  Bruno Haible  <bruno@clisp.org>
17810
17811         isinf: Move AC_LIBOBJ invocations to module description.
17812         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17813         * modules/isinf (configure.ac): ... to here.
17814
17815 2011-05-08  Bruno Haible  <bruno@clisp.org>
17816
17817         isfinite: Move AC_LIBOBJ invocations to module description.
17818         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17819         * modules/isfinite (configure.ac): ... to here.
17820
17821 2011-05-08  Bruno Haible  <bruno@clisp.org>
17822
17823         isblank: Move AC_LIBOBJ invocations to module description.
17824         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17825         here...
17826         * modules/isblank (configure.ac): ... to here.
17827
17828 2011-05-08  Bruno Haible  <bruno@clisp.org>
17829
17830         isapipe: Move AC_LIBOBJ invocations to module description.
17831         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17832         gl_PREREQ_ISAPIPE invocations from here...
17833         * modules/isapipe (configure.ac): ... to here.
17834         (Depends-on): Update condition.
17835
17836 2011-05-08  Bruno Haible  <bruno@clisp.org>
17837
17838         ioctl: Move AC_LIBOBJ invocations to module description.
17839         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17840         invocations from here...
17841         * modules/ioctl (configure.ac): ... to here.
17842         (Depends-on): Update condition.
17843
17844 2011-05-08  Bruno Haible  <bruno@clisp.org>
17845
17846         imaxdiv: Move AC_LIBOBJ invocations to module description.
17847         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17848         invocations from here...
17849         * modules/imaxdiv (configure.ac): ... to here.
17850
17851 2011-05-08  Bruno Haible  <bruno@clisp.org>
17852
17853         imaxabs: Move AC_LIBOBJ invocations to module description.
17854         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17855         invocations from here...
17856         * modules/imaxabs (configure.ac): ... to here.
17857
17858 2011-05-08  Bruno Haible  <bruno@clisp.org>
17859
17860         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17862         AC_LIBOBJ invocations from here...
17863         * modules/getaddrinfo (configure.ac): ... to here.
17864         (Depends-on): Add conditions.
17865
17866 2011-05-08  Bruno Haible  <bruno@clisp.org>
17867
17868         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17869         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17870         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17871         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17872         (gl_PREREQ_INET_PTON): ... from here.
17873         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17874         gl_PREREQ_INET_PTON here.
17875         (Depends-on): Update condition.
17876
17877 2011-05-08  Bruno Haible  <bruno@clisp.org>
17878
17879         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17880         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17881         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17882         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17883         (gl_PREREQ_INET_NTOP): ... from here.
17884         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17885         gl_PREREQ_INET_NTOP here.
17886         (Depends-on): Update condition.
17887
17888 2011-05-08  Bruno Haible  <bruno@clisp.org>
17889
17890         iconv_open: Move AC_LIBOBJ invocations to module description.
17891         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17892         AC_LIBOBJ invocations from here...
17893         * modules/iconv_open (configure.ac): ... to here.
17894
17895 2011-05-08  Bruno Haible  <bruno@clisp.org>
17896
17897         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17898         If module 'iconv_open' is among the main modules and module
17899         'iconv_open-utf' is among the tests dependencies, then
17900         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17901         return the special iconv_t values. Therefore iconv() and iconv_close()
17902         must support these special iconv_t values, already in lib, not only in
17903         tests.
17904         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17905         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17906         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17907         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17908         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17909         (Depends-on): Add the dependencies of iconv_open-utf.
17910         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17911         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17912         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17913
17914 2011-05-08  Bruno Haible  <bruno@clisp.org>
17915
17916         group-member: Move AC_LIBOBJ invocations to module description.
17917         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17918         gl_PREREQ_GROUP_MEMBER invocations from here...
17919         * modules/group-member (configure.ac): ... to here.
17920
17921 2011-05-08  Bruno Haible  <bruno@clisp.org>
17922
17923         grantpt: Move AC_LIBOBJ invocations to module description.
17924         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17925         invocations from here...
17926         * modules/grantpt (configure.ac): ... to here.
17927
17928 2011-05-08  Bruno Haible  <bruno@clisp.org>
17929
17930         glob: Move AC_LIBOBJ invocations to module description.
17931         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17932         from here...
17933         * modules/glob (configure.ac): ... to here.
17934
17935 2011-05-08  Bruno Haible  <bruno@clisp.org>
17936
17937         getusershell: Move AC_LIBOBJ invocations to module description.
17938         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17939         Move AC_LIBOBJ invocation from here...
17940         * modules/getusershell (configure.ac): ... to here.
17941         (Depends-on): Update condition.
17942
17943 2011-05-08  Bruno Haible  <bruno@clisp.org>
17944
17945         gettimeofday: Move AC_LIBOBJ invocations to module description.
17946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17947         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17948         gl_PREREQ_GETTIMEOFDAY invocations from here...
17949         * modules/gettimeofday (configure.ac): ... to here.
17950
17951 2011-05-08  Bruno Haible  <bruno@clisp.org>
17952
17953         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17954         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17955         just gl_FUNC_TZSET.
17956         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17957         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17959         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17960
17961 2011-05-08  Bruno Haible  <bruno@clisp.org>
17962
17963         getsubopt: Move AC_LIBOBJ invocations to module description.
17964         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17965         gl_PREREQ_GETSUBOPT invocations from here...
17966         * modules/getsubopt (configure.ac): ... to here.
17967
17968 2011-05-08  Bruno Haible  <bruno@clisp.org>
17969
17970         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17971         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17972         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17973         * modules/getpass-gnu (configure.ac): ... to here.
17974
17975 2011-05-08  Bruno Haible  <bruno@clisp.org>
17976
17977         getpass: Move AC_LIBOBJ invocations to module description.
17978         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17979         gl_PREREQ_GETPASS invocations from here...
17980         * modules/getpass (configure.ac): ... to here.
17981
17982 2011-05-08  Bruno Haible  <bruno@clisp.org>
17983
17984         getpagesize: Move AC_LIBOBJ invocations to module description.
17985         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17986         from here...
17987         * modules/getpagesize (configure.ac): ... to here.
17988
17989 2011-05-08  Bruno Haible  <bruno@clisp.org>
17990
17991         getopt: Move AC_LIBOBJ invocations to module description.
17992         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17993         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17994         invocations from here...
17995         * modules/getopt-gnu (configure.ac): ... to here.
17996         * modules/getopt-posix (configure.ac): ... and here.
17997         (Depends-on): Update condition.
17998
17999 2011-05-08  Bruno Haible  <bruno@clisp.org>
18000
18001         getopt, argp: Respect rules for use of AC_LIBOBJ.
18002         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18003         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18004         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18005         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18006
18007 2011-05-08  Bruno Haible  <bruno@clisp.org>
18008
18009         getlogin_r: Move AC_LIBOBJ invocations to module description.
18010         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18011         gl_PREREQ_GETLOGIN_R invocations from here...
18012         * modules/getlogin_r (configure.ac): ... to here.
18013
18014 2011-05-08  Bruno Haible  <bruno@clisp.org>
18015
18016         getlogin: Move AC_LIBOBJ invocations to module description.
18017         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18018         here...
18019         * modules/getlogin (configure.ac): ... to here.
18020
18021 2011-05-08  Bruno Haible  <bruno@clisp.org>
18022
18023         getloadavg: Move AC_LIBOBJ invocations to module description.
18024         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18025         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18026         * modules/getloadavg (configure.ac): ... to here.
18027
18028 2011-05-08  Bruno Haible  <bruno@clisp.org>
18029
18030         gethrxtime: Move AC_LIBOBJ invocations to module description.
18031         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18032         LIB_GETHRXTIME from here...
18033         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18034         invocations from here...
18035         * modules/gethrxtime (configure.ac): ... to here.
18036
18037 2011-05-08  Bruno Haible  <bruno@clisp.org>
18038
18039         gethostname: Move AC_LIBOBJ invocations to module description.
18040         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18041         gl_PREREQ_GETHOSTNAME invocations from here...
18042         * modules/gethostname (configure.ac): ... to here.
18043
18044 2011-05-08  Bruno Haible  <bruno@clisp.org>
18045
18046         getgroups: Move AC_LIBOBJ invocations to module description.
18047         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18048         here...
18049         * modules/getgroups (configure.ac): ... to here.
18050
18051 2011-05-08  Bruno Haible  <bruno@clisp.org>
18052
18053         getdtablesize: Move AC_LIBOBJ invocations to module description.
18054         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18055         invocation from here...
18056         * modules/getdtablesize (configure.ac): ... to here.
18057
18058 2011-05-08  Bruno Haible  <bruno@clisp.org>
18059
18060         getdomainname: Move AC_LIBOBJ invocations to module description.
18061         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18062         gl_PREREQ_GETDOMAINNAME invocations from here...
18063         * modules/getdomainname (configure.ac): ... to here.
18064
18065 2011-05-08  Bruno Haible  <bruno@clisp.org>
18066
18067         getline: Move AC_LIBOBJ invocations to module description.
18068         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18069         invocations from here...
18070         * modules/getline (configure.ac): ... to here.
18071
18072 2011-05-08  Bruno Haible  <bruno@clisp.org>
18073
18074         getline: Simplify.
18075         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18076         It's already handled through the module dependency.
18077
18078 2011-05-08  Bruno Haible  <bruno@clisp.org>
18079
18080         getdelim: Move AC_LIBOBJ invocations to module description.
18081         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18082         and gl_PREREQ_GETDELIM invocations from here...
18083         * modules/getdelim (configure.ac): ... to here.
18084         (Depends-on): Fix condition.
18085
18086 2011-05-08  Bruno Haible  <bruno@clisp.org>
18087
18088         getcwd: Move AC_LIBOBJ invocations to module description.
18089         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18090         invocations from here...
18091         * modules/getcwd (configure.ac): ... to here.
18092
18093 2011-05-08  Bruno Haible  <bruno@clisp.org>
18094
18095         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18096         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18097         here...
18098         * modules/getcwd-lgpl (configure.ac): ... to here.
18099
18100 2011-05-07  Bruno Haible  <bruno@clisp.org>
18101
18102         crypto/gc: Move AC_LIBOBJ invocations to module description.
18103         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18104         * modules/crypto/gc (configure.ac): ... to here.
18105
18106 2011-05-07  Bruno Haible  <bruno@clisp.org>
18107
18108         fwriting: Move AC_LIBOBJ invocations to module description.
18109         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18110         here...
18111         * modules/fwriting (configure.ac): ... to here.
18112
18113 2011-05-07  Bruno Haible  <bruno@clisp.org>
18114
18115         fwritable: Move AC_LIBOBJ invocations to module description.
18116         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18117         here...
18118         * modules/fwritable (configure.ac): ... to here.
18119
18120 2011-05-07  Bruno Haible  <bruno@clisp.org>
18121
18122         futimens: Move AC_LIBOBJ invocations to module description.
18123         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18124         here...
18125         * modules/futimens (configure.ac): ... to here.
18126
18127 2011-05-07  Bruno Haible  <bruno@clisp.org>
18128
18129         ftruncate: Move AC_LIBOBJ invocations to module description.
18130         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18131         gl_PREREQ_FTRUNCATE invocations from here...
18132         * modules/ftruncate (configure.ac): ... to here.
18133
18134 2011-05-07  Bruno Haible  <bruno@clisp.org>
18135
18136         fsync: Move AC_LIBOBJ invocations to module description.
18137         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18138         invocations from here...
18139         * modules/fsync (configure.ac): ... to here.
18140
18141 2011-05-07  Bruno Haible  <bruno@clisp.org>
18142
18143         fsusage: Move AC_LIBOBJ invocations to module description.
18144         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18145         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18146         * modules/fsusage (configure.ac): ... to here.
18147
18148 2011-05-07  Bruno Haible  <bruno@clisp.org>
18149
18150         freopen: Move AC_LIBOBJ invocations to module description.
18151         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18152         invocations from here...
18153         * modules/freopen (configure.ac): ... to here.
18154
18155 2011-05-07  Bruno Haible  <bruno@clisp.org>
18156
18157         free: Move AC_LIBOBJ invocations to module description.
18158         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18159         invocations from here...
18160         * modules/free (configure.ac): ... to here.
18161
18162 2011-05-07  Bruno Haible  <bruno@clisp.org>
18163
18164         freadable: Move AC_LIBOBJ invocations to module description.
18165         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18166         here...
18167         * modules/freadable (configure.ac): ... to here.
18168
18169 2011-05-07  Bruno Haible  <bruno@clisp.org>
18170
18171         fpurge: Move AC_LIBOBJ invocations to module description.
18172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18173         invocations from here...
18174         * modules/fpurge (configure.ac): ... to here.
18175
18176 2011-05-07  Bruno Haible  <bruno@clisp.org>
18177
18178         fpending: Move AC_LIBOBJ invocations to module description.
18179         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18180         gl_FUNC_FPENDING.
18181         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18182         invocations from here...
18183         * modules/fpending (configure.ac): ... to here.
18184
18185 2011-05-07  Bruno Haible  <bruno@clisp.org>
18186
18187         fopen: Move AC_LIBOBJ invocations to module description.
18188         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18189         invocations from here...
18190         * modules/fopen (configure.ac): ... to here.
18191
18192 2011-05-07  Bruno Haible  <bruno@clisp.org>
18193
18194         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18195         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18196         gl_FUNC_FNMATCH_POSIX.
18197         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18198         invocations from here...
18199         * modules/fnmatch (configure.ac): ... to here.
18200         * modules/fnmatch-gnu (configure.ac): ... and here.
18201
18202 2011-05-07  Bruno Haible  <bruno@clisp.org>
18203
18204         flock: Move AC_LIBOBJ invocations to module description.
18205         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18206         invocations from here...
18207         * modules/flock (configure.ac): ... to here.
18208
18209 2011-05-07  Bruno Haible  <bruno@clisp.org>
18210
18211         fileblocks: Move AC_LIBOBJ invocations to module description.
18212         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18213         gl_PREREQ_FILEBLOCKS invocations from here...
18214         * modules/fileblocks (configure.ac): ... to here.
18215
18216 2011-05-06  Bruno Haible  <bruno@clisp.org>
18217
18218         fflush: Move AC_LIBOBJ invocations to module description.
18219         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18220         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18221         invocations from here...
18222         * modules/fflush (configure.ac): ... to here.
18223
18224 2011-05-06  Bruno Haible  <bruno@clisp.org>
18225
18226         fdopendir: Move AC_LIBOBJ invocations to module description.
18227         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18228         here...
18229         * modules/fdopendir (configure.ac): ... to here.
18230         (Depends-on): Improve conditions.
18231
18232 2011-05-06  Bruno Haible  <bruno@clisp.org>
18233
18234         _Exit: Move AC_LIBOBJ invocations to module description.
18235         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18236         invocations from here...
18237         * modules/_Exit (configure.ac): ... to here.
18238
18239 2011-05-21  Bruno Haible  <bruno@clisp.org>
18240
18241         euidaccess: Respect rules for use of AC_LIBOBJ.
18242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18244         from here...
18245         * modules/euidaccess (configure.ac): ... to here.
18246
18247 2011-05-06  Bruno Haible  <bruno@clisp.org>
18248
18249         error: Move AC_LIBOBJ invocations to module description.
18250         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18251         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18252         invocations from here...
18253         * modules/error (configure.ac): ... to here.
18254
18255 2011-05-06  Bruno Haible  <bruno@clisp.org>
18256
18257         duplocale: Move AC_LIBOBJ invocations to module description.
18258         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18259         gl_PREREQ_DUPLOCALE invocations from here...
18260         * modules/duplocale (configure.ac): ... to here.
18261
18262 2011-05-05  Bruno Haible  <bruno@clisp.org>
18263
18264         dirfd: Move AC_LIBOBJ invocations to module description.
18265         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18266         gl_FUNC_DIRFD.
18267         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18268         here...
18269         * modules/dirfd (configure.ac): ... to here.
18270         (Depends-on): Fix condition.
18271
18272 2011-05-05  Bruno Haible  <bruno@clisp.org>
18273
18274         chown: Respect rules for use of AC_LIBOBJ.
18275         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18276         * modules/chown (configure.ac): ... to here.
18277
18278 2011-05-05  Bruno Haible  <bruno@clisp.org>
18279
18280         chdir-long: Move AC_LIBOBJ invocations to module description.
18281         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18282         gl_PREREQ_CHDIR_LONG invocations from here...
18283         * modules/chdir-long (configure.ac): ... to here.
18284
18285 2011-05-05  Bruno Haible  <bruno@clisp.org>
18286
18287         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18288         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18289         from here...
18290         * modules/canonicalize-lgpl (configure.ac): ... to here.
18291
18292 2011-05-05  Bruno Haible  <bruno@clisp.org>
18293
18294         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18295         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18296         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18297         REPLACE_CALLOC.
18298         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18299         * modules/calloc-gnu (configure.ac): Likewise.
18300
18301 2011-05-05  Bruno Haible  <bruno@clisp.org>
18302
18303         btowc: Move AC_LIBOBJ invocations to module description.
18304         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18305         invocations from here...
18306         * modules/btowc (configure.ac): ... to here.
18307
18308 2011-05-21  Bruno Haible  <bruno@clisp.org>
18309
18310         atexit: Move AC_LIBOBJ invocations to module description.
18311         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18313         here...
18314         * modules/atexit (configure.ac): ... to here.
18315
18316 2011-05-05  Bruno Haible  <bruno@clisp.org>
18317
18318         atoll: Move AC_LIBOBJ invocations to module description.
18319         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18320         invocations from here...
18321         * modules/atoll (configure.ac): ... to here.
18322
18323 2011-05-05  Bruno Haible  <bruno@clisp.org>
18324
18325         argz: Move AC_LIBOBJ invocations to module description.
18326         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18327         * modules/argz (configure.ac): ... to here.
18328
18329 2011-05-05  Bruno Haible  <bruno@clisp.org>
18330
18331         alphasort: Move AC_LIBOBJ invocations to module description.
18332         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18333         gl_PREREQ_ALPHASORT invocations from here...
18334         * modules/alphasort (configure.ac): ... to here.
18335
18336 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18337
18338         verify: new macro verify_expr; verify_true deprecated
18339         * NEWS: Mention this.
18340         * doc/verify.texi (Compile-time Assertions): Document this.
18341         * lib/verify.h (verify_true): Deprecate.
18342         (verify_expr): New macro.
18343         * tests/test-verify.c (function): Test verify_expr.
18344
18345 2011-06-14  Jim Meyering  <meyering@redhat.com>
18346
18347         init.sh: give more portable redirection-related advice in a comment
18348         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18349         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18350         for lots of discussion.  Stefano Lattarini suggested the solution
18351         of putting "9>&2" after the command.  Reported by Bruno Haible.
18352
18353 2011-06-13  Bruno Haible  <bruno@clisp.org>
18354
18355         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18357         'none'.
18358
18359 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18360
18361         ftoastr: use strtof only if HAVE_STRTOF
18362         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18364         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18365         * modules/ftoastr (configure.ac): Check for strtof.
18366
18367 2011-06-13  Bruno Haible  <bruno@clisp.org>
18368
18369         gnulib-tool: Addendum to 2011-06-08 commit.
18370         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18371         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18372
18373 2011-06-13  Bruno Haible  <bruno@clisp.org>
18374
18375         fseeko: Provide a non-inline replacement of fseek().
18376         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18377         * modules/fseeko (Depends-on): Add fseek.
18378         * modules/fseek (License): Change to LGPLv2+.
18379
18380 2011-06-13  Bruno Haible  <bruno@clisp.org>
18381
18382         ftello: Provide a non-inline replacement of ftell().
18383         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18384         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18385         not have ftello() (such as on mingw).
18386         * modules/ftello (Depends-on): Add ftell.
18387         * modules/ftell (License): Change to LGPLv2+.
18388
18389 2011-05-07  Bruno Haible  <bruno@clisp.org>
18390
18391         ftell: Move AC_LIBOBJ invocations to module description.
18392         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18393         * modules/ftell (configure.ac): ... to here.
18394
18395 2011-05-07  Bruno Haible  <bruno@clisp.org>
18396
18397         ftello: Respect rules for use of AC_LIBOBJ.
18398         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18399         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18400         here...
18401         * modules/ftello (configure.ac): ... to here.
18402
18403 2011-05-07  Bruno Haible  <bruno@clisp.org>
18404
18405         fseeko: Simplify.
18406         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18407         (gl_FUNC_FSEEKO): Inline it here.
18408
18409 2011-05-07  Bruno Haible  <bruno@clisp.org>
18410
18411         fseek: Move AC_LIBOBJ invocations to module description.
18412         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18413         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18414         * modules/fseek (configure.ac): ... to here.
18415
18416 2011-05-07  Bruno Haible  <bruno@clisp.org>
18417
18418         fseek: Respect rules for use of AC_LIBOBJ.
18419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18420         here...
18421         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18422
18423 2011-05-07  Bruno Haible  <bruno@clisp.org>
18424
18425         fseeko: Respect rules for use of AC_LIBOBJ.
18426         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18427         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18428         here...
18429         * modules/fseeko (configure.ac): ... to here.
18430
18431 2011-06-13  Bruno Haible  <bruno@clisp.org>
18432
18433         gnulib-tool: Allow comments in the 'Depends-on' section.
18434         * doc/gnulib.texi (Module description): Mention comment syntax in the
18435         Depends-on section.
18436         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18437
18438 2011-06-13  Bruno Haible  <bruno@clisp.org>
18439
18440         file-set.h: guard __attibute__ use, now that it's not always defined
18441         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18442         versions that support it.  This fixes a coreutils build failure with
18443         the vendor cc on HP-UX 11.31.
18444
18445 2011-06-12  Bruno Haible  <bruno@clisp.org>
18446
18447         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18448         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18449         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18450         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18451         (acl, aclsort): New declarations.
18452         (aclv_nontrivial): New declaration.
18453         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18454         (file_has_acl): Read also the second kind of HP-UX ACLs.
18455         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18456         kind of HP-UX ACLs if the first kind fails.
18457         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18458         second kind of HP-UX ACLs.
18459         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18460         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18461         agree.
18462         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18463         hpuxjfs.
18464         Handle hpuxjfs.
18465         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18466         hpuxjfs.
18467         Handle hpuxjfs.
18468         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18469         (func_test_same_acls): Use both lsacl and getacl.
18470         Handle hpuxjfs.
18471         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18472         (func_test_same_acls): Use both lsacl and getacl.
18473         Handle hpuxjfs.
18474
18475 2011-06-12  Bruno Haible  <bruno@clisp.org>
18476
18477         acl: Complete the 2010-08-10 fix.
18478         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18479         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18480         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18481         explicitly.
18482         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18483         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18484
18485 2011-06-12  Bruno Haible  <bruno@clisp.org>
18486
18487         spawn-pipe tests: Comments.
18488         * tests/test-spawn-pipe-child.c (main): Update comment.
18489         Reported by James Youngman <jay@gnu.org>.
18490
18491 2011-06-11  James Youngman  <jay@gnu.org>
18492
18493         New module 'stat-size'.
18494         * modules/stat-size: New module.  Provides macros for accessing
18495         file size information in instances of struct stat.  Depends on the
18496         fileblocks module because it calls st_blocks.
18497         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18498         * doc/gnulib.texi: Include stat-size.texi.
18499         * doc/stat-size.texi: Documentation for this module.
18500         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18501         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18502         AC_STRUCT_ST_BLOCKS.
18503
18504 2011-06-09  Bruno Haible  <bruno@clisp.org>
18505
18506         thread: Support pthreads-win32.
18507         * lib/glthread/thread.h (gl_thread_self): Define differently on
18508         pthreads-win32.
18509         (gl_null_thread): New declaration.
18510         (gl_thread_self_pointer): New macro.
18511         * lib/glthread/thread.c (gl_null_thread): New constant.
18512         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18513         gl_thread_self.
18514         * tests/test-tls.c: Likewise.
18515         Suggested by Paul Eggert. Reported by Eric Blake.
18516
18517 2011-06-09  Bruno Haible  <bruno@clisp.org>
18518
18519         thread: Fix confusion between NULL and 0.
18520         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18521         Reported by Paul Eggert.
18522
18523 2011-06-09  Bruno Haible  <bruno@clisp.org>
18524
18525         spawn-pipe tests: Avoid test failure on HP-UX 11.
18526         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18527         is closed.
18528
18529 2011-06-09  Bruno Haible  <bruno@clisp.org>
18530
18531         acl tests: Fix compilation error on HP-UX 11.
18532         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18533
18534 2011-06-09  Bruno Haible  <bruno@clisp.org>
18535
18536         rmdir: Avoid test failure on HP-UX 10.20.
18537         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18538         EEXIST.
18539
18540 2011-06-08  Eric Blake  <eblake@redhat.com>
18541
18542         perror: fix test on mingw
18543         * modules/perror-tests (Depends-on): Add dup2.
18544
18545         strerror_r-posix: fix on MacOS
18546         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18548         logic bug.
18549         * lib/strerror_r.c (strerror_r): Fix the bug.
18550         * lib/strerror.c (strerror): Likewise.
18551         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18552         problem.
18553         * doc/posix-functions/strerror.texi (strerror): Likewise.
18554         * doc/posix-functions/perror.texi (perror): Likewise.
18555         * tests/test-strerror.c (main): Enhance test.
18556         * tests/test-strerror_r.c (main): Likewise.
18557
18558 2011-06-08  Bruno Haible  <bruno@clisp.org>
18559
18560         gnulib-tool: Better isolation between different gnulib-tool invocations.
18561         * gnulib-tool: New option --witness-c-macro.
18562         (witness_c_macro): New variable.
18563         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18564         AM_CPPFLAGS define it as a C macro.
18565         (func_emit_tests_Makefile_am): Likewise.
18566         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18567         read it from there.
18568         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18569         m4_define, not AC_DEFUN.
18570         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18571         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18572         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18573         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18574         s|...|...|, to substitute the values of the GNULIB_* module indicator
18575         variables.
18576         * modules/dirent (Makefile.am): Likewise.
18577         * modules/fcntl-h (Makefile.am): Likewise.
18578         * modules/iconv-h (Makefile.am): Likewise.
18579         * modules/langinfo (Makefile.am): Likewise.
18580         * modules/locale (Makefile.am): Likewise.
18581         * modules/math (Makefile.am): Likewise.
18582         * modules/netdb (Makefile.am): Likewise.
18583         * modules/poll-h (Makefile.am): Likewise.
18584         * modules/pty (Makefile.am): Likewise.
18585         * modules/search (Makefile.am): Likewise.
18586         * modules/signal (Makefile.am): Likewise.
18587         * modules/spawn (Makefile.am): Likewise.
18588         * modules/stdio (Makefile.am): Likewise.
18589         * modules/stdlib (Makefile.am): Likewise.
18590         * modules/string (Makefile.am): Likewise.
18591         * modules/sys_ioctl (Makefile.am): Likewise.
18592         * modules/sys_select (Makefile.am): Likewise.
18593         * modules/sys_socket (Makefile.am): Likewise.
18594         * modules/sys_stat (Makefile.am): Likewise.
18595         * modules/sys_times (Makefile.am): Likewise.
18596         * modules/sys_utsname (Makefile.am): Likewise.
18597         * modules/sys_wait (Makefile.am): Likewise.
18598         * modules/termios (Makefile.am): Likewise.
18599         * modules/time (Makefile.am): Likewise.
18600         * modules/unistd (Makefile.am): Likewise.
18601         * modules/wchar (Makefile.am): Likewise.
18602
18603 2011-06-08  Eric Blake  <eblake@redhat.com>
18604
18605         strerror: simplify replacement
18606         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18607         * modules/strerror (configure.ac): No prereqs needed here...
18608         * modules/strerror-override (configure.ac): ...but this needs it.
18609         (Files): Add file for needed prereq macro.
18610
18611 2011-06-08  Bruno Haible  <bruno@clisp.org>
18612
18613         strerror_r-posix: Tweaks.
18614         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18615         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18617         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18618         (gl_FUNC_STRERROR_R): ... to here.
18619         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18620
18621 2011-06-07  Eric Blake  <eblake@redhat.com>
18622
18623         perror: document fixed bugs
18624         * doc/posix-functions/perror.texi (perror): Document recent
18625         patches.
18626
18627 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18628
18629         stat-time: get_stat_birthtime failure is better-defined
18630         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18631         return a timestamp whose tv_sec and tv_nsec values are both -1.
18632         Previously, the spec said only that the tv_nsec value was negative.
18633         This upward-compatible change simplifies GNU tar a bit.
18634
18635 2011-06-07  Eric Blake  <eblake@redhat.com>
18636
18637         strerror_r-posix: work around cygwin 1.7.9
18638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18639         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18640         bug without replacing strerror_r.
18641         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18642         strerror_r is buggy, but without requiring strerror_r compilation.
18643         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18644
18645         test-perror: relax test to ignore cygwin bug
18646         * tests/test-perror2.c (main): Relax test on requiring detection
18647         of stream errors, and use unbuffered stream.
18648         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18649         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18650         * doc/posix-functions/fputc.texi (fputc): Likewise.
18651         * doc/posix-functions/fputs.texi (fputs): Likewise.
18652         * doc/posix-functions/fputws.texi (fputws): Likewise.
18653         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18654         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18655         * doc/posix-functions/getopt.texi (getopt): Likewise.
18656         * doc/posix-functions/perror.texi (perror): Likewise.
18657         * doc/posix-functions/printf.texi (printf): Likewise.
18658         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18659         * doc/posix-functions/psignal.texi (psignal): Likewise.
18660         * doc/posix-functions/putc.texi (putc): Likewise.
18661         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18662         Likewise.
18663         * doc/posix-functions/putchar.texi (putchar): Likewise.
18664         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18665         Likewise.
18666         * doc/posix-functions/puts.texi (puts): Likewise.
18667         * doc/posix-functions/putwc.texi (putwc): Likewise.
18668         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18669         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18670         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18671         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18672         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18673         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18674         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18675         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18676
18677 2011-05-22  Bruno Haible  <bruno@clisp.org>
18678
18679         strerror: Move AC_LIBOBJ invocations to module description.
18680         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18681         gl_PREREQ_STRERROR invocations from here...
18682         * modules/strerror (configure.ac): ... to here.
18683
18684 2011-05-21  Bruno Haible  <bruno@clisp.org>
18685
18686         perror: Use common idiom.
18687         * modules/perror (configure.ac): Reorder statements.
18688
18689 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18690
18691         tests: fix usage message in 'mktempd_'
18692         * tests/init.sh (mktempd_): In the usage message, use literal
18693         'mktempd_', not '$ME' (which is even undefined), as the name of
18694         the subroutine.
18695
18696 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18697
18698         tests init: new function 'fatal_', for hard errors
18699         Before this patch, the only way offered by tests/init.sh to
18700         properly signal a hard error was the `framework_failure_'
18701         function.  But the error message issued by that function,
18702         as its name would suggest, refers to a set-up failure in the
18703         testsuite, while hard errors can obviously also be due to
18704         other reasons.  The best way to fix this inconsistency is to
18705         introduce a new function with a more general error message.
18706         * tests/init.sh (fatal_): New function.
18707
18708 2011-06-06  Eric Blake  <eblake@redhat.com>
18709
18710         canonicalize-lgpl: use common idiom
18711         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18712         over newer POSIX -Rf.
18713         Reported by Bruno Haible.
18714
18715         canonicalize-lgpl: work around AIX realpath bug
18716         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18717         * doc/posix-functions/realpath.texi (realpath): Document it.
18718         Reported by Bruno Haible.
18719
18720         strerror: work around FreeBSD bug
18721         * lib/strerror.c (strerror): Special case 0.
18722         Reported by Bruno Haible.
18723
18724         strerror-override: avoid bloating errno module
18725         * modules/errno (Files, configure.ac): Move replacement strings...
18726         * modules/strerror-override: ...to new module.
18727         * modules/strerror (Depends-on): Add strerror-override.
18728         * modules/strerror_r-posix (Depends-on): Likewise.
18729         * MODULES.html.sh: Document new module.
18730         Reported by Bruno Haible.
18731
18732 2011-06-06  Bruno Haible  <bruno@clisp.org>
18733
18734         spawn-pipe tests: Rename program.
18735         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18736         * tests/test-spawn-pipe-child.c: Update comment.
18737         * tests/test-spawn-pipe.sh: Update.
18738         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18739
18740         spawn-pipe tests: Link the child program only against libc.
18741         * tests/test-spawn-pipe-child.c: New file, extracted from
18742         tests/test-spawn-pipe.c.
18743         (main): Expect only one argument.
18744         (is_open): New function, copied from tests/test-pipe.c.
18745         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18746         (child_main): Remove function.
18747         (test_pipe): Pass only one argument to the child program.
18748         (main): Remove child process code. Expect the child program's name as
18749         first argument.
18750         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18751         argument.
18752         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18753         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18754         test-spawn-pipe-child against no libraries.
18755
18756 2011-06-06  Bruno Haible  <bruno@clisp.org>
18757
18758         careadlinkat: Avoid mismatch between ssize_t and int.
18759         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18760         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18761
18762 2011-06-06  Jim Meyering  <meyering@redhat.com>
18763
18764         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18765         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18766         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18767
18768 2011-06-05  Bruno Haible  <bruno@clisp.org>
18769
18770         ansi-c++-opt: Interoperability with libtool.
18771         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18772         set the variable to "no", not to ":".
18773         * NEWS: Mention the change.
18774
18775 2011-06-05  Bruno Haible  <bruno@clisp.org>
18776
18777         acl: Fix test failure on AIX 7.
18778         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18779         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18780
18781 2011-06-05  Bruno Haible  <bruno@clisp.org>
18782
18783         pipe-filter-ii: Fix test failure on AIX and IRIX.
18784         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18785         with EAGAIN, retry with a smaller buffer size.
18786
18787 2011-06-05  Bruno Haible  <bruno@clisp.org>
18788
18789         localename: Fix link dependencies.
18790         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18791         * modules/localename-tests (Makefile.am): Link test-localename with
18792         $(LIBTHREAD).
18793
18794 2011-06-05  Bruno Haible  <bruno@clisp.org>
18795
18796         error: Avoid gcc warning.
18797         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18798
18799 2011-06-05  Bruno Haible  <bruno@clisp.org>
18800
18801         unsetenv: Avoid gcc warning.
18802         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18803
18804 2011-06-05  Bruno Haible  <bruno@clisp.org>
18805
18806         setenv: Avoid gcc warning.
18807         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18808
18809 2011-06-05  Bruno Haible  <bruno@clisp.org>
18810
18811         sys_select: Ensure memset is declared also on AIX 7.
18812         * lib/sys_select.in.h: Include <string.h> also on AIX.
18813         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18814         self-contained also on AIX 7.1.
18815
18816 2011-06-04  Jim Meyering  <meyering@redhat.com>
18817
18818         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18819         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18820         function name, "error".
18821         (_gl_translatable_diag_func_re): New configurable variable.
18822
18823 2011-06-04  Bruno Haible  <bruno@clisp.org>
18824
18825         getopt: Avoid gcc warning.
18826         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18827
18828 2011-06-04  Bruno Haible  <bruno@clisp.org>
18829
18830         strerror_r: Fix comments.
18831         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18832         commit.
18833
18834 2011-06-04  Bruno Haible  <bruno@clisp.org>
18835
18836         perror: Fix compilation error.
18837         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18838         Undefine fprintf, not sprintf.
18839         * modules/perror (Depends-on): Remove intprops, verify.
18840
18841 2011-06-04  Bruno Haible  <bruno@clisp.org>
18842
18843         setlocale: Enable replacement on Cygwin 1.5.
18844         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18845         Cygwin 1.5.x.
18846         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18847         LC_CTYPE category also exists on Cygwin 1.5.x.
18848
18849 2011-06-04  Bruno Haible  <bruno@clisp.org>
18850
18851         strerror-override: Don't disable symbol renamings.
18852         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18853         * lib/strerror-override.c: Include config.h.
18854         (strerror_override): Don't undefine.
18855
18856 2011-06-03  Bruno Haible  <bruno@clisp.org>
18857
18858         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18859         * lib/localename.h: Update copyright header.
18860         * lib/localename.c: Likewise.
18861         * lib/relocatable.h: Likewise.
18862         * lib/relocatable.c: Likewise.
18863
18864 2011-06-02  Bruno Haible  <bruno@clisp.org>
18865
18866         doc: Fix a module name.
18867         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18868
18869 2011-06-02  Bruno Haible  <bruno@clisp.org>
18870
18871         pipe2: Remove dependency on 'nonblocking' module.
18872         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18873         O_NONBLOCK is defined by gnulib.
18874         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18875         is zero.
18876         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18877         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18878         defined by gnulib.
18879         (get_nonblocking_flag): New function.
18880         (main): Test O_NONBLOCK flag only if it is nonzero.
18881         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18882
18883 2011-06-03  Jim Meyering  <meyering@redhat.com>
18884
18885         maint: three new prohibit-header-without-use rules
18886         Prohibit use of cloexec.h, posixver.h, same.h without use.
18887         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18888         (sc_prohibit_posixver_without_use): Likewise.
18889         (sc_prohibit_same_without_use): Likewise.
18890
18891 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         allocator: 'die' routine is now given requested size
18894         * lib/allocator.h (struct allocator.die): New size arg.
18895         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18896         If the actual problem is an ssize_t limitation, not a size_t or
18897         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18898
18899 2011-06-01  Eric Blake  <eblake@redhat.com>
18900
18901         strerror: drop strerror_r dependency
18902         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18903         * lib/strerror-override.c (strerror_override): ...to new file.
18904         * lib/strerror-override.h: Add prototype.
18905         * lib/strerror-impl.h: Delete.
18906         * lib/strerror.c (strerror): New implementation.
18907         * modules/errno (Files): Add new files.
18908         (configure.ac): Compile new file as appropriate.
18909         * modules/strerror (Files): Drop unused file.
18910         (Depends-on): Drop strerror_r-posix.
18911         * MODULES.html.sh: Document strerror_r-posix.
18912         Requested by Sam Steingold.
18913
18914         perror: call strerror_r directly
18915         * modules/perror (Files): Drop strerror-impl.h.
18916         * lib/perror.c (perror): Use our own stack buffer, rather than
18917         calling a wrapper that uses static storage.
18918         * doc/posix-functions/perror.texi (perror): Document a limitation
18919         of our replacement.
18920
18921         strerror_r: fix includes for FreeBSD
18922         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18923         since we use abort on some platforms.
18924         Reported by Matthias Bolte.
18925
18926 2011-05-31  Bruno Haible  <bruno@clisp.org>
18927
18928         Fix link errors in tests: openat-die uses gettext-h.
18929         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18930         against $(LIBINTL).
18931         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18932         against $(LIBINTL).
18933         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18934         $(LIBINTL).
18935         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18936         against $(LIBINTL).
18937         * modules/linkat-tests (Makefile.am): Link test-linkat against
18938         $(LIBINTL).
18939         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18940         $(LIBINTL).
18941         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18942         against $(LIBINTL).
18943         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18944         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18945         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18946         $(LIBINTL).
18947         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18948         $(LIBINTL).
18949         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18950         $(LIBINTL).
18951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18952
18953 2011-05-31  Bruno Haible  <bruno@clisp.org>
18954
18955         Fix link errors in tests: wait-process uses gettext-h.
18956         * modules/nonblocking-pipe-tests (Makefile.am): Set
18957         test_nonblocking_pipe_main_LDADD.
18958         * modules/nonblocking-socket-tests (Makefile.am): Link
18959         test-nonblocking-socket-main against $(LIBINTL).
18960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18961
18962 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18963
18964         assert-h: work around 'verify' incompatibility
18965         * lib/verify.h: Use @...@ directives, not ifdef.
18966         * modules/assert-h (assert.h): Implement the directives.
18967         (assert.h): Substitute the symbol-prefix more consistently.
18968
18969 2011-05-29  Jim Meyering  <meyering@redhat.com>
18970
18971         trim: remove three superfluous assignments
18972         * lib/trim.c (trim2): Remove three superfluous assignments
18973         and correct brace positioning.
18974
18975 2011-05-29  Bruno Haible  <bruno@clisp.org>
18976
18977         wctype-h: Avoid namespace pollution on Solaris 2.6.
18978         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18979         identifiers.
18980         * doc/posix-headers/wctype.texi: Mention the problem.
18981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18982
18983 2011-05-28  Jim Meyering  <meyering@redhat.com>
18984
18985         parse-datetime.y: accommodate -Wstrict-overflow
18986         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18987         placate -Wstrict-overflow.
18988
18989         trim: avoid a warning from -O2 -Wstrict-overflow
18990         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18991
18992 2011-05-29  Bruno Haible  <bruno@clisp.org>
18993
18994         gnulib-tool: Fix bug in yesterday's commit.
18995         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18996         twice.
18997
18998 2011-05-29  Bruno Haible  <bruno@clisp.org>
18999
19000         Allow multiple gnulib generated include files to be combined.
19001         * gnulib-tool (func_compute_include_guard_prefix): New function.
19002         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19003         ${gl_include_guard_prefix} references.
19004         (func_import, func_create_testdir): Invoke
19005         func_compute_include_guard_prefix.
19006         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19007         * lib/ctype.in.h: Likewise.
19008         * lib/dirent.in.h: Likewise.
19009         * lib/errno.in.h: Likewise.
19010         * lib/fcntl.in.h: Likewise.
19011         * lib/float.in.h: Likewise.
19012         * lib/getopt.in.h: Likewise.
19013         * lib/iconv.in.h: Likewise.
19014         * lib/langinfo.in.h: Likewise.
19015         * lib/locale.in.h: Likewise.
19016         * lib/math.in.h: Likewise.
19017         * lib/netdb.in.h: Likewise.
19018         * lib/netinet_in.in.h: Likewise.
19019         * lib/poll.in.h: Likewise.
19020         * lib/pthread.in.h: Likewise.
19021         * lib/pty.in.h: Likewise.
19022         * lib/sched.in.h: Likewise.
19023         * lib/se-selinux.in.h: Likewise.
19024         * lib/search.in.h: Likewise.
19025         * lib/signal.in.h: Likewise.
19026         * lib/spawn.in.h: Likewise.
19027         * lib/stdarg.in.h: Likewise.
19028         * lib/stddef.in.h: Likewise.
19029         * lib/stdint.in.h: Likewise.
19030         * lib/stdio.in.h: Likewise.
19031         * lib/stdlib.in.h: Likewise.
19032         * lib/string.in.h: Likewise.
19033         * lib/strings.in.h: Likewise.
19034         * lib/sys_file.in.h: Likewise.
19035         * lib/sys_ioctl.in.h: Likewise.
19036         * lib/sys_select.in.h: Likewise.
19037         * lib/sys_socket.in.h: Likewise.
19038         * lib/sys_stat.in.h: Likewise.
19039         * lib/sys_time.in.h: Likewise.
19040         * lib/sys_times.in.h: Likewise.
19041         * lib/sys_uio.in.h: Likewise.
19042         * lib/sys_utsname.in.h: Likewise.
19043         * lib/sys_wait.in.h: Likewise.
19044         * lib/sysexits.in.h: Likewise.
19045         * lib/termios.in.h: Likewise.
19046         * lib/time.in.h: Likewise.
19047         * lib/unistd.in.h: Likewise.
19048         * lib/wchar.in.h: Likewise.
19049         * lib/wctype.in.h: Likewise.
19050         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19051         * modules/ctype (Makefile.am): Likewise.
19052         * modules/dirent (Makefile.am): Likewise.
19053         * modules/errno (Makefile.am): Likewise.
19054         * modules/fcntl-h (Makefile.am): Likewise.
19055         * modules/float (Makefile.am): Likewise.
19056         * modules/getopt-posix (Makefile.am): Likewise.
19057         * modules/iconv-h (Makefile.am): Likewise.
19058         * modules/langinfo (Makefile.am): Likewise.
19059         * modules/locale (Makefile.am): Likewise.
19060         * modules/math (Makefile.am): Likewise.
19061         * modules/netdb (Makefile.am): Likewise.
19062         * modules/netinet_in (Makefile.am): Likewise.
19063         * modules/poll-h (Makefile.am): Likewise.
19064         * modules/pthread (Makefile.am): Likewise.
19065         * modules/pty (Makefile.am): Likewise.
19066         * modules/sched (Makefile.am): Likewise.
19067         * modules/search (Makefile.am): Likewise.
19068         * modules/selinux-h (Makefile.am): Likewise.
19069         * modules/signal (Makefile.am): Likewise.
19070         * modules/spawn (Makefile.am): Likewise.
19071         * modules/stdarg (Makefile.am): Likewise.
19072         * modules/stddef (Makefile.am): Likewise.
19073         * modules/stdint (Makefile.am): Likewise.
19074         * modules/stdio (Makefile.am): Likewise.
19075         * modules/stdlib (Makefile.am): Likewise.
19076         * modules/string (Makefile.am): Likewise.
19077         * modules/strings (Makefile.am): Likewise.
19078         * modules/sys_file (Makefile.am): Likewise.
19079         * modules/sys_ioctl (Makefile.am): Likewise.
19080         * modules/sys_select (Makefile.am): Likewise.
19081         * modules/sys_socket (Makefile.am): Likewise.
19082         * modules/sys_stat (Makefile.am): Likewise.
19083         * modules/sys_time (Makefile.am): Likewise.
19084         * modules/sys_times (Makefile.am): Likewise.
19085         * modules/sys_uio (Makefile.am): Likewise.
19086         * modules/sys_utsname (Makefile.am): Likewise.
19087         * modules/sys_wait (Makefile.am): Likewise.
19088         * modules/sysexits (Makefile.am): Likewise.
19089         * modules/termios (Makefile.am): Likewise.
19090         * modules/time (Makefile.am): Likewise.
19091         * modules/unistd (Makefile.am): Likewise.
19092         * modules/wchar (Makefile.am): Likewise.
19093         * modules/wctype-h (Makefile.am): Likewise.
19094         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19095
19096 2011-05-29  Bruno Haible  <bruno@clisp.org>
19097
19098         assert-h: Allow multiple gnulib generated replacements to coexist.
19099         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19100
19101 2011-05-29  Bruno Haible  <bruno@clisp.org>
19102
19103         argp: Allow coexistence with strerror_r-posix module.
19104         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19105         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19106         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19107         not the glibc signature.
19108
19109 2011-05-28  Bruno Haible  <bruno@clisp.org>
19110
19111         gnulib-tool: Alternative structure of testdirs, similar to --import.
19112         * gnulib-tool: New option --single-configure.
19113         (func_usage): Document it.
19114         (single_configure): New variable.
19115         (func_modules_transitive_closure_separately,
19116         func_modules_transitive_closure_separately,
19117         func_determine_use_libtests, func_modules_add_dummy_separately,
19118         func_modules_to_filelist_separately): New functions, extracted from
19119         func_import.
19120         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19121         (func_import): Use the new functions.
19122         (func_create_testdir): Set final_modules. Handle $single_configure =
19123         true case.
19124
19125 2011-05-28  Bruno Haible  <bruno@clisp.org>
19126
19127         getloadavg: Remove an unreliable safety check.
19128         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19129         getloadavg.c is in place.
19130         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19131         Reported by Sam Steingold <sds@gnu.org>.
19132
19133 2011-05-28  Bruno Haible  <bruno@clisp.org>
19134
19135         doc: Cleanup yet another file produced by texinfo.tex.
19136         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19137
19138 2011-05-28  Bruno Haible  <bruno@clisp.org>
19139
19140         Finish the conditional dependencies mechanism.
19141         * gnulib-tool: New option --no-conditional-dependencies.
19142         (func_usage): Document it. Don't mark --conditional-dependencies as
19143         experimental.
19144         (cond_dependencies): The possible values can now be true, false, empty.
19145         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19146         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19147         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19148
19149 2011-05-28  Bruno Haible  <bruno@clisp.org>
19150
19151         doc: Use a recent texinfo.tex.
19152         * doc/Makefile (tex_opts): New variable.
19153         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19154
19155 2011-05-28  Jim Meyering  <meyering@redhat.com>
19156
19157         intprops.h: adjust comment to match code change
19158         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19159         only once, it *may* have side effects.  Also fix an unrelated typo.
19160         (_GL_INT_SIGNED): Likewise.
19161
19162 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19163
19164         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19165
19166 2011-05-26  Bruno Haible  <bruno@clisp.org>
19167
19168         mbsrchr: Avoid collision with system function on Interix.
19169         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19170         Reported by Markus Duft <mduft@gentoo.org>.
19171
19172 2011-05-15  James Youngman  <jay@gnu.org>
19173
19174         getopt: for ambiguous options, enumerate the possibilities.
19175         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19176         the ambiguous options when an ambiguous prefix is given. This was
19177         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19178         glibc change was
19179         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19180
19181 2011-05-25  Eric Blake  <eblake@redhat.com>
19182
19183         getcwd: work around mingw bug
19184         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19185         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19186         Reported by Matthias Bolte.
19187
19188 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19189
19190         test-intprops: disable -Wtype-limits diagnostics
19191         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19192         diagnostics.  Otherwise, the integer overflow macros generate many
19193         diagnostics.  Reported by Jim Meyering in
19194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19195
19196         intprops: shorten, to pacify gcc -Woverlength-strings
19197         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19198         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19199         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19200         likely to run afoul of C compiler limits for string constant lengths.
19201         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19202
19203 2011-05-24  Eric Blake  <eblake@redhat.com>
19204
19205         docs: document recently fixed glibc printf bug
19206         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19207         * doc/posix-functions/printf.texi (printf): Likewise.
19208         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19210
19211         closein-tests: convert to init.sh
19212         * modules/closein-tests (Files): Add init.sh
19213         * tests/test-closein.sh Use it.
19214
19215         yesno-tests: convert to init.sh
19216         * modules/yesno-tests (Files): Add init.sh.
19217         * tests/test-yesno.sh: Use it.
19218
19219         atexit-tests: ensure reliable exit status
19220         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19221         Reported by Bruno Haible.
19222
19223 2011-05-24  Bruno Haible  <bruno@clisp.org>
19224
19225         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19226         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19227         gl_PREREQ_STRERROR_R invocations from here...
19228         * modules/strerror_r-posix (configure.ac): ... to here.
19229
19230 2011-05-24  Eric Blake  <eblake@redhat.com>
19231
19232         strerror_r: fix missing header
19233         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19234
19235         strerror_r: fix AIX test failures
19236         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19237         ERANGE failure.
19238
19239         strerror_r: fix Solaris test failures
19240         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19241         failures.
19242         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19243
19244         strerror_r: enforce POSIX recommendations
19245         * lib/strerror_r.c (safe_copy): New helper method.
19246         (strerror_r): Guarantee a non-empty string.
19247         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19248         recent POSIX rulings and to match our strerror guarantees.
19249         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19250
19251 2011-05-24  Jim Meyering  <meyering@redhat.com>
19252
19253         test-perror2.c: avoid warning about unused variable
19254         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19255
19256 2011-05-24  Eric Blake  <eblake@redhat.com>
19257
19258         perror: avoid spurious test failure on HP-UX
19259         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19260
19261         tests: fix logic bug in init.sh
19262         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19263         shell.
19264
19265 2011-05-24  Jim Meyering  <meyering@redhat.com>
19266
19267         utimensat: do not reference an out-of-scope buffer
19268         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19269         declared in an inner scope, yet "times" would be dereferenced outside
19270         the scope in which "ts" was valid.
19271         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19272         of ts[2] "out/up", so that the use of aliased "times" (via
19273         "times = ts;") does not end up referencing an out-of-scope "ts"
19274
19275         opendir-safer.c: don't clobber errno; don't close negative FD
19276         * lib/opendir-safer.c (opendir_safer):
19277         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19278         file descriptor, and more importantly, don't clobber the
19279         offending errno value with EINVAL.  Before, upon failure
19280         of dup_safer, we would pass the negative file descriptor to
19281         fdopendir, which would clobber errno.
19282
19283 2011-05-23  Bruno Haible  <bruno@clisp.org>
19284
19285         idcache: Fix module description.
19286         * modules/idcache (Include): Set to "idcache.h".
19287
19288 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19289
19290         gnulib-tool: fix portability problem with MacOS sed
19291         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19292         before the "}".  Problem reported by Leo in
19293         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19294         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19295         sed_extract_condition1, sed_extract_condition2.
19296
19297 2011-05-23  Bruno Haible  <bruno@clisp.org>
19298
19299         hash: Simplify autoconf macro.
19300         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19301
19302 2011-05-23  Bruno Haible  <bruno@clisp.org>
19303
19304         getugroups: Fix module description.
19305         * modules/getugroups (Include): Set to "getugroups.h".
19306
19307 2011-05-23  Bruno Haible  <bruno@clisp.org>
19308
19309         linkat: Simplify autoconf macro.
19310         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19311
19312 2011-05-23  Bruno Haible  <bruno@clisp.org>
19313             Eric Blake  <eblake@redhat.com>
19314
19315         linkat, renameat: Update dependencies.
19316         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19317         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19318         symlinkat.
19319
19320 2011-05-23  Jim Meyering  <meyering@redhat.com>
19321
19322         maint.mk: more tight_scope improvements
19323         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19324         (_gl_TS_headers): Define only in if-0'd block.
19325         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19326         sometimes we must *not* use it.  Adjust uses accordingly.
19327         (sc_tight_scope): Use much simpler grep-based test to determine
19328         whether we skip this rule.
19329
19330         maint.mk: generalize/improve the tight-scope rule
19331         * top/maint.mk: Emit a warning when the test is skipped.
19332         (_gl_TS_dir): Add $(srcdir)/ prefix.
19333         (_gl_TS_function_match): Simplify, rather than trying
19334         to enumerate common types.  Otherwise, it would fail to match an
19335         "extern unsigned char const *" declaration in idutils.
19336         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19337         a way to support use of that type of macro.
19338         (_gl_TS_var_match): Simplify regexp.
19339         (_gl_TS_obj_files): New configurable variable.
19340         (_gl_TS_headers): Likewise.
19341
19342 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19343
19344         verify: fix bug when gnulib <assert.h> is also included
19345         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19346         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19347         Perhaps there's a better way, but this fixes the immediate problem.
19348         Problem reported by Bruno Haible in
19349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19350
19351 2011-05-22  Bruno Haible  <bruno@clisp.org>
19352
19353         xgetcwd: Simplify autoconf macro.
19354         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19355
19356 2011-05-22  Bruno Haible  <bruno@clisp.org>
19357
19358         New module 'mktime-internal'.
19359         * modules/mktime-internal: New file.
19360         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19361         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19362         mktime_internal as a C macro if libc has __mktime_internal.
19363         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19364         conditions.
19365         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19366
19367 2011-05-22  Bruno Haible  <bruno@clisp.org>
19368
19369         timegm: Correct mktime replacement statements.
19370         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19371         defining mktime as a C macro. This completes a 2009-07-28 commit.
19372
19373 2011-05-22  Bruno Haible  <bruno@clisp.org>
19374
19375         timegm: Simplify autoconf macro.
19376         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19377
19378 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19379
19380         clock-time: change to LGPLv2+.
19381         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19382         BSD-like but we have no mark for that; this is good enough for now.
19383
19384 2011-05-21  Bruno Haible  <bruno@clisp.org>
19385
19386         strerror_r: Fix comments.
19387         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19388
19389 2011-05-21  Bruno Haible  <bruno@clisp.org>
19390
19391         relocatable-prog-wrapper: Fix possible link error.
19392         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19393         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19394         (gl_FUNC_SETENV): ... to here.
19395         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19396         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19397
19398 2011-05-21  Bruno Haible  <bruno@clisp.org>
19399
19400         relocatable-prog-wrapper: Assume strerror() exists.
19401         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19402         m4/strerror.m4.
19403         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19404         * lib/relocwrapper.c: Remove mention of strerror module.
19405         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19407         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19408         C macro.
19409
19410 2011-05-21  Bruno Haible  <bruno@clisp.org>
19411
19412         select: Simplify replacement idiom.
19413         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19414         Win32 platforms.
19415         * lib/sys_select.in.h (select): Simplify accordingly.
19416         * modules/select (Depends-on): Likewise.
19417
19418 2011-05-21  Bruno Haible  <bruno@clisp.org>
19419
19420         mkdir-p: Simplify autoconf macro.
19421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19422         gl_FUNC_LCHOWN.
19423
19424 2011-05-21  Eric Blake  <eblake@redhat.com>
19425
19426         strerror_r: avoid clobbering strerror on cygwin
19427         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19428         fall back instead to sys_errlist.
19429         * modules/strerror (configure.ac): Add witness.
19430         * tests/test-strerror_r.c (main): Enhance test.
19431         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19432         * tests/test-perror2.c (main): Free memory before exit.
19433
19434 2011-05-21  Bruno Haible  <bruno@clisp.org>
19435
19436         mkdtemp: Use gnulib naming conventions.
19437         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19438         * modules/mkdtemp (configure.ac): Update.
19439
19440 2011-05-20  Eric Blake  <eblake@redhat.com>
19441
19442         strerror_r: avoid corrupting errno on Solaris
19443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19444         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19445
19446         strerror_r: avoid compiler warning
19447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19448
19449         strerror_r: simplify AIX code
19450         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19451
19452         test-perror: avoid spurious failure on FreeBSD
19453         * modules/perror-tests (Depends-on): Add strerror, now that
19454         strerror_r no longer pulls it in.
19455
19456 2011-05-20  Bruno Haible  <bruno@clisp.org>
19457
19458         strerror_r-posix: Remove unused dependencies.
19459         * modules/strerror_r-posix (Depends-on): Remove strerror.
19460         Reported by Eric Blake.
19461
19462 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19463
19464         intprops: remove assumption about A|B representation
19465         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19466         is a valid integer if both A and B are.  Although this is true for
19467         all known practical hosts, the C standard doesn't guarantee it,
19468         and the code need not assume it.  Also, this change may work around
19469         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19471
19472 2011-05-20  Eric Blake  <eblake@redhat.com>
19473
19474         perror: work around FreeBSD bug
19475         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19476         is broken.  Move AC_LIBOBJ...
19477         * modules/perror (configure.ac): Here.
19478         * doc/posix-functions/perror.texi (perror): Document this.
19479         * tests/test-perror2.c (main): Enhance test.
19480
19481         test-perror: check for strerror interactions
19482         * tests/macros.h (STREQ): Add macro.
19483         * modules/perror-tests (Files): Add second test.
19484         * tests/test-perror2.c (main): New file.
19485         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19486
19487         test-perror: rewrite to use init script
19488         * modules/perror-tests (Files): Add init.sh.
19489         * tests/test-perror.sh: Use temporary directory.
19490
19491 2011-05-20  Jim Meyering  <meyering@redhat.com>
19492
19493         maint: replace misused "a" with "an"
19494         * doc/intprops.texi: "a integer"
19495         * doc/regex.texi: "a explanation"
19496         * lib/alignof.h: "a object"
19497         * lib/argmatch.h: "a explanation"
19498         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19499         * lib/stdint.in.h: "a integer"
19500         * lib/userspec.c: "a owner"
19501         * doc/gnulib.texi: Fix "a idea", and reword.
19502
19503 2011-05-19  Jim Meyering  <meyering@redhat.com>
19504
19505         maint: correct misuse of "a" and "an"
19506         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19507         * lib/argp-help.c: "an docum...": s/an/a/
19508         * lib/argp-parse.c: "An vector": s/An/A/
19509         * lib/execute.c: "an native": s/an/a/
19510         * lib/spawn-pipe.c: Likewise.
19511         * lib/gc.h: "an Gc_rc": s/an/a/
19512         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19513         * lib/fts.c: "an stat.st_dev": s/an/a/
19514
19515 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19516
19517         intprops-tests: work around HP-UX 11.23 cc bug with constants
19518         * tests/test-intprops.c (VERIFY): New macro.
19519         (main): Use it, instead of verify, to work around the compiler bug; see
19520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19521
19522         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19523         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19524         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19525         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19526         (_GL_REMAINDER_OVERFLOW): Use it.
19527
19528         intprops-tests: revert unsigned part of previous change
19529         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19530         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19531         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19533
19534 2011-05-19  Bruno Haible  <bruno@clisp.org>
19535
19536         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19537         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19538         strerror_r() returned without filling the buffer.
19539         Reported by Eric Blake.
19540
19541 2011-05-19  Eric Blake  <eblake@redhat.com>
19542
19543         strerror_r: guarantee unchanged errno
19544         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19545         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19546         failure.
19547         * tests/test-strerror_r.c (main): Enhance test.
19548
19549 2011-05-19  Bruno Haible  <bruno@clisp.org>
19550
19551         strerror_r: Reorder #if blocks.
19552         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19553         for consistency with the previous commit.
19554
19555 2011-05-19  Bruno Haible  <bruno@clisp.org>
19556
19557         perror: Avoid clobbering the strerror buffer when possible.
19558         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19559         * lib/strerror.c: Include it.
19560         * modules/strerror (Files): Add lib/strerror-impl.h.
19561         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19562         (my_strerror): New function, defined through lib/strerror-impl.h.
19563         (perror): Use it instead of strerror.
19564         * modules/perror (Files): Add lib/strerror-impl.h.
19565         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19566
19567 2011-05-19  Eric Blake  <eblake@redhat.com>
19568
19569         strerror_r: fix on newer cygwin
19570         * lib/strerror_r.c (strerror_r): Cygwin now has
19571         __xpg_strerror_r, use it.
19572
19573 2011-05-19  Bruno Haible  <bruno@clisp.org>
19574
19575         strerror_r: Avoid clobbering the strerror buffer when possible.
19576         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19577         (sys_nerr, sys_errlist): New declarations.
19578         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19579         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19580         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19581
19582 2011-05-19  Bruno Haible  <bruno@clisp.org>
19583
19584         strerror_r: Fix test failure on mingw.
19585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19586         EXTEND_STRERROR_R.
19587         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19588         macros from errno.in.h instead.
19589
19590 2011-05-19  Eric Blake  <eblake@redhat.com>
19591
19592         strerror: relax test for Solaris
19593         * tests/test-strerror.c (main): Permit Solaris behavior.
19594         * tests/test-strerror_r.c (main): Likewise.
19595
19596         strerror: enforce POSIX ruling on strerror(0)
19597         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19599         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19600         * doc/posix-functions/strerror.texi (strerror): Document it.
19601         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19602         * tests/test-strerror.c (main): Strengthen test.
19603         * tests/test-strerror_r.c (main): Likewise.
19604
19605 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19606
19607         intprop-tests: port to older and more-pedantic compilers
19608         * modules/intprops-tests (Files): Add tests/macros.h.
19609         * tests/test-intprops.c: Include macros.h.
19610         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19611         it's no longer documented to expand to an integer constant expression.
19612         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19613         argument is floating point, as it's no longer documented to expand
19614         to an integer constant expression in that case.
19615         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19616         compiler bugs reported by Bruno Haible.  See
19617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19618         (U0, U1): New constants, to work around the same bugs.  Also,
19619         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19620
19621         intprops: work around C compiler bugs
19622         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19623         bug in Sun C 5.11 2010/08/13 and other compilers; see
19624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19625
19626         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19627         * doc/intprops.texi (Integer Type Determination): Fix
19628         documentation for TYPE_IS_INTEGER: it returns an constant
19629         expression, not an integer constant expression.  Fix doc for
19630         TYPE_SIGNED: it returns an integer constant expression only if its
19631         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19632         hardly worth documented that way....)
19633
19634 2011-05-18  Bruno Haible  <bruno@clisp.org>
19635
19636         strerror_r: Avoid clobbering the strerror buffer when possible.
19637         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19638         Handle gnulib defined errno values here. When strerror() returns NULL
19639         or an empty string, return EINVAL.
19640         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19641         gnulib defined errno values here.
19642         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19643
19644 2011-05-18  Eric Blake  <eblake@redhat.com>
19645
19646         fnmatch: avoid compiler warning
19647         * lib/fnmatch_loop.c (FCT): Use correct type.
19648         Reported by Matthias Bolte.
19649
19650 2011-05-13  Jim Meyering  <meyering@redhat.com>
19651
19652         maint.mk: three new prohibit_<HDR>_without_use rules
19653         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19654         (sc_prohibit_stdio-safer_without_use): Likewise.
19655         (sc_prohibit_xfreopen_without_use): Likewise.
19656
19657 2011-05-17  Jim Meyering  <meyering@redhat.com>
19658
19659         announce-gen: fail if the NEWS delta is empty
19660         If there's nothing noteworthy in NEWS, then either you forgot
19661         or you shouldn't be releasing.
19662         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19663
19664 2011-05-17  Pádraig Brady <P@draigBrady.com>
19665
19666         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19667         reserved symbols starting with double underscore from the check.
19668
19669 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19670
19671         intprops: add doc
19672         * doc/intprops.texi: New file, documenting intprops.
19673         * doc/gnulib.texi (Particular Modules): Include it.
19674
19675         verify: add doc to gnulib manual and fix example
19676         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19677         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19678         (Compile-time Assertions): Fix example so it can't overflow.
19679
19680 2011-05-17  Jim Meyering  <meyering@redhat.com>
19681
19682         warnings.m4: don't usurp save_CPPFLAGS variable name
19683         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19684
19685         doc: fix typo
19686         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19687
19688 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19689             Bruno Haible  <bruno@clisp.org>
19690
19691         doc: Tweak recent change.
19692         * README (Portability guidelines): Tweak new text.
19693         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19694         Interix 6.1.
19695
19696 2011-05-16  Eric Blake  <eblake@redhat.com>
19697
19698         inttypes: avoid autoconf warning
19699         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19700         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19701
19702 2011-05-16  Sam Steingold <sds@gnu.org>
19703         and Eric Blake  <eblake@redhat.com>
19704
19705         vc-list-files: accept multiple directory operands
19706         * build-aux/vc-list-files: Iterate over all remaining operands.
19707
19708 2011-05-16  Bruno Haible  <bruno@clisp.org>
19709
19710         Fix confusion regarding deprecated modules.
19711         * modules/calloc (Status, Notice): Mark module as deprecated, not
19712         obsolete.
19713         * modules/fnmatch-posix (Status, Notice): Likewise.
19714         * modules/getdate (Status, Notice): Likewise.
19715         * modules/getopt (Status, Notice): Likewise.
19716         * modules/malloc (Status, Notice): Likewise.
19717         * modules/pipe (Status, Notice): Likewise.
19718         * modules/realloc (Status, Notice): Likewise.
19719         * modules/rename-dest-slash (Status, Notice): Likewise.
19720         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19721         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19722         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19723         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19724         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19725
19726 2011-05-16  Bruno Haible  <bruno@clisp.org>
19727
19728         doc: List the target platforms.
19729         * doc/gnulib-intro.texi (Target Platforms): New section.
19730         * doc/gnulib.texi (Introduction): Update menu.
19731         * README (Portability guidelines): Refer to the new section. Update
19732         statement about oldest supported environment. Remove rationale why
19733         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19734         unportable C89 function.
19735         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19736         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19737
19738 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19739
19740         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19741
19742 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19743
19744         intprops-tests: new module
19745         * modules/intprops-tests, tests/test-intprops.c: New files.
19746
19747         intprops: add safe, portable integer overflow checking
19748         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19749         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19750         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19751         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19752         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19753         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19754         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19755         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19756         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19757         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19758         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19759
19760 2011-05-12  James Youngman  <jay@gnu.org>
19761
19762         Add a test for glibc's Bugzilla bug #12378.
19763         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19764         doesn't allow the literal matching of a lone "[" (which is
19765         required by POSIX).
19766         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19767
19768 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19769
19770         Sync glibc change fixing Bugzilla bug #12378.
19771         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19772         beginning and fall back to matching as normal character if the
19773         string ends before the matching ']' is found.  This is what POSIX
19774         requires.
19775
19776 2011-05-13  Eric Blake  <eblake@redhat.com>
19777
19778         getcwd-lgpl: relax test for FreeBSD
19779         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19780         issue.
19781         * tests/test-getcwd-lgpl.c (main): Relax test.
19782         Reported by Matthias Bolte.
19783
19784 2011-05-11  Eric Blake  <eblake@redhat.com>
19785
19786         test-fflush: silence compiler warning
19787         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19788
19789 2011-05-11  Bruno Haible  <bruno@clisp.org>
19790
19791         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19793         * modules/canonicalize (Depends-on): Add 'nocrash'.
19794         * modules/canonicalize-lgpl (Depends-on): Likewise.
19795         * doc/posix-functions/realpath.texi: Update platforms list.
19796         Reported by Ryan Schmidt <ryandesign@macports.org>.
19797
19798 2011-05-11  Bruno Haible  <bruno@clisp.org>
19799
19800         group-member: Declare function in <unistd.h>.
19801         * lib/unistd.in.h (group_member): New declaration.
19802         * lib/group-member.h: Remove file.
19803         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19804         * tests/test-unistd-c++.cc: Check signature of group_member.
19805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19806         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19807         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19809         HAVE_GROUP_MEMBER.
19810         * modules/group-member (Files): Remove lib/group-member.h.
19811         (Depends-on): Add unistd. Specify conditions.
19812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19813         (Include): Change to <unistd.h>.
19814         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19815         HAVE_GROUP_MEMBER.
19816         * NEWS: Mention the change.
19817         * lib/euidaccess.c: Don't include group-member.h.
19818
19819 2011-05-11  Bruno Haible  <bruno@clisp.org>
19820
19821         group-member: Document module.
19822         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19823         module.
19824
19825 2011-05-11  Bruno Haible  <bruno@clisp.org>
19826
19827         fclose: Fix mistake earlier today.
19828         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19829
19830 2011-05-11  Eric Blake  <eblake@redhat.com>
19831
19832         fclose: preserve fflush errors
19833         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19834         Reported by Jim Meyering.
19835
19836         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19837         * build-aux/bootstrap (check_versions): When no specific version
19838         is required, merely check that the app produces an exit status
19839         that indicates its existence.
19840
19841         maint.mk: drop redundant check
19842         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19843         the same but better.
19844
19845 2011-05-11  Bruno Haible  <bruno@clisp.org>
19846
19847         fclose: Fix possible link error.
19848         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19849         unregister_shadow_fd. Improve comments.
19850         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19851         Eric Blake.
19852
19853 2011-05-11  Jim Meyering  <meyering@redhat.com>
19854
19855         maint.mk: improve "can not" detection and generalize rule name
19856         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19857         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19858         Use the same technique as in sc_prohibit_doubled_word, so that
19859         we recognize "can not" also when the words are separated by a newline.
19860         Suggested by Eric Blake.
19861         (perl_filename_lineno_text_): Define.  Factored out of...
19862         (prohibit_doubled_word_): ...here.  Use the new definition.
19863         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19864         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19865         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19866
19867 2011-05-10  Eric Blake  <eblake@redhat.com>
19868
19869         fclose: avoid double close race when possible
19870         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19871         all but WINDOWS_SOCKETS.
19872
19873 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19874
19875         openat: correct new comment
19876         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19877
19878 2011-05-10  Jim Meyering  <meyering@redhat.com>
19879
19880         openat: add comments
19881         * lib/openat-proc.c (openat_proc_name): Add comments,
19882         mostly from Eric Blake.
19883
19884 2011-05-09  Eric Blake  <eblake@redhat.com>
19885
19886         openat: reduce syscalls in first probe of /proc
19887         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19888         be a directory.  Simplify the probe for .. bugs.
19889         * modules/openat (Depends-on): Drop same-inode.
19890         Reported by Bastien ROUCARIES.
19891
19892 2011-05-09  Jim Meyering  <meyering@redhat.com>
19893
19894         maint.mk: change semantics/name of tight_scope variables
19895         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19896         Rename variables to align with semantics that make them more useful.
19897
19898         maint.mk: tweak new rule's name not to impinge
19899         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19900         (sc_tight_scope): Use new rule name rather than $@-0.
19901
19902         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19903         * top/maint.mk (sc_tight_scope): New rule.
19904         (sc_tight_scope-0): New rule, ifdef'd out.
19905         (_gl_TS_dir): Default.
19906         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19907         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19908
19909 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19910
19911         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19912         Haible <bruno@clisp.org>.
19913
19914 2011-05-08  Bruno Haible  <bruno@clisp.org>
19915
19916         Comments.
19917         * m4/isnanf.m4: Add comment.
19918         * m4/isnanl.m4: Likewise.
19919
19920 2011-05-08  Bruno Haible  <bruno@clisp.org>
19921
19922         glob: Remove obsolete macro.
19923         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19924
19925 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19926
19927         intprops: Sun C 5.11 supports __typeof__
19928         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19929         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19930         which is new.
19931         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19932
19933         intprops: switch to usual gnulib indenting and naming
19934         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19935         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19936
19937         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19938
19939 2011-05-08  Jim Meyering  <meyering@redhat.com>
19940
19941         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19942         * top/maint.mk (release-prep): Use make's --no-print-directory
19943         option when generating the announcement.  This eliminates the
19944         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19945         generated announcement template.
19946
19947 2011-05-08  Bruno Haible  <bruno@clisp.org>
19948
19949         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19950         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19951         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19952
19953 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19954
19955         ignore-value, verify: Omit include files from lib_SOURCES.
19956         * modules/ignore-value, modules/verify (Makefile.am):
19957         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19958         that leads Automake to duplicate use of am__objects_... variables
19959         in Makefile.in.  See
19960         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19961
19962 2011-05-07  Bruno Haible  <bruno@clisp.org>
19963
19964         fclose: Simplify autoconf macro.
19965         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19966         defined.
19967
19968 2011-05-07  Bruno Haible  <bruno@clisp.org>
19969
19970         canonicalize-lgpl: Fix autoconf macro ordering bug.
19971         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19972         gl_STDLIB_H_DEFAULTS.
19973
19974 2011-05-06  Eric Blake  <eblake@redhat.com>
19975
19976         maintainer-makefile: make sc_po_check easier to tune
19977         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19978         to probe for strings, such as an alternate location for gnulib.
19979
19980         fclose: guarantee behavior on seekable stdin
19981         * modules/fclose (Depends-on): Add fflush.
19982         * doc/posix-functions/fclose.texi (fclose): Document this.
19983         * tests/test-fclose.c (main): Make test for this unconditional.
19984
19985 2011-05-06  Bruno Haible  <bruno@clisp.org>
19986
19987         fflush, fpurge: Relicense under LGPLv2+.
19988         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19989         * modules/fpurge (License): Likewise.
19990         With permission from Eric Blake and Jim Meyering.
19991         Suggested by Eric Blake.
19992
19993 2011-05-06  Karl Berry  <karl@gnu.org>
19994
19995         * MODULES.html.sh (func_all_modules): remove exit.
19996
19997 2011-05-06  Jim Meyering  <meyering@redhat.com>
19998
19999         maint.mk: use info-gnu@ as the default only for a stable release
20000         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20001         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20002         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20004
20005 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20006
20007         assert-h: new module, which supports C1X-style static_assert
20008         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20009         * lib/verify.h: Revamp so that this can be copied into assert.h,
20010         while retaining the ability to use it standalone as before.
20011         Rename private identifiers so as not to encroach on the
20012         standard C namespace, since this is now used by assert.h.
20013         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20014         the old verify_true.
20015         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20016         the old verify_true.  Use _GL_VERIFY_TYPE.
20017         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20018         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20019         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20020         defined when this file is copied into the replacement assert.h.
20021         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20022         and _Static_assert is not built in.
20023         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20024         defined, and use the new macros mentioned above.
20025         * doc/posix-headers/assert.texi: Document this.
20026
20027 2011-05-05  Bruno Haible  <bruno@clisp.org>
20028
20029         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20030         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20031         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20032         gl_REPLACE_FCLOSE here.
20033         * modules/fflush (Depends-on): Remove fclose.
20034         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20035         combination with module 'fclose'.
20036
20037 2011-05-05  Bruno Haible  <bruno@clisp.org>
20038
20039         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20040         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20041         gl_FUNC_FFLUSH.
20042         (gl_FUNC_FFLUSH): Use it.
20043         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20044         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20045         gl_REPLACE_FSEEKO here.
20046
20047 2011-05-05  Bruno Haible  <bruno@clisp.org>
20048
20049         tzset: Relicense under LGPL.
20050         * modules/tzset (License): Change to LGPL.
20051         No agreement needed; it's a no-op.
20052
20053         strtoimax, strtoumax: Relicense under LGPL.
20054         * modules/strtoimax (License): Change to LGPL.
20055         * modules/strtoumax (License): Likewise.
20056         With permission from Jim Meyering, Paul Eggert:
20057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20059
20060         getgroups: Relicense under LGPL.
20061         * modules/getgroups (License): Change to LGPL.
20062         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20066
20067         nanosleep: Relicense under LGPL.
20068         * modules/nanosleep (License): Change to LGPL.
20069         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20070         Haible:
20071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20075
20076         futimens: Relicense under LGPL.
20077         * modules/futimens (License): Change to LGPL.
20078         With permission from Eric Blake:
20079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20080
20081         fflush: Relicense under LGPL.
20082         * modules/fflush (License): Change to LGPL.
20083         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20087
20088         tmpfile: Relicense under LGPL.
20089         * modules/tmpfile (License): Change to LGPL.
20090         With permission from Ben Pfaff:
20091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20092
20093         isfinite: Relicense under LGPL.
20094         * modules/isfinite (License): Change to LGPL.
20095         With permission from Ben Pfaff, Bruno Haible:
20096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20098
20099         acosl..tanl: Relicense under LGPL.
20100         * modules/acosl (License): Change to LGPL.
20101         * modules/asinl (License): Likewise.
20102         * modules/atanl (License): Likewise.
20103         * modules/cosl (License): Likewise.
20104         * modules/expl (License): Likewise.
20105         * modules/logl (License): Likewise.
20106         * modules/sinl (License): Likewise.
20107         * modules/sqrtl (License): Likewise.
20108         * modules/tanl (License): Likewise.
20109         Source code originally from glibc and Paolo Bonzini. Agreements:
20110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20112
20113 2011-05-05  Bruno Haible  <bruno@clisp.org>
20114
20115         signal: Define sighandler_t.
20116         * lib/signal.in.h (sighandler_t): New type.
20117         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20118         whether sighandler_t is defined.
20119         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20120         * modules/signal (Depends-on): Add extensions.
20121         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20122         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20123         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20124
20125 2011-05-05  Eric Blake  <eblake@redhat.com>
20126
20127         maint: remove useless REPLACE_*_H macros
20128         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20129         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20130         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20131         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20132         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20133         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20134         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20135         * m4/btowc.m4: Update callers.
20136         * m4/dirfd.m4: Likewise.
20137         * m4/duplocale.m4: Likewise.
20138         * m4/fchdir.m4: Likewise.
20139         * m4/fdopendir.m4: Likewise.
20140         * m4/inet_ntop.m4: Likewise.
20141         * m4/inet_pton.m4: Likewise.
20142         * m4/ioctl.m4: Likewise.
20143         * m4/mbrlen.m4: Likewise.
20144         * m4/mbrtowc.m4: Likewise.
20145         * m4/mbsinit.m4: Likewise.
20146         * m4/mbsnrtowcs.m4: Likewise.
20147         * m4/mbsrtowcs.m4: Likewise.
20148         * m4/poll.m4: Likewise.
20149         * m4/setlocale.m4: Likewise.
20150         * m4/wcrtomb.m4: Likewise.
20151         * m4/wcsnrtombs.m4: Likewise.
20152         * m4/wcsrtombs.m4: Likewise.
20153         * m4/wctob.m4: Likewise.
20154         * m4/wcwidth.m4: Likewise.
20155         * modules/posix_spawn: Likewise.
20156         * modules/posix_spawn_file_actions_addclose: Likewise.
20157         * modules/posix_spawn_file_actions_adddup2: Likewise.
20158         * modules/posix_spawn_file_actions_addopen: Likewise.
20159         * modules/posix_spawn_file_actions_destroy: Likewise.
20160         * modules/posix_spawn_file_actions_init: Likewise.
20161         * modules/posix_spawnattr_destroy: Likewise.
20162         * modules/posix_spawnattr_getflags: Likewise.
20163         * modules/posix_spawnattr_getpgroup: Likewise.
20164         * modules/posix_spawnattr_getschedparam: Likewise.
20165         * modules/posix_spawnattr_getschedpolicy: Likewise.
20166         * modules/posix_spawnattr_getsigdefault: Likewise.
20167         * modules/posix_spawnattr_getsigmask: Likewise.
20168         * modules/posix_spawnattr_init: Likewise.
20169         * modules/posix_spawnattr_setflags: Likewise.
20170         * modules/posix_spawnattr_setpgroup: Likewise.
20171         * modules/posix_spawnattr_setschedparam: Likewise.
20172         * modules/posix_spawnattr_setschedpolicy: Likewise.
20173         * modules/posix_spawnattr_setsigdefault: Likewise.
20174         * modules/posix_spawnattr_setsigmask: Likewise.
20175         * modules/posix_spawnp: Likewise.
20176
20177 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20178
20179         Add option to do-release-commit-and-tag to specify branch.
20180         * build-aux/do-release-commit-and-tag: Add --branch.
20181
20182 2011-05-03  Bruno Haible  <bruno@clisp.org>
20183
20184         Avoid unnecessary compilation units, through conditional dependencies.
20185         * modules/accept (Depends-on): Add conditions to the dependencies.
20186         * modules/acosl (Depends-on): Likewise.
20187         * modules/argz (Depends-on): Likewise.
20188         * modules/asinl (Depends-on): Likewise.
20189         * modules/atanl (Depends-on): Likewise.
20190         * modules/atoll (Depends-on): Likewise.
20191         * modules/bind (Depends-on): Likewise.
20192         * modules/btowc (Depends-on): Likewise.
20193         * modules/canonicalize-lgpl (Depends-on): Likewise.
20194         * modules/ceil (Depends-on): Likewise.
20195         * modules/ceilf (Depends-on): Likewise.
20196         * modules/ceill (Depends-on): Likewise.
20197         * modules/chdir-long (Depends-on): Likewise.
20198         * modules/chown (Depends-on): Likewise.
20199         * modules/close (Depends-on): Likewise.
20200         * modules/connect (Depends-on): Likewise.
20201         * modules/cosl (Depends-on): Likewise.
20202         * modules/dirfd (Depends-on): Likewise.
20203         * modules/dprintf (Depends-on): Likewise.
20204         * modules/dprintf-posix (Depends-on): Likewise.
20205         * modules/error (Depends-on): Likewise.
20206         * modules/euidaccess (Depends-on): Likewise.
20207         * modules/expl (Depends-on): Likewise.
20208         * modules/faccessat (Depends-on): Likewise.
20209         * modules/fchdir (Depends-on): Likewise.
20210         * modules/fclose (Depends-on): Likewise.
20211         * modules/fcntl (Depends-on): Likewise.
20212         * modules/fdopendir (Depends-on): Likewise.
20213         * modules/fflush (Depends-on): Likewise.
20214         * modules/floor (Depends-on): Likewise.
20215         * modules/floorf (Depends-on): Likewise.
20216         * modules/floorl (Depends-on): Likewise.
20217         * modules/fnmatch (Depends-on): Likewise.
20218         * modules/fopen (Depends-on): Likewise.
20219         * modules/fprintf-posix (Depends-on): Likewise.
20220         * modules/frexp (Depends-on): Likewise.
20221         * modules/frexp-nolibm (Depends-on): Likewise.
20222         * modules/frexpl (Depends-on): Likewise.
20223         * modules/frexpl-nolibm (Depends-on): Likewise.
20224         * modules/fseek (Depends-on): Likewise.
20225         * modules/fsusage (Depends-on): Likewise.
20226         * modules/ftell (Depends-on): Likewise.
20227         * modules/ftello (Depends-on): Likewise.
20228         * modules/futimens (Depends-on): Likewise.
20229         * modules/getcwd (Depends-on): Likewise.
20230         * modules/getcwd-lgpl (Depends-on): Likewise.
20231         * modules/getdelim (Depends-on): Likewise.
20232         * modules/getdomainname (Depends-on): Likewise.
20233         * modules/getgroups (Depends-on): Likewise.
20234         * modules/gethostname (Depends-on): Likewise.
20235         * modules/getline (Depends-on): Likewise.
20236         * modules/getlogin_r (Depends-on): Likewise.
20237         * modules/getopt-posix (Depends-on): Likewise.
20238         * modules/getpeername (Depends-on): Likewise.
20239         * modules/getsockname (Depends-on): Likewise.
20240         * modules/getsockopt (Depends-on): Likewise.
20241         * modules/getsubopt (Depends-on): Likewise.
20242         * modules/getusershell (Depends-on): Likewise.
20243         * modules/glob (Depends-on): Likewise.
20244         * modules/grantpt (Depends-on): Likewise.
20245         * modules/iconv_open (Depends-on): Likewise.
20246         * modules/iconv_open-utf (Depends-on): Likewise.
20247         * modules/inet_ntop (Depends-on): Likewise.
20248         * modules/inet_pton (Depends-on): Likewise.
20249         * modules/ioctl (Depends-on): Likewise.
20250         * modules/isapipe (Depends-on): Likewise.
20251         * modules/isfinite (Depends-on): Likewise.
20252         * modules/isinf (Depends-on): Likewise.
20253         * modules/lchown (Depends-on): Likewise.
20254         * modules/ldexpl (Depends-on): Likewise.
20255         * modules/link (Depends-on): Likewise.
20256         * modules/linkat (Depends-on): Likewise.
20257         * modules/listen (Depends-on): Likewise.
20258         * modules/logl (Depends-on): Likewise.
20259         * modules/lstat (Depends-on): Likewise.
20260         * modules/mbrlen (Depends-on): Likewise.
20261         * modules/mbrtowc (Depends-on): Likewise.
20262         * modules/mbsinit (Depends-on): Likewise.
20263         * modules/mbsnrtowcs (Depends-on): Likewise.
20264         * modules/mbsrtowcs (Depends-on): Likewise.
20265         * modules/mbtowc (Depends-on): Likewise.
20266         * modules/memcmp (Depends-on): Likewise.
20267         * modules/mkdir (Depends-on): Likewise.
20268         * modules/mkdtemp (Depends-on): Likewise.
20269         * modules/mkfifo (Depends-on): Likewise.
20270         * modules/mkfifoat (Depends-on): Likewise.
20271         * modules/mknod (Depends-on): Likewise.
20272         * modules/mkostemp (Depends-on): Likewise.
20273         * modules/mkostemps (Depends-on): Likewise.
20274         * modules/mkstemp (Depends-on): Likewise.
20275         * modules/mkstemps (Depends-on): Likewise.
20276         * modules/mktime (Depends-on): Likewise.
20277         * modules/nanosleep (Depends-on): Likewise.
20278         * modules/open (Depends-on): Likewise.
20279         * modules/openat (Depends-on): Likewise.
20280         * modules/perror (Depends-on): Likewise.
20281         * modules/poll (Depends-on): Likewise.
20282         * modules/popen (Depends-on): Likewise.
20283         * modules/posix_spawn (Depends-on): Likewise.
20284         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20285         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20286         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20287         * modules/posix_spawnp (Depends-on): Likewise.
20288         * modules/pread (Depends-on): Likewise.
20289         * modules/printf-posix (Depends-on): Likewise.
20290         * modules/ptsname (Depends-on): Likewise.
20291         * modules/putenv (Depends-on): Likewise.
20292         * modules/pwrite (Depends-on): Likewise.
20293         * modules/readline (Depends-on): Likewise.
20294         * modules/readlink (Depends-on): Likewise.
20295         * modules/readlinkat (Depends-on): Likewise.
20296         * modules/recv (Depends-on): Likewise.
20297         * modules/recvfrom (Depends-on): Likewise.
20298         * modules/regex (Depends-on): Likewise.
20299         * modules/remove (Depends-on): Likewise.
20300         * modules/rename (Depends-on): Likewise.
20301         * modules/renameat (Depends-on): Likewise.
20302         * modules/rmdir (Depends-on): Likewise.
20303         * modules/round (Depends-on): Likewise.
20304         * modules/roundf (Depends-on): Likewise.
20305         * modules/roundl (Depends-on): Likewise.
20306         * modules/rpmatch (Depends-on): Likewise.
20307         * modules/select (Depends-on): Likewise.
20308         * modules/send (Depends-on): Likewise.
20309         * modules/sendto (Depends-on): Likewise.
20310         * modules/setenv (Depends-on): Likewise.
20311         * modules/setlocale (Depends-on): Likewise.
20312         * modules/setsockopt (Depends-on): Likewise.
20313         * modules/shutdown (Depends-on): Likewise.
20314         * modules/sigaction (Depends-on): Likewise.
20315         * modules/signbit (Depends-on): Likewise.
20316         * modules/sigprocmask (Depends-on): Likewise.
20317         * modules/sinl (Depends-on): Likewise.
20318         * modules/sleep (Depends-on): Likewise.
20319         * modules/snprintf (Depends-on): Likewise.
20320         * modules/snprintf-posix (Depends-on): Likewise.
20321         * modules/socket (Depends-on): Likewise.
20322         * modules/sprintf-posix (Depends-on): Likewise.
20323         * modules/sqrtl (Depends-on): Likewise.
20324         * modules/stat (Depends-on): Likewise.
20325         * modules/strchrnul (Depends-on): Likewise.
20326         * modules/strdup-posix (Depends-on): Likewise.
20327         * modules/strerror (Depends-on): Likewise.
20328         * modules/strerror_r-posix (Depends-on): Likewise.
20329         * modules/strndup (Depends-on): Likewise.
20330         * modules/strnlen (Depends-on): Likewise.
20331         * modules/strptime (Depends-on): Likewise.
20332         * modules/strsep (Depends-on): Likewise.
20333         * modules/strsignal (Depends-on): Likewise.
20334         * modules/strstr-simple (Depends-on): Likewise.
20335         * modules/strtod (Depends-on): Likewise.
20336         * modules/strtoimax (Depends-on): Likewise.
20337         * modules/strtok_r (Depends-on): Likewise.
20338         * modules/strtoumax (Depends-on): Likewise.
20339         * modules/symlink (Depends-on): Likewise.
20340         * modules/symlinkat (Depends-on): Likewise.
20341         * modules/tanl (Depends-on): Likewise.
20342         * modules/tcgetsid (Depends-on): Likewise.
20343         * modules/tmpfile (Depends-on): Likewise.
20344         * modules/trunc (Depends-on): Likewise.
20345         * modules/truncf (Depends-on): Likewise.
20346         * modules/truncl (Depends-on): Likewise.
20347         * modules/uname (Depends-on): Likewise.
20348         * modules/unlink (Depends-on): Likewise.
20349         * modules/unlockpt (Depends-on): Likewise.
20350         * modules/unsetenv (Depends-on): Likewise.
20351         * modules/usleep (Depends-on): Likewise.
20352         * modules/utimensat (Depends-on): Likewise.
20353         * modules/vasprintf (Depends-on): Likewise.
20354         * modules/vdprintf (Depends-on): Likewise.
20355         * modules/vdprintf-posix (Depends-on): Likewise.
20356         * modules/vfprintf-posix (Depends-on): Likewise.
20357         * modules/vprintf-posix (Depends-on): Likewise.
20358         * modules/vsnprintf (Depends-on): Likewise.
20359         * modules/vsnprintf-posix (Depends-on): Likewise.
20360         * modules/vsprintf-posix (Depends-on): Likewise.
20361         * modules/wcrtomb (Depends-on): Likewise.
20362         * modules/wcscasecmp (Depends-on): Likewise.
20363         * modules/wcscspn (Depends-on): Likewise.
20364         * modules/wcsdup (Depends-on): Likewise.
20365         * modules/wcsncasecmp (Depends-on): Likewise.
20366         * modules/wcsnrtombs (Depends-on): Likewise.
20367         * modules/wcspbrk (Depends-on): Likewise.
20368         * modules/wcsrtombs (Depends-on): Likewise.
20369         * modules/wcsspn (Depends-on): Likewise.
20370         * modules/wcsstr (Depends-on): Likewise.
20371         * modules/wcstok (Depends-on): Likewise.
20372         * modules/wcswidth (Depends-on): Likewise.
20373         * modules/wctob (Depends-on): Likewise.
20374         * modules/wctomb (Depends-on): Likewise.
20375         * modules/wctype (Depends-on): Likewise.
20376         * modules/wcwidth (Depends-on): Likewise.
20377         * modules/write (Depends-on): Likewise.
20378
20379 2011-05-03  Bruno Haible  <bruno@clisp.org>
20380
20381         Support for conditional dependencies.
20382         * doc/gnulib.texi (Module description): Document the syntax of
20383         conditional dependencies.
20384         * gnulib-tool: New option --conditional-dependencies.
20385         (func_usage): Document it.
20386         (cond_dependencies): New variable.
20387         (func_get_automake_snippet_conditional,
20388         func_get_automake_snippet_unconditional): New functions, extracted from
20389         func_get_automake_snippet.
20390         (func_get_automake_snippet): Use them.
20391         (sed_first_32_chars): New variable.
20392         (func_module_shellfunc_name): New function.
20393         (func_module_shellvar_name): New function.
20394         (func_module_conditional_name): New function.
20395         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20396         func_cond_module_condition): New functions.
20397         (func_modules_transitive_closure): Add support for conditional
20398         dependencies.
20399         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20400         conditional automake snippet in an automake conditional.
20401         (func_emit_autoconf_snippets): Emit shell functions that contain the
20402         code for conditional modules.
20403         (func_import, func_create_testdir): Update specification.
20404
20405 2011-05-03  Eric Blake  <eblake@redhat.com>
20406
20407         test-getaddrinfo: report error information
20408         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20409
20410 2011-05-03  Jim Meyering  <meyering@redhat.com>
20411
20412         bootstrap: avoid build failure when $GZIP is set
20413         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20414         program name.  If defined at all, it is supposed to list gzip options.
20415         Reported by Alan Curry in http://debbugs.gnu.org/8609
20416
20417 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20418
20419         readme-release: new module with release instructions
20420         * modules/readme-release: New module.
20421         * top/README-release: New file, from coreutils, grep, diffutils.
20422         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20423
20424 2011-05-02  Eric Blake  <eblake@redhat.com>
20425
20426         fflush: also replace fclose when fixing fflush
20427         * modules/fflush (Depends-on): Add fclose.
20428         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20429         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20430         memstreams with no backing fd.
20431         * doc/posix-functions/fclose.texi (fclose): Document the use of
20432         fflush module to fix the bug.
20433         * tests/test-fclose.c (main): Relax test when fclose is used in
20434         isolation.
20435
20436         fclose: add some tests
20437         * modules/fclose-tests: New test module.
20438         * tests/test-fclose.c: New file.
20439         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20440
20441         fclose: reduced dependencies
20442         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20443         simpler lseek.
20444         * lib/fclose.c (rpl_fclose): Likewise.
20445         Reported by Simon Josefsson.
20446
20447         exit: drop remaining clients
20448         * modules/argmatch (Depends-on): Replace exit with stdlib.
20449         * modules/copy-file (Depends-on): Likewise.
20450         * modules/execute (Depends-on): Likewise.
20451         * modules/exitfail (Depends-on): Likewise.
20452         * modules/obstack (Depends-on): Likewise.
20453         * modules/pagealign_alloc (Depends-on): Likewise.
20454         * modules/pipe-filter-gi (Depends-on): Likewise.
20455         * modules/pipe-filter-ii (Depends-on): Likewise.
20456         * modules/savewd (Depends-on): Likewise.
20457         * modules/spawn-pipe (Depends-on): Likewise.
20458         * modules/wait-process (Depends-on): Likewise.
20459         * modules/xsetenv (Depends-on): Likewise.
20460         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20461         * modules/git-merge-changelog (Depends-on): Likewise.
20462         * modules/long-options (Depends-on): Likewise.
20463         * modules/pt_chown (Depends-on): Likewise.
20464         * modules/sysexits (Depends-on): Likewise.
20465
20466         freading: relax license from LGPLv3+ to LGPLv2+
20467         * modules/freading (License): Relax LGPL version.
20468
20469 2011-05-02  Bruno Haible  <bruno@clisp.org>
20470
20471         fchdir: Remove unused dependencies.
20472         * modules/fchdir (Depends-on): Remove include_next.
20473
20474 2011-05-02  Bruno Haible  <bruno@clisp.org>
20475
20476         gnulib-tool: Refactor.
20477         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20478         from func_emit_autoconf_snippets.
20479         (func_emit_autoconf_snippets): Use it.
20480
20481 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20482
20483         * NEWS: Document removal of 'exit'.
20484         * modules/exit: Remove file.
20485
20486 2011-05-01  Bruno Haible  <bruno@clisp.org>
20487
20488         Update DEPENDENCIES.
20489         * DEPENDENCIES (gettext): Recommend the newest release.
20490         Reported by Simon Josefsson.
20491
20492 2011-05-01  Bruno Haible  <bruno@clisp.org>
20493
20494         gnulib-tool: Reduce code duplication.
20495         * gnulib-tool (func_emit_autoconf_snippets): New function.
20496         (func_import, func_create_testdir): Use it.
20497
20498 2011-04-30  Eric Blake  <eblake@redhat.com>
20499
20500         fclose: don't fail on non-seekable input stream
20501         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20502         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20503         since fflush is allowed to fail in that case.
20504
20505 2011-04-30  Bruno Haible  <bruno@clisp.org>
20506
20507         dup3: cleanup
20508         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20509
20510 2011-04-30  Bruno Haible  <bruno@clisp.org>
20511
20512         netdb: Make it work in C++ mode.
20513         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20514         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20515         module.
20516         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20517         gl_MODULE_INDICATOR_FOR_TESTS.
20518         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20519         * modules/netdb-c++-tests: New file.
20520         * tests/test-netdb-c++.cc: New file.
20521
20522 2011-04-30  Bruno Haible  <bruno@clisp.org>
20523
20524         New modules 'vfscanf', 'vscanf'.
20525         * modules/vfscanf: New file.
20526         * modules/vscanf: New file.
20527         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20528         here.
20529         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20530         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20531
20532 2011-04-30  Bruno Haible  <bruno@clisp.org>
20533
20534         passfd: Add comments.
20535         * lib/passfd.c: Add comments about platforms.
20536
20537 2011-04-30  Bruno Haible  <bruno@clisp.org>
20538
20539         sys_uio: Make <sys/uio.h> self-contained.
20540         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20541         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20542
20543 2011-04-30  Bruno Haible  <bruno@clisp.org>
20544
20545         sys_socket: Ensure 'struct iovec' definition.
20546         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20547         <sys/socket.h>.
20548         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20549
20550 2011-04-30  Bruno Haible  <bruno@clisp.org>
20551
20552         sys_uio: Protect definition of 'struct iovec'.
20553         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20554         it as a C struct.
20555
20556 2011-04-30  Bruno Haible  <bruno@clisp.org>
20557
20558         manywarnings: fix indentation
20559         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20560
20561 2011-04-30  Pádraig Brady <P@draigBrady.com>
20562
20563         manywarnings: add -Wno-missing-field-initializers if needed.
20564         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20565         option if it's needed to allow initialization with { 0, }
20566
20567 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20568
20569         announce-gen: cosmetic improvement
20570         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20571
20572 2011-04-29  Jim Meyering  <meyering@redhat.com>
20573
20574         vc-list-files: indent with spaces, not TABs
20575         * build-aux/vc-list-files: Convert leading TABs to spaces,
20576         to match the style of most other files in gnulib.
20577
20578         announce-gen: indent with spaces, not TABs
20579         * build-aux/announce-gen: Convert all TABs to spaces, to match
20580         the style of most other files in gnulib.
20581
20582 2011-04-29  Eric Blake  <eblake@redhat.com>
20583
20584         quotearg: avoid uninitialized variable use
20585         * lib/quotearg.c (quoting_options_from_style): Initialize
20586         remaining fields, and ensure that custom styles are only used via
20587         quoting_options rather than quoting_style.
20588
20589 2011-04-29  Jim Meyering  <meyering@redhat.com>
20590
20591         maint.mk: remove unused VC-tag variable
20592         * top/maint.mk (VC-tag): Remove unused variable.
20593
20594 2011-04-29  Bruno Haible  <bruno@clisp.org>
20595
20596         netdb: fix gai_strerror replacements
20597         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20598         * modules/netdb: Substitute it.
20599
20600 2011-04-29  Jim Meyering  <meyering@redhat.com>
20601
20602         test-getcwd.c: avoid new set-but-not-used warning
20603         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20604         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20605         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20606         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20607
20608         test-hash.c: avoid a new shadowing warning
20609         * tests/test-hash.c (main): Don't shadow "dup".
20610
20611 2011-04-28  Eric Blake  <eblake@redhat.com>
20612
20613         getaddrinfo: fix gai_strerror signature
20614         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20615         and work around mingw with UNICODE defined.
20616         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20617         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20618         * modules/netdb (Makefile.am): Substitute it.
20619         * lib/netdb.in.h (gai_strerror): Declare replacement.
20620         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20621         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20622         the fix.
20623
20624         getsockopt: avoid compiler warning
20625         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20626         Reported by Matthias Bolte.
20627
20628         tests: drop unused link dependency
20629         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20630         * modules/dirent-safer-tests (Makefile.am): Likewise.
20631         * modules/fdopendir-tests (Makefile.am): Likewise.
20632         * modules/mkfifoat-tests (Makefile.am): Likewise.
20633         * modules/openat-safer-tests (Makefile.am): Likewise.
20634         * modules/openat-tests (Makefile.am): Likewise.
20635         * modules/readlinkat-tests (Makefile.am): Likewise.
20636         * modules/symlinkat-tests (Makefile.am): Likewise.
20637         * modules/linkat-tests (Makefile.am): Likewise.
20638         (Depends-on): Switch to filenamecat-lgpl.
20639         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20640         LIBINTL.
20641         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20642         * tests/test-linkat.c (main): Don't require xalloc.
20643
20644         hash, mgetgroups: drop xalloc dependency
20645         * lib/hash.c (includes): Adjust includes.
20646         * lib/mgetgroups.c (includes): Likewise.
20647         (xgetgroups): Move...
20648         * lib/xgetgroups.c: ...to new file.
20649         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20650         * modules/xgetgroups: New file, split from...
20651         * modules/mgetgroups: ...here.
20652         (Depends-on): Add xalloc-oversized.
20653         * modules/hash (Depends-on): Likewise.
20654         * modules/hash-tests (Depends-on): Drop xalloc.
20655         (test_hash_LDADD): Drop unused library.
20656         * tests/test-hash.c (main): Break xalloc dependency.
20657         (includes): Drop unused include.
20658
20659         xalloc-oversized: new module
20660         * modules/xalloc-oversized: New module.
20661         * modules/xalloc (Depends-on): Add it.
20662         * lib/xalloc.h (xalloc_oversized): Move...
20663         * lib/xalloc-oversized.h: ...into new file.
20664
20665         utimecmp: drop dependency on xmalloc
20666         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20667         due to memory pressure.
20668         * modules/utimecmp (Depends-on): Drop xalloc.
20669
20670 2011-04-27  Eric Blake  <eblake@redhat.com>
20671
20672         getcwd: fix mingw bugs
20673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20674         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20675         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20676
20677 2011-04-27  Bruno Haible  <bruno@clisp.org>
20678
20679         mkstemps: Ensure declaration on MacOS X 10.5.
20680         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20681         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20682         MacOS X.
20683
20684 2011-04-27  Bruno Haible  <bruno@clisp.org>
20685
20686         mkstemp: More documentation.
20687         * doc/posix-functions/mkstemp.texi: Document header file problem on
20688         MacOS X.
20689
20690 2011-04-27  Bruno Haible  <bruno@clisp.org>
20691
20692         mkstemp: Tweak configure message when cross-compiling.
20693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20694         result as a guess.
20695
20696 2011-04-27  Bruno Haible  <bruno@clisp.org>
20697
20698         clean-temp: Clarify what it does.
20699         * lib/clean-temp.h: Add more comments.
20700         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20701         module.
20702         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20703         * doc/glibc-functions/mkstemps.texi: Likewise.
20704         * doc/glibc-functions/mkostemps.texi: Likewise.
20705
20706 2011-04-27  Eric Blake  <eblake@redhat.com>
20707
20708         fchdir: avoid extra chdir and fix test
20709         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20710         getcwd-lgpl.
20711         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20712         have to be canonical.
20713         (canonicalize_file_name): Drop unused macro.
20714         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20715
20716         filenamecat-lgpl: fix licence
20717         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20718         when it was first created.
20719
20720         linkat, renameat: add missing dependency
20721         * modules/linkat (Depends-on): Require getcwd-lgpl.
20722         * modules/renameat (Depends-on): Likewise.
20723
20724         tests: reduce dependencies
20725         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20726         * tests/test-renameat.c (main): Likewise.
20727         * modules/linkat-tests (Depends-on): Relax dependency.
20728         * modules/renameat-tests (Depends-on): Likewise.
20729         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20730         dependency explicit.
20731
20732         save-cwd: reduce default dependency
20733         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20734         * lib/save-cwd.c: Update comments.
20735         * NEWS: Document the semantic change.
20736
20737         getcwd: enhance tests
20738         * tests/test-getcwd-lgpl.c: New file, taken from...
20739         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20740         repeat long path stress tests from m4 probe.
20741         * modules/getcwd-lgpl-tests: New module.
20742         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20743         * m4/getcwd-abort-bug.m4: Update comment.
20744         * m4/getcwd-path-max.m4: Likewise.
20745
20746         getcwd-lgpl: new module
20747         * modules/getcwd-lgpl: New module.
20748         * lib/getcwd-lgpl.c: New file.
20749         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20750         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20751         * modules/getcwd (configure.ac): Set C witness.
20752         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20753
20754         getcwd: tweak comments
20755         * m4/getcwd-abort-bug.m4: Fix comments.
20756         * m4/getcwd-path-max.m4: Likewise.
20757         * m4/getcwd.m4: Likewise.
20758
20759 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20760         and Eric Blake  <eblake@redhat.com>
20761
20762         mkstemp: replace if system version uses wrong permissions
20763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20764         read/write mode bits set in file created by mkstemp.
20765         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20766
20767 2011-04-27  Eric Blake  <eblake@redhat.com>
20768
20769         passfd: avoid compiler warning
20770         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20771         Reported by Laine Stump.
20772
20773 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20774
20775         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20776         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20777
20778 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20779         and Eric Blake  <eblake@redhat.com>
20780
20781         mkstemp: mention clean-temp module
20782         * lib/mkstemp.c: Add comment.
20783         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20784
20785 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         inttypes: also provide default values for 32-bit tests
20788         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20789         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20790
20791 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20792
20793         strtoumax: remove dependency on strtoimax
20794         This is like the strtoull change of yesterday.
20795         * modules/strtoumax (Files): Add lib/strtoimax.c.
20796         (Depends-on): Remove strtoimax and add verify.
20797
20798         inttypes-incomplete: new module
20799         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20800         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20801         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20802         of gl_INTTYPES_H.
20803         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20804         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20805         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20806         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20807         * modules/strtoumax, modules/xstrtol (Depends-on):
20808         Depend on inttypes-incomplete, not inttypes.
20809         * modules/inttypes-incomplete: New module, containing the contents
20810         of the old modules/inttypes module, except that the Files: section
20811         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20812         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20813         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20814         (Depends-on): Depend only on inttypes-incomplete.
20815         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20816
20817         inttypes: omit now-redundant strtoimax and strtoumax work
20818         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20819         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20820
20821         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20822         This supports apps that need pointers to strtoimax and strtoumax,
20823         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20824         nonexistent functions.  See
20825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20826         et seq.
20827         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20829         a macro.
20830         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20831
20832 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20833
20834         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20835
20836 2011-04-25  Bruno Haible  <bruno@clisp.org>
20837
20838         strtol, strtoul: Mark modules as obsolete.
20839         * modules/strtol (Status, Notice): New sections.
20840         * modules/strtoul (Status, Notice): New sections.
20841
20842 2011-04-25  Bruno Haible  <bruno@clisp.org>
20843
20844         strtod: Remove check for strtod, unless supporting old platforms.
20845         * modules/strtod-obsolete: New file.
20846         * m4/strtod-obsolete.m4: New file.
20847         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20848         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20849         * modules/strtod (Depends-on): Add strtod-obsolete.
20850         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20851
20852 2011-04-25  Bruno Haible  <bruno@clisp.org>
20853
20854         strcase: Make module obsolete.
20855         * modules/strcase (Status, Notice): New sections.
20856
20857 2011-04-25  Bruno Haible  <bruno@clisp.org>
20858
20859         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20860         * modules/dup2-obsolete: New file.
20861         * m4/dup2-obsolete.m4: New file.
20862         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20863         gl_FUNC_DUP2_OBSOLETE is not also defined.
20864         * modules/dup2 (Depends-on): Add dup2-obsolete.
20865         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20866
20867 2011-04-25  Bruno Haible  <bruno@clisp.org>
20868
20869         strnlen: Avoid memchr related link error on old obsolete platforms.
20870         * modules/memchr-obsolete: New file.
20871         * m4/memchr-obsolete.m4: New file.
20872         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20873         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20874         * modules/memchr (Depends-on): Add memchr-obsolete.
20875         * modules/strnlen (Depends-on): Likewise.
20876         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20877
20878 2011-04-25  Jim Meyering  <meyering@redhat.com>
20879
20880         maint.mk: makefile_at_at_check extend and clean up
20881         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20882         in addition to */Makefile.am.
20883         Exempt legitimate uses of @VAR@ notation, e.g.,
20884         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20885         Remove obsolete coreutils-specific comment.
20886         Prompted by discussion here:
20887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20888
20889 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20890
20891         strtoul: remove dependency on strtol
20892         This is so that 'configure' need not check for strtol merely because
20893         the application needs strtoul.
20894         * modules/strtoul (Files): Add lib/strtol.c.
20895         (Depends-on): Remove strtol.
20896
20897         strtoull: remove dependency on strtoul
20898         This is like the strtoll change.
20899         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20900         (Depends-on): Remove strtoul.
20901
20902         strtoll: remove dependency on strtol
20903         This is so that 'configure' need not check for strtol merely because
20904         the application needs strtoll.
20905         * modules/strtoll (Files): Add lib/strtol.c.
20906         (Depends-on): Remove strtol.
20907
20908 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20909
20910         inttypes: Move some configure check to module 'imaxdiv'.
20911         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20912         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20913         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20914
20915 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20916
20917         inttypes: Move some configure check to module 'imaxabs'.
20918         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20919         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20920         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20921
20922 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20923
20924         inttypes: Remove configure tests that are not needed since 2009-12-31.
20925         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20926         gl_cv_header_working_inttypes_h.
20927
20928 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20929
20930         * modules/strnlen (Depends-on): Remove memchr.
20931         The strnlen implementation doesn't need the memchr module's fixes; see
20932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20933
20934         strtol: remove dependency on wchar
20935         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20936         * modules/strtol (Depends-on): Remove wchar.
20937
20938 2011-04-21  Eric Blake  <eblake@redhat.com>
20939
20940         passfd: fix test regression on Linux
20941         * modules/passfd-tests (configure.ac): Correct socketpair check.
20942
20943         passfd: speed up configure and drop unused code
20944         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20945         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20946         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20947         Instead of probing at configure for unix_scm_rights_bsd44_way,
20948         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20949         check to a struct member probe.
20950         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20951         (sendfd, recvfd): Update preprocessor checks.
20952         * modules/passfd (Files): Reflect rename, and drop unused file.
20953         (Depends-on): Drop unused dependency.
20954
20955         passfd: allow compilation on mingw
20956         * modules/sys_socket (Depends-on): Add sys_uio.
20957         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20958         iovec and a minimal struct msghdr.
20959         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20960         * tests/test-sys_socket.c (main): Enhance test.
20961         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20962         guaranteed to provide what we need.
20963         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20964         * modules/passfd-tests (Depends-on): Add sys_wait.
20965         * tests/test-passfd.c (main): Skip test on mingw, for now.
20966         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20967         partial 'struct msghdr' implementation.
20968
20969         sys_uio: new module
20970         * modules/sys_uio: New module.
20971         * modules/sys_uio-tests: Likewise.
20972         * lib/sys_uio.in.h: New file.
20973         * m4/sys_uio_h.m4: Likewise.
20974         * tests/test-sys_uio.c: Likewise.
20975         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20976         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20977
20978 2011-04-20  Jim Meyering  <meyering@redhat.com>
20979
20980         useless-if-before-free: avoid false-positive
20981         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20982         disjunct so that it too requires a terminating ";".  Without that,
20983         this script would identify as useless one statement from gcc that
20984         was not:
20985           if (aligned_ptr)
20986             free (((void **) aligned_ptr) [-1]);
20987
20988 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20989
20990         doc: update users.txt.
20991         * users.txt: Add barcode.
20992
20993 2011-04-19  Bruno Haible  <bruno@clisp.org>
20994
20995         ioctl: Remove link dependency on native Windows.
20996         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20997         (gl_close_fn, gl_ioctl_fn): New types.
20998         (struct fd_hook): Renamed from struct close_hook. Change type of
20999         private_close_fn field. Add private_ioctl_fn field.
21000         (close_hook_fn): Add parameter for primary close method.
21001         (execute_close_hooks, execute_all_close_hooks): Likewise.
21002         (ioctl_hook_fn): New type.
21003         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21004         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21005         argument.
21006         (unregister_fd_hook): Renamed from unregister_close_hook.
21007         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21008         Don't include <unistd.h>.
21009         (close): Remove undef.
21010         (anchor): Update.
21011         (execute_close_hooks): Add argument for primary close method.
21012         (execute_all_close_hooks): Likewise.
21013         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21014         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21015         argument. Allow each argument to be NULL.
21016         (unregister_fd_hook): Renamed from unregister_close_hook.
21017         * lib/close.c (rpl_close): Pass 'close' function pointer to
21018         execute_all_close_hooks.
21019         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21020         (primary_ioctl): New function.
21021         (ioctl): Don't call ioctlsocket here. Instead, call
21022         execute_all_ioctl_hooks.
21023         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21024         close method.
21025         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21026         (fd_sockets_hook): Renamed from close_sockets_hook.
21027         (gl_sockets_startup, gl_sockets_cleanup): Update.
21028         * modules/fd-hook: Renamed from modules/close-hook. Update.
21029         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21030         * modules/sockets (Depends-on): Likewise.
21031         * modules/ioctl (Depends-on): Add fd-hook.
21032         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21033         GNULIB_SOCKET.
21034
21035 2011-04-19  Bruno Haible  <bruno@clisp.org>
21036
21037         Move the support of O_NONBLOCK in open() to the 'open' module.
21038         * modules/nonblocking (Depends-on): Remove 'open'.
21039         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21040         gl_cv_have_open_O_NONBLOCK.
21041         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21042         O_NONBLOCK support.
21043         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21044
21045 2011-04-17  Bruno Haible  <bruno@clisp.org>
21046
21047         pipe2: Simplify code.
21048         * lib/pipe2.c (pipe2): Reduce code duplication.
21049
21050 2011-04-17  Bruno Haible  <bruno@clisp.org>
21051
21052         nonblocking: Add comment.
21053         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21054
21055 2011-04-17  Bruno Haible  <bruno@clisp.org>
21056
21057         nonblocking: Add tests for sockets.
21058         * tests/test-nonblocking-socket.sh: New file.
21059         * tests/test-nonblocking-socket-main.c: New file.
21060         * tests/test-nonblocking-socket-child.c: New file.
21061         * tests/test-nonblocking-socket.h: New file.
21062         * tests/socket-server.h: New file.
21063         * tests/socket-client.h: New file.
21064         * modules/nonblocking-socket-tests: New file.
21065         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21066
21067 2011-04-17  Bruno Haible  <bruno@clisp.org>
21068
21069         nonblocking: Add tests for pipes.
21070         * tests/test-nonblocking-pipe.sh: New file.
21071         * tests/test-nonblocking-pipe-main.c: New file.
21072         * tests/test-nonblocking-pipe-child.c: New file.
21073         * tests/test-nonblocking-pipe.h: New file.
21074         * tests/test-nonblocking-writer.h: New file.
21075         * tests/test-nonblocking-reader.h: New file.
21076         * tests/test-nonblocking-misc.h: New file.
21077         * modules/nonblocking-pipe-tests: New file.
21078         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21079
21080 2011-04-16  Bruno Haible  <bruno@clisp.org>
21081
21082         gettext: Clarify the needed programmer actions.
21083         * modules/gettext (Notice): New field.
21084         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21085
21086 2011-04-16  Bruno Haible  <bruno@clisp.org>
21087
21088         strchrnul: Tweak last commit.
21089         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21090         bug.
21091         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21092         as in _GL_FUNCDECL_SYS.
21093         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21094         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21095
21096 2011-04-15  Eric Blake  <eblake@redhat.com>
21097
21098         strchrnul: work around cygwin bug
21099         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21102         * modules/string (Makefile.am): Substitute it.
21103         * lib/string.in.h (strchrnul): Use it.
21104
21105 2011-04-15  Bruno Haible  <bruno@clisp.org>
21106
21107         Don't require lib/stdio-write.c when only module 'stdio' is used.
21108         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21109         invocation.
21110         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21111
21112 2011-04-14  Bruno Haible  <bruno@clisp.org>
21113
21114         Support non-blocking pipe I/O in read() on native Windows.
21115         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21116         (read): New declaration.
21117         * lib/read.c: New file.
21118         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21119         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21120         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21121         vscanf): New declarations.
21122         * lib/stdio-read.c: New file.
21123         * m4/read.m4: New file.
21124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21125         REPLACE_READ.
21126         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21127         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21128         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21129         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21130         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21131         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21132         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21133         * modules/read: New file.
21134         * modules/nonblocking (Files): Add lib/stdio-read.c.
21135         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21136         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21137         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21138         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21139         * modules/pread (Depends-on): Add read.
21140         * modules/safe-read (Depends-on): Likewise.
21141         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21142         gets, scanf, vfscanf, vscanf): Verify signatures.
21143         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21144         problem with non-blocking pipes.
21145         * doc/posix-functions/fgetc.texi: Likewise.
21146         * doc/posix-functions/fgets.texi: Likewise.
21147         * doc/posix-functions/fread.texi: Likewise.
21148         * doc/posix-functions/fscanf.texi: Likewise.
21149         * doc/posix-functions/getc.texi: Likewise.
21150         * doc/posix-functions/getchar.texi: Likewise.
21151         * doc/posix-functions/gets.texi: Likewise.
21152         * doc/posix-functions/scanf.texi: Likewise.
21153         * doc/posix-functions/vfscanf.texi: Likewise.
21154         * doc/posix-functions/vscanf.texi: Likewise.
21155
21156 2011-04-14  Bruno Haible  <bruno@clisp.org>
21157
21158         Support non-blocking pipe I/O in write() on native Windows.
21159         * lib/write.c (rpl_write): Split a write request that failed merely
21160         because the byte count was larger than the pipe buffer's size.
21161         * doc/posix-functions/write.texi: Mention the problem with large byte
21162         counts.
21163
21164 2011-04-14  Bruno Haible  <bruno@clisp.org>
21165
21166         wchar: Ensure that wchar_t gets defined on uClibc.
21167         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21168         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21169
21170 2011-04-13  Bruno Haible  <bruno@clisp.org>
21171
21172         safe-write, full-read: Avoid unnecessary compilation units.
21173         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21174         (Depends-on): Remove safe-read. Add ssize_t.
21175         * modules/full-read (Files): Add lib/full-write.c.
21176         (Depends-on): Add full-write.
21177
21178 2011-04-13  Bruno Haible  <bruno@clisp.org>
21179
21180         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21181         * modules/pwrite (Depends-on): Add 'write'.
21182
21183 2011-04-13  Bruno Haible  <bruno@clisp.org>
21184
21185         Support non-blocking pipe I/O in write() on native Windows.
21186         * lib/unistd.in.h (write): Enable replacement also if
21187         GNULIB_UNISTD_H_NONBLOCKING is 1.
21188         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21189         (rpl_write): When failing to write on a non-blocking pipe, change
21190         errno from ENOSPC to EAGAIN.
21191         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21192         putchar, puts, vfprintf, vprintf): Enable replacement also if
21193         GNULIB_STDIO_H_NONBLOCKING is 1.
21194         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21195         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21196         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21197         CALL_WITH_SIGPIPE_EMULATION.
21198         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21199         * m4/nonblocking.m4: New file.
21200         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21201         for non-blocking I/O support.
21202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21203         GNULIB_UNISTD_H_NONBLOCKING.
21204         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21205         required for non-blocking I/O support.
21206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21207         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21208         lib/stdio-write.c, m4/asm-underscore.m4.
21209         (Depends-on): Add stdio, unistd.
21210         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21211         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21212         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21213         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21214         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21215         problem with non-blocking pipes.
21216         * doc/posix-functions/fputc.texi: Likewise.
21217         * doc/posix-functions/fputs.texi: Likewise.
21218         * doc/posix-functions/fwrite.texi: Likewise.
21219         * doc/posix-functions/printf.texi: Likewise.
21220         * doc/posix-functions/putc.texi: Likewise.
21221         * doc/posix-functions/putchar.texi: Likewise.
21222         * doc/posix-functions/puts.texi: Likewise.
21223         * doc/posix-functions/vfprintf.texi: Likewise.
21224         * doc/posix-functions/vprintf.texi: Likewise.
21225         * doc/posix-functions/write.texi: Likewise.
21226
21227 2011-04-10  Jim Meyering  <meyering@redhat.com>
21228
21229         maint.mk: prohibit doubled words
21230         Detect them also when they're separated by a newline.
21231         There are 3 ways to customize it:
21232           - disable the test on a per file basis, as usual with rules using
21233             $(VC_LIST_EXCEPT)
21234           - replace the default doubled-word-selecting regexp (affects all files)
21235           - ignore a particular file-vs-doubled-word match
21236         I nearly used that last one to ignore the "is is" match in
21237         coreutils' NEWS file, since the text was "ls -is is ..."
21238         To do that, I would have added this line to cfg.mk:
21239           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21240         but it would have ignored any "is is" match in NEWS.
21241         Low probability, but still...
21242         Instead, I changed the text, slightly:
21243           -  ls -is is now consistent with ls -lis in ignoring values returned
21244           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21245         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21246         (prohibit_doubled_word_): Define.
21247         (sc_prohibit_doubled_word): New rule.
21248         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21249
21250 2011-04-10  Jim Meyering  <meyering@redhat.com>
21251
21252         maint: fix doubled-word typo in comment
21253         * m4/gethostname.m4: s/is is/it is/
21254         * m4/getdomainname.m4: Likewise.
21255
21256 2011-04-10  Jim Meyering  <meyering@redhat.com>
21257
21258         maint: remove doubled word: s/it it/it/
21259         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21260
21261 2011-04-10  Jim Meyering  <meyering@redhat.com>
21262
21263         maint.mk: remove useless semicolon and backslash
21264         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21265         semicolon and backslash.
21266
21267 2011-04-10  Bruno Haible  <bruno@clisp.org>
21268
21269         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21270         * modules/stdint-tests (Depends-on): Add wchar.
21271
21272 2011-04-10  Jim Meyering  <meyering@redhat.com>
21273
21274         maint: remove doubled words in comments, e.g., s/a a/a/
21275         * lib/strptime.c (day_of_the_week): s/the the/the/
21276         * tests/test-chown.h (test_chown): s/a a/a/
21277
21278         test-chown.h: correct a cast
21279         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21280         when the destination is a stat.st_gid.
21281
21282 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21283
21284         getaddrinfo: Fix test for sa_len member.
21285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21286         include <sys/types.h> before <sys/socket.h>.
21287
21288 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21289
21290         maint: change "can not" to "cannot"
21291         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21292         boundaries.
21293
21294 2011-04-09  Jim Meyering  <meyering@redhat.com>
21295
21296         maint: change "a a" to "a"
21297         * tests/test-lchown.h (test_lchown): s/a a/a/
21298
21299         maint.mk: prohibit \<the the\>
21300         * top/maint.mk (sc_prohibit_the_the): New rule.
21301
21302         maint: fix "the the" in comment
21303         * lib/count-one-bits.h: s/the the/the/
21304
21305         maint: change "can not" to "cannot"
21306         But do not change the occurrences in maintain.texi or in
21307         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21308         * doc/gnulib-tool.texi: s/can not/cannot/
21309         * doc/posix-functions/accept.texi (accept): Likewise.
21310         * doc/posix-functions/socket.texi (socket): Likewise.
21311         * lib/mbrtowc.c: Likewise.
21312
21313         maint.mk: prohibit use of "can not"
21314         * top/maint.mk (sc_prohibit_can_not): New rule.
21315         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21316
21317 2011-04-09  Bruno Haible  <bruno@clisp.org>
21318
21319         careadlinkat: Guard against misuse of careadlinkatcwd.
21320         * lib/careadlinkat.c: Include <stdlib.h>.
21321         (careadlinkatcwd): Check that the fd argument is as expected.
21322
21323 2011-04-09  Bruno Haible  <bruno@clisp.org>
21324
21325         careadlinkat: Use common coding style.
21326         * lib/careadlinkat.c: Move gnulib includes after system includes.
21327
21328 2011-04-09  Bruno Haible  <bruno@clisp.org>
21329
21330         careadlinkat: Clarify specification.
21331         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21332         (careadlinkatcwd): Add comment.
21333         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21334
21335 2011-04-09  Bruno Haible  <bruno@clisp.org>
21336
21337         areadlinkat: Avoid link error on many platforms.
21338         * modules/areadlinkat (Depends-on): Add areadlink.
21339
21340 2011-04-09  Bruno Haible  <bruno@clisp.org>
21341
21342         allocator, careadlinkat: Fix double-inclusion guard.
21343         * lib/allocator.h: Fix double-inclusion guard.
21344         * lib/careadlinkat.h: Likewise.
21345
21346 2011-04-09  Bruno Haible  <bruno@clisp.org>
21347
21348         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21349         * lib/relocwrapper.c: Update dependencies hierarchy.
21350         * build-aux/install-reloc: Update list of files to be compiled.
21351         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21352         lib/allocator.[hc].
21353
21354 2011-04-08  Eric Blake  <eblake@redhat.com>
21355
21356         strftime: silence gnulib-tool warning
21357         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21358
21359 2011-04-08  Bruno Haible  <bruno@clisp.org>
21360
21361         verify: Fix syntax error with GCC 4.6 in C++ mode.
21362         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21363         (HAVE_STATIC_ASSERT): New macro.
21364         (verify_true, verify): Use 'static_assert' if it is supported and
21365         '_Static_assert' is not supported.
21366
21367 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21368
21369         allocator: New module.
21370         * modules/allocator, lib/allocator.c: New files.
21371         * lib/allocator.h (stdlib_allocator): New decl.
21372         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21373         Remove.  Do not include <stdlib.h>.
21374         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21375         * modules/careadlinkat (Files): Remove lib/allocator.h.
21376         (Depends-on): Add allocator.
21377
21378         stdlib: let modules use system malloc, realloc
21379         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21380         if !_GL_USE_STDLIB_ALLOC.
21381         (malloc, realloc): Limit this change to a smaller scope.
21382
21383         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21384         (malloc, realloc): Don't #undef; no longer needed.
21385         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21386         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21387         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21388         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21389         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21390         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21391         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21392         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21393
21394         careadlinkat: rename members to avoid problem
21395         * lib/allocator.h (struct allocator): Rename members from
21396         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21397         and realloc are #define'd.  Reported by Eric Blake in
21398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21399         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21400
21401 2011-04-08  Eric Blake  <eblake@redhat.com>
21402
21403         nonblocking: reduce dependency
21404         * tests/test-nonblocking.c: Only test sockets when in use.
21405         * modules/nonblocking-tests (Depends-on): Drop socket.
21406         (Makefile.am): Link even if sockets are not present.
21407         * modules/pipe2-tests (Makefile.am): Likewise.
21408         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21409
21410         pipe2: fix O_NONBLOCK support on mingw
21411         * modules/pipe2 (Depends-on): Add nonblocking.
21412         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21413         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21414         * tests/test-nonblocking.c (main): Likewise.
21415         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21416
21417         fcntl-h: fix O_ACCMODE on cygwin
21418         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21419         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21420
21421         pipe-filter: drop O_NONBLOCK workarounds
21422         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21423         * modules/pipe-filter-ii (Depends-on): Likewise.
21424         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21425
21426         nonblocking: provide O_NONBLOCK for mingw
21427         * modules/nonblocking (Depends-on): Add open.
21428         (configure.ac): Set new witness macro.
21429         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21430         * modules/fcntl-h (Makefile.am): Substitute it.
21431         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21432         nonblocking module is in use.
21433         * lib/nonblocking.c: Adjust portability test.
21434         * lib/open.c (open): Don't let native open see gnulib flag.
21435         * tests/test-fcntl-h.c (main): Enhance test.
21436         * tests/test-open.h (test_open): Likewise.
21437         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21438
21439         careadlinkat: fix compilation error on mingw
21440         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21441         within struct allocator.
21442
21443 2011-04-06  Eric Blake  <eblake@redhat.com>
21444
21445         binary-io: relicense under LGPLv2+
21446         * modules/binary-io (License): Relax to LGPLv2+.
21447         Requested for libvirt, and required by pipe2.
21448
21449 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21450
21451         verify: use _Static_assert if available
21452         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21453         (verify_true, verify): Use it if available.  This generates better
21454         diagnostics with GCC 4.6.0 and later.
21455
21456 2011-04-05  Bruno Haible  <bruno@clisp.org>
21457
21458         Remove leftover generated .h files after config.status changed.
21459
21460         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21461         GL_GENERATE_ALLOCA_H.
21462         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21463         GL_GENERATE_ALLOCA_H evaluates to false.
21464
21465         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21466         GL_GENERATE_ARGZ_H.
21467         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21468         evaluates to false.
21469
21470         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21471         GL_GENERATE_BYTESWAP_H.
21472         * modules/byteswap (Makefile.am): Remove byteswap.h if
21473         GL_GENERATE_BYTESWAP_H evaluates to false.
21474
21475         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21476         GL_GENERATE_ERRNO_H.
21477         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21478         evaluates to false.
21479
21480         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21481         GL_GENERATE_FLOAT_H.
21482         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21483         evaluates to false.
21484
21485         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21486         GL_GENERATE_FNMATCH_H.
21487         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21488         GL_GENERATE_FNMATCH_H evaluates to false.
21489
21490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21491         GL_GENERATE_GLOB_H.
21492         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21493         evaluates to false.
21494
21495         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21496         automake conditional GL_GENERATE_ICONV_H.
21497         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21498         evaluates to false.
21499
21500         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21501         GL_GENERATE_NETINET_IN_H.
21502         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21503         GL_GENERATE_NETINET_IN_H evaluates to false.
21504
21505         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21506         conditional GL_GENERATE_PTHREAD_H.
21507         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21508         * modules/pthread (Makefile.am): Remove pthread.h if
21509         GL_GENERATE_PTHREAD_H evaluates to false.
21510
21511         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21512         GL_GENERATE_SCHED_H.
21513         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21514         evaluates to false.
21515
21516         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21517         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21518         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21519         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21520
21521         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21522         GL_GENERATE_STDARG_H.
21523         * modules/stdarg (Makefile.am): Remove stdarg.h if
21524         GL_GENERATE_STDARG_H evaluates to false.
21525
21526         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21527         GL_GENERATE_STDBOOL_H.
21528         * modules/stdbool (Makefile.am): Remove stdbool.h if
21529         GL_GENERATE_STDBOOL_H evaluates to false.
21530
21531         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21532         conditional GL_GENERATE_STDDEF_H.
21533         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21534         * modules/stddef (Makefile.am): Remove stddef.h if
21535         GL_GENERATE_STDDEF_H evaluates to false.
21536
21537         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21538         GL_GENERATE_STDINT_H.
21539         * modules/stdint (Makefile.am): Remove stdint.h if
21540         GL_GENERATE_STDINT_H evaluates to false.
21541
21542         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21543         GL_GENERATE_SYSEXITS_H.
21544         * modules/sysexits (Makefile.am): Remove sysexits.h if
21545         GL_GENERATE_SYSEXITS_H evaluates to false.
21546
21547         Reported by Karl Berry and Ralf Wildenhues.
21548
21549 2011-04-05  Bruno Haible  <bruno@clisp.org>
21550
21551         Ensure to rebuild generated .h files when config.status has changed.
21552         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21553         config.status.
21554         * modules/ctype (Makefile.am): Likewise.
21555         * modules/dirent (Makefile.am): Likewise.
21556         * modules/errno (Makefile.am): Likewise.
21557         * modules/fcntl-h (Makefile.am): Likewise.
21558         * modules/float (Makefile.am): Likewise.
21559         * modules/getopt-posix (Makefile.am): Likewise.
21560         * modules/glob (Makefile.am): Likewise.
21561         * modules/iconv-h (Makefile.am): Likewise.
21562         * modules/inttypes (Makefile.am): Likewise.
21563         * modules/langinfo (Makefile.am): Likewise.
21564         * modules/locale (Makefile.am): Likewise.
21565         * modules/math (Makefile.am): Likewise.
21566         * modules/netdb (Makefile.am): Likewise.
21567         * modules/netinet_in (Makefile.am): Likewise.
21568         * modules/poll-h (Makefile.am): Likewise.
21569         * modules/pthread (Makefile.am): Likewise.
21570         * modules/pty (Makefile.am): Likewise.
21571         * modules/sched (Makefile.am): Likewise.
21572         * modules/search (Makefile.am): Likewise.
21573         * modules/selinux-h (Makefile.am): Likewise.
21574         * modules/signal (Makefile.am): Likewise.
21575         * modules/spawn (Makefile.am): Likewise.
21576         * modules/stdarg (Makefile.am): Likewise.
21577         * modules/stdbool (Makefile.am): Likewise.
21578         * modules/stddef (Makefile.am): Likewise.
21579         * modules/stdint (Makefile.am): Likewise.
21580         * modules/stdio (Makefile.am): Likewise.
21581         * modules/stdlib (Makefile.am): Likewise.
21582         * modules/string (Makefile.am): Likewise.
21583         * modules/strings (Makefile.am): Likewise.
21584         * modules/sys_file (Makefile.am): Likewise.
21585         * modules/sys_ioctl (Makefile.am): Likewise.
21586         * modules/sys_select (Makefile.am): Likewise.
21587         * modules/sys_socket (Makefile.am): Likewise.
21588         * modules/sys_stat (Makefile.am): Likewise.
21589         * modules/sys_time (Makefile.am): Likewise.
21590         * modules/sys_times (Makefile.am): Likewise.
21591         * modules/sys_utsname (Makefile.am): Likewise.
21592         * modules/sys_wait (Makefile.am): Likewise.
21593         * modules/sysexits (Makefile.am): Likewise.
21594         * modules/termios (Makefile.am): Likewise.
21595         * modules/time (Makefile.am): Likewise.
21596         * modules/unistd (Makefile.am): Likewise.
21597         * modules/wchar (Makefile.am): Likewise.
21598         * modules/wctype-h (Makefile.am): Likewise.
21599         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21600
21601 2011-04-05  Bruno Haible  <bruno@clisp.org>
21602
21603         pipe2: Relicense under LGPLv2+.
21604         * modules/pipe2 (License): Change to LGPLv2+.
21605         Requested by Eric Blake, for libvirt.
21606
21607 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21608
21609         bootstrap: compute gnulib_extra_files after updating build_aux
21610         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21611         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21612
21613 2011-04-05  Eric Blake  <eblake@redhat.com>
21614
21615         bootstrap: preserve git whitelist item sorting
21616         * build-aux/bootstrap (sort_patterns): New function.
21617         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21618
21619 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21620
21621         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21622         sc_space_tab check.
21623
21624 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         areadlink, areadlinkat: rewrite in terms of careadlinkat
21627         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21628         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21629         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21630         (malloc, realloc): Remove #undefs.
21631         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21632         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21633         readlink, ssize_t, stdint, unistd.
21634         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21635         areadlink, stdint.
21636
21637         careadlinkat: new module
21638         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21639         * modules/careadlinkat: New files, written by me with
21640         a review and feedback from Ben Pfaff in
21641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21642
21643 2011-04-01  Bruno Haible  <bruno@clisp.org>
21644
21645         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21646         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21647         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21648         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21649         Reported by Bruce Korb <bruce.korb@gmail.com>.
21650
21651 2011-04-01  Bruno Haible  <bruno@clisp.org>
21652
21653         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21654         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21655         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21656         * modules/wcpcpy (Depends-on): Add extensions.
21657         * modules/wcpncpy (Depends-on): Likewise.
21658         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21659         systems.
21660         * doc/posix-functions/wcpncpy.texi: Likewise.
21661         * doc/posix-functions/wcwidth.texi: Likewise.
21662
21663 2011-03-31  Eric Blake  <eblake@redhat.com>
21664
21665         nonblocking: fix mingw test failures
21666         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21667         non-blocking flag on regular file.
21668         (get_nonblocking_flag): Set errno on invalid fd.
21669         * tests/test-nonblocking.c (main): Avoid test failure on
21670         directories if fchdir is not active.
21671         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21672
21673 2011-03-31  Bruno Haible  <bruno@clisp.org>
21674
21675         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21676         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21677         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21678         Reported by Simon Josefsson <simon@josefsson.org>.
21679
21680 2011-03-31  Bruno Haible  <bruno@clisp.org>
21681         and Eric Blake  <eblake@redhat.com>
21682
21683         nonblocking: new module
21684         * modules/nonblocking: New module.
21685         * modules/nonblocking-tests: Likewise.
21686         * lib/nonblocking.h: New file.
21687         * lib/nonblocking.c: Likewise.
21688         * tests/test-nonblocking.c: New test.
21689         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21690
21691 2011-03-30  Bruno Haible  <bruno@clisp.org>
21692
21693         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21694         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21695         instead of 'printf' format for GCC >= 4.4.
21696         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21697         (fprintf, printf, vfprintf, vprintf): Declare with
21698         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21699         the system's vfprintf() function.
21700         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21701
21702 2011-03-30  Eric Blake  <eblake@redhat.com>
21703
21704         passfd: fix scoping bug
21705         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21706         before sendmsg/recvmsg.
21707
21708         passfd: standardize coding conventions
21709         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21710         can be learned at compile time.
21711         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21712         ifdefs.
21713         (sendfd, recvfd): Follow gnulib code conventions.
21714
21715         passfd: fix incorrect sendmsg arguments
21716         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21717         incorrect msg_controllen value.
21718         * modules/passfd-tests (Depends-on): Check for alarm.
21719         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21720         Reported by Bastien ROUCARIES.
21721
21722 2011-03-30  Bruno Haible  <bruno@clisp.org>
21723
21724         c-strcasestr: Relicense under LGPLv2+.
21725         * modules/c-strcasestr (License): Change to LGPLv2+.
21726         Requested by Eric Blake, for libvirt.
21727
21728 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21729
21730         * users.txt: Add libidn2.  Fix libtasn1 link.
21731
21732 2011-03-30  Jim Meyering  <meyering@redhat.com>
21733
21734         tests: readlink* ("",... fails with EINVAL on newer kernels
21735         readlink and readlinkat have typically failed with ENOENT for
21736         the invalid, empty file name,  "".  However, with the advent
21737         of linux-2.6.39, they fail with EINVAL.
21738         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21739         when operating on the empty file name.
21740         * tests/test-readlink.h (test_readlink): Likewise.
21741
21742 2011-03-29  Bruno Haible  <bruno@clisp.org>
21743
21744         Relicense some modules under LGPLv2+, for libidn2.
21745         * modules/array-mergesort (License): Change to LGPLv2+.
21746         * modules/c-strcaseeq (License): Likewise.
21747         * modules/striconveh (License): Likewise.
21748         * modules/striconveha (License): Likewise.
21749         * modules/uniconv/base (License): Likewise.
21750         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21751         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21752         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21753         * modules/unictype/base (License): Likewise.
21754         * modules/unictype/bidiclass-of (License): Likewise.
21755         * modules/unictype/category-M (License): Likewise.
21756         * modules/unictype/category-none (License): Likewise.
21757         * modules/unictype/category-of (License): Likewise.
21758         * modules/unictype/category-test (License): Likewise.
21759         * modules/unictype/category-test-withtable (License): Likewise.
21760         * modules/unictype/combining-class (License): Likewise.
21761         * modules/unictype/joiningtype-of (License): Likewise.
21762         * modules/unictype/scripts (License): Likewise.
21763         * modules/uninorm/base (License): Likewise.
21764         * modules/uninorm/canonical-decomposition (License): Likewise.
21765         * modules/uninorm/composition (License): Likewise.
21766         * modules/uninorm/decompose-internal (License): Likewise.
21767         * modules/uninorm/decomposition-table (License): Likewise.
21768         * modules/uninorm/nfc (License): Likewise.
21769         * modules/uninorm/nfd (License): Likewise.
21770         * modules/uninorm/u32-normalize (License): Likewise.
21771         * modules/unistr/base (License): Likewise.
21772         * modules/unistr/u32-cpy (License): Likewise.
21773         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21774         * modules/unistr/u32-to-u8 (License): Likewise.
21775         * modules/unistr/u32-uctomb (License): Likewise.
21776         * modules/unistr/u8-check (License): Likewise.
21777         * modules/unistr/u8-mblen (License): Likewise.
21778         * modules/unistr/u8-mbtouc (License): Likewise.
21779         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21780         * modules/unistr/u8-mbtoucr (License): Likewise.
21781         * modules/unistr/u8-prev (License): Likewise.
21782         * modules/unistr/u8-strlen (License): Likewise.
21783         * modules/unistr/u8-to-u32 (License): Likewise.
21784         * modules/unistr/u8-uctomb (License): Likewise.
21785         * modules/unitypes (License): Likewise.
21786         Requested by Simon Josefsson.
21787
21788 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21789
21790         lib-symbol-visibility: Add a notice.
21791         * modules/lib-symbol-visibility (Notice): New field.
21792
21793 2011-03-29  Bruno Haible  <bruno@clisp.org>
21794
21795         getaddrinfo: Doc fix.
21796         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21797         section "fixed in Gnulib".
21798
21799 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21800
21801         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21802         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21803
21804 2011-03-26  Bruno Haible  <bruno@clisp.org>
21805
21806         unictype/property-byname: Reduce the number of load-time relocations.
21807         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21808         (UC_PROPERTY_INDEX_*): New enumeration values.
21809         (uc_property_byname): Convert an index from the lookup table to an
21810         uc_property_t.
21811         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21812         values.
21813
21814 2011-03-26  Bruno Haible  <bruno@clisp.org>
21815
21816         unictype/property-byname: Allow omitted word separators and aliases.
21817         * lib/unictype/pr_byname.gperf: Add property names without word
21818         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21819         for 'space'.
21820
21821 2011-03-26  Bruno Haible  <bruno@clisp.org>
21822
21823         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21824         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21825         also hyphens to space.
21826         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21827         without spaces.
21828         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21829
21830 2011-03-26  Bruno Haible  <bruno@clisp.org>
21831
21832         unictype/joiningtype-byname: Recognize long names as well.
21833         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21834         a long name.
21835         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21836         unictype/joiningtype_byname.h.
21837         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21838         * lib/unictype/joiningtype_byname.gperf: New file.
21839         * modules/unictype/joiningtype-byname (Files): Add
21840         lib/unictype/joiningtype_byname.gperf.
21841         (Depends-on): Add gperf.
21842         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21843         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21844         long names.
21845
21846         Tests for module 'unictype/joiningtype-longname'.
21847         * modules/unictype/joiningtype-longname-tests: New file.
21848         * tests/unictype/test-joiningtype_longname.c: New file.
21849
21850         New module 'unictype/joiningtype-longname'.
21851         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21852         * lib/unictype/joiningtype_longname.c: New file.
21853         * modules/unictype/joiningtype-longname: New file.
21854         * modules/unictype/joiningtype-all (Depends-on): Add
21855         unictype/joiningtype-longname.
21856
21857 2011-03-26  Bruno Haible  <bruno@clisp.org>
21858
21859         unictype/bidiclass-byname: Recognize long names as well.
21860         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21861         name.
21862         * lib/unictype/bidi_byname.c: Include <string.h>,
21863         unictype/bidi_byname.h.
21864         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21865         * lib/unictype/bidi_byname.gperf: New file.
21866         * modules/unictype/bidiclass-byname (Files): Add
21867         lib/unictype/bidi_byname.gperf.
21868         (Depends-on): Add gperf.
21869         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21870         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21871         long names.
21872
21873         Tests for module 'unictype/bidiclass-longname'.
21874         * modules/unictype/bidiclass-longname-tests: New file.
21875         * tests/unictype/test-bidi_longname.c: New file.
21876
21877         New module 'unictype/bidiclass-longname'.
21878         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21879         * lib/unictype/bidi_longname.c: New file.
21880         * modules/unictype/bidiclass-longname: New file.
21881         * modules/unictype/bidiclass-all (Depends-on): Add
21882         unictype/bidiclass-longname.
21883
21884 2011-03-26  Bruno Haible  <bruno@clisp.org>
21885
21886         unictype/bidi*: Rename modules.
21887         * modules/unictype/bidiclass-all: Renamed from
21888         modules/unictype/bidicategory-all.
21889         * modules/unictype/bidiclass-name: Renamed from
21890         modules/unictype/bidiclass-name.
21891         (Description): Update.
21892         * modules/unictype/bidiclass-name-tests: Renamed from
21893         modules/unictype/bidicategory-name-tests.
21894         * modules/unictype/bidiclass-byname: Renamed from
21895         modules/unictype/bidicategory-byname.
21896         (Description): Update.
21897         * modules/unictype/bidiclass-byname-tests: Renamed from
21898         modules/unictype/bidicategory-byname-tests.
21899         * modules/unictype/bidiclass-of: Renamed from
21900         modules/unictype/bidicategory-of.
21901         (Description): Update.
21902         * modules/unictype/bidiclass-of-tests: Renamed from
21903         modules/unictype/bidicategory-of-tests.
21904         * modules/unictype/bidiclass-test: Renamed from
21905         modules/unictype/bidicategory-test.
21906         (Description): Update.
21907         * modules/unictype/bidiclass-test-tests: Renamed from
21908         modules/unictype/bidicategory-test-tests.
21909         * modules/unictype/bidicategory-all: New file, a simple redirection.
21910         * modules/unictype/bidicategory-name: Likewise.
21911         * modules/unictype/bidicategory-byname: Likewise.
21912         * modules/unictype/bidicategory-of: Likewise.
21913         * modules/unictype/bidicategory-test: Likewise.
21914         * modules/unictype/property-bidi-* (Dependencies): Update.
21915         * lib/unictype/bidi_*.c: Update comment.
21916
21917 2011-03-26  Bruno Haible  <bruno@clisp.org>
21918
21919         unictype/bidi*: Rename functions, part 2.
21920         * modules/unictype/bidicategory-name (configure.ac): Update required
21921         libunistring version.
21922         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21923
21924 2011-03-25  Bruno Haible  <bruno@clisp.org>
21925
21926         New module 'unictype/combining-class-all'.
21927         * modules/unictype/combining-class-all: New file.
21928
21929         Tests for module 'unictype/combining-class-byname'.
21930         * modules/unictype/combining-class-byname-tests: New file.
21931         * tests/unictype/test-combiningclass_byname.c: New file.
21932
21933         New module 'unictype/combining-class-byname'.
21934         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21935         * lib/unictype/combiningclass_byname.c: New file.
21936         * lib/unictype/combiningclass_byname.gperf: New file.
21937         * modules/unictype/combining-class-byname: New file.
21938
21939         Tests for module 'unictype/combining-class-longname'.
21940         * modules/unictype/combining-class-longname-tests: New file.
21941         * tests/unictype/test-combiningclass_longname.c: New file.
21942
21943         New module 'unictype/combining-class-longname'.
21944         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21945         * lib/unictype/combiningclass_longname.c: New file.
21946         * modules/unictype/combining-class-longname: New file.
21947
21948         Tests for module 'unictype/combining-class-name'.
21949         * modules/unictype/combining-class-name-tests: New file.
21950         * tests/unictype/test-combiningclass_name.c: New file.
21951
21952         New module 'unictype/combining-class-name'.
21953         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21954         * lib/unictype/combiningclass_name.c: New file.
21955         * modules/unictype/combining-class-name: New file.
21956
21957 2011-03-25  Bruno Haible  <bruno@clisp.org>
21958
21959         unictype/combining-class: Rename source files.
21960         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21961         of unictype/combining.h.
21962         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21963         Update.
21964         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21965         * modules/unictype/combining-class (Description): Fix.
21966         (Files, Makefile.am): Update.
21967         * tests/unictype/test-combiningclass.c: Renamed from
21968         tests/unictype/test-combining.c.
21969         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21970
21971 2011-03-25  Bruno Haible  <bruno@clisp.org>
21972
21973         unictype: Update list of canonical combining classes.
21974         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21975
21976 2011-03-25  Bruno Haible  <bruno@clisp.org>
21977
21978         unictype/category-byname: Recognize long names as well.
21979         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21980         a long name.
21981         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21982         unictype/categ_byname.h.
21983         (UC_CATEGORY_INDEX_*): New enumeration values.
21984         (uc_general_category_byname): Use uc_general_category_lookup and
21985         convert from index to value.
21986         * lib/unictype/categ_byname.gperf: New file.
21987         * modules/unictype/category-byname (Files): Add
21988         lib/unictype/categ_byname.gperf.
21989         (Depends-on): Add gperf.
21990         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21991         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21992         long names.
21993
21994         Tests for module 'unictype/category-longname'.
21995         * modules/unictype/category-longname-tests: New file.
21996         * tests/unictype/test-categ_longname.c: New file.
21997
21998         New module 'unictype/category-longname'.
21999         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22000         * lib/unictype/categ_longname.c: New file.
22001         * modules/unictype/category-longname: New file.
22002         * modules/unictype/category-all (Depends-on): Add it.
22003
22004 2011-03-25  Bruno Haible  <bruno@clisp.org>
22005
22006         Tests for module 'unictype/category-LC'.
22007         * modules/unictype/category-LC-tests: New file.
22008         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22009
22010         New module 'unictype/category-LC'.
22011         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22012         (UC_CATEGORY_LC): New declaration.
22013         (UC_CASED_LETTER): New macro.
22014         * lib/gen-uni-tables.c (is_category_LC): New function.
22015         (output_categories): Also handle category LC.
22016         (UC_CATEGORY_MASK_LC): New enumeration value.
22017         (general_category_byname): Also handle category LC.
22018         * lib/unictype/categ_LC.c: New file.
22019         * lib/unictype/categ_LC.h: New file, automatically generated.
22020         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22021         category LC.
22022         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22023         * modules/unictype/category-LC: New file.
22024         * modules/unictype/category-byname (Depends-on): Add
22025         unictype/category-LC.
22026         * modules/unictype/category-all (Depends-on): Likewise.
22027
22028 2011-03-25  Eric Blake  <eblake@redhat.com>
22029
22030         xmalloc: revert yesterday's regression
22031         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22032         realloc's underlying behavior (allowing allocation of zero-size
22033         objects, especially if malloc-gnu is also in use).
22034
22035 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22036
22037         maint.mk: add missing version to VC-tag
22038         * top/maint.mk: git tag was missing actual tag name; add it.
22039
22040         valgrind: do leak checking, and exit with code 1 on error (not 0)
22041         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22042         to VALGRIND.
22043
22044 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22045
22046         posix-modules: say what it does.
22047         * posix-modules: Add a line to the --help output saying what it does.
22048
22049 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22050
22051         xmalloc: Do not leak if underlying realloc is C99 compatible.
22052         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22053         This avoids a leak on C99-based systems.  See
22054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22055
22056 2011-03-24  Eric Blake  <eblake@redhat.com>
22057
22058         realloc: document portability problem
22059         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22060         passing 0 size to realloc.
22061
22062 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22063
22064         doc: update users.txt
22065         * users.txt: Add cvsps, tmpwatch
22066
22067 2011-03-23  Matt Rice  <ratmice@gmail.com>
22068
22069         doc: update users.txt
22070         * users.txt: Add gdb.
22071
22072 2011-03-23  Jim Meyering  <meyering@redhat.com>
22073
22074         doc: update users.txt
22075         Looking through matches up to the following URL (there are still
22076         several more pages), I found several projects that use gnulib:
22077         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22078         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22079         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22080
22081 2011-03-22  Bruno Haible  <bruno@clisp.org>
22082
22083         unictype/bidi*: Rename functions.
22084         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22085         uc_bidi_class, uc_is_bidi_class): New declarations.
22086         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22087         uc_bidi_category_byname.
22088         (uc_bidi_category_byname): New function.
22089         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22090         u_bidi_category_name.
22091         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22092         (uc_bidi_category_name): New function.
22093         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22094         uc_bidi_category.
22095         (uc_bidi_category): New function.
22096         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22097         uc_is_bidi_category. Invoke uc_bidi_class.
22098         (uc_is_bidi_category): New function.
22099         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22100         instead of uc_bidi_category_byname.
22101         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22102         instead of uc_bidi_category_name.
22103         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22104         uc_bidi_category.
22105         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22106         instead of uc_is_bidi_category.
22107
22108 2011-03-21  Bruno Haible  <bruno@clisp.org>
22109
22110         New module 'unictype/joininggroup-all'.
22111         * modules/unictype/joininggroup-all: New file.
22112
22113         Tests for module 'unictype/joininggroup-of'.
22114         * modules/unictype/joininggroup-of-tests: New file.
22115         * tests/unictype/test-joininggroup_of.c: New file.
22116         * tests/unictype/test-joininggroup_of.h: New file, automatically
22117         generated by gen-uni-tables.
22118
22119         New module 'unictype/joininggroup-of'.
22120         * modules/unictype/joininggroup-of: New file.
22121         * lib/unictype/joininggroup_of.c: New file.
22122         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22123         gen-uni-tables.
22124
22125         Tests for module 'unictype/joininggroup-byname'.
22126         * modules/unictype/joininggroup-byname-tests: New file.
22127         * tests/unictype/test-joininggroup_byname.c: New file.
22128
22129         New module 'unictype/joininggroup-byname'.
22130         * modules/unictype/joininggroup-byname: New file.
22131         * lib/unictype/joininggroup_byname.c: New file.
22132         * lib/unictype/joininggroup_byname.gperf: New file.
22133
22134         Tests for module 'unictype/joininggroup-name'.
22135         * modules/unictype/joininggroup-name-tests: New file.
22136         * tests/unictype/test-joininggroup_name.c: New file.
22137
22138         New module 'unictype/joininggroup-name'.
22139         * modules/unictype/joininggroup-name: New file.
22140         * lib/unictype/joininggroup_name.c: New file.
22141         * lib/unictype/joininggroup_name.h: New file.
22142
22143         New module 'unictype/joiningtype-all'.
22144         * modules/unictype/joiningtype-all: New file.
22145
22146         Tests for module 'unictype/joiningtype-of'.
22147         * modules/unictype/joiningtype-of-tests: New file.
22148         * tests/unictype/test-joiningtype_of.c: New file.
22149         * tests/unictype/test-joiningtype_of.h: New file, automatically
22150         generated by gen-uni-tables.
22151
22152         New module 'unictype/joiningtype-of'.
22153         * modules/unictype/joiningtype-of: New file.
22154         * lib/unictype/joiningtype_of.c: New file.
22155         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22156         gen-uni-tables.
22157
22158         Tests for module 'unictype/joiningtype-byname'.
22159         * modules/unictype/joiningtype-byname-tests: New file.
22160         * tests/unictype/test-joiningtype_byname.c: New file.
22161
22162         New module 'unictype/joiningtype-byname'.
22163         * modules/unictype/joiningtype-byname: New file.
22164         * lib/unictype/joiningtype_byname.c: New file.
22165
22166         Tests for module 'unictype/joiningtype-name'.
22167         * modules/unictype/joiningtype-name-tests: New file.
22168         * tests/unictype/test-joiningtype_name.c: New file.
22169
22170         New module 'unictype/joiningtype-name'.
22171         * modules/unictype/joiningtype-name: New file.
22172         * lib/unictype/joiningtype_name.c: New file.
22173
22174         unictype: Add support for Arabic shaping properties.
22175         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22176         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22177         declarations.
22178         (UC_JOINING_GROUP_*): New enumeration values.
22179         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22180         declarations.
22181         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22182         (unicode_joining_type): New variable.
22183         (UC_JOINING_GROUP_*): New enumeration values.
22184         (unicode_joining_group): New variable.
22185         (fill_arabicshaping, joining_type_as_c_identifier,
22186         output_joining_type_test, output_joining_type,
22187         joining_group_as_c_identifier, output_joining_group_test,
22188         output_joining_group): New functions.
22189         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22190         fill_arabicshaping and output_joining_type_test, output_joining_type,
22191         output_joining_group_test, output_joining_group.
22192         Reported by Simon Josefsson.
22193
22194 2011-03-21  Jim Meyering  <meyering@redhat.com>
22195
22196         strftime: fix a bug in yesterday's change
22197         * lib/strftime.c (add): Accommodate width's initial value of -1.
22198         Otherwise, nstrftime would copy uninitialized data into
22199         the result buffer.
22200
22201 2011-03-21  Jim Meyering  <meyering@redhat.com>
22202
22203         tests: add strftime-tests module
22204         * tests/test-strftime.c: New file.
22205         * modules/strftime-tests: New module.
22206
22207 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22208
22209         strftime: don't assume a byte count fits in 'int'
22210         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22211         found this problem by static analysis, using gcc -Wstrict-overflow
22212         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22213         on an integer overflow having undefined behavior, but it turns out
22214         that the argument is a size, which might not fit in 'int' anyway,
22215
22216 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22217
22218         stdio: don't require ignore_value around fwrite
22219
22220         This patch works around libc bug 11959
22221         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22222         Without this patch, applications must often write
22223         ignore_value (fwrite (...)) even though the ignore_value is
22224         not helpful here.  It's common to write many objects, using
22225         fwrite/printf/etc., and then use ferror to detect output error.
22226
22227         I considered making this patch optional, but decided against it,
22228         because libc is obviously being inconsistent here: there is no
22229         reason libc should insist that user code must inspect fwrite
22230         return's value without also insisting that it inspect printf's,
22231         putchar's, etc.  If user code wants to have a strict style where
22232         all these functions' values are checked (so that ferror need not
22233         be checked), we could add support for that style in a new gnulib
22234         module, but in the meantime it's better to be consistent and to
22235         support common usage.
22236
22237         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22238         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22239         that we are compiling in checking mode, and if not C++, and
22240         if not already wrapping fwrite for some other reason.
22241         (fwrite): #define to rpl_fwrite if the latter is defined.
22242
22243 2011-03-20  Bruno Haible  <bruno@clisp.org>
22244
22245         verror: Fix compilation error introduced on 2011-02-13.
22246         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22247         instead of __attribute__.
22248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22249
22250 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22251             Bruno Haible  <bruno@clisp.org>
22252
22253         socklen: do not depend on sys_socket
22254         While trying to modify Emacs to use gnulib's socklen module,
22255         I discovered a circular dependency: socklen depends on sys_socket
22256         and vice versa.  Emacs can use socklen, but it does not need
22257         sys_socket because it has its own substitute for sys/socket.h.
22258         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22259         gl_TYPE_SOCKLEN_T.
22260         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22261         gl_PREREQ_SYS_H_SOCKET.
22262         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22263         gl_PREREQ_SYS_H_SOCKET.
22264         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22265         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22266         * modules/socklen (Depends-on): Do not depend on sys_socket.
22267         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22268
22269 2011-03-20  Jim Meyering  <meyering@redhat.com>
22270
22271         maint.mk: sort file names *after* new transformation
22272         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22273         prefix would have led to an unwarranted failure in GNU parted.
22274         Sort after that transformation.
22275
22276 2011-03-19  Jim Meyering  <meyering@redhat.com>
22277
22278         maint.mk: fix po-file syntax-check rule
22279         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22280         Patch by Bruno Haible.
22281
22282 2011-03-19  Bruno Haible  <bruno@clisp.org>
22283
22284         socklen: Update comment.
22285         * m4/socklen.m4: Update comment about platforms.
22286
22287 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22288             Bruno Haible  <bruno@clisp.org>
22289
22290         inet_ntop, inet_pton: Simplify.
22291         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22292         documented to provide socklen_t and we already depend on sys_socket.
22293         * modules/inet_pton (Depends-on): Likewise.
22294         * lib/arpa_inet.in.h: Adjust comment.
22295
22296 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22297             Bruno Haible  <bruno@clisp.org>
22298
22299         netdb: Simplify.
22300         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22301         documented to provide socklen_t and we already depend on sys_socket.
22302         * lib/netdb.in.h: Adjust comment.
22303
22304 2011-03-19  Bruno Haible  <bruno@clisp.org>
22305
22306         sys_socket, netdb: Document problem with socklen_t.
22307         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22308         platforms.
22309         * doc/posix-headers/netdb.texi: Likewise.
22310
22311 2011-03-18  Eric Blake  <eblake@redhat.com>
22312
22313         maint.mk: let po check work in VPATH build
22314         * top/maint.mk (po_file): Allow cfg.mk override.
22315         (sc_po_check): Allow VPATH use.
22316         Reported by Jiri Denemark.
22317
22318 2011-03-16  Jim Meyering  <meyering@redhat.com>
22319
22320         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22321         Before, you would have had to create one .x-sc_ file per rule in order
22322         to exempt offending files.  Now, you may instead use a Make variable --
22323         usually defined in cfg.mk -- whose name identifies the affected rule.
22324         * top/maint.mk (_sc_excl): Define.
22325         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22326         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22327
22328 2011-03-13  Bruno Haible  <bruno@clisp.org>
22329
22330         ignore-value tests: Avoid warnings.
22331         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22332         empty for gcc < 3.4.
22333
22334 2011-03-13  Bruno Haible  <bruno@clisp.org>
22335
22336         passfd: Fix link error on Solaris.
22337         * modules/passfd (Description): Correct.
22338         (Depends-on): Add socketlib.
22339         (Link): New section.
22340         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22341
22342 2011-03-13  Bruno Haible  <bruno@clisp.org>
22343
22344         passfd: Fix link error on AIX 5.2.
22345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22346
22347 2011-03-13  Bruno Haible  <bruno@clisp.org>
22348
22349         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22350         * lib/sys_socket.in.h: Include <stddef.h>.
22351         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22352         CMSG_FIRSTHDR. Remove unused variable.
22353
22354 2011-03-13  Bruno Haible  <bruno@clisp.org>
22355
22356         passfd: Fix compilation error on OpenBSD.
22357         * lib/passfd.c: Include <sys/uio.h>.
22358
22359 2011-03-13  Bruno Haible  <bruno@clisp.org>
22360
22361         passfd test: Fix warnings.
22362         * tests/test-passfd.c: Include <sys/wait.h>.
22363         (main): Fix typo.
22364
22365 2011-03-13  Bruno Haible  <bruno@clisp.org>
22366
22367         passfd module, part 4, tweaks.
22368         * tests/test-passfd.c: Reorder includes.
22369         (main): Fix perror and printf calls.
22370
22371 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22372
22373         passfd module, part 4.
22374         * modules/passfd-tests: New file.
22375         * tests/test-passfd.c: New file.
22376
22377 2011-03-13  Jim Meyering  <meyering@redhat.com>
22378
22379         Makefile: rely on GNU make; derive syntax-check rule names
22380         Rather than requiring that each sc_ rule be listed as a dependent
22381         of "check", use features of GNU make to derive the list.
22382         * Makefile (syntax-check-rules): Define.
22383         (check): Depend on the new variable, not the hard-coded list.
22384
22385 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22386             Bruno Haible  <bruno@clisp.org>
22387
22388         passfd module, part 3.
22389         * lib/passfd.h (recvfd): Add a flags argument.
22390         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22391         (recvfd): Add a flags argument.
22392         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22393         exists.
22394         * modules/passfd (Depends-on): Add cloexec.
22395         Suggested by Eric Blake.
22396
22397 2011-03-13  Bruno Haible  <bruno@clisp.org>
22398
22399         passfd module, part 2, tweaks.
22400         * modules/passfd (Files): Reorder.
22401         (Depends-on): Remove errno.
22402         (Include): Remove <sys/socket.h>, <sys/un.h>.
22403         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22404         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22405         specification header. Include <sys/socket.h> always. Don't include
22406         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22407         (sendfd): Clarify that it sets errno when it fails.
22408         (recvfd): Fix specification.
22409
22410 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22411
22412         passfd module, part 2.
22413         * modules/passfd: New file.
22414         * lib/passfd.h: New file.
22415         * lib/passfd.c: New file.
22416
22417 2011-03-12  Bruno Haible  <bruno@clisp.org>
22418
22419         wcswidth, mbswidth: Avoid integer overflow.
22420         * lib/wcswidth.c: Include <limits.h>.
22421         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22422         * lib/mbswidth.c: Include <limits.h>.
22423         (mbsnwidth): Avoid 'int' overflow.
22424         Reported by Jim Meyering.
22425
22426 2011-03-12  Bruno Haible  <bruno@clisp.org>
22427
22428         futimens, utimensat: Avoid endless recursion on Solaris 10.
22429         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22430         Solaris.
22431         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22432         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22433
22434 2011-03-11  Jim Meyering  <meyering@redhat.com>
22435
22436         maint.mk: relax a regexp to accommodate other formatting styles
22437         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22438         between "ngettext" and the following "(".
22439
22440 2011-03-11  Pádraig Brady <P@draigBrady.com>
22441
22442         maint.mk: suppress a false positive warning
22443         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22444         diagnostics are marked with ngettext.
22445
22446 2011-03-10  Eric Blake  <eblake@redhat.com>
22447
22448         wchar: add explicit dependencies, for Tru64
22449         * modules/mbmemcasecoll (Depends-on): Add wchar.
22450         * modules/mbtowc (Depends-on): Likewise.
22451         * modules/vasnprintf (Depends-on): Likewise.
22452         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22453         * modules/wctomb (Depends-on): Likewise.
22454         Reported by Peter O'Gorman.
22455
22456 2011-03-08  Bruno Haible  <bruno@clisp.org>
22457
22458         passfd module, part 1, tweaks.
22459         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22460         Improve indentation. Improve AC_MSG_CHECKING messages.
22461         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22462         gl_SOCKET_FAMILIES.
22463
22464 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22465
22466         passfd module, part 1.
22467         * m4/afunix.m4: New file.
22468         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22469         sockets.
22470
22471 2011-03-08  Bruno Haible  <bruno@clisp.org>
22472
22473         regex-quote: New API.
22474         * lib/regex-quote.h: Include <stdbool.h>.
22475         (struct regex_quote_spec): New type.
22476         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22477         New declarations.
22478         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22479         'const struct regex_quote_spec *' argument.
22480         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22481         (pcre_special): New constant.
22482         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22483         New functions.
22484         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22485         'const struct regex_quote_spec *' argument.
22486         * modules/regex-quote (Depends-on): Add stdbool.
22487         * tests/test-regex-quote.c (check): Update for new API. Add test for
22488         anchored results.
22489         * NEWS: Mention the API change.
22490         Reported by Reuben Thomas and Eric Blake.
22491
22492 2011-03-06  Bruno Haible  <bruno@clisp.org>
22493
22494         regex-quote: Fix creation of POSIX extended regular expressions.
22495         * lib/regex-quote.c (ere_special): Add grouping and alternation
22496         operators.
22497
22498 2011-03-05  Bruno Haible  <bruno@clisp.org>
22499
22500         doc: Improve doc regarding autopoint vs. gnulib.
22501         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22502         disable autopoint while running autoreconf.
22503         Suggested by Ralf Wildenhues.
22504
22505 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22506
22507         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22508         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22509
22510 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22511
22512         parse-duration: remove xalloc.h dependency
22513         * lib/parse-duration.c (parse_period): handle NULL return from
22514         strdup instead of calling xstrdup().
22515         * modules/parse-duration: remove "xalloc" dependency
22516
22517 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22518
22519         bootstrap: honor m4_base when running aclocal
22520         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22521
22522 2011-03-02  Jim Meyering  <meyering@redhat.com>
22523
22524         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22525         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22526         on request from Matt Booth.
22527
22528 2011-03-01  Eric Blake  <eblake@redhat.com>
22529
22530         test-link: work on Hurd
22531         * tests/test-link.h (test_link): Hurd rejects linking directories
22532         with EISDIR instead of the POSIX-mandated EPERM.
22533
22534 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22535
22536         stdio: simplify by moving files to printf-posix, sigpipe
22537         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22538         since this symbol is needed only if printf is replaced.
22539         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22540         Require gl_ASM_SYMBOL_PREFIX.
22541         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22542         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22543         (Depends-on): Add 'raise'.
22544         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22545         * modules/stdio (Files): Remove lib/stdio-write.c,
22546         m4/asm-underscore.m4.
22547         (Depends-on): Remove 'raise'.
22548
22549         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22550         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22551         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22552         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22553
22554 2011-02-28  Bruno Haible  <bruno@clisp.org>
22555
22556         localcharset: Assume ANSI C behaviour of free().
22557         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22558         calling free().
22559         Suggested by Simon Josefsson <simon@josefsson.org>.
22560
22561 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22562             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22563             Bruno Haible  <bruno@clisp.org>  (tiny change)
22564
22565         On Cygwin, use /proc file system instead of win32 API.
22566         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22567         Win32 file names.
22568         (DllMain): Simplify by removing Cygwin specific code.
22569         (find_shared_library_fullname): Use Linux specific implementation also
22570         for Cygwin.
22571         (get_shared_library_fullname): Update accordingly.
22572         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22573         Win32 file names.
22574         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22575         Cygwin specific code.
22576
22577 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22578             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22579
22580         Fix OpenMP flag detection for various Fortran compilers.
22581         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22582         OpenMP-conditional compilation construct, to force compile
22583         failure with missing OpenMP flag.
22584         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22585
22586 2011-02-25  Eric Blake  <eblake@redhat.com>
22587
22588         strstr: expand test coverage
22589         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22590         compilation.
22591         * tests/test-memmem.c (main): Duplicate tests.
22592         * tests/test-strcasestr.c (main): Likewise.
22593         * tests/test-c-strcasestr.c (main): Likewise.
22594
22595 2011-02-25  Jim Meyering  <meyering@redhat.com>
22596
22597         maint.mk: detect missing-NL-at-EOF, too
22598         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22599         it also detects when a file lacks a newline at EOF.
22600         (require_exactly_one_NL_at_EOF_): Renamed from
22601         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22602         since people may well have .x-sc_... file names tied to the
22603         existing name.  Suggested by Eric Blake.
22604
22605 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22606
22607         dirname: move m4/dos.m4 functionality into lib/dosname.h
22608
22609         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22610         extracts symbols from it, puts them into config.h; but it's much
22611         easier to use the symbols directly.  filename.h already does this,
22612         but it disagrees with dos.m4 in some respects.  This patch
22613         introduces a different include file dosname.h that packages up
22614         dos.m4, and then later we can work on merging filename.h and
22615         dosname.h.  Applications that need only the easy-to-configure
22616         symbols should consider including dosname.h rather than dirname.h.
22617         * NEWS: Mention incompatible changes.
22618         * m4/dos.m4: Remove.
22619         * lib/dosname.h, modules/dosname: New files.
22620         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22621         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22622         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22623         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22624         Include dosname.h, not dirname.h.
22625         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22626         Include dosname.h, for definitions of symbols like ISSLASH
22627         that used to be in config.h.
22628         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22630         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22631         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22632         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22633         * modules/rmdir (Files): Likewise.
22634         * modules/stat (Files): Likewise.
22635         * modules/unlink (Files): Likewise.
22636         * modules/dirname-lgpl (Depends-on): Add dosname.
22637         * modules/lstat (Depends-on): Likewise.
22638         * modules/openat (Depends-on): Likewise.
22639         * modules/rmdir (Depends-on): Likewise.
22640         * modules/savewd (Depends-on): Likewise.
22641         * modules/stat (Depends-on): Likewise.
22642         * modules/unlink (Depends-on): Likewise.
22643         * modules/openat (Depends-on): Remove dirname-lgpl.
22644         * modules/savewd (Depends-on): Likewise.
22645         * tests/test-dirname.c: Do not use removed symbols like
22646         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22647         the remaining symbols, e.g., ISSLASH ('\\').
22648
22649 2011-02-25  Eric Blake  <eblake@redhat.com>
22650
22651         strstr: revert patches that introduced bug and pessimization
22652         * lib/str-two-way.h: Add another reference.
22653         (two_way_short_needle, two_way_long_needle): Revert changes from
22654         2011-02-24; they pessimize search speed.
22655         (critical_factorization): Partially revert changes from
22656         2010-06-22; they violate the requirement that the left half of the
22657         needle be smaller than the period of the needle.
22658
22659 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22660
22661         filenamecat: remove unnecessary dependency on dirname-lgpl
22662         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22663         is no direct dependency, just an indirect one via filenamecat-lgpl.
22664
22665         remove: remove unnecessary use of m4/dos.m4
22666         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22667         * modules/remove (FILES): Remove m4/dos.m4.
22668
22669         * lib/openat-proc.c: Don't include dirname.h; not needed.
22670
22671         backupfile: remove unnecessary use of m4/dos.m4
22672         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22673         of its symbols are used by the backupfile code.  backupfile.c does
22674         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22675         for the rare case of programs that want all their backup file
22676         names to live within 8+3 limits, and dos.m4 doesn't address that.
22677         * modules/backupfile (Files): Remove m4/dos.m4.
22678
22679 2011-02-24  Jim Meyering  <meyering@redhat.com>
22680
22681         strstr: fix a bug whereby strstr would mistakenly return NULL
22682         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22683         in period calculation.
22684         (two_way_long_needle): Likewise.
22685         The original problem was reported by Mike Stump in
22686         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22687         Ralf Wildenhues provided the short needle and haystack.
22688         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22689         Add a more involved test to trigger the bug in two_way_long_needle.
22690
22691 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22692
22693         gnulib-tool: remove use of bold display in help screen
22694         * gnulib-tool (func_usage): Do not use bold display anymore in the
22695         help screen.  That was just meant to be a temporary emphasis for a
22696         backward-incompatible change.
22697
22698 2011-02-23  Bruno Haible  <bruno@clisp.org>
22699
22700         Fix misindentation of preprocessor directives.
22701         * lib/argp-namefrob.h: Reindent preprocessor directives.
22702         * lib/getopt_int.h (struct _getopt_data): Likewise.
22703         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22704         * lib/vasnprintf.c (decode_long_double): Likewise.
22705         * tests/test-argmatch.c: Insert blank lines, for clarity.
22706         * tests/test-exclude.c: Likewise.
22707
22708 2011-02-22  Bruno Haible  <bruno@clisp.org>
22709
22710         ioctl: Fix for MacOS X in 64-bit mode.
22711         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22712         value.
22713         Suggested by Eric Blake.
22714         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22715
22716 2011-02-22  Jim Meyering  <meyering@redhat.com>
22717
22718         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22719         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22720         in lib/.
22721
22722 2011-02-22  Eric Blake  <eblake@redhat.com>
22723
22724         maint: avoid any CDPATH issue
22725         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22726
22727         maint: adjust cpp indentation for my modules, as well
22728         * Makefile (sc_cpp_indent_check): Add my name.
22729         * lib/fbufmode.c: Filter through cppi.
22730         * lib/fpurge.c: Likewise.
22731         * lib/freadable.c: Likewise.
22732         * lib/freading.c: Likewise.
22733         * lib/fwritable.c: Likewise.
22734         * lib/fwriting.c: Likewise.
22735         * lib/sigaction.c: Likewise.
22736
22737 2011-02-22  Jim Meyering  <meyering@redhat.com>
22738
22739         maint: adjust cpp indentation to reflect nesting depth
22740         I.e., in a block of code that begins with an unnested "#if",
22741         put one space between the "#" in column 1 and following token.
22742         For example,
22743         -#include <sys/vfs.h>
22744         +# include <sys/vfs.h>
22745         Do this only in .c files that are part of a module I maintain.
22746         * lib/linkat.c: Filter through cppi.
22747         * lib/nanosleep.c: Likewise.
22748         * lib/openat.c: Likewise.
22749         * lib/openat-die.c: Likewise.
22750         * lib/dup3.c: Likewise.
22751         * lib/fchownat.c: Likewise.
22752         * lib/flock.c: Likewise.
22753         * lib/fsync.c: Likewise.
22754         * lib/fts.c: Likewise.
22755         * lib/getpass.c: Likewise.
22756         * lib/gettimeofday.c: Likewise.
22757         * lib/userspec.c: Likewise.
22758         * Makefile (sc_cpp_indent_check): New rule, to check this.
22759
22760 2011-02-22  Bruno Haible  <bruno@clisp.org>
22761
22762         New module 'wctomb'.
22763         * lib/stdlib.in.h (wctomb): New declaration.
22764         * lib/wctomb.c: New file.
22765         * lib/wctomb-impl.h: New file.
22766         * m4/wctomb.m4: New file.
22767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22768         REPLACE_WCTOMB.
22769         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22770         REPLACE_WCTOMB.
22771         * modules/wctomb: New file.
22772         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22773         * doc/posix-functions/wctomb.texi: Mention the new module.
22774         * modules/wctob (Depends-on): Add wctomb.
22775
22776 2011-02-22  Bruno Haible  <bruno@clisp.org>
22777
22778         New module 'mbtowc'.
22779         * lib/stdlib.in.h (mbtowc): New declaration.
22780         * lib/mbtowc.c: New file.
22781         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22782         * m4/mbtowc.m4: New file.
22783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22784         REPLACE_MBTOWC.
22785         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22786         REPLACE_MBTOWC.
22787         * modules/mbtowc: New file.
22788         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22789         * doc/posix-functions/mbtowc.texi: Mention the new module.
22790         * modules/btowc (Depends-on): Add mbtowc.
22791
22792 2011-02-22  Bruno Haible  <bruno@clisp.org>
22793
22794         wcrtomb: Add more tests for native Windows platforms.
22795         * tests/test-wcrtomb-w32-1.sh: New file.
22796         * tests/test-wcrtomb-w32-2.sh: New file.
22797         * tests/test-wcrtomb-w32-3.sh: New file.
22798         * tests/test-wcrtomb-w32-4.sh: New file.
22799         * tests/test-wcrtomb-w32-5.sh: New file.
22800         * tests/test-wcrtomb-w32.c: New file.
22801         * modules/wcrtomb-tests (Files): Add them.
22802         (Makefile.am): Arrange to run these tests.
22803         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22804         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22805
22806 2011-02-20  Bruno Haible  <bruno@clisp.org>
22807
22808         wcrtomb: Enhance test.
22809         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22810
22811 2011-02-20  Bruno Haible  <bruno@clisp.org>
22812
22813         mbrtowc: Tiny optimization.
22814         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22815
22816 2011-02-20  Jim Meyering  <meyering@redhat.com>
22817
22818         test-exclude.c: remove unmatched #endif
22819         * tests/test-exclude.c: Remove stray #endif, left over from
22820         the change of a week ago.
22821
22822 2011-02-19  Jim Meyering  <meyering@redhat.com>
22823
22824         git-version-gen: skip "-dirty" check when appropriate
22825         * build-aux/git-version-gen: Don't run any git commands when the
22826         version string comes from .tarball-version.  Prior to this, we
22827         would run git update-index --refresh even from a just-unpacked
22828         tarball directory, and that could affect a .git/ directory in a
22829         parent of the build directory.  Reported by Mike Frysinger.
22830
22831 2011-02-19  Bruno Haible  <bruno@clisp.org>
22832
22833         unictype/property-byname: Reduce the size of the 'data' segment.
22834         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22835
22836 2011-02-19  Bruno Haible  <bruno@clisp.org>
22837
22838         unictype/scripts: Reduce the size of the 'data' segment.
22839         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22840         '%pic'.
22841         * lib/unictype/scripts_byname.gperf: Regenerated.
22842
22843 2011-02-19  Bruno Haible  <bruno@clisp.org>
22844
22845         stdint: Update documentation.
22846         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22847
22848 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22849
22850         stdint: omit redundant check for wchar.h
22851         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22852         always tests whether wchar.h exists, so remove the now-redundant test.
22853
22854 2011-02-18  Bruno Haible  <bruno@clisp.org>
22855
22856         stdint: Cut dependency to module 'wchar'.
22857         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22858         include the necessary prerequisites.
22859         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22860         * modules/stdint (Depends-on): Remove wchar.
22861         (Makefile.am): Substitute HAVE_WCHAR_H.
22862         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22863
22864 2011-02-18  Eric Blake  <eblake@redhat.com>
22865
22866         longlong: skip, rather than fail, on cross-compilation
22867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22868         when cross-compiling; regression from 2011-02-16.
22869
22870 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22871
22872         * NEWS: Mention 2011-02-08 change to stdlib.
22873
22874 2011-02-17  Bruno Haible  <bruno@clisp.org>
22875
22876         getloadavg: Add comments about platforms.
22877         * m4/getloadavg.m4: Add comment.
22878         * lib/getloadavg.c: Likewise.
22879
22880 2011-02-17  Bruno Haible  <bruno@clisp.org>
22881
22882         getloadavg: Fix link error on Solaris 2.6.
22883         * modules/getloadavg (Link): New section.
22884         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22885         linking test-getloadavg.
22886         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22887         getloadavg.
22888
22889 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22890
22891         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22892         It was 'int', but this doesn't match the IRIX 6.5 manual.
22893         Suggested by Bruno Haible in
22894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22895
22896 2011-02-17  Bruno Haible  <bruno@clisp.org>
22897
22898         havelib: Fix comments.
22899         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22900         change.
22901
22902 2011-02-17  Bruno Haible  <bruno@clisp.org>
22903
22904         havelib: Update config.rpath.
22905         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22906
22907 2011-02-17  Bruno Haible  <bruno@clisp.org>
22908
22909         getloadavg test: Add some plausibility checks.
22910         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22911         is improbable.
22912
22913 2011-02-16  Eric Blake  <eblake@redhat.com>
22914
22915         maintainer-makefile: make syntax-check a no-op from tarballs
22916         * top/maint.mk (no-vc-detected): New rule.
22917         (local-checks-available): Use it to avoid hanging if someone tries
22918         'make syntax-check' from a tarball.  Also append to any non-syntax
22919         checks already defined in cfg.mk.
22920
22921 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22922
22923         longlong: tune, particularly for common case of c99
22924
22925         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22926         or running anything if c99, or if unsigned long long int does not
22927         work.  In either case, we know the answer without further tests.
22928         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22929         it at most once, and use its results for both long long int and
22930         unsigned long long int.  This is more likely to be efficient in
22931         the common case where the program wants to check for both long
22932         long int and unsigned long long int.
22933         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22934         since the answer is already known.
22935
22936 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22937
22938         getloadavg: set errno
22939         * lib/getloadavg.c: Set errno when returning -1.  If no other
22940         error number looks appropriate, set it to ENOSYS if the getloadavg
22941         looks like it can't possibly ever work, ENOTSUP otherwise.
22942         Suggested by Bruno Haible in
22943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22944
22945         getloadavg: trim unused parts and speed up 'configure'
22946         * NEWS: Document this.
22947         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22948         always compiled if getloadavg is absent.
22949         Move test code to ...
22950         * tests/test-getloadavg.c: New file, containing previous
22951         contents of test from lib/getloadavg.c.  It also contains
22952         suggestions by Bruno Haible in
22953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22954         * modules/getloadavg-tests: New file.
22955         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22956         Do tests in the same order as they're needed for getloadavg.c.
22957         Omit setgid-related tests that generate symbols KMEM_GROUP,
22958         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22959         Do only the tests that are needed to see whether the system has
22960         getloadavg, moving the other tests into ...
22961         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22962         NLIST_NAME_UNION; nobody should be using it.  Do not define
22963         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22964         relevant, as the user of this module shouldn't care how getloadavg
22965         is implemented.
22966
22967         getloadavg: omit unused var
22968         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22969
22970 2011-02-15  Jim Meyering  <meyering@redhat.com>
22971
22972         doc: update users.txt
22973         * users.txt: Update iwhd's URL.
22974
22975 2011-02-13  Bruno Haible  <bruno@clisp.org>
22976
22977         Consistent macro naming for macros that use GCC __attribute__.
22978         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22979         _ATTRIBUTE_NONNULL_.
22980         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22981         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22982         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22983         ATTRIBUTE_DEPRECATED.
22984         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22985         ATTRIBUTE_NORETURN.
22986         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22987         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22988         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22989         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22990         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22991         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22992         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22993         ATTRIBUTE_SENTINEL.
22994         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22995         ATTRIBUTE_RETURN_CHECK.
22996         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22997         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22998         ATTRIBUTE_NORETURN.
22999         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23000         Reported by Paul Eggert.
23001
23002 2011-02-13  Bruno Haible  <bruno@clisp.org>
23003
23004         Don't interfere with a program's definition of __attribute__.
23005         * lib/argp.h (__attribute__): Remove definition.
23006         (_GL_ATTRIBUTE_FORMAT): New macro.
23007         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23008         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23009         (_GL_ATTRIBUTE_FORMAT): New macro.
23010         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23011         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23012         GCC 3 or newer.
23013         * lib/error.h (__attribute__): Remove definition.
23014         (_GL_ATTRIBUTE_FORMAT): New macro.
23015         (error, error_at_line): Use it.
23016         * lib/hash.h (__attribute__): Remove definition.
23017         (ATTRIBUTE_WUR): Update definition. Define always.
23018         * lib/openat.h (__attribute__): Remove definition.
23019         (ATTRIBUTE_NORETURN): Update definition. Define always.
23020         * lib/sigpipe-die.h (__attribute__): Remove definition.
23021         (ATTRIBUTE_NORETURN): Update definition. Define always.
23022         * lib/vasnprintf.h (__attribute__): Remove definition.
23023         (_GL_ATTRIBUTE_FORMAT): New macro.
23024         (asnprintf, vasnprintf): Use it.
23025         * lib/xalloc.h (__attribute__): Remove definition.
23026         (ATTRIBUTE_NORETURN): Update definition. Define always.
23027         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23028         * lib/xmemdup0.h (__attribute__): Remove definition.
23029         (ATTRIBUTE_NORETURN): Update definition. Define always.
23030         * lib/xprintf.h (__attribute__): Remove definition.
23031         (_GL_ATTRIBUTE_FORMAT): New macro.
23032         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23033         * lib/xstrtol.h (__attribute__): Remove definition.
23034         (ATTRIBUTE_NORETURN): Update definition. Define always.
23035         * lib/xvasprintf.h (__attribute__): Remove definition.
23036         (_GL_ATTRIBUTE_FORMAT): New macro.
23037         (xasprintf, xvasprintf): Use it.
23038         * tests/test-argmatch.c (__attribute__): Remove definition.
23039         (ATTRIBUTE_NORETURN): Update definition. Define always.
23040         * tests/test-exclude.c (__attribute__): Remove definition.
23041         (ATTRIBUTE_NORETURN): Update definition. Define always.
23042         Reported by Paul Eggert.
23043
23044 2011-02-13  Bruno Haible  <bruno@clisp.org>
23045
23046         mbrtowc: Add more tests for native Windows platforms.
23047         * tests/test-mbrtowc-w32-1.sh: New file.
23048         * tests/test-mbrtowc-w32-2.sh: New file.
23049         * tests/test-mbrtowc-w32-3.sh: New file.
23050         * tests/test-mbrtowc-w32-4.sh: New file.
23051         * tests/test-mbrtowc-w32-5.sh: New file.
23052         * tests/test-mbrtowc-w32.c: New file.
23053         * modules/mbrtowc-tests (Files): Add them.
23054         (Makefile.am): Arrange to run these tests.
23055         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23056         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23057
23058 2011-02-13  Bruno Haible  <bruno@clisp.org>
23059
23060         mbrtowc: Work around native Windows bug.
23061         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23062         guess when no suitable locale for testing was found.
23063         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23064
23065 2011-02-13  Bruno Haible  <bruno@clisp.org>
23066
23067         mbsinit: Work around mingw bug.
23068         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23069         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23070         Windows.
23071         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23072
23073 2011-02-13  Bruno Haible  <bruno@clisp.org>
23074
23075         mbsinit: Don't crash for a NULL argument.
23076         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23077         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23078
23079 2011-02-13  Bruno Haible  <bruno@clisp.org>
23080
23081         Don't interfere with a program's definition of __attribute__.
23082         * lib/stdio.in.h (__attribute__): Remove definition.
23083         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23084         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23085         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23086         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23087         * lib/string.in.h (__attribute__): Remove definition.
23088         Reported by Paul Eggert.
23089
23090 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23091
23092         stdlib: don't get in the way of non-GCC __attribute__
23093         See thread starting at
23094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23095         Revert previous stdlib change, installing the following instead:
23096         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23097         to get in the way of a non-GCC compiler that supports __attribute__.
23098         (_GL_ATTRIBUTE_RETURN): New macro.
23099         (_Exit): Use it instead of __attribute__.
23100
23101 2011-02-12  Bruno Haible  <bruno@clisp.org>
23102
23103         quotearg test: Avoid test failure on mingw.
23104         * tests/test-quotearg.sh: Convert the locale identifier from native
23105         Windows syntax to Unix syntax.
23106
23107 2011-02-12  Bruno Haible  <bruno@clisp.org>
23108
23109         setlocale: Prefer gnulib's override over libintl's override.
23110         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23111         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23112         GNULIB_defined_setlocale is set.
23113
23114 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23115
23116         stdlib: support non-GCC __attribute__
23117
23118         Fix a serious and tricky problem encountered when attempting to
23119         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23120         5.5, but it crashed due to memory corruption on Solaris 10 with
23121         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23122         bits that are otherwise zero.  This tagging is optional inside
23123         Emacs but is preferred and is used when __attribute__ ((__aligned
23124         (8))) works, as it does with both recent-enough GCC and with Sun C
23125         5.11.  However, Sun C 5.11 is not GCC and does not #define
23126         __GNUC__ and __GNUC_MINOR__.
23127
23128         When I added the getloadavg module to Emacs, it brought in
23129         stdlib.in.h, which contained this fragment:
23130
23131            #ifndef __attribute__
23132            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23133            #  define __attribute__(Spec)   /* empty */
23134            # endif
23135            #endif
23136
23137         When files that include <stdlib.h> were compiled with Sun C 5.11,
23138         the above code disabled __attribute__ ((__aligned (8))), which
23139         caused variables to not be properly aligned, which eventually led
23140         to the pointer corruption mentioned above.  (This was a bit hard
23141         to diagnose, unfortunately.)
23142
23143         Several "#define __attribute__(X) /* empty */" code snippets need
23144         to be eradicated from Gnulib to work with non-GCC compilers that
23145         support __attribute__.  The Autoconf way to do this is to test for
23146         each kind of attribute that we want support for, and selectively
23147         enable that in source code.
23148
23149         Fix this problem just for stdlib.h, by adding a test for the
23150         __noreturn__ attribute, and change stdlib.in.h to use that test
23151         when needed.  This technique can be easily generalized to the
23152         other *.in.h files and attributes, and a similar technique can be
23153         used for *.h and *.c files.  This patch is enough to solve the
23154         problem for Emacs + getloadavg, and I thought I'd publish it for
23155         feedback before undertaking further, similar fixes in other
23156         modules.
23157
23158         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23159         because it's not needed for stdlib.h.  It merely substitutes the
23160         value directly into stdlib.h.  We may well need to #define it, or
23161         similar symbols, for other modules, but it's nice to also have an
23162         option to not #define it for applications like Emacs that do not
23163         need it.
23164
23165         * lib/stdlib.in.h (__attribute__): Do not #define.
23166         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23167         be defined only if the _Exit module is also used.
23168         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23170         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23171         platforms.
23172         * modules/_Exit (Files): Add m4/attribute.m4.
23173         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23174         * m4/attribute.m4: New file.
23175
23176 2011-02-12  Bruno Haible  <bruno@clisp.org>
23177
23178         wcsrtombs: Work around bug on native Windows.
23179         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23180         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23181         instead of len.
23182         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23183
23184 2011-02-12  Bruno Haible  <bruno@clisp.org>
23185
23186         mbsrtowcs: Work around bug on native Windows.
23187         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23188         against mingw bug.
23189         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23190
23191 2011-02-12  Bruno Haible  <bruno@clisp.org>
23192
23193         Avoid setlocale bugs in tests.
23194         * modules/btowc (Dependencies): Add setlocale.
23195         * modules/c-strcase (Dependencies): Likewise.
23196         * modules/mbmemcasecmp (Dependencies): Likewise.
23197         * modules/mbmemcasecoll (Dependencies): Likewise.
23198         * modules/mbrtowc (Dependencies): Likewise.
23199         * modules/mbscasecmp (Dependencies): Likewise.
23200         * modules/mbscasestr (Dependencies): Likewise.
23201         * modules/mbschr (Dependencies): Likewise.
23202         * modules/mbscspn (Dependencies): Likewise.
23203         * modules/mbsinit (Dependencies): Likewise.
23204         * modules/mbsncasecmp (Dependencies): Likewise.
23205         * modules/mbsnrtowcs (Dependencies): Likewise.
23206         * modules/mbspbrk (Dependencies): Likewise.
23207         * modules/mbspcasecmp (Dependencies): Likewise.
23208         * modules/mbsrchr (Dependencies): Likewise.
23209         * modules/mbsrtowcs (Dependencies): Likewise.
23210         * modules/mbsspn (Dependencies): Likewise.
23211         * modules/mbsstr (Dependencies): Likewise.
23212         * modules/nl_langinfo (Dependencies): Likewise.
23213         * modules/quotearg (Dependencies): Likewise.
23214         * modules/unicase/locale-language (Dependencies): Likewise.
23215         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23216         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23217         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23218         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23219         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23220         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23221         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23222         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23223         * modules/vasnprintf-posix (Dependencies): Likewise.
23224         * modules/wcrtomb (Dependencies): Likewise.
23225         * modules/wcsnrtombs (Dependencies): Likewise.
23226         * modules/wcsrtombs (Dependencies): Likewise.
23227
23228 2011-02-12  Bruno Haible  <bruno@clisp.org>
23229
23230         setlocale: Workaround native Windows bug.
23231         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23232         succeeds but sets LC_CTYPE to "C", report a failure.
23233         * tests/test-setlocale2.sh: New file.
23234         * tests/test-setlocale2.c: New file.
23235         * modules/setlocale-tests (Files): Add the new files.
23236         (Makefile.am): Enable test-setlocale2.sh test.
23237         * doc/posix-functions/setlocale.texi: Mention workaround.
23238
23239 2011-02-11  Bruno Haible  <bruno@clisp.org>
23240
23241         Tests for module 'setlocale'.
23242         * modules/setlocale-tests: New file.
23243         * tests/test-setlocale1.sh: New file.
23244         * tests/test-setlocale1.c: New file.
23245
23246         New module 'setlocale'.
23247         * lib/locale.in.h (setlocale): New declaration.
23248         * lib/setlocale.c: New file, based on
23249         gettext/gettext-runtime/intl/setlocale.c.
23250         * m4/setlocale.m4: New file.
23251         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23252         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23253         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23254         REPLACE_SETLOCALE.
23255         * modules/setlocale: New file.
23256         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23257         * doc/posix-functions/setlocale.texi: Mention the new module.
23258
23259 2011-02-11  Bruno Haible  <bruno@clisp.org>
23260
23261         Prepare for locale dependent tests on mingw.
23262         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23263         because it has the wrong locale encoding.
23264         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23265         French_France.1252 instead of "fr".
23266         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23267         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23268         because it has the wrong locale encoding.
23269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23270         native Windows, try Turkish_Turkey.65001.
23271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23272         Chinese_China.54936.
23273
23274         Prepare for locale dependent tests on mingw.
23275         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23276         differently.
23277         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23278         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23279         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23280         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23281
23282 2011-02-11  Eric Blake  <eblake@redhat.com>
23283
23284         strptime: avoid compiler warnings
23285         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23286         compiler warnings about dead code.
23287         Reported by Daniel P. Berrange.
23288
23289 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23290
23291         doc: update users.txt
23292         * users.txt: Add rcs.
23293
23294 2011-02-10  John W. Eaton  <jwe@gnu.org>
23295
23296         doc: update users.txt
23297         * users.txt: Add octave.
23298
23299 2011-02-10  Jim Meyering  <meyering@redhat.com>
23300
23301         doc: update users.txt
23302         * users.txt: Add iwhd.
23303
23304 2011-02-09  Bruno Haible  <bruno@clisp.org>
23305
23306         gnulib-tool: Make copyright notice adjustment more robust.
23307         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23308         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23309         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23310         License".
23311         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23312
23313 2011-02-06  Bruno Haible  <bruno@clisp.org>
23314
23315         New module 'towctrans'.
23316         * modules/towctrans: New file.
23317         * lib/wctype.in.h (towctrans): New declaration.
23318         * lib/towctrans.c: New file.
23319         * lib/towctrans-impl.h: New file.
23320         * m4/towctrans.m4: New file.
23321         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23322         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23323         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23324         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23325         * doc/posix-functions/towctrans.texi: Mention the new module.
23326
23327 2011-02-06  Bruno Haible  <bruno@clisp.org>
23328
23329         New module 'wctrans'.
23330         * modules/wctrans: New file.
23331         * lib/wctype.in.h (wctrans): New declaration.
23332         * lib/wctrans.c: New file.
23333         * lib/wctrans-impl.h: New file.
23334         * m4/wctrans.m4: New file.
23335         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23336         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23337         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23338         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23339         * doc/posix-functions/wctrans.texi: Mention the new module.
23340
23341 2011-02-06  Bruno Haible  <bruno@clisp.org>
23342
23343         New module 'iswctype'.
23344         * modules/iswctype: New file.
23345         * lib/wctype.in.h (iswctype): New declaration.
23346         * lib/iswctype.c: New file.
23347         * lib/iswctype-impl.h: New file.
23348         * m4/iswctype.m4: New file.
23349         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23350         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23351         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23352         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23353         * doc/posix-functions/iswctype.texi: Mention the new module and the
23354         HP-UX 11.00 problem.
23355
23356 2011-02-06  Bruno Haible  <bruno@clisp.org>
23357
23358         New module 'wctype'.
23359         * modules/wctype: Change to represent the wctype() substitute.
23360         * lib/wctype.in.h (wctype): New declaration.
23361         * lib/wctype.c: New file.
23362         * lib/wctype-impl.h: New file.
23363         * m4/wctype.m4: New file.
23364         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23365         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23366         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23367         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23368         * doc/posix-functions/wctype.texi: Mention the new module and the
23369         HP-UX 11.00 problem.
23370
23371 2011-02-06  Bruno Haible  <bruno@clisp.org>
23372
23373         wctype-h: Ensure wctype_t and wctrans_t are defined.
23374         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23375         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23376         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23377         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23378         HAVE_WCTRANS_T.
23379         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23380
23381 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23382
23383         flock: fix license typo
23384
23385         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23386         omitted.
23387
23388 2011-02-08  Bruno Haible  <bruno@clisp.org>
23389
23390         Split large sed scripts, for HP-UX sed.
23391         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23392         to avoid HP-UX limit of 99 commands, in the near future.
23393         * modules/stdlib (Makefile.am): Likewise.
23394         * modules/unistd (Makefile.am): Likewise.
23395         * modules/wchar (Makefile.am): Likewise.
23396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23397         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23399
23400 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23401             Bruno Haible  <bruno@clisp.org>
23402
23403         stdlib: improve random_r modularization
23404         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23405         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23406         you also need the random_r module to get this material right.
23407         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23408         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23409         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23410
23411 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23412
23413         stdlib: don't depend on stdint
23414         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23415         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23416         be independent of whether stdint.h is needed.
23417         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23418         here, instead of ...
23419         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23420         struct random_data should be using the random_r module, not just
23421         the stdlib module (which wouldn't make sense: what package needs
23422         just struct random_data without also needing random_r?).
23423         * modules/stdlib (Depends-on): Remove stdint.
23424
23425         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23426         See the thread rooted at
23427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23428         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23429         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23430         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23431         __VMS)); previously it was always included (via fcntl--.h).
23432         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23433         hand; this is good enough for load averages.  Also, do not use
23434         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23435         flags directly if available and don't bother otherwise.  (Packages
23436         that need the extra reliability should use the modules that define
23437         these flags on older platforms that lack them.)
23438         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23439         fcntl-safer.
23440
23441 2011-02-08  Jim Meyering  <meyering@redhat.com>
23442
23443         di-set.h, ino-map.h: add multiple-inclusion guard
23444         Technically, the guard is required only for ino-map.h, due to its
23445         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23446         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23447         * lib/ino-map.h: Likewise.
23448
23449 2011-02-06  Bruno Haible  <bruno@clisp.org>
23450
23451         iswblank: Ensure declaration on glibc systems.
23452         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23453         * modules/iswblank (Dependencies): Add 'extensions'.
23454         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23455
23456 2011-02-06  Bruno Haible  <bruno@clisp.org>
23457
23458         New module 'iswblank'.
23459         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23460         * modules/iswblank: New file.
23461         * modules/wctype-h (Files): Remove lib/iswblank.c.
23462         (Makefile.am): Substitute GNULIB_ISWBLANK.
23463         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23464         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23465         (gl_WCTYPE_H_DEFAULTS): New macro.
23466         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23467         * modules/iswblank-tests: New file.
23468         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23469         * tests/test-wctype-h.c (main): Remove iswblank tests.
23470         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23471         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23472         of 'wctype-h'.
23473         * NEWS: Mention the change.
23474         * modules/mbchar (Depends-on): Add iswblank.
23475
23476 2011-02-08  Bruno Haible  <bruno@clisp.org>
23477
23478         di-set tests: Refactor.
23479         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23480         unnecessary includes.
23481         (ASSERT): Remove macro.
23482         (main): Make C90 compliant by avoiding variable declaration after
23483         statement.
23484         * modules/di-set-tests (Files): Add tests/macros.h.
23485
23486 2011-02-08  Bruno Haible  <bruno@clisp.org>
23487
23488         ino-map tests: Refactor.
23489         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23490         unnecessary includes.
23491         (ASSERT): Remove macro.
23492         (main): Make C90 compliant by avoiding variable declaration after
23493         statement.
23494         * modules/ino-map-tests (Files): Add tests/macros.h.
23495
23496 2011-02-08  Jim Meyering  <meyering@redhat.com>
23497
23498         di-set: add "const" to a cast
23499         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23500         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23501
23502 2011-02-06  Bruno Haible  <bruno@clisp.org>
23503
23504         Rename module 'wctype' to 'wctype-h'.
23505         * modules/wctype-h: Renamed from modules/wctype.
23506         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23507         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23508         (Files, Depends-on, Makefile.am): Update.
23509         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23510         (Files, Makefile.am): Update.
23511         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23512         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23513         * doc/posix-headers/wctype.texi: Update.
23514         * doc/posix-functions/iswalnum.texi: Update.
23515         * doc/posix-functions/iswalpha.texi: Update.
23516         * doc/posix-functions/iswblank.texi: Update.
23517         * doc/posix-functions/iswcntrl.texi: Update.
23518         * doc/posix-functions/iswdigit.texi: Update.
23519         * doc/posix-functions/iswgraph.texi: Update.
23520         * doc/posix-functions/iswlower.texi: Update.
23521         * doc/posix-functions/iswprint.texi: Update.
23522         * doc/posix-functions/iswpunct.texi: Update.
23523         * doc/posix-functions/iswspace.texi: Update.
23524         * doc/posix-functions/iswupper.texi: Update.
23525         * doc/posix-functions/iswxdigit.texi: Update.
23526         * doc/posix-functions/towlower.texi: Update.
23527         * doc/posix-functions/towupper.texi: Update.
23528         * NEWS: Mention the change.
23529         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23530         * modules/mbchar (Dependencies): Likewise.
23531         * modules/mbswidth (Dependencies): Likewise.
23532         * modules/quotearg (Dependencies): Likewise.
23533         * modules/regex (Dependencies): Likewise.
23534         * modules/wcscasecmp (Dependencies): Likewise.
23535         * modules/wcsncasecmp (Dependencies): Likewise.
23536         * modules/wcwidth (Dependencies): Likewise.
23537
23538 2011-02-06  Bruno Haible  <bruno@clisp.org>
23539
23540         New module 'wcswidth'.
23541         * modules/wcswidth: New file.
23542         * lib/wchar.in.h (wcswidth): New declaration.
23543         * lib/wcswidth.c: New file.
23544         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23545         * m4/wcswidth.m4: New file.
23546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23548         REPLACE_WCSWIDTH.
23549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23550         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23551         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23552         * doc/posix-functions/wcswidth.texi: Mention the new module.
23553
23554 2011-02-06  Bruno Haible  <bruno@clisp.org>
23555
23556         New module 'wcstok'.
23557         * modules/wcstok: New file.
23558         * lib/wchar.in.h (wcstok): New declaration.
23559         * lib/wcstok.c: New file.
23560         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23561         * m4/wcstok.m4: New file.
23562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23565         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23566         * doc/posix-functions/wcstok.texi: Mention the new module.
23567
23568 2011-02-06  Bruno Haible  <bruno@clisp.org>
23569
23570         New module 'wcsstr'.
23571         * modules/wcsstr: New file.
23572         * lib/wchar.in.h (wcsstr): New declaration.
23573         * lib/wcsstr.c: New file.
23574         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23575         * m4/wcsstr.m4: New file.
23576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23579         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23580         * doc/posix-functions/wcsstr.texi: Mention the new module.
23581
23582 2011-02-06  Bruno Haible  <bruno@clisp.org>
23583
23584         New module 'wcspbrk'.
23585         * modules/wcspbrk: New file.
23586         * lib/wchar.in.h (wcspbrk): New declaration.
23587         * lib/wcspbrk.c: New file.
23588         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23589         * m4/wcspbrk.m4: New file.
23590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23593         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23594         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23595
23596 2011-02-06  Bruno Haible  <bruno@clisp.org>
23597
23598         New module 'wcsspn'.
23599         * modules/wcsspn: New file.
23600         * lib/wchar.in.h (wcsspn): New declaration.
23601         * lib/wcsspn.c: New file.
23602         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23603         * m4/wcsspn.m4: New file.
23604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23607         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23608         * doc/posix-functions/wcsspn.texi: Mention the new module.
23609
23610 2011-02-06  Bruno Haible  <bruno@clisp.org>
23611
23612         New module 'wcscspn'.
23613         * modules/wcscspn: New file.
23614         * lib/wchar.in.h (wcscspn): New declaration.
23615         * lib/wcscspn.c: New file.
23616         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23617         * m4/wcscspn.m4: New file.
23618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23621         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23622         * doc/posix-functions/wcscspn.texi: Mention the new module.
23623
23624 2011-02-06  Bruno Haible  <bruno@clisp.org>
23625
23626         New module 'wcsrchr'.
23627         * modules/wcsrchr: New file.
23628         * lib/wchar.in.h (wcsrchr): New declaration.
23629         * lib/wcsrchr.c: New file.
23630         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23631         * m4/wcsrchr.m4: New file.
23632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23635         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23636         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23637
23638 2011-02-06  Bruno Haible  <bruno@clisp.org>
23639
23640         New module 'wcschr'.
23641         * modules/wcschr: New file.
23642         * lib/wchar.in.h (wcschr): New declaration.
23643         * lib/wcschr.c: New file.
23644         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23645         * m4/wcschr.m4: New file.
23646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23649         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23650         * doc/posix-functions/wcschr.texi: Mention the new module.
23651
23652 2011-02-06  Bruno Haible  <bruno@clisp.org>
23653
23654         New module 'wcsdup'.
23655         * modules/wcsdup: New file.
23656         * lib/wchar.in.h (wcsdup): New declaration.
23657         * lib/wcsdup.c: New file.
23658         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23659         * m4/wcsdup.m4: New file.
23660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23663         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23664         * doc/posix-functions/wcsdup.texi: Mention the new module.
23665
23666 2011-02-06  Bruno Haible  <bruno@clisp.org>
23667
23668         New module 'wcsxfrm'.
23669         * modules/wcsxfrm: New file.
23670         * lib/wchar.in.h (wcsxfrm): New declaration.
23671         * lib/wcsxfrm.c: New file.
23672         * lib/wcsxfrm-impl.h: New file.
23673         * m4/wcsxfrm.m4: New file.
23674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23677         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23678         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23679
23680 2011-02-06  Bruno Haible  <bruno@clisp.org>
23681
23682         New module 'wcscoll'.
23683         * modules/wcscoll: New file.
23684         * lib/wchar.in.h (wcscoll): New declaration.
23685         * lib/wcscoll.c: New file.
23686         * lib/wcscoll-impl.h: New file.
23687         * m4/wcscoll.m4: New file.
23688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23691         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23692         * doc/posix-functions/wcscoll.texi: Mention the new module.
23693
23694 2011-02-06  Bruno Haible  <bruno@clisp.org>
23695
23696         New module 'wcsncasecmp'.
23697         * modules/wcsncasecmp: New file.
23698         * lib/wchar.in.h (wcsncasecmp): New declaration.
23699         * lib/wcsncasecmp.c: New file.
23700         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23701         * m4/wcsncasecmp.m4: New file.
23702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23705         HAVE_WCSNCASECMP.
23706         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23707         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23708
23709 2011-02-06  Bruno Haible  <bruno@clisp.org>
23710
23711         New module 'wcscasecmp'.
23712         * modules/wcscasecmp: New file.
23713         * lib/wchar.in.h (wcscasecmp): New declaration.
23714         * lib/wcscasecmp.c: New file.
23715         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23716         * m4/wcscasecmp.m4: New file.
23717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23720         HAVE_WCSCASECMP.
23721         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23722         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23723
23724 2011-02-05  Bruno Haible  <bruno@clisp.org>
23725
23726         New module 'wcsncmp'.
23727         * modules/wcsncmp: New file.
23728         * lib/wchar.in.h (wcsncmp): New declaration.
23729         * lib/wcsncmp.c: New file.
23730         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23731         * m4/wcsncmp.m4: New file.
23732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23735         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23736         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23737
23738 2011-02-05  Bruno Haible  <bruno@clisp.org>
23739
23740         New module 'wcscmp'.
23741         * modules/wcscmp: New file.
23742         * lib/wchar.in.h (wcscmp): New declaration.
23743         * lib/wcscmp.c: New file.
23744         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23745         * m4/wcscmp.m4: New file.
23746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23749         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23750         * doc/posix-functions/wcscmp.texi: Mention the new module.
23751
23752 2011-02-05  Bruno Haible  <bruno@clisp.org>
23753
23754         New module 'wcsncat'.
23755         * modules/wcsncat: New file.
23756         * lib/wchar.in.h (wcsncat): New declaration.
23757         * lib/wcsncat.c: New file.
23758         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23759         * m4/wcsncat.m4: New file.
23760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23763         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23764         * doc/posix-functions/wcsncat.texi: Mention the new module.
23765
23766 2011-02-05  Bruno Haible  <bruno@clisp.org>
23767
23768         New module 'wcscat'.
23769         * modules/wcscat: New file.
23770         * lib/wchar.in.h (wcscat): New declaration.
23771         * lib/wcscat.c: New file.
23772         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23773         * m4/wcscat.m4: New file.
23774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23777         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23778         * doc/posix-functions/wcscat.texi: Mention the new module.
23779
23780 2011-02-05  Bruno Haible  <bruno@clisp.org>
23781
23782         New module 'wcpncpy'.
23783         * modules/wcpncpy: New file.
23784         * lib/wchar.in.h (wcpncpy): New declaration.
23785         * lib/wcpncpy.c: New file.
23786         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23787         * m4/wcpncpy.m4: New file.
23788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23790         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23791         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23792         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23793
23794 2011-02-05  Bruno Haible  <bruno@clisp.org>
23795
23796         New module 'wcsncpy'.
23797         * modules/wcsncpy: New file.
23798         * lib/wchar.in.h (wcsncpy): New declaration.
23799         * lib/wcsncpy.c: New file.
23800         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23801         * m4/wcsncpy.m4: New file.
23802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23805         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23806         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23807
23808 2011-02-05  Bruno Haible  <bruno@clisp.org>
23809
23810         New module 'wcpcpy'.
23811         * modules/wcpcpy: New file.
23812         * lib/wchar.in.h (wcpcpy): New declaration.
23813         * lib/wcpcpy.c: New file.
23814         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23815         * m4/wcpcpy.m4: New file.
23816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23818         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23819         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23820         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23821
23822 2011-02-05  Bruno Haible  <bruno@clisp.org>
23823
23824         New module 'wcscpy'.
23825         * modules/wcscpy: New file.
23826         * lib/wchar.in.h (wcscpy): New declaration.
23827         * lib/wcscpy.c: New file.
23828         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23829         * m4/wcscpy.m4: New file.
23830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23833         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23834         * doc/posix-functions/wcscpy.texi: Mention the new module.
23835
23836 2011-02-05  Bruno Haible  <bruno@clisp.org>
23837
23838         New module 'wcsnlen'.
23839         * modules/wcsnlen: New file.
23840         * lib/wchar.in.h (wcsnlen): New declaration.
23841         * lib/wcsnlen.c: New file.
23842         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23843         * m4/wcsnlen.m4: New file.
23844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23847         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23848         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23849
23850 2011-02-05  Bruno Haible  <bruno@clisp.org>
23851
23852         New module 'wcslen'.
23853         * modules/wcslen: New file.
23854         * lib/wchar.in.h (wcslen): New declaration.
23855         * lib/wcslen.c: New file.
23856         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23857         * m4/wcslen.m4: New file.
23858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23861         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23862         * doc/posix-functions/wcslen.texi: Mention the new module.
23863
23864 2011-02-05  Bruno Haible  <bruno@clisp.org>
23865
23866         New module 'wmemset'.
23867         * modules/wmemset: New file.
23868         * lib/wchar.in.h (wmemset): New declaration.
23869         * lib/wmemset.c: New file.
23870         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23871         * m4/wmemset.m4: New file.
23872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23874         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23875         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23876         * doc/posix-functions/wmemset.texi: Mention the new module.
23877
23878 2011-02-05  Bruno Haible  <bruno@clisp.org>
23879
23880         New module 'wmemmove'.
23881         * modules/wmemmove: New file.
23882         * lib/wchar.in.h (wmemmove): New declaration.
23883         * lib/wmemmove.c: New file.
23884         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23885         * m4/wmemmove.m4: New file.
23886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23888         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23889         HAVE_WMEMMOVE.
23890         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23891         * doc/posix-functions/wmemmove.texi: Mention the new module.
23892
23893 2011-02-05  Bruno Haible  <bruno@clisp.org>
23894
23895         New module 'wmemcpy'.
23896         * modules/wmemcpy: New file.
23897         * lib/wchar.in.h (wmemcpy): New declaration.
23898         * lib/wmemcpy.c: New file.
23899         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23900         * m4/wmemcpy.m4: New file.
23901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23903         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23904         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23905         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23906
23907 2011-02-05  Bruno Haible  <bruno@clisp.org>
23908
23909         New module 'wmemcmp'.
23910         * modules/wmemcmp: New file.
23911         * lib/wchar.in.h (wmemcmp): New declaration.
23912         * lib/wmemcmp.c: New file.
23913         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23914         * m4/wmemcmp.m4: New file.
23915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23917         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23918         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23919         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23920
23921 2011-02-07  Jim Meyering  <meyering@redhat.com>
23922
23923         di-set, ino-map: new modules, from coreutils
23924         * lib/di-set.c: New file.
23925         * lib/di-set.h: Likewise.
23926         * lib/ino-map.c: Likewise.
23927         * lib/ino-map.h: Likewise.
23928         * modules/di-set: Likewise.
23929         * modules/di-set-tests: Likewise.
23930         * modules/ino-map: Likewise.
23931         * modules/ino-map-tests: Likewise.
23932         * tests/test-di-set.c: Likewise.
23933         * tests/test-ino-map.c: Likewise.
23934
23935 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23936
23937         getloadavg: merge minor changes from Emacs
23938
23939         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23940         (getloadavg): Use memset, not bzero.
23941
23942         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23943         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23944         clash (bug#86).
23945
23946 2010-11-14  Bruno Haible  <bruno@clisp.org>
23947
23948         Allow multiple gnulib generated replacements to coexist.
23949         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23950         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23951         * lib/langinfo.in.h (nl_item): Likewise.
23952         * lib/math.in.h (_NaN, NAN): Likewise.
23953         * lib/netdb.in.h (struct addrinfo): Likewise.
23954         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23955         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23956         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23957         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23958         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23959         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23960         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23961         pthread_mutexattr_init, pthread_mutexattr_settype,
23962         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23963         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23964         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23965         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23966         * lib/sched.in.h (struct sched_param): Likewise.
23967         * lib/se-selinux.in.h (security_class_t, security_context_t,
23968         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23969         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23970         lsetfilecon, fsetfilecon, security_check_context,
23971         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23972         Likewise.
23973         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23974         Likewise.
23975         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23976         _gl_function_taking_int_returning_void_t, union sigval,
23977         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23978         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23979         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23980         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23981         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23982         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23983         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23984         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23985         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23986         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23987         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23988         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23989         socklen_t, rpl_fd_isset): Likewise.
23990         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23991         * lib/sys_time.in.h (struct timeval): Likewise.
23992         * lib/sys_times.in.h (struct tms): Likewise.
23993         * lib/sys_utsname.in.h (struct utsname):
23994         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23995         * lib/unistd.in.h (getpagesize): Likewise.
23996         * lib/wchar.in.h (mbstate_t): Likewise.
23997         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23998         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23999         towlower, towupper): Likewise.
24000         Reported by Sam Steingold <sds@gnu.org>.
24001
24002 2011-02-05  Eric Blake  <eblake@redhat.com>
24003
24004         unsetenv: work around Haiku issues
24005         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24006         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24007
24008 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24009
24010         libposix: avoid calling error() within libposix
24011         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24012         is defined.
24013
24014 2011-02-05  Eric Blake  <eblake@redhat.com>
24015
24016         strerror_r-posix: port to cygwin
24017         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24018         implementation.
24019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24020         * tests/test-strerror_r.c (main): Fix test.
24021         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24022         issue.
24023
24024 2011-02-05  Bruno Haible  <bruno@clisp.org>
24025
24026         New module 'wmemchr'.
24027         * modules/wmemchr: New file.
24028         * lib/wchar.in.h (wmemchr): New declaration.
24029         * lib/wmemchr.c: New file.
24030         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24031         * m4/wmemchr.m4: New file.
24032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24034         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24035         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24036         * doc/posix-functions/wmemchr.texi: Mention the new module.
24037
24038 2011-02-04  Eric Blake  <eblake@redhat.com>
24039
24040         fdopendir: detect FreeBSD bug
24041         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24042         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24043
24044 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24045
24046         stdbool: do not define HAVE_STDBOOL_H
24047         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24048         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24049         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24050         imported from the latest Autoconf git.  It was motivated by Emacs,
24051         which uses gnulib but does not need HAVE_STDBOOL_H.
24052
24053 2011-02-04  Bruno Haible  <bruno@clisp.org>
24054
24055         wcsnrtombs: Prepare for new module wwcsnrtombs.
24056         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24057         * lib/wcsnrtombs.c: Include it.
24058         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24059
24060         wcsrtombs: Prepare for new module wwcsrtombs.
24061         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24062         * lib/wcsrtombs.c: Include it.
24063         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24064
24065         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24066         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24067         * lib/mbsnrtowcs.c: Include it.
24068         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24069
24070         mbsrtowcs: Prepare for new module mbsrtowwcs.
24071         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24072         * lib/mbsrtowcs.c: Include it.
24073         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24074
24075 2011-02-04  Bruno Haible  <bruno@clisp.org>
24076
24077         vasnprintf: Reduce use of malloc for small format strings.
24078         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24079         (arguments): Add room for the first 7 arguments.
24080         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24081         (char_directives, u8_directives, u16_directives, u32_directives): Add
24082         room for the first 7 directives.
24083         * lib/printf-parse.c: Include <string.h>.
24084         (PRINTF_PARSE): Change memory handling code so that it uses the first
24085         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24086         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24087         Reported by Pádraig Brady <P@draigbrady.com>.
24088
24089 2011-01-31  Eric Blake  <eblake@redhat.com>
24090
24091         dup2: work around Haiku bug
24092         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24093         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24094         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24095         * tests/test-dup2.c (main): Enhance test.
24096
24097 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24098
24099         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24100         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24101         declared by eglibc 2.11.2.
24102         * lib/stdio.in.h: Likewise.
24103
24104 2011-01-31  Eric Blake  <eblake@redhat.com>
24105
24106         ignore-value: add missing test dependency
24107         * tests/test-ignore-value.c: Revert previous change; stdio.h
24108         provides off_t.
24109         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24110
24111 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24112
24113         mktime: clarify long_int width checking
24114         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24115         the top level, to make it clearer that the assumption about
24116         long_int width is being checked.  See
24117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24118
24119 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24120
24121         ignore-value: Fix self-test.
24122         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24123
24124 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24125
24126         TYPE_MAXIMUM: avoid theoretically undefined behavior
24127         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24128         negative number, which the C Standard says has undefined behavior.
24129         In practice this is not a problem, but might as well do it by the book.
24130         Reported by Rich Felker and Eric Blake; see
24131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24132         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24133         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24135         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24136         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24137         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24138
24139         mktime: #undef mktime before #defining it
24140         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24141
24142         mktime: systematically normalize tm_isdst comparisons
24143         * lib/mktime.c (isdst_differ): New function.
24144         (__mktime_internal): Use it systematically for all isdst comparisons.
24145         This completes the fix for libc BZ #6723, and removes the need for
24146         normalizing tm_isdst.  See
24147         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24148         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24149
24150         mktime: fix some integer overflow issues and sidestep the rest
24151
24152         This was prompted by a bug report by Benjamin Lindner for MinGW
24153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24154         His bug is due to signed integer overflow (0 - INT_MIN), and I
24155         I scanned through mktime.c looking for other integer overflow
24156         problems, fixing all the bugs I found.
24157
24158         Although the C Standard says the resulting code is still not safe
24159         in the presence of integer overflow, in practice it should be good
24160         enough for all real-world two's-complement implementations, except
24161         for debugging environments that deliberately trap on integer
24162         overflow (e.g., gcc -ftrapv).
24163
24164         * lib/mktime.c (WRAPV): New macro.
24165         (SHR): Also check that long_int and time_t shift right in the
24166         usual way, before using the fast-but-unportable method.
24167         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24168         used.  The code already assumed two's complement, so there's
24169         no need to test for alternatives.  All uses removed.
24170         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24171         the C standard.  Problem reported by Rich Felker in
24172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24173         (twos_complement_arithmetic): Also check long_int and time_t.
24174         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24175         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24176         (__mktime_internal): Avoid integer overflow with unary subtraction
24177         in two instances where -1 - X is an adequate replacement for -X,
24178         since the calculations are approximate.
24179
24180 2011-01-29  Eric Blake  <eblake@redhat.com>
24181
24182         mktime: avoid infinite loop
24183         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24184         type; behavior is still undefined but portable to all known targets.
24185         Reported by Rich Felker.
24186
24187 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24188
24189         rename, unlink, same-inode: Relicense.
24190         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24191         * modules/unlink (License): Likewise.
24192         * modules/same-inode (License): Likewise.
24193
24194 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24195
24196         mktime: avoid problems on NetBSD 5 / i386
24197         * lib/mktime.c (long_int): New type.  This works around a problem
24198         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24199         but time_t is 64 bits, and where I expect the existing code is
24200         wrong in some cases.
24201         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24202         (ydhms_diff): Bring back the compile-time check for wide-enough
24203         year and yday.
24204
24205         mktime: fix misspelling in comment
24206         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24207         This merges all recent glibc changes of importance.
24208
24209 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24210
24211         move-if-change: cope with concurrent mv of identical file.
24212         * build-aux/move-if-change (CMPPROG): Accept environment
24213         variable as an override for `cmp'.
24214         (usage): Document CMPPROG.
24215         Adjust comparison to drop stdout.  Cope with failure of mv if
24216         the target file exists and is identical to the source, for
24217         parallel builds.
24218         Report from H.J. Lu against binutils in PR binutils/12283.
24219
24220 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24221
24222         * users.txt: Mention sharutils.
24223
24224 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24225
24226         * users.txt: Mention OATH Toolkit.
24227
24228 2011-01-27  Bruno Haible  <bruno@clisp.org>
24229
24230         Prepare for supporting FreeBSD 10.
24231         * build-aux/config.libpath: Remove handling of freebsd1*.
24232
24233 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24234
24235         Prepare for supporting FreeBSD 10.
24236         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24237         match FreeBSD 10.0.
24238
24239 2011-01-27  Bruno Haible  <bruno@clisp.org>
24240
24241         vma-iter, get-rusage-as: Add OpenBSD support.
24242         * modules/vma-iter (configure.ac): Test for mquery.
24243         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24244         * lib/vma-iter.c: Include <sys/mman.h>.
24245         (vma_iterate): Add an implementation based on mquery().
24246         * lib/resource-ext.h (get_rusage_as): Update comments.
24247         * lib/get-rusage-as.c: Likewise.
24248         * lib/get-rusage-data.c: Likewise.
24249
24250 2011-01-26  Karl Berry  <karl@gnu.org>
24251
24252         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24253         variables to make it easier to override the makeinfo program used.
24254
24255 2011-01-26  Eric Blake  <eblake@redhat.com>
24256
24257         fcntl: work around Haiku F_DUPFD bugs
24258         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24259         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24260         cloexec bit on duplication.
24261         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24262
24263 2011-01-26  Bruno Haible  <bruno@clisp.org>
24264
24265         Enable memory leak tests on AIX.
24266         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24267         * tests/test-fprintf-posix3.c (main): Likewise.
24268
24269 2011-01-26  Bruno Haible  <bruno@clisp.org>
24270
24271         Tests for module 'get-rusage-data'.
24272         * modules/get-rusage-data-tests: New file.
24273         * tests/test-get-rusage-data.c: New file.
24274
24275         New module 'get-rusage-data'.
24276         * lib/resource-ext.h (get_rusage_data): New declaration.
24277         * lib/get-rusage-data.c: New file.
24278         * modules/get-rusage-data: New file.
24279
24280 2011-01-25  Bruno Haible  <bruno@clisp.org>
24281
24282         get-rusage-as: Allow for easier testing.
24283         * lib/resource-ext.h (get_rusage_as): Add comment.
24284         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24285         (main): New function for interactive testing.
24286
24287 2011-01-25  Bruno Haible  <bruno@clisp.org>
24288
24289         vma-iter: Treat Haiku like BeOS.
24290         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24291         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24292
24293 2011-01-25  Eric Blake  <eblake@redhat.com>
24294
24295         c-stack: fix regression on cygwin when libsigsegv is present
24296         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24297
24298 2011-01-24  Bruno Haible  <bruno@clisp.org>
24299
24300         vma-iter: Avoid empty intervals.
24301         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24302         on an empty interval.
24303
24304 2011-01-24  Jim Meyering  <meyering@redhat.com>
24305
24306         u64: remove unnecessary #include
24307         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24308
24309 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24312         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24313
24314 2011-01-23  Bruno Haible  <bruno@clisp.org>
24315
24316         New module 'vma-iter'.
24317         * lib/vma-iter.h: New file.
24318         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24319         * modules/vma-iter: New file.
24320         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24321         for get_rusage_as_via_iterator.
24322         (vma_iterate_callback): New function.
24323         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24324         * modules/get-rusage-as (Depends-on): Add vma-iter.
24325
24326 2011-01-23  Bruno Haible  <bruno@clisp.org>
24327
24328         uninorm: Tweak includes.
24329         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24330         Reported by Jim Meyering.
24331
24332 2011-01-23  Bruno Haible  <bruno@clisp.org>
24333
24334         get-rusage-as: Improve on NetBSD.
24335         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24336         /proc, like on FreeBSD.
24337
24338 2011-01-23  Jim Meyering  <meyering@redhat.com>
24339
24340         xreadlink.h: remove unnecessary #include
24341         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24342
24343         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24344         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24345
24346 2011-01-23  Bruno Haible  <bruno@clisp.org>
24347
24348         get-rusage-as: Fix bug.
24349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24350         original limit when aborting the first loop.
24351
24352 2011-01-23  Bruno Haible  <bruno@clisp.org>
24353
24354         wctype: Ensure valid C syntax.
24355         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24356         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24357
24358 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24359
24360         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24361         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24362         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24363         as they are needed only for configure's test case.
24364         This removes two unnecessary symbols from config.h.
24365
24366         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24367         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24369         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24370         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24371         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24372         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24373         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24374         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24375         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24376         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24378         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24379         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24380         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24381         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24382         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24383         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24384
24385 2011-01-21  Eric Blake  <eblake@redhat.com>
24386
24387         maintainer-makefile: work with older git for submodule check
24388         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24389         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24390         Reported by Matthias Bolte.
24391
24392         bootstrap: minor portability fixes
24393         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24394         (usage): Omit leading capital and trailing . on help phrases, per
24395         GNU Coding Standards.
24396         (check_versions, top level): Prefix messages with script name.
24397
24398 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24399
24400         bootstrap: support --no-git option
24401         * build-aux/bootstrap: Add --no-git option, to be used when
24402         --gnulib-srcdir points to the exact desired checkout.
24403
24404 2011-01-21  Eric Blake  <eblake@redhat.com>
24405
24406         strerror_r-posix: work with glibc 2.13
24407         * lib/strerror_r.c (strerror_r): Fix return type.
24408
24409 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24410             Bruno Haible  <bruno@clisp.org>
24411
24412         uN_strstr: New unit tests.
24413         * modules/unistr/u8-strstr-tests: New file.
24414         * modules/unistr/u16-strstr-tests: New file.
24415         * modules/unistr/u32-strstr-tests: New file.
24416         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24417         * tests/unistr/test-u8-strstr.c: New file.
24418         * tests/unistr/test-u16-strstr.c: New file.
24419         * tests/unistr/test-u32-strstr.c: New file.
24420
24421 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24422             Bruno Haible  <bruno@clisp.org>
24423
24424         Make uN_strstr functions O(n) worst-case.
24425         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24426         16-bit and 32-bit unit cases, use the unibyte algorithm from
24427         lib/mbsstr.c.
24428         * lib/unistr/u8-strstr.c: Include <string.h>.
24429         (UNIT_IS_UINT8_T): New macro.
24430         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24431         (U_STRLEN, U_STRNLEN): New macros.
24432         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24433         (U_STRLEN, U_STRNLEN): New macros.
24434         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24435         (configure.ac): Update required libunistring version.
24436         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24437         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24438         malloca.
24439         (configure.ac): Update required libunistring version.
24440         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24441         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24442         malloca.
24443         (configure.ac): Update required libunistring version.
24444
24445 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24446             Bruno Haible  <bruno@clisp.org>
24447
24448         Prepare for faster uN_strstr functions.
24449         * lib/str-kmp.h: Support definable UNITs.
24450         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24451         needle_len argument.
24452         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24453         * lib/mbscasestr.c (mbscasestr): Likewise.
24454
24455 2011-01-21  Pádraig Brady <P@draigBrady.com>
24456
24457         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24458         * tests/test-malloca.c (main): Unset the environment variable
24459         to greatly speed up the test.
24460         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24461         * modules/malloca-tests: Depend on unsetenv.
24462
24463 2011-01-21  Pádraig Brady <P@draigBrady.com>
24464
24465         ignore-value: remove stdint dependency
24466         * lib/ignore-value.h: Remove <stdint.h>
24467         * modules/ignore-value: Remove stdint dependency.
24468
24469 2011-01-21  Jim Meyering  <meyering@redhat.com>
24470
24471         maint.mk: adjust variable name to be consistent with other gl_ vars
24472         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24473         to be lower case.
24474
24475 2011-01-20  Jim Meyering  <meyering@redhat.com>
24476
24477         maint.mk: make "check" depend on public-submodule-commit by default
24478         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24479
24480 2011-01-20  Bruno Haible  <bruno@clisp.org>
24481
24482         mbfile, mbiter: Complete change from 2008-12-21.
24483         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24484         * m4/mbiter.m4 (gl_MBITER): Likewise.
24485
24486 2011-01-20  Jim Meyering  <meyering@redhat.com>
24487
24488         init.sh: insert space between each function name and "()"
24489         * tests/init.sh: Make it a little easier to see that a function's
24490         name is "warn_", and not "warn" when looking at the first part of
24491         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24492
24493 2011-01-20  Jim Meyering  <meyering@redhat.com>
24494
24495         mountlist: clean up code formatting
24496         * lib/mountlist.c (read_file_system_list): Split a long line,
24497         correct bracing style, use NULL in place of "(struct statfs *)0",
24498         don't parenthesize return value, add spaces around "=" and after
24499         ";-in-for-stmt".
24500
24501 2011-01-14  Markus Duft <mduft@gentoo.org>
24502
24503         mountlist: add support for Interix
24504         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24505         Apply statvfs to all entries of /dev/fs.
24506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24507         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24508
24509 2011-01-20  Jim Meyering  <meyering@redhat.com>
24510
24511         maint.mk: improve the public-submodule-commit rule
24512         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24513         to suppress printing of its commands... unless V=1.
24514         Add git submodule's --quiet option to suppress printing of e.g.,
24515         "Entering gnulib" output.
24516         "cd" into $(srcdir) before running git submodule.
24517
24518 2011-01-20  Bruno Haible  <bruno@clisp.org>
24519
24520         include_next: Fix bug introduced on 2011-01-18.
24521         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24522         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24523         ac_cv_header_... variable if the second argument is not 'check'.
24524         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24525         gl_NEXT_HEADERS_INTERNAL.
24526
24527 2011-01-20  Bruno Haible  <bruno@clisp.org>
24528
24529         Allow the user to avoid the GNULIB_TEST_* macros.
24530         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24531         Suggested by Paul Eggert.
24532
24533 2011-01-14  Jim Meyering  <meyering@redhat.com>
24534
24535         bootstrap: avoid failure when there is no .gitmodules file
24536         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24537         has been assigned to, even when its value is the empty string.
24538         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24539         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24540         Reported by John W. Eaton <jwe@gnu.org>.
24541
24542 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24543
24544         assume <ctype.h>, ..., <time.h> exist
24545         For years gnulib has been assuming the existence of the headers
24546         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24547         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24548         them, since they don't appear to be needed.
24549         * README (Portability guidelines): Document this.
24550         * lib/flock.c: Assume <fcntl.h> exists.
24551         * lib/regex_internal.h: Assume <locale.h> exists.
24552         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24553         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24554         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24555         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24556         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24557         * m4/regex.m4 (gl_REGEX): Likewise.
24558         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24559         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24560         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24561         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24562         * tests/test-argp.c: Likewise.
24563         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24564
24565         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24566         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24567         AA_APPLE_UNIVERSAL_BUILD.  See
24568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24569         * NEWS: Document this.
24570
24571 2011-01-19  Eric Blake  <eblake@redhat.com>
24572
24573         c-stack: assume stack overflow if SA_SIGINFO unsupported
24574         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24575         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24576         sigaction will work.
24577         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24578         behavior match Linux.
24579         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24580
24581         stdbool-tests: accommodate Haiku
24582         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24583
24584         binary-io: fix O_TEXT on Haiku
24585         * modules/binary-io (Depends-on): Add fcntl-h.
24586         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24587         than blindly undefining O_TEXT.
24588         Reported by Scott McCreary.
24589
24590 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24591
24592         include_next: do not check for standard headers like stddef.h
24593
24594         I found this problem when modifying Emacs to use gnulib.
24595         I noticed that it added HAVE_STDDEF_H to config.h, even though
24596         gnulib always assumes <stddef.h> exists as per README and this
24597         symbol is unnecessary.
24598         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24599         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24600         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24601         faster for headers like stddef.h that are known to exist.
24602         (gl_CHECK_NEXT_HEADERS): Use it.
24603         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24604         rather than gl_CHECK_NEXT_HEADERS.
24605         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24606         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24607
24608 2011-01-18  Eric Blake  <eblake@redhat.com>
24609
24610         ansi-c++-opt: skip C++ dependency style if C++ is unused
24611         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24612         tests when we know C++ compilation is not desired.
24613         Reported by Scott McCreary.
24614
24615 2011-01-18  Bruno Haible  <bruno@clisp.org>
24616
24617         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24618         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24619         (main): Perform test also when getrlimit and setrlimit don't exist or
24620         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24621         limiting the address space size using setrlimit, compare the address
24622         space size before and after the the test.
24623         * tests/test-dprintf-posix2.c: Likewise.
24624         * tests/test-fprintf-posix3.sh: Update skip messages.
24625         * tests/test-dprintf-posix2.sh: Likewise.
24626         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24627         * modules/dprintf-posix-tests (Depends-on): Likewise.
24628         Reported by Bruce Korb <bkorb@gnu.org> and
24629         Gary V. Vaughan <gary@gnu.org>.
24630
24631 2011-01-18  Bruno Haible  <bruno@clisp.org>
24632
24633         get-rusage-as: Improvement for Cygwin.
24634         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24635         areas that are merely reserved.
24636
24637 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24638
24639         strftime: remove dependencies on multibyte modules
24640
24641         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24642         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24643         only if __osf__ is defined, and I suspect OSF doesn't need these
24644         other modules.  If my guess is wrong, we'll need to come up with a
24645         variant of strftime that doesn't need the multibyte modules.
24646
24647         I discovered this problem when attempting modify Emacs to use the
24648         strftime module.  With the previous gnulib, this caused Emacs to
24649         need 31 new files, ranging from lib/config.charset to
24650         m4/wint_t.m4.  This was overkill and I expect would be offputting
24651         to the Emacs maintainers.  After this change, only 6 new files are
24652         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24653         stdbool.m4, and tm_gmtoff.m4.
24654
24655         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24656         Suggested by Bruno Haible in
24657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24658         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24659         and do not check for wchar.h.
24660         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24661         (Depends-on): Remove mbrlen, mbsinit, wchar.
24662
24663 2011-01-18  Bruno Haible  <bruno@clisp.org>
24664
24665         Tests for module 'get-rusage-as'.
24666         * modules/get-rusage-as-tests: New file.
24667         * tests/test-get-rusage-as.c: New file.
24668
24669         New module 'get-rusage-as'.
24670         * modules/get-rusage-as: New file.
24671         * lib/resource-ext.h: New file.
24672         * lib/get-rusage-as.c: New file.
24673
24674 2011-01-17  Eric Blake  <eblake@redhat.com>
24675
24676         sigaction: relax license from LGPLv3+ to LGPLv2+
24677         * modules/sigaction (License): Relax to LGPLv2+.
24678
24679 2011-01-14  Bruno Haible  <bruno@clisp.org>
24680
24681         filemode: Make function declarations usable in C++ mode.
24682         * lib/filemode.h: Enclose function declarations in extern "C" block.
24683         Reported by John W. Eaton <jwe@gnu.org>.
24684
24685 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24686
24687         save-cwd: no longer include "xgetcwd.h"
24688         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24689         This avoids a compilation failure in projects that use save-cwd
24690         without also using the xgetcwd module.
24691
24692 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24693
24694         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24695         This is so that a program like Emacs, which needs only dtoastr,
24696         does not have to bother with distributing and compiling ftoastr
24697         and ldtoastr.
24698         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24699         * modules/dtoastr, modules/ldtoastr: New files.
24700         * modules/ftoastr: Now works just for 'float'.
24701         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24702         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24703         dtoastr.c, ldtoastr.c.
24704
24705 2011-01-11  Jim Meyering  <meyering@redhat.com>
24706
24707         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24708         There is no need to work around the lack of the fchdir function,
24709         since gnulib can now provide a replacement when required.
24710         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24711         * modules/save-cwd (Depends-on): Add fchdir.
24712
24713 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24714
24715         openat, save-cwd: avoid xmalloc
24716
24717         This removes a direct (but undocumented) dependency of openat on
24718         xalloc, along with an indirect dependency via save-cwd.  It also
24719         removes a dependency of save-cwd on xgetcwd, and thereby
24720         indirectly on xalloc.  This change causes the openat substitute
24721         to fall back on save_cwd when memory is tight, and for save_cwd to
24722         fail instead of dying when memory is tight, but that's good enough.
24723         Problem and initial idea for fix reported by Bastien Roucaries in
24724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24725
24726         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24727         xalloc.h (for xmalloc).
24728         (openat_proc_name): Use malloc, not xmalloc.
24729         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24730         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24731
24732         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24733         This avoids heap allocation for file names whose lengths are in
24734         the range 512..1023, with the upper bound increasing to at most
24735         4031 depending on the platform's PATH_MAX.  (We do not want
24736         pathmax.h here as it might supply a non-constant PATH_MAX.)
24737         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24738         Perhaps they should be moved to malloca.h?
24739         (OPENAT_BUFFER_SIZE): Use them.
24740
24741 2011-01-10  Bruno Haible  <bruno@clisp.org>
24742
24743         doc: Update users.txt.
24744         * users.txt: Add recutils.
24745
24746 2011-01-09  Karl Berry  <karl@gnu.org>
24747
24748         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24749
24750         * doc/configmake.texi: New file.
24751         * doc/gnulib.texi: Include it.
24752         * modules/configmake: Move documentation from here.
24753
24754 2011-01-09  Bruno Haible  <bruno@clisp.org>
24755
24756         Update to Unicode 6.0.0.
24757         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24758         (get_lbp): Update for Unicode 6.0.0.
24759         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24760         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24761         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24762         U+11001, U+11038..U+11046. Remove U+06DE.
24763         (uc_width): Fix bounds of planes.
24764         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24765         lib/uniwidth/width.c.
24766         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24767         trailing whitespace removed.
24768         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24769         without comments, but with the original copyright notice.
24770         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24771         * lib/unicase/ignorable.h: Likewise.
24772         * lib/unicase/tocasefold.h: Likewise.
24773         * lib/unicase/tolower.h: Likewise.
24774         * lib/unicase/totitle.h: Likewise.
24775         * lib/unicase/toupper.h: Likewise.
24776         * lib/unictype/bidi_of.h: Likewise.
24777         * lib/unictype/blocks.h: Likewise.
24778         * lib/unictype/categ_C.h: Likewise.
24779         * lib/unictype/categ_Cn.h: Likewise.
24780         * lib/unictype/categ_L.h: Likewise.
24781         * lib/unictype/categ_Ll.h: Likewise.
24782         * lib/unictype/categ_Lm.h: Likewise.
24783         * lib/unictype/categ_Lo.h: Likewise.
24784         * lib/unictype/categ_Lu.h: Likewise.
24785         * lib/unictype/categ_M.h: Likewise.
24786         * lib/unictype/categ_Mc.h: Likewise.
24787         * lib/unictype/categ_Me.h: Likewise.
24788         * lib/unictype/categ_Mn.h: Likewise.
24789         * lib/unictype/categ_N.h: Likewise.
24790         * lib/unictype/categ_Nd.h: Likewise.
24791         * lib/unictype/categ_No.h: Likewise.
24792         * lib/unictype/categ_P.h: Likewise.
24793         * lib/unictype/categ_Po.h: Likewise.
24794         * lib/unictype/categ_S.h: Likewise.
24795         * lib/unictype/categ_Sc.h: Likewise.
24796         * lib/unictype/categ_Sk.h: Likewise.
24797         * lib/unictype/categ_Sm.h: Likewise.
24798         * lib/unictype/categ_So.h: Likewise.
24799         * lib/unictype/categ_of.h: Likewise.
24800         * lib/unictype/combining.h: Likewise.
24801         * lib/unictype/ctype_alnum.h: Likewise.
24802         * lib/unictype/ctype_alpha.h: Likewise.
24803         * lib/unictype/ctype_graph.h: Likewise.
24804         * lib/unictype/ctype_lower.h: Likewise.
24805         * lib/unictype/ctype_print.h: Likewise.
24806         * lib/unictype/ctype_punct.h: Likewise.
24807         * lib/unictype/ctype_upper.h: Likewise.
24808         * lib/unictype/decdigit.h: Likewise.
24809         * lib/unictype/digit.h: Likewise.
24810         * lib/unictype/numeric.h: Likewise.
24811         * lib/unictype/pr_alphabetic.h: Likewise.
24812         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24813         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24814         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24815         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24816         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24817         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24818         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24819         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24820         * lib/unictype/pr_case_ignorable.h: Likewise.
24821         * lib/unictype/pr_cased.h: Likewise.
24822         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24823         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24824         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24825         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24826         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24827         * lib/unictype/pr_combining.h: Likewise.
24828         * lib/unictype/pr_composite.h: Likewise.
24829         * lib/unictype/pr_currency_symbol.h: Likewise.
24830         * lib/unictype/pr_decimal_digit.h: Likewise.
24831         * lib/unictype/pr_deprecated.h: Likewise.
24832         * lib/unictype/pr_format_control.h: Likewise.
24833         * lib/unictype/pr_grapheme_base.h: Likewise.
24834         * lib/unictype/pr_grapheme_extend.h: Likewise.
24835         * lib/unictype/pr_grapheme_link.h: Likewise.
24836         * lib/unictype/pr_id_continue.h: Likewise.
24837         * lib/unictype/pr_id_start.h: Likewise.
24838         * lib/unictype/pr_ideographic.h: Likewise.
24839         * lib/unictype/pr_lowercase.h: Likewise.
24840         * lib/unictype/pr_math.h: Likewise.
24841         * lib/unictype/pr_numeric.h: Likewise.
24842         * lib/unictype/pr_other_alphabetic.h: Likewise.
24843         * lib/unictype/pr_other_id_continue.h: Likewise.
24844         * lib/unictype/pr_other_math.h: Likewise.
24845         * lib/unictype/pr_punctuation.h: Likewise.
24846         * lib/unictype/pr_sentence_terminal.h: Likewise.
24847         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24848         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24849         * lib/unictype/pr_unified_ideograph.h: Likewise.
24850         * lib/unictype/pr_uppercase.h: Likewise.
24851         * lib/unictype/pr_xid_continue.h: Likewise.
24852         * lib/unictype/pr_xid_start.h: Likewise.
24853         * lib/unictype/scripts.h: Likewise.
24854         * lib/unictype/scripts_byname.gperf: Likewise.
24855         * lib/unictype/sy_java_ident.h: Likewise.
24856         * lib/unigbrk/gbrkprop.h: Likewise.
24857         * lib/unilbrk/lbrkprop1.h: Likewise.
24858         * lib/unilbrk/lbrkprop2.h: Likewise.
24859         * lib/uninorm/decomposition-table2.h: Likewise.
24860         * lib/uniwbrk/wbrkprop.h: Likewise.
24861         * tests/unicase/test-cased.c: Likewise.
24862         * tests/unicase/test-ignorable.c: Likewise.
24863         * tests/unicase/test-uc_tolower.c: Likewise.
24864         * tests/unicase/test-uc_totitle.c: Likewise.
24865         * tests/unicase/test-uc_toupper.c: Likewise.
24866         * tests/unictype/test-categ_C.c: Likewise.
24867         * tests/unictype/test-categ_Cn.c: Likewise.
24868         * tests/unictype/test-categ_L.c: Likewise.
24869         * tests/unictype/test-categ_Ll.c: Likewise.
24870         * tests/unictype/test-categ_Lm.c: Likewise.
24871         * tests/unictype/test-categ_Lo.c: Likewise.
24872         * tests/unictype/test-categ_Lu.c: Likewise.
24873         * tests/unictype/test-categ_M.c: Likewise.
24874         * tests/unictype/test-categ_Mc.c: Likewise.
24875         * tests/unictype/test-categ_Me.c: Likewise.
24876         * tests/unictype/test-categ_Mn.c: Likewise.
24877         * tests/unictype/test-categ_N.c: Likewise.
24878         * tests/unictype/test-categ_Nd.c: Likewise.
24879         * tests/unictype/test-categ_No.c: Likewise.
24880         * tests/unictype/test-categ_P.c: Likewise.
24881         * tests/unictype/test-categ_Po.c: Likewise.
24882         * tests/unictype/test-categ_S.c: Likewise.
24883         * tests/unictype/test-categ_Sc.c: Likewise.
24884         * tests/unictype/test-categ_Sk.c: Likewise.
24885         * tests/unictype/test-categ_Sm.c: Likewise.
24886         * tests/unictype/test-categ_So.c: Likewise.
24887         * tests/unictype/test-ctype_alnum.c: Likewise.
24888         * tests/unictype/test-ctype_alpha.c: Likewise.
24889         * tests/unictype/test-ctype_graph.c: Likewise.
24890         * tests/unictype/test-ctype_lower.c: Likewise.
24891         * tests/unictype/test-ctype_print.c: Likewise.
24892         * tests/unictype/test-ctype_punct.c: Likewise.
24893         * tests/unictype/test-ctype_upper.c: Likewise.
24894         * tests/unictype/test-decdigit.h: Likewise.
24895         * tests/unictype/test-digit.h: Likewise.
24896         * tests/unictype/test-numeric.h: Likewise.
24897         * tests/unictype/test-pr_alphabetic.c: Likewise.
24898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24899         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24900         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24901         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24902         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24903         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24905         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24906         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24907         * tests/unictype/test-pr_cased.c: Likewise.
24908         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24909         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24910         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24911         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24912         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24913         * tests/unictype/test-pr_combining.c: Likewise.
24914         * tests/unictype/test-pr_composite.c: Likewise.
24915         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24916         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24917         * tests/unictype/test-pr_deprecated.c: Likewise.
24918         * tests/unictype/test-pr_format_control.c: Likewise.
24919         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24920         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24921         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24922         * tests/unictype/test-pr_id_continue.c: Likewise.
24923         * tests/unictype/test-pr_id_start.c: Likewise.
24924         * tests/unictype/test-pr_ideographic.c: Likewise.
24925         * tests/unictype/test-pr_lowercase.c: Likewise.
24926         * tests/unictype/test-pr_math.c: Likewise.
24927         * tests/unictype/test-pr_numeric.c: Likewise.
24928         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24929         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24930         * tests/unictype/test-pr_other_math.c: Likewise.
24931         * tests/unictype/test-pr_punctuation.c: Likewise.
24932         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24933         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24934         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24935         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24936         * tests/unictype/test-pr_uppercase.c: Likewise.
24937         * tests/unictype/test-pr_xid_continue.c: Likewise.
24938         * tests/unictype/test-pr_xid_start.c: Likewise.
24939         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24940         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24941         changes.
24942         * lib/unictype/categ_Cc.h: Likewise.
24943         * lib/unictype/categ_Cf.h: Likewise.
24944         * lib/unictype/categ_Co.h: Likewise.
24945         * lib/unictype/categ_Cs.h: Likewise.
24946         * lib/unictype/categ_Lt.h: Likewise.
24947         * lib/unictype/categ_Nl.h: Likewise.
24948         * lib/unictype/categ_Pc.h: Likewise.
24949         * lib/unictype/categ_Pd.h: Likewise.
24950         * lib/unictype/categ_Pe.h: Likewise.
24951         * lib/unictype/categ_Pf.h: Likewise.
24952         * lib/unictype/categ_Pi.h: Likewise.
24953         * lib/unictype/categ_Ps.h: Likewise.
24954         * lib/unictype/categ_Z.h: Likewise.
24955         * lib/unictype/categ_Zl.h: Likewise.
24956         * lib/unictype/categ_Zp.h: Likewise.
24957         * lib/unictype/categ_Zs.h: Likewise.
24958         * lib/unictype/ctype_blank.h: Likewise.
24959         * lib/unictype/ctype_cntrl.h: Likewise.
24960         * lib/unictype/ctype_digit.h: Likewise.
24961         * lib/unictype/ctype_space.h: Likewise.
24962         * lib/unictype/ctype_xdigit.h: Likewise.
24963         * lib/unictype/mirror.h: Likewise.
24964         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24965         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24966         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24967         * lib/unictype/pr_bidi_control.h: Likewise.
24968         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24969         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24970         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24971         * lib/unictype/pr_bidi_pdf.h: Likewise.
24972         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24973         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24974         * lib/unictype/pr_dash.h: Likewise.
24975         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24976         * lib/unictype/pr_diacritic.h: Likewise.
24977         * lib/unictype/pr_extender.h: Likewise.
24978         * lib/unictype/pr_hex_digit.h: Likewise.
24979         * lib/unictype/pr_hyphen.h: Likewise.
24980         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24981         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24982         * lib/unictype/pr_ignorable_control.h: Likewise.
24983         * lib/unictype/pr_iso_control.h: Likewise.
24984         * lib/unictype/pr_join_control.h: Likewise.
24985         * lib/unictype/pr_left_of_pair.h: Likewise.
24986         * lib/unictype/pr_line_separator.h: Likewise.
24987         * lib/unictype/pr_logical_order_exception.h: Likewise.
24988         * lib/unictype/pr_non_break.h: Likewise.
24989         * lib/unictype/pr_not_a_character.h: Likewise.
24990         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24991         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24992         * lib/unictype/pr_other_id_start.h: Likewise.
24993         * lib/unictype/pr_other_lowercase.h: Likewise.
24994         * lib/unictype/pr_other_uppercase.h: Likewise.
24995         * lib/unictype/pr_paired_punctuation.h: Likewise.
24996         * lib/unictype/pr_paragraph_separator.h: Likewise.
24997         * lib/unictype/pr_pattern_syntax.h: Likewise.
24998         * lib/unictype/pr_pattern_white_space.h: Likewise.
24999         * lib/unictype/pr_private_use.h: Likewise.
25000         * lib/unictype/pr_quotation_mark.h: Likewise.
25001         * lib/unictype/pr_radical.h: Likewise.
25002         * lib/unictype/pr_soft_dotted.h: Likewise.
25003         * lib/unictype/pr_space.h: Likewise.
25004         * lib/unictype/pr_titlecase.h: Likewise.
25005         * lib/unictype/pr_variation_selector.h: Likewise.
25006         * lib/unictype/pr_white_space.h: Likewise.
25007         * lib/unictype/pr_zero_width.h: Likewise.
25008         * lib/unictype/sy_c_ident.h: Likewise.
25009         * lib/unictype/sy_c_whitespace.h: Likewise.
25010         * lib/unictype/sy_java_whitespace.h: Likewise.
25011         * lib/uninorm/composition-table.gperf: Likewise.
25012         * lib/uninorm/decomposition-table1.h: Likewise.
25013         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25014         LB8.
25015         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25016         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25017         * modules/unictype/*: Bump version number of expected libunistring
25018         version.
25019
25020 2011-01-09  Bruno Haible  <bruno@clisp.org>
25021
25022         Update to Unicode 5.2.0.
25023         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25024         trailing whitespace removed.
25025
25026 2011-01-09  Bruno Haible  <bruno@clisp.org>
25027
25028         New Unicode character properties, from Unicode 5.2.0.
25029         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25030         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25031         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25032         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25033         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25034         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25035         uc_is_property_cased, uc_is_property_case_ignorable,
25036         uc_is_property_changes_when_lowercased,
25037         uc_is_property_changes_when_uppercased,
25038         uc_is_property_changes_when_titlecased,
25039         uc_is_property_changes_when_casefolded,
25040         uc_is_property_changes_when_casemapped): New declarations.
25041         * lib/unictype/pr_byname.gperf: Add the new properties.
25042         * modules/unictype/property-byname (Depends-on): Depend on the new
25043         properties modules.
25044         * modules/unictype/property-all (Depends-on): Likewise.
25045         * MODULES.html.sh (Unicode string functions): Add
25046         unictype/property-case-ignorable, unictype/property-cased,
25047         unictype/property-changes-when-casefolded,
25048         unictype/property-changes-when-casemapped,
25049         unictype/property-changes-when-lowercased,
25050         unictype/property-changes-when-titlecased,
25051         unictype/property-changes-when-uppercased.
25052
25053         New module 'unictype/property-changes-when-casemapped'.
25054         * modules/unictype/property-changes-when-casemapped: New file.
25055         * lib/unictype/pr_changes_when_casemapped.c: New file.
25056         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25057         generated by gen-uni-tables.
25058         * modules/unictype/property-changes-when-casemapped-tests: New file.
25059         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25060         automatically generated by gen-uni-tables.
25061
25062         New module 'unictype/property-changes-when-casefolded'.
25063         * modules/unictype/property-changes-when-casefolded: New file.
25064         * lib/unictype/pr_changes_when_casefolded.c: New file.
25065         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25066         generated by gen-uni-tables.
25067         * modules/unictype/property-changes-when-casefolded-tests: New file.
25068         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25069         automatically generated by gen-uni-tables.
25070
25071         New module 'unictype/property-changes-when-titlecased'.
25072         * modules/unictype/property-changes-when-titlecased: New file.
25073         * lib/unictype/pr_changes_when_titlecased.c: New file.
25074         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25075         generated by gen-uni-tables.
25076         * modules/unictype/property-changes-when-titlecased-tests: New file.
25077         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25078         automatically generated by gen-uni-tables.
25079
25080         New module 'unictype/property-changes-when-uppercased'.
25081         * modules/unictype/property-changes-when-uppercased: New file.
25082         * lib/unictype/pr_changes_when_uppercased.c: New file.
25083         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25084         generated by gen-uni-tables.
25085         * modules/unictype/property-changes-when-uppercased-tests: New file.
25086         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25087         automatically generated by gen-uni-tables.
25088
25089         New module 'unictype/property-changes-when-lowercased'.
25090         * modules/unictype/property-changes-when-lowercased: New file.
25091         * lib/unictype/pr_changes_when_lowercased.c: New file.
25092         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25093         generated by gen-uni-tables.
25094         * modules/unictype/property-changes-when-lowercased-tests: New file.
25095         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25096         automatically generated by gen-uni-tables.
25097
25098         New module 'unictype/property-case-ignorable'.
25099         * modules/unictype/property-case-ignorable: New file.
25100         * lib/unictype/pr_case_ignorable.c: New file.
25101         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25102         by gen-uni-tables.
25103         * modules/unictype/property-case-ignorable-tests: New file.
25104         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25105         generated by gen-uni-tables.
25106
25107         New module 'unictype/property-cased'.
25108         * modules/unictype/property-cased: New file.
25109         * lib/unictype/pr_cased.c: New file.
25110         * lib/unictype/pr_cased.h: New file, automatically generated by
25111         gen-uni-tables.
25112         * modules/unictype/property-cased-tests: New file.
25113         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25114         gen-uni-tables.
25115
25116 2011-01-09  Bruno Haible  <bruno@clisp.org>
25117
25118         Update to Unicode 5.2.0.
25119         * lib/gen-uni-tables.c (output_predicate, output_category,
25120         output_combclass, output_bidi_category, output_decimal_digit_test,
25121         output_decimal_digit, output_digit_test, output_digit,
25122         output_numeric_test, output_numeric, output_mirror, output_scripts,
25123         output_scripts_byname, output_blocks, output_ident_category): Fix
25124         comment header.
25125         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25126         get_wbp.
25127         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25128         items.
25129         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25130         Changes_When_Lowercased, Changes_When_Uppercased,
25131         Changes_When_Titlecased, Changes_When_Casefolded,
25132         Changes_When_Casemapped.
25133         (is_property_alphabetic, is_property_default_ignorable_code_point):
25134         Update for Unicode 5.2.0.
25135         (is_property_cased, is_property_case_ignorable,
25136         is_property_changes_when_lowercased,
25137         is_property_changes_when_uppercased,
25138         is_property_changes_when_titlecased,
25139         is_property_changes_when_casefolded,
25140         is_property_changes_when_casemapped): New functions.
25141         (output_properties): Output also the properties cased, case_ignorable,
25142         changes_when_lowercased, changes_when_uppercased,
25143         changes_when_titlecased, changes_when_casefolded,
25144         changes_when_casemapped.
25145         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25146         Unicode TR#11 revision 17 -> 19.
25147         (LBP_CP): New enumeration value.
25148         (LBP_*): Adjust values accordingly.
25149         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25150         TR#14 revision 22 -> 24.
25151         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25152         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25153         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25154         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25155         is_WBP_MIDLETTER.
25156         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25157         the code1 and code2 of each composition rule.
25158         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25159         * lib/unicase/ignorable.h: Likewise.
25160         * lib/unicase/tocasefold.h: Likewise.
25161         * lib/unicase/tolower.h: Likewise.
25162         * lib/unicase/totitle.h: Likewise.
25163         * lib/unicase/toupper.h: Likewise.
25164         * lib/unictype/bidi_of.h: Likewise.
25165         * lib/unictype/blocks.h: Likewise.
25166         * lib/unictype/categ_C.h: Likewise.
25167         * lib/unictype/categ_Cf.h: Likewise.
25168         * lib/unictype/categ_Cn.h: Likewise.
25169         * lib/unictype/categ_L.h: Likewise.
25170         * lib/unictype/categ_Ll.h: Likewise.
25171         * lib/unictype/categ_Lm.h: Likewise.
25172         * lib/unictype/categ_Lo.h: Likewise.
25173         * lib/unictype/categ_Lu.h: Likewise.
25174         * lib/unictype/categ_M.h: Likewise.
25175         * lib/unictype/categ_Mc.h: Likewise.
25176         * lib/unictype/categ_Mn.h: Likewise.
25177         * lib/unictype/categ_N.h: Likewise.
25178         * lib/unictype/categ_Nd.h: Likewise.
25179         * lib/unictype/categ_Nl.h: Likewise.
25180         * lib/unictype/categ_No.h: Likewise.
25181         * lib/unictype/categ_P.h: Likewise.
25182         * lib/unictype/categ_Pd.h: Likewise.
25183         * lib/unictype/categ_Po.h: Likewise.
25184         * lib/unictype/categ_S.h: Likewise.
25185         * lib/unictype/categ_Sc.h: Likewise.
25186         * lib/unictype/categ_So.h: Likewise.
25187         * lib/unictype/categ_of.h: Likewise.
25188         * lib/unictype/combining.h: Likewise.
25189         * lib/unictype/ctype_alnum.h: Likewise.
25190         * lib/unictype/ctype_alpha.h: Likewise.
25191         * lib/unictype/ctype_graph.h: Likewise.
25192         * lib/unictype/ctype_lower.h: Likewise.
25193         * lib/unictype/ctype_print.h: Likewise.
25194         * lib/unictype/ctype_punct.h: Likewise.
25195         * lib/unictype/ctype_upper.h: Likewise.
25196         * lib/unictype/decdigit.h: Likewise.
25197         * lib/unictype/digit.h: Likewise.
25198         * lib/unictype/numeric.h: Likewise.
25199         * lib/unictype/pr_alphabetic.h: Likewise.
25200         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25201         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25202         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25203         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25204         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25205         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25206         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25207         * lib/unictype/pr_combining.h: Likewise.
25208         * lib/unictype/pr_composite.h: Likewise.
25209         * lib/unictype/pr_currency_symbol.h: Likewise.
25210         * lib/unictype/pr_dash.h: Likewise.
25211         * lib/unictype/pr_decimal_digit.h: Likewise.
25212         * lib/unictype/pr_deprecated.h: Likewise.
25213         * lib/unictype/pr_diacritic.h: Likewise.
25214         * lib/unictype/pr_extender.h: Likewise.
25215         * lib/unictype/pr_grapheme_base.h: Likewise.
25216         * lib/unictype/pr_grapheme_extend.h: Likewise.
25217         * lib/unictype/pr_grapheme_link.h: Likewise.
25218         * lib/unictype/pr_id_continue.h: Likewise.
25219         * lib/unictype/pr_id_start.h: Likewise.
25220         * lib/unictype/pr_ideographic.h: Likewise.
25221         * lib/unictype/pr_ignorable_control.h: Likewise.
25222         * lib/unictype/pr_logical_order_exception.h: Likewise.
25223         * lib/unictype/pr_lowercase.h: Likewise.
25224         * lib/unictype/pr_numeric.h: Likewise.
25225         * lib/unictype/pr_other_alphabetic.h: Likewise.
25226         * lib/unictype/pr_punctuation.h: Likewise.
25227         * lib/unictype/pr_sentence_terminal.h: Likewise.
25228         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25229         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25230         * lib/unictype/pr_unified_ideograph.h: Likewise.
25231         * lib/unictype/pr_uppercase.h: Likewise.
25232         * lib/unictype/pr_xid_continue.h: Likewise.
25233         * lib/unictype/pr_xid_start.h: Likewise.
25234         * lib/unictype/pr_zero_width.h: Likewise.
25235         * lib/unictype/scripts.h: Likewise.
25236         * lib/unictype/scripts_byname.gperf: Likewise.
25237         * lib/unictype/sy_java_ident.h: Likewise.
25238         * lib/unigbrk/gbrkprop.h: Likewise.
25239         * lib/unilbrk/lbrkprop1.h: Likewise.
25240         * lib/unilbrk/lbrkprop2.h: Likewise.
25241         * lib/unilbrk/lbrktables.h: Likewise.
25242         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25243         LBP_CP. Implement rule LB30.
25244         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25245         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25246         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25247         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25248         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25249         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25250         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25251         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25252         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25253         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25254         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25255         bits instead of 16 bits in the code1 and code2 of each composition
25256         rule.
25257         (uc_composition): Update for Unicode 5.2.0.
25258         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25259         * lib/uninorm/decomposition-table2.h: Likewise.
25260         * lib/uniwbrk/wbrkprop.h: Likewise.
25261         * tests/unicase/test-cased.c: Likewise.
25262         * tests/unicase/test-ignorable.c: Likewise.
25263         * tests/unicase/test-uc_tolower.c: Likewise.
25264         * tests/unicase/test-uc_totitle.c: Likewise.
25265         * tests/unicase/test-uc_toupper.c: Likewise.
25266         * tests/unictype/test-categ_C.c: Likewise.
25267         * tests/unictype/test-categ_Cf.c: Likewise.
25268         * tests/unictype/test-categ_Cn.c: Likewise.
25269         * tests/unictype/test-categ_L.c: Likewise.
25270         * tests/unictype/test-categ_Ll.c: Likewise.
25271         * tests/unictype/test-categ_Lm.c: Likewise.
25272         * tests/unictype/test-categ_Lo.c: Likewise.
25273         * tests/unictype/test-categ_Lu.c: Likewise.
25274         * tests/unictype/test-categ_M.c: Likewise.
25275         * tests/unictype/test-categ_Mc.c: Likewise.
25276         * tests/unictype/test-categ_Mn.c: Likewise.
25277         * tests/unictype/test-categ_N.c: Likewise.
25278         * tests/unictype/test-categ_Nd.c: Likewise.
25279         * tests/unictype/test-categ_Nl.c: Likewise.
25280         * tests/unictype/test-categ_No.c: Likewise.
25281         * tests/unictype/test-categ_P.c: Likewise.
25282         * tests/unictype/test-categ_Pd.c: Likewise.
25283         * tests/unictype/test-categ_Po.c: Likewise.
25284         * tests/unictype/test-categ_S.c: Likewise.
25285         * tests/unictype/test-categ_Sc.c: Likewise.
25286         * tests/unictype/test-categ_So.c: Likewise.
25287         * tests/unictype/test-ctype_alnum.c: Likewise.
25288         * tests/unictype/test-ctype_alpha.c: Likewise.
25289         * tests/unictype/test-ctype_graph.c: Likewise.
25290         * tests/unictype/test-ctype_lower.c: Likewise.
25291         * tests/unictype/test-ctype_print.c: Likewise.
25292         * tests/unictype/test-ctype_punct.c: Likewise.
25293         * tests/unictype/test-ctype_upper.c: Likewise.
25294         * tests/unictype/test-decdigit.h: Likewise.
25295         * tests/unictype/test-digit.h: Likewise.
25296         * tests/unictype/test-numeric.h: Likewise.
25297         * tests/unictype/test-pr_alphabetic.c: Likewise.
25298         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25299         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25300         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25301         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25302         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25303         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25304         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25305         * tests/unictype/test-pr_combining.c: Likewise.
25306         * tests/unictype/test-pr_composite.c: Likewise.
25307         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25308         * tests/unictype/test-pr_dash.c: Likewise.
25309         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25310         * tests/unictype/test-pr_deprecated.c: Likewise.
25311         * tests/unictype/test-pr_diacritic.c: Likewise.
25312         * tests/unictype/test-pr_extender.c: Likewise.
25313         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25314         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25315         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25316         * tests/unictype/test-pr_id_continue.c: Likewise.
25317         * tests/unictype/test-pr_id_start.c: Likewise.
25318         * tests/unictype/test-pr_ideographic.c: Likewise.
25319         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25320         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25321         * tests/unictype/test-pr_lowercase.c: Likewise.
25322         * tests/unictype/test-pr_numeric.c: Likewise.
25323         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25324         * tests/unictype/test-pr_punctuation.c: Likewise.
25325         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25326         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25327         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25328         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25329         * tests/unictype/test-pr_uppercase.c: Likewise.
25330         * tests/unictype/test-pr_xid_continue.c: Likewise.
25331         * tests/unictype/test-pr_xid_start.c: Likewise.
25332         * tests/unictype/test-pr_zero_width.c: Likewise.
25333         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25334         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25335         changed behaviour: line breaking is now disallowed between a letter
25336         or '=' and '('.
25337         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25338         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25339         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25340         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25341         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25342         lib/uniwidth/width.c.
25343         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25344         without comments, but with the original copyright notice.
25345         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25346         changes.
25347         * lib/unictype/categ_Cc.h: Likewise.
25348         * lib/unictype/categ_Co.h: Likewise.
25349         * lib/unictype/categ_Cs.h: Likewise.
25350         * lib/unictype/categ_Lt.h: Likewise.
25351         * lib/unictype/categ_Me.h: Likewise.
25352         * lib/unictype/categ_Pc.h: Likewise.
25353         * lib/unictype/categ_Pe.h: Likewise.
25354         * lib/unictype/categ_Pf.h: Likewise.
25355         * lib/unictype/categ_Pi.h: Likewise.
25356         * lib/unictype/categ_Ps.h: Likewise.
25357         * lib/unictype/categ_Sk.h: Likewise.
25358         * lib/unictype/categ_Sm.h: Likewise.
25359         * lib/unictype/categ_Z.h: Likewise.
25360         * lib/unictype/categ_Zl.h: Likewise.
25361         * lib/unictype/categ_Zp.h: Likewise.
25362         * lib/unictype/categ_Zs.h: Likewise.
25363         * lib/unictype/ctype_blank.h: Likewise.
25364         * lib/unictype/ctype_cntrl.h: Likewise.
25365         * lib/unictype/ctype_digit.h: Likewise.
25366         * lib/unictype/ctype_space.h: Likewise.
25367         * lib/unictype/ctype_xdigit.h: Likewise.
25368         * lib/unictype/mirror.h: Likewise.
25369         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25370         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25371         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25372         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25373         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25374         * lib/unictype/pr_bidi_control.h: Likewise.
25375         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25376         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25377         * lib/unictype/pr_bidi_pdf.h: Likewise.
25378         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25379         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25380         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25381         * lib/unictype/pr_format_control.h: Likewise.
25382         * lib/unictype/pr_hex_digit.h: Likewise.
25383         * lib/unictype/pr_hyphen.h: Likewise.
25384         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25385         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25386         * lib/unictype/pr_iso_control.h: Likewise.
25387         * lib/unictype/pr_join_control.h: Likewise.
25388         * lib/unictype/pr_left_of_pair.h: Likewise.
25389         * lib/unictype/pr_line_separator.h: Likewise.
25390         * lib/unictype/pr_math.h: Likewise.
25391         * lib/unictype/pr_non_break.h: Likewise.
25392         * lib/unictype/pr_not_a_character.h: Likewise.
25393         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25394         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25395         * lib/unictype/pr_other_id_continue.h: Likewise.
25396         * lib/unictype/pr_other_id_start.h: Likewise.
25397         * lib/unictype/pr_other_lowercase.h: Likewise.
25398         * lib/unictype/pr_other_math.h: Likewise.
25399         * lib/unictype/pr_other_uppercase.h: Likewise.
25400         * lib/unictype/pr_paired_punctuation.h: Likewise.
25401         * lib/unictype/pr_paragraph_separator.h: Likewise.
25402         * lib/unictype/pr_pattern_syntax.h: Likewise.
25403         * lib/unictype/pr_pattern_white_space.h: Likewise.
25404         * lib/unictype/pr_private_use.h: Likewise.
25405         * lib/unictype/pr_quotation_mark.h: Likewise.
25406         * lib/unictype/pr_radical.h: Likewise.
25407         * lib/unictype/pr_soft_dotted.h: Likewise.
25408         * lib/unictype/pr_space.h: Likewise.
25409         * lib/unictype/pr_titlecase.h: Likewise.
25410         * lib/unictype/pr_variation_selector.h: Likewise.
25411         * lib/unictype/pr_white_space.h: Likewise.
25412         * lib/unictype/sy_c_ident.h: Likewise.
25413         * lib/unictype/sy_c_whitespace.h: Likewise.
25414         * lib/unictype/sy_java_whitespace.h: Likewise.
25415         * modules/uni*/*: Bump version number of expected libunistring version.
25416         Reported by Simon Josefsson.
25417
25418 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25419
25420         useless-if-before-free: fix typo in --help and make the internal,
25421         automatic version date update process work once again.
25422         --help output contained a NUL character instead of the
25423         backslash-zero that was intended.  Also, the "must lie within
25424         the first 8 lines" line is on line 9, and hence not getting
25425         automatically updated.
25426         * build-aux/useless-if-before-free: Fix the former by adding a
25427         backslash, and the latter by condensing the three lines of what-it-does
25428         to a single line, leaving one line of slack for the future.
25429
25430 2011-01-09  Bruno Haible  <bruno@clisp.org>
25431
25432         uniwidth/width: Fix width of U+1D173..U+1D17A.
25433         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25434         symbolic_width, output_width_property_test): New functions.
25435         (main): Invoke output_nonspacing_property, output_width_property_test.
25436         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25437         U+1D173..U+1D17A.
25438         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25439         1.
25440         * modules/uniwidth/*: Bump version number of expected libunistring
25441         version.
25442         * modules/unilbrk/*: Likewise.
25443
25444 2011-01-08  Bruno Haible  <bruno@clisp.org>
25445
25446         uninorm tests: Preserve copyright of Unicode data file.
25447         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25448         Mention modifications.
25449
25450 2011-01-08  Bruno Haible  <bruno@clisp.org>
25451
25452         gen-uni-tables: Prepare for Unicode 5.2.0.
25453         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25454         (debug_output_lbp, output_lbp): Update.
25455
25456 2011-01-08  Bruno Haible  <bruno@clisp.org>
25457
25458         unilbrk: Clarify gen-uni-tables.c code.
25459         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25460         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25461         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25462
25463 2011-01-07  Bruno Haible  <bruno@clisp.org>
25464
25465         strtod: Restore errno when successfully parsing Infinity or NaN.
25466         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25467         restore the original errno.
25468
25469 2011-01-07  Bruno Haible  <bruno@clisp.org>
25470
25471         remove test: Avoid failure on HP-UX 11.
25472         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25473
25474 2011-01-07  Bruno Haible  <bruno@clisp.org>
25475
25476         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25477         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25478         error code.
25479
25480 2011-01-07  Pádraig Brady <P@draigBrady.com>
25481
25482         ignore-value: fixup comments, and add Eric Blake
25483         as an author since he rewrote the macros.
25484         * lib/ignore-value.h (ignore_value):  State that
25485         we now support aggregates.  Also specify exactly
25486         when the GCC warn_unused_result feature was added.
25487
25488 2011-01-06  Eric Blake  <eblake@redhat.com>
25489
25490         ignore-value: support aggregate types
25491         * lib/ignore-value.h (ignore_value): Provide separate gcc
25492         definition.
25493         * modules/ignore-value-tests: New test module.
25494         * tests/test-ignore-value.c: New test.
25495
25496         maint.mk: improve sc_prohibit_strcmp regex
25497         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25498         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25499         definition of STRNEQ.
25500
25501         signal: work around Haiku issue with SIGBUS
25502         * lib/siglist.h: Add comment.
25503         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25504         strsignal's favoring of SIGSEGV.
25505         * tests/test-signal.c (main): Avoid test failure.
25506         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25507         Reported by Scott McCreary.
25508
25509         maint.mk: add pre-release check to ensure submodule commits are public
25510         * top/maint.mk (public-submodule-commit): New rule.
25511         (submodule-checks): New variable.
25512         (alpha beta stable): Depend on the variable.
25513
25514 2011-01-05  Pádraig Brady <P@draigBrady.com>
25515         and Jim Meyering  <meyering@redhat.com>
25516
25517         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25518         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25519         (ATTRIBUTE_DEPRECATED): Define.
25520         (_ignore_case): New function.
25521         (ignore_value): New macro, to replace the old function.
25522         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25523         * modules/ignore-value (Depends-on): Add stdint.
25524
25525 2011-01-04  Eric Blake  <eblake@redhat.com>
25526
25527         doc: regenerate INSTALL
25528         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25529         @firstparagraphindent support, now that autoconf dropped it.
25530         (INSTALL_PRELUDE): Reinstate old macro.
25531         * doc/install.texi: Resync from autoconf.
25532         * doc/INSTALL: Reflect recent autoconf update.
25533         * doc/INSTALL.ISO: Likewise.
25534         * doc/INSTALL.UTF-8: Likewise.
25535         Reported by Karl Berry.
25536
25537 2011-01-04  Bruce Korb  <address@hidden>
25538
25539         git-version-gen: avoid a sub-shell
25540         * build-aux/git-version-gen: Redirect stderr in `...` via
25541         "exec 2>...", rather than via an added sub-shell.
25542
25543 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25544
25545         git-version-gen: use (...) rather than sh -c '...'
25546         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25547         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25548
25549 2011-01-03  Jim Meyering  <meyering@redhat.com>
25550
25551         git-version-gen: convert leading TABs to spaces
25552         * build-aux/git-version-gen: Expand leading TABs.
25553
25554         git-version-gen: handle failed "git rev-list"
25555         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25556         from git and proceeding as if it had succeeded but printed no SHA1
25557         checksums, suppress the diagnostic and handle the failure.
25558         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25559
25560         git-version-gen: include command name in one more diagnostic
25561         * build-aux/git-version-gen: When the required .tarball-version file
25562         was missing or unreadable, you might see the diagnostic from "cat",
25563         but no trace of the name of the invoking script.  Now, you still see
25564         the diagnostic from cat, but also get one from "git-version-gen: ".
25565         Inspired by a patch from Bruce Korb.
25566
25567         update-copyright: adjust test to match changed code
25568         * tests/test-update-copyright.sh: Change test's expected output
25569         to match new actual output.
25570
25571 2011-01-02  Bruno Haible  <bruno@clisp.org>
25572
25573         getlogin_r: Avoid test failure on HP-UX 11.
25574         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25575         ERANGE when the second argument is zero.
25576         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25577         portability problem.
25578
25579 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25580
25581         * build-aux/update-copyright: doc Simon's changes
25582
25583 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25584
25585         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25586         environment variable.
25587
25588 2011-01-02  Bruno Haible  <bruno@clisp.org>
25589
25590         unigbrk: Avoid gcc warnings.
25591         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25592         unused variable.
25593         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25594         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25595         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25596         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25597         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25598         Change type of first argument to 'const char *'.
25599         (main): Remove unused variable.
25600         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25601         type of first argument to 'const char *'.
25602         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25603         Likewise.
25604         (main): Change type of variable 's'.
25605         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25606         to 'int'.
25607
25608 2011-01-02  Bruno Haible  <bruno@clisp.org>
25609
25610         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25611         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25612         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25613         bug.
25614         * lib/pwrite.c: Undo 2010-12-31 patch.
25615         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25616
25617 2011-01-02  Bruno Haible  <bruno@clisp.org>
25618
25619         pread: Fix test whether it works.
25620         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25621
25622 2011-01-02  Bruno Haible  <bruno@clisp.org>
25623
25624         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25625         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25626         ends in "6". Don't require a specific month name. Try also the locale
25627         names found on HP-UX 11 and Solaris 7.
25628
25629 2011-01-02  Bruno Haible  <bruno@clisp.org>
25630
25631         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25632         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25633         C linkage.
25634         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25635
25636 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25637
25638         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25639         for consistency, since the "cluster" term is not used elsewhere.
25640         * lib/unigbrk.in.h: Update name.
25641         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25642         * lib/unigbrk/u16-grapheme-next.c: Update name.
25643         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25644         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25645         * lib/unigbrk/u32-grapheme-next.c: Update name.
25646         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25647         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25648         * lib/unigbrk/u8-grapheme-next.c: Update name.
25649         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25650         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25651         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25652         Suggested by Bruno Haible.
25653
25654 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25655
25656         Remove module 'u8-grapheme-len' as too redundant with
25657         'u8-grapheme-next'.
25658         * modules/unigbrk/u8-grapheme-len: Delete file.
25659         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25660         * lib/unigbrk.in.h: Remove prototype for deleted function.
25661         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25662         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25663
25664         Remove module 'u16-grapheme-len' as too redundant with
25665         'u16-grapheme-next'.
25666         * modules/unigbrk/u16-grapheme-len: Delete file.
25667         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25668         * lib/unigbrk.in.h: Remove prototype for deleted function.
25669         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25670         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25671
25672         Remove module 'u32-grapheme-len' as too redundant with
25673         'u32-grapheme-next'.
25674         * modules/unigbrk/u32-grapheme-len: Delete file.
25675         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25676         * lib/unigbrk.in.h: Remove prototype for deleted function.
25677         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25678         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25679
25680         Suggested by Bruno Haible.
25681
25682 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25683
25684         * unigbrk.in.h: Fix typo: "ben" => "been".
25685         Reported by Bruno Haible.
25686
25687 2011-01-01  Jim Meyering  <meyering@redhat.com>
25688
25689         maint: update almost all copyright ranges to include 2011
25690         Run the new "make update-copyright" rule.
25691
25692 2011-01-01  Jim Meyering  <meyering@redhat.com>
25693
25694         maint: update-copyright: exempt doc/INSTALL*
25695         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25696         since they are generated.  Suggested by Bruno Haible.
25697
25698 2011-01-01  Jim Meyering  <meyering@redhat.com>
25699
25700         maint: refine the update-copyright rule
25701         * Makefile (update-copyright): Also exclude any file that includes
25702         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25703         code that merely generates the comment.
25704
25705 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25706
25707         New module 'u8-grapheme-len'.
25708         * modules/unigbrk/u8-grapheme-len: New file.
25709         * modules/unigbrk/u8-grapheme-len-tests: New file.
25710         * lib/unigbrk.in.h: Add prototype for new function.
25711         * lib/unigbrk/u8-grapheme-len.c: New file.
25712         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25713
25714         New module 'u16-grapheme-len'.
25715         * modules/unigbrk/u16-grapheme-len: New file.
25716         * modules/unigbrk/u16-grapheme-len-tests: New file.
25717         * lib/unigbrk.in.h: Add prototype for new function.
25718         * lib/unigbrk/u16-grapheme-len.c: New file.
25719         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25720
25721         New module 'u32-grapheme-len'.
25722         * modules/unigbrk/u32-grapheme-len: New file.
25723         * modules/unigbrk/u32-grapheme-len-tests: New file.
25724         * lib/unigbrk.in.h: Add prototype for new function.
25725         * lib/unigbrk/u32-grapheme-len.c: New file.
25726         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25727
25728         New module 'u8-grapheme-next'.
25729         * modules/unigbrk/u8-grapheme-next: New file.
25730         * modules/unigbrk/u8-grapheme-next-tests: New file.
25731         * lib/unigbrk.in.h: Add prototype for new function.
25732         * lib/unigbrk/u8-grapheme-next.c: New file.
25733         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25734
25735         New module 'u16-grapheme-next'.
25736         * modules/unigbrk/u16-grapheme-next: New file.
25737         * modules/unigbrk/u16-grapheme-next-tests: New file.
25738         * lib/unigbrk.in.h: Add prototype for new function.
25739         * lib/unigbrk/u16-grapheme-next.c: New file.
25740         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25741
25742         New module 'u32-grapheme-next'.
25743         * modules/unigbrk/u32-grapheme-next: New file.
25744         * modules/unigbrk/u32-grapheme-next-tests: New file.
25745         * lib/unigbrk.in.h: Add prototype for new function.
25746         * lib/unigbrk/u32-grapheme-next.c: New file.
25747         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25748
25749         New module 'u8-grapheme-prev'.
25750         * modules/unigbrk/u8-grapheme-prev: New file.
25751         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25752         * lib/unigbrk.in.h: Add prototype for new function.
25753         * lib/unigbrk/u8-grapheme-prev.c: New file.
25754         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25755
25756         New module 'u16-grapheme-prev'.
25757         * modules/unigbrk/u16-grapheme-prev: New file.
25758         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25759         * lib/unigbrk.in.h: Add prototype for new function.
25760         * lib/unigbrk/u16-grapheme-prev.c: New file.
25761         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25762
25763         New module 'u32-grapheme-prev'.
25764         * modules/unigbrk/u32-grapheme-prev: New file.
25765         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25766         * lib/unigbrk.in.h: Add prototype for new function.
25767         * lib/unigbrk/u32-grapheme-prev.c: New file.
25768         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25769
25770         New module 'u8-grapheme-breaks'.
25771         * modules/unigbrk/u8-grapheme-breaks: New file.
25772         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25773         * lib/unigbrk.in.h: Add prototype for new function.
25774         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25775         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25776
25777         New module 'u16-grapheme-breaks'.
25778         * modules/unigbrk/u16-grapheme-breaks: New file.
25779         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25780         * lib/unigbrk.in.h: Add prototype for new function.
25781         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25782         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25783
25784         New module 'u32-grapheme-breaks'.
25785         * modules/unigbrk/u32-grapheme-breaks: New file.
25786         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25787         * lib/unigbrk.in.h: Add prototype for new function.
25788         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25789         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25790
25791         New module 'ulc-grapheme-breaks'.
25792         * modules/unigbrk/ulc-grapheme-breaks: New file.
25793         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25794         * m4/locale-ar.m4: New file.
25795         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25796         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25797         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25798
25799 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25800
25801         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25802         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25803         modified how this file was generated before I initially submitted
25804         the module, but failed to regenerate it.  This meant that several
25805         of the level2 entries were wrong.
25806         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25807         Remove the division-by-2 that is folded into the table now that
25808         gbrkprop.h has been regenerated properly.  Now -1 entries are
25809         handled correctly.
25810
25811         New module 'unigbrk/uc-gbrk-prop-tests'.
25812         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25813         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25814         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25815         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25816
25817 2011-01-01  Bruno Haible  <bruno@clisp.org>
25818
25819         Avoid use of hexadecimal escapes.
25820         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25821         instead of hexadecimal escapes.
25822
25823 2011-01-01  Jim Meyering  <meyering@redhat.com>
25824
25825         maint: new rule to update copyright year ranges
25826         * Makefile (update-copyright): New rule.
25827
25828         maint: indent with TABs in Makefile
25829         * Makefile: Expand leading sequences of spaces to TABs
25830
25831         version-etc: update the copyright year it reports
25832         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25833
25834 2010-12-31  Bruno Haible  <bruno@clisp.org>
25835
25836         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25837         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25838         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25839         zero.
25840
25841 2010-12-31  Bruno Haible  <bruno@clisp.org>
25842
25843         pwrite: Work around HP-UX 11.11 bug.
25844         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25845         works and set REPLACE_PWRITE if not.
25846         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25847         function.
25848         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25849
25850 2010-12-31  Bruno Haible  <bruno@clisp.org>
25851
25852         pread: Work around HP-UX 11 bugs.
25853         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25854         and set REPLACE_PREAD if not.
25855         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25856
25857 2010-12-31  Eric Blake  <eblake@redhat.com>
25858
25859         nl_langinfo: fix YESEXPR on Irix 6.5
25860         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25861         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25862         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25863         it.
25864
25865 2010-12-31  Bruno Haible  <bruno@clisp.org>
25866
25867         iconv: Document HP-UX 11 bug.
25868         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25869
25870 2010-12-31  Bruno Haible  <bruno@clisp.org>
25871
25872         ldexpl: Fix link error on HP-UX 11.
25873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25874         LDEXPL_LIBM, using $ISNANL_LIBM.
25875
25876 2010-12-31  Eric Blake  <eblake@redhat.com>
25877
25878         ftello: avoid compilation failure with SunStudio c89
25879         * lib/ftello.c (ftello): Use lseek, not llseek.
25880
25881         tests: avoid failing coreutils tests on cygwin
25882         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25883         (create_exe_shims_): Return 0 when skipping.
25884
25885 2010-12-31  Bruno Haible  <bruno@clisp.org>
25886
25887         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25888         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25889
25890 2010-12-31  Bruno Haible  <bruno@clisp.org>
25891
25892         waitpid: Fix link error in C++ mode.
25893         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25894
25895 2010-12-31  Bruno Haible  <bruno@clisp.org>
25896
25897         isnan: Use GCC built-ins when possible.
25898         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25899         __builtin_isnan.
25900         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25901         (isnan): Define using GCC built-ins for GCC >= 4.0.
25902
25903 2010-12-31  Bruno Haible  <bruno@clisp.org>
25904
25905         isnand: Fix mistake.
25906         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25907         __builtin_isnand.
25908
25909 2010-12-31  Bruno Haible  <bruno@clisp.org>
25910
25911         open: Avoid C++ error on HP-UX 11.
25912         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25913
25914 2010-12-31  Bruno Haible  <bruno@clisp.org>
25915
25916         time_r: Add missing declarations on HP-UX 11.
25917         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25918         instead of HAVE_LOCALTIME_R.
25919         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25920         HAVE_LOCALTIME_R always.
25921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25922         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25923         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25924         HAVE_LOCALTIME_R.
25925         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25926         * doc/posix-functions/localtime_r.texi: Likewise.
25927
25928 2010-12-29  Eric Blake  <eblake@redhat.com>
25929
25930         mountlist: tweak previous commit
25931         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25932         Reported by Paul Eggert.
25933
25934         mountlist: fix local drive detection on cygwin
25935         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25936         that works for cygwin.
25937
25938 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25939
25940         ftoastr, snprintf: ftoastr + snprintf module
25941         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25942         since the snprintf module now should be good enough here.
25943         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25944         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25945         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25946         GNULIB_SNPRINTF only for the test directory, and the latter
25947         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25948         seems to suffice by itself.
25949
25950 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25951
25952         alloca: one step towards thread-safety
25953         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25954         need for a static variable.  All callers changed.  This does not
25955         make the alloca replacement thread-safe, but it's one step.
25956
25957         tests: minor indenting change
25958         * tests/init.sh: Sync from coreutils housekeeping patch
25959         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25960         to keep lines within 80 columns.
25961
25962 2010-12-28  Jim Meyering  <meyering@redhat.com>
25963
25964         regex: don't infloop on persistent failing calloc
25965         * lib/regexec.c (build_trtable): Return failure indication upon
25966         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25967         In glibc, this was fixed for version 2.13:
25968         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25969
25970 2010-12-28  Bruno Haible  <bruno@clisp.org>
25971             Paul Eggert <eggert@cs.ucla.edu>
25972
25973         linkat: Make implementation robust against system behaviour variations.
25974         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25975         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25976         way, and to -2 if it needs a generic runtime test.
25977         * lib/linkat.c (solaris_optimized_link_immediate,
25978         solaris_optimized_link_follow): New functions.
25979         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25980         (check_same_link): Use it.
25981
25982 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25983
25984         New module 'unigbrk/base'.
25985         * modules/unigbrk/base: New file.
25986         * lib/unigbrk.in.h: New file.
25987
25988         New module 'unigbrk/uc-gbrk-prop'.
25989         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25990         * modules/unigbrk/uc-gbrk-prop: New file.
25991         * lib/unigbrk/gbrkprop.h: New file.
25992         * lib/unigbrk/uc-gbrk-prop.c: New file.
25993
25994         New module 'unigbrk/uc-is-grapheme-break'.
25995         * modules/unigbrk/uc-is-grapheme-break: New file.
25996         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25997         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25998         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25999         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26000         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26001
26002         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26003
26004 2010-12-27  Bruno Haible  <bruno@clisp.org>
26005
26006         linkat test: Avoid failure on Solaris 11 2010-11.
26007         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26008
26009 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26010
26011         utimens: work around glibc rounding bug on more platforms
26012         * lib/utimens.c (fdutimens): Work around rounding bug even if
26013         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26015
26016 2010-12-27  Bruno Haible  <bruno@clisp.org>
26017
26018         select tests: Improve comments.
26019         * tests/test-select.c (do_select): Add comments.
26020
26021 2010-12-27  Bruno Haible  <bruno@clisp.org>
26022
26023         select tests: Safer way of handling timeout.
26024         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26025         at every invocation.
26026
26027 2010-12-27  Bruno Haible  <bruno@clisp.org>
26028
26029         select tests: Use 'bool' where appropriate.
26030         * tests/test-select.c (connect_to_socket): Change argument type to
26031         'bool'.
26032
26033 2010-12-27  Bruno Haible  <bruno@clisp.org>
26034
26035         select tests: Use existing modules.
26036         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26037         (configure.ac): Don't test for unistd.h.
26038         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26039         declared in <unistd.h>.
26040
26041 2010-12-27  Bruno Haible  <bruno@clisp.org>
26042
26043         mbrtowc: Work around a Solaris 7 bug.
26044         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26045         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26046         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26047         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26048         MBRTOWC_NULL_ARG1_BUG.
26049         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26050         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26051         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26052         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26053
26054 2010-12-27  Jim Meyering  <meyering@redhat.com>
26055
26056         read-file.c: tweak syntax
26057         * lib/read-file.c (fread_file): Remove space after "*" in function
26058         definitions.
26059
26060 2010-12-27  Bruno Haible  <bruno@clisp.org>
26061
26062         times test: Avoid gcc warnings on OSF/1.
26063         * tests/test-times.c (main): Cast printf arguments from clock_t to
26064         'long int'.
26065
26066 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26067
26068         utimens: work around glibc rounding bug on older Linux kernels
26069         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26070         on Linux with a glibc whose utimes might not work, then work
26071         around a longstanding glibc bug involving rounding rather than
26072         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26073         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26074
26075 2010-12-26  Bruno Haible  <bruno@clisp.org>
26076
26077         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26078         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26079         _GL_CXXALIAS_SYS.
26080         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26081
26082 2010-12-26  Bruno Haible  <bruno@clisp.org>
26083
26084         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26085         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26086         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26087         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26088         looking for the declaration.
26089         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26090         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26091         problem.
26092         * doc/posix-functions/inet_pton.texi: Likewise.
26093
26094 2010-12-26  Bruno Haible  <bruno@clisp.org>
26095
26096         arpa_inet: Use the common idioms with C++ support.
26097         * lib/arpa_inet.in.h: Include c++defs.h.
26098         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26099         support.
26100         * modules/arpa_inet (Depends-on): Add c++defs.
26101         (Makefile.am): Substitute the contents of c++defs.h.
26102         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26103         * modules/arpa_inet-c++-tests: New file.
26104         * tests/test-arpa_inet-c++.cc: New file.
26105
26106 2010-12-25  Bruno Haible  <bruno@clisp.org>
26107
26108         Fix more C++ link errors on Solaris 8.
26109         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26110         $(LIB_EACCESS).
26111         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26112         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26113         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26114         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26115         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26116
26117 2010-12-25  Bruno Haible  <bruno@clisp.org>
26118
26119         printf-posix: Fix link error when a non-GCC compiler is used.
26120         * lib/stdio.in.h (printf): When not using GCC, override printf
26121         correctly.
26122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26123
26124 2010-12-25  Bruno Haible  <bruno@clisp.org>
26125
26126         strerror_r-posix: Update doc.
26127         * doc/posix-functions/strerror_r.texi: Update doc about the return
26128         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26129
26130 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26131
26132         utimens: simplify the logic of the previous change
26133         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26134         This should not affect whether the test succeeds or fails.
26135
26136         utimens: configure better on hosts with NFS clock skew
26137         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26138         uses the clock of the local host.  It might use the clock of the
26139         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26141
26142 2010-12-25  Bruno Haible  <bruno@clisp.org>
26143
26144         ptsname test: Avoid failure on Solaris.
26145         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26146         open a pseudo-terminal; don't use BSD-style ptys.
26147         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26148
26149 2010-12-25  Bruno Haible  <bruno@clisp.org>
26150
26151         ptsname: Avoid ERANGE failure on some systems.
26152         * lib/ptsname.c (buffer): Increase size.
26153
26154 2010-12-25  Bruno Haible  <bruno@clisp.org>
26155
26156         rename, renameat: Avoid test failures at NFS mounted locations.
26157         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26158         so that subsequent mkdir calls succeed.
26159
26160 2010-12-25  Bruno Haible  <bruno@clisp.org>
26161
26162         iswblank: Fix C++ link error on Solaris 8.
26163         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26164         _GL_FUNCDECL_SYS.
26165
26166 2010-12-25  Bruno Haible  <bruno@clisp.org>
26167
26168         unistd: Fix C++ link error on Solaris 8.
26169         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26170
26171 2010-12-25  Bruno Haible  <bruno@clisp.org>
26172
26173         readlink doc: Mention an old glibc bug.
26174         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26175
26176 2010-12-25  Bruno Haible  <bruno@clisp.org>
26177
26178         fcntl-h: Fix for use of C++ on glibc systems.
26179         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26180         also on glibc systems in C++ mode.
26181         Reported by Gary V. Vaughan <gary@gnu.org>.
26182
26183 2010-12-25  Bruno Haible  <bruno@clisp.org>
26184
26185         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26186         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26187
26188 2010-12-25  Bruno Haible  <bruno@clisp.org>
26189
26190         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26191         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26192         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26193         test whether truncl works according to ISO C 99 with IEC 60559.
26194         * m4/truncl-ieee.m4: New file.
26195         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26196         m4/signbit.m4.
26197         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26198
26199 2010-12-25  Bruno Haible  <bruno@clisp.org>
26200
26201         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26202         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26203         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26204         test whether ceill works according to ISO C 99 with IEC 60559.
26205         * m4/ceill-ieee.m4: New file.
26206         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26207         m4/signbit.m4.
26208         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26209
26210 2010-12-25  Bruno Haible  <bruno@clisp.org>
26211
26212         Ensure all prerequisites of <wchar.h> are included.
26213         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26214         before <wchar.h>.
26215         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26216         gl_MBRLEN_NUL_RETVAL): Likewise.
26217         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26218         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26219         AC_FUNC_MBRTOWC): Likewise.
26220         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26221         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26222         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26223         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26224         Likewise.
26225         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26226         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26227         (gl_WCHAR_H): Improve comments.
26228         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26229
26230 2010-12-25  Bruno Haible  <bruno@clisp.org>
26231
26232         strtok_r: Fix C syntax error in autoconf macro.
26233         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26234         characters in test program.
26235
26236 2010-12-24  Bruno Haible  <bruno@clisp.org>
26237
26238         ceil, trunc, round: Fix gcc warnings.
26239         * lib/ceil.c (MIN): Undefine before redefining.
26240         * lib/trunc.c (MIN): Likewise.
26241         * lib/round.c (MIN): Likewise.
26242         Include <math.h> first.
26243
26244 2010-12-24  Bruno Haible  <bruno@clisp.org>
26245
26246         select tests: Avoid failures on OSF/1 5.1.
26247         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26248         failure of closing the last socket; it may fail with ECONNRESET.
26249
26250 2010-12-24  Eric Blake  <eblake@redhat.com>
26251
26252         stdint: avoid HP-UX 10.20 preprocessor bug
26253         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26254         than #if.
26255         * tests/test-floor2.c (main): Likewise.
26256         Reported by Peter O'Gorman.
26257
26258         pipe: make obsoletion transition easier
26259         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26260         * modules/pipe (Files): Include revived file.
26261         (Include): Drop reference, to mirror getdate's behavior.
26262
26263 2010-12-24  Bruno Haible  <bruno@clisp.org>
26264
26265         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26266         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26267         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26268         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26269
26270 2010-12-24  Bruno Haible  <bruno@clisp.org>
26271
26272         gethostname: Ensure declaration on NonStop Kernel.
26273         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26275
26276 2010-12-24  Bruno Haible  <bruno@clisp.org>
26277
26278         sys_select: Ensure all necessary types on NonStop Kernel.
26279         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26280         include <sys/time.h>.
26281         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26282         NonStop Kernel.
26283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26284
26285 2010-12-24  Bruno Haible  <bruno@clisp.org>
26286
26287         sys_select: Remove unneeded include.
26288         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26289         have <sys/select.h>.
26290
26291 2010-12-24  Bruno Haible  <bruno@clisp.org>
26292
26293         gethostname: Provide a fallback for HOST_NAME_MAX.
26294         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26295         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26296         instead.
26297         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26298
26299 2010-12-24  Bruno Haible  <bruno@clisp.org>
26300
26301         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26302         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26303         (SA_RESTART): Likewise.
26304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26305
26306 2010-12-24  Bruno Haible  <bruno@clisp.org>
26307
26308         signal: Define NSIG.
26309         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26310         * tests/test-signal.c (nsig): New variable.
26311         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26312
26313 2010-12-24  Bruno Haible  <bruno@clisp.org>
26314
26315         rename, renameat: Avoid test failures on OSF/1 5.1.
26316         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26317         alternative error codes.
26318         * tests/test-renameat.c (main): Likewise.
26319
26320 2010-12-24  Bruno Haible  <bruno@clisp.org>
26321
26322         *printf: Detect large precisions bug on Solaris 10/SPARC.
26323         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26324         by Paul Eggert.
26325         * tests/test-snprintf-posix.h (test_function): Add this test code here
26326         too.
26327         * tests/test-sprintf-posix.h (test_function): Likewise.
26328         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26329         * tests/test-vasprintf-posix.c (test_function): Likewise.
26330         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26331         around by gnulib.
26332         * doc/posix-functions/printf.texi: Likewise.
26333         * doc/posix-functions/snprintf.texi: Likewise.
26334         * doc/posix-functions/sprintf.texi: Likewise.
26335         * doc/posix-functions/vfprintf.texi: Likewise.
26336         * doc/posix-functions/vprintf.texi: Likewise.
26337         * doc/posix-functions/vsnprintf.texi: Likewise.
26338         * doc/posix-functions/vsprintf.texi: Likewise.
26339         * doc/posix-functions/dprintf.texi: Undo last commit.
26340         * doc/posix-functions/vdprintf.texi: Likewise.
26341
26342 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26343
26344         tests: port test-fdutimensat.c to Solaris 8
26345         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26346         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26347         On Solaris 8, it fails with errno == ENOSYS, because there is no
26348         futimens (so it can't use the fd), and there is no lutimens (so it
26349         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26350
26351         vsnprintf: make more consistent with snprintf; doc fixes
26352
26353         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26354         the byte count return problem was promoted from the snprintf-posix
26355         to the snprintf module.
26356         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26357         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26358         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26359         * tests/test-snprintf.c (main): Check the byte count returned.
26360         * tests/test-vsnprintf.c (main): Likewise.
26361
26362 2010-12-23  Eric Blake  <eblake@redhat.com>
26363
26364         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26365         * modules/sigpipe (License): Relax license.
26366
26367 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26368
26369         doc: document Solaris printf bug with large float precisions
26370         * doc/posix-functions/dprintf.texi (dprintf):
26371         * doc/posix-functions/fprintf.texi (fprintf):
26372         * doc/posix-functions/printf.texi (printf):
26373         * doc/posix-functions/snprintf.texi (snprintf):
26374         * doc/posix-functions/sprintf.texi (sprintf):
26375         * doc/posix-functions/vdprintf.texi (vdprintf):
26376         * doc/posix-functions/vfprintf.texi (vfprintf):
26377         * doc/posix-functions/vprintf.texi (vprintf):
26378         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26379         * doc/posix-functions/vsprintf.texi (vsprintf):
26380         Mention that these functions mishandle large floating point
26381         precisions on Solaris 10.  The same bug is also present in Solaris
26382         8, and I assume earlier.  This causes "cd gnulib-tests; make
26383         check" to fail on Solaris 8 (and I assume, later) when building
26384         the latest coreutils, in test-vasprintf-posix's call to
26385         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26386         the wide flavors (e.g., wprintf) so this patch just updates the
26387         documentation for the narrow ones.
26388
26389         test-posixtm.c: add two tests
26390         * tests/test-posixtm.c: Add two tests, to highlight the
26391         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26392         around this bug; this is merely to document it.
26393
26394 2010-12-22  Bruno Haible  <bruno@clisp.org>
26395
26396         getlogin_r: Work around portability problem on OSF/1.
26397         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26398         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26399         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26400         test for a truncated result.
26401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26402         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26403         * modules/getlogin_r (Depends-on): Add memchr.
26404         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26405
26406 2010-12-22  Bruno Haible  <bruno@clisp.org>
26407
26408         ptsname: Avoid test failure on OSF/1 5.1.
26409         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26410         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26411         (same_slave): New function.
26412         (main): Use it to compare ptsname's result with the expected file name.
26413
26414 2010-12-22  Bruno Haible  <bruno@clisp.org>
26415
26416         Port extended stdio modules to HP NonStop Kernel.
26417         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26418         macros.
26419         * lib/fbufmode.c: Update comments.
26420         * lib/fflush.c: Likewise.
26421         * lib/fpurge.c: Likewise.
26422         * lib/freadable.c: Likewise.
26423         * lib/freadahead.c: Likewise.
26424         * lib/freading.c: Likewise.
26425         * lib/freadptr.c: Likewise.
26426         * lib/freadseek.c: Likewise.
26427         * lib/fseeko.c: Likewise.
26428         * lib/fseterr.c: Likewise.
26429         * lib/fwritable.c: Likewise.
26430         * lib/fwriting.c: Likewise.
26431         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26432
26433 2010-12-22  Bruno Haible  <bruno@clisp.org>
26434
26435         ttyname_r: Work around bug on OSF/1 5.1.
26436         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26437         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26438         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26439         present.
26440         * lib/ttyname_r.c (ttyname_r): Update comments.
26441
26442 2010-12-22  Bruno Haible  <bruno@clisp.org>
26443
26444         round: Implement result sign according to IEEE 754.
26445         * lib/round.c (MIN, MINUS_ZERO): New macros.
26446         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26447         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26448         * tests/test-round-ieee.c (main): Likewise.
26449         * tests/test-roundl-ieee.c (main): Likewise.
26450
26451         trunc: Implement result sign according to IEEE 754.
26452         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26453         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26454         * tests/test-trunc2.c: Include minus-zero.h.
26455         (MINUS_ZERO): New macro.
26456         (trunc_reference): Keep in sync with lib/trunc.c.
26457         * tests/test-truncf2.c: Include minus-zero.h.
26458         (MINUS_ZERO): New macro.
26459         (truncf_reference): Keep in sync with lib/trunc.c.
26460         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26461         * tests/test-trunc-ieee.c (main): Likewise.
26462         * tests/test-truncl-ieee.c (main): Likewise.
26463
26464         ceil: Implement result sign according to IEEE 754.
26465         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26466         (FUNC): Return -0.0 for -1 < x < 0.
26467         * tests/test-ceil2.c: Include minus-zero.h.
26468         (MINUS_ZERO): New macro.
26469         (ceil_reference): Keep in sync with lib/ceil.c.
26470         * tests/test-ceilf2.c: Include minus-zero.h.
26471         (MINUS_ZERO): New macro.
26472         (ceilf_reference): Keep in sync with lib/ceil.c.
26473         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26474         * tests/test-ceil-ieee.c (main): Likewise.
26475         * tests/test-ceill-ieee.c (main): Likewise.
26476
26477         floor: Implement result sign according to IEEE 754.
26478         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26479         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26480         * tests/test-floorf2.c (floorf_reference): Likewise.
26481         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26482         * tests/test-floor-ieee.c (main): Likewise.
26483         * tests/test-floorl-ieee.c (main): Likewise.
26484
26485 2010-12-22  Bruno Haible  <bruno@clisp.org>
26486
26487         getaddrinfo: Update doc.
26488         * doc/posix-functions/gai_strerror.texi: Return type is also different
26489         on AIX and HP-UX.
26490
26491 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26492
26493         getaddrinfo, inet_ntop: Update doc for Solaris.
26494         * doc/posix-functions/gai_strerror.texi: Return type is also an
26495         issue on Solaris 9 and earlier.
26496         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26497         on Solaris 10 and earlier.
26498
26499 2010-12-21  Bruno Haible  <bruno@clisp.org>
26500
26501         New module 'roundl-ieee'.
26502         * modules/roundl-ieee: New file.
26503         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26504         test whether roundl works according to ISO C 99 with IEC 60559.
26505         * m4/roundl-ieee.m4: New file.
26506         * modules/roundl-ieee-tests: New file.
26507         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26508         * tests/test-roundl.c (main): Remove signbit tests.
26509         * modules/roundl-tests (Depends-on): Remove signbit.
26510         * doc/posix-functions/roundl.texi: Mention the new module.
26511
26512 2010-12-21  Bruno Haible  <bruno@clisp.org>
26513
26514         New module 'truncl-ieee'.
26515         * modules/truncl-ieee: New file.
26516         * modules/truncl-ieee-tests: New file.
26517         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26518         * tests/test-truncl.c (main): Remove signbit tests.
26519         * modules/truncl-tests (Depends-on): Remove signbit.
26520         * doc/posix-functions/truncl.texi: Mention the new module.
26521
26522 2010-12-21  Bruno Haible  <bruno@clisp.org>
26523
26524         New module 'ceill-ieee'.
26525         * modules/ceill-ieee: New file.
26526         * modules/ceill-ieee-tests: New file.
26527         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26528         * tests/test-ceill.c (main): Remove signbit tests.
26529         * modules/ceill-tests (Depends-on): Remove signbit.
26530         * doc/posix-functions/ceill.texi: Mention the new module.
26531
26532 2010-12-21  Bruno Haible  <bruno@clisp.org>
26533
26534         New module 'floorl-ieee'.
26535         * modules/floorl-ieee: New file.
26536         * modules/floorl-ieee-tests: New file.
26537         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26538         * tests/test-floorl.c (main): Remove signbit tests.
26539         * modules/floorl-tests (Depends-on): Remove signbit.
26540         * doc/posix-functions/floorl.texi: Mention the new module.
26541
26542 2010-12-21  Bruno Haible  <bruno@clisp.org>
26543
26544         New module 'round-ieee'.
26545         * modules/round-ieee: New file.
26546         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26547         whether round works according to ISO C 99 with IEC 60559.
26548         * m4/round-ieee.m4: New file.
26549         * modules/round-ieee-tests: New file.
26550         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26551         * tests/test-round1.c (main): Remove signbit tests.
26552         * modules/round-tests (Depends-on): Remove 'signbit'.
26553         * doc/posix-functions/round.texi: Mention the new module.
26554
26555 2010-12-21  Bruno Haible  <bruno@clisp.org>
26556
26557         New module 'trunc-ieee'.
26558         * modules/trunc-ieee: New file.
26559         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26560         whether trunc works according to ISO C 99 with IEC 60559.
26561         * m4/trunc-ieee.m4: New file.
26562         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26564         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26565         * modules/trunc-ieee-tests: New file.
26566         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26567         * tests/test-trunc1.c (main): Remove signbit tests.
26568         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26569         * doc/posix-functions/trunc.texi: Mention the new module.
26570
26571 2010-12-21  Bruno Haible  <bruno@clisp.org>
26572
26573         New module 'ceil-ieee'.
26574         * modules/ceil-ieee: New file.
26575         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26576         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26577         ISO C 99 with IEC 60559.
26578         * m4/ceil-ieee.m4: New file.
26579         * modules/ceil (Files): Add lib/ceil.c.
26580         (Depends-on): Add 'float'.
26581         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26582         * lib/math.in.h (ceil): New declaration.
26583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26584         REPLACE_CEIL.
26585         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26586         * modules/ceil-ieee-tests: New file.
26587         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26588         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26589         * doc/posix-functions/ceil.texi: Mention the new module.
26590
26591 2010-12-21  Bruno Haible  <bruno@clisp.org>
26592
26593         New module 'floor-ieee'.
26594         * modules/floor-ieee: New file.
26595         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26596         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26597         ISO C 99 with IEC 60559.
26598         * m4/floor-ieee.m4: New file.
26599         * modules/floor (Files): Add lib/floor.c.
26600         (Depends-on): Add 'float'.
26601         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26602         * lib/math.in.h (floor): New declaration.
26603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26604         REPLACE_FLOOR.
26605         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26606         * modules/floor-ieee-tests: New file.
26607         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26608         * tests/test-math-c++.cc: Check the signature of 'floor'.
26609         * doc/posix-functions/floor.texi: Mention the new module.
26610
26611 2010-12-21  Bruno Haible  <bruno@clisp.org>
26612
26613         New module 'roundf-ieee'.
26614         * modules/roundf-ieee: New file.
26615         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26616         test whether roundf works according to ISO C 99 with IEC 60559.
26617         * m4/roundf-ieee.m4: New file.
26618         * modules/roundf-ieee-tests: New file.
26619         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26620         * tests/test-roundf1.c (main): Remove signbit tests.
26621         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26622         * doc/posix-functions/roundf.texi: Mention the new module.
26623
26624 2010-12-21  Bruno Haible  <bruno@clisp.org>
26625
26626         New module 'truncf-ieee'.
26627         * modules/truncf-ieee: New file.
26628         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26629         test whether truncf works according to ISO C 99 with IEC 60559.
26630         * m4/truncf-ieee.m4: New file.
26631         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26633         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26634         * modules/truncf-ieee-tests: New file.
26635         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26636         * tests/test-truncf1.c (main): Remove signbit tests.
26637         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26638         * doc/posix-functions/truncf.texi: Mention the new module.
26639
26640 2010-12-21  Bruno Haible  <bruno@clisp.org>
26641
26642         New module 'ceilf-ieee'.
26643         * modules/ceilf-ieee: New file.
26644         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26645         test whether ceilf works according to ISO C 99 with IEC 60559.
26646         * m4/ceilf-ieee.m4: New file.
26647         * modules/ceilf-ieee-tests: New file.
26648         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26649         * tests/test-ceilf1.c (main): Remove signbit tests.
26650         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26651         * doc/posix-functions/ceilf.texi: Mention the new module.
26652
26653 2010-12-21  Bruno Haible  <bruno@clisp.org>
26654
26655         New module 'floorf-ieee'.
26656         * modules/floorf-ieee: New file.
26657         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26658         test whether floorf works according to ISO C 99 with IEC 60559.
26659         * m4/floorf-ieee.m4: New file.
26660         * modules/floorf-ieee-tests: New file.
26661         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26662         * tests/test-floorf1.c (main): Remove signbit tests.
26663         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26664         * doc/posix-functions/floorf.texi: Mention the new module.
26665
26666 2010-12-21  Bruno Haible  <bruno@clisp.org>
26667
26668         Support for minus zero in autoconf macros.
26669         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26670         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26671         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26672         * tests/minus-zero.h: Update comments.
26673
26674 2010-12-21  Bruno Haible  <bruno@clisp.org>
26675
26676         Tests for module 'ceil'.
26677         * modules/ceil-tests: New file.
26678         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26679         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26680
26681 2010-12-21  Bruno Haible  <bruno@clisp.org>
26682
26683         Tests for module 'floor'.
26684         * modules/floor-tests: New file.
26685         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26686         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26687
26688 2010-12-21  Bruno Haible  <bruno@clisp.org>
26689
26690         math: Fix indentation.
26691         * lib/math.in.h (floorf): Fix indentation.
26692
26693 2010-12-21  Bruno Haible  <bruno@clisp.org>
26694
26695         Fix cross-compilation guesses on Solaris.
26696         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26697         not match "solaris2.10".
26698         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26699         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26700         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26701
26702 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26705         This fixes a problem observed with the latest coreutils snapshot
26706         that caused a test to fail on Solaris 8.  src/csplit.c's call
26707         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26708         earlier, instead of returning the number of bytes that would have
26709         been generated; this causes csplit to incorrectly report memory
26710         exhaustion.
26711         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26712         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26713         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26714         comments to match.
26715         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26716         Fix typo in matching older versions of Solaris: "solaris2.10"
26717         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26718         only for guessing while cross-compiling.
26719         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26720
26721 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26722
26723         ftoastr: fix comment again
26724         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26725         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26726         Also, simplify example a bit by using flags = 0.
26727
26728 2010-12-20  Bruno Haible  <bruno@clisp.org>
26729
26730         round*, trunc*: Update documentation regarding glibc.
26731         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26732         * doc/posix-functions/round.texi: Likewise.
26733         * doc/posix-functions/roundl.texi: Likewise.
26734         * doc/posix-functions/truncf.texi: Likewise.
26735         * doc/posix-functions/trunc.texi: Likewise.
26736         * doc/posix-functions/truncl.texi: Likewise.
26737
26738 2010-12-20  Bruno Haible  <bruno@clisp.org>
26739
26740         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26741         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26742         * doc/posix-functions/round.texi: Likewise.
26743         * doc/posix-functions/roundl.texi: Likewise.
26744
26745 2010-12-20  Bruno Haible  <bruno@clisp.org>
26746
26747         ttyname_r: Add missing declaration on HP-UX 11.
26748         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26749         HAVE_TTYNAME_R.
26750         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26751         declared. Set HAVE_TTYNAME_R always.
26752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26753         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26754         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26755         HAVE_TTYNAME_R.
26756         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26757
26758 2010-12-20  Bruno Haible  <bruno@clisp.org>
26759
26760         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26761         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26762         * doc/posix-functions/getlogin_r.texi: Likewise.
26763         * tests/test-getlogin.c: Include <errno.h>.
26764         (main): Avoid test failure on HP-UX 11.11.
26765         * tests/test-getlogin_r.c (main): Likewise.
26766
26767 2010-12-20  Bruno Haible  <bruno@clisp.org>
26768
26769         getlogin_r: Add missing declaration on HP-UX 11.
26770         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26771         declared also when it exists as a function.
26772         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26773
26774 2010-12-20  Bruno Haible  <bruno@clisp.org>
26775
26776         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26777         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26778         through wcrtomb.
26779
26780 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26781
26782         ftoastr: fix comment
26783         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26785
26786 2010-12-19  Bruno Haible  <bruno@clisp.org>
26787
26788         isnan: Ensure it is a macro.
26789         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26790         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26791         Solaris.
26792
26793 2010-12-19  Bruno Haible  <bruno@clisp.org>
26794
26795         ldexpl test: Fix link error on OSF/1 5.1.
26796         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26797
26798 2010-12-19  Bruno Haible  <bruno@clisp.org>
26799
26800         wctype: Make it work in C++ mode on OSF/1 5.1.
26801         * lib/wctype.in.h (iswblank): Declare but not define here.
26802         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26803         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26804         * modules/wctype (Files): Add lib/iswblank.c.
26805
26806 2010-12-19  Bruno Haible  <bruno@clisp.org>
26807
26808         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26809         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26810         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26811
26812 2010-12-19  Bruno Haible  <bruno@clisp.org>
26813
26814         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26816         _POSIX_PII_SOCKET.
26817         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26818         * doc/posix-functions/recvfrom.texi: Likewise.
26819         * doc/posix-functions/send.texi: Likewise.
26820         * doc/posix-functions/sendto.texi: Likewise.
26821
26822 2010-12-19  Bruno Haible  <bruno@clisp.org>
26823
26824         tcgetsid: Add missing declaration on OSF/1 5.1.
26825         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26826         HAVE_TCGETSID.
26827         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26828         Don't set HAVE_TCGETSID.
26829         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26830         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26831         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26832         HAVE_TCGETSID.
26833         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26834
26835 2010-12-19  Bruno Haible  <bruno@clisp.org>
26836
26837         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26838         * lib/stdio.in.h: During the include_next statement, let recursive
26839         includes of this file include only the system header file.
26840
26841 2010-12-19  Bruno Haible  <bruno@clisp.org>
26842
26843         iconv_open: Fix regression from 2010-12-04.
26844         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26845         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26846
26847 2010-12-19  Bruno Haible  <bruno@clisp.org>
26848
26849         stdbool test: Avoid a gcc warning.
26850         * tests/test-stdbool.c (main): Fail if e1 is false.
26851         Reported by Jim Meyering.
26852
26853 2010-12-19  Jim Meyering  <meyering@redhat.com>
26854
26855         setenv: restore to working order
26856         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26857         mistakenly removed.
26858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26859         HAVE_SETENV.
26860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26861         HAVE_SETENV.
26862
26863 2010-12-19  Bruno Haible  <bruno@clisp.org>
26864
26865         Document some different function declarations on OSF/1 5.1.
26866         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26867         * doc/posix-functions/inet_ntop.texi: Likewise.
26868         * doc/posix-functions/gethostname.texi: Likewise.
26869         * lib/unistd.in.h (gethostname): Update comment.
26870
26871 2010-12-19  Bruno Haible  <bruno@clisp.org>
26872
26873         doc: Mention vasprintf-posix module.
26874         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26875         the 'vasprintf-posix' module.
26876         * doc/glibc-functions/vasprintf.texi: Likewise.
26877
26878 2010-12-19  Bruno Haible  <bruno@clisp.org>
26879
26880         unsetenv: Add missing declaration on OSF/1 5.1.
26881         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26883         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26885         not HAVE_UNSETENV.
26886         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26887         HAVE_UNSETENV.
26888         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26889
26890 2010-12-19  Bruno Haible  <bruno@clisp.org>
26891
26892         setenv: Add missing declaration on OSF/1 5.1.
26893         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26895         declared. Don't set HAVE_SETENV.
26896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26897         not HAVE_SETENV.
26898         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26899         HAVE_SETENV.
26900         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26901
26902 2010-12-19  Bruno Haible  <bruno@clisp.org>
26903
26904         nl_langinfo tests: Avoid gcc warning.
26905         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26906
26907 2010-12-19  Bruno Haible  <bruno@clisp.org>
26908
26909         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26910         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26911         _GL_CXXALIAS_SYS.
26912
26913 2010-12-19  Bruno Haible  <bruno@clisp.org>
26914
26915         stdbool: Relax test.
26916         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26917         address to 'bool' work in static initializer, for compilers other than
26918         GCC.
26919
26920 2010-12-19  Bruno Haible  <bruno@clisp.org>
26921
26922         ftello: Add missing declaration on OSF/1 5.1.
26923         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26924         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26926         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26927         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26928
26929 2010-12-19  Bruno Haible  <bruno@clisp.org>
26930
26931         fseeko: Add missing declaration on OSF/1 5.1.
26932         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26935         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26936         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26937
26938 2010-12-19  Bruno Haible  <bruno@clisp.org>
26939
26940         fchdir: Add missing declaration on OSF/1 5.1.
26941         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26944         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26945         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26946
26947 2010-12-19  Bruno Haible  <bruno@clisp.org>
26948
26949         relocatable-prog-wrapper: Separate from relocatable-prog.
26950         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26951         uninstall-relocwrapper rule here.
26952         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26953         Reported by Ian Beckwith <ianb@erislabs.net>.
26954
26955 2010-12-19  Bruno Haible  <bruno@clisp.org>
26956
26957         unistr/u8-mbsnlen: Add missing dependency.
26958         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26959         Reported by Ian Beckwith <ianb@erislabs.net>.
26960
26961 2010-12-19  Bruno Haible  <bruno@clisp.org>
26962
26963         iconv: Make it possible again to use this module without 'iconv-h'.
26964         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26965         if it is not defined.
26966         Reported by Ian Beckwith <ianb@erislabs.net>.
26967
26968 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26969
26970         acl: port to Solaris 8 when copying from tmpfs to ufs
26971         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26972         error number.  Problem observed on Solaris 8 with latest
26973         coreutils, with "mv A B", where A is on a tmpfs file system and B
26974         is on a ufs file system.  This caused coreutils' mv/part-symlink
26975         test to fail.
26976
26977         tests: set fail=0 at start
26978         * tests/init.sh (setup_): Move fail=0 initialization here ...
26979         (mktempd_): ... from here, so that tests can rely on fail being
26980         set to 0 initially.  This fixes a problem in coreutils; see:
26981         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26982
26983 2010-12-18  Bruno Haible  <bruno@clisp.org>
26984
26985         memmem-simple: Stylistic changes.
26986         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26987         Fix preprocessor directive indentation.
26988
26989 2010-12-15  Pádraig Brady <P@draigBrady.com>
26990
26991         memmem, memmem-simple: reorganize and expand empty needle check
26992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26993         functional checks to memmem-simple so that one has a fully functional
26994         memmem by using just this module.
26995         Restrict the performance only check to the memmem module.
26996         Also expand the empty needle check to ensure the correct
26997         pointer is returned, not just a non NULL pointer.
26998         * doc/glibc-functions/memmem.texi: Rearrange the portability
26999         documentation to correlate with the rearranged checks.
27000         Clarify exactly how the memmem and memmem-simple modules
27001         relate to each other.
27002
27003 2010-12-15  Pádraig Brady <P@draigBrady.com>
27004             Bruno Haible  <bruno@clisp.org>
27005
27006         Improve cross-compilation guesses for uClibc.
27007         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27008         that uClibc does not have the glibc bug.
27009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27010         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27011
27012 2010-12-14  Eric Blake  <eblake@redhat.com>
27013
27014         configmake: provide fallbacks for oldest supported autotools
27015         * m4/configmake.m4: New file.
27016         * modules/configmake (Files): Ship it.
27017         (configure.ac): Use it to guarantee fallbacks.
27018
27019 2010-12-13  Pádraig Brady <P@draigBrady.com>
27020
27021         read-file: Improve handling of large files
27022         * lib/read-file.c (fread_file): Minimize realloc()s
27023         for regular files, and better manage sizes around SIZE_MAX.
27024
27025 2010-12-13  Eric Blake  <eblake@redhat.com>
27026
27027         cloexec, fcntl: relax license
27028         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27029         consent from all contributors.
27030         * modules/fcntl (License): Likewise.
27031
27032 2010-12-10  Bruno Haible  <bruno@clisp.org>
27033
27034         Tests for module 'pipe-posix'.
27035         * modules/pipe-posix-tests: New file.
27036         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27037
27038 2010-12-10  Bruno Haible  <bruno@clisp.org>
27039
27040         pipe-posix: Make it work in C++ mode.
27041         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27042         (pipe): Use common idiom, not a macro definition.
27043         * lib/pipe.c: New file.
27044         * m4/pipe.m4: New file.
27045         * modules/pipe-posix (Description): Enhance.
27046         (Files): Add lib/pipe.c, m4/pipe.m4.
27047         (configure.ac): Invoke gl_FUNC_PIPE.
27048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27049         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27050         * tests/test-unistd-c++.cc: Check the signature of pipe.
27051
27052 2010-12-10  Bruno Haible  <bruno@clisp.org>
27053
27054         Rename module 'pipe' to 'spawn-pipe'.
27055         * modules/spawn-pipe: New file, renamed from modules/pipe.
27056         (Files, configure.ac, Makefile.am): Update.
27057         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27058         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27059         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27060         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27061         "spawn-pipe.h" instead of "pipe.h".
27062         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27063         to gl_SPAWN_PIPE.
27064         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27065         (Files, Makefile.am): Update.
27066         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27067         Update.
27068         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27069         Include "spawn-pipe.h" instead of "pipe.h".
27070         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27071         * lib/javacomp.c: Likewise.
27072         * lib/javaversion.c: Likewise.
27073         * lib/pipe-filter-gi.c: Likewise.
27074         * lib/pipe-filter-ii.c: Likewise.
27075         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27076         * modules/javacomp (Depends-on): Likewise.
27077         * modules/javaversion (Depends-on): Likewise.
27078         * modules/pipe-filter-gi (Depends-on): Likewise.
27079         * modules/pipe-filter-ii (Depends-on): Likewise.
27080         * MODULES.html.sh (Executing programs): Update.
27081         * NEWS: Mention the change.
27082
27083 2010-12-10  Eric Blake  <eblake@redhat.com>
27084
27085         pipe-posix: new module
27086         * modules/pipe-posix: New file.
27087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27088         (gl_UNISTD_H): Check for declaration.
27089         * modules/unistd (Makefile.am): Substitute it.
27090         * lib/unistd.in.h (pipe): Provide it for mingw.
27091         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27092         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27093
27094 2010-12-07  Bruno Haible  <bruno@clisp.org>
27095
27096         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27097         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27098         u8_strcmp_gnu.
27099         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27100
27101 2010-12-06  Bruno Haible  <bruno@clisp.org>
27102
27103         Update internal documentation.
27104         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27105
27106 2010-12-04  Bruno Haible  <bruno@clisp.org>
27107
27108         Put more information about failed tests into the test return codes.
27109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27110         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27111         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27113         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27114         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27115         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27116         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27117         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27119         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27120         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27121         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27122         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27124         returns a bit mask.
27125         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27126         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27127         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27128         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27129         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27130         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27131         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27133         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27135         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27136         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27137         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27138         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27139         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27140         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27141         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27142         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27144         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27146         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27148         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27149         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27150         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27151         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27152         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27153         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27154         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27155         gl_PRINTF_PRECISION): Likewise.
27156         * m4/regex.m4 (gl_REGEX): Likewise.
27157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27159         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27160         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27163         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27164         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27165         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27166         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27167         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27168         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27169         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27170         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27171         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27172         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27173         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27177         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27178         enumerated value.
27179         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27180
27181 2010-12-04  Bruno Haible  <bruno@clisp.org>
27182
27183         Update for Solaris 11 2010-11.
27184         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27185         Express, released in November 2010.
27186
27187 2010-12-04  Bruno Haible  <bruno@clisp.org>
27188
27189         nproc: Relax license.
27190         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27191         and Paul Eggert.
27192         Requested by Ludovic Courtès <ludo@gnu.org>.
27193
27194 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27195
27196         utimecmp: fine-grained src to nearby coarse-grained dest
27197
27198         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27199         and the source is on a file system with higher-resolution time
27200         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27201         not work, and the time stamps are close together, the algorithm to
27202         determine the exact resolution from the read-back mtime was buggy:
27203         it had a "!=" where it should have had an "==".  This bug has been
27204         in the code ever since it was introduced to gnulib.
27205         Problem reported by Dan Jacobson in
27206         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27207
27208 2010-11-30  Bruno Haible  <bruno@clisp.org>
27209
27210         strerror_r-posix: Fix autoconf test.
27211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27212
27213 2010-11-28  Bruno Haible  <bruno@clisp.org>
27214             Paul Eggert  <eggert@cs.ucla.edu>
27215
27216         Tests for module 'getdomainname'.
27217         * modules/getdomainname-tests: New file.
27218         * tests/test-getdomainname.c: New file, based on
27219         tests/test-gethostname.c.
27220
27221 2010-11-28  Bruno Haible  <bruno@clisp.org>
27222             Paul Eggert  <eggert@cs.ucla.edu>
27223
27224         getdomainname: Use the system function when possible.
27225         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27226         (getdomainname): Replace if needed. Provide the declaration if it is
27227         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27228         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27229         (getdomainname): When the system has getdomainname, call the system
27230         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27231         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27232         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27233         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27234         the function if its second argument is of type 'int' or if it is found
27235         in libnsl.
27236         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27237         <sys/systeminfo.h> and sysinfo().
27238         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27240         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27241         HAVE_GETDOMAINNAME.
27242         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27243         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27244         * doc/glibc-functions/getdomainname.texi: Document the problems with
27245         the getdomainname declaration.
27246
27247 2010-11-28  Bruno Haible  <bruno@clisp.org>
27248
27249         sys_socket: Ensure ss_family field on AIX.
27250         * lib/sys_socket.in.h (ss_family): New macro definition.
27251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27252         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27253         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27254         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27255         * modules/sys_socket (Makefile.am): Substitute
27256         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27257         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27258
27259 2010-11-27  Bruno Haible  <bruno@clisp.org>
27260
27261         readline: Improve configure output.
27262         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27263         "checking for readline..." result understandable.
27264
27265 2010-11-27  Bruno Haible  <bruno@clisp.org>
27266
27267         *printf-posix: Detect a bug on Solaris 10/x86.
27268         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27269         for floating-point output.
27270         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27271         directive.
27272         * tests/test-snprintf-posix.h (test_function): Likewise.
27273         * tests/test-sprintf-posix.h (test_function): Likewise.
27274         * tests/test-vasprintf-posix.c (test_function): Likewise.
27275         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27276         * doc/posix-functions/printf.texi: Likewise.
27277         * doc/posix-functions/snprintf.texi: Likewise.
27278         * doc/posix-functions/sprintf.texi: Likewise.
27279         * doc/posix-functions/vfprintf.texi: Likewise.
27280         * doc/posix-functions/vprintf.texi: Likewise.
27281         * doc/posix-functions/vsnprintf.texi: Likewise.
27282         * doc/posix-functions/vsprintf.texi: Likewise.
27283         * doc/glibc-functions/obstack_printf.texi: Likewise.
27284         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27285
27286 2010-11-27  Bruno Haible  <bruno@clisp.org>
27287
27288         Fix link error when module libunistring-optional is in use.
27289         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27290         * modules/striconveha-tests (Makefile.am): Likewise.
27291
27292 2010-11-27  Bruno Haible  <bruno@clisp.org>
27293
27294         regex: Mention link dependencies.
27295         * modules/regex (Link): New section.
27296         * modules/rpmatch (Link): Likewise.
27297         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27298
27299 2010-11-27  Bruno Haible  <bruno@clisp.org>
27300
27301         ftoastr: Fix compilation error on Solaris.
27302         * lib/ftoastr.c: Include <config.h>.
27303
27304 2010-11-27  Bruno Haible  <bruno@clisp.org>
27305
27306         getloadavg: Update documentation.
27307         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27308
27309 2010-11-27  Bruno Haible  <bruno@clisp.org>
27310
27311         sys_socket: Fix test whether the functions are declared.
27312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27313         not <sys/select.h>.
27314
27315 2010-11-27  Bruno Haible  <bruno@clisp.org>
27316
27317         getpass: Make sure to get system declaration on some platforms.
27318         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27319         gl_USE_SYSTEM_EXTENSIONS.
27320         * modules/getpass (Depends-on): Add extensions.
27321
27322 2010-11-26  Bruno Haible  <bruno@clisp.org>
27323
27324         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27325         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27326         'iconv' module is present.
27327         (ICONV_CONST): New macro.
27328         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27329         ICONV_CONST.
27330         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27331         set ICONV_CONST.
27332         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27333         here.
27334         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27335         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27336         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27337         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27338         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27339         present.
27340
27341 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27342
27343         ftoastr: comment fix
27344         * lib/ftoastr.c: "little" -> "little or no" in comment
27345
27346 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27347
27348         stdint: port to GCC 4.3 + OSX + Octave
27349         On this platform, stdint.h is buggy and defines int64_t to long
27350         long int.  The replacement defined it to long int, causing
27351         problems with C++ style name mangling.  Instead, trust the system
27352         definition if INT64_MAX is defined, and likewise for the unsigned
27353         variant.   Problem reported by Jarno Rajahalme in
27354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27355         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27356         and don't mess with int64_t and INT64_MAX in this case.
27357         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27358
27359 2010-11-24  Bruno Haible  <bruno@clisp.org>
27360
27361         doc: Corrections regarding MacOS X 10.4 and 10.5.
27362         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27363         MacOS X.
27364         Reported by Simon Josefsson.
27365
27366 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27367
27368         Uninstall ".bin" files installed by relocwrapper.
27369         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27370         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27371         unless it is already there.
27372
27373 2010-11-21  Bruno Haible  <bruno@clisp.org>
27374
27375         Update for NetBSD 5.0.
27376         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27377         NetBSD; the test fails on NetBSD 5.0.
27378         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27379         about NetBSD.
27380
27381 2010-11-21  Bruno Haible  <bruno@clisp.org>
27382
27383         Update for HP-UX 11.23 and HP-UX 11.31.
27384         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27385         HP-UX.
27386
27387 2010-11-21  Bruno Haible  <bruno@clisp.org>
27388
27389         Update for MacOS X 10.5.
27390         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27391         MacOS X; the test fails on MacOS X 10.5.8.
27392         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27393         about MacOS X.
27394
27395 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27396
27397         bootstrap: add bootstrap_sync option.
27398         See discussion at
27399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27401         * build-aux/bootstrap: Accept --bootstrap-sync to update
27402         bootstrap if it is not identical to the local gnulib's
27403         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27404         enable this by default.  Accept --no-bootstrap-sync to disable
27405         it.
27406
27407 2010-11-20  Bruno Haible  <bruno@clisp.org>
27408
27409         Ensure that <features.h> is included before __GLIBC__ is tested.
27410         * lib/printf-parse.h: Include <features.h>.
27411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27412         Reported by Mike Frysinger <vapier@gentoo.org>.
27413
27414         Ensure that <features.h> is included before __GLIBC__ is tested.
27415         * lib/wchar.in.h: Include <features.h>.
27416         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27417         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27418         Reported by Mike Frysinger <vapier@gentoo.org>.
27419
27420         Ensure that <features.h> is included before __GLIBC__ is tested.
27421         * lib/arpa_inet.in.h: Include <features.h>.
27422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27423         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27424         Reported by Mike Frysinger <vapier@gentoo.org>.
27425
27426         Ensure that <features.h> is included before __GLIBC__ is tested.
27427         * build-aux/link-warning.h: Include <features.h>.
27428         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27429         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27430         Reported by Mike Frysinger <vapier@gentoo.org>.
27431
27432         Ensure that <features.h> is included before __GLIBC__ is tested.
27433         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27434         Reported by Mike Frysinger <vapier@gentoo.org>.
27435
27436 2010-11-20  Bruno Haible  <bruno@clisp.org>
27437
27438         memmem: Fix autoconf test.
27439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27440
27441 2010-11-20  Bruno Haible  <bruno@clisp.org>
27442
27443         Port to uClibc.
27444         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27445         * lib/fcntl.in.h: Likewise.
27446         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27447         * lib/mbrtowc.c (mbrtowc): Likewise.
27448         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27449         * lib/strerror_r.c: Likewise.
27450         * lib/unistr/u8-strnlen.c: Likewise.
27451         * lib/vasnprintf.c (decimal_point_char): Likewise.
27452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27453         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27455         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27456         * tests/test-sigaction.c (handler, main): Likewise.
27457         * lib/freading.h: Treat uClibc like a non-glibc platform.
27458         * lib/freading.c: Likewise.
27459         * lib/gettext.h: Likewise.
27460         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27461         Likewise.
27462         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27463         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27464         * lib/propername.c (proper_name_utf8): Likewise.
27465         * lib/spawn.in.h: Likewise.
27466         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27467         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27468         mem_cd_iconveh_internal): Likewise.
27469         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27470         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27471         strstr, strcasestr): Likewise.
27472         * lib/unicodeio.c (unicode_to_mb): Likewise.
27473         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27474         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27475         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27476         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27477         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27478         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27479         * lib/unistr/u8-stpncpy.c: Likewise.
27480         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27481         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27482         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27483         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27484         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27485         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27486         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27489         Likewise.
27490         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27491         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27492         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27493         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27495         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27496         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27497         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27498         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27499         * tests/test-striconveha.c (main): Likewise.
27500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27501         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27502         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27503         * doc/posix-functions/getline.texi: Likewise.
27504         Reported by Mike Frysinger <vapier@gentoo.org>.
27505
27506 2010-11-20  Bruno Haible  <bruno@clisp.org>
27507
27508         nproc: Fix condition.
27509         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27510         HAVE_PTHREAD_AFFINITY_NP.
27511
27512 2010-11-20  Bruno Haible  <bruno@clisp.org>
27513
27514         Fix a comment.
27515         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27516
27517 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27518
27519         ftoastr: don't assume snprintf
27520         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27521         Implement a subset of snprintf here, by using sprintf safely.
27522         * modules/ftoastr (Depends-on): Remove snprintf.
27523
27524 2010-11-19  Jim Meyering  <meyering@redhat.com>
27525
27526         test-rename.h: fix compilation failure
27527         * tests/test-rename.h (test_rename): Add omitted "}".
27528
27529 2010-11-17  Jim Meyering  <meyering@redhat.com>
27530
27531         maint.mk: add a URL discussing the no-@acronym policy
27532         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27533
27534 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27535
27536         ftoastr: depend on snprintf, improve comments
27537         * lib/ftoastr.c: Also mention Loitsch's draft.
27538         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27539         needed in the current implementation, but it might simplify
27540         speeding up the code later.
27541         * modules/ftoastr: Depend on snprintf; this improves portability.
27542         Suggested by Bruno Haible in the same email.
27543
27544         ftoastr: port to hosts lacking strtof and strtold
27545         Problem reported by Bruno Haible in
27546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27547         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27548         environment and strtold (and presumably strtof) are not available.
27549         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27550         (configure.ac): Require gl_C99_STRTOLD.
27551
27552 2010-11-18  Bruno Haible  <bruno@clisp.org>
27553
27554         c-strtold: Avoid link error on AIX 7.
27555         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27556         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27557         (gl_C_STRTOLD): Test whether strtold_l exists.
27558         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27559
27560 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27561
27562         intprops: new macro INT_BITS_STRLEN_BOUND
27563         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27564         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27565         not exposed.  Also, it uses a slightly tighter bound than before;
27566         though this makes no practical difference, we might as well be as
27567         tight as we easily can.
27568
27569         ftoastr: new module, for lossless conversion of floats to short strings
27570         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27571         * modules/ftoastr: New files.
27572
27573 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27574
27575         bootstrap: port to Solaris sed
27576         * build-aux/bootstrap (get_version): Port to Solaris sed.
27577         See Ralf Wildenhues's note in
27578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27579
27580 2010-11-14  Jim Meyering  <meyering@redhat.com>
27581
27582         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27583         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27584         and move definition closer to sole use.
27585
27586 2010-11-13  Jim Meyering  <meyering@redhat.com>
27587
27588         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27589         Now we require at least autoconf-2.59, which means the work-around
27590         is no longer needed.
27591         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27592         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27593         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27594         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27595         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27596
27597 2010-11-13  Bruno Haible  <bruno@clisp.org>
27598
27599         rename, renameat: Avoid test failures at NFS mounted locations.
27600         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27601         functions.
27602         (test_rename): Use assert_nonexistent.
27603         * tests/test-rename.c: Include <dirent.h>.
27604         * tests/test-renameat.c: Likewise.
27605         Reported by Gary V. Vaughan <gary@gnu.org>.
27606
27607         rename, renameat: Document Linux bug with NFS
27608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27609         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27610         * doc/posix-functions/renameat.texi: Likewise.
27611         Suggested by Eric Blake.
27612
27613 2010-11-13  Bruno Haible  <bruno@clisp.org>
27614
27615         rename test: Add comments.
27616         * tests/test-rename.h (test_rename): Add structure and comments.
27617
27618 2010-11-13  Eric Blake  <eblake@redhat.com>
27619
27620         maintainer-makefile: cover a few more files
27621         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27622         scripts generated within C files, for libvirt.
27623
27624 2010-11-13  Bruno Haible  <bruno@clisp.org>
27625
27626         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27627         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27628         character, return the number of bytes that belong together, not always
27629         1.
27630         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27631         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27632         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27633         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27634         number of bytes of an invalid character.
27635         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27636         (main): Invoke it.
27637         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27638         results.
27639         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27640         malformed byte sequences.
27641         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27642         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27643         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27644         Reported by Ben Pfaff and Paolo Bonzini.
27645
27646 2010-11-13  Bruno Haible  <bruno@clisp.org>
27647
27648         openat: Work around glibc bug with fchownat() and empty file names.
27649         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27650         (gl_FUNC_FCHOWNAT): Invoke it.
27651         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27652         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27653         Reported by Gary V. Vaughan <gary@gnu.org>.
27654
27655 2010-11-13  Bruno Haible  <bruno@clisp.org>
27656
27657         openat: Ensure autoconf macro ordering.
27658         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27659         gl_USE_SYSTEM_EXTENSIONS.
27660         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27661
27662 2010-11-13  Bruno Haible  <bruno@clisp.org>
27663
27664         Update comments.
27665         * lib/unistr/u8-check.c: Update file name in comments.
27666         * lib/unistr/u8-mblen.c: Likewise.
27667         * lib/unistr/u8-prev.c: Likewise.
27668         * lib/unistr/u8-strmblen.c: Likewise.
27669         * lib/unistr/u8-strmbtouc.c: Likewise.
27670
27671 2010-11-13  Jim Meyering  <meyering@redhat.com>
27672
27673         tests: avoid test failure on Solaris 10 due to lack of PATH export
27674         * tests/test-update-copyright.sh: Don't forget to export PATH.
27675
27676         init.sh: ensure that IFS is defined, just in case...
27677         * tests/init.sh (setup_): Ensure that IFS is defined,
27678         so that saving and restoring it works as expected.  This
27679         appears to be useful at least for an old version of dash
27680         from a long time ago (RH 6).  See here for details:
27681         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27682
27683         maint.mk: tighten "test a == b" check
27684         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27685         test to files that contain something like #!/bin/sh.
27686         Without this, coreutils would get two false positives in
27687         the comments of C source files.
27688
27689 2010-11-12  Eric Blake  <eblake@redhat.com>
27690
27691         bootstrap: fix typo in previous attempt
27692         * build-aux/bootstrap (buildreq): Correct the grouping.
27693         Reported by Paul Eggert.
27694
27695         maintainer-makefile: prohibit test x == x
27696         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27697         Based on a report by Matthias Bolte.
27698
27699         bootstrap: allow FreeBSD gzip
27700         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27701         which has no '.' and goes to stderr.
27702         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27703         Reported by Matthias Bolte.
27704
27705         maintainer-makefile: check for i18n setup
27706         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27707         will likely work.
27708
27709 2010-11-12  Bruno Haible  <bruno@clisp.org>
27710
27711         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27712         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27713         * lib/nanosleep.c (nanosleep): Likewise.
27714
27715 2010-11-11  Bruno Haible  <bruno@clisp.org>
27716
27717         fcntl-h: Fix for use of C++ on glibc systems.
27718         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27719         also on glibc systems in C++ mode.
27720         Reported by Gary V. Vaughan <gary@gnu.org>.
27721
27722 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27723
27724         mknod: avoid false failure with dash
27725         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27726
27727 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27728
27729         unlink: Fix "is it should" typo in diagnostic.
27730         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27732
27733 2010-11-11  Bruno Haible  <bruno@clisp.org>
27734
27735         Tests for module 'strerror_r-posix'.
27736         * modules/strerror_r-posix-tests: New file.
27737         * tests/test-strerror_r.c: New file.
27738         * tests/test-string-c++.cc: Check the signature of strerror_r.
27739
27740         New module 'strerror_r-posix'.
27741         * lib/string.in.h (strerror_r): New declaration.
27742         * lib/strerror_r.c: New file.
27743         * m4/strerror_r.m4: New file.
27744         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27745         of strerror_r.
27746         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27747         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27748         * modules/strerror_r-posix: New file.
27749         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27750         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27751         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27752         portability problems.
27753
27754 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27755
27756         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27757         line is also considered for output. Quoted function name in shell
27758         command, so temporary files for functions like MyClass::operator()
27759         are removed correctly without errors.
27760
27761 2010-11-09  Bruno Haible  <bruno@clisp.org>
27762
27763         * doc/posix-functions/strerror.texi: List more failing platforms.
27764
27765         * doc/posix-functions/strerror.texi: Add a comment.
27766
27767 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27768
27769         fdopendir: fix bug on MacOS X when low on file descriptors
27770
27771         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27772         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27773         All callers changed.
27774         (fdopendir): Invoke save_cwd at the top level, not after using
27775         multiple dup() calls to use up file descriptors.  Then retry
27776         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27777         less than the maximum number of open file descriptors, because
27778         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27779         on Mac OS X 10.6.4 for tar 1.24
27780         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27781         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27782         and for tar 1.25
27783         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27784
27785 2010-11-07  Bruno Haible  <bruno@clisp.org>
27786
27787         vasnprintf: Support I flag on glibc systems.
27788         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27789         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27790         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27791         snprintf function.
27792         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27793         glibc systems.
27794         * tests/test-vasnprintf-posix3.c: New file.
27795         * modules/vasnprintf-posix-tests (Files): Add it.
27796         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27797
27798 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27799
27800         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27801         * MODULES.html.sh: For compiler warnings, use name
27802         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27803
27804 2010-11-05  Eric Blake  <eblake@redhat.com>
27805
27806         ceil, floor: avoid spurious failure with icc
27807         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27808         [denormals-as-zero] when optimizing without -mieee-fp option.
27809         * tests/test-floorf2.c (floorf_reference): Likewise.
27810         * tests/test-ceilf1.c (dummy): New function.
27811         (main): Use it to outsmart icc's optimization.
27812         * tests/test-floorf1.c (dummy, main): Likewise.
27813
27814         tests: require working signbit
27815         * modules/ceilf-tests (Depends-on): Add signbit.
27816         * modules/ceill-tests (Depends-on): Likewise.
27817         * modules/floorf-tests (Depends-on): Likewise.
27818         * modules/floorl-tests (Depends-on): Likewise.
27819         * modules/round-tests (Depends-on): Likewise.
27820         * modules/roundf-tests (Depends-on): Likewise.
27821         * modules/roundl-tests (Depends-on): Likewise.
27822         * modules/trunc-tests (Depends-on): Likewise.
27823         * modules/truncf-tests (Depends-on): Likewise.
27824         * modules/truncl-tests (Depends-on): Likewise.
27825
27826         strtod: work around icc bug
27827         * lib/strtod.c (minus_zero): Define to working value.
27828         (strtod): Use it to avoid icc bug.
27829
27830         copysign: enhance tests
27831         * modules/copysign-tests (Files): Add minus-zero.h.
27832         * tests/test-copysign.c (main): Also test zeros.
27833
27834 2010-11-04  Eric Blake  <eblake@redhat.com>
27835
27836         ceil, floor, round, trunc: enhance tests of -0
27837         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27838         * tests/test-ceill.c (main): Likewise.
27839         * tests/test-floorf1.c (main): Likewise.
27840         * tests/test-floorl.c (main): Likewise.
27841         * tests/test-round1.c (main): Likewise.
27842         * tests/test-roundf1.c (main): Likewise.
27843         * tests/test-roundl.c (main): Likewise.
27844         * tests/test-trunc1.c (main): Likewise.
27845         * tests/test-truncf1.c (main): Likewise.
27846         * tests/test-truncl.c (main): Likewise.
27847
27848 2010-11-04  Eric Blake  <eblake@redhat.com>
27849
27850         frexp, tests: work around ICC bug with -zero
27851         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27852         works with more compilers.
27853         * tests/minus-zero.h: New file.
27854         * modules/ceilf-tests (Files): Include it.
27855         * modules/ceill-tests (Files): Likewise.
27856         * modules/floorf-tests (Files): Likewise.
27857         * modules/floorl-tests (Files): Likewise.
27858         * modules/frexp-nolibm-tests (Files): Likewise.
27859         * modules/frexp-tests (Files): Likewise.
27860         * modules/frexpl-nolibm-tests (Files): Likewise.
27861         * modules/frexpl-tests (Files): Likewise.
27862         * modules/isnan-tests (Files): Likewise.
27863         * modules/isnand-nolibm-tests (Files): Likewise.
27864         * modules/isnand-tests (Files): Likewise.
27865         * modules/isnanf-nolibm-tests (Files): Likewise.
27866         * modules/isnanf-tests (Files): Likewise.
27867         * modules/isnanl-nolibm-tests (Files): Likewise.
27868         * modules/isnanl-tests (Files): Likewise.
27869         * modules/round-tests (Files): Likewise.
27870         * modules/roundf-tests (Files): Likewise.
27871         * modules/roundl-tests (Files): Likewise.
27872         * modules/ldexpl-tests (Files): Likewise.
27873         * modules/signbit-tests (Files): Likewise.
27874         * modules/snprintf-posix-tests (Files): Likewise.
27875         * modules/sprintf-posix-tests (Files): Likewise.
27876         * modules/strtod-tests (Files): Likewise.
27877         * modules/trunc-tests (Files): Likewise.
27878         * modules/truncf-tests (Files): Likewise.
27879         * modules/truncl-tests (Files): Likewise.
27880         * modules/vsnprintf-posix-tests (Files): Likewise.
27881         * modules/vsprintf-posix-tests (Files): Likewise.
27882         * modules/vasnprintf-posix-tests (Files): Likewise.
27883         * modules/vasprintf-posix-tests (Files): Likewise.
27884         * tests/test-ceilf1.c (main): Use it.
27885         * tests/test-ceill.c (main): Likewise.
27886         * tests/test-floorf1.c (main): Likewise.
27887         * tests/test-floorl.c (main): Likewise.
27888         * tests/test-frexp.c (main): Likewise.
27889         * tests/test-frexpl.c (main): Likewise.
27890         * tests/test-isnan.c (main): Likewise.
27891         * tests/test-isnand.h (main): Likewise.
27892         * tests/test-isnanf.h (main): Likewise.
27893         * tests/test-isnanl.h (main): Likewise.
27894         * tests/test-ldexpl.c (main): Likewise.
27895         * tests/test-round.c (main): Likewise.
27896         * tests/test-roundf.c (main): Likewise.
27897         * tests/test-roundl.c (main): Likewise.
27898         * tests/test-signbit.c (test_signbitf, test_signbitd)
27899         (test_signbitl): Likewise.
27900         * tests/test-snprintf-posix.h (test_function): Likewise.
27901         * tests/test-sprintf-posix.h (test_function): Likewise.
27902         * tests/test-strtod.c (main): Likewise.
27903         * tests/test-trunc1.c (main): Likewise.
27904         * tests/test-truncf1.c (main): Likewise.
27905         * tests/test-truncl.c (main): Likewise.
27906
27907         isnanl: work around icc bug
27908         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27909
27910 2010-11-03  Eric Blake  <eblake@redhat.com>
27911
27912         tests: fix compiler warnings
27913         * tests/test-getopt.h (test_getopt): Fix condition.
27914         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27915         * tests/test-pipe2.c (main): Likewise.
27916         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27917
27918         utimens: fix broken m4 test
27919         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27920
27921 2010-10-28  Bruno Haible  <bruno@clisp.org>
27922
27923         posix_spawn*, getdtablesize: Relax license.
27924         * modules/posix_spawn (License): Change to LGPLv2+.
27925         * modules/posix_spawnp (License): Likewise.
27926         * modules/posix_spawn-internal (License): Likewise.
27927         * modules/posix_spawnattr_init (License): Likewise.
27928         * modules/posix_spawnattr_getflags (License): Likewise.
27929         * modules/posix_spawnattr_setflags (License): Likewise.
27930         * modules/posix_spawnattr_getpgroup (License): Likewise.
27931         * modules/posix_spawnattr_setpgroup (License): Likewise.
27932         * modules/posix_spawnattr_getschedparam (License): Likewise.
27933         * modules/posix_spawnattr_setschedparam (License): Likewise.
27934         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27935         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27936         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27937         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27938         * modules/posix_spawnattr_getsigmask (License): Likewise.
27939         * modules/posix_spawnattr_setsigmask (License): Likewise.
27940         * modules/posix_spawnattr_destroy (License): Likewise.
27941         * modules/posix_spawn_file_actions_init (License): Likewise.
27942         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27943         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27944         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27945         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27946         * modules/getdtablesize (License): Likewise.
27947         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27948
27949 2010-10-26  Bruno Haible  <bruno@clisp.org>
27950
27951         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27952         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27953         Cygwin and mingw.
27954         Suggested by Eric Blake.
27955
27956 2010-10-26  Bruno Haible  <bruno@clisp.org>
27957
27958         stdio: Work around compilation error due to renameat() on Solaris 10.
27959         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27960         * lib/renameat.c: Don't include <unistd.h> here.
27961         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27962         Reported by Paul Eggert and Eric Blake.
27963
27964 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27965
27966         renameat: port to Solaris 10, which declares renameat in unistd.h
27967
27968         * lib/renameat.c: Include unistd.h before stdio.h, because
27969         Solaris 10 declares renameat in unistd.h.  Problem encountered
27970         when building GNU tar 1.24 on Solaris 10.
27971
27972 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27973
27974         fdopendir: fix C89 compilation
27975         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27976         compilers.
27977
27978 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27979
27980         inttostr: simplify by removing unnecessary redundancy
27981         * lib/anytostr.c: Don't include verify.h.
27982         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27983         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27984         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27985         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27986         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27987         Likewise.
27988         * modules/inttostr (Depends-on): Remove 'verify'.
27989
27990 2010-10-23  Bruno Haible  <bruno@clisp.org>
27991
27992         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27993         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27994         Reported by Eric Blake.
27995
27996 2010-10-23  Bruno Haible  <bruno@clisp.org>
27997
27998         Tests: Fix LOCALE_JA on MirBSD 10.
27999         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28000         to an UTF-8 locale.
28001         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28002         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28003         Reported by Eric Blake.
28004
28005 2010-10-21  Bruno Haible  <bruno@clisp.org>
28006
28007         nl_langinfo test: Avoid test failure on NetBSD 5.
28008         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28009         Reported by Eric Blake.
28010
28011 2010-10-21  Eric Blake  <eblake@redhat.com>
28012
28013         c-stack: work around libsigsegv 2.8 bug
28014         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28015         overflow on at least PowerPC64.
28016
28017 2010-10-17  Bruno Haible  <bruno@clisp.org>
28018
28019         userspec: Drop redundant file.
28020         * modules/userspec (Files): Remove lib/inttostr.h.
28021
28022 2010-10-17  Bruno Haible  <bruno@clisp.org>
28023
28024         nl_langinfo tests: Silence some warnings.
28025         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28026         Reported by Jim Meyering.
28027
28028 2010-10-17  Bruno Haible  <bruno@clisp.org>
28029
28030         Make use of GCC's attribute __alloc_size__.
28031         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28032         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28033         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28034         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28035         __alloc_size__.
28036         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28037         Suggested by Jim Meyering.
28038
28039 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28040
28041         bootstrap: anchor .gitignore entries.
28042         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28043         with...
28044         (insert_vc_ignore): ... this new function, which prepends `/' to
28045         all .gitignore entries before passing them to
28046         insert_sorted_if_absent.
28047
28048 2010-10-16  Bruno Haible  <bruno@clisp.org>
28049
28050         nextafter: Fix configure check.
28051         * modules/nextafter (configure.ac): Correct expected prototype.
28052
28053 2010-10-16  Bruno Haible  <bruno@clisp.org>
28054
28055         termios: Update documentation.
28056         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28057
28058 2010-10-16  Bruno Haible  <bruno@clisp.org>
28059
28060         tests: Make them compile with TinyCC.
28061         * tests/test-strstr.c (main): Remove parentheses around array
28062         initializer.
28063
28064 2010-10-15  Eric Blake  <eblake@redhat.com>
28065
28066         ignore-value: make header idempotent
28067         * lib/ignore-value.h: Add double-inclusion guards.
28068         Reported by Stefan Berger.
28069
28070 2010-10-15  Jim Meyering  <meyering@redhat.com>
28071
28072         GNUmakefile: handle "stable" target, not "major"
28073         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28074         lists in maint.mk and announce-gen.  Without this, "make stable"
28075         would fail to ensure that $(VERSION) is up to date.
28076
28077 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28078
28079         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28080         & co.
28081
28082 2010-10-14  Bruno Haible  <bruno@clisp.org>
28083
28084         vasnprintf: Don't set errno to 0.
28085         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28086         block that sets it to 0.
28087         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28088
28089 2010-10-14  Bruno Haible  <bruno@clisp.org>
28090
28091         socketlib: Fix.
28092         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28093         gl_PREREQ_SYS_H_WINSOCK2.
28094         Reported by Ian Beckwith <ianb@erislabs.net>.
28095
28096 2010-10-13  Jim Meyering  <meyering@redhat.com>
28097
28098         test-select-stdin.c: avoid warn_unused_result warnings
28099         * tests/test-select-stdin.c: Include "macros.h".
28100         ASSERT that read and fflush succeed.
28101
28102 2010-10-13  Jim Meyering  <meyering@redhat.com>
28103
28104         git-version-gen: do require git-VC'd files in cwd
28105         * build-aux/git-version-gen: Reject a git version string
28106         if there are no commits associated with the current directory.
28107         This avoids an unlikely false-positive (unrelated dir whose parent
28108         repository also contains a tag matching v*), as pointed out
28109         by Giuseppe Scrivano in
28110         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28111
28112 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28113
28114         argv-iter: omit nonconforming declaration
28115         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28116         enum arg_iter_err declaration, which doesn't conform to C99.
28117         Solaris 10 cc warns about this.
28118
28119 2010-10-13  Eric Blake  <eblake@redhat.com>
28120
28121         termios: fix compilation on mingw
28122         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28123         (gl_TERMIOS_H): Adjust it on mingw.
28124         * modules/termios (Makefile.am): Substitute new key.
28125         * lib/termios.in.h (includes): Make include_next conditional.
28126         * doc/posix-headers/termios.texi (termios.h): Update
28127         documentation.
28128         Reported by Daniel P. Berrange.
28129
28130 2010-10-13  Jim Meyering  <meyering@redhat.com>
28131
28132         git-version-gen: don't require that .git/ be in the current dir
28133         * build-aux/git-version-gen: Adjust this script so that it works
28134         when run from any working directory beneath the top-level .git/-
28135         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28137
28138         test-select: avoid warn_unused_result warnings
28139         * tests/test-select.c: Include "macros.h".
28140         ASSERT that each call to read, write, and pipe succeeds.
28141         While not technically required, also check each "close".
28142         * modules/select-tests (Files): Add tests/macros.h.
28143
28144         test-symlinkat: remove declaration of unused local
28145         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28146
28147         test-inttostr: avoid shadowing warnings
28148         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28149         and use malloc rather than the stack for the same reason as
28150         mentioned in the comment justifying the other allocation.
28151
28152 2010-10-11  Bruno Haible  <bruno@clisp.org>
28153
28154         stdlib: Allow multiple gnulib generated replacements to coexist.
28155         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28156         Reported by Sam Steingold <sds@gnu.org>.
28157
28158 2010-10-11  Jim Meyering  <meyering@redhat.com>
28159
28160         fix a documentation typo
28161         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28162
28163 2010-10-11  Eric Blake  <eblake@redhat.com>
28164
28165         futimens: work around Solaris 11 bug
28166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28167         * tests/test-futimens.h (test_futimens): Enhance, rather than
28168         weaken test.
28169         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28170
28171 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28172
28173         Indentation.
28174         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28175         higher-level operators more to the left.
28176
28177 2010-10-11  Jim Meyering  <meyering@redhat.com>
28178
28179         test-futimens: avoid unwarranted test failure on Solaris 5.11
28180         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28181         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28182         because it tries to dereference the NULL name argument.
28183
28184 2010-10-11  Bruno Haible  <bruno@clisp.org>
28185
28186         Indentation.
28187         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28188         indentation.
28189
28190 2010-10-11  Jim Meyering  <meyering@redhat.com>
28191
28192         spawn.in.h: make indentation consistent with parentheses
28193         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28194         Make indentation consistent with parentheses.
28195
28196 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28197
28198         Fix mismatched parens in previous commit
28199         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28200         parens.
28201
28202 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28203
28204         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28205
28206         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28207         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28208         * lib/malloca.c: Include "verify.h".
28209         (verify1): Remove, replacing with a verify call.
28210         * lib/relocwrapper.c (verify1): Likewise.
28211         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28212         Likewise.
28213         * modules/malloca (Depends-on): Add 'verify'.
28214         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28215         * modules/vasnprintf (Depends-on): Add 'verify'.
28216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28223
28224         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28225
28226         Formerly the style was sometimes 2*X - 1, because the C standard
28227         was wrongly thought to disallow ?: in integral constant expressions.
28228         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28229         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28230         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28231         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28232         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28233         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28234         verify that time_t cannot be floating.
28235
28236 2010-10-08  Eric Blake  <eblake@redhat.com>
28237
28238         time: enforce recent POSIX ruling that time_t is integral
28239         * lib/time.in.h (__time_t_must_be_integral): Detect any
28240         problematic systems, allowing the rest of gnulib to assume POSIX.
28241
28242 2010-10-08  Jim Meyering  <meyering@redhat.com>
28243
28244         fdopendir: fix a bug on systems lacking openat and /proc support
28245         OpenBSD 4.7 is one such system.  The most noticeable effect was
28246         failure of any application making nontrivial use of fts: rm, du,
28247         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28248           ./rm: traversal failed: `a': Bad file descriptor
28249         Debugging that, you see that even though FD 6 was closed just
28250         prior to the opendir call in fd_clone_opendir, its resulting
28251         dir->dd_fd was 8, rather than the expected value of 6:
28252
28253         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28254         93                close (fd);
28255         (gdb) n
28256         94                dir = fd_clone_opendir (dupfd);
28257         (gdb) n
28258         95                saved_errno = errno;
28259         (gdb) p dir->dd_fd
28260         $11 = 8
28261
28262         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28263         The problem is that on OpenBSD, fd_clone_opendir has to resort
28264         to using the old-style save/restore CWD mechanism, due to its
28265         lack of openat/proc support, and *that* would steal the FD (6)
28266         that opendir was supposed to use.
28267
28268         The fix is to squirrel away the desired FD so that save_cwd uses a
28269         different one, and then free the dest FD right before calling opendir.
28270         That guarantees opendir will use the required file descriptor.
28271
28272         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28273
28274 2010-10-08  Bruno Haible  <bruno@clisp.org>
28275
28276         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28277         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28278
28279 2010-10-08  Bruno Haible  <bruno@clisp.org>
28280
28281         nanosleep: Make replacement POSIX compliant.
28282         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28283         is out of range.
28284         Reported by Jim Meyering.
28285
28286 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28287
28288         bootstrap: add hook for altering gnulib.mk, for Bison
28289         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28290         the Bison bootstrapping process can rewrite file names and variables
28291         in this file before later parts of 'bootstrap' use the file.
28292         Bison wants to include lib/gnulib.mk from the top-level makefile,
28293         so it needs the file names in this file to be relative to the top
28294         level, not relative to lib; plus it needs variable names to be
28295         rewritten.
28296         (slurp): Use the new function.
28297
28298         bootstrap: reformat for readability
28299         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28300
28301 2010-10-08  Eric Blake  <eblake@redhat.com>
28302
28303         docs: update cygwin progress
28304         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28305         1.7.7.
28306         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28307         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28308         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28309         * doc/posix-functions/carg.texi (carg): Likewise.
28310         * doc/posix-functions/cargf.texi (cargf): Likewise.
28311         * doc/posix-functions/casin.texi (casin): Likewise.
28312         * doc/posix-functions/casinf.texi (casinf): Likewise.
28313         * doc/posix-functions/casinh.texi (casinh): Likewise.
28314         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28315         * doc/posix-functions/catan.texi (catan): Likewise.
28316         * doc/posix-functions/catanf.texi (catanf): Likewise.
28317         * doc/posix-functions/catanh.texi (catanh): Likewise.
28318         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28319         * doc/posix-functions/ccos.texi (ccos): Likewise.
28320         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28321         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28322         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28323         * doc/posix-functions/cexp.texi (cexp): Likewise.
28324         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28325         * doc/posix-functions/cimag.texi (cimag): Likewise.
28326         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28327         * doc/posix-functions/clog.texi (clog): Likewise.
28328         * doc/posix-functions/clogf.texi (clogf): Likewise.
28329         * doc/posix-functions/conj.texi (conj): Likewise.
28330         * doc/posix-functions/conjf.texi (conjf): Likewise.
28331         * doc/posix-functions/cpow.texi (cpow): Likewise.
28332         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28333         * doc/posix-functions/cproj.texi (cproj): Likewise.
28334         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28335         * doc/posix-functions/creal.texi (creal): Likewise.
28336         * doc/posix-functions/crealf.texi (crealf): Likewise.
28337         * doc/posix-functions/csin.texi (csin): Likewise.
28338         * doc/posix-functions/csinf.texi (csinf): Likewise.
28339         * doc/posix-functions/csinh.texi (csinh): Likewise.
28340         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28341         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28342         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28343         * doc/posix-functions/ctan.texi (ctan): Likewise.
28344         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28345         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28346         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28347         * doc/posix-headers/complex.texi (complex.h): Likewise.
28348
28349 2010-10-07  Jim Meyering  <meyering@redhat.com>
28350
28351         parse-datetime: avoid compilation failure on OpenBSD 4.7
28352         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28353         This works around a compilation failure on OpenBSD 4.7:
28354         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28355
28356 2010-10-07  Eric Blake  <eblake@redhat.com>
28357
28358         docs: update cygwin progress
28359         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28360         1.7.6.
28361         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28362         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28363         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28364         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28365         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28366         Likewise.
28367         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28368         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28369         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28370         Likewise.
28371         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28372         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28373         Likewise.
28374         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28375         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28376         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28377         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28378         Likewise.
28379         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28380         Likewise.
28381         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28382
28383         docs: update parse-datetime history
28384         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28385         documentation of this function's history and alternatives.
28386
28387         cygwin: use more robust version check
28388         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28389         exclude an eventual cygwin 1.9.1.
28390         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28392         (gl_FUNC_STRCASESTR): Likewise.
28393         Reported by Bruno Haible.
28394
28395 2010-10-06  Bruno Haible  <bruno@clisp.org>
28396
28397         string, sys_select: Avoid #including large headers unless necessary.
28398         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28399         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28400         OSF/1, BeOS, Haiku.
28401         Reported by Jim Meyering.
28402
28403 2010-10-05  Eric Blake  <eblake@redhat.com>
28404
28405         memmem, strstr, strcasestr: fix bug with long periodic needle
28406         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28407         periodic needle having false positive.
28408         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28409         and cygwin 1.7.7.
28410         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28412         (gl_FUNC_STRCASESTR): Likewise.
28413         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28414         * tests/test-memmem.c (main): Expose the bug.
28415         * tests/test-strcasestr.c (main): Likewise.
28416         * tests/test-strstr.c (main): Likewise.
28417         * tests/test-c-strcasestr.c (main): Likewise.
28418         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28419         * doc/posix-functions/strstr.texi (strstr): Likewise.
28420         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28421         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28422
28423 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28424
28425         parse-datetime: do some more renaming
28426         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28427         parse_datetime, not get_date.  Mention the renaming.
28428         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28429         in comments.
28430         * m4/bison.m4: Likewise.
28431
28432 2010-10-05  Eric Blake  <eblake@redhat.com>
28433
28434         parse-datetime: better name than get_date
28435         * NEWS: Reword the deprecation notice.
28436         * modules/get_date: Rename to modules/parse-datetime.
28437         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28438         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28439         * lib/get_date.y: Rename to lib/parse-datetime.y.
28440         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28441         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28442         * doc/getdate.texi: Provide fallback wrapper.
28443         * lib/getdate.h: Move guts, and wrap...
28444         * lib/parse-datetime.h: ...new file.
28445         * lib/parse-datetime.y (get_date): Rename...
28446         (parse_datetime): ...to this.
28447         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28448         (gl_PARSE_DATETIME): ...to this.
28449         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28450         documentation.
28451         * modules/getdate (Files): Provide fallback docs and header.
28452         (Notice, Depends-on): Update references.
28453         * tests/test-parse-datetime.c: Likewise.
28454         * DEPENDENCIES: Likewise.
28455         * MODULES.html.sh (Date and time <time.h>): Likewise.
28456         * doc/parse-datetime.texi (Date input formats)
28457         (Authors of parse_datetime): Likewise.
28458         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28459         (Include): Likewise.
28460         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28461         * gnulib-tool: Likewise.
28462         * m4/bison.m4 (gl_BISON): Likewise.
28463         Suggested by Bruno Haible.
28464
28465 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28466
28467         more ports to Solaris tr, which needs [] around ranges
28468         * gnulib-tool: Solaris tr needs [] around ranges.
28469         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28470         * tests/test-pipe-filter-gi1.c (main): Likewise.
28471         * tests/test-pipe-filter-ii1.c (main): Likewise.
28472
28473 2010-10-05  Eric Blake  <eblake@redhat.com>
28474
28475         bootstrap: fix Solaris regression
28476         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28477         around ranges.
28478         Reported by Pádraig Brady.
28479
28480         bootstrap: work with pkg-config
28481         * build-aux/bootstrap (check_versions): Also transliterate - in
28482         prerequisite name.
28483         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28484         prerequisites that were already found, to avoid confusion.
28485         Reported by Justin Clift.
28486
28487         faccessat: remove unused wrappers
28488         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28489         presence of these wrappers dragged in -lgen on Solaris.
28490         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28491
28492 2010-10-05  Jim Meyering  <meyering@redhat.com>
28493
28494         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28495         * Makefile (sc_pragma_columns): New syntax-check rule.
28496
28497 2010-10-04  Bruno Haible  <bruno@clisp.org>
28498
28499         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28500         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28501         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28502         Reported by Bruce Korb and Eric Blake.
28503
28504 2010-10-04  Bruno Haible  <bruno@clisp.org>
28505
28506         threadlib: Make option --with-libpth-prefix work.
28507         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28508         use $LIBPTH, not just -lpth.
28509
28510 2010-10-04  Bruno Haible  <bruno@clisp.org>
28511
28512         Avoid line length limitation from HP NonStop system header files.
28513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28514         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28515         * lib/ctype.in.h: Likewise.
28516         * lib/dirent.in.h: Likewise.
28517         * lib/errno.in.h: Likewise.
28518         * lib/fcntl.in.h: Likewise.
28519         * lib/float.in.h: Likewise.
28520         * lib/getopt.in.h: Likewise.
28521         * lib/iconv.in.h: Likewise.
28522         * lib/inttypes.in.h: Likewise.
28523         * lib/langinfo.in.h: Likewise.
28524         * lib/locale.in.h: Likewise.
28525         * lib/math.in.h: Likewise.
28526         * lib/netdb.in.h: Likewise.
28527         * lib/netinet_in.in.h: Likewise.
28528         * lib/poll.in.h: Likewise.
28529         * lib/pthread.in.h: Likewise.
28530         * lib/pty.in.h: Likewise.
28531         * lib/sched.in.h: Likewise.
28532         * lib/se-selinux.in.h: Likewise.
28533         * lib/search.in.h: Likewise.
28534         * lib/signal.in.h: Likewise.
28535         * lib/spawn.in.h: Likewise.
28536         * lib/stdarg.in.h: Likewise.
28537         * lib/stddef.in.h: Likewise.
28538         * lib/stdint.in.h: Likewise.
28539         * lib/stdio.in.h: Likewise.
28540         * lib/stdlib.in.h: Likewise.
28541         * lib/string.in.h: Likewise.
28542         * lib/strings.in.h: Likewise.
28543         * lib/sys_file.in.h: Likewise.
28544         * lib/sys_ioctl.in.h: Likewise.
28545         * lib/sys_select.in.h: Likewise.
28546         * lib/sys_socket.in.h: Likewise.
28547         * lib/sys_stat.in.h: Likewise.
28548         * lib/sys_time.in.h: Likewise.
28549         * lib/sys_times.in.h: Likewise.
28550         * lib/sys_utsname.in.h: Likewise.
28551         * lib/sys_wait.in.h: Likewise.
28552         * lib/sysexits.in.h: Likewise.
28553         * lib/termios.in.h: Likewise.
28554         * lib/time.in.h: Likewise.
28555         * lib/unistd.in.h: Likewise.
28556         * lib/wchar.in.h: Likewise.
28557         * lib/wctype.in.h: Likewise.
28558         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28559         * modules/ctype (Makefile.am): Likewise.
28560         * modules/dirent (Makefile.am): Likewise.
28561         * modules/errno (Makefile.am): Likewise.
28562         * modules/fcntl-h (Makefile.am): Likewise.
28563         * modules/float (Makefile.am): Likewise.
28564         * modules/getopt-posix (Makefile.am): Likewise.
28565         * modules/iconv-h (Makefile.am): Likewise.
28566         * modules/inttypes (Makefile.am): Likewise.
28567         * modules/langinfo (Makefile.am): Likewise.
28568         * modules/locale (Makefile.am): Likewise.
28569         * modules/math (Makefile.am): Likewise.
28570         * modules/netdb (Makefile.am): Likewise.
28571         * modules/netinet_in (Makefile.am): Likewise.
28572         * modules/poll-h (Makefile.am): Likewise.
28573         * modules/pthread (Makefile.am): Likewise.
28574         * modules/pty (Makefile.am): Likewise.
28575         * modules/sched (Makefile.am): Likewise.
28576         * modules/search (Makefile.am): Likewise.
28577         * modules/selinux-h (Makefile.am): Likewise.
28578         * modules/signal (Makefile.am): Likewise.
28579         * modules/spawn (Makefile.am): Likewise.
28580         * modules/stdarg (Makefile.am): Likewise.
28581         * modules/stddef (Makefile.am): Likewise.
28582         * modules/stdint (Makefile.am): Likewise.
28583         * modules/stdio (Makefile.am): Likewise.
28584         * modules/stdlib (Makefile.am): Likewise.
28585         * modules/string (Makefile.am): Likewise.
28586         * modules/strings (Makefile.am): Likewise.
28587         * modules/sys_file (Makefile.am): Likewise.
28588         * modules/sys_ioctl (Makefile.am): Likewise.
28589         * modules/sys_select (Makefile.am): Likewise.
28590         * modules/sys_socket (Makefile.am): Likewise.
28591         * modules/sys_stat (Makefile.am): Likewise.
28592         * modules/sys_time (Makefile.am): Likewise.
28593         * modules/sys_times (Makefile.am): Likewise.
28594         * modules/sys_utsname (Makefile.am): Likewise.
28595         * modules/sys_wait (Makefile.am): Likewise.
28596         * modules/sysexits (Makefile.am): Likewise.
28597         * modules/termios (Makefile.am): Likewise.
28598         * modules/time (Makefile.am): Likewise.
28599         * modules/unistd (Makefile.am): Likewise.
28600         * modules/wchar (Makefile.am): Likewise.
28601         * modules/wctype (Makefile.am): Likewise.
28602
28603 2010-10-04  Bruno Haible  <bruno@clisp.org>
28604
28605         read-file tests: Avoid a test failure on NonStop Kernel.
28606         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28607         a regular file.
28608         Reported by Joachim Schmitz <schmitz@hp.com>.
28609
28610 2010-10-03  Bruno Haible  <bruno@clisp.org>
28611
28612         gnulib-tool: Fixes for --create-testdir with --libtool.
28613         * gnulib-tool (func_get_automake_snippet): Don't augment
28614         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28615         an executable.
28616         (func_create_testdir): Handle module 'alloca' like func_import.
28617         Reported by Bruce Korb <bruce.korb@gmail.com>.
28618
28619 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28620
28621         Avoid some lines longer than 80 characters.
28622         * lib/stdint.in.h: Break long comment lines.
28623         * lib/math.in.h: Likewise.
28624         (_GL_NUM_UINT_WORDS): New macro, for readability.
28625         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28626         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28627         * lib/stdlib.in.h: Likewise.
28628         * lib/spawn.in.h: Likewise.
28629         * lib/sys_socket.in.h: Update an URL.
28630         * lib/sys_stat.in.h: Break long line.
28631
28632 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28633
28634         Improve pmccabe2html.
28635         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28636         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28637         when the sources change. Remove the line in the HTML about "Used
28638         ranges" (which implied that there might be other unused ranges),
28639         rename "Resume" to "Summary" (easier to understand for more users).
28640         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28641         styles, and some unnecessary blank lines.
28642
28643 2010-10-03  Bruno Haible  <bruno@clisp.org>
28644             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28645
28646         acl: Add support for ACLs on NonStop Kernel.
28647         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28648         Check whether the function aclsort() exists.
28649         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28650         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28651         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28652         (acl_nontrivial [HAVE_ACLSORT]: New function.
28653         (file_has_acl): Implement for NonStop Kernel.
28654         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28655         (qset_acl): Implement for NonStop Kernel.
28656         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28657         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28658         (main): Implement for NonStop Kernel.
28659         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28660         Kernel. Handle this flavor.
28661         * tests/test-set-mode-acl.sh: Likewise.
28662         * tests/test-copy-acl.sh: Likewise.
28663         * tests/test-copy-file.sh: Likewise.
28664
28665 2010-10-03  Bruno Haible  <bruno@clisp.org>
28666
28667         Info about ACLs on NonStop Kernel.
28668         * doc/acl-resources.txt: Add info about NonStop Kernel.
28669         References by Joachim Schmitz <schmitz@hp.com>.
28670
28671 2010-10-02  Bruno Haible  <bruno@clisp.org>
28672
28673         Define missing EDQUOT on NonStop Kernel.
28674         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28675         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28677         missing.
28678         * doc/posix-headers/errno.texi: Mention the NSK bug.
28679         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28680         Reported by Joachim Schmitz <schmitz@hp.com>.
28681
28682 2010-10-02  Bruno Haible  <bruno@clisp.org>
28683
28684         Update doc for POSIX:2008.
28685         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28686         Update URL of POSIX specification.
28687
28688 2010-10-02  Bruno Haible  <bruno@clisp.org>
28689
28690         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28691         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28692         from gnulib, not from Automake.
28693
28694 2010-10-02  Bruno Haible  <bruno@clisp.org>
28695
28696         New module 'system-posix'.
28697         * modules/system-posix: New file.
28698         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28699         module is present.
28700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28701         GNULIB_SYSTEM_POSIX.
28702         * modules/stdlib (Depends-on): Remove sys_wait.
28703         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28704         * doc/posix-functions/system.texi: Mention the new module.
28705         * doc/posix-headers/stdlib.texi: Likewise.
28706         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28707         define test_sys_wait_macros to a no-op.
28708         Reported by Sam Steingold <sds@gnu.org>.
28709
28710 2010-09-30  Bruno Haible  <bruno@clisp.org>
28711
28712         More renaming from 'getdate' to 'get_date'.
28713         * doc/get_date.texi: Renamed from doc/getdate.texi.
28714         * modules/get_date (Files): Update.
28715         * MODULES.html.sh (Date and time <time.h>): Update.
28716         * DEPENDENCIES: Update.
28717         * gnulib-tool: Update comment.
28718         * m4/bison.m4 (gl_BISON): Likewise.
28719         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28720
28721 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28722
28723         bootstrap: support ACLOCAL_FLAGS during aclocal
28724         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28725         can add additional -I dir for third-party .m4 files.
28726
28727 2010-09-30  Eric Blake  <eblake@redhat.com>
28728
28729         bootstrap: use glibtoolize on MacOS
28730         * build-aux/bootstrap (check_versions): Convert libtool into
28731         libtoolize.
28732         (tool search): Move libtool check earlier, and look for
28733         glibtoolize for MacOS.
28734         (gnulib_tool_options): Auto-add --libtool when appropriate.
28735         Reported by Justin Clift.
28736
28737         poll: fix typo that broke test on MacOS
28738         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28739         Reported by Justin Clift.
28740
28741         getdate: rename to get_date
28742         Note: getdate.h is not renamed, to minimize client impact.
28743         * modules/getdate: Mark obsolete.  Move old contents...
28744         * modules/get_date: ...to new module name.
28745         * modules/getdate-tests: Move...
28746         * modules/get_date-tests: ...here.
28747         * m4/getdate.m4: Move...
28748         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28749         * lib/getdate.y: Move...
28750         * lib/get_date.y: ...here.
28751         * tests/test-getdate.c: Move...
28752         * tests/test-get_date.c: ...here.
28753         * doc/posix-functions/getdate.texi (getdate): Update name.
28754         * NEWS: Mention the change.
28755
28756 2010-09-29  Bruno Haible  <bruno@clisp.org>
28757
28758         Separate the module 'waitpid' from the module 'sys_wait'.
28759         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28760         present.
28761         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28762         gl_MODULE_INDICATOR_FOR_TESTS.
28763         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28764         * modules/sys_wait (Depends-on): Remove waitpid.
28765         (Makefile.am): Substitute GNULIB_WAITPID.
28766         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28767         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28768         signature only if the 'waitpid' module is present.
28769         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28770         * NEWS: Mention the change.
28771         * modules/grantpt (Depends-on): Add waitpid.
28772         * modules/wait-process (Depends-on): Likewise.
28773
28774 2010-09-29  Bruno Haible  <bruno@clisp.org>
28775
28776         More tests for module 'sys_wait'.
28777         * modules/sys_wait-c++-tests: New file.
28778         * tests/test-sys_wait-c++.cc: New file.
28779         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28780         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28781
28782 2010-09-29  Bruno Haible  <bruno@clisp.org>
28783
28784         New module 'waitpid'.
28785         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28786         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28787         Don't include <process.h>.
28788         (waitpid): Declare only, using modern idiom.
28789         * m4/waitpid.m4: New file.
28790         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28791         * modules/waitpid: New file.
28792         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28793         (Makefile.am): Update.
28794         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28795
28796 2010-09-28  Bruno Haible  <bruno@clisp.org>
28797
28798         poll: Assume ANSI C.
28799         * lib/poll.c (poll): Use an ANSI C declaration.
28800
28801 2010-09-28  Bruno Haible  <bruno@clisp.org>
28802
28803         poll-h: Create poll.h on all platforms.
28804         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28805         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28806         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28807         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28808         (gl_REPLACE_POLL_H): Don't set POLL_H.
28809         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28810         * modules/poll-h (Depends-on): Add include_next.
28811         (Makefile.am): Create poll.h unconditionally. Substitute also
28812         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28813
28814 2010-09-28  Bruno Haible  <bruno@clisp.org>
28815
28816         Tests for module 'poll-h'.
28817         * modules/poll-h-c++-tests: New file.
28818         * tests/test-poll-h-c++.cc: New file.
28819
28820         Tests for module 'poll-h'.
28821         * modules/poll-h-tests: New file.
28822         * tests/test-poll-h.c: New file.
28823
28824 2010-09-28  Bruno Haible  <bruno@clisp.org>
28825
28826         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28827         * modules/poll-h (Depends-on): Add 'extensions'.
28828
28829 2010-09-28  Bruno Haible  <bruno@clisp.org>
28830
28831         New module 'poll-h'.
28832         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28833         (poll): Use modern idiom.
28834         * modules/poll-h: New file.
28835         * modules/poll (Files): Remove lib/poll.in.h.
28836         (Depends-on): Add poll-h.
28837         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28838         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28839         * m4/poll_h.m4: New file.
28840         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28841         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28842         and invoke gl_REPLACE_POLL_H.
28843         * lib/poll.c: Use common idiom.
28844         * tests/test-poll.c: Likewise.
28845         * doc/posix-headers/poll.texi: Mention the poll-h module.
28846         Suggested by Eric Blake.
28847
28848 2010-09-26  Bruno Haible  <bruno@clisp.org>
28849
28850         sys_wait: Implement WSTOPSIG.
28851         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28852         Reported by Simon Josefsson.
28853
28854 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28855
28856         stdlib, sys_wait: Avoid compilation error on mingw.
28857         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28858
28859 2010-09-26  Bruno Haible  <bruno@clisp.org>
28860
28861         stdlib tests: Avoid code duplication.
28862         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28863         * modules/sys_wait-tests (Files): Likewise.
28864         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28865         * tests/test-stdlib.c: Include test-sys_wait.h.
28866         (main): Invoke test_sys_wait_macros.
28867         * tests/test-sys_wait.c: Include test-sys_wait.h.
28868         (main): Invoke test_sys_wait_macros.
28869
28870 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28871
28872         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28873         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28874         sure Windows sockets are working before calling getaddrinfo.
28875         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28876         * doc/gnulib.texi (Windows sockets): Fix typo.
28877
28878 2010-09-25  Bruno Haible  <bruno@clisp.org>
28879
28880         Tests for module 'regex-quote'.
28881         * modules/regex-quote-tests: New file.
28882         * tests/test-regex-quote.c: New file.
28883
28884         New module 'regex-quote'.
28885         * lib/regex-quote.h: New file.
28886         * lib/regex-quote.c: New file.
28887         * modules/regex-quote: New file.
28888         Suggested by Reuben Thomas <rrt@sc3d.org>.
28889
28890 2010-09-24  Bruno Haible  <bruno@clisp.org>
28891
28892         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28893         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28894
28895 2010-09-23  Bruno Haible  <bruno@clisp.org>
28896
28897         setenv: Relax license.
28898         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28899         Blake.
28900         Requested by Eric Blake.
28901
28902 2010-09-22  Bruno Haible  <bruno@clisp.org>
28903
28904         termios: Relax license.
28905         * modules/termios (License): Change to LGPLv2+.
28906         Requested by Eric Blake.
28907
28908 2010-09-22  Bruno Haible  <bruno@clisp.org>
28909
28910         threadlib: Allow the package to change the default to 'no'.
28911         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28912         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28913         Reported by Paul Eggert.
28914
28915 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28916             Bruno Haible  <bruno@clisp.org>
28917
28918         Fix endless loop in mbmemcasecoll.
28919         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28920         byte.
28921         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28922
28923 2010-09-22  Bruno Haible  <bruno@clisp.org>
28924
28925         Tests for module 'memcoll'.
28926         * modules/memcoll-tests: New file.
28927         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28928
28929         memcoll, xmemcoll: Clarify size vs. length.
28930         * modules/memcoll.c (memcoll0): Clarify specification.
28931         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28932         passed to collate_error.
28933
28934 2010-09-22  Bruno Haible  <bruno@clisp.org>
28935
28936         Tests for module 'memcasecmp'.
28937         * modules/memcasecmp-tests: New file.
28938         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28939
28940 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28941
28942         * lib/pthread.in.h: Add split double-inclusion guard, and include
28943         system <pthread.h> if there is one.  Use @@-style as in other
28944         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28945         pthread.h doesn't.
28946         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28947         (pthread_mutexattr_settype, pthread_mutex_trylock):
28948         New static inline functions, if there's no system <pthread.h>.
28949         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28950         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28951         Approximate with mutexes if the system lacks spinlocks, as in
28952         MacOS.
28953         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28954         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28955         @@-style.  Check for spinlocks separately.
28956         (gl_PTHREAD_DEFAULTS): New macro.
28957         * modules/pthread: Redo to use a more typical style for in.h files.
28958
28959 2010-09-21  Eric Blake  <eblake@redhat.com>
28960
28961         net_if: enhance tests
28962         * tests/test-net_if.c (main): Move signature checks earlier.
28963         Print failures to stderr.
28964         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28965         Document the bug that we do not yet fix.
28966
28967 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28968
28969         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28970         about gnulib, not GSS.
28971
28972 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28973
28974         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28975         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28976         for Emacs.
28977         * build-aux/pmccabe2html: Make Makefile.am example code more
28978         cut-and-paste friendly.
28979
28980 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28981
28982         * tests/test-net_if.c: New file.
28983         * modules/net_if-tests: New file.
28984
28985 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         pthread: add pthread_spin_destroy
28988         * lib/pthread.in.h (pthread_spin_destroy): New function.
28989
28990 2010-09-19  Bruno Haible  <bruno@clisp.org>
28991
28992         gnulib-tool: Fix --help output.
28993         * gnulib-tool (func_usage): Fix help message.
28994         Reported by Reuben Thomas <rrt@sc3d.org>.
28995
28996 2010-09-18  Jim Meyering  <meyering@redhat.com>
28997
28998         maint.mk: avoid unexpanded \n in two diagnostics
28999         * top/maint.mk (sc_prohibit_always_true_header_tests):
29000         Don't use a literal \n in a halt=... assignment.  It would not be
29001         expanded, and the two \n bytes would appear in the diagnostic output
29002         rather than the desired newline.  Use halt=$$(printf ... instead.
29003         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29004
29005 2010-09-18  Bruno Haible  <bruno@clisp.org>
29006
29007         netinet_in: Doc tweak.
29008         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29009         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29010
29011 2010-09-18  Jim Meyering  <meyering@redhat.com>
29012
29013         init.sh: correct an outdated comment
29014         * tests/init.sh (create_exe_shims_):  s/function/alias/
29015
29016         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29017         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29018         a file named "*.exe" is removed between the glob expansion and the
29019         processing of that oddly named file.
29020
29021 2010-09-17  Eric Blake  <eblake@redhat.com>
29022
29023         mirbsd: add some more support
29024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29025         in BSD family.
29026         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29027         devices as OpenBSD.
29028         * m4/host-os.m4 (mirbsd): Add MirBSD.
29029
29030         tests: fix unportable assumption on sys/wait.h
29031         * tests/test-sys_wait.c (main): Relax test.
29032         * tests/test-stdlib.c (main): Likewise.
29033
29034         init.sh: accommodate directory with no .exes
29035         * tests/init.sh: Accomodate directory containing only scripts.
29036
29037         tests: avoid compiler warning
29038         * tests/test-stdlib.c (main): Use the variable.
29039
29040         fdutimens, fdutimensat: update signature, again
29041         * lib/utimens.h (gl_futimens): Delete, and move signature...
29042         (fdutimens): ...here.
29043         (fdutimensat): Rearrange signature.
29044         (lutimensat): Rename variable for clarity.
29045         * lib/fdutimensat.c (fdutimensat): Update signature.
29046         * lib/utimens.c (fdutimens): Likewise.
29047         (gl_futimens): Delete.
29048         (utimens, lutimens): Update callers.
29049         * lib/futimens.c (futimens): Likewise.
29050         * tests/test-fdutimensat.c: Likewise.
29051         * tests/test-utimens.c: Likewise.
29052         * tests/test-futimens.h: Update comment.
29053         * NEWS: Mention this.
29054         Suggested by Paul Eggert.
29055
29056 2010-09-17  Bruno Haible  <bruno@clisp.org>
29057
29058         Take over the maintenance of some older macros from Autoconf.
29059         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29060         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29061         GNU Autoconf.
29062         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29063         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29064
29065 2010-09-17  Eric Blake  <eblake@redhat.com>
29066
29067         fdutimensat: drop atflag validation
29068         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29069         with valid fd, to close a race scenario where futimens is
29070         unsupported and FILE was replaced by a symlink.
29071         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29072         accordingly.
29073         Suggested by Paul Eggert.
29074
29075 2010-09-16  Bruno Haible  <bruno@clisp.org>
29076
29077         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29078         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29079
29080 2010-09-16  Bruno Haible  <bruno@clisp.org>
29081
29082         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29083         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29084         login_tty exists.
29085         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29086
29087 2010-09-16  Bruno Haible  <bruno@clisp.org>
29088
29089         login_tty: Make the replacement code work on BSD systems.
29090         * lib/login_tty.c: Include <sys/ioctl.h>.
29091         (login_tty): Use ioctl TIOCSCTTY when available.
29092         * modules/login_tty (Depends-on): Add sys_ioctl.
29093         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29094
29095 2010-09-16  Bruno Haible  <bruno@clisp.org>
29096
29097         login_tty: Stricter unit test.
29098         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29099         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29100         and tcgetsid() after login_tty.
29101         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29102
29103 2010-09-16  Bruno Haible  <bruno@clisp.org>
29104
29105         New module 'tcgetsid'.
29106         * lib/tcgetsid.c: New file.
29107         * m4/tcgetsid.m4: New file.
29108         * modules/tcgetsid: New file.
29109         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29110         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29111         GNULIB_TCGETSID, HAVE_TCGETSID.
29112         * lib/termios.in.h: Include <sys/types.h>.
29113         (tcgetsid): New declaration.
29114         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29115         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29116         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29117         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29118
29119 2010-09-16  Bruno Haible  <bruno@clisp.org>
29120
29121         Tests for module 'termios'.
29122         * modules/termios-c++-tests: New file.
29123         * modules/termios-tests: New file.
29124         * tests/test-termios-c++.cc: New file.
29125         * tests/test-termios.c: New file.
29126
29127         New module 'termios'.
29128         * modules/termios: New file.
29129         * lib/termios.in.h: New file.
29130         * m4/termios_h.m4: New file.
29131         * doc/posix-headers/termios.texi: Mention the new module.
29132
29133 2010-09-16  Eric Blake  <eblake@redhat.com>
29134
29135         fdutimensat: add an atflag parameter
29136         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29137         * lib/utimens.h (fdutimensat): Update prototype.
29138         * tests/test-fdutimensat.c: Adjust test to match.
29139         * NEWS: Document the change.
29140         Suggested by Paul Eggert.
29141
29142 2010-09-16  Bruno Haible  <bruno@clisp.org>
29143
29144         Fix typos in comments.
29145         * lib/striconveh.h: Fix typo in comment.
29146         * lib/login_tty.c (login_tty): Likewise.
29147
29148 2010-09-15  Bruno Haible  <bruno@clisp.org>
29149
29150         stdlib: clarify MirBSD WEXITSTATUS bug
29151         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29152         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29153
29154 2010-09-15  Eric Blake  <eblake@redhat.com>
29155
29156         stdlib: work around MirBSD WEXITSTATUS bug
29157         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29158         * modules/stdlib (Depends-on): Add sys_wait.
29159         * tests/test-sys_wait.c (main): Enhance test.
29160         * tests/test-stdlib.c (main): Likewise.
29161         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29162
29163         docs: mention MacOS issue with WEXITSTATUS(constant)
29164         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29165         issue.
29166         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29167
29168         strnlen: add tests
29169         * modules/strnlen-tests: New file.
29170         * tests/test-strnlen.c: Likewise.
29171
29172 2010-09-14  Bruno Haible  <bruno@clisp.org>
29173
29174         unistr/base: Avoid link errors when module 'libunistring' is also used.
29175         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29176         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29177         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29178         Declare also when HAVE_LIBUNISTRING is set.
29179         Reported by Pádraig Brady <P@draigbrady.com>.
29180
29181 2010-09-14  Eric Blake  <eblake@redhat.com>
29182
29183         test-rawmemchr: make more robust
29184         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29185         (Depends-on, configure.ac): Add needed prerequisites to use it.
29186         * modules/memchr-tests (Files, Depends-on, configure.ac):
29187         Likewise, to avoid implicit reliance on memchr module prereqs.
29188         * tests/test-memchr.c (main): Ensure proper masking.
29189         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29190         reads.
29191
29192         memchr: detect glibc Alpha bug
29193         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29194         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29195         Alpha.
29196         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29197         * tests/test-memchr.c (main): Enhance test.
29198         Reported by Nelson H. F. Beebe.
29199
29200 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29201
29202         fts, getcwd, glob: audit for dirfd returning -1
29203         * lib/fts.c (opendir): Remove #define; no longer used.
29204         (opendirat): New arg PDIR_FD.  All callers changed.
29205         (fts_build, _opendir2): Use new opendirat to avoid the need for
29206         dirfd, or for checking whether dirfd returns a negative value.
29207         Don't use opendir; always use openat followed by fdopendir.
29208         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29209         it.
29210         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29211         returns -1 here.
29212         * modules/fts (Depends-on): Remove dirfd.
29213         * modules/getcwd (Depends-on): Likewise.
29214
29215 2010-09-13  Eric Blake  <eblake@redhat.com>
29216
29217         float: fix broken MirBSD header
29218         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29219         * doc/posix-headers/float.texi (float.h): Document it.
29220
29221 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29222
29223         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29224         * lib/fts.c (opendirat): New arg extra_flags.
29225         (__opendir2): Use it to avoid following symlinks when opening
29226         a directory, if symlinks are not supposed to be followed.  See
29227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29228
29229         fdopendir: preserve argument fd before returning
29230         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29231         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29232         (fdopendir): Use them, arranging for FD to be open to the same
29233         directory that it was when it started.  (It might be temporarily
29234         closed while fdopendir is running, so this not thread- or
29235         signal-safe.)  Be careful to do the right thing even when file
29236         descriptors are scarce and dup fails with errno == EMFILE.  See
29237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29238
29239 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29240
29241         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29242         * NEWS: Document change.
29243         * m4/regex.m4: Disable test for regoff_t size.
29244
29245 2010-09-13  Jim Meyering  <meyering@redhat.com>
29246
29247         fts: don't operate on an invalid file descriptor after failed dup
29248         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29249         negative file descriptor.
29250
29251 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29252
29253         savedir: add streamsavedir, deprecate fdsavedir
29254         * NEWS: Mention deprecation of fdsavedir.
29255         * lib/savedir.c (streamsavedir): New extern function, whose name
29256         ends in "savedir" to be consistent with the others.  This differs
29257         from savedirstream in that it doesn't close its argument.  The
29258         next version of GNU tar will use this instead of fdsavedir, to
29259         avoid some race conditions and conserve file descriptors.
29260         (savedirstream): Reimplement as a wrapper around streamsavedir.
29261         (fdsavedir): Add a comment deprecating this function.  As far as
29262         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29263         * lib/savedir.h (streamsavedir): New decl.
29264         (fdsavedir): Add a comment deprecating this.
29265
29266 2010-09-10  Bruno Haible  <bruno@clisp.org>
29267
29268         langinfo: Fix last commit.
29269         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29270         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29272
29273 2010-09-10  Bruno Haible  <bruno@clisp.org>
29274
29275         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29276         * lib/progreloc.c (O_EXEC): Define fallback.
29277
29278 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29281         * NEWS: Document recent changes to fcntl-h.
29282         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29283         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29284         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29285         Similarly for O_SEARCH; this last was already true, but not documented.
29286         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29287         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29288         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29289         Likewise.
29290         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29291         is zero, not whether it is defined.
29292         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29293         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29294         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29295
29296 2010-09-10  Bruno Haible  <bruno@clisp.org>
29297
29298         langinfo, nl_langinfo: Fix for IRIX 5.3.
29299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29300         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29301         HAVE_LANGINFO_YESEXPR.
29302         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29303         HAVE_LANGINFO_YESEXPR.
29304         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29305         HAVE_LANGINFO_T_FMT_AMPM is 0.
29306         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29307         HAVE_LANGINFO_YESEXPR is 0.
29308         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29309         NOEXPR.
29310         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29311         * doc/posix-functions/nl_langinfo.texi: Likewise.
29312         Reported by Eric Blake.
29313
29314 2010-09-10  Bruno Haible  <bruno@clisp.org>
29315
29316         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29317         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29318         on FreeBSD 8.0 and OpenBSD 4.6.
29319         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29320         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29321         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29322         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29323         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29324         ac_includes_default.
29325         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29326
29327 2010-09-09  Eric Blake  <eblake@redhat.com>
29328
29329         strsignal: work around NetBSD bug
29330         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29331         * lib/string.in.h (includes): Likewise.
29332         * doc/posix-functions/strsignal.texi (strsignal): Document the
29333         bug.
29334         Reported by Nelson H. F. Beebe.
29335
29336         gnulib-tool: work with NetBSD /bin/sh
29337         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29338         (func_get_description, func_get_comment, func_get_status)
29339         (func_get_notice, func_get_applicability, func_get_filelist)
29340         (func_get_dependencies, func_get_autoconf_early_snippet)
29341         (func_get_autoconf_snippet, func_get_automake_snippet)
29342         (func_get_include_directive, func_get_link_directive)
29343         (func_get_license, func_get_maintainer, func_import): Avoid
29344         shell syntax errors from parsing syntax extensions.
29345
29346 2010-09-09  Bruno Haible  <bruno@clisp.org>
29347
29348         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29349         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29350         a reliable way to determine whether the 'alias' command works.
29351
29352 2010-09-08  Jim Meyering  <meyering@redhat.com>
29353
29354         init.sh: penalize a set-x-impaired shell; don't disqualify it
29355         * tests/init.sh: Too many shells corrupt application stderr when
29356         you set -x, so we can't afford to disqualify them, since at least
29357         on Irix-6.5, that would disqualify all bourne shells.
29358         Instead, use a two-pass approach.
29359         On the first pass, try to find a shell that meets the stricter
29360         condition that set -x does not corrupt stderr.
29361         If no shell meets the stricter condition, retest each candidate
29362         shell, but without that extra condition.  Finally, when
29363         VERBOSE=yes is requested and set -x might cause trouble, simply
29364         issue a warning and refrain from enabling debug output.
29365
29366 2010-09-08  Eric Blake  <eblake@redhat.com>
29367
29368         unsetenv: fix OpenBSD bug
29369         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29370         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29371         documentation.
29372         Reported by Jim Meyering.
29373
29374         strtod: work around IRIX 6.5 bug
29375         * lib/strtod.c (strtod): Reparse number on shorter string if
29376         exponent parse was invalid.
29377         * tests/test-strtod.c (main): Add check for "0x1p 2".
29378         Reported by Tom G. Christensen.
29379
29380         getopt: optimize previous patch
29381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29382         empty variable.  Speed up awk script.
29383         Reported by Paolo Bonzini.
29384
29385 2010-09-08  Jim Meyering  <meyering@redhat.com>
29386
29387         test.sh: disqualify shells for which set -x corrupts stderr
29388         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29389         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29390         appear in stderr output.  For example, this command:
29391             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29392         prints "P=1" on those two systems:
29393
29394 2010-09-08  Bruno Haible  <bruno@clisp.org>
29395
29396         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29397         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29398         commands, because some shells ignore redirections when there is an
29399         error in the command lookup.
29400         Reported by Eric Blake.
29401
29402 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29403
29404         * lib/regex.h: Fix a mention of `regex_compile' (should be
29405         `re_compile_pattern').
29406         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29407         (re_set_registers): Correct name of parameter in comment.
29408
29409         * doc/regex.texi: Add documentation for missing syntax flags.
29410         Remove commented-out documentation of defunct syntax option
29411         RE_NO_EMPTY_ALTS.
29412         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29413         Add documentation of re_set_registers.
29414         Document trick to re-use a pattern buffer by setting fastmap manually.
29415         Update documentation of struct re_pattern_buffer per public members.
29416         Uncomment documentation of equivalence class operators and
29417         collating symbol operators, since they are now implemented,
29418         Explain leftmost-longest matching in relation to alternatives.
29419         Tidy documentation of substring matching.
29420         Remove POSIX documentation, which is done better in
29421         glibc, and refer the reader there. Keep BSD API documentation, as
29422         that is not readily available elsewhere.
29423
29424 2010-09-07  Eric Blake  <eblake@redhat.com>
29425
29426         getopt: handle POSIXLY_CORRECT set but not exported
29427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29428         export state of POSIXLY_CORRECT, due to bash set -o posix.
29429         Reported by Dustin J. Mitchell.
29430
29431 2010-09-05  Bruno Haible  <bruno@clisp.org>
29432
29433         gnulib-tool: Highlight the changed options.
29434         * gnulib-tool (func_usage): Display the --import, --add-import,
29435         --remove-import explanations in bold font.
29436
29437 2010-09-06  Karl Berry  <karl@gnu.org>
29438
29439         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29440
29441 2010-09-05  Bruno Haible  <bruno@clisp.org>
29442
29443         uniwidth/width: Update comment.
29444         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29445         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29446
29447 2010-09-05  Bruno Haible  <bruno@clisp.org>
29448
29449         isinf, isnan: Relax license.
29450         * modules/isinf (License): Change from GPL to LGPL, with consent from
29451         Ben Pfaff.
29452         * modules/isnan (License): Likewise.
29453         Requested by Ludovic Courtès.
29454
29455 2010-09-04  Bruno Haible  <bruno@clisp.org>
29456
29457         gnulib-tool: Help migration from --import to --add-import or --update.
29458         * gnulib-tool: Emit a verbose error message when --import is used
29459         without any module name.
29460
29461 2010-09-04  Bruno Haible  <bruno@clisp.org>
29462
29463         Update doc about gnulib-tool.
29464         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29465         'gnulib-tool --update' in more detail.
29466         Reported by Eric Blake.
29467
29468 2010-09-04  Bruno Haible  <bruno@clisp.org>
29469
29470         gnulib-tool: Change --import. New options --add/remove-import.
29471         * gnulib-tool: New options --add-import, --remove-import.
29472         (func_usage): Document them.
29473         (have_associative): Define always.
29474         (func_import): In import mode, don't merge the specified settings with
29475         the cached settings. Implement remove-import mode.
29476         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29477         Explain when to use them versus --import.
29478         (Simple update): Use --add-import instead of --import.
29479         * NEWS: Mention the change.
29480
29481 2010-09-04  Bruno Haible  <bruno@clisp.org>
29482
29483         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29484         separate gnulib.mk.
29485
29486 2010-09-04  Bruno Haible  <bruno@clisp.org>
29487
29488         gnulib-tool: Don't talk about CVS any more.
29489         * gnulib-tool (func_usage, func_import): Write "version control"
29490         instead of CVS.
29491
29492 2010-09-04  Jim Meyering  <meyering@redhat.com>
29493
29494         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29495         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29496         false positives (whose names may be ill-chosen) when searching
29497         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29498         would cause a false-positive.
29499
29500         avoid coreutils "make distcheck" failure
29501         Coreutils tests with an absolute build directory name that contains
29502         a space.  Not quoting this directory name caused a failure.
29503         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29504         * tests/test-vc-list-files-cvs.sh: Likewise.
29505
29506 2010-09-04  Bruno Haible  <bruno@clisp.org>
29507
29508         gnulib-tool: Avoid error when run in a package without Makefile.am.
29509         * gnulib-tool: When collecting the m4dirs in a package that does not
29510         have a Makefile.am, eliminate those directories that contain no
29511         gnulib-cache.m4. Fix expression that counts these directories.
29512
29513 2010-09-04  Bruno Haible  <bruno@clisp.org>
29514
29515         update-copyright test: Improve output when perl is missing or too old.
29516         * tests/test-update-copyright.sh: Move test of Perl version down after
29517         the test whether Perl exists. Provide an explanation relating Perl's
29518         error message to Automake's SKIP: message.
29519
29520 2010-09-04  Bruno Haible  <bruno@clisp.org>
29521
29522         Don't augment PATH in TESTS_ENVIRONMENT.
29523         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29524         set abs_aux_dir instead of augmenting PATH.
29525         * modules/vc-list-files-tests (Makefile.am): Likewise.
29526         * tests/test-update-copyright.sh: Augment PATH here.
29527         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29528         path_prepend_.
29529         * tests/test-vc-list-files-git.sh: Likewise.
29530
29531 2010-09-04  Jim Meyering  <meyering@redhat.com>
29532
29533         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29534         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29535
29536 2010-09-04  Bruno Haible  <bruno@clisp.org>
29537
29538         strdup: Fix compilation error in C++ mode.
29539         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29540         the macro.
29541
29542 2010-09-04  Bruno Haible  <bruno@clisp.org>
29543
29544         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29545         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29546         macro into a function.
29547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29548
29549 2010-09-04  Bruno Haible  <bruno@clisp.org>
29550
29551         Set PATH_SEPARATOR the same way autoconf does.
29552         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29553         the value of PATH_SEPARATOR the same way autoconf-generated configure
29554         scripts do.
29555         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29556         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29557
29558 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29559
29560         Set PATH_SEPARATOR the same way autoconf does.
29561         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29562         the same way autoconf-generated configure scripts do.
29563         * posix-modules: Likewise.
29564
29565 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29566
29567         hash: fix safe_hasher const typo
29568         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29569         const; otherwise, there is a type error later.
29570
29571 2010-09-02  Jim Meyering  <meyering@redhat.com>
29572
29573         test-update-copyright.sh: require perl 5.8.0
29574         * tests/test-update-copyright.sh: Require 5.8.0,
29575         which Tom G. Christensen has confirmed is adequate,
29576         while 5.6.1 is not.
29577
29578 2010-09-02  Eric Blake  <eblake@redhat.com>
29579
29580         tests: init.sh improvements for re-exec'ing with zsh
29581         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29582         -vx through shell re-exec.
29583         Reported by Tom G. Christensen.
29584
29585         wctype: fix typo in previous commit
29586         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29587         Reported by Ludovic Courtès.
29588
29589 2010-09-02  Jim Meyering  <meyering@redhat.com>
29590
29591         test-update-copyright.sh: skip test if Perl is too old
29592         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29593         Reported by Tom G. Christensen.
29594
29595 2010-09-02  Bruno Haible  <bruno@clisp.org>
29596
29597         wctype: Avoid compilation error on IRIX 6.5.30.
29598         * lib/wctype.in.h (iswblank): Declare with a replacement if
29599         REPLACE_ISWBLANK is set.
29600         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29601         declared. Set REPLACE_ISWBLANK.
29602         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29603         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29604         * doc/posix-headers/wctype.texi: Likewise.
29605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29606
29607 2010-09-01  Bruno Haible  <bruno@clisp.org>
29608
29609         New module 'socketlib'.
29610         * modules/socketlib: New file.
29611         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29612         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29613         * modules/sockets (Depends-on): Add socketlib.
29614         Suggested by Sam Steingold <sds@gnu.org>.
29615
29616 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29617
29618         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29619
29620         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29621         when one needs search access to a directory but not read access.
29622         On systems where it is available, it works in some cases where
29623         O_RDONLY does not, namely on directories that are searchable but
29624         not readable, and which need only to be searchable.  If O_SEARCH
29625         is not available, fall back to the traditional method of using
29626         O_RDONLY.
29627
29628         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29629         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29630         when opening a directory that needs only to be searchable.
29631         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29632         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29633         * lib/openat-proc.c (openat_proc_name): Likewise.
29634         * lib/openat.c (openat_needs_fchdir): Likewise.
29635         * lib/save-cwd.c (save_cwd): Likewise.
29636         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29637
29638 2010-08-28  Bruno Haible  <bruno@clisp.org>
29639
29640         New module 'host-cpu-c-abi'.
29641         * modules/host-cpu-c-abi: New file.
29642         * m4/host-cpu-c-abi.m4: New file, based on part of
29643         clisp/src/m4/general.m4.
29644         Requested by Sam Steingold <sds@gnu.org>.
29645
29646 2010-08-31  Eric Blake  <eblake@redhat.com>
29647         and Jim Meyering  <meyering@redhat.com>
29648
29649         hash: factor, and guard against misbehaving hasher function
29650         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29651         of table->hasher's return value.  Also protect against a hash value
29652         so large that adding it to table->bucket results in a NULL pointer.
29653         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29654         Use it in place of open-coded check-and-abort.
29655
29656 2010-08-30  Bruno Haible  <bruno@clisp.org>
29657
29658         hash: silence spurious clang warning
29659         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29660         Reported by Eric Blake.
29661
29662 2010-08-30  Eric Blake  <eblake@redhat.com>
29663
29664         strstr, memmem, strcasestr: avoid leaked shell message
29665         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29666         FreeBSD.
29667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29669
29670         tests: silence clang warning
29671         * tests/test-malloca.c (do_allocation): Avoid dead store.
29672
29673 2010-08-29  Bruno Haible  <bruno@clisp.org>
29674
29675         gettext: Fix recent mistake.
29676         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29677
29678 2010-08-29  Bruno Haible  <bruno@clisp.org>
29679
29680         selinux-h: Offer a --without-selinux option.
29681         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29682         --without-selinux was specified, skip all tests and define
29683         HAVE_SELINUX_SELINUX_H to 0.
29684         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29685         set LIB_SELINUX to empty.
29686         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29687         gl_LIBSELINUX. If --without-selinux was specified, replace
29688         selinux/context.h.
29689         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29690
29691 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29692             Bruno Haible  <bruno@clisp.org>
29693
29694         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29695         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29696         of HAVE_REALLOC.
29697         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29698         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29699         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29700         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29701
29702 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29703             Bruno Haible  <bruno@clisp.org>
29704
29705         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29706         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29707         HAVE_CALLOC.
29708         * lib/xmalloc.c: Update accordingly.
29709         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29710         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29711         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29712
29713 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29714             Bruno Haible  <bruno@clisp.org>
29715
29716         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29717         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29718         HAVE_MALLOC.
29719         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29720         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29721         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29722
29723 2010-08-29  Bruno Haible  <bruno@clisp.org>
29724
29725         Update modules list.
29726         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29727         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29728         (String handling <string.h>): Add astrxfrm.
29729         (File system functions): Add readlinkat.
29730
29731 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29732
29733         Tests for module 'realloc-gnu'.
29734         * modules/realloc-gnu-tests: New file.
29735         * tests/test-realloc-gnu.c: New file.
29736
29737         Tests for module 'calloc-gnu'.
29738         * modules/calloc-gnu-tests: New file.
29739         * tests/test-calloc-gnu.c: New file.
29740
29741         Tests for module 'malloc-gnu'.
29742         * modules/malloc-gnu-tests: New file.
29743         * tests/test-malloc-gnu.c: New file.
29744
29745 2010-08-28  Bruno Haible  <bruno@clisp.org>
29746
29747         Rename module 'realloc' -> 'realloc-gnu'.
29748         * modules/realloc-gnu: New file, copied from modules/realloc.
29749         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29750         obsolete.
29751         * modules/mgetgroups (Depends-on): Update.
29752         * doc/posix-functions/realloc.texi: Update.
29753         * NEWS: Mention the change.
29754
29755         Rename module 'calloc' -> 'calloc-gnu'.
29756         * modules/calloc-gnu: New file, copied from modules/calloc.
29757         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29758         obsolete.
29759         * doc/posix-functions/calloc.texi: Update.
29760         * NEWS: Mention the change.
29761
29762         Rename module 'malloc' -> 'malloc-gnu'.
29763         * modules/malloc-gnu: New file, copied from modules/malloc.
29764         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29765         obsolete.
29766         * modules/argp (Depends-on): Update.
29767         * modules/regex (Depends-on): Update.
29768         * doc/posix-functions/malloc.texi: Update.
29769         * NEWS: Mention the change.
29770
29771 2010-08-28  Eric Blake  <eblake@redhat.com>
29772
29773         pread, pwrite: add missing dependency
29774         * modules/pread (Depends-on): Add extensions.
29775         * modules/pwrite (Depends-on): Likewise.
29776
29777 2010-08-28  Bruno Haible  <bruno@clisp.org>
29778
29779         unistr/u*-strchr: Fix tests dependencies.
29780         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29781         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29782         Reported by Ian Beckwith <ianb@erislabs.net>.
29783
29784 2010-08-28  Bruno Haible  <bruno@clisp.org>
29785
29786         read-file: Don't occupy too much unused memory.
29787         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29788
29789 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29790             Eric Blake  <eblake@redhat.com>
29791             Bruno Haible  <bruno@clisp.org>
29792
29793         read-file: Avoid memory reallocations with regular files.
29794         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29795         (fread_file): With regular files, use the remaining length as the
29796         initial buffer size.  Check against overflow.
29797         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29798         sys_stat.
29799
29800 2010-08-28  Bruno Haible  <bruno@clisp.org>
29801
29802         ftello: Relax license.
29803         * modules/ftello (License): Relax to LGPLv2+.
29804         Reported by Eric Blake.
29805
29806 2010-08-28  Bruno Haible  <bruno@clisp.org>
29807
29808         Avoid relocwrapper link errors due to gnulib replacement functions.
29809         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29810         function.
29811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29812
29813 2010-08-28  Bruno Haible  <bruno@clisp.org>
29814
29815         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29816         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29817         defined.
29818         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29819         Suggested by Eric Blake.
29820
29821 2010-08-28  Bruno Haible  <bruno@clisp.org>
29822
29823         sys_socket, netdb: Ensure socklen_t gets defined.
29824         * modules/sys_socket (Depends-on): Add socklen.
29825         * modules/netdb (Depends-on): Likewise.
29826         * modules/getaddrinfo (Depends-on): Remove socklen.
29827         * modules/getsockopt (Depends-on): Likewise.
29828         * modules/setsockopt (Depends-on): Likewise.
29829         * tests/test-sys_socket.c: Check that socklen_t is defined.
29830         * tests/test-netdb.c: Likewise.
29831         * m4/socklen.m4: Update comments.
29832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29833
29834 2010-08-27  Eric Blake  <eblake@redhat.com>
29835
29836         login_tty: add missing dependency
29837         * modules/login_tty (Depends-on): Add pty.
29838
29839 2010-08-26  Eric Blake  <eblake@redhat.com>
29840
29841         lib-symbol-versions: fix m4 quoting
29842         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29843         format for AC_LINK_IFELSE.
29844
29845         glob: fix compile test
29846         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29847
29848         btowc: fix missing file
29849         * modules/btowc (Files): Also ship locale-fr.m4.
29850
29851         lseek: fix link test
29852         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29853         AC_LINK_IFELSE.
29854
29855         include_next: silence autoconf 2.68 warning
29856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29857         AC_COMPILE_IFELSE as special.
29858         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29859         autoconf < 2.68.
29860
29861         acl: fix compilation test
29862         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29863         AC_COMPILE_IFELSE.
29864
29865 2010-08-26  Bruno Haible  <bruno@clisp.org>
29866
29867         Modernize AC_TRY_RUN invocations.
29868         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29869         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29870         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29871         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29872         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29873         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29874         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29875         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29876         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29877         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29879         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29880         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29881         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29883         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29884         gl_MBRLEN_NUL_RETVAL): Likewise.
29885         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29886         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29887         Likewise.
29888         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29889         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29890         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29891         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29892         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29893         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29894         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29895         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29896         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29897         Likewise.
29898         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29899         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29901         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29902         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29903         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29904         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29905         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29906         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29908
29909 2010-08-26  Bruno Haible  <bruno@clisp.org>
29910
29911         Modernize AC_TRY_LINK invocations.
29912         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29913         AC_TRY_LINK.
29914         * m4/argp.m4 (gl_ARGP): Likewise.
29915         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29916         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29917         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29918         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29919         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29920         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29921         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29922         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29923         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29924         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29925         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29926         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29927         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29928         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29929         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29930         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29931         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29932         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29933         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29934         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29935         Likewise.
29936         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29937         Likewise.
29938         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29939         Likewise.
29940         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29941         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29942         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29943         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29944         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29945         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29946         * m4/servent.m4 (gl_SERVENT): Likewise.
29947         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29948         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29949         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29950         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29951         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29952         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29955         * modules/tsearch-tests (configure.ac): Likewise.
29956
29957 2010-08-26  Bruno Haible  <bruno@clisp.org>
29958
29959         Modernize AC_TRY_COMPILE invocations.
29960         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29961         AC_TRY_COMPILE.
29962         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29963         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29964         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29965         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29966         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29967         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29968         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29969         * m4/lock.m4 (gl_LOCK): Likewise.
29970         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29971         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29972         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29974         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29975         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29976         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29978         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29979         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29980         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29981         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29982         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29983         extraneous semicolon.
29984
29985 2010-08-26  Jim Meyering  <meyering@redhat.com>
29986
29987         stat-time: relax license LGPL
29988         * modules/stat-time (License): Change from GPL to LGPL,
29989         with consent from all contributors, for use in libguile.
29990         Requested by Ludovic Courtès.
29991
29992 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29993
29994         poll: return immediately on POLLHUP.
29995         * lib/poll.c (poll): Always set timeout before wait_timeout is
29996         computed.
29997
29998 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29999
30000         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30001         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30002         rmdir ("dir/.//"), unlinkat.
30003
30004 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30005
30006         stdbool: avoid spurious failure with modern xlc
30007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30008
30009 2010-08-24  Bruno Haible  <bruno@clisp.org>
30010
30011         getloadavg: simplify code
30012         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30013         gl_have_func. Update comments.
30014
30015 2010-08-24  Eric Blake  <eblake@redhat.com>
30016
30017         getloadavg: don't define SVR4 on cygwin
30018         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30019         only define SVR4 when -lkvm is required.
30020         Reported by Yaakov Selkowitz.
30021
30022 2010-08-24  Bruno Haible  <bruno@clisp.org>
30023
30024         priv-set: fix comment
30025         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30026
30027 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30028
30029         priv-set: fix comments
30030         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30031         to match code, as suggested by David Bartley in:
30032         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30033
30034 2010-08-23  Eric Blake  <eblake@redhat.com>
30035
30036         stdbool: avoid rejecting clang
30037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30038         * tests/test-stdbool.c: Enable more tests if using the system
30039         <stdbool.h> instead of the gnulib replacement.
30040         (main): Move xlc bug test to a runtime test for all compilers.
30041         Reported by Anders Kaseorg.
30042
30043         argz: fix shell quoting issue
30044         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30045         Reported by Charles Wilson.
30046
30047 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30048             Erik Faye-Lund <kusmabite@gmail.com>
30049
30050         poll, select: handle ERROR_BROKEN_PIPE.
30051         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30052         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30053         * lib/select.c (win32_compute_revents): Do not mark a pipe
30054         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30055
30056 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30057
30058         fts: allow compilation with C++
30059         * lib/fts_.h: Specify extern "C" linkage with C++.
30060
30061 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30062
30063         Fix gnulib-tool sed script de-commentation for AIX sed.
30064         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30065         sed.
30066
30067 2010-08-17  Eric Blake  <eblake@redhat.com>
30068
30069         test-stddef: test for (some) offsetof bugs
30070         * tests/test-stddef.c: Enhance test to ensure correct type of
30071         offsetof.
30072         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30073         that we are not fixing at this time.
30074
30075 2010-08-15  Bruno Haible  <bruno@clisp.org>
30076
30077         stpncpy: Allow stpncpy to be defined as a macro.
30078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30079         if it's already correctly declared.
30080         * lib/string.in.h (stpncpy): Undefine before redefining.
30081         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30082
30083 2010-08-14  Bruno Haible  <bruno@clisp.org>
30084
30085         Rename module 'memxfrm' to 'amemxfrm'.
30086         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30087         (amemxfrm): Renamed from memxfrm.
30088         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30089         (amemxfrm): Renamed from memxfrm.
30090         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30091         * NEWS: Mention the change.
30092         * MODULES.html.sh (String handling <string.h>): Update.
30093         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30094         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30095         * lib/unicase/u16-casexfrm.c: Likewise.
30096         * lib/unicase/u32-casexfrm.c: Likewise.
30097         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30098         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30099         * lib/uninorm/u16-normxfrm.c: Likewise.
30100         * lib/uninorm/u32-normxfrm.c: Likewise.
30101         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30102         memxfrm.
30103         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30104         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30105         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30106         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30107         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30108         Suggested by Paul Eggert.
30109
30110 2010-08-14  Bruno Haible  <bruno@clisp.org>
30111
30112         Tests for module 'astrxfrm'.
30113         * modules/astrxfrm-tests: New file.
30114         * tests/test-astrxfrm.c: New file.
30115
30116         New module 'astrxfrm'.
30117         * lib/astrxfrm.h: New file.
30118         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30119         * modules/astrxfrm: New file.
30120
30121 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30122
30123         regex: Tweak doc.
30124         * doc/regex.texi (Overview): Don't mention regex.c.
30125         (GNU Regular Expression Compiling): Likewise.
30126         (Match-end-of-line Operator): Mention 'not_eol'.
30127
30128 2010-08-14  Brian Gough  <bjg@gnu.org>
30129             Bruno Haible  <bruno@clisp.org>
30130
30131         git-merge-changelog: add doc relating to use with bzr and hg.
30132         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30133
30134 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30135
30136         pthread: fix pthread.h creation for srcdir != builddir
30137         * modules/pthread (Makefile.am): Fix the rule to work also in a
30138         non-srcdir build.
30139
30140 2010-08-13  Karl Berry  <karl@gnu.org>
30141
30142         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30143         * doc/posix-*/*: force line break before @url of POSIX
30144         specifications.
30145         Suggested by Werner Lemberg.
30146
30147 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30148
30149         strtod: fix const diagnostic
30150         * lib/strtod.c (strtod): Don't assign const char * to char *,
30151         as this elicits a warning from GCC when warnings are enabled.
30152
30153 2010-08-10  Pádraig Brady <P@draigbrady.com>
30154         and Eric Blake  <eblake@redhat.com>
30155
30156         copy-acl: ignore ENOTSUP on HP-UX
30157         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30158         so that it is available for HP-UX.
30159         * lib/copy-acl.c (qcopy_acl): Use it.
30160         Reported by Patrick M. Callahan.
30161
30162 2010-08-10  Eric Blake  <eblake@redhat.com>
30163
30164         open, chown: relax license
30165         * modules/open (License): Change to LGPLv2+, with consent by all
30166         authors, for use in augeas.
30167         * modules/chown (License): Likewise.
30168         * modules/lchown (Likewise): Likewise.
30169         Requested by Adam Stokes.
30170
30171 2010-08-09  Karl Berry  <karl@gnu.org>
30172
30173         * build-aux/ar-lib: new file, import from Automake.
30174         * config/srclist.txt: autocheck for updates.
30175
30176 2010-08-09  Eric Blake  <eblake@redhat.com>
30177
30178         readlinkat: adjust client modules
30179         * modules/areadlinkat (Depends-on): Use readlinkat, not
30180         symlinkat.
30181         * modules/areadlinkat-with-size (Depends-on): Likewise.
30182
30183         mknod: be more vocal about danger of running tests as root
30184         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30185         root, since that is just asking for problems.
30186         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30187
30188         readlinkat: split into its own module
30189         * modules/symlinkat: Split readlinkat...
30190         * modules/readlinkat: ...into separate module.
30191         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30192         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30193         * lib/symlinkat.c (readlinkat): Move...
30194         * lib/readlinkat.c: ...into new file.
30195         * modules/symlinkat-tests: Split readlinkat test...
30196         * modules/readlinkat-tests: ...into separate module.
30197         * tests/test-symlinkat.c: Split...
30198         * tests/test-readlinkat.c: ...into new file.
30199         * NEWS: Document the split.
30200         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30201         * lib/unistd.in.h (readlinkat): Likewise.
30202         Suggested by Bruno Haible.
30203
30204 2010-08-08  Bruno Haible  <bruno@clisp.org>
30205
30206         memxfrm: Speed up.
30207         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30208         that usually only one call to strxfrm is necessary for each string
30209         part.
30210         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30211
30212 2010-08-07  Karl Berry  <karl@gnu.org>
30213
30214         * doc/posix-headers/limits.texi,
30215         * doc/posix-functions/malloc.texi,
30216         * doc/posix-functions/strsignal.texi: missing @item.
30217         * doc/ld-version-script.texi: spurious leading i.
30218         * doc/regex.texi (Interval Operators): no commas inside @var.
30219
30220 2010-08-01  Bruno Haible  <bruno@clisp.org>
30221
30222         Integrate the regex documentation.
30223         * doc/gnulib.texi: Define 'cn' index.
30224         (Regular expressions): New a chapter that includes regex.texi and
30225         regexprops-generic.texi.
30226         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30227         syntax.
30228
30229         Whitespace cleanup.
30230         * doc/regex.texi: Remove trailing spaces.
30231
30232         Add regex documentation.
30233         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30234         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30235         Written by Kathy A. Hargreaves and Karl Berry.
30236
30237 2010-08-01  Bruno Haible  <bruno@clisp.org>
30238
30239         link: Update documentation.
30240         * doc/posix-functions/link.texi: Update regarding Solaris.
30241
30242 2010-07-31  Bruno Haible  <bruno@clisp.org>
30243
30244         Update modules list.
30245         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30246         (String handling <string.h>): Add memcmp2, memxfrm.
30247         (Container data structures): Add xlist, xsublist, xoset.
30248         (Core language properties): Add alignof, unused-parameter.
30249         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30250         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30251         (Unibyte characters <ctype.h>): New section.
30252         (String handling <string.h>): New section.
30253         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30254         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30255         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30256         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30257         tan, tanh, tanl, y0, y1, yn.
30258         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30259         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30260         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30261         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30262         unlockpt, vdprintf, vdprintf-posix.
30263         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30264         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30265         xconcat-filename.
30266         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30267         getdtablesize, pipe2, pipe2-safer.
30268         (Security): New section.
30269         (Networking functions): Add accept4.
30270         (Signal handling): Add sigpipe.
30271         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30272         mbmemcasecoll.
30273         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30274         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30275         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30276         pipe-filter-ii.
30277         (Misc): Add argp-version-etc, login_tty, parse-duration.
30278
30279 2010-07-31  Bruno Haible  <bruno@clisp.org>
30280
30281         Improve doc in MODULES.html.
30282         * modules/linkat (Description): Add the word "function".
30283         * modules/mkfifo (Description): Likewise.
30284         * modules/mknod (Description): Likewise.
30285         * modules/remove (Description): Likewise.
30286         * modules/renameat (Description): Likewise.
30287         * modules/stat (Description): Likewise.
30288         * modules/symlink (Description): Likewise.
30289         * modules/unlink (Description): Likewise.
30290
30291 2010-07-31  Bruno Haible  <bruno@clisp.org>
30292
30293         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30294         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30295         option --enable/disable-c++ instead of --enable/disable-cxx.
30296         * NEWS: Mention the change.
30297
30298 2010-07-31  Bruno Haible  <bruno@clisp.org>
30299
30300         readlink, areadlink: Relax test a bit.
30301         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30302         alternative to ENOTDIR.
30303         * tests/test-areadlink.h (test_areadlink): Likewise.
30304         Reported by Rainer Tammer.
30305
30306 2010-07-31  Bruno Haible  <bruno@clisp.org>
30307
30308         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30309         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30310         character, perform the search using U_STRCHR.
30311         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30312         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30313         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30314         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30315         Suggested by Paolo Bonzini.
30316
30317 2010-07-31  Bruno Haible  <bruno@clisp.org>
30318
30319         unistr/u*-strstr: Fix dependencies.
30320         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30321         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30322         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30323
30324 2010-07-31  Bruno Haible  <bruno@clisp.org>
30325
30326         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30327         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30328         the beginning of the loop.
30329         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30330         cases in 'switch' statement.
30331
30332         unistr/u8-strchr: Fix several bugs.
30333         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30334         the string. When not found, return NULL, not a pointer near the end.
30335
30336         More tests for unistr/u8-strchr.
30337         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30338         that the function does not read past the first occurrence of the byte
30339         being searched.
30340         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30341         * tests/unistr/test-u16-strchr.c (main): New function.
30342         * tests/unistr/test-u32-strchr.c (main): New function.
30343
30344 2010-07-31  Bruno Haible  <bruno@clisp.org>
30345
30346         posix-modules: Ignore backup files of documentation files.
30347         * posix-modules: grep only through files named *.texi.
30348
30349 2010-07-31  Bruno Haible  <bruno@clisp.org>
30350
30351         symlinkat: Fix documentation.
30352         * doc/posix-functions/readlinkat.texi: Fix module name.
30353
30354 2010-07-31  Bruno Haible  <bruno@clisp.org>
30355
30356         fchownat: Replace also when chown has the trailing slash bug.
30357         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30358         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30359         introduced on 2010-04-10.
30360         Reported by Rainer Tammer.
30361
30362 2010-07-31  Bruno Haible  <bruno@clisp.org>
30363
30364         linkat: Work around AIX 7.1 bug.
30365         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30366         whether linkat handles trailing slash correctly. If not, replace linkat
30367         and define LINKAT_TRAILING_SLASH_BUG.
30368         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30369         check whether (fd1,file1) points to a directory if file1 or file2 ends
30370         in a slash. Code taken from lib/link.c.
30371         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30372         Reported by Rainer Tammer.
30373
30374 2010-07-31  Bruno Haible  <bruno@clisp.org>
30375
30376         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30377         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30378         This disables an xlc optimization that was causing wrong test results.
30379         Reported by Rainer Tammer.
30380
30381 2010-07-31  Bruno Haible  <bruno@clisp.org>
30382
30383         iconv: Work around AIX 6.1..7.1 bug.
30384         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30385         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30386         cross-compiling, guess no on all versions of AIX.
30387         Reported by Rainer Tammer.
30388
30389 2010-07-31  Bruno Haible  <bruno@clisp.org>
30390
30391         readlink: Relax test a bit.
30392         * tests/test-readlink.h (test_readlink): Allow different errno value
30393         when readlink is called with a file name that ends in / and refers to
30394         a file.
30395         Suggested by Eric Blake.
30396         Reported by Rainer Tammer.
30397
30398 2010-07-31  Bruno Haible  <bruno@clisp.org>
30399
30400         copysign: Does not require -lm on glibc systems.
30401         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30402         gl_COMMON_DOUBLE_MATHFUNC.
30403         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30404
30405 2010-07-31  Bruno Haible  <bruno@clisp.org>
30406
30407         duplocale: Work around AIX 7.1 bug.
30408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30409         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30410         * lib/duplocale.c (rpl_duplocale): Update comment.
30411         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30412         Reported by Rainer Tammer.
30413
30414 2010-07-30  Bruno Haible  <bruno@clisp.org>
30415
30416         dirfd: Avoid link error on AIX 7.1.
30417         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30418         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30419         exist, set REPLACE_DIRFD.
30420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30421         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30422         * doc/posix-functions/dirfd.texi: Update.
30423         Reported by Rainer Tammer.
30424
30425 2010-07-30  Eric Blake  <eblake@redhat.com>
30426
30427         strtod: next round of AIX fixes
30428         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30429         exponent.
30430         * tests/test-strtod.c (main): Enhance tests.
30431         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30432         Reported by Rainer Tammer.
30433
30434         futimens: fix configure check
30435         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30436         Reported by Bruno Haible.
30437
30438 2010-07-30  Bruno Haible  <bruno@clisp.org>
30439
30440         getline: Update regarding AIX.
30441         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30442         Reported by Rainer Tammer.
30443
30444 2010-07-30  Bruno Haible  <bruno@clisp.org>
30445
30446         wcwidth: Drop replacement on AIX 7.
30447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30448         AIX 7.
30449         Reported by Rainer Tammer.
30450
30451 2010-07-30  Bruno Haible  <bruno@clisp.org>
30452
30453         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30455         a 'char *'.
30456         Reported by Rainer Tammer.
30457
30458 2010-07-30  Bruno Haible  <bruno@clisp.org>
30459
30460         unlink: Update regarding AIX.
30461         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30462         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30463         Reported by Rainer Tammer.
30464
30465 2010-07-30  Bruno Haible  <bruno@clisp.org>
30466
30467         symlink: Update regarding AIX.
30468         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30469         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30470         Reported by Rainer Tammer.
30471
30472 2010-07-30  Bruno Haible  <bruno@clisp.org>
30473
30474         strndup: Update regarding AIX.
30475         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30476         AIX 7.
30477         Reported by Rainer Tammer.
30478
30479 2010-07-30  Bruno Haible  <bruno@clisp.org>
30480
30481         stat: Update regarding AIX.
30482         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30483         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30484         Reported by Rainer Tammer.
30485
30486 2010-07-30  Bruno Haible  <bruno@clisp.org>
30487
30488         truncl: Fix autoconf test.
30489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30490         whether truncl works.
30491         Reported by Rainer Tammer.
30492
30493 2010-07-30  Bruno Haible  <bruno@clisp.org>
30494
30495         round: Update regarding AIX.
30496         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30497         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30498         Reported by Rainer Tammer.
30499
30500 2010-07-30  Bruno Haible  <bruno@clisp.org>
30501
30502         rename: Update regarding AIX.
30503         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30504         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30505         Reported by Rainer Tammer.
30506
30507 2010-07-30  Bruno Haible  <bruno@clisp.org>
30508
30509         printf.m4: Update regarding AIX.
30510         * m4/printf.m4: Update comments regarding AIX.
30511         Reported by Rainer Tammer.
30512
30513 2010-07-30  Bruno Haible  <bruno@clisp.org>
30514
30515         iconv: Update regarding AIX.
30516         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30517         AIX 7.
30518         Reported by Rainer Tammer.
30519
30520 2010-07-30  Bruno Haible  <bruno@clisp.org>
30521
30522         getopt: Update regarding AIX.
30523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30524         no on AIX.
30525         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30526         Reported by Rainer Tammer.
30527
30528 2010-07-30  Bruno Haible  <bruno@clisp.org>
30529
30530         ldexpl; Update regarding AIX.
30531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30532         on AIX 7.
30533         Reported by Rainer Tammer.
30534
30535 2010-07-30  Bruno Haible  <bruno@clisp.org>
30536
30537         frexpl: Update regarding AIX.
30538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30539         on AIX 7.
30540         Reported by Rainer Tammer.
30541
30542 2010-07-30  Bruno Haible  <bruno@clisp.org>
30543
30544         open, fopen: Update regarding AIX.
30545         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30546         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30547         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30548         * doc/posix-functions/fopen.texi: Likewise.
30549         Reported by Rainer Tammer.
30550
30551 2010-07-30  Bruno Haible  <bruno@clisp.org>
30552
30553         chown: Update doc regarding AIX.
30554         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30555         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30556         Reported by Rainer Tammer.
30557
30558 2010-07-30  Eric Blake  <eblake@redhat.com>
30559
30560         strtod: fix bug in replacement function on AIX
30561         * lib/strtod.c (strtod): Special case broken "0x" parse in
30562         underlying strtod.
30563         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30564         * doc/posix-functions/strtod.texi (strtod): Likewise.
30565         Reported by Rainer Tammer.
30566
30567 2010-07-30  Bruno Haible  <bruno@clisp.org>
30568
30569         mbrlen: Fix cross-compilation guess for AIX.
30570         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30571         guess. Leftover from 2008-12-22.
30572
30573 2010-07-30  Bruno Haible  <bruno@clisp.org>
30574
30575         mbrtowc: Fix cross-compilation guess for AIX.
30576         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30577         guess. Leftover from 2008-12-21.
30578
30579 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30580
30581         init.sh: work around trap limitation of some shells
30582         * tests/init.sh (setup_): Move exit trap outside of shell function.
30583
30584 2010-07-29  Eric Blake  <eblake@redhat.com>
30585
30586         strtod: aid debugging
30587         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30588         understanding why strtod is rejected.
30589
30590 2010-07-28  Bruno Haible  <bruno@clisp.org>
30591
30592         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30593         * lib/unistr/u8-chr.c: Include <string.h>.
30594         * tests/unistr/test-u8-chr.c: Likewise.
30595         * tests/unistr/test-u16-chr.c: Likewise.
30596         * tests/unistr/test-u32-chr.c: Likewise.
30597         * tests/unistr/test-u8-strchr.c: Likewise.
30598         * tests/unistr/test-u16-strchr.c: Likewise.
30599         * tests/unistr/test-u32-strchr.c: Likewise.
30600         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30601         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30602         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30603         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30604
30605 2010-07-28  Bruno Haible  <bruno@clisp.org>
30606
30607         Use spaces for indentation, not tabs.
30608         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30609
30610 2010-07-27  Bruno Haible  <bruno@clisp.org>
30611
30612         mbspcasecmp: Fix function specification.
30613         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30614         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30615         Reported by Eric Blake <eblake@redhat.com>.
30616
30617 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30618
30619         timespec: use cast and not conditional, as truncation isn't possible
30620         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30621         instead of a conditional.  Comment about the situation in more detail.
30622         This undoes most of the 2009-10-29 patch.
30623
30624 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30625
30626         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30627         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30628         * lib/unistr/u8-strchr.c: Likewise.
30629         * modules/unistr/u8-chr: Depend on memchr.
30630
30631         unistr/u*-strchr: add tests
30632         * modules/unistr/u8-strchr-tests: New file.
30633         * modules/unistr/u16-strchr-tests: New file.
30634         * modules/unistr/u32-strchr-tests: New file.
30635         * tests/unistr/test-strchr.h: New file.
30636         * tests/unistr/test-u8-strchr.c: New file.
30637         * tests/unistr/test-u16-strchr.c: New file.
30638         * tests/unistr/test-u32-strchr.c: New file.
30639
30640         unistr/u*-chr: test multibyte sequences more
30641         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30642         test vector.
30643         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30644         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30645         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30646
30647         unistr/u*-chr: test multibyte sequences
30648         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30649
30650         unistr/u*-chr: prepare for multibyte tests
30651         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30652         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30653         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30654         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30655         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30656         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30657
30658 2010-07-18  Bruno Haible  <bruno@clisp.org>
30659
30660         unistr/u8-strchr: Optimize non-ASCII argument case.
30661         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30662         because the first byte often matches anyway.
30663         Reported by Pádraig Brady <P@draigbrady.com>.
30664
30665 2010-07-15  Karl Berry  <karl@gnu.org>
30666
30667         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30668
30669 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30670
30671         getcwd: on Solaris, work better if ancestors are inaccessible
30672         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30673         buffer and size, try again with a large buffer.  This works better
30674         on Solaris, since its getcwd succeeds even if the path to the root
30675         is inaccessible, and this is helpful in common cases such as .zfs
30676         hidden directories.  Problem reported by J Chapman Flack in
30677         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30678         Use system getcwd if it's declared, not merely if it's partly
30679         working; use the partly-working test only to avoid needless effort
30680         if the system getcwd fails.
30681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30682         comment that was already obsolete and is now even more obsolete.
30683         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30684         now might call strdup.
30685
30686 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30687
30688         pthread: Add enough so that coreutils/src/sort.c compiles.
30689         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30690         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30691         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30692         Include <sys/types.h>, in case it defines pthread_t.
30693         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30694         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30695         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30696         (pthread_rwlockattr_t, pthread_spinlock_t):
30697         New typedefs, if HAVE_PTHREAD_T is not defined.
30698         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30699         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30700         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30701         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30702         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30703         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30704         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30705         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30706         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30707         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30708         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30709         New macros.
30710         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30711         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30712         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30713         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30714         (pthread_spin_unlock): New dummy functions.
30715         (pthread_create): Return EAGAIN; don't set errno.
30716         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30717         require AC_C_INLINE.
30718         * modules/pthread (Depends-on): Add sched, time.
30719         (pthread.h): Use AM_V_GEN.
30720
30721 2010-07-13  Bruno Haible  <bruno@clisp.org>
30722
30723         striconveh: Don't malloc memory if the result buffer is sufficient.
30724         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30725         buffer if its size is sufficient.
30726         Reported by Ludovic Courtès <ludo@gnu.org>.
30727
30728 2010-07-13  Bruno Haible  <bruno@clisp.org>
30729
30730         strtod: Add safety check.
30731         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30732
30733 2010-07-12  Bruno Haible  <bruno@clisp.org>
30734
30735         Unify tests that set gl_cv_func_ldexpl_no_libm.
30736         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30737         gl_FUNC_LDEXPL.
30738         (gl_FUNC_LDEXPL): Invoke it.
30739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30740
30741 2010-07-12  Bruno Haible  <bruno@clisp.org>
30742
30743         Unify tests that set gl_cv_func_ldexp_no_libm.
30744         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30745         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30746         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30747         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30748         * modules/strtod (Files): Add m4/ldexp.m4.
30749
30750 2010-07-12  Bruno Haible  <bruno@clisp.org>
30751
30752         Unify tests that set gl_cv_func_frexpl_no_libm.
30753         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30754         gl_FUNC_FREXPL_NO_LIBM.
30755         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30757
30758 2010-07-12  Bruno Haible  <bruno@clisp.org>
30759
30760         Unify tests that set gl_cv_func_frexp_no_libm.
30761         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30762         gl_FUNC_FREXP_NO_LIBM.
30763         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30764         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30765
30766 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30767
30768         memcoll: clarify sizes versus lengths, document better, and tweak perf
30769         * lib/memcoll.c (strcoll_loop, memcoll0):
30770         Improve quality of descriptive comments.  Name variables
30771         consistently as to whether they are lengths (which do not include
30772         terminating null) versus sizes (which do).
30773         * lib/xmemcoll.c (xmemcoll0): Likewise.
30774         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30775         returned when s1size == 0; this is easier to compile and saves
30776         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30777
30778 2010-07-12  Bruno Haible  <bruno@clisp.org>
30779
30780         Tests for module '_Exit'.
30781         * modules/_Exit-tests: New file.
30782         * tests/test-_Exit.sh: New file.
30783         * tests/test-_Exit.c: New file.
30784
30785         New module '_Exit'.
30786         * lib/stdlib.in.h (__attribute__): New macro.
30787         (_Exit): New declaration.
30788         * lib/_Exit.c: New file.
30789         * m4/_Exit.m4: New file.
30790         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30791         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30792         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30793         * modules/_Exit: New file.
30794         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30795         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30796
30797 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30798
30799         strtod: make it more-accurate typically, and don't require libm
30800         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30801         Include limits.h.  Don't include string.h.
30802         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30803         (locale_isspace): New function, so that no casts are needed to
30804         check whether *s is a space.
30805         (ldexp): Provide an unused dummy if not available.
30806         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30807         (strtod): Use them.  This implementation prefers to use the
30808         underlying strtod if available, falling back on our own code
30809         only to fix known bugs.  This is more likely to produce an
30810         accurate result.  Also, it avoids the use of libm functions.
30811         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30812         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30813         was absent, but it caused a test failure with coreutils.
30814         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30815         with libm.
30816         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30817         * modules/strtod-tests (Makefile.am): Likewise.
30818
30819 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30820             Bruno Haible  <bruno@clisp.org>
30821
30822         unistr/u8-strchr: Optimize ASCII argument case.
30823         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30824
30825 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         (x)memcoll: minor tweaks
30828         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30829         is after the type that it qualifies.
30830         (memcoll0): Likewise.
30831         * lib/memcoll.h (memcoll0): Likewise.
30832         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30833         * lib/xmemcoll.h (xmemcoll0): Likewise.
30834         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30835         differs from memcoll in that the NUL byte is part of the argument.
30836         Omit the abort-checks, as performance is a real issue here.  Plus,
30837         the checks were wrong anyway (an off-by-one error).  Omit local
30838         variable 'diff', as it's a bit clearer that way.
30839         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30840         no longer needed.
30841
30842 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30843
30844         (x)memcoll: speedup when input is known to be NUL delimited
30845         * lib/memcoll.c: Include stdlib.
30846         (memcoll0): New function.
30847         (strcoll_loop): New function, refactored for use in both memcoll
30848         and memcoll0.
30849         * lib/memcoll.h (memcoll0): Add prototype.
30850         * lib/xmemcoll.c (xmemcoll0): New function.
30851         (collate_error): New function, refactored for use in both xmemcoll
30852         and xmemcoll0.
30853         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30854         * m4/memcoll.m4: add inline invocation.
30855
30856 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30857
30858         * build-aux/bootstrap: Remove any local translations
30859         from the translation project synchronization directory,
30860         so that local only translations are not distributed.
30861
30862 2010-07-04  Bruno Haible  <bruno@clisp.org>
30863
30864         fsusage: Clarify which code applies to which platforms.
30865         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30866         platform.
30867         * lib/fsusage.c (get_fs_usage): Likewise.
30868
30869 2010-07-04  Bruno Haible  <bruno@clisp.org>
30870
30871         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30872         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30873         Reported by Martin Lambers <marlam@marlam.de>.
30874
30875 2010-07-04  Jim Meyering  <meyering@redhat.com>
30876
30877         hash: once again explicitly disallow insertion of NULL
30878         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30879         inserting a NULL pointer cannot work with these functions.
30880         Add a comment with details.
30881         This reverts part of the 2010-07-01 commit, 5bef1a35
30882         "hash: extend module to deal with non-pointer keys".
30883
30884 2010-07-01  Bruno Haible  <bruno@clisp.org>
30885
30886         stdbool: Update doc.
30887         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30888         Info from Christian Weisgerber <naddy@mips.inka.de>.
30889
30890 2010-07-01  Jim Meyering  <meyering@redhat.com>
30891
30892         hash: extend module to deal with non-pointer keys
30893         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30894         but that allows insertion of non-pointer entries.
30895         Do not disallow an ENTRY value of NULL.
30896         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30897         * lib/hash.h (hash_insert0): Declare.
30898
30899 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30900
30901         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30902         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30903         not present (i.e. with autoconf 2.59 and when using gettextize, not
30904         gnulib), require AC_GNU_SOURCE instead.
30905
30906 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30907
30908         idpriv-drop: Fix tests.
30909         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30910         not to the test-idpriv-droptemp program.
30911
30912 2010-06-29  Bruno Haible  <bruno@clisp.org>
30913
30914         string: Fix syntax error with g++ 2.96.
30915         * lib/string.in.h (__pure__): Remove definition.
30916         (_GL_ATTRIBUTE_PURE): New macro.
30917         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30918         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30919         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30920
30921 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30922
30923         unitypes: Fix bug introduced on 2010-05-18.
30924         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30925
30926 2010-06-22  Eric Blake  <eblake@redhat.com>
30927
30928         memmem: slight optimization
30929         * lib/str-two-way.h (critical_factorization): Update comments.
30930         Reduce work during factorization phase.
30931         Reported by Carlos Bueno <carlos@bueno.org>.
30932
30933 2010-06-21  Bruno Haible  <bruno@clisp.org>
30934
30935         Fix HAVE_CALLOC_POSIX misnomer.
30936         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30937         !HAVE_CALLOC_POSIX.
30938         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30939         HAVE_CALLOC_POSIX.
30940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30941         instead of HAVE_CALLOC_POSIX.
30942         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30943         HAVE_CALLOC_POSIX.
30944
30945         Use modern idiom for calloc() replacement.
30946         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30947         AC_FUNC_CALLOC.
30948         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30949         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30950         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30951         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30952         (gl_REPLACE_CALLOC): New macro.
30953
30954 2010-06-21  Bruno Haible  <bruno@clisp.org>
30955
30956         Fix HAVE_REALLOC_POSIX misnomer.
30957         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30958         !HAVE_REALLOC_POSIX.
30959         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30960         HAVE_REALLOC_POSIX.
30961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30962         instead of HAVE_REALLOC_POSIX.
30963         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30964         HAVE_REALLOC_POSIX.
30965
30966         Use modern idiom for realloc() replacement.
30967         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30968         AC_FUNC_REALLOC.
30969         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30970         Autoconf's AC_FUNC_REALLOC.
30971         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30972         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30973         (gl_REPLACE_REALLOC): New macro.
30974         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30975
30976 2010-06-21  Bruno Haible  <bruno@clisp.org>
30977
30978         Fix HAVE_MALLOC_POSIX misnomer.
30979         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30980         !HAVE_MALLOC_POSIX.
30981         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30982         HAVE_MALLOC_POSIX.
30983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30984         instead of HAVE_MALLOC_POSIX.
30985         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30986         HAVE_MALLOC_POSIX.
30987
30988         Use modern idiom for malloc() replacement.
30989         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30990         AC_FUNC_MALLOC.
30991         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30992         Autoconf's AC_FUNC_MALLOC.
30993         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30994         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30995         (gl_REPLACE_MALLOC): New macro.
30996         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30997
30998 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30999
31000         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31001         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31002         This macro takes 3 arguments, not 4.
31003
31004 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31005
31006         ipv6: fix detection under mingw
31007         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31008         in6_addr.
31009
31010 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31011
31012         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31013         that strtod() works when cross-compiling to a glibc version known
31014         to work.
31015
31016 2010-06-15  Bruno Haible  <bruno@clisp.org>
31017
31018         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31019
31020 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31021
31022         select: Correct timeout.
31023         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31024
31025 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31026
31027         git-version-gen: init shell var to avoid env var influence
31028         * build-aux/git-version-gen (v): Init shell var to empty.
31029
31030 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31031
31032         priv-set: Don't assume that priv.h exists merely because getppriv does.
31033         See Jan Andersen's bug report about AIX 5L in
31034         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31035         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31036         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31037         * lib/priv-set.h: Likewise.
31038         * tests/test-priv-set.c: Likewise.
31039
31040 2010-06-13  Bruno Haible  <bruno@clisp.org>
31041
31042         relocatable: Make it easier to test whether to install wrappers.
31043         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31044         RELOCATABLE_VIA_WRAPPER.
31045
31046 2010-06-13  Bruno Haible  <bruno@clisp.org>
31047
31048         gnulib-tool: Display specified modules and dependencies differently.
31049         * gnulib-tool (func_show_module_list): New function.
31050         (func_import, func_create_testdir): Invoke it.
31051         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31052
31053 2010-06-13  Bruno Haible  <bruno@clisp.org>
31054
31055         gnulib-tool: Align code of func_import and func_create_testdir.
31056         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31057         specified_modules.
31058
31059 2010-06-12  Jim Meyering  <meyering@redhat.com>
31060
31061         test-inttostr: avoid spurious failure on Solaris 9
31062         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31063         to accept "%ju".  Reported by Bruno Haible.
31064
31065 2010-06-11  Jim Meyering  <meyering@redhat.com>
31066
31067         test-sys_socket: mark variables as used more readably
31068         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31069         as "used" explicitly via (void) statement casts.  This is more
31070         readable than using them in an artificial return expression.
31071         Suggestion from Bruno Haible.
31072
31073 2010-06-11  Bruno Haible  <bruno@clisp.org>
31074
31075         Avoid some more warnings from "gcc -Wwrite-strings".
31076         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31077         to 'const char *'.
31078         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31079         * tests/test-c-strcasestr.c (main): Likewise.
31080         * tests/test-mbscasestr1.c (main): Likewise.
31081         * tests/test-mbscasestr2.c (main): Likewise.
31082         * tests/test-memmem.c (main): Likewise.
31083         * tests/test-strstr.c (main): Likewise.
31084         * tests/test-strcasestr.c (main): Likewise.
31085
31086 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31087
31088         init.sh: change framework_failure_ to fail with status 99, not 1
31089         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31090         automake's parallel-tests rule that this is an unexpected failure,
31091         even if the test is listed in XFAIL_TESTS.
31092
31093 2010-06-11  Jim Meyering  <meyering@redhat.com>
31094
31095         test-inttostr: avoid warnings about 4-6KB literal strings
31096         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31097         Include "macros.h", for its definition of ASSERT.
31098         (CK): s/assert/ASSERT/
31099         * modules/inttostr-tests (Files): Add macros.h.
31100
31101         init.sh: don't use $ME_ or skip_ before they are defined
31102         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31103         their first uses.  Also hoist their companions: warn_, fail_,
31104         framework_failure_, $stderr_fileno.  Prompted by a patch from
31105         Stefano Lattarini.
31106
31107         test-sys_socket: avoid set-but-not-used warnings from gcc
31108         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31109         avoid warning about set-but-not-used variables.
31110
31111         test-xvasprintf: avoid 'const' discard warnings
31112         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31113         "const" when assigning from literal strings.
31114         (test_xasprintf): Add "void" in function argument list to placate
31115         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31116
31117         tests: avoid compilation warnings in argmatch and exclude tests...
31118         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31119         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31120         Since it always exits, declare with the "noreturn" attribute.
31121         * tests/test-argmatch.c: Likewise.
31122
31123         tests: avoid 'const' discard warnings in mbsstr tests
31124         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31125         * tests/test-mbsstr2.c (main): Likewise.
31126
31127         test-verify: avoid warning from gcc's -Wmissing-declarations
31128         * tests/test-verify.c (function): Declare to be static.
31129
31130         test-inttostr.c: include <string.h> for use of strcmp
31131         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31132
31133         test-linkat: avoid failed assertion on "other" architectures
31134         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31135         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31136         sparc: https://bugs.launchpad.net/bugs/591968
31137
31138 2010-06-11  Jim Meyering  <meyering@redhat.com>
31139
31140         printf.m4: avoid autoconf's "Expanded Before Required" warning
31141         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31142         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31143         autoconf warning.
31144
31145 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31146
31147         Replacement header templates are now named with ".in", not "_".
31148         * doc/gnulib-intro.texi: Correct.
31149
31150 2010-06-10  Jim Meyering  <meyering@redhat.com>
31151
31152         inttostr-tests: depend on snprintf, not snprintf-posix
31153         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31154         snprintf-posix, to avoid this aclocal failure:
31155           missing file gnulib-tests/vasnprintf.c
31156           configure.ac:45: error: expected source file, required through \
31157           AC_LIBSOURCES, not found
31158
31159 2010-06-10  Jim Meyering  <meyering@redhat.com>
31160
31161         inttostr: add a new function, inttostr, and tests
31162         The namesake function was not available.  The existence of the
31163         template file, inttostr.c makes its addition nontrivial.
31164         * lib/anytostr.c: Rename from inttostr.c.
31165         (anytostr): Rename from inttostr.
31166         * lib/inttostr.c: New file.
31167         * modules/inttostr (Files): Add anytostr.c.
31168         (Makefile.am): Set lib_SOURCES instead of ...
31169         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31170         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31171         * lib/offtostr.c: Likewise.
31172         * lib/uinttostr.c: Likewise.
31173         * lib/umaxtostr.c: Likewise.
31174         * modules/inttostr-tests: New file.
31175         * tests/test-inttostr.c: New file.  Test these functions.
31176
31177 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31178             Bruno Haible  <bruno@clisp.org>
31179
31180         Add "Extending Gnulib" chapter to manual.
31181         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31182         chapter.
31183         (Extending Gnulib): New chapter.
31184         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31185         chapter.
31186
31187 2010-06-09  Bruno Haible  <bruno@clisp.org>
31188
31189         Avoid relocwrapper link errors due to gnulib replacement functions.
31190         * lib/areadlink.c: Use the system's malloc, realloc functions.
31191         (areadlink): Set errno to ENOMEM explicitly.
31192         * modules/areadlink (Depends-on): Remove malloc-posix.
31193         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31194
31195 2010-06-09  Bruno Haible  <bruno@clisp.org>
31196
31197         Avoid relocwrapper link errors due to gnulib replacement functions.
31198         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31199         * lib/malloca.c: Likewise.
31200         * lib/relocatable.c: Likewise.
31201         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31202         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31203         * lib/setenv.c: Use the system's malloc, realloc functions.
31204         * lib/strerror.c: Use the system's sprintf function.
31205         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31206
31207 2010-06-04  Bruno Haible  <bruno@clisp.org>
31208
31209         Prefer documented low-level autoconf macro names.
31210         * m4/lib-link.m4: Use m4_translit instead of translit.
31211         * m4/environ.m4: Likewise.
31212         * m4/mathfunc.m4: Likewise.
31213         * m4/onceonly.m4: Likewise.
31214         * m4/stdint.m4: Likewise.
31215         Suggested by Eric Blake.
31216
31217 2010-06-04  Martin Lambers  <marlam@marlam.de>
31218             Bruno Haible  <bruno@clisp.org>
31219
31220         havelib: Allow library names with '+' characters.
31221         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31222         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31223
31224 2010-06-09  Bruno Haible  <bruno@clisp.org>
31225
31226         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31227         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31228         realloc failed.
31229
31230 2010-06-08  Peter Simons  <simons@cryp.to>
31231
31232         maint.mk: make the news-check rule more configurable
31233         * top/maint.mk (news-check-lines-spec): New variable.
31234         (news-check): Use "sed -n 1,10p" in place of "head".
31235
31236 2010-06-07  Jim Meyering  <meyering@redhat.com>
31237
31238         do-release-commit-and-tag: fix typo in --help
31239         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31240
31241         regex: avoid new dead-code warning with gcc-4.6.0
31242         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31243         if-block containing a while-loop.  It's been unused for at least
31244         5 years.
31245
31246 2010-06-05  Bruno Haible  <bruno@clisp.org>
31247
31248         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31249         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31250
31251 2010-06-04  Bruno Haible  <bruno@clisp.org>
31252
31253         Update to GNU gettext 0.18.1.
31254         * modules/gettext (configure.ac): Require gettext infrastructure from
31255         version 0.18.1.
31256
31257 2010-06-03  Bruno Haible  <bruno@clisp.org>
31258
31259         Don't use AC_LIBOBJ with file names in subdirectories.
31260         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31261         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31262         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31263         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31264         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31265         gl_LIBUNISTRING_LIBSOURCE.
31266         (Makefile.am): Augment lib_SOURCES here, conditionally.
31267         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31268
31269 2010-06-03  Bruno Haible  <bruno@clisp.org>
31270
31271         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31273         expansion does not end with a newline.
31274         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31275         unnecessary newline.
31276
31277 2010-06-03  Bruno Haible  <bruno@clisp.org>
31278
31279         Reduce dependencies.
31280         * tests/test-quotearg.h: New file, extracted from
31281         tests/test-quotearg.c.
31282         * tests/test-quotearg-simple.c: New file, extracted from
31283         tests/test-quotearg.c.
31284         * tests/test-quotearg.c: Don't include <ctype.h>.
31285         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31286         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31287         use_quote_double_quotes, use_quotearg_colon): Moved to
31288         tests/test-quotearg.h.
31289         (results_g, flag_results, custom_quotes, custom_results): Moved
31290         to tests/test-quotearg-simple.c.
31291         (main): Moved the part that does not depend on gettext to
31292         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31293         performed.
31294         * modules/quotearg-simple: New file.
31295         * modules/quotearg-simple-tests: New file.
31296         * modules/quotearg (Depends-on): Add quotearg-simple.
31297         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31298         (Files): Add tests/test-quotearg.h.
31299         Reported by Paolo Bonzini.
31300
31301 2010-06-03  Bruno Haible  <bruno@clisp.org>
31302
31303         Reduce dependencies.
31304         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31305
31306 2010-06-03  Bruno Haible  <bruno@clisp.org>
31307
31308         time: Undefine more broken macros.
31309         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31310         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31311         Reported by Eric Blake.
31312
31313 2010-06-03  Bruno Haible  <bruno@clisp.org>
31314
31315         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31316         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31317         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31318         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31319         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31320         Reported by Ludovic Courtès <ludo@gnu.org>.
31321
31322 2010-06-02  Eric Blake  <eblake@redhat.com>
31323
31324         time: work with mingw + pthreads-win32 library
31325         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31326         if timespec is defined only in pthread.h.
31327         * modules/time (Makefile.am): Substitute it.
31328         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31329         <pthread.h>, when needed.
31330         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31331         from the library.
31332
31333 2010-05-31  Bruno Haible  <bruno@clisp.org>
31334
31335         Avoid expanding two macros in the wrong order.
31336         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31337         gl_LIBUNISTRING if it is defined.
31338         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31339         autoconf >= 2.64.
31340         Reported by Ludovic Courtès <ludo@gnu.org>.
31341
31342 2010-05-27  Jim Meyering  <meyering@redhat.com>
31343
31344         maint.mk: also prohibit "#undef" of always-defined symbols
31345         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31346         Allow more than one space before the symbol name.
31347         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31348         the regexp uses alternation.
31349
31350 2010-05-26  Eric Blake  <eblake@redhat.com>
31351
31352         maint.mk: avoid echo -e
31353         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31354         Convert all uses of echo -* to printf.
31355         Reported by Matthias Bolte.
31356
31357 2010-05-25  Bruno Haible  <bruno@clisp.org>
31358
31359         Update to GNU gettext 0.18, part 2.
31360         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31361         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31362
31363 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31364
31365         Add missing include in test-pwrite.c.
31366         * tests/test-pwrite.c: Include string.h, for strcmp.
31367
31368 2010-05-24  Bruno Haible  <bruno@clisp.org>
31369
31370         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31371
31372 2010-05-24  Bruno Haible  <bruno@clisp.org>
31373
31374         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31375         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31376         iconveh_error argument.
31377         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31378         U_STRCONV_TO_LOCALE.
31379         * lib/unistr/u16-strcoll.c: Likewise.
31380         * lib/unistr/u32-strcoll.c: Likewise.
31381         * modules/unistr/u8-strcoll (Depends-on): Add
31382         uniconv/u8-strconv-to-enc, localcharset. Remove
31383         uniconv/u8-strconv-to-locale.
31384         (configure.ac): Bump version number.
31385         * modules/unistr/u16-strcoll (Depends-on): Add
31386         uniconv/u16-strconv-to-enc, localcharset. Remove
31387         uniconv/u16-strconv-to-locale.
31388         (configure.ac): Bump version number.
31389         * modules/unistr/u32-strcoll (Depends-on): Add
31390         uniconv/u32-strconv-to-enc, localcharset. Remove
31391         uniconv/u32-strconv-to-locale.
31392         (configure.ac): Bump version number.
31393
31394 2010-05-24  Bruno Haible  <bruno@clisp.org>
31395
31396         Avoid a test failure on NetBSD 5.0.
31397         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31398         an iconv() bug.
31399
31400 2010-05-24  Bruno Haible  <bruno@clisp.org>
31401
31402         Adjust #include directive style.
31403         * modules/regex (Includes): Recommend to write <regex.h>.
31404
31405 2010-05-24  Bruno Haible  <bruno@clisp.org>
31406
31407         regex: Don't require alloca.
31408         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31409         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31410         only inside if (0).
31411
31412 2010-05-23  Jim Meyering  <meyering@redhat.com>
31413
31414         test-renameat.c: include <sys/stat.h>
31415         * tests/test-renameat.c: Include <sys/stat.h>; required for
31416         definition of S_IS* macros.
31417
31418 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31419
31420         Update maintainer documentation for 'relocatable-prog' module.
31421         * doc/relocatable-maint.texi: Update.
31422         Comments by Bruno Haible.
31423
31424 2010-05-23  Bruno Haible  <bruno@clisp.org>
31425
31426         git-merge-changelog: Enable --split-merged-entry by default.
31427         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31428         (usage): Don't mention this option any more.
31429         Reported by Ralf Wildenhues.
31430
31431 2010-05-23  Jim Meyering  <meyering@redhat.com>
31432
31433         test-pwrite: do not leave behind a test file named "out"
31434         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31435         The trivial-looking use of init.sh is really necessary.
31436         It ensures that the temporary file, "out", is created in
31437         a temporary directory, and removed upon termination.
31438         * tests/test-pwrite.sh: Re-add file.
31439         * modules/pwrite-tests: Reference it.
31440
31441 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31442
31443         Fix output redirection buglet in init.sh.
31444         * tests/init.sh: Fix redirection of stderr.
31445
31446 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31447
31448         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31449
31450 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31451
31452         * modules/valgrind-tests: New file.
31453         * m4/valgrind-tests.m4: New file.
31454         * doc/valgrind-tests.texi: New file.
31455         * doc/gnulib.texi (Running self-tests under valgrind): New
31456         section.
31457
31458 2010-05-19  Bruno Haible  <bruno@clisp.org>
31459
31460         Clean up dead code in recent commit.
31461         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31462         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31463         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31464         Suggested by Paolo Bonzini.
31465
31466 2010-05-19  Bruno Haible  <bruno@clisp.org>
31467
31468         Avoid valgrind error reports from libunistring.
31469         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31470         * modules/libunistring (Files): Add it.
31471         * modules/libunistring-optional (Files): Likewise.
31472
31473 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31474             Bruno Haible  <bruno@clisp.org>
31475
31476         New module 'libunistring-optional'.
31477         * modules/libunistring-optional: New file.
31478         * m4/libunistring-base.m4: New file.
31479         * m4/libunistring-optional.m4: New file.
31480         * lib/unicase.in.h: Renamed from lib/unicase.h.
31481         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31482         * lib/unictype.in.h: Renamed from lib/unictype.h.
31483         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31484         * lib/uniname.in.h: Renamed from lib/uniname.h.
31485         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31486         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31487         * lib/unistr.in.h: Renamed from lib/unistr.h.
31488         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31489         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31490         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31491         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31492         gl_LIBUNISTRING. If the library was found, determine the installed
31493         version and set LIBUNISTRING_VERSION.
31494         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31495         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31496         handle a configuration option --with-included-libunistring.
31497         * modules/libunistring (Files): Add m4/absolute-header.m4.
31498         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31499         Add m4/libunistring-base.m4.
31500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31501         (Makefile.am): Build unicase.h from unicase.in.h.
31502         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31503         Add m4/libunistring-base.m4.
31504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31505         (Makefile.am): Build uniconv.h from uniconv.in.h.
31506         * modules/unictype/base (Files): Use unictype.in.h instead of
31507         unictype.h. Add m4/libunistring-base.m4.
31508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31509         (Makefile.am): Build unictype.h from unictype.in.h.
31510         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31511         Add m4/libunistring-base.m4.
31512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31513         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31514         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31515         Add m4/libunistring-base.m4.
31516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31517         (Makefile.am): Build uniname.h from uniname.in.h.
31518         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31519         Add m4/libunistring-base.m4.
31520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31521         (Makefile.am): Build uninorm.h from uninorm.in.h.
31522         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31523         unistdio.h. Add m4/libunistring-base.m4.
31524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31525         (Makefile.am): Build unistdio.h from unistdio.in.h.
31526         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31527         Add m4/libunistring-base.m4.
31528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31529         (Makefile.am): Build unistr.h from unistr.in.h.
31530         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31531         Add m4/libunistring-base.m4.
31532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31533         (Makefile.am): Build unitypes.h from unitypes.in.h.
31534         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31535         Add m4/libunistring-base.m4.
31536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31537         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31538         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31539         uniwidth.h. Add m4/libunistring-base.m4.
31540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31541         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31542         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31543         instead of augmenting lib_SOURCES.
31544         * modules/unicase/empty-suffix-context: Likewise.
31545         * modules/unicase/locale-language: Likewise.
31546         * modules/unicase/tolower: Likewise.
31547         * modules/unicase/totitle: Likewise.
31548         * modules/unicase/toupper: Likewise.
31549         * modules/unicase/u8-casecmp: Likewise.
31550         * modules/unicase/u8-casecoll: Likewise.
31551         * modules/unicase/u8-casefold: Likewise.
31552         * modules/unicase/u8-casexfrm: Likewise.
31553         * modules/unicase/u8-ct-casefold: Likewise.
31554         * modules/unicase/u8-ct-tolower: Likewise.
31555         * modules/unicase/u8-ct-totitle: Likewise.
31556         * modules/unicase/u8-ct-toupper: Likewise.
31557         * modules/unicase/u8-is-cased: Likewise.
31558         * modules/unicase/u8-is-casefolded: Likewise.
31559         * modules/unicase/u8-is-lowercase: Likewise.
31560         * modules/unicase/u8-is-titlecase: Likewise.
31561         * modules/unicase/u8-is-uppercase: Likewise.
31562         * modules/unicase/u8-prefix-context: Likewise.
31563         * modules/unicase/u8-suffix-context: Likewise.
31564         * modules/unicase/u8-tolower: Likewise.
31565         * modules/unicase/u8-totitle: Likewise.
31566         * modules/unicase/u8-toupper: Likewise.
31567         * modules/unicase/u16-casecmp: Likewise.
31568         * modules/unicase/u16-casecoll: Likewise.
31569         * modules/unicase/u16-casefold: Likewise.
31570         * modules/unicase/u16-casexfrm: Likewise.
31571         * modules/unicase/u16-ct-casefold: Likewise.
31572         * modules/unicase/u16-ct-tolower: Likewise.
31573         * modules/unicase/u16-ct-totitle: Likewise.
31574         * modules/unicase/u16-ct-toupper: Likewise.
31575         * modules/unicase/u16-is-cased: Likewise.
31576         * modules/unicase/u16-is-casefolded: Likewise.
31577         * modules/unicase/u16-is-lowercase: Likewise.
31578         * modules/unicase/u16-is-titlecase: Likewise.
31579         * modules/unicase/u16-is-uppercase: Likewise.
31580         * modules/unicase/u16-prefix-context: Likewise.
31581         * modules/unicase/u16-suffix-context: Likewise.
31582         * modules/unicase/u16-tolower: Likewise.
31583         * modules/unicase/u16-totitle: Likewise.
31584         * modules/unicase/u16-toupper: Likewise.
31585         * modules/unicase/u32-casecmp: Likewise.
31586         * modules/unicase/u32-casecoll: Likewise.
31587         * modules/unicase/u32-casefold: Likewise.
31588         * modules/unicase/u32-casexfrm: Likewise.
31589         * modules/unicase/u32-ct-casefold: Likewise.
31590         * modules/unicase/u32-ct-tolower: Likewise.
31591         * modules/unicase/u32-ct-totitle: Likewise.
31592         * modules/unicase/u32-ct-toupper: Likewise.
31593         * modules/unicase/u32-is-cased: Likewise.
31594         * modules/unicase/u32-is-casefolded: Likewise.
31595         * modules/unicase/u32-is-lowercase: Likewise.
31596         * modules/unicase/u32-is-titlecase: Likewise.
31597         * modules/unicase/u32-is-uppercase: Likewise.
31598         * modules/unicase/u32-prefix-context: Likewise.
31599         * modules/unicase/u32-suffix-context: Likewise.
31600         * modules/unicase/u32-tolower: Likewise.
31601         * modules/unicase/u32-totitle: Likewise.
31602         * modules/unicase/u32-toupper: Likewise.
31603         * modules/unicase/ulc-casecmp: Likewise.
31604         * modules/unicase/ulc-casecoll: Likewise.
31605         * modules/unicase/ulc-casexfrm: Likewise.
31606         * modules/uniconv/u8-conv-from-enc: Likewise.
31607         * modules/uniconv/u8-conv-to-enc: Likewise.
31608         * modules/uniconv/u8-strconv-from-enc: Likewise.
31609         * modules/uniconv/u8-strconv-from-locale: Likewise.
31610         * modules/uniconv/u8-strconv-to-enc: Likewise.
31611         * modules/uniconv/u8-strconv-to-locale: Likewise.
31612         * modules/uniconv/u16-conv-from-enc: Likewise.
31613         * modules/uniconv/u16-conv-to-enc: Likewise.
31614         * modules/uniconv/u16-strconv-from-enc: Likewise.
31615         * modules/uniconv/u16-strconv-from-locale: Likewise.
31616         * modules/uniconv/u16-strconv-to-enc: Likewise.
31617         * modules/uniconv/u16-strconv-to-locale: Likewise.
31618         * modules/uniconv/u32-conv-from-enc: Likewise.
31619         * modules/uniconv/u32-conv-to-enc: Likewise.
31620         * modules/uniconv/u32-strconv-from-enc: Likewise.
31621         * modules/uniconv/u32-strconv-from-locale: Likewise.
31622         * modules/uniconv/u32-strconv-to-enc: Likewise.
31623         * modules/uniconv/u32-strconv-to-locale: Likewise.
31624         * modules/unictype/bidicategory-byname: Likewise.
31625         * modules/unictype/bidicategory-name: Likewise.
31626         * modules/unictype/bidicategory-of: Likewise.
31627         * modules/unictype/bidicategory-test: Likewise.
31628         * modules/unictype/block-list: Likewise.
31629         * modules/unictype/block-test: Likewise.
31630         * modules/unictype/category-C: Likewise.
31631         * modules/unictype/category-Cc: Likewise.
31632         * modules/unictype/category-Cf: Likewise.
31633         * modules/unictype/category-Cn: Likewise.
31634         * modules/unictype/category-Co: Likewise.
31635         * modules/unictype/category-Cs: Likewise.
31636         * modules/unictype/category-L: Likewise.
31637         * modules/unictype/category-Ll: Likewise.
31638         * modules/unictype/category-Lm: Likewise.
31639         * modules/unictype/category-Lo: Likewise.
31640         * modules/unictype/category-Lt: Likewise.
31641         * modules/unictype/category-Lu: Likewise.
31642         * modules/unictype/category-M: Likewise.
31643         * modules/unictype/category-Mc: Likewise.
31644         * modules/unictype/category-Me: Likewise.
31645         * modules/unictype/category-Mn: Likewise.
31646         * modules/unictype/category-N: Likewise.
31647         * modules/unictype/category-Nd: Likewise.
31648         * modules/unictype/category-Nl: Likewise.
31649         * modules/unictype/category-No: Likewise.
31650         * modules/unictype/category-P: Likewise.
31651         * modules/unictype/category-Pc: Likewise.
31652         * modules/unictype/category-Pd: Likewise.
31653         * modules/unictype/category-Pe: Likewise.
31654         * modules/unictype/category-Pf: Likewise.
31655         * modules/unictype/category-Pi: Likewise.
31656         * modules/unictype/category-Po: Likewise.
31657         * modules/unictype/category-Ps: Likewise.
31658         * modules/unictype/category-S: Likewise.
31659         * modules/unictype/category-Sc: Likewise.
31660         * modules/unictype/category-Sk: Likewise.
31661         * modules/unictype/category-Sm: Likewise.
31662         * modules/unictype/category-So: Likewise.
31663         * modules/unictype/category-Z: Likewise.
31664         * modules/unictype/category-Zl: Likewise.
31665         * modules/unictype/category-Zp: Likewise.
31666         * modules/unictype/category-Zs: Likewise.
31667         * modules/unictype/category-and: Likewise.
31668         * modules/unictype/category-and-not: Likewise.
31669         * modules/unictype/category-byname: Likewise.
31670         * modules/unictype/category-name: Likewise.
31671         * modules/unictype/category-none: Likewise.
31672         * modules/unictype/category-of: Likewise.
31673         * modules/unictype/category-or: Likewise.
31674         * modules/unictype/category-test: Likewise.
31675         * modules/unictype/combining-class: Likewise.
31676         * modules/unictype/ctype-alnum: Likewise.
31677         * modules/unictype/ctype-alpha: Likewise.
31678         * modules/unictype/ctype-blank: Likewise.
31679         * modules/unictype/ctype-cntrl: Likewise.
31680         * modules/unictype/ctype-digit: Likewise.
31681         * modules/unictype/ctype-graph: Likewise.
31682         * modules/unictype/ctype-lower: Likewise.
31683         * modules/unictype/ctype-print: Likewise.
31684         * modules/unictype/ctype-punct: Likewise.
31685         * modules/unictype/ctype-space: Likewise.
31686         * modules/unictype/ctype-upper: Likewise.
31687         * modules/unictype/ctype-xdigit: Likewise.
31688         * modules/unictype/decimal-digit: Likewise.
31689         * modules/unictype/digit: Likewise.
31690         * modules/unictype/mirror: Likewise.
31691         * modules/unictype/numeric: Likewise.
31692         * modules/unictype/property-alphabetic: Likewise.
31693         * modules/unictype/property-ascii-hex-digit: Likewise.
31694         * modules/unictype/property-bidi-arabic-digit: Likewise.
31695         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31696         * modules/unictype/property-bidi-block-separator: Likewise.
31697         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31698         * modules/unictype/property-bidi-common-separator: Likewise.
31699         * modules/unictype/property-bidi-control: Likewise.
31700         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31701         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31702         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31703         * modules/unictype/property-bidi-european-digit: Likewise.
31704         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31705         * modules/unictype/property-bidi-left-to-right: Likewise.
31706         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31707         * modules/unictype/property-bidi-other-neutral: Likewise.
31708         * modules/unictype/property-bidi-pdf: Likewise.
31709         * modules/unictype/property-bidi-segment-separator: Likewise.
31710         * modules/unictype/property-bidi-whitespace: Likewise.
31711         * modules/unictype/property-byname: Likewise.
31712         * modules/unictype/property-combining: Likewise.
31713         * modules/unictype/property-composite: Likewise.
31714         * modules/unictype/property-currency-symbol: Likewise.
31715         * modules/unictype/property-dash: Likewise.
31716         * modules/unictype/property-decimal-digit: Likewise.
31717         * modules/unictype/property-default-ignorable-code-point: Likewise.
31718         * modules/unictype/property-deprecated: Likewise.
31719         * modules/unictype/property-diacritic: Likewise.
31720         * modules/unictype/property-extender: Likewise.
31721         * modules/unictype/property-format-control: Likewise.
31722         * modules/unictype/property-grapheme-base: Likewise.
31723         * modules/unictype/property-grapheme-extend: Likewise.
31724         * modules/unictype/property-grapheme-link: Likewise.
31725         * modules/unictype/property-hex-digit: Likewise.
31726         * modules/unictype/property-hyphen: Likewise.
31727         * modules/unictype/property-id-continue: Likewise.
31728         * modules/unictype/property-id-start: Likewise.
31729         * modules/unictype/property-ideographic: Likewise.
31730         * modules/unictype/property-ids-binary-operator: Likewise.
31731         * modules/unictype/property-ids-trinary-operator: Likewise.
31732         * modules/unictype/property-ignorable-control: Likewise.
31733         * modules/unictype/property-iso-control: Likewise.
31734         * modules/unictype/property-join-control: Likewise.
31735         * modules/unictype/property-left-of-pair: Likewise.
31736         * modules/unictype/property-line-separator: Likewise.
31737         * modules/unictype/property-logical-order-exception: Likewise.
31738         * modules/unictype/property-lowercase: Likewise.
31739         * modules/unictype/property-math: Likewise.
31740         * modules/unictype/property-non-break: Likewise.
31741         * modules/unictype/property-not-a-character: Likewise.
31742         * modules/unictype/property-numeric: Likewise.
31743         * modules/unictype/property-other-alphabetic: Likewise.
31744         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31745         * modules/unictype/property-other-grapheme-extend: Likewise.
31746         * modules/unictype/property-other-id-continue: Likewise.
31747         * modules/unictype/property-other-id-start: Likewise.
31748         * modules/unictype/property-other-lowercase: Likewise.
31749         * modules/unictype/property-other-math: Likewise.
31750         * modules/unictype/property-other-uppercase: Likewise.
31751         * modules/unictype/property-paired-punctuation: Likewise.
31752         * modules/unictype/property-paragraph-separator: Likewise.
31753         * modules/unictype/property-pattern-syntax: Likewise.
31754         * modules/unictype/property-pattern-white-space: Likewise.
31755         * modules/unictype/property-private-use: Likewise.
31756         * modules/unictype/property-punctuation: Likewise.
31757         * modules/unictype/property-quotation-mark: Likewise.
31758         * modules/unictype/property-radical: Likewise.
31759         * modules/unictype/property-sentence-terminal: Likewise.
31760         * modules/unictype/property-soft-dotted: Likewise.
31761         * modules/unictype/property-space: Likewise.
31762         * modules/unictype/property-terminal-punctuation: Likewise.
31763         * modules/unictype/property-test: Likewise.
31764         * modules/unictype/property-titlecase: Likewise.
31765         * modules/unictype/property-unassigned-code-value: Likewise.
31766         * modules/unictype/property-unified-ideograph: Likewise.
31767         * modules/unictype/property-uppercase: Likewise.
31768         * modules/unictype/property-variation-selector: Likewise.
31769         * modules/unictype/property-white-space: Likewise.
31770         * modules/unictype/property-xid-continue: Likewise.
31771         * modules/unictype/property-xid-start: Likewise.
31772         * modules/unictype/property-zero-width: Likewise.
31773         * modules/unictype/scripts: Likewise.
31774         * modules/unictype/syntax-c-ident: Likewise.
31775         * modules/unictype/syntax-c-whitespace: Likewise.
31776         * modules/unictype/syntax-java-ident: Likewise.
31777         * modules/unictype/syntax-java-whitespace: Likewise.
31778         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31779         * modules/unilbrk/u8-width-linebreaks: Likewise.
31780         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31781         * modules/unilbrk/u16-width-linebreaks: Likewise.
31782         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31783         * modules/unilbrk/u32-width-linebreaks: Likewise.
31784         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31785         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31786         * modules/uniname/uniname: Likewise.
31787         * modules/uninorm/canonical-decomposition: Likewise.
31788         * modules/uninorm/composition: Likewise.
31789         * modules/uninorm/decomposing-form: Likewise.
31790         * modules/uninorm/decomposition: Likewise.
31791         * modules/uninorm/filter: Likewise.
31792         * modules/uninorm/nfc: Likewise.
31793         * modules/uninorm/nfd: Likewise.
31794         * modules/uninorm/nfkc: Likewise.
31795         * modules/uninorm/nfkd: Likewise.
31796         * modules/uninorm/u8-normalize: Likewise.
31797         * modules/uninorm/u8-normcmp: Likewise.
31798         * modules/uninorm/u8-normcoll: Likewise.
31799         * modules/uninorm/u8-normxfrm: Likewise.
31800         * modules/uninorm/u16-normalize: Likewise.
31801         * modules/uninorm/u16-normcmp: Likewise.
31802         * modules/uninorm/u16-normcoll: Likewise.
31803         * modules/uninorm/u16-normxfrm: Likewise.
31804         * modules/uninorm/u32-normalize: Likewise.
31805         * modules/uninorm/u32-normcmp: Likewise.
31806         * modules/uninorm/u32-normcoll: Likewise.
31807         * modules/uninorm/u32-normxfrm: Likewise.
31808         * modules/unistdio/u8-asnprintf: Likewise.
31809         * modules/unistdio/u8-asprintf: Likewise.
31810         * modules/unistdio/u8-snprintf: Likewise.
31811         * modules/unistdio/u8-sprintf: Likewise.
31812         * modules/unistdio/u8-u8-asnprintf: Likewise.
31813         * modules/unistdio/u8-u8-asprintf: Likewise.
31814         * modules/unistdio/u8-u8-snprintf: Likewise.
31815         * modules/unistdio/u8-u8-sprintf: Likewise.
31816         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31817         * modules/unistdio/u8-u8-vasprintf: Likewise.
31818         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31819         * modules/unistdio/u8-u8-vsprintf: Likewise.
31820         * modules/unistdio/u8-vasnprintf: Likewise.
31821         * modules/unistdio/u8-vasprintf: Likewise.
31822         * modules/unistdio/u8-vsnprintf: Likewise.
31823         * modules/unistdio/u8-vsprintf: Likewise.
31824         * modules/unistdio/u16-asnprintf: Likewise.
31825         * modules/unistdio/u16-asprintf: Likewise.
31826         * modules/unistdio/u16-snprintf: Likewise.
31827         * modules/unistdio/u16-sprintf: Likewise.
31828         * modules/unistdio/u16-u16-asnprintf: Likewise.
31829         * modules/unistdio/u16-u16-asprintf: Likewise.
31830         * modules/unistdio/u16-u16-snprintf: Likewise.
31831         * modules/unistdio/u16-u16-sprintf: Likewise.
31832         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31833         * modules/unistdio/u16-u16-vasprintf: Likewise.
31834         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31835         * modules/unistdio/u16-u16-vsprintf: Likewise.
31836         * modules/unistdio/u16-vasnprintf: Likewise.
31837         * modules/unistdio/u16-vasprintf: Likewise.
31838         * modules/unistdio/u16-vsnprintf: Likewise.
31839         * modules/unistdio/u16-vsprintf: Likewise.
31840         * modules/unistdio/u32-asnprintf: Likewise.
31841         * modules/unistdio/u32-asprintf: Likewise.
31842         * modules/unistdio/u32-snprintf: Likewise.
31843         * modules/unistdio/u32-sprintf: Likewise.
31844         * modules/unistdio/u32-u32-asnprintf: Likewise.
31845         * modules/unistdio/u32-u32-asprintf: Likewise.
31846         * modules/unistdio/u32-u32-snprintf: Likewise.
31847         * modules/unistdio/u32-u32-sprintf: Likewise.
31848         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31849         * modules/unistdio/u32-u32-vasprintf: Likewise.
31850         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31851         * modules/unistdio/u32-u32-vsprintf: Likewise.
31852         * modules/unistdio/u32-vasnprintf: Likewise.
31853         * modules/unistdio/u32-vasprintf: Likewise.
31854         * modules/unistdio/u32-vsnprintf: Likewise.
31855         * modules/unistdio/u32-vsprintf: Likewise.
31856         * modules/unistdio/ulc-asnprintf: Likewise.
31857         * modules/unistdio/ulc-asprintf: Likewise.
31858         * modules/unistdio/ulc-fprintf: Likewise.
31859         * modules/unistdio/ulc-snprintf: Likewise.
31860         * modules/unistdio/ulc-sprintf: Likewise.
31861         * modules/unistdio/ulc-vasnprintf: Likewise.
31862         * modules/unistdio/ulc-vasprintf: Likewise.
31863         * modules/unistdio/ulc-vfprintf: Likewise.
31864         * modules/unistdio/ulc-vsnprintf: Likewise.
31865         * modules/unistdio/ulc-vsprintf: Likewise.
31866         * modules/unistr/u8-check: Likewise.
31867         * modules/unistr/u8-chr: Likewise.
31868         * modules/unistr/u8-cmp: Likewise.
31869         * modules/unistr/u8-cmp2: Likewise.
31870         * modules/unistr/u8-cpy: Likewise.
31871         * modules/unistr/u8-cpy-alloc: Likewise.
31872         * modules/unistr/u8-endswith: Likewise.
31873         * modules/unistr/u8-mblen: Likewise.
31874         * modules/unistr/u8-mbsnlen: Likewise.
31875         * modules/unistr/u8-mbtouc: Likewise.
31876         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31877         * modules/unistr/u8-mbtoucr: Likewise.
31878         * modules/unistr/u8-move: Likewise.
31879         * modules/unistr/u8-next: Likewise.
31880         * modules/unistr/u8-prev: Likewise.
31881         * modules/unistr/u8-set: Likewise.
31882         * modules/unistr/u8-startswith: Likewise.
31883         * modules/unistr/u8-stpcpy: Likewise.
31884         * modules/unistr/u8-stpncpy: Likewise.
31885         * modules/unistr/u8-strcat: Likewise.
31886         * modules/unistr/u8-strchr: Likewise.
31887         * modules/unistr/u8-strcmp: Likewise.
31888         * modules/unistr/u8-strcoll: Likewise.
31889         * modules/unistr/u8-strcpy: Likewise.
31890         * modules/unistr/u8-strcspn: Likewise.
31891         * modules/unistr/u8-strdup: Likewise.
31892         * modules/unistr/u8-strlen: Likewise.
31893         * modules/unistr/u8-strmblen: Likewise.
31894         * modules/unistr/u8-strmbtouc: Likewise.
31895         * modules/unistr/u8-strncat: Likewise.
31896         * modules/unistr/u8-strncmp: Likewise.
31897         * modules/unistr/u8-strncpy: Likewise.
31898         * modules/unistr/u8-strnlen: Likewise.
31899         * modules/unistr/u8-strpbrk: Likewise.
31900         * modules/unistr/u8-strrchr: Likewise.
31901         * modules/unistr/u8-strspn: Likewise.
31902         * modules/unistr/u8-strstr: Likewise.
31903         * modules/unistr/u8-strtok: Likewise.
31904         * modules/unistr/u8-to-u16: Likewise.
31905         * modules/unistr/u8-to-u32: Likewise.
31906         * modules/unistr/u8-uctomb: Likewise.
31907         * modules/unistr/u16-check: Likewise.
31908         * modules/unistr/u16-chr: Likewise.
31909         * modules/unistr/u16-cmp: Likewise.
31910         * modules/unistr/u16-cmp2: Likewise.
31911         * modules/unistr/u16-cpy: Likewise.
31912         * modules/unistr/u16-cpy-alloc: Likewise.
31913         * modules/unistr/u16-endswith: Likewise.
31914         * modules/unistr/u16-mblen: Likewise.
31915         * modules/unistr/u16-mbsnlen: Likewise.
31916         * modules/unistr/u16-mbtouc: Likewise.
31917         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31918         * modules/unistr/u16-mbtoucr: Likewise.
31919         * modules/unistr/u16-move: Likewise.
31920         * modules/unistr/u16-next: Likewise.
31921         * modules/unistr/u16-prev: Likewise.
31922         * modules/unistr/u16-set: Likewise.
31923         * modules/unistr/u16-startswith: Likewise.
31924         * modules/unistr/u16-stpcpy: Likewise.
31925         * modules/unistr/u16-stpncpy: Likewise.
31926         * modules/unistr/u16-strcat: Likewise.
31927         * modules/unistr/u16-strchr: Likewise.
31928         * modules/unistr/u16-strcmp: Likewise.
31929         * modules/unistr/u16-strcoll: Likewise.
31930         * modules/unistr/u16-strcpy: Likewise.
31931         * modules/unistr/u16-strcspn: Likewise.
31932         * modules/unistr/u16-strdup: Likewise.
31933         * modules/unistr/u16-strlen: Likewise.
31934         * modules/unistr/u16-strmblen: Likewise.
31935         * modules/unistr/u16-strmbtouc: Likewise.
31936         * modules/unistr/u16-strncat: Likewise.
31937         * modules/unistr/u16-strncmp: Likewise.
31938         * modules/unistr/u16-strncpy: Likewise.
31939         * modules/unistr/u16-strnlen: Likewise.
31940         * modules/unistr/u16-strpbrk: Likewise.
31941         * modules/unistr/u16-strrchr: Likewise.
31942         * modules/unistr/u16-strspn: Likewise.
31943         * modules/unistr/u16-strstr: Likewise.
31944         * modules/unistr/u16-strtok: Likewise.
31945         * modules/unistr/u16-to-u32: Likewise.
31946         * modules/unistr/u16-to-u8: Likewise.
31947         * modules/unistr/u16-uctomb: Likewise.
31948         * modules/unistr/u32-check: Likewise.
31949         * modules/unistr/u32-chr: Likewise.
31950         * modules/unistr/u32-cmp: Likewise.
31951         * modules/unistr/u32-cmp2: Likewise.
31952         * modules/unistr/u32-cpy: Likewise.
31953         * modules/unistr/u32-cpy-alloc: Likewise.
31954         * modules/unistr/u32-endswith: Likewise.
31955         * modules/unistr/u32-mblen: Likewise.
31956         * modules/unistr/u32-mbsnlen: Likewise.
31957         * modules/unistr/u32-mbtouc: Likewise.
31958         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31959         * modules/unistr/u32-mbtoucr: Likewise.
31960         * modules/unistr/u32-move: Likewise.
31961         * modules/unistr/u32-next: Likewise.
31962         * modules/unistr/u32-prev: Likewise.
31963         * modules/unistr/u32-set: Likewise.
31964         * modules/unistr/u32-startswith: Likewise.
31965         * modules/unistr/u32-stpcpy: Likewise.
31966         * modules/unistr/u32-stpncpy: Likewise.
31967         * modules/unistr/u32-strcat: Likewise.
31968         * modules/unistr/u32-strchr: Likewise.
31969         * modules/unistr/u32-strcmp: Likewise.
31970         * modules/unistr/u32-strcoll: Likewise.
31971         * modules/unistr/u32-strcpy: Likewise.
31972         * modules/unistr/u32-strcspn: Likewise.
31973         * modules/unistr/u32-strdup: Likewise.
31974         * modules/unistr/u32-strlen: Likewise.
31975         * modules/unistr/u32-strmblen: Likewise.
31976         * modules/unistr/u32-strmbtouc: Likewise.
31977         * modules/unistr/u32-strncat: Likewise.
31978         * modules/unistr/u32-strncmp: Likewise.
31979         * modules/unistr/u32-strncpy: Likewise.
31980         * modules/unistr/u32-strnlen: Likewise.
31981         * modules/unistr/u32-strpbrk: Likewise.
31982         * modules/unistr/u32-strrchr: Likewise.
31983         * modules/unistr/u32-strspn: Likewise.
31984         * modules/unistr/u32-strstr: Likewise.
31985         * modules/unistr/u32-strtok: Likewise.
31986         * modules/unistr/u32-to-u16: Likewise.
31987         * modules/unistr/u32-to-u8: Likewise.
31988         * modules/unistr/u32-uctomb: Likewise.
31989         * modules/uniwbrk/u8-wordbreaks: Likewise.
31990         * modules/uniwbrk/u16-wordbreaks: Likewise.
31991         * modules/uniwbrk/u32-wordbreaks: Likewise.
31992         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31993         * modules/uniwbrk/wordbreak-property: Likewise.
31994         * modules/uniwidth/u8-strwidth: Likewise.
31995         * modules/uniwidth/u8-width: Likewise.
31996         * modules/uniwidth/u16-strwidth: Likewise.
31997         * modules/uniwidth/u16-width: Likewise.
31998         * modules/uniwidth/u32-strwidth: Likewise.
31999         * modules/uniwidth/u32-width: Likewise.
32000         * modules/uniwidth/width: Likewise.
32001         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32002         with $(LIBUNISTRING).
32003         * modules/unicase/ignorable-tests: Likewise.
32004         * modules/unicase/locale-language-tests: Likewise.
32005         * modules/unicase/tolower-tests: Likewise.
32006         * modules/unicase/totitle-tests: Likewise.
32007         * modules/unicase/toupper-tests: Likewise.
32008         * modules/unicase/u8-casecmp-tests: Likewise.
32009         * modules/unicase/u8-casecoll-tests: Likewise.
32010         * modules/unicase/u8-casefold-tests: Likewise.
32011         * modules/unicase/u8-is-cased-tests: Likewise.
32012         * modules/unicase/u8-is-casefolded-tests: Likewise.
32013         * modules/unicase/u8-is-lowercase-tests: Likewise.
32014         * modules/unicase/u8-is-titlecase-tests: Likewise.
32015         * modules/unicase/u8-is-uppercase-tests: Likewise.
32016         * modules/unicase/u8-tolower-tests: Likewise.
32017         * modules/unicase/u8-totitle-tests: Likewise.
32018         * modules/unicase/u8-toupper-tests: Likewise.
32019         * modules/unicase/u16-casecmp-tests: Likewise.
32020         * modules/unicase/u16-casecoll-tests: Likewise.
32021         * modules/unicase/u16-casefold-tests: Likewise.
32022         * modules/unicase/u16-is-cased-tests: Likewise.
32023         * modules/unicase/u16-is-casefolded-tests: Likewise.
32024         * modules/unicase/u16-is-lowercase-tests: Likewise.
32025         * modules/unicase/u16-is-titlecase-tests: Likewise.
32026         * modules/unicase/u16-is-uppercase-tests: Likewise.
32027         * modules/unicase/u16-tolower-tests: Likewise.
32028         * modules/unicase/u16-totitle-tests: Likewise.
32029         * modules/unicase/u16-toupper-tests: Likewise.
32030         * modules/unicase/u32-casecmp-tests: Likewise.
32031         * modules/unicase/u32-casecoll-tests: Likewise.
32032         * modules/unicase/u32-casefold-tests: Likewise.
32033         * modules/unicase/u32-is-cased-tests: Likewise.
32034         * modules/unicase/u32-is-casefolded-tests: Likewise.
32035         * modules/unicase/u32-is-lowercase-tests: Likewise.
32036         * modules/unicase/u32-is-titlecase-tests: Likewise.
32037         * modules/unicase/u32-is-uppercase-tests: Likewise.
32038         * modules/unicase/u32-tolower-tests: Likewise.
32039         * modules/unicase/u32-totitle-tests: Likewise.
32040         * modules/unicase/u32-toupper-tests: Likewise.
32041         * modules/unicase/ulc-casecmp-tests: Likewise.
32042         * modules/unicase/ulc-casecoll-tests: Likewise.
32043         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32044         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32045         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32046         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32047         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32048         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32049         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32050         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32051         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32052         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32053         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32054         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32055         * modules/unictype/bidicategory-byname-tests: Likewise.
32056         * modules/unictype/bidicategory-name-tests: Likewise.
32057         * modules/unictype/bidicategory-of-tests: Likewise.
32058         * modules/unictype/bidicategory-test-tests: Likewise.
32059         * modules/unictype/block-list-tests: Likewise.
32060         * modules/unictype/block-of-tests: Likewise.
32061         * modules/unictype/block-test-tests: Likewise.
32062         * modules/unictype/category-C-tests: Likewise.
32063         * modules/unictype/category-Cc-tests: Likewise.
32064         * modules/unictype/category-Cf-tests: Likewise.
32065         * modules/unictype/category-Cn-tests: Likewise.
32066         * modules/unictype/category-Co-tests: Likewise.
32067         * modules/unictype/category-Cs-tests: Likewise.
32068         * modules/unictype/category-L-tests: Likewise.
32069         * modules/unictype/category-Ll-tests: Likewise.
32070         * modules/unictype/category-Lm-tests: Likewise.
32071         * modules/unictype/category-Lo-tests: Likewise.
32072         * modules/unictype/category-Lt-tests: Likewise.
32073         * modules/unictype/category-Lu-tests: Likewise.
32074         * modules/unictype/category-M-tests: Likewise.
32075         * modules/unictype/category-Mc-tests: Likewise.
32076         * modules/unictype/category-Me-tests: Likewise.
32077         * modules/unictype/category-Mn-tests: Likewise.
32078         * modules/unictype/category-N-tests: Likewise.
32079         * modules/unictype/category-Nd-tests: Likewise.
32080         * modules/unictype/category-Nl-tests: Likewise.
32081         * modules/unictype/category-No-tests: Likewise.
32082         * modules/unictype/category-P-tests: Likewise.
32083         * modules/unictype/category-Pc-tests: Likewise.
32084         * modules/unictype/category-Pd-tests: Likewise.
32085         * modules/unictype/category-Pe-tests: Likewise.
32086         * modules/unictype/category-Pf-tests: Likewise.
32087         * modules/unictype/category-Pi-tests: Likewise.
32088         * modules/unictype/category-Po-tests: Likewise.
32089         * modules/unictype/category-Ps-tests: Likewise.
32090         * modules/unictype/category-S-tests: Likewise.
32091         * modules/unictype/category-Sc-tests: Likewise.
32092         * modules/unictype/category-Sk-tests: Likewise.
32093         * modules/unictype/category-Sm-tests: Likewise.
32094         * modules/unictype/category-So-tests: Likewise.
32095         * modules/unictype/category-Z-tests: Likewise.
32096         * modules/unictype/category-Zl-tests: Likewise.
32097         * modules/unictype/category-Zp-tests: Likewise.
32098         * modules/unictype/category-Zs-tests: Likewise.
32099         * modules/unictype/category-and-not-tests: Likewise.
32100         * modules/unictype/category-and-tests: Likewise.
32101         * modules/unictype/category-byname-tests: Likewise.
32102         * modules/unictype/category-name-tests: Likewise.
32103         * modules/unictype/category-none-tests: Likewise.
32104         * modules/unictype/category-of-tests: Likewise.
32105         * modules/unictype/category-or-tests: Likewise.
32106         * modules/unictype/category-test-withtable-tests: Likewise.
32107         * modules/unictype/combining-class-tests: Likewise.
32108         * modules/unictype/ctype-alnum-tests: Likewise.
32109         * modules/unictype/ctype-alpha-tests: Likewise.
32110         * modules/unictype/ctype-blank-tests: Likewise.
32111         * modules/unictype/ctype-cntrl-tests: Likewise.
32112         * modules/unictype/ctype-digit-tests: Likewise.
32113         * modules/unictype/ctype-graph-tests: Likewise.
32114         * modules/unictype/ctype-lower-tests: Likewise.
32115         * modules/unictype/ctype-print-tests: Likewise.
32116         * modules/unictype/ctype-punct-tests: Likewise.
32117         * modules/unictype/ctype-space-tests: Likewise.
32118         * modules/unictype/ctype-upper-tests: Likewise.
32119         * modules/unictype/ctype-xdigit-tests: Likewise.
32120         * modules/unictype/decimal-digit-tests: Likewise.
32121         * modules/unictype/digit-tests: Likewise.
32122         * modules/unictype/mirror-tests: Likewise.
32123         * modules/unictype/numeric-tests: Likewise.
32124         * modules/unictype/property-alphabetic-tests: Likewise.
32125         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32126         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32127         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32128         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32129         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32130         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32131         * modules/unictype/property-bidi-control-tests: Likewise.
32132         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32133         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32134         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32135         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32136         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32137         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32138         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32139         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32140         * modules/unictype/property-bidi-pdf-tests: Likewise.
32141         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32142         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32143         * modules/unictype/property-byname-tests: Likewise.
32144         * modules/unictype/property-combining-tests: Likewise.
32145         * modules/unictype/property-composite-tests: Likewise.
32146         * modules/unictype/property-currency-symbol-tests: Likewise.
32147         * modules/unictype/property-dash-tests: Likewise.
32148         * modules/unictype/property-decimal-digit-tests: Likewise.
32149         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32150         * modules/unictype/property-deprecated-tests: Likewise.
32151         * modules/unictype/property-diacritic-tests: Likewise.
32152         * modules/unictype/property-extender-tests: Likewise.
32153         * modules/unictype/property-format-control-tests: Likewise.
32154         * modules/unictype/property-grapheme-base-tests: Likewise.
32155         * modules/unictype/property-grapheme-extend-tests: Likewise.
32156         * modules/unictype/property-grapheme-link-tests: Likewise.
32157         * modules/unictype/property-hex-digit-tests: Likewise.
32158         * modules/unictype/property-hyphen-tests: Likewise.
32159         * modules/unictype/property-id-continue-tests: Likewise.
32160         * modules/unictype/property-id-start-tests: Likewise.
32161         * modules/unictype/property-ideographic-tests: Likewise.
32162         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32163         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32164         * modules/unictype/property-ignorable-control-tests: Likewise.
32165         * modules/unictype/property-iso-control-tests: Likewise.
32166         * modules/unictype/property-join-control-tests: Likewise.
32167         * modules/unictype/property-left-of-pair-tests: Likewise.
32168         * modules/unictype/property-line-separator-tests: Likewise.
32169         * modules/unictype/property-logical-order-exception-tests: Likewise.
32170         * modules/unictype/property-lowercase-tests: Likewise.
32171         * modules/unictype/property-math-tests: Likewise.
32172         * modules/unictype/property-non-break-tests: Likewise.
32173         * modules/unictype/property-not-a-character-tests: Likewise.
32174         * modules/unictype/property-numeric-tests: Likewise.
32175         * modules/unictype/property-other-alphabetic-tests: Likewise.
32176         * modules/unictype/property-other-default-ignorable-code-point-tests:
32177         Likewise.
32178         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32179         * modules/unictype/property-other-id-continue-tests: Likewise.
32180         * modules/unictype/property-other-id-start-tests: Likewise.
32181         * modules/unictype/property-other-lowercase-tests: Likewise.
32182         * modules/unictype/property-other-math-tests: Likewise.
32183         * modules/unictype/property-other-uppercase-tests: Likewise.
32184         * modules/unictype/property-paired-punctuation-tests: Likewise.
32185         * modules/unictype/property-paragraph-separator-tests: Likewise.
32186         * modules/unictype/property-pattern-syntax-tests: Likewise.
32187         * modules/unictype/property-pattern-white-space-tests: Likewise.
32188         * modules/unictype/property-private-use-tests: Likewise.
32189         * modules/unictype/property-punctuation-tests: Likewise.
32190         * modules/unictype/property-quotation-mark-tests: Likewise.
32191         * modules/unictype/property-radical-tests: Likewise.
32192         * modules/unictype/property-sentence-terminal-tests: Likewise.
32193         * modules/unictype/property-soft-dotted-tests: Likewise.
32194         * modules/unictype/property-space-tests: Likewise.
32195         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32196         * modules/unictype/property-test-tests: Likewise.
32197         * modules/unictype/property-titlecase-tests: Likewise.
32198         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32199         * modules/unictype/property-unified-ideograph-tests: Likewise.
32200         * modules/unictype/property-uppercase-tests: Likewise.
32201         * modules/unictype/property-variation-selector-tests: Likewise.
32202         * modules/unictype/property-white-space-tests: Likewise.
32203         * modules/unictype/property-xid-continue-tests: Likewise.
32204         * modules/unictype/property-xid-start-tests: Likewise.
32205         * modules/unictype/property-zero-width-tests: Likewise.
32206         * modules/unictype/scripts-tests: Likewise.
32207         * modules/unictype/syntax-c-ident-tests: Likewise.
32208         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32209         * modules/unictype/syntax-java-ident-tests: Likewise.
32210         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32211         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32212         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32213         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32214         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32215         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32216         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32217         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32218         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32219         * modules/uniname/uniname-tests: Likewise.
32220         * modules/uninorm/canonical-decomposition-tests: Likewise.
32221         * modules/uninorm/compat-decomposition-tests: Likewise.
32222         * modules/uninorm/composition-tests: Likewise.
32223         * modules/uninorm/decomposing-form-tests: Likewise.
32224         * modules/uninorm/decomposition-tests: Likewise.
32225         * modules/uninorm/filter-tests: Likewise.
32226         * modules/uninorm/nfc-tests: Likewise.
32227         * modules/uninorm/nfd-tests: Likewise.
32228         * modules/uninorm/nfkc-tests: Likewise.
32229         * modules/uninorm/nfkd-tests: Likewise.
32230         * modules/uninorm/u8-normcmp-tests: Likewise.
32231         * modules/uninorm/u8-normcoll-tests: Likewise.
32232         * modules/uninorm/u16-normcmp-tests: Likewise.
32233         * modules/uninorm/u16-normcoll-tests: Likewise.
32234         * modules/uninorm/u32-normcmp-tests: Likewise.
32235         * modules/uninorm/u32-normcoll-tests: Likewise.
32236         * modules/unistdio/u8-asnprintf-tests: Likewise.
32237         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32238         * modules/unistdio/u8-vasprintf-tests: Likewise.
32239         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32240         * modules/unistdio/u8-vsprintf-tests: Likewise.
32241         * modules/unistdio/u16-asnprintf-tests: Likewise.
32242         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32243         * modules/unistdio/u16-vasprintf-tests: Likewise.
32244         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32245         * modules/unistdio/u16-vsprintf-tests: Likewise.
32246         * modules/unistdio/u32-asnprintf-tests: Likewise.
32247         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32248         * modules/unistdio/u32-vasprintf-tests: Likewise.
32249         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32250         * modules/unistdio/u32-vsprintf-tests: Likewise.
32251         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32252         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32253         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32254         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32255         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32256         * modules/unistr/u8-check-tests: Likewise.
32257         * modules/unistr/u8-chr-tests: Likewise.
32258         * modules/unistr/u8-cmp-tests: Likewise.
32259         * modules/unistr/u8-cmp2-tests: Likewise.
32260         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32261         * modules/unistr/u8-cpy-tests: Likewise.
32262         * modules/unistr/u8-mblen-tests: Likewise.
32263         * modules/unistr/u8-mbsnlen-tests: Likewise.
32264         * modules/unistr/u8-mbtouc-tests: Likewise.
32265         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32266         * modules/unistr/u8-mbtoucr-tests: Likewise.
32267         * modules/unistr/u8-move-tests: Likewise.
32268         * modules/unistr/u8-next-tests: Likewise.
32269         * modules/unistr/u8-prev-tests: Likewise.
32270         * modules/unistr/u8-set-tests: Likewise.
32271         * modules/unistr/u8-stpcpy-tests: Likewise.
32272         * modules/unistr/u8-stpncpy-tests: Likewise.
32273         * modules/unistr/u8-strcat-tests: Likewise.
32274         * modules/unistr/u8-strcmp-tests: Likewise.
32275         * modules/unistr/u8-strcoll-tests: Likewise.
32276         * modules/unistr/u8-strcpy-tests: Likewise.
32277         * modules/unistr/u8-strdup-tests: Likewise.
32278         * modules/unistr/u8-strlen-tests: Likewise.
32279         * modules/unistr/u8-strmblen-tests: Likewise.
32280         * modules/unistr/u8-strmbtouc-tests: Likewise.
32281         * modules/unistr/u8-strncat-tests: Likewise.
32282         * modules/unistr/u8-strncmp-tests: Likewise.
32283         * modules/unistr/u8-strncpy-tests: Likewise.
32284         * modules/unistr/u8-strnlen-tests: Likewise.
32285         * modules/unistr/u8-to-u16-tests: Likewise.
32286         * modules/unistr/u8-to-u32-tests: Likewise.
32287         * modules/unistr/u8-uctomb-tests: Likewise.
32288         * modules/unistr/u16-check-tests: Likewise.
32289         * modules/unistr/u16-chr-tests: Likewise.
32290         * modules/unistr/u16-cmp-tests: Likewise.
32291         * modules/unistr/u16-cmp2-tests: Likewise.
32292         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32293         * modules/unistr/u16-cpy-tests: Likewise.
32294         * modules/unistr/u16-mblen-tests: Likewise.
32295         * modules/unistr/u16-mbsnlen-tests: Likewise.
32296         * modules/unistr/u16-mbtouc-tests: Likewise.
32297         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32298         * modules/unistr/u16-mbtoucr-tests: Likewise.
32299         * modules/unistr/u16-move-tests: Likewise.
32300         * modules/unistr/u16-next-tests: Likewise.
32301         * modules/unistr/u16-prev-tests: Likewise.
32302         * modules/unistr/u16-set-tests: Likewise.
32303         * modules/unistr/u16-stpcpy-tests: Likewise.
32304         * modules/unistr/u16-stpncpy-tests: Likewise.
32305         * modules/unistr/u16-strcat-tests: Likewise.
32306         * modules/unistr/u16-strcmp-tests: Likewise.
32307         * modules/unistr/u16-strcoll-tests: Likewise.
32308         * modules/unistr/u16-strcpy-tests: Likewise.
32309         * modules/unistr/u16-strdup-tests: Likewise.
32310         * modules/unistr/u16-strlen-tests: Likewise.
32311         * modules/unistr/u16-strmblen-tests: Likewise.
32312         * modules/unistr/u16-strmbtouc-tests: Likewise.
32313         * modules/unistr/u16-strncat-tests: Likewise.
32314         * modules/unistr/u16-strncmp-tests: Likewise.
32315         * modules/unistr/u16-strncpy-tests: Likewise.
32316         * modules/unistr/u16-strnlen-tests: Likewise.
32317         * modules/unistr/u16-to-u32-tests: Likewise.
32318         * modules/unistr/u16-to-u8-tests: Likewise.
32319         * modules/unistr/u16-uctomb-tests: Likewise.
32320         * modules/unistr/u32-check-tests: Likewise.
32321         * modules/unistr/u32-chr-tests: Likewise.
32322         * modules/unistr/u32-cmp-tests: Likewise.
32323         * modules/unistr/u32-cmp2-tests: Likewise.
32324         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32325         * modules/unistr/u32-cpy-tests: Likewise.
32326         * modules/unistr/u32-mblen-tests: Likewise.
32327         * modules/unistr/u32-mbsnlen-tests: Likewise.
32328         * modules/unistr/u32-mbtouc-tests: Likewise.
32329         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32330         * modules/unistr/u32-mbtoucr-tests: Likewise.
32331         * modules/unistr/u32-move-tests: Likewise.
32332         * modules/unistr/u32-next-tests: Likewise.
32333         * modules/unistr/u32-prev-tests: Likewise.
32334         * modules/unistr/u32-set-tests: Likewise.
32335         * modules/unistr/u32-stpcpy-tests: Likewise.
32336         * modules/unistr/u32-stpncpy-tests: Likewise.
32337         * modules/unistr/u32-strcat-tests: Likewise.
32338         * modules/unistr/u32-strcmp-tests: Likewise.
32339         * modules/unistr/u32-strcoll-tests: Likewise.
32340         * modules/unistr/u32-strcpy-tests: Likewise.
32341         * modules/unistr/u32-strdup-tests: Likewise.
32342         * modules/unistr/u32-strlen-tests: Likewise.
32343         * modules/unistr/u32-strmblen-tests: Likewise.
32344         * modules/unistr/u32-strmbtouc-tests: Likewise.
32345         * modules/unistr/u32-strncat-tests: Likewise.
32346         * modules/unistr/u32-strncmp-tests: Likewise.
32347         * modules/unistr/u32-strncpy-tests: Likewise.
32348         * modules/unistr/u32-strnlen-tests: Likewise.
32349         * modules/unistr/u32-to-u16-tests: Likewise.
32350         * modules/unistr/u32-to-u8-tests: Likewise.
32351         * modules/unistr/u32-uctomb-tests: Likewise.
32352         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32353         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32354         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32355         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32356         * modules/uniwidth/u8-strwidth-tests: Likewise.
32357         * modules/uniwidth/u8-width-tests: Likewise.
32358         * modules/uniwidth/u16-strwidth-tests: Likewise.
32359         * modules/uniwidth/u16-width-tests: Likewise.
32360         * modules/uniwidth/u32-strwidth-tests: Likewise.
32361         * modules/uniwidth/u32-width-tests: Likewise.
32362         * modules/uniwidth/width-tests: Likewise.
32363
32364 2010-05-18  Richard Jones  <rjones@redhat.com>
32365
32366         doc: users.txt: list hivex
32367         * users.txt: Add hivex.
32368
32369 2010-05-18  Richard Jones  <rjones@redhat.com>
32370
32371         doc: users.txt: list febootstrap
32372         * users.txt: Add febootstrap.
32373
32374 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32375
32376         bootstrap: fix an error when gnulib is not used as a git submodule
32377         * build-aux/bootstrap (gnulib_path): If its length is zero then
32378         assign "gnulib" to it.
32379         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32380
32381 2010-05-16  Bruno Haible  <bruno@clisp.org>
32382
32383         Avoid autoconf warnings about AM_ICONV.
32384         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32385         2.64.
32386
32387 2010-05-16  Bruno Haible  <bruno@clisp.org>
32388
32389         absolute-header: Make the macro usable in more situations.
32390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32391         from gl_ABSOLUTE_HEADER.
32392         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32393
32394 2010-05-16  James Youngman  <jay@gnu.org>
32395
32396         doc: update users.txt
32397         * users.txt: Add CSSC.
32398
32399 2010-05-16  Jim Meyering  <meyering@redhat.com>
32400
32401         init.sh: fix an error in the previous change; add more comments
32402         * tests/init.sh: Compare exit code in loop against 9, not 2.
32403         Patch by Bruno Haible.
32404         Make the two tests more similar by adding an empty "then" clause.
32405         Add comments.
32406
32407         init.sh: avoid unnecessary shell re-exec
32408         * tests/init.sh: Improve the re-exec-required check to first test the
32409         current shell.  If it passes the test, do not search for a shell that
32410         does pass, and do not re-exec.  This test is particularly contorted to
32411         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32412         of $(...) evokes a syntax error and causes immediate shell exit with
32413         status 2.  Bruno Haible reported that the re-exec made it impossible
32414         to single-step through any init.sh-using script.
32415
32416 2010-05-16  Bruno Haible  <bruno@clisp.org>
32417
32418         Fix collision between gnulib's and libintl's printf replacements.
32419         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32420         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32421         (printf): When using GNU C, map the __printf__ function to rpl_printf
32422         via __asm__. When not using GNU C, define rpl_printf instead of
32423         __printf__.
32424         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32425         commit.
32426         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32427         commit.
32428         * m4/asm-underscore.m4: New file.
32429         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32430         * modules/stdio (Files): Add m4/asm-underscore.m4.
32431         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32432         Reported by Ben Pfaff.
32433
32434 2010-05-16  Bruno Haible  <bruno@clisp.org>
32435
32436         verify: Avoid skipping the test on openSUSE 11.0.
32437         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32438
32439 2010-05-13  Bruno Haible  <bruno@clisp.org>
32440
32441         Avoid useless warnings from G++.
32442         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32443         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32444         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32445
32446 2010-05-11  Jim Meyering  <meyering@redhat.com>
32447
32448         maint.mk: tweak preceding change
32449         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32450         regexps tighter by anchoring at EOL, and make the new group "shy"
32451         for slightly decreased overhead.
32452
32453 2010-05-11  Eric Blake  <eblake@redhat.com>
32454
32455         maint.mk: gnulib doesn't guarantee NSIG
32456         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32457
32458 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32459
32460         test-pwrite.c: Remove unused variable declaration.
32461         * tests/test-pwrite.c (main): Remove read_buf declaration.
32462
32463         Remove useless test-pwrite.sh file.
32464         * tests/test-pwrite.sh: Delete file.
32465         * modules/pwrite-tests: Remove references.
32466         Reported by Bruno Haible.
32467
32468 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32469
32470         init.sh: fix a typo
32471         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32472
32473 2010-05-10  Jim Meyering  <meyering@redhat.com>
32474
32475         maint.mk: avoid using a temporary file in the always-defined-macros check
32476         * top/maint.mk (.re-defmac): Remove rule.
32477         (gl_trap_): Remove definition.
32478         (sc_prohibit_always-defined_macros): Rewrite not to create and
32479         depend on a temporary file.  Instead, depend on GNU grep's ability
32480         to read a list of regular expressions from stdin when given "-f -".
32481
32482 2010-05-09  Bruno Haible  <bruno@clisp.org>
32483
32484         Update to GNU gettext 0.18, part 1.
32485         * m4/gettext.m4: Update to GNU gettext 0.18.
32486         * m4/intl.m4: Likewise.
32487         * m4/po.m4: Likewise.
32488         * modules/gettext (Files): Add m4/fcntl-o.m4.
32489         (configure.ac): Require gettext infrastructure from version 0.18.
32490
32491 2010-05-09  Jim Meyering  <meyering@redhat.com>
32492
32493         init.sh: enable MALLOC_PERTURB_
32494         * tests/init.sh: Enable glibc's malloc-perturbing option.
32495
32496         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32497         With my recent change in init.sh from the two-line form:
32498             -#   : ${srcdir=.}
32499             -#   . "$srcdir/init.sh"; path_prepend_ .
32500             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32501         I noticed that using the one-line form would cause this test
32502         to fail with a false-positive, or to stop working altogether,
32503         depending on whether help-version changed or all the tests did.
32504         * top/maint.mk (_hv_regex): Remove this definition.
32505         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32506         (_hv_regex_strong): Use a stronger regex to check for conformance.
32507         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32508         Give a separate diagnostic for lack of conforming use.
32509
32510         maint.mk: prohibit definition of symbols defined by gnulib
32511         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32512         definition of symbols defined by gnulib.
32513
32514 2010-05-09  Bruno Haible  <bruno@clisp.org>
32515
32516         acl: Avoid test failure on Cygwin-hosted mingw.
32517         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32518
32519 2010-05-09  Bruno Haible  <bruno@clisp.org>
32520
32521         error: Use system's fcntl function.
32522         * lib/error.c (fcntl): Undefine.
32523
32524 2010-05-09  Jim Meyering  <meyering@redhat.com>
32525
32526         verify: adjust formatting to be more consistent
32527         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32528         argument-list '('s, and after one comma.
32529
32530 2010-05-09  Bruno Haible  <bruno@clisp.org>
32531
32532         error: More reliable output on mingw.
32533         * lib/error.c: Include <windows.h>.
32534         (is_open): New function.
32535         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32536         defined.
32537
32538 2010-05-09  Bruno Haible  <bruno@clisp.org>
32539
32540         vasnprintf: Fix syntax errors in libintl build on mingw.
32541         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32542         pad_ourselves and prec_ourselves after use.
32543
32544 2010-05-08  Bruno Haible  <bruno@clisp.org>
32545
32546         * lib/config.charset: Update comments for Cygwin 1.7.
32547         * lib/localcharset.c: Likewise.
32548
32549 2010-05-07  Jim Meyering  <meyering@redhat.com>
32550
32551         init.sh: improve comments
32552         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32553         . "${srcdir=.}/init.sh"; path_prepend_ .
32554         Add a note about path_prepend_ and the alternative of using
32555         TESTS_ENVIRONMENT.
32556
32557 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32558
32559         exclude: Unescape hashed patterns in wildcard mode.
32560         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32561         to the hash list.
32562         * tests/test-exclude8.sh: New test case.
32563         * modules/exclude-tests: Add new test.
32564
32565 2010-05-05  Eric Blake  <eblake@redhat.com>
32566
32567         verify: automate tests
32568         * modules/verify-tests: New module.
32569         * tests/test-verify.sh: New file.
32570         * tests/test-verify.c: Guard each negative test with a unique id.
32571         Also avoid warning about unused left hand of comma expressions.
32572
32573 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32574
32575         Further improvements to verify.h, suggested by Eric Blake.
32576         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32577         the GL_* versions, to avoid collision with OpenGL.
32578         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32579         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32580         than testing merely whether it's defined.
32581
32582         Modify verify.h to pacify gcc -Wredundant_decls.
32583         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32584         These use the prefix "GL_" since they're likely to be useful elsewhere.
32585         We may need to break them out into a different .h file.
32586         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32587         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32588         of verify_function__.
32589
32590 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32591
32592         Tests for module pwrite.
32593         * modules/pwrite-tests: New file.
32594         * tests/test-pwrite.sh: New file.
32595         * tests/test-pwrite.c: New file.
32596
32597         New module pwrite.
32598         * lib/unistd.in.h (pwrite): New declaration.
32599         * lib/pwrite.c: New file, from glibc with modifications.
32600         * m4/pwrite.m4: New file.
32601         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32602         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32603         REPLACE_PWRITE.
32604         * modules/pwrite: New file.
32605         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32606         REPLACE_PWRITE.
32607         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32608         * doc/posix-functions/pwrite.texi: Mention the new module.
32609
32610 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32611
32612         pread: Update documentation.
32613         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32614
32615 2010-05-04  Eric Blake  <eblake@redhat.com>
32616
32617         docs: update cygwin progress
32618         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32619         this bug.
32620         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32621         Added in cygwin 1.7.2.
32622         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32623         Likewise.
32624         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32625         Likewise.
32626         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32627         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32628         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32629         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32630         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32631         Mention nproc module.
32632         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32633         bug in cygwin 1.7.5 addition.
32634         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32635         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32636         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32637         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32638         1.7.5.
32639         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32640         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32641         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32642         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32643         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32644         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32645         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32646         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32647         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32648         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32649         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32650         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32651         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32652         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32653         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32654         Likewise.
32655         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32656         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32657         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32658         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32659         Likewise.
32660         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32661         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32662         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32663         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32664         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32665         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32666         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32667         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32668         Likewise.
32669         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32670         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32671         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32672         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32673         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32674         Likewise.
32675         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32676         Likewise.
32677         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32678         Likewise.
32679         * doc/glibc-functions/xdrrec_endofrecord.texi
32680         (xdrrec_endofrecord): Likewise.
32681         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32682         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32683         Likewise.
32684         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32685         Likewise.
32686
32687 2010-05-04  Jim Meyering  <meyering@redhat.com>
32688
32689         gendocs.sh: make its "-s FILE" option more useful
32690         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32691         $PACKAGE to reflect the probably-different basename of "FILE".
32692
32693 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32694
32695         bootstrap: don't ignore download_po_files failure
32696         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32697         failure.
32698
32699 2010-05-03  Jim Meyering  <meyering@redhat.com>
32700
32701         maint.mk: allow to pass options to gendocs.sh
32702         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32703         (gendocs_options_): New overridable variable.
32704
32705         gnu-web-doc-update: don't ignore configure or build failure
32706         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32707
32708         announce-gen: backslash-escape '@'s in --help output
32709         * build-aux/announce-gen: Fix syntax errors.
32710
32711         maint.mk, announce-gen: allow project-specific announcement mail headers
32712         * top/maint.mk (translation_project_): Define default.
32713         (announcement_Cc_, announcement_mail_headers_): Likewise.
32714         (announcement): Invoke announce-gen with new --mail-headers option.
32715         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32716
32717         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32718         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32719         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32720         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32721         line in the "err2" output file when running "make check" in verbose
32722         mode (i.e., with set -x enabled).
32723
32724 2010-05-03  Bruno Haible  <bruno@clisp.org>
32725
32726         wctob: Fix for weird platforms.
32727         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32728         argument value.
32729
32730 2010-05-03  Jim Meyering  <meyering@redhat.com>
32731
32732         maint.mk: prohibit unwarranted use of <strings.h>
32733         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32734         strings.h in a file that does not also use strcasecmp, strncasecmp,
32735         ffs or ffsll.
32736
32737         maint.mk: remove obsolete comments
32738         * top/maint.mk: Remove stale, commented-out rules.
32739
32740 2010-05-02  Bruno Haible  <bruno@clisp.org>
32741
32742         wcwidth: Declare also when it's aliased.
32743         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32744         macro.
32745
32746 2010-05-02  Bruno Haible  <bruno@clisp.org>
32747
32748         Fix regression from 2010-04-25.
32749         * gnulib-tool (func_modules_transitive_closure): Check the status of
32750         all modules, not only of the tests that are of the form foo-tests where
32751         foo is a module.
32752
32753 2010-05-02  Bruno Haible  <bruno@clisp.org>
32754
32755         wctob: Work around nasty Cygwin 1.7.2 bug.
32756         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32757         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32758
32759 2010-05-01  Bruno Haible  <bruno@clisp.org>
32760
32761         fpurge: Sharper test.
32762         * tests/test-fpurge.c (main): Add one more ftell check.
32763         * modules/fpurge-tests (Depends-on): Add ftell.
32764         Suggested by Eric Blake.
32765
32766 2010-05-01  Bruno Haible  <bruno@clisp.org>
32767
32768         ftello: Another test.
32769         * tests/test-ftello3.c: New file.
32770         * modules/ftello-tests (Files): Add it.
32771         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32772         MOSTLYCLEANFILES.
32773
32774         ftell: Another test.
32775         * tests/test-ftell3.c: New file.
32776         * modules/ftell-tests (Files): Add it.
32777         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32778         MOSTLYCLEANFILES.
32779
32780 2010-05-01  Bruno Haible  <bruno@clisp.org>
32781
32782         ftell, ftello: Work around Solaris bug.
32783         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32784         * lib/ftello.c: Include stdio-impl.h.
32785         (ftello): On Solaris, when _IOWRT is set, compute the result without
32786         looking at _IOREAD.
32787         * modules/ftello (Files): Add lib/stdio-impl.h.
32788         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32789         * doc/posix-functions/ftello.texi: Likewise.
32790         Reported by Eric Blake.
32791
32792 2010-05-01  Bruno Haible  <bruno@clisp.org>
32793
32794         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32795         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32796         the _IOWRT flag is also set.
32797
32798 2010-05-01  Bruno Haible  <bruno@clisp.org>
32799
32800         Fix doc about a HP-UX stdio bug.
32801         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32802         * doc/posix-functions/ftello.texi: Likewise.
32803
32804 2010-05-01  Bruno Haible  <bruno@clisp.org>
32805
32806         lseek test: Fix failure on Solaris.
32807         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32808         output.
32809
32810 2010-04-30  Jim Meyering  <meyering@redhat.com>
32811
32812         bootstrap: don't ignore failure to generate po*/Makevars
32813         * build-aux/bootstrap (with_gettext): Don't ignore failure
32814         to create po/Makevars or runtime-po/Makevars.
32815
32816 2010-04-29  Eric Blake  <eblake@redhat.com>
32817
32818         headers: relax license to LGPLv2+
32819         * modules/fcntl-h (License): Relax license.
32820         * modules/getopt-posix (License): Likewise.
32821         * modules/locale (License): Likewise.
32822         * modules/math (License): Likewise.
32823         * modules/pty (License): Likewise.
32824         * modules/sched (License): Likewise.
32825         * modules/search (License): Likewise.
32826         * modules/spawn (License): Likewise.
32827         * modules/stdarg (License): Likewise.
32828         * modules/sysexits (License): Likewise.
32829
32830 2010-04-29  Jim Meyering  <meyering@redhat.com>
32831
32832         inttypes: relax license to LGPLv2+
32833         * modules/inttypes (License): Relax license.
32834
32835 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32836
32837         * top/maint.mk (indent): Run twice to produce idempotent results.
32838
32839 2010-04-28  Bruno Haible  <bruno@clisp.org>
32840
32841         getdate: Generate getdate.c in the source directory.
32842         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32843         MOSTLYCLEANFILES.
32844         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32845
32846 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32847
32848         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32849         is not declared as a const *; avoid warnings in that case.
32850
32851 2010-04-28  Eric Blake  <eblake@redhat.com>
32852
32853         canonicalize-lgpl: avoid compiler warning
32854         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32855         declaration' / 'extraneous semicolon' warning with some compilers.
32856         Reported by Andreas Gruenbacher.
32857
32858 2010-04-28  Jim Meyering  <meyering@redhat.com>
32859
32860         init.sh: ensure a more reliable exit status when exiting via trap
32861         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32862         Inspired by patches from Dmitry V. Levin.
32863         Also trap on signal 3 (SIGQUIT).
32864
32865 2010-04-27  Bruno Haible  <bruno@clisp.org>
32866
32867         Update doc about utimes().
32868         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32869         'utimens' module.
32870         Reported by Andreas Gruenbacher <agruen@suse.de>.
32871
32872 2010-04-27  Eric Blake  <eblake@redhat.com>
32873
32874         full-read, full-write: relax license
32875         * modules/full-read (License): Drop to LGPLv2+.
32876         * modules/full-write (License): Likewise.
32877         * modules/safe-read (License): Likewise.
32878         * modules/safe-write (License): Likewise.
32879
32880         pthread: mention library for linking
32881         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32882
32883 2010-04-27  Jim Meyering  <meyering@redhat.com>
32884
32885         maint.mk: fix a bug introduced in last change
32886         * top/maint.mk (gl_assured_headers_): Now that all names are on
32887         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32888         is not anchored to end of word, it should be adequate.
32889
32890         maint.mk: avoid side-effect in latest syntax-check
32891         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32892         to run commands via $(shell...), and hence to incur cost only when
32893         the new rule is actually run.
32894
32895         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32896         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32897         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32898         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32899         (gl_assured_headers_, az_, AZ_): Define.
32900         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32901
32902 2010-04-26  Jim Meyering  <jim@meyering.net>
32903             Bruno Haible  <bruno@clisp.org>
32904
32905         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32907         Prompted by an exchange with Gilles Espinasse.
32908
32909 2010-04-26  Jim Meyering  <meyering@redhat.com>
32910
32911         git-version-gen: aesthetic tweak
32912         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32913         so that the command remains on a single line.
32914
32915 2010-04-26  Eric Blake  <eblake@redhat.com>
32916
32917         git-version-gen: allow use on EBCDIC hosts
32918         * build-aux/git-version-gen (dirty): Use literal rather than tying
32919         ourselves to ascii.
32920         Reported by Steve Goetze.
32921
32922 2010-04-25  Bruno Haible  <bruno@clisp.org>
32923
32924         netdb: Add support for GNULIB_POSIXCHECK.
32925         * lib/netdb.in.h: Include warn-on-use.h.
32926         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32927         functions are used when GNULIB_POSIXCHECK is defined and the
32928         getaddrinfo module is not in use.
32929         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32930         freeaddrinfo, gai_strerror, getnameinfo are declared.
32931         * modules/netdb (Depends-on): Add warn-on-use.
32932         (Makefile.am): Include warn-on-use.h in netdb.h.
32933
32934 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32935
32936         build: avoid "make check" failure without .git/ directory
32937         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32938         there is no .git/ directory.
32939
32940 2010-04-25  Bruno Haible  <bruno@clisp.org>
32941
32942         ptsname: Fix misuse of ttyname_r.
32943         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32944         of errno.
32945
32946 2010-04-25  Bruno Haible  <bruno@clisp.org>
32947
32948         ttyname_r: Make it work on Solaris 10.
32949         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32950         if the system function has the POSIX declaration. Test whether the
32951         function fails if the buffer is less than 128 bytes large.
32952         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32953         system's ttyname_r function. Provide a reasonably large buffer.
32954         * modules/ttyname_r (Depends-on): Add extensions.
32955         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32956
32957 2010-04-25  Bruno Haible  <bruno@clisp.org>
32958
32959         Use the 'extensions' module for some more functions on Solaris.
32960         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32961         module.
32962         * doc/posix-functions/ctime_r.texi: Likewise.
32963         * doc/posix-functions/getgrgid_r.texi: Likewise.
32964         * doc/posix-functions/getgrnam_r.texi: Likewise.
32965         * doc/posix-functions/getpwnam_r.texi: Likewise.
32966         * doc/posix-functions/getpwuid_r.texi: Likewise.
32967         * doc/posix-functions/readdir_r.texi: Likewise.
32968         * doc/posix-functions/sigwait.texi: Likewise.
32969         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32970         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32971
32972 2010-04-25  Bruno Haible  <bruno@clisp.org>
32973
32974         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32975         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32976         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32977         * lib/ttyname_r.c: Include <limits.h>.
32978         (ttyname_r): Define using the system's ttyname_r function, if it exists
32979         and not on Solaris.
32980         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32981         set.
32982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32983         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32984         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32985         Reported by Simon Josefsson.
32986
32987 2010-04-25  Bruno Haible  <bruno@clisp.org>
32988
32989         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32990         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32991         * doc/posix-functions/ctime_r.texi: Likewise.
32992         * doc/posix-functions/getgrgid_r.texi: Likewise.
32993         * doc/posix-functions/getgrnam_r.texi: Likewise.
32994         * doc/posix-functions/getlogin_r.texi: Likewise.
32995         * doc/posix-functions/getpwnam_r.texi: Likewise.
32996         * doc/posix-functions/getpwuid_r.texi: Likewise.
32997         * doc/posix-functions/readdir_r.texi: Likewise.
32998         * doc/posix-functions/sigwait.texi: Likewise.
32999         * doc/posix-functions/ttyname_r.texi: Likewise.
33000         Reported by Simon Josefsson.
33001
33002 2010-04-25  Bruno Haible  <bruno@clisp.org>
33003
33004         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33005         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33006         also to --create-testdir.
33007         (func_acceptable): Don't consider the status of *-tests modules here.
33008         (func_modules_transitive_closure): Consider it here, before including a
33009         test module.
33010         (func_import, func_create_testdir): Set inc_all_direct_tests,
33011         inc_all_indirect_tests.
33012         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33013         --create-testdir and --create-megatestdir.
33014
33015 2010-04-25  Bruno Haible  <bruno@clisp.org>
33016
33017         gnulib-tool: Add --without-*-tests options.
33018         * gnulib-tool (func_usage): Document the --without-*-tests options.
33019         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33020         excl_unportable_tests): New variables.
33021         Fail if they are specified with --import or --update.
33022         (func_acceptable): Respect the excl_*_tests variables.
33023         (func_import): Set the excl_*_tests variables to empty.
33024
33025 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33026             Bruno Haible  <bruno@clisp.org>
33027
33028         Work around a MacOS X 10.4 bug with openpty.
33029         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33030         * tests/test-openpty.c (main): Close the master side explicitly.
33031
33032 2010-04-25  Bruno Haible  <bruno@clisp.org>
33033
33034         strnlen: Fix a C++ test error on MacOS X and Solaris.
33035         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33036         the function is not declared.
33037         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33038         Simon Josefsson.
33039
33040 2010-04-24  Bruno Haible  <bruno@clisp.org>
33041
33042         Avoid a gcc warning.
33043         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33044         of correct type for %08lx directive.
33045         Reported by Eric Blake.
33046
33047 2010-04-24  Bruno Haible  <bruno@clisp.org>
33048
33049         vasnprintf: Correct errno value in case of out-of-memory.
33050         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33051         or sprintf. Use the errno value from SNPRINTF or sprintf.
33052         Reported by Ian Beckwith <ianb@erislabs.net>.
33053
33054 2010-04-24  Bruno Haible  <bruno@clisp.org>
33055
33056         ansi-c++-opt: Find correct compiler when cross-compiling.
33057         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33058         AC_CHECK_PROGS.
33059         Reported by Simon Josefsson.
33060
33061 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33062
33063         vc-list-files: Add support for subversion
33064         * build-aux/vc-list-files: Use "svn list" to generate the list of
33065         files controlled by subversion.
33066
33067 2010-04-23  Jim Meyering  <meyering@redhat.com>
33068
33069         vc-list-files tests: convert to use init.sh
33070         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33071         path_prepend_.
33072         Use Exit, not exit.
33073         Use skip_ rather than open coding it.
33074         Remove trap set-up and compare definitions.
33075         * tests/test-vc-list-files-git.sh: Likewise.
33076         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33077
33078 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33079
33080         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33081         backup files.
33082
33083 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33084
33085         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33086
33087 2010-04-20  Eric Blake  <eblake@redhat.com>
33088
33089         tests: be robust to ignored SIGPIPE
33090         * tests/test-select-in.sh: Consume all output.
33091         * tests/test-lseek.sh: Check correct exit status, while avoiding
33092         EPIPE.
33093
33094 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33095             Bruno Haible  <bruno@clisp.org>
33096
33097         visibility: Don't use -fvisibility if it leads to a warning.
33098         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33099         yes, don't pretend that visibility works if it leads to a warning.
33100         Reported by Mike Gran <spk121@yahoo.com>.
33101
33102 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33103
33104         * build-aux/bootstrap: Use "git -h" for testing for supported options
33105         instead of "git --help".  The short-form option only shows a summary,
33106         and doesn't layout the full man page.  Grep for the full option name
33107         in the summary, too.
33108
33109 2010-04-19  Bruno Haible  <bruno@clisp.org>
33110
33111         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33113         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33114         mention of RELOCATABLE_STRIP.
33115         Reported by Sylvain Beucler <beuc@beuc.net>.
33116
33117 2010-04-19  Bruno Haible  <bruno@clisp.org>
33118
33119         * lib/diffseq.h: Fix typo in comment.
33120         Reported by Eric Blake.
33121
33122 2010-04-19  Bruno Haible  <bruno@clisp.org>
33123
33124         ioctl: Move autoconf macro to a .m4 file.
33125         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33126         * modules/ioctl (Files): Add it.
33127         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33128         Reported by Ian Beckwith <ianb@erislabs.net>.
33129
33130 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33131             Bruno Haible  <bruno@clisp.org>
33132
33133         diffseq: Accommodate use-case with abstract arrays.
33134         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33135         is not defined.
33136         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33137         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33138
33139 2010-04-18  Bruno Haible  <bruno@clisp.org>
33140
33141         * doc/posix-headers/stdbool.texi: More precise wording.
33142
33143 2010-04-17  Jim Meyering  <meyering@redhat.com>
33144
33145         maint.mk: use gnu-style indentation in an embedded perl script
33146         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33147         Rename variable: s/two/last_two_bytes/
33148
33149 2010-04-16  Eric Blake  <eblake@redhat.com>
33150
33151         test-stdbool: skip test that fails with Solaris CC
33152         * tests/test-stdbool.c (f): Skip test that causes compilation
33153         error under buggy C++ compiler.
33154         * lib/stdbool.in.h: Document the limitation.
33155         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33156
33157         setenv: allow compilation with C++
33158         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33159         register keyword.
33160
33161         stdint: allow test to pass with C++
33162         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33163
33164         getopt: allow compilation with C++
33165         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33166         struct.
33167         * lib/getopt.c (_getopt_internal_r): Use correct type.
33168         Reported by Dagobert Michelson, via Joel E. Denny.
33169
33170 2010-04-16  Bruno Haible  <bruno@clisp.org>
33171
33172         Override netdb.h always.
33173         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33174         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33175         Reported by Ludovic Courtès <ludo@gnu.org>.
33176
33177 2010-04-15  Bruno Haible  <bruno@clisp.org>
33178
33179         openpty: Fix mistake from 2010-03-21.
33180         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33181         Reported by Simon Josefsson.
33182
33183 2010-04-15  Eric Blake  <eblake@redhat.com>
33184
33185         test-forkpty: fix expected signature
33186         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33187         Reported by Simon Josefsson.
33188
33189 2010-04-15  Jim Meyering  <meyering@redhat.com>
33190
33191         maint.mk: texinfo_suffix_re_: correct the default regexp
33192         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33193
33194         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33195         make it configurable via texinfo_suffix_re_.
33196
33197 2010-04-14  Eric Blake  <eblake@redhat.com>
33198
33199         strtok_r: relax license to LGPLv2+
33200         * modules/strtok_r (License): Relax license.
33201         Reported by Matthias Bolte.
33202
33203 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33204
33205         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33206         version 1.4.4 by default instead of requiring the libgcrypt
33207         version used during build.  This makes it possible to use the
33208         application with older but still binary compatible libgcrypt
33209         versions.
33210
33211 2010-04-13  Eric Blake  <eblake@redhat.com>
33212
33213         getopt-gnu: match recent glibc fixes and posix ruling
33214         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33215         '+' handling, when requesting extensions.
33216         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33217         'W;' handling.
33218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33219         * doc/posix-functions/getopt.texi (getopt): Document this.
33220         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33221         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33222         Likewise.
33223
33224         getopt: merge bug fixes from glibc
33225         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33226         diagnostics.  Honor '+:' correctly.  Reject ';'.
33227
33228         getopt-posix: detect MacOS bug
33229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33230         optind when missing a required argument.
33231         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33232         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33233         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33234         Likewise.
33235
33236         getopt-posix: avoid spurious failure on Solaris
33237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33238         an indicator that setting optind=1 is sufficient for reset.
33239
33240         getopt-posix: avoid spurious failure on FreeBSD
33241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33242         in POSIX mode, since the m4 test uses it.
33243
33244         gnulib-tool: silence warning on BSD sh
33245         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33246
33247 2010-04-13  Jim Meyering  <meyering@redhat.com>
33248
33249         doc: users.txt: GNU patch now uses gnulib
33250         * users.txt: Add patch.
33251
33252 2010-04-12  Jim Meyering  <meyering@redhat.com>
33253
33254         maint.mk: generate more concise timing data for syntax-check rules
33255         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33256         " done" from each line that reports a syntax-check test duration.
33257
33258 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33259
33260         git-version-gen: use "git update-index..." rather than "git status"
33261         * build-aux/git-version-gen: Use git update-index --refresh, not
33262         "git status".  With some versions of git, "git status" would fail
33263         to update the index and result in an unwarranted "-dirty" suffix.
33264
33265 2010-04-11  Jim Meyering  <meyering@redhat.com>
33266
33267         openat: correct formatting (no semantic change)
33268         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33269         Suggested by Bruno Haible.
33270
33271 2010-04-11  Bruno Haible  <bruno@clisp.org>
33272
33273         Stricter declaration checking in testdirs.
33274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33275         If for_tests is true, augment AM_CPPFLAGS to define
33276         GNULIB_STRICT_CHECKING.
33277         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33278         GNULIB_STRICT_CHECKING is defined, verify that the function is
33279         declared.
33280
33281 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33282             Bruno Haible  <bruno@clisp.org>
33283
33284         libunistring: Improve configure output.
33285         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33286         Don't say "consider installing GNU libunistring" when checking again
33287         with libiconv.
33288
33289 2010-04-11  Bruno Haible  <bruno@clisp.org>
33290
33291         libunistring: Correct value of $LTLIBUNISTRING.
33292         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33293         correct the value of $LTLIBUNISTRING.
33294
33295 2010-04-11  Bruno Haible  <bruno@clisp.org>
33296
33297         havelib: Add static libraries to LIBS in the right order.
33298         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33299         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33300
33301 2010-04-11  Bruno Haible  <bruno@clisp.org>
33302
33303         libunistring: Detect libunistring also when it depends on libiconv.
33304         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33305         the second AC_LIB_HAVE_LINKFLAGS invocation.
33306
33307 2010-04-11  James Youngman  <jay@gnu.org>
33308
33309         close-stream: declare local scalars to be "const"
33310         * lib/close-stream.c (close_stream): Make boolean variables const
33311         to document the fact that we set but do not change them.
33312
33313 2010-04-11  Bruno Haible  <bruno@clisp.org>
33314
33315         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33316
33317 2010-04-11  Jim Meyering  <meyering@redhat.com>
33318
33319         maint.mk: don't include dist-check.mk
33320         * top/maint.mk: Remove bogus include directive.
33321
33322         maint.mk: improve empty-line-at-EOF check
33323         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33324         solution, rather than tail+Perl-based one.  The latter would read
33325         a few kilobytes from the end of each file, and did not handle empty
33326         files properly.
33327
33328         maint.mk: print the elapsed time for each syntax-check rule
33329         * top/maint.mk (sc_m_rules_): Save start time in a file.
33330         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33331         (local-check): Interpose the .z rules
33332
33333 2010-04-11  Jim Meyering  <meyering@redhat.com>
33334
33335         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33336         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33337         empty file with one that ends in an empty line.
33338
33339 2010-04-10  Bruno Haible  <bruno@clisp.org>
33340
33341         mkdir: Make it work on mingw64.
33342         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33343         * lib/mkdir.c: Update comment.
33344         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33345
33346 2010-04-10  Bruno Haible  <bruno@clisp.org>
33347
33348         Don't override improved macro from newer autoconf.
33349         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33350         autoconf >= 2.62.
33351         Reported by Joel E. Denny <jdenny@clemson.edu>.
33352
33353 2010-04-10  Jim Meyering  <meyering@redhat.com>
33354
33355         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33356         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33357
33358         maint.mk: correct a diagnostic
33359         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33360         in diagnostic; now use $prohibit.
33361
33362 2010-04-10  Bruno Haible  <address@hidden>
33363
33364         fchownat: Fix a C++ test error on Solaris 8.
33365         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33366         the function does not exist.
33367
33368 2010-04-10  Bruno Haible  <bruno@clisp.org>
33369
33370         vasnprintf: Add more tests.
33371         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33372         (test_function): Test converting an invalid wide string.
33373
33374         vasnprintf: Correct handling of unconvertible wide string arguments.
33375         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33376         VASNPRINTF.
33377         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33378         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33379         smaller than the expected maximum need for the directive. Set errno to
33380         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33381         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33383         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33384         * modules/vasnprintf (Files): Add m4/printf.m4.
33385         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33386
33387 2010-04-10  Bruno Haible  <bruno@clisp.org>
33388
33389         vasnprintf: Fix crash in %ls directive.
33390         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33391         string is passed as argument to %ls, with no precision and no width.
33392         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33393
33394 2010-04-10  Bruno Haible  <bruno@clisp.org>
33395
33396         vasnprintf: Fix multiple test failures on mingw.
33397         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33398         _snprintf, or snwprintf, not _snwprintf.
33399
33400 2010-04-10  Bruno Haible  <bruno@clisp.org>
33401
33402         write: Fix a C++ test error on mingw.
33403         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33404
33405 2010-04-10  Bruno Haible  <bruno@clisp.org>
33406
33407         vasnprintf test: Reduce code duplication.
33408         * tests/test-vasnprintf.c (test_function): New function, extracted from
33409         test_vasnprintf.
33410         (test_vasnprintf, test_asnprintf): Invoke it.
33411
33412 2010-04-10  Bruno Haible  <bruno@clisp.org>
33413
33414         strnlen: Fix warning in C++ mode on MacOS X.
33415         * lib/string.in.h (strnlen): Use the modern idiom.
33416         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33417         defining strnlen as a macro already in <config.h>.
33418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33419         REPLACE_STRNLEN.
33420         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33422
33423 2010-04-08  James Youngman  <jay@gnu.org>
33424
33425         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33426         the example.
33427
33428 2010-04-09  Jim Meyering  <meyering@redhat.com>
33429
33430         maint.mk: print better diagnostic when there is no $(_hv_file)
33431         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33432         announce that when $(_hv_file) (aka help-version) does not exist.
33433
33434         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33435         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33436         not try to interpret its random input bytes.  Jarno Rajahalme reported
33437         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33438         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33439         (mktempd_): Likewise, just in case.
33440
33441         ftruncate: add two years to projected module removal date: 2012
33442         * m4/ftruncate.m4: Adjust comments.
33443
33444         ftruncate: mark module as obsolete; even MinGW provides it, now
33445         * modules/ftruncate (Status): Obsolete.
33446         (Notice): Say that.
33447         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33448         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33449
33450 2010-04-08  Bruno Haible  <bruno@clisp.org>
33451
33452         Fix side effects from tests-related modules.
33453         * modules/dprintf-posix (Comment): New section.
33454         * modules/fprintf-posix (Comment): Likewise.
33455         * modules/obstack-printf-posix (Comment): Likewise.
33456         * modules/printf-posix (Comment): Likewise.
33457         * modules/snprintf-posix (Comment): Likewise.
33458         * modules/sprintf-posix (Comment): Likewise.
33459         * modules/vasnprintf-posix (Comment): Likewise.
33460         * modules/vasprintf-posix (Comment): Likewise.
33461         * modules/vdprintf-posix (Comment): Likewise.
33462         * modules/vfprintf-posix (Comment): Likewise.
33463         * modules/vprintf-posix (Comment): Likewise.
33464         * modules/vsnprintf-posix (Comment): Likewise.
33465         * modules/vsprintf-posix (Comment): Likewise.
33466         * modules/xprintf-posix (Comment): Likewise.
33467         * modules/xvasprintf-posix (Comment): Likewise.
33468         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33469         * modules/floorf-tests (Depends-on): Likewise.
33470         * modules/round-tests (Depends-on): Likewise.
33471         * modules/roundf-tests (Depends-on): Likewise.
33472         * modules/trunc-tests (Depends-on): Likewise.
33473         * modules/truncf-tests (Depends-on): Likewise.
33474         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33475         'fprintf-posix' module is not present.
33476         * tests/test-floorf2.c (check): Likewise.
33477         * tests/test-trunc2.c (check): Likewise.
33478         * tests/test-truncf2.c (check): Likewise.
33479         * tests/test-round2.c (equal): Likewise.
33480         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33481
33482 2010-04-07  Karl Berry  <karl@gnu.org>
33483
33484         * config/srclist.txt,
33485         * config/srclistvars.sh,
33486         * config/srclist-update: doc fixes.
33487
33488 2010-04-07  Jim Meyering  <meyering@redhat.com>
33489
33490         maint.mk: add a PATH crosschecking syntax-check rule
33491         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33492         Useful if you use a test like the one in help-version (coreutils,
33493         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33494         printed by prog --version.
33495
33496 2010-04-06  Bruno Haible  <bruno@clisp.org>
33497
33498         Fix link error on mingw.
33499         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33500         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33501
33502 2010-04-06  Bruno Haible  <bruno@clisp.org>
33503
33504         Assume rmdir exists.
33505         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33506
33507 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33508
33509         doc: update users.txt
33510         * users.txt: Add gcal.
33511
33512 2010-04-06  Jim Meyering  <meyering@redhat.com>
33513
33514         init.sh: simply unset TMPDIR rather than risking env -i
33515         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33516         although it probably works fine on all Unix-based systems, some
33517         systems (Cygwin?) cannot tolerate a totally cleared environment.
33518         Suggestion from Eric Blake.
33519
33520 2010-04-06  Jim Meyering  <meyering@redhat.com>
33521
33522         init.sh: portability fix: use env's POSIX-specified -i option not -u
33523         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33524         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33525
33526 2010-04-05  Bruno Haible  <bruno@clisp.org>
33527
33528         btowc: Work around Cygwin 1.7.2 bug.
33529         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33530         does not map NUL to 0.
33531         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33532
33533 2010-04-05  Bruno Haible  <bruno@clisp.org>
33534
33535         Make the multithread modules work on Cygwin 1.7.2.
33536         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33537         imported symbols can be declared weak, so that it returns "no" on
33538         Cygwin 1.7.2.
33539
33540 2010-04-05  Bruno Haible  <bruno@clisp.org>
33541
33542         Use the module 'strncat'.
33543         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33544
33545         Tests for module 'strncat'.
33546         * modules/strncat-tests: New file.
33547         * tests/test-strncat.c: New file.
33548
33549         New module 'strncat'.
33550         * lib/string.in.h (strncat): New declaration.
33551         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33552         * m4/strncat.m4: New file, based on m4/memchr.m4.
33553         * modules/strncat: New file.
33554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33555         is declared.
33556         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33557         REPLACE_STRNCAT.
33558         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33559         REPLACE_STRNCAT.
33560         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33561         module.
33562         * tests/test-string-c++.cc: Check signature of strncat.
33563
33564 2010-04-05  Jim Meyering  <meyering@redhat.com>
33565
33566         xstrtoumax-tests: convert to use init.sh
33567         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33568         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33569         Use Exit, not exit.
33570         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33571
33572         xstrtoimax-tests: convert to use init.sh
33573         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33574         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33575         Use Exit, not exit.
33576         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33577
33578 2010-04-05  Bruno Haible  <bruno@clisp.org>
33579
33580         sys_socket: Avoid #define replacements in C++ mode.
33581         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33582         warning to the function if possible, rather than #defining the symbol
33583         to a dysfunctional alias.
33584
33585 2010-04-05  Bruno Haible  <bruno@clisp.org>
33586
33587         fseeko: Fix C++ test error on mingw.
33588         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33589         gl_FUNC_FSEEKO.
33590         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33591         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33593         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33594
33595 2010-04-05  Bruno Haible  <bruno@clisp.org>
33596
33597         duplocale: Improve test output.
33598         * tests/test-duplocale.c (main): Print reason for skipped test.
33599
33600 2010-04-05  Bruno Haible  <bruno@clisp.org>
33601
33602         Assume rmdir exists.
33603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33604         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33605
33606 2010-04-05  Bruno Haible  <bruno@clisp.org>
33607
33608         Fix link error on Solaris 8 with cc.
33609         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33610
33611 2010-04-05  Bruno Haible  <bruno@clisp.org>
33612
33613         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33614         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33615
33616 2010-04-05  Bruno Haible  <bruno@clisp.org>
33617
33618         vasprintf: Update documentation.
33619         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33620
33621 2010-04-05  Bruno Haible  <bruno@clisp.org>
33622
33623         ptsname: Improve test.
33624         * tests/test-ptsname.c (main): Also try the various master names of BSD
33625         systems.
33626
33627 2010-04-05  Bruno Haible  <bruno@clisp.org>
33628
33629         memchr: Avoid a possible C++ test error.
33630         * lib/string.in.h (memchr): Provide declaration if function is missing.
33631         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33632         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33634         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33635
33636 2010-04-05  Bruno Haible  <bruno@clisp.org>
33637
33638         strtok_r: Improve idiom.
33639         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33640         AC_LIBOBJ is used.
33641
33642 2010-04-05  Bruno Haible  <bruno@clisp.org>
33643
33644         strdup: Improve idiom.
33645         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33646         AC_LIBOBJ is used.
33647         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33648         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33649         when AC_LIBOBJ is used.
33650
33651 2010-04-05  Bruno Haible  <bruno@clisp.org>
33652
33653         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33655         don't set REPLACE_MBSINIT to 1.
33656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33657         don't set REPLACE_MBRTOWC to 1.
33658         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33659         exist, don't set REPLACE_MBSRTOWCS to 1.
33660         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33661         exist, don't set REPLACE_MBSNRTOWCS to 1.
33662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33663         don't set REPLACE_WCRTOMB to 1.
33664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33665         exist, don't set REPLACE_WCSRTOMBS to 1.
33666         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33667         exist, don't set REPLACE_WCSNRTOMBS to 1.
33668
33669 2010-04-05  Bruno Haible  <bruno@clisp.org>
33670
33671         ldexpl: Improve idiom.
33672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33673         make sure to set HAVE_DECL_LDEXPL to 0.
33674
33675 2010-04-05  Jim Meyering  <meyering@redhat.com>
33676
33677         xstrtol-tests: convert to use init.sh
33678         * modules/xstrtol-tests (Files): Add tests/init.sh.
33679         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33680         Use Exit, not exit.
33681         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33682
33683         atexit-tests: convert to use init.sh
33684         * modules/atexit-tests (Files): Add tests/init.sh.
33685         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33686         Use Exit, not exit.
33687         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33688
33689         init.sh: fix typo
33690         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33691
33692         init.sh: make it easier for a test script to write to the tty, ...
33693         when using automake's parallel-tests mode.
33694         * tests/init.sh (stderr_fileno_): Define overridable variable.
33695         (warn_): New function, to use it.
33696         (fail_, skip_, framework_failure_): Use warn_.
33697
33698 2010-04-04  Bruno Haible  <bruno@clisp.org>
33699
33700         btowc: Avoid warning.
33701         * lib/btowc.c: Include <stdlib.h>.
33702         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33703
33704 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33705             Bruno Haible  <bruno@clisp.org>
33706
33707         wchar: Port to NetBSD 1.5.
33708         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33709         * lib/wctype.in.h (WEOF): Likewise.
33710
33711 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33712             Bruno Haible  <bruno@clisp.org>
33713
33714         Port extended stdio to NetBSD 1.5.
33715         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33716         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33717         older.
33718
33719 2010-04-04  Bruno Haible  <bruno@clisp.org>
33720
33721         string: Remove unused substitution.
33722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33723         HAVE_DECL_STRERROR.
33724         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33725
33726 2010-04-04  Bruno Haible  <bruno@clisp.org>
33727
33728         strtod: Avoid a possible C++ test error.
33729         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33730         set REPLACE_STRTOD.
33731
33732 2010-04-04  Bruno Haible  <bruno@clisp.org>
33733
33734         strerror: Update documentation.
33735         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33736
33737 2010-04-04  Bruno Haible  <bruno@clisp.org>
33738
33739         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33740         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33741         _GL_CXXALIAS_SYS_CAST.
33742
33743 2010-04-04  Bruno Haible  <bruno@clisp.org>
33744
33745         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33746         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33747         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33748         REPLACE_FREXPL to 1.
33749         * doc/posix-functions/frexpl.texi: Update documentation.
33750
33751 2010-04-04  Bruno Haible  <bruno@clisp.org>
33752
33753         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33754         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33755
33756 2010-04-04  Bruno Haible  <bruno@clisp.org>
33757
33758         Implement nanosleep for native Windows.
33759         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33760
33761 2010-04-04  Bruno Haible  <bruno@clisp.org>
33762
33763         math: Fix some C++ test errors on Solaris 8.
33764         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33765
33766 2010-04-04  Bruno Haible  <bruno@clisp.org>
33767
33768         math: Fix some C++ test errors on Cygwin.
33769         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33770         truncl): Provide declaration if the system does not have it.
33771         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33772         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33773         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33774         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33775         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33776         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33777         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33778         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33779         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33780         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33781         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33782         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33783         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33784         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33785         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33786         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33788         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33789         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33790         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33791         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33792         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33793
33794 2010-04-04  Bruno Haible  <bruno@clisp.org>
33795
33796         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33797         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33798         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33799         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33800         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33801         * m4/isinf.m4 (gl_ISINF): Likewise.
33802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33803
33804 2010-04-04  Bruno Haible  <bruno@clisp.org>
33805
33806         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33807         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33808
33809 2010-04-04  Bruno Haible  <bruno@clisp.org>
33810
33811         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33812         * modules/tmpfile (configure.ac): Update.
33813
33814         tmpfile: Fix C++ test error on mingw.
33815         * lib/stdio.in.h (tmpfile): New declaration.
33816         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33817         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33818         * modules/tmpfile (Depends-on): Add stdio.
33819         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33820         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33821         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33822         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33823         REPLACE_TMPFILE.
33824         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33825
33826 2010-04-04  Bruno Haible  <bruno@clisp.org>
33827
33828         ioctl: Fix C++ test error on mingw.
33829         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33830         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33831         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33832
33833 2010-04-03  Bruno Haible  <bruno@clisp.org>
33834
33835         wcwidth: Fix C++ test error on mingw.
33836         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33838         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33839
33840 2010-04-03  Bruno Haible  <bruno@clisp.org>
33841
33842         nanosleep: Fix C++ test error on mingw.
33843         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33844         * lib/time.in.h (nanosleep): Use modern idiom.
33845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33846         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33847         REPLACE_NANOSLEEP to 1.
33848         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33849         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33850
33851 2010-04-03  Bruno Haible  <bruno@clisp.org>
33852
33853         strptime: Fix C++ test error on mingw.
33854         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33855         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33856         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33857         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33858         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33859         not REPLACE_STRPTIME.
33860         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33861         REPLACE_STRPTIME.
33862
33863 2010-04-03  Bruno Haible  <bruno@clisp.org>
33864
33865         timegm: Fix C++ test error on mingw.
33866         * lib/time.in.h (timegm): Use modern idiom.
33867         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33868         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33869         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33870         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33871
33872 2010-04-03  Bruno Haible  <bruno@clisp.org>
33873
33874         timegm: Assume declaration if function exists.
33875         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33876         if it exists. Don't clobber ac_cv_func_timegm.
33877
33878 2010-04-03  Bruno Haible  <bruno@clisp.org>
33879
33880         time_r: Fix C++ test error on mingw.
33881         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33882         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33883         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33885         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33886
33887 2010-04-03  Bruno Haible  <bruno@clisp.org>
33888
33889         time_r: Minor updates.
33890         * modules/time_r (Description): Mention the provided functions.
33891         * lib/time_r.c: Don't include <string.h>.
33892         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33893         * doc/posix-functions/localtime_r.texi: Likewise.
33894
33895 2010-04-03  Bruno Haible  <bruno@clisp.org>
33896
33897         time: Fix regression introduced on 2010-03-08.
33898         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33899         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33900
33901 2010-04-03  Jim Meyering  <meyering@redhat.com>
33902
33903         maint.mk: don't silently disable project-specific syntax-check rules
33904         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33905         that they need to convert their project-specific syntax-check rules
33906         to use the new _sc_search_regexp.
33907
33908 2010-04-03  Bruno Haible  <bruno@clisp.org>
33909
33910         fchdir: Fix regression introduced on 2010-03-08.
33911         * lib/unistd.in.h (fchdir): Fix declaration.
33912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33914         REPLACE_FCHDIR.
33915         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33916         REPLACE_FCHDIR.
33917
33918 2010-04-03  Bruno Haible  <bruno@clisp.org>
33919
33920         getpagesize: Fix C++ test error on mingw.
33921         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33922         system does not declare the function.
33923         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33924         declared.
33925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33926         HAVE_DECL_GETPAGESIZE.
33927         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33928
33929 2010-04-03  Bruno Haible  <bruno@clisp.org>
33930
33931         stdio: Make C++ tests work on mingw.
33932         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33933         does not declare the function.
33934
33935 2010-04-03  Bruno Haible  <bruno@clisp.org>
33936
33937         ftello: Fix C++ test error on mingw.
33938         * lib/stdio.in.h (ftello): Use modern idiom.
33939         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33940         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33941         is missing and that it needs to be replaced.
33942         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33944         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33945
33946 2010-04-03  Bruno Haible  <bruno@clisp.org>
33947
33948         fseeko: Fix C++ test error on mingw.
33949         * lib/stdio.in.h (fseeko): Use modern idiom.
33950         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33952         is missing and that it needs to be replaced.
33953         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33955         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33956
33957 2010-04-03  Bruno Haible  <bruno@clisp.org>
33958
33959         mkstemp: Fix C++ test error on mingw.
33960         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33961         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33962         function is missing and that it needs to be replaced.
33963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33964         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33965
33966 2010-04-03  Bruno Haible  <bruno@clisp.org>
33967
33968         stpncpy: Fix C++ test error on mingw.
33969         * lib/string.in.h (stpncpy): Use modern idiom.
33970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33971         function is missing and that it needs to be replaced.
33972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33973         REPLACE_STPNCPY.
33974         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33975
33976 2010-04-03  Bruno Haible  <bruno@clisp.org>
33977
33978         sys_stat: Fix C++ test error on mingw.
33979         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33980         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33981
33982 2010-04-03  Bruno Haible  <bruno@clisp.org>
33983
33984         pty: Update doc.
33985         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33986
33987 2010-04-03  Bruno Haible  <bruno@clisp.org>
33988
33989         unistd: Fix C++ test error on mingw.
33990         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33991
33992 2010-04-03  Bruno Haible  <bruno@clisp.org>
33993
33994         Update doc regarding mingw.
33995         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33996         * doc/glibc-functions/login_tty.texi: Likewise.
33997         * doc/glibc-functions/forkpty.texi: Likewise.
33998
33999 2010-04-03  Bruno Haible  <bruno@clisp.org>
34000
34001         stdlib: Avoid compilation failure of c-strtold on mingw.
34002         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34003
34004 2010-04-03  Bruno Haible  <bruno@clisp.org>
34005
34006         locale: Make C++ tests work on Cygwin and mingw.
34007         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34008         cannot provide the function.
34009         Reported by Simon Josefsson.
34010
34011 2010-04-03  Bruno Haible  <bruno@clisp.org>
34012
34013         localename: Port to MacOS X 10.6.
34014         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34015         memory layout of the locales in MacOS X 10.6 as well.
34016         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34017
34018 2010-04-02  Bruno Haible  <bruno@clisp.org>
34019
34020         gnulib-tool: Ensure that long-running tests are executed last.
34021         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34022         running tests after the one for the other tests.
34023
34024 2010-04-02  Bruno Haible  <bruno@clisp.org>
34025
34026         gnulib-tool: Ensure the tests in the main directory are executed first.
34027         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34028         start with the current directory.
34029
34030 2010-04-02  Bruno Haible  <bruno@clisp.org>
34031
34032         Tests for module 'havelib', moved here from GNU gettext.
34033         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34034         modifications.
34035         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34036         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34037         with modifications.
34038         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34039         modifications.
34040         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34041         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34042         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34043         with modifications.
34044         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34045         with modifications.
34046         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34047         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34048         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34049         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34050         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34051         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34052         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34053         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34054         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34055         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34056         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34057         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34058         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34059         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34060         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34061         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34062         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34063         with modifications.
34064         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34065         with modifications.
34066         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34067         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34068         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34069         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34070         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34071         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34072         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34073         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34074         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34075         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34076         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34077         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34078         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34079         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34080         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34081         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34082         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34083         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34084         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34085         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34086         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34087         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34088         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34089         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34090         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34091         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34092         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34093         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34094         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34095         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34096         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34097         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34098         * tests/havelib/rpathx/rpathx.c: New file, from
34099         gettext/autoconf-lib-link.
34100         * tests/havelib/rpathx/Makefile.am: New file, from
34101         gettext/autoconf-lib-link.
34102         * tests/havelib/rpathx/configure.ac: New file, from
34103         gettext/autoconf-lib-link with modifications.
34104         * tests/havelib/rpathy/rpathy.c: New file, from
34105         gettext/autoconf-lib-link.
34106         * tests/havelib/rpathy/Makefile.am: New file, from
34107         gettext/autoconf-lib-link.
34108         * tests/havelib/rpathy/configure.ac: New file, from
34109         gettext/autoconf-lib-link with modifications.
34110         * tests/havelib/rpathz/rpathz.c: New file, from
34111         gettext/autoconf-lib-link.
34112         * tests/havelib/rpathz/Makefile.am: New file, from
34113         gettext/autoconf-lib-link.
34114         * tests/havelib/rpathz/configure.ac: New file, from
34115         gettext/autoconf-lib-link with modifications.
34116         * tests/havelib/rpathlx/usex.c: New file, from
34117         gettext/autoconf-lib-link.
34118         * tests/havelib/rpathlx/Makefile.am: New file, from
34119         gettext/autoconf-lib-link.
34120         * tests/havelib/rpathlx/configure.ac: New file, from
34121         gettext/autoconf-lib-link with modifications.
34122         * tests/havelib/rpathly/usey.c: New file, from
34123         gettext/autoconf-lib-link.
34124         * tests/havelib/rpathly/Makefile.am: New file, from
34125         gettext/autoconf-lib-link.
34126         * tests/havelib/rpathly/configure.ac: New file, from
34127         gettext/autoconf-lib-link with modifications.
34128         * tests/havelib/rpathlz/usez.c: New file, from
34129         gettext/autoconf-lib-link.
34130         * tests/havelib/rpathlz/Makefile.am: New file, from
34131         gettext/autoconf-lib-link.
34132         * tests/havelib/rpathlz/configure.ac: New file, from
34133         gettext/autoconf-lib-link with modifications.
34134         * tests/havelib/rpathlyx/usey.c: New file, from
34135         gettext/autoconf-lib-link.
34136         * tests/havelib/rpathlyx/Makefile.am: New file, from
34137         gettext/autoconf-lib-link.
34138         * tests/havelib/rpathlyx/configure.ac: New file, from
34139         gettext/autoconf-lib-link with modifications.
34140         * tests/havelib/rpathlzyx/usez.c: New file, from
34141         gettext/autoconf-lib-link.
34142         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34143         gettext/autoconf-lib-link.
34144         * tests/havelib/rpathlzyx/configure.ac: New file, from
34145         gettext/autoconf-lib-link with modifications.
34146         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34147         with modifications.
34148
34149 2010-04-02  Bruno Haible  <bruno@clisp.org>
34150
34151         gnulib-tool: Create distributed built sources also for the tests.
34152         * gnulib-tool (func_create_testdir): Also generate distributed built
34153         sources in the tests directory.
34154
34155 2010-04-02  Bruno Haible  <bruno@clisp.org>
34156
34157         gnulib-tool: Obey user's environment variables.
34158         * gnulib-tool (func_create_testdir): When creating built sources,
34159         respect the environment variables for autoconf, automake, etc. given by
34160         the user.
34161
34162 2010-04-02  Bruno Haible  <bruno@clisp.org>
34163
34164         gnulib-tool: Provide the value of --m4-base to modules.
34165         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34166         of gl_m4_base.
34167
34168 2010-04-02  Eric Blake  <eblake@redhat.com>
34169
34170         maint.mk: fix some fallout
34171         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34172         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34173
34174 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34175
34176         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34177         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34178         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34179         (sc_cast_of_x_alloc_return_value): Likewise.
34180         (sc_cast_of_alloca_return_value): Likewise.
34181         (sc_space_tab): Likewise.
34182         (sc_prohibit_atoi_atof): Likewise.
34183         (sc_prohibit_magic_number_exit): Likewise.
34184         (sc_error_exit_success): Likewise.
34185         (sc_file_system): Likewise.
34186         (sc_prohibit_have_config_h): Likewise.
34187         (sc_require_config_h): Likewise.
34188         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34189         (sc_obsolete_symbols): Likewise.
34190         (sc_changelog): Likewise.
34191         (sc_program_name): Likewise.
34192         (sc_the_the): Likewise.
34193         (sc_trailing_blank): Likewise.
34194         (sc_two_space_separator_in_usage): Likewise.
34195         (sc_useless_cpp_parens): Likewise.
34196         (sc_GPL_version): Likewise.
34197         (sc_GFDL_version): Likewise.
34198         (sc_texinfo_acronym): Likewise.
34199         (sc_prohibit_cvs_keyword): Likewise.
34200         (sc_prohibit_stat_st_blocks): Likewise.
34201         (sc_prohibit_S_IS_definition): Likewise.
34202         (sc_redundant_const): Likewise.
34203         (sc_makefile_TAB_only_indentation): Likewise.
34204         (sc_m4_quote_check): Likewise.
34205         (sc_makefile_path_separator_check): Likewise.
34206         (sc_copyright_check): Likewise.
34207         (sc_Wundef_boolean): Likewise.
34208         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34209
34210         maint.mk: match 0 or more whitespace-before-function-call '('
34211         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34212         that have zero or two-and-more spaces between the function name
34213         and the open parenthesis.
34214         (sc_error_message_warn_fatal): Likewise.
34215         (sc_error_message_uppercase): Likewise.
34216         (sc_error_message_period): Likewise.
34217
34218 2010-03-31  Eric Blake  <eblake@redhat.com>
34219
34220         maint.mk: check for [ as well as test
34221         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34222         Based on a libvirt report by Matthias Bolte.
34223
34224         gnumakefile: don't squelch _version output
34225         * top/GNUmakefile (_version): Create one-shot dependency rather
34226         than using $(shell) when version must be regenerated.
34227         (_autoreconf): Run verbosely, by default.
34228
34229         sys_time: avoid compiler warnings
34230         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34231         unconditional, fixing regression from 2010-03-29.
34232         Reported by Simon Josefsson.
34233
34234 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34235
34236         maint.mk: s/_header_without_use/_sc_header_without_use/
34237         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34238         (sc_prohibit_assert_without_use): Use the new name.
34239         (sc_prohibit_close_stream_without_use): Likewise.
34240         (sc_prohibit_getopt_without_use): Likewise.
34241         (sc_prohibit_quotearg_without_use): Likewise.
34242         (sc_prohibit_quote_without_use): Likewise.
34243         (sc_prohibit_long_options_without_use): Likewise.
34244         (sc_prohibit_inttostr_without_use): Likewise.
34245         (sc_prohibit_ignore_value_without_use): Likewise.
34246         (sc_prohibit_error_without_use): Likewise.
34247         (sc_prohibit_xalloc_without_use): Likewise.
34248         (sc_prohibit_hash_without_use): Likewise.
34249         (sc_prohibit_hash_pjw_without_use): Likewise.
34250         (sc_prohibit_safe_read_without_use): Likewise.
34251         (sc_prohibit_argmatch_without_use): Likewise.
34252         (sc_prohibit_canonicalize_without_use): Likewise.
34253         (sc_prohibit_root_dev_ino_without_use): Likewise.
34254         (sc_prohibit_openat_without_use): Likewise.
34255         (sc_prohibit_c_ctype_without_use): Likewise.
34256         (sc_prohibit_signal_without_use): Likewise.
34257         (sc_prohibit_intprops_without_use): Likewise.
34258
34259 2010-03-30  Eric Blake  <eblake@redhat.com>
34260
34261         maint: improve module indicators
34262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34263         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34264         columns, and avoid extra macro expansion.
34265
34266         fdopendir: work around FreeBSD bug
34267         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34268         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34269         * modules/dirent (Makefile.am): Substitute it.
34270         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34271         declaration.
34272         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34273         fix.
34274         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34275
34276 2010-03-29  Bruno Haible  <bruno@clisp.org>
34277
34278         Emit #pragma system_header after the inclusion guard, not before.
34279         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34280         guard that spans the entire file, not before. This enables an
34281         optimization in GCC's preprocessor.
34282         * lib/ctype.in.h: Likewise.
34283         * lib/dirent.in.h: Likewise.
34284         * lib/errno.in.h: Likewise.
34285         * lib/float.in.h: Likewise.
34286         * lib/getopt.in.h: Likewise.
34287         * lib/iconv.in.h: Likewise.
34288         * lib/langinfo.in.h: Likewise.
34289         * lib/locale.in.h: Likewise.
34290         * lib/math.in.h: Likewise.
34291         * lib/netdb.in.h: Likewise.
34292         * lib/netinet_in.in.h: Likewise.
34293         * lib/pty.in.h: Likewise.
34294         * lib/sched.in.h: Likewise.
34295         * lib/se-selinux.in.h: Likewise.
34296         * lib/search.in.h: Likewise.
34297         * lib/spawn.in.h: Likewise.
34298         * lib/stdarg.in.h: Likewise.
34299         * lib/stdint.in.h: Likewise.
34300         * lib/string.in.h: Likewise.
34301         * lib/strings.in.h: Likewise.
34302         * lib/sys_file.in.h: Likewise.
34303         * lib/sys_ioctl.in.h: Likewise.
34304         * lib/sys_time.in.h: Likewise.
34305         * lib/sys_times.in.h: Likewise.
34306         * lib/sys_utsname.in.h: Likewise.
34307         * lib/sys_wait.in.h: Likewise.
34308         * lib/sysexits.in.h: Likewise.
34309         * lib/wctype.in.h: Likewise.
34310
34311 2010-03-28  James Youngman  <jay@gnu.org>
34312
34313         save-cwd: don't leak a file descriptor when the caller execs.
34314         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34315         saved file descriptor.
34316         * modules/save-cwd (Depends-on): Depend on cloexec.
34317
34318 2010-03-29  Bruno Haible  <bruno@clisp.org>
34319
34320         Remove vestiges of fts-lgpl module.
34321         * lib/fts_.h: Assume GNULIB_FTS is 1.
34322         * lib/fts.c: Likewise.
34323         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34324
34325 2010-03-28  Bruno Haible  <bruno@clisp.org>
34326
34327         Fix definition of tests witness macro.
34328         * gnulib-tool (func_import): Fix definition of witness macro.
34329
34330 2010-03-28  Bruno Haible  <bruno@clisp.org>
34331
34332         Fix ioctl's protoype on glibc systems.
34333         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34334         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34335         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34336         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34337         signature. If not, arrange to replace the ioctl function.
34338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34339         REPLACE_IOCTL.
34340         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34341         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34342         Reported by Ludovic Courtès <ludo@gnu.org>.
34343
34344 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34345
34346         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34347         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34348         made it so grep -r --include=GLOB* ... did not work.
34349
34350 2010-03-26  Jim Meyering  <meyering@redhat.com>
34351             Eric Blake  <eblake@redhat.com>
34352
34353         maint.mk: prohibit use of test's -o and -a operators
34354         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34355
34356 2010-03-28  Bruno Haible  <bruno@clisp.org>
34357
34358         Remove unused GNULIB_XYZ macro definitions.
34359         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34360         invocation.
34361
34362 2010-03-28  Bruno Haible  <bruno@clisp.org>
34363
34364         Mark privileged tests modules.
34365         * modules/idpriv-drop-tests (Status): New section.
34366         * modules/idpriv-droptemp-tests (Status): New section.
34367
34368 2010-03-28  Bruno Haible  <bruno@clisp.org>
34369
34370         Split C++ tests into separate tests modules.
34371         * modules/dirent-c++-tests: New file, extracted from
34372         modules/dirent-tests.
34373         * modules/dirent-tests: Depend on it.
34374         * modules/fcntl-h-c++-tests: New file, extracted from
34375         modules/fcntl-h-tests.
34376         * modules/fcntl-h-tests: Depend on it.
34377         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34378         * modules/glob-tests: Depend on it.
34379         * modules/iconv-h-c++-tests: New file, extracted from
34380         modules/iconv-h-tests.
34381         * modules/iconv-h-tests: Depend on it.
34382         * modules/langinfo-c++-tests: New file, extracted from
34383         modules/langinfo-tests.
34384         * modules/langinfo-tests: Depend on it.
34385         * modules/locale-c++-tests: New file, extracted from
34386         modules/locale-tests.
34387         * modules/locale-tests: Depend on it.
34388         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34389         * modules/math-tests: Depend on it.
34390         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34391         * modules/pty-tests: Depend on it.
34392         * modules/search-c++-tests: New file, extracted from
34393         modules/search-tests.
34394         * modules/search-tests: Depend on it.
34395         * modules/signal-c++-tests: New file, extracted from
34396         modules/signal-tests.
34397         * modules/signal-tests: Depend on it.
34398         * modules/spawn-c++-tests: New file, extracted from
34399         modules/spawn-tests.
34400         * modules/spawn-tests: Depend on it.
34401         * modules/stdio-c++-tests: New file, extracted from
34402         modules/stdio-tests.
34403         * modules/stdio-tests: Depend on it.
34404         * modules/stdlib-c++-tests: New file, extracted from
34405         modules/stdlib-tests.
34406         * modules/stdlib-tests: Depend on it.
34407         * modules/string-c++-tests: New file, extracted from
34408         modules/string-tests.
34409         * modules/string-tests: Depend on it.
34410         * modules/sys_ioctl-c++-tests: New file, extracted from
34411         modules/sys_ioctl-tests.
34412         * modules/sys_ioctl-tests: Depend on it.
34413         * modules/sys_select-c++-tests: New file, extracted from
34414         modules/sys_select-tests.
34415         * modules/sys_select-tests: Depend on it.
34416         * modules/sys_socket-c++-tests: New file, extracted from
34417         modules/sys_socket-tests.
34418         * modules/sys_socket-tests: Depend on it.
34419         * modules/sys_stat-c++-tests: New file, extracted from
34420         modules/sys_stat-tests.
34421         * modules/sys_stat-tests: Depend on it.
34422         * modules/sys_time-c++-tests: New file, extracted from
34423         modules/sys_time-tests.
34424         * modules/sys_time-tests: Depend on it.
34425         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34426         * modules/time-tests: Depend on it.
34427         * modules/unistd-c++-tests: New file, extracted from
34428         modules/unistd-tests.
34429         * modules/unistd-tests: Depend on it.
34430         * modules/wchar-c++-tests: New file, extracted from
34431         modules/wchar-tests.
34432         * modules/wchar-tests: Depend on it.
34433         * modules/wctype-c++-tests: New file, extracted from
34434         modules/wctype-tests.
34435         * modules/wctype-tests: Depend on it.
34436         Reported by Simon Josefsson.
34437
34438 2010-03-28  Bruno Haible  <bruno@clisp.org>
34439
34440         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34441         * gnulib-tool (func_exists_module): New function, extracted from
34442         func_verify_module.
34443         (func_verify_module): Use it.
34444         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34445         'foo' only if 'foo' exists.
34446         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34447         module.
34448
34449 2010-03-28  Bruno Haible  <bruno@clisp.org>
34450
34451         gnulib-tool: Add support for special categories of tests.
34452         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34453         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34454         (func_usage): Document them.
34455         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34456         inc_unportable_tests, inc_all_tests): New variables.
34457         (func_acceptable): Consider these variables.
34458         (func_modules_transitive_closure): Make it work when the 'Status' field
34459         consists of multiple words.
34460         (func_import): Store and restore the values of inc_cxx_tests,
34461         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34462         inc_all_tests in gnulib-comp.m4.
34463         (func_create_testdir): Set inc_all_tests to true.
34464         * doc/gnulib.texi (Extra tests modules): New section.
34465         Suggested by Jim Meyering.
34466
34467 2010-03-28  Bruno Haible  <bruno@clisp.org>
34468
34469         ansi-c++-opt: Allow turning off the C++ build by default.
34470         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34471         gl_CXX_CHOICE_DEFAULT_NO is defined.
34472         Requested by Eric Blake.
34473
34474 2010-03-28  Bruno Haible  <bruno@clisp.org>
34475
34476         unistd: Avoid #define replacements in C++ mode.
34477         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34478         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34479         setsockopt, shutdown, select): In C++, attach a warning to the function
34480         if possible, rather than #defining the symbol to a dysfunctional alias.
34481         Reported by John W. Eaton <jwe@gnu.org>.
34482
34483 2010-03-28  Bruno Haible  <bruno@clisp.org>
34484
34485         Fix link errors on mingw.
34486         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34487         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34488         $(LIBSOCKET).
34489         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34490         $(LIBSOCKET).
34491
34492 2010-03-28  Bruno Haible  <bruno@clisp.org>
34493             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34494
34495         lib-ignore: Determine different options for different compilers.
34496         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34497         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34498         Add comments.
34499         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34500         * NEWS: Mention the change.
34501
34502 2010-03-27  Bruno Haible  <bruno@clisp.org>
34503
34504         Remove unused GNULIB_XYZ macro definitions.
34505         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34506         * modules/fseek (configure.ac): Likewise.
34507         * modules/ioctl (configure.ac): Likewise.
34508         * modules/open (configure.ac): Likewise.
34509         * modules/stdlib-safer (configure.ac): Likewise.
34510
34511 2010-03-27  Bruno Haible  <bruno@clisp.org>
34512
34513         Add a remark about certain modules.
34514         * modules/malloc (Comment): New section.
34515         * modules/realloc (Comment): Likewise.
34516         * modules/sigpipe (Comment): Likewise.
34517
34518 2010-03-27  Bruno Haible  <bruno@clisp.org>
34519
34520         Resolve conflict between the two kinds of module indicators.
34521         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34522         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34523         * modules/canonicalize (configure.ac): Invoke
34524         gl_MODULE_INDICATOR_FOR_TESTS.
34525         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34526         GNULIB_XYZ.
34527         * tests/test-dirent-c++.cc: Likewise.
34528         * tests/test-dirent-safer.c: Likewise.
34529         * tests/test-dup2.c: Likewise.
34530         * tests/test-fchdir.c: Likewise.
34531         * tests/test-fcntl-h-c++.cc: Likewise.
34532         * tests/test-getopt.c: Likewise.
34533         * tests/test-getopt.h: Likewise.
34534         * tests/test-langinfo-c++.cc: Likewise.
34535         * tests/test-locale-c++.cc: Likewise.
34536         * tests/test-math-c++.cc: Likewise.
34537         * tests/test-pty-c++.cc: Likewise.
34538         * tests/test-search-c++.cc: Likewise.
34539         * tests/test-signal-c++.cc: Likewise.
34540         * tests/test-spawn-c++.cc: Likewise.
34541         * tests/test-stdio-c++.cc: Likewise.
34542         * tests/test-stdlib-c++.cc: Likewise.
34543         * tests/test-string-c++.cc: Likewise.
34544         * tests/test-sys_ioctl-c++.cc: Likewise.
34545         * tests/test-sys_select-c++.cc: Likewise.
34546         * tests/test-sys_socket-c++.cc: Likewise.
34547         * tests/test-sys_stat-c++.cc: Likewise.
34548         * tests/test-sys_time-c++.cc: Likewise.
34549         * tests/test-time-c++.cc: Likewise.
34550         * tests/test-unistd-c++.cc: Likewise.
34551         * tests/test-wchar-c++.cc: Likewise.
34552         * tests/uninorm/test-u8-nfc.c: Likewise.
34553         * tests/uninorm/test-u8-nfd.c: Likewise.
34554         * tests/uninorm/test-u8-nfkc.c: Likewise.
34555         * tests/uninorm/test-u8-nfkd.c: Likewise.
34556         * tests/uninorm/test-u16-nfc.c: Likewise.
34557         * tests/uninorm/test-u16-nfd.c: Likewise.
34558         * tests/uninorm/test-u16-nfkc.c: Likewise.
34559         * tests/uninorm/test-u16-nfkd.c: Likewise.
34560         * tests/uninorm/test-u32-nfc.c: Likewise.
34561         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34562         * tests/uninorm/test-u32-nfd.c: Likewise.
34563         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34564         * tests/uninorm/test-u32-nfkc.c: Likewise.
34565         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34566         * tests/uninorm/test-u32-nfkd.c: Likewise.
34567         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34568         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34569
34570 2010-03-27  Bruno Haible  <bruno@clisp.org>
34571
34572         Distinguish two kinds of module indicators.
34573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34574         gl_MODULE_INDICATOR.
34575         (gl_MODULE_INDICATOR): New macro.
34576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34577         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34578         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34579         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34580         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34581         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34582         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34583         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34584         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34585         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34586         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34587         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34589         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34590         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34592         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34593         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34594         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34595         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34596         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34597         * modules/cloexec (configure.ac): Likewise.
34598         * modules/getopt-gnu (configure.ac): Likewise.
34599         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34600         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34601         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34602         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34603
34604 2010-03-27  Bruno Haible  <bruno@clisp.org>
34605
34606         New module description field 'Comment'.
34607         * gnulib-tool: New option --extract-comment.
34608         (func_usage): Document it.
34609         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34610         (func_get_comment): New function.
34611         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34612
34613 2010-03-27  Bruno Haible  <bruno@clisp.org>
34614
34615         Addendum to 2010-02-07 commit.
34616         * gnulib-tool (func_usage): Document --extract-applicability option.
34617
34618 2010-03-27  Bruno Haible  <bruno@clisp.org>
34619
34620         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34621         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34622         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34623         rather than link errors.
34624
34625 2010-03-27  Bruno Haible  <bruno@clisp.org>
34626
34627         Avoid side effects from tests-related modules on the compilation of lib.
34628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34629         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34630         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34631         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34632         macro.
34633         (func_import): Define a witness macro. Assign it a value that depends
34634         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34635         tests-related modules.
34636         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34637         Reported by Jim Meyering.
34638
34639 2010-03-27  Bruno Haible  <bruno@clisp.org>
34640
34641         Factorize common .m4 code.
34642         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34643         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34644         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34645         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34646         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34647         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34648         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34649         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34650         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34652         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34653         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34654         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34655         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34656         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34657         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34658         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34659         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34661         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34662         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34664         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34665         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34666         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34667         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34668         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34669         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34670         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34671         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34672         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34673         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34674
34675 2010-03-27  Bruno Haible  <bruno@clisp.org>
34676
34677         Fix a compilation error on Cygwin with g++ >= 4.3.
34678         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34679         if it is undefined or if we alias it to chmod.
34680         (lstat): Don't warn about the use of this function if it is undefined
34681         or if we alias it to stat.
34682         Reported by Simon Josefsson.
34683
34684 2010-03-27  Bruno Haible  <bruno@clisp.org>
34685
34686         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34687         * modules/getlogin (configure.ac): Update.
34688
34689         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34690         * modules/getlogin_r (configure.ac): Update.
34691
34692         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34694         * modules/inet_ntop (configure.ac): Update.
34695
34696         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34697         * modules/inet_pton (configure.ac): Update.
34698
34699         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34700         * modules/mbslen (configure.ac): Update.
34701
34702         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34703         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34704         * modules/forkpty (configure.ac): Update.
34705         * modules/openpty (configure.ac): Update.
34706
34707 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34708
34709         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34710         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34711
34712 2010-03-25  Eric Blake  <eblake@redhat.com>
34713
34714         maint: use pragma consistently across replacement headers
34715         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34716         * lib/dirent.in.h (system_header): Likewise.
34717         * lib/errno.in.h (system_header): Likewise.
34718         * lib/float.in.h (system_header): Likewise.
34719         * lib/getopt.in.h (system_header): Likewise.
34720         * lib/iconv.in.h (system_header): Likewise.
34721         * lib/inttypes.in.h (system_header): Likewise.
34722         * lib/langinfo.in.h (system_header): Likewise.
34723         * lib/locale.in.h (system_header): Likewise.
34724         * lib/math.in.h (system_header): Likewise.
34725         * lib/netdb.in.h (system_header): Likewise.
34726         * lib/netinet_in.in.h (system_header): Likewise.
34727         * lib/pty.in.h (system_header): Likewise.
34728         * lib/sched.in.h (system_header): Likewise.
34729         * lib/se-selinux.in.h (system_header): Likewise.
34730         * lib/search.in.h (system_header): Likewise.
34731         * lib/spawn.in.h (system_header): Likewise.
34732         * lib/stdarg.in.h (system_header): Likewise.
34733         * lib/stdint.in.h (system_header): Likewise.
34734         * lib/string.in.h (system_header): Likewise.
34735         * lib/strings.in.h (system_header): Likewise.
34736         * lib/sys_file.in.h (system_header): Likewise.
34737         * lib/sys_ioctl.in.h (system_header): Likewise.
34738         * lib/sys_socket.in.h (system_header): Likewise.
34739         * lib/sys_times.in.h (system_header): Likewise.
34740         * lib/sys_utsname.in.h (system_header): Likewise.
34741         * lib/sys_wait.in.h (system_header): Likewise.
34742         * lib/sysexits.in.h (system_header): Likewise.
34743         * lib/unistd.in.h (system_header): Likewise.
34744         * lib/wctype.in.h (system_header): Likewise.
34745
34746         arpa/inet: fix mingw compilation warning
34747         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34748         Reported by Matthew Bolte.
34749
34750 2010-03-25  Bruno Haible  <bruno@clisp.org>
34751
34752         Avoid collision between gnulib wrapper and libintl wrapper.
34753         * lib/printf.c (printf): Don't define if a printf wrapper is already
34754         defined in intl/printf.c.
34755         Reported by Michel Boaventura <michel@michelboaventura.com>.
34756
34757 2010-03-25  Bruno Haible  <bruno@clisp.org>
34758
34759         Use ANSI C.
34760         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34761
34762 2010-03-25  Bruno Haible  <bruno@clisp.org>
34763
34764         Minor formatting changes.
34765         * lib/acosl.c: Insert space before function argument list.
34766         * lib/argz.c: Likewise.
34767         * lib/asinl.c: Likewise.
34768         * lib/expl.c: Likewise.
34769         * lib/gen-uni-tables.c: Likewise.
34770         * lib/gettext.h: Likewise.
34771         * lib/glthread/lock.h: Likewise.
34772         * lib/tanl.c: Likewise.
34773         * lib/uniname/uniname.c: Likewise.
34774         * tests/test-idpriv-drop.c: Likewise.
34775         * tests/test-idpriv-droptemp.c: Likewise.
34776         * tests/test-lock.c: Likewise.
34777         * tests/test-tls.c: Likewise.
34778         * lib/argp-help.c: Insert space before function-like macro argument
34779         list.
34780         * lib/memcmp.c: Likewise.
34781         * tests/test-base64.c: Likewise.
34782         * lib/localename.c: Insert space before sizeof's argument list.
34783         * lib/safe-alloc.h: Likewise.
34784         * lib/file-set.h: Insert space before macro argument list.
34785         * tests/test-argp.c: Likewise.
34786         * lib/argp-namefrob.h: Insert space before function parameter list.
34787         * lib/getaddrinfo.c: Likewise.
34788         * lib/netdb.in.h: Likewise.
34789         * lib/parse-duration.h: Likewise.
34790         * lib/parse-duration.c: Likewise.
34791         * lib/poll.c: Likewise.
34792         * lib/select.c: Likewise.
34793         * lib/trim.h: Likewise.
34794         * tests/test-usleep.c: Likewise.
34795         * lib/ldexpl.c: Insert space before function parameter list and before
34796         function argument list.
34797         * lib/logl.c: Likewise.
34798         * lib/sqrtl.c: Likewise.
34799         * lib/trim.c: Likewise.
34800         * lib/cosl.c: Use GNU style indentation. Insert space before function
34801         argument list.
34802         * lib/sinl.c: Likewise.
34803         * lib/tsearch.c: Insert space after 'for'.
34804         Reported by Jim Meyering.
34805
34806 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34807
34808         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34809         config header before grepping, as it's not present before
34810         autoreconf/configure are run.  Reported by Simon Josefsson.
34811
34812 2010-03-23  Bruno Haible  <bruno@clisp.org>
34813
34814         pt_chown: Make it work with automake < 1.11.
34815         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34816         Reported by Simon Josefsson.
34817
34818 2010-03-23  Bruno Haible  <bruno@clisp.org>
34819
34820         pt_chown: Don't depend on GPLed modules.
34821         * lib/pt_chown.c: Don't include idpriv.h.
34822         (main): Don't drop privileges.
34823         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34824         Reported by Simon Josefsson.
34825
34826 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34827
34828         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34829         suggestions from karl@freefriends.org (Karl Berry).
34830
34831 2010-03-22  Eric Blake  <eblake@redhat.com>
34832
34833         gethostname: further tweaks
34834         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34835         are overriding gethostname.
34836         Suggested by Bruno Haible.
34837
34838 2010-03-21  Bruno Haible  <bruno@clisp.org>
34839
34840         Fix comments.
34841         * lib/forkpty.c (rpl_forkpty): Fix comment.
34842         * lib/openpty.c (rpl_openpty): Likewise.
34843         Reported by Eric Blake.
34844
34845 2010-03-22  Eric Blake  <eblake@redhat.com>
34846
34847         gethostname: fix build on mingw
34848         * lib/unistd.in.h (includes): Work around fact that mingw
34849         <winsock2.h> re-includes <unistd.h>, by avoiding any
34850         redeclarations if we are being included by <winsock2.h>.
34851         Reported by Matthias Bolte.
34852
34853 2010-03-21  Bruno Haible  <bruno@clisp.org>
34854
34855         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34856         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34857         modifications.
34858         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34859         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34860         provide the replacement.
34861         * modules/forkpty (Depends-on): Add openpty, login_tty.
34862         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34863         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34864         * doc/glibc-functions/forkpty.texi: More supported platforms.
34865         * config/srclist.txt: Add forkpty.c (commented).
34866
34867 2010-03-21  Bruno Haible  <bruno@clisp.org>
34868
34869         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34870         (Makefile.am): Verify that PTY_LIB is defined.
34871
34872         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34873
34874 2010-03-21  Bruno Haible  <bruno@clisp.org>
34875
34876         Tests for module 'login_tty'.
34877         * modules/login_tty-tests: New file.
34878         * tests/test-login_tty.c: New file.
34879
34880         New module 'login_tty'.
34881         * lib/login_tty.c: New file.
34882         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34883         * modules/login_tty: New file.
34884         * doc/glibc-functions/login_tty.texi: Mention the new module.
34885
34886 2010-03-21  Bruno Haible  <bruno@clisp.org>
34887
34888         login_tty: Documentation.
34889         * doc/glibc-functions/login_tty.texi: New file.
34890         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34891
34892 2010-03-21  Bruno Haible  <bruno@clisp.org>
34893
34894         pty: Consistent macro naming.
34895         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34896         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34897         * modules/pty (configure.ac): Update.
34898
34899 2010-03-21  Bruno Haible  <bruno@clisp.org>
34900
34901         Tests for openpty: Make stricter.
34902         * tests/test-openpty.c (main): Add test of canonical processing and
34903         erase.
34904         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34905
34906         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34907         * lib/openpty.c (openpty): New replacement function.
34908         * lib/pty.in.h: Include <termios.h>.
34909         (openpty): Update declaration. Add comments.
34910         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34911         is not declared, arrange to provide the replacement. Check for _getpty
34912         and posix_openpt.
34913         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34914         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34915         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34916         * modules/pty-tests (test_pty_c___LDADD): New variable.
34917         * doc/glibc-functions/openpty.texi: More supported platforms.
34918
34919 2010-03-21  Bruno Haible  <bruno@clisp.org>
34920
34921         setenv: Tweaks.
34922         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34923         the test program.
34924         * doc/posix-functions/setenv.texi: Update platforms list.
34925
34926 2010-03-21  Bruno Haible  <bruno@clisp.org>
34927
34928         New module 'unlockpt'.
34929         * lib/unlockpt.c: New file, from glibc with modifications.
34930         * m4/unlockpt.m4: New file.
34931         * modules/unlockpt: New file.
34932         * lib/stdlib.in.h (unlockpt): New declaration.
34933         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34934         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34935         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34936         HAVE_UNLOCKPT.
34937         * doc/posix-functions/unlockpt.texi: Mention the new module.
34938         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34939         * config/srclist.txt: Add unlockpt.c (commented).
34940
34941 2010-03-21  Jim Meyering  <meyering@redhat.com>
34942
34943         maint.mk: prohibit inclusion of "intprops.h" without use
34944         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34945
34946 2010-03-21  Bruno Haible  <bruno@clisp.org>
34947
34948         New module 'grantpt'.
34949         * lib/grantpt.c: New file, from glibc with modifications.
34950         * m4/grantpt.m4: New file.
34951         * modules/grantpt: New file.
34952         * lib/stdlib.in.h (grantpt): New declaration.
34953         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34954         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34955         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34956         HAVE_GRANTPT.
34957         * doc/posix-functions/grantpt.texi: Mention the new module.
34958         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34959         * config/srclist.txt: Add grantpt.c (commented).
34960
34961 2010-03-21  Bruno Haible  <bruno@clisp.org>
34962
34963         New module 'pt_chown'.
34964         * lib/pt_chown.c: New file, from glibc with modifications.
34965         * lib/pty-private.h: New file, from glibc with modifications.
34966         * modules/pt_chown: New file.
34967         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34968
34969 2010-03-21  Bruno Haible  <bruno@clisp.org>
34970
34971         Tests for module 'ptsname'.
34972         * modules/ptsname-tests: New file.
34973         * tests/test-ptsname.c: New file.
34974
34975         New module 'ptsname'.
34976         * lib/ptsname.c: New file, from glibc with modifications.
34977         * m4/ptsname.m4: New file.
34978         * modules/ptsname: New file.
34979         * lib/stdlib.in.h (ptsname): New declaration.
34980         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34981         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34982         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34983         HAVE_PTSNAME.
34984         * doc/posix-functions/ptsname.texi: Mention the new module.
34985         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34986         * config/srclist.txt: Add ptsname.c (commented).
34987
34988 2010-03-21  Bruno Haible  <bruno@clisp.org>
34989
34990         Tests for module 'ttyname_r'.
34991         * modules/ttyname_r-tests: New file.
34992         * tests/test-ttyname_r.c: New file.
34993
34994         New module 'ttyname_r'.
34995         * lib/ttyname_r.c: New file.
34996         * m4/ttyname_r.m4: New file.
34997         * modules/ttyname_r: New file.
34998         * lib/unistd.in.h (ttyname_r): New declaration.
34999         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35000         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35001         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35002         HAVE_TTYNAME_R.
35003         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35004         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35005
35006 2010-03-20  Bruno Haible  <bruno@clisp.org>
35007
35008         signal: Undefine macro definitions in C++ mode.
35009         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35010         sigfillset): Undefine macro definitions from the system header in C++
35011         mode.
35012         Reported by John W. Eaton <jwe@gnu.org>.
35013
35014 2010-03-20  Bruno Haible  <bruno@clisp.org>
35015
35016         Ensure no #include statements inside extern "C" { ... }.
35017         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35018         contain #include statements.
35019         * lib/time.in.h: Likewise.
35020
35021 2010-03-20  Bruno Haible  <bruno@clisp.org>
35022
35023         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35024         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35025         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35026         Reported by John W. Eaton <jwe@gnu.org>.
35027
35028 2010-03-20  Bruno Haible  <bruno@clisp.org>
35029
35030         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35031         Reported by Jim Meyering.
35032
35033 2010-03-20  Bruno Haible  <bruno@clisp.org>
35034
35035         pipe: Set errno upon failure.
35036         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35037         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35038         errno value in error message.
35039
35040 2010-03-20  Bruno Haible  <bruno@clisp.org>
35041             Jim Meyering  <meyering@redhat.com>
35042
35043         lchown: Avoid "unused variable" warning.
35044         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35045
35046 2010-03-20  Bruno Haible  <bruno@clisp.org>
35047
35048         Work around unlink() bug on MacOS X 10.5.6.
35049         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35050         attempting to unlink a parent directory.
35051         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35052         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35053         activate for the replacement function.
35054         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35055
35056 2010-03-20  Bruno Haible  <bruno@clisp.org>
35057
35058         Fix link errors on Solaris 8.
35059         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35060         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35061
35062 2010-03-19  Jim Meyering  <meyering@redhat.com>
35063
35064         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35065         The _LIBC implementation of build_range_exp correctly honors the
35066         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35067         However, the non-_LIBC implementation would ignore that syntax-bit
35068         flag and return REG_ERANGE unconditionally.
35069         This change makes it honor that flag.
35070         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35071         Make two pointer parameters "const".
35072         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35073         (parse_bracket_exp): Update caller.
35074
35075         regex.m4: correct the reversed range endpoint ([b-a]) test
35076         * m4/regex.m4: When requiring that [b-a] evoke failure,
35077         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35078         test pass once again for x86-based systems.
35079
35080 2010-03-19  Bruno Haible  <bruno@clisp.org>
35081
35082         scandir: Fix link error on Solaris 8.
35083         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35084         macros.
35085
35086 2010-03-19  Bruno Haible  <bruno@clisp.org>
35087
35088         getusershell: Fix documentation.
35089         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35090         module.
35091         * doc/glibc-functions/setusershell.texi: Likewise.
35092
35093         getusershell: Provide declaration, missing on Solaris 9.
35094         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35095         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35096         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35097         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35099         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35100         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35101         HAVE_GETUSERSHELL.
35102         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35103
35104 2010-03-19  Bruno Haible  <bruno@clisp.org>
35105
35106         wctype: Provide iswblank function.
35107         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35108         exists and is fine.
35109         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35110         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35111         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35112         * doc/posix-functions/iswblank.texi: Update.
35113
35114 2010-03-19  Bruno Haible  <bruno@clisp.org>
35115
35116         Tests of module 'pty' in C++ mode.
35117         * modules/pty-tests: New file.
35118         * tests/test-pty-c++.cc: New file.
35119         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35120
35121 2010-03-19  Eric Blake  <eblake@redhat.com>
35122
35123         logb: fix documentation
35124         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35125         1.5 declaration bug.
35126
35127         forkpty, openpty: prefer glibc's const-safe prototype
35128         * lib/forkpty.c (rpl_forkpty): New file.
35129         * lib/openpty.c (rpl_openpty): Likewise.
35130         * modules/forkpty (Files): Distribute it.
35131         * modules/openpty (Files): Likewise.
35132         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35133         check...
35134         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35135         replacement for for non-const BSD signature.
35136         * modules/pty (Makefile.am): Substitute witnesses.
35137         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35138         * tests/test-forkpty.c: Update signature check.
35139         * tests/test-openpty.c: Likewise.
35140         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35141         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35142
35143         forkpty, openpty: split functions into new modules
35144         * modules/pty (Makefile.am): Substitute new witnesses.
35145         (Libraries): Move library detection...
35146         * modules/forkpty: ...into new module.
35147         * modules/openpty: Another new module.
35148         * modules/pty-tests: Rename and split...
35149         * modules/forkpty-tests: ...to this...
35150         * modules/openpty-tests: ...and this.
35151         * tests/test-pty.c: Rename and split...
35152         * tests/test-forkpty.c: ...to this...
35153         * tests/test-openpty.c: ...and this.
35154         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35155         (gl_PTY): Split library searching...
35156         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35157         (gl_FORKPTY, gl_OPENPTY): New macros.
35158         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35159         * NEWS: Mention the split.
35160         * MODULES.html.sh (Misc): Document the modules.
35161         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35162         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35163
35164         pty: improve replacement header
35165         * lib/pty.in.h: New file.
35166         * modules/pty (Files): Ship it.
35167         (Makefile.am): Always build replacement.
35168         * m4/pty.m4: Rename...
35169         * m4/pty_h.m4: ...to this.
35170         (gl_PTY): Modernize setting of witness macros; update check of
35171         forkpty to take proper advantage of cache.
35172         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35173
35174         getopt: avoid compiler warning
35175         * lib/getopt.c (attribute_hidden): Remove unused macro.
35176
35177 2010-03-18  Bruno Haible  <bruno@clisp.org>
35178
35179         Fix link errors on Solaris 8.
35180         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35181         * modules/search-tests (test_search_c___LDADD): Likewise.
35182         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35183         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35184         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35185         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35186         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35187         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35188         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35189
35190 2010-03-18  Bruno Haible  <bruno@clisp.org>
35191
35192         Fix bug introduced on 2010-03-14.
35193         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35194         (gl_SPAWN_H): Require it.
35195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35196         Reported by Simon Josefsson.
35197
35198 2010-03-18  Bruno Haible  <bruno@clisp.org>
35199
35200         Fix typo introduced on 2009-12-31.
35201         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35202         posix_spawn_file_actions_adddup2.
35203
35204 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35205         and Eric Blake  <eblake@redhat.com>
35206
35207         test-vc-list-files-git: make more robust
35208         * tests/test-vc-list-files-git.sh: Unset problematic environment
35209         variables.  Chain commands together.
35210
35211 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35212
35213         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35214         `AC_CHECK_DECL' invocation.
35215
35216 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35217
35218         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35219         appears before executable statements. Suggested by Petr Sumbera
35220         <Petr.Sumbera@Sun.COM>.
35221
35222 2010-03-14  Bruno Haible  <bruno@clisp.org>
35223
35224         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35225         portability problems. Instead use a simpler test.
35226         (main): Check that invalid arguments are rejected only on Linux.
35227
35228 2010-03-14  Bruno Haible  <bruno@clisp.org>
35229
35230         Fix bug introduced on 2009-12-31.
35231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35232         gl_PREREQ_SYS_H_WINSOCK2 always.
35233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35234         SYS_SOCKET_H variable.
35235         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35236         Update comments.
35237         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35238         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35241         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35242
35243 2010-03-14  Bruno Haible  <bruno@clisp.org>
35244
35245         Fix values returned by sinl, cosl.
35246         * lib/trigl.h: Add specification comments.
35247         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35248         that combines the values from the precomputed table with the values of
35249         the Chebyshev polynomials.
35250
35251 2010-03-14  Bruno Haible  <bruno@clisp.org>
35252
35253         Fix compilation error when modules 'posix_spawn[p]' are not used.
35254         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35256
35257 2010-03-14  Bruno Haible  <bruno@clisp.org>
35258
35259         Fix compilation error on mingw when module 'time_r' is not used.
35260         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35261         is 1.
35262         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35263         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35264         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35266
35267 2010-03-14  Bruno Haible  <bruno@clisp.org>
35268
35269         Fix compilation error with Sun C.
35270         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35271         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35272         instead of GCC specific ULONG_LONG_MAX.
35273         * lib/xstrtoll.c: Likewise.
35274         * lib/xstrtoull.c: Likewise.
35275
35276 2010-03-13  Bruno Haible  <bruno@clisp.org>
35277
35278         Allow the user to disable C++ code and tests.
35279         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35280         (gl_PROG_ANSI_CXX): Require it.
35281
35282 2010-03-13  Bruno Haible  <bruno@clisp.org>
35283
35284         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35285         cases.
35286
35287 2010-03-13  Bruno Haible  <bruno@clisp.org>
35288
35289         Test that gnulib does not break the standard C++ headers.
35290         * tests/test-locale-c++2.cc: New file.
35291         * modules/locale-tests (Files): Add it.
35292         (Makefile.am): Compile it for test-locale-c++.
35293         * tests/test-math-c++2.cc: New file.
35294         * modules/math-tests (Files): Add it.
35295         (Makefile.am): Compile it for test-math-c++.
35296         * tests/test-signal-c++2.cc: New file.
35297         * modules/signal-tests (Files): Add it.
35298         (Makefile.am): Compile it for test-signal-c++.
35299         * tests/test-stdio-c++2.cc: New file.
35300         * modules/stdio-tests (Files): Add it.
35301         (Makefile.am): Compile it for test-stdio-c++.
35302         * tests/test-stdlib-c++2.cc: New file.
35303         * modules/stdlib-tests (Files): Add it.
35304         (Makefile.am): Compile it for test-stdlib-c++.
35305         * tests/test-string-c++2.cc: New file.
35306         * modules/string-tests (Files): Add it.
35307         (Makefile.am): Compile it for test-string-c++.
35308         * tests/test-time-c++2.cc: New file.
35309         * modules/time-tests (Files): Add it.
35310         (Makefile.am): Compile it for test-time-c++.
35311         Reported by John W. Eaton <jwe@gnu.org>.
35312
35313 2010-03-13  Bruno Haible  <bruno@clisp.org>
35314
35315         * gnulib-tool (func_usage): Clarify which options are available for
35316         --create-testdir and --create-megatestdir.
35317
35318 2010-03-13  Bruno Haible  <bruno@clisp.org>
35319
35320         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35321         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35322         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35323         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35324         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35325         when appropriate.
35326         Reported by Jim Meyering.
35327
35328 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35329
35330         * gnulib-tool (func_import): Explain origin of code.
35331
35332 2010-03-12  Bruno Haible  <bruno@clisp.org>
35333
35334         Fix problem with automake's definition of CXXLINK.
35335         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35336         Reported by Simon Josefsson and Ludovic Courtès.
35337
35338 2010-03-12  Bruno Haible  <bruno@clisp.org>
35339
35340         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35341         stable releases.
35342
35343 2010-03-11  Bruno Haible  <bruno@clisp.org>
35344
35345         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35346         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35347         whether the system provides one variant or multiple variants of the
35348         function.
35349         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35350         C++ compilers.
35351         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35352         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35353         Reported by Jim Meyering.
35354
35355 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35356
35357         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35358
35359 2010-03-08  Bruno Haible  <bruno@clisp.org>
35360
35361         gnulib-tool: Add support for --libtool in --create-testdir.
35362         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35363         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35364
35365 2010-03-08  Eric Blake  <eblake@redhat.com>
35366
35367         gnulib-tool.texi: mention possibility of git submodule
35368         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35369         submodules.
35370         * doc/.gitignore: Ignore another generated file.
35371
35372 2010-03-08  Karl Berry  <karl@gnu.org>
35373
35374         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35375         of committing gnulib files while skipping others.
35376
35377 2010-03-07  Bruno Haible  <bruno@clisp.org>
35378
35379         Tests of module 'wctype' in C++ mode.
35380         * tests/test-wctype-c++.cc: New file.
35381         * modules/wctype-tests (Files): Add it and tests/signature.h.
35382         (Depends-on): Add ansi-c++-opt.
35383         (Makefile.am): Arrange to compile and run test-wctype-c++.
35384
35385         Tests of module 'wchar' in C++ mode.
35386         * tests/test-wchar-c++.cc: New file.
35387         * modules/wchar-tests (Files): Add it and tests/signature.h.
35388         (Depends-on): Add ansi-c++-opt.
35389         (Makefile.am): Arrange to compile and run test-wchar-c++.
35390         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35391         gl_MODULE_INDICATOR.
35392
35393         Tests of module 'unistd' in C++ mode.
35394         * tests/test-unistd-c++.cc: New file.
35395         * modules/unistd-tests (Files): Add it and tests/signature.h.
35396         (Depends-on): Add ansi-c++-opt.
35397         (Makefile.am): Arrange to compile and run test-unistd-c++.
35398         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35399         gl_MODULE_INDICATOR.
35400
35401         Tests of module 'time' in C++ mode.
35402         * tests/test-time-c++.cc: New file.
35403         * modules/time-tests (Files): Add it and tests/signature.h.
35404         (Depends-on): Add ansi-c++-opt.
35405         (Makefile.am): Arrange to compile and run test-time-c++.
35406         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35407
35408         Tests of module 'sys_time' in C++ mode.
35409         * tests/test-sys_time-c++.cc: New file.
35410         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35411         (Depends-on): Add ansi-c++-opt.
35412         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35413         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35414         gl_MODULE_INDICATOR.
35415
35416         Tests of module 'sys_stat' in C++ mode.
35417         * tests/test-sys_stat-c++.cc: New file.
35418         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35419         (Depends-on): Add ansi-c++-opt.
35420         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35421         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35422         gl_MODULE_INDICATOR.
35423
35424         Tests of module 'sys_socket' in C++ mode.
35425         * tests/test-sys_socket-c++.cc: New file.
35426         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35427         (Depends-on): Add ansi-c++-opt.
35428         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35429         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35430         gl_MODULE_INDICATOR.
35431
35432         Tests of module 'sys_select' in C++ mode.
35433         * tests/test-sys_select-c++.cc: New file.
35434         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35435         (Depends-on): Add ansi-c++-opt.
35436         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35437         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35438         gl_MODULE_INDICATOR.
35439
35440         Tests of module 'sys_ioctl' in C++ mode.
35441         * tests/test-sys_ioctl-c++.cc: New file.
35442         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35443         (Depends-on): Add ansi-c++-opt.
35444         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35446         gl_MODULE_INDICATOR.
35447
35448         Tests of module 'string' in C++ mode.
35449         * tests/test-string-c++.cc: New file.
35450         * modules/string-tests (Files): Add it and tests/signature.h.
35451         (Depends-on): Add ansi-c++-opt.
35452         (Makefile.am): Arrange to compile and run test-string-c++.
35453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35454         gl_MODULE_INDICATOR.
35455
35456         Tests of module 'stdlib' in C++ mode.
35457         * tests/test-stdlib-c++.cc: New file.
35458         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35459         (Depends-on): Add ansi-c++-opt.
35460         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35461         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35462         gl_MODULE_INDICATOR.
35463
35464         Tests of module 'stdio' in C++ mode.
35465         * tests/test-stdio-c++.cc: New file.
35466         * modules/stdio-tests (Files): Add it and tests/signature.h.
35467         (Depends-on): Add ansi-c++-opt.
35468         (Makefile.am): Arrange to compile and run test-stdio-c++.
35469         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35470         gl_MODULE_INDICATOR.
35471
35472         Tests of module 'spawn' in C++ mode.
35473         * tests/test-spawn-c++.cc: New file.
35474         * modules/spawn-tests (Files): Add it and tests/signature.h.
35475         (Depends-on): Add ansi-c++-opt.
35476         (Makefile.am): Arrange to compile and run test-spawn-c++.
35477         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35478         gl_MODULE_INDICATOR.
35479
35480         Tests of module 'signal' in C++ mode.
35481         * tests/test-signal-c++.cc: New file.
35482         * modules/signal-tests (Files): Add it and tests/signature.h.
35483         (Depends-on): Add ansi-c++-opt.
35484         (Makefile.am): Arrange to compile and run test-signal-c++.
35485         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35486         gl_MODULE_INDICATOR.
35487
35488         Tests of module 'search' in C++ mode.
35489         * tests/test-search-c++.cc: New file.
35490         * modules/search-tests (Files): Add it and tests/signature.h.
35491         (Depends-on): Add ansi-c++-opt.
35492         (Makefile.am): Arrange to compile and run test-search-c++.
35493         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35494         gl_MODULE_INDICATOR.
35495
35496         Tests of module 'math' in C++ mode.
35497         * tests/test-math-c++.cc: New file.
35498         * modules/math-tests (Files): Add it and tests/signature.h.
35499         (Depends-on): Add ansi-c++-opt.
35500         (Makefile.am): Arrange to compile and run test-math-c++.
35501         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35502
35503         Tests of module 'locale' in C++ mode.
35504         * tests/test-locale-c++.cc: New file.
35505         * modules/locale-tests (Files): Add it and tests/signature.h.
35506         (Depends-on): Add ansi-c++-opt.
35507         (Makefile.am): Arrange to compile and run test-locale-c++.
35508         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35509         gl_MODULE_INDICATOR.
35510
35511         Tests of module 'langinfo' in C++ mode.
35512         * tests/test-langinfo-c++.cc: New file.
35513         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35514         (Depends-on): Add ansi-c++-opt.
35515         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35516         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35517         gl_MODULE_INDICATOR.
35518
35519         Tests of module 'iconv-h' in C++ mode.
35520         * tests/test-iconv-h-c++.cc: New file.
35521         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35522         (Depends-on): Add ansi-c++-opt.
35523         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35524
35525         Tests of module 'glob' in C++ mode.
35526         * tests/test-glob-c++.cc: New file.
35527         * modules/glob-tests (Files): Add it.
35528         (Depends-on): Add ansi-c++-opt.
35529         (Makefile.am): Arrange to compile and run test-glob-c++.
35530
35531         Tests of module 'fcntl-h' in C++ mode.
35532         * tests/test-fcntl-h-c++.cc: New file.
35533         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35534         (Depends-on): Add ansi-c++-opt.
35535         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35536         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35537         gl_MODULE_INDICATOR.
35538
35539         Tests of module 'dirent' in C++ mode.
35540         * tests/test-dirent-c++.cc: New file.
35541         * modules/dirent-tests (Files): Add it and tests/signature.h.
35542         (Depends-on): Add ansi-c++-opt.
35543         (Makefile.am): Arrange to compile and run test-dirent-c++.
35544         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35545         gl_MODULE_INDICATOR.
35546
35547         New module 'ansi-c++-opt'.
35548         * modules/ansi-c++-opt: New file.
35549         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35550
35551         Document C++ namespace mode.
35552         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35553
35554         wctype: Avoid #define replacements in C++ mode.
35555         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35556         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35557         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35558         In C++, define a namespaced alias symbol.
35559         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35560         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35561         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35562         rule.
35563
35564         wchar: Avoid #define replacements in C++ mode.
35565         * lib/wchar.in.h: Include c++defs.h.
35566         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35567         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35568         symbol.
35569         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35570         * modules/wchar (Depends-on): Add c++defs.
35571         (Makefile.am): Update wchar.h rule.
35572
35573         unistd: Avoid #define replacements in C++ mode.
35574         * lib/unistd.in.h: Include c++defs.h.
35575         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35576         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35577         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35578         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35579         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35580         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35581         symbol.
35582         (environ): Update.
35583         * modules/unistd (Depends-on): Add c++defs.
35584         (Makefile.am): Update unistd.h rule.
35585
35586         time: Avoid #define replacements in C++ mode.
35587         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35588         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35589         define a namespaced alias symbol.
35590         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35591         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35592         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35593         * modules/time (Depends-on): Add c++defs, warn-on-use.
35594         (Makefile.am): Update time.h rule.
35595         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35596         * modules/nanosleep (configure.ac): Likewise.
35597         * modules/strptime (configure.ac): Likewise.
35598         * modules/timegm (configure.ac): Likewise.
35599
35600         sys_time: Avoid #define replacements in C++ mode.
35601         * lib/sys_time.in.h: Include c++defs.h.
35602         (gettimeofday): In C++, define a namespaced alias symbol.
35603         * modules/sys_time (Depends-on): Add c++defs.
35604         (Makefile.am): Update sys/time.h rule.
35605
35606         sys_stat: Avoid #define replacements in C++ mode.
35607         * lib/sys_stat.in.h: Include c++defs.h.
35608         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35609         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35610         namespaced alias symbol.
35611         In C++, define a namespaced alias symbol.
35612         * modules/sys_stat (Depends-on): Add c++defs.
35613         (Makefile.am): Update sys/stat.h rule.
35614
35615         sys_socket: Avoid #define replacements in C++ mode.
35616         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35617         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35618         definitions also when the system has a <sys/socket.h>.
35619         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35620         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35621         In C++, define a namespaced alias symbol.
35622         * modules/sys_socket (Depends-on): Add c++defs.
35623         (Makefile.am): Update sys/socket.h rule.
35624
35625         sys_select: Avoid #define replacements in C++ mode.
35626         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35627         definitions also when the system has a <sys/select.h>.
35628         (select): In C++, define a namespaced alias symbol.
35629         * modules/sys_select (Depends-on): Add c++defs.
35630         (Makefile.am): Update sys/select.h rule.
35631
35632         sys_ioctl: Avoid #define replacements in C++ mode.
35633         * lib/sys_ioctl.in.h: Include c++defs.h.
35634         (ioctl): In C++, define a namespaced alias symbol.
35635         * modules/sys_ioctl (Depends-on): Add c++defs.
35636         (Makefile.am): Update sys/ioctl.h rule.
35637
35638         string: Avoid #define replacements in C++ mode.
35639         * lib/string.in.h: Include c++defs.h.
35640         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35641         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35642         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35643         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35644         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35645         * modules/string (Depends-on): Add c++defs.
35646         (Makefile.am): Update string.h rule.
35647
35648         stdlib: Avoid #define replacements in C++ mode.
35649         * lib/stdlib.in.h: Include c++defs.h.
35650         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35651         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35652         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35653         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35654         symbol.
35655         * modules/stdlib (Depends-on): Add c++defs.
35656         (Makefile.am): Update stdlib.h rule.
35657
35658         stdio: Avoid #define replacements in C++ mode.
35659         * lib/stdio.in.h: Include c++defs.h.
35660         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35661         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35662         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35663         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35664         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35665         namespaced alias symbol.
35666         * modules/stdio (Depends-on): Add c++defs.
35667         (Makefile.am): Update stdio.h rule.
35668
35669         spawn: Avoid #define replacements in C++ mode.
35670         * lib/spawn.in.h: Include c++defs.h.
35671         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35672         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35673         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35674         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35675         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35676         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35677         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35678         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35679         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35680         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35681         In C++, define a namespaced alias symbol.
35682         * modules/spawn (Depends-on): Add c++defs.
35683         (Makefile.am): Update spawn.h rule.
35684
35685         signal: Avoid #define replacements in C++ mode.
35686         * lib/signal.in.h: Include c++defs.h.
35687         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35688         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35689         namespaced alias symbol.
35690         * modules/signal (Depends-on): Add c++defs.
35691         (Makefile.am): Update signal.h rule.
35692
35693         search: Avoid #define replacements in C++ mode.
35694         * lib/search.in.h: Include c++defs.h.
35695         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35696         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35697         symbol.
35698         * modules/search (Depends-on): Add c++defs.
35699         (Makefile.am): Update search.h rule.
35700
35701         math: Avoid #define replacements in C++ mode.
35702         * lib/math.in.h: Include c++defs.h.
35703         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35704         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35705         trunc, truncl): In C++, define a namespaced alias symbol.
35706         * modules/math (Depends-on): Add c++defs.
35707         (Makefile.am): Update math.h rule.
35708
35709         locale: Avoid #define replacements in C++ mode.
35710         * lib/locale.in.h: Include c++defs.h.
35711         (duplocale): In C++, define a namespaced alias symbol.
35712         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35713         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35714         * modules/locale (Depends-on): Add c++defs.
35715         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35716
35717         langinfo: Avoid #define replacements in C++ mode.
35718         * lib/langinfo.in.h: Include c++defs.h.
35719         (nl_langinfo): In C++, define a namespaced alias symbol.
35720         * modules/langinfo (Depends-on): Add c++defs.
35721         (Makefile.am): Update langinfo.h rule.
35722
35723         iconv-h: Avoid #define replacements in C++ mode.
35724         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35725         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35726         symbol.
35727         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35728         whenever iconv is present.
35729         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35730         (Makefile.am): Update iconv.h rule.
35731
35732         glob: Avoid #define replacements in C++ mode.
35733         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35734         (_gl_glob_errfunc_fn): New type.
35735         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35736         symbol.
35737         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35738         (Makefile.am): Update glob.h rule.
35739
35740         fcntl-h: Avoid #define replacements in C++ mode.
35741         * lib/fcntl.in.h: Include c++defs.h.
35742         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35743         * modules/fcntl-h (Depends-on): Add c++defs.
35744         (Makefile.am): Update fcntl.h rule.
35745
35746         dirent: Avoid #define replacements in C++ mode.
35747         * lib/dirent.in.h: Include c++defs.h.
35748         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35749         namespaced alias symbol.
35750         (dirfd): Update declaration.
35751         * modules/dirent (Depends-on): Add c++defs.
35752         (Makefile.am): Update dirent.h rule.
35753
35754         ctype: Make it usable in C++ code.
35755         * lib/ctype.in.h: Include c++defs.h.
35756         (isblank): Declare as extern "C".
35757         * modules/ctype (Depends-on): Add c++defs.
35758         (Makefile.am): Update ctype.h rule.
35759
35760         New module 'c++defs'.
35761         * modules/c++defs: New file.
35762         * build-aux/c++defs.h: New file.
35763         Reported by John W. Eaton <jwe@gnu.org>.
35764
35765 2010-03-07  Bruno Haible  <bruno@clisp.org>
35766
35767         logb: Provide missing declaration for Cygwin.
35768         * lib/math.in.h (logb): New declaration.
35769         * m4/logb.m4: New file.
35770         * modules/logb (Files): Add m4/logb.m4.
35771         (Depends-on): Add math.
35772         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35773         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35775         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35776         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35777
35778 2010-03-07  Bruno Haible  <bruno@clisp.org>
35779
35780         Fix test-cond link error.
35781         * tests/test-cond.c: Include <stdio.h>.
35782
35783 2010-03-07  Bruno Haible  <bruno@clisp.org>
35784
35785         Fix test-dirent-safer link error.
35786         * modules/dirent-safer-tests (Makefile.am): Define
35787         test_dirent_safer_LDADD.
35788
35789 2010-03-07  Bruno Haible  <bruno@clisp.org>
35790
35791         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35792         among default module list.
35793
35794 2010-03-07  Bruno Haible  <bruno@clisp.org>
35795
35796         Fix link error on platforms with GNU libiconv.
35797         * modules/unistr/u8-strcoll-tests (Makefile): Define
35798         test_u8_strcoll_LDADD.
35799         * modules/unistr/u16-strcoll-tests (Makefile): Define
35800         test_u16_strcoll_LDADD.
35801         * modules/unistr/u32-strcoll-tests (Makefile): Define
35802         test_u32_strcoll_LDADD.
35803
35804 2010-03-07  Bruno Haible  <bruno@clisp.org>
35805
35806         Use POSIX declarations for socket functions.
35807         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35808         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35809         rpl_sendto): Change declaration to match POSIX.
35810         * lib/connect.c (rpl_connect): Likewise.
35811         * lib/accept.c (rpl_accept): Likewise.
35812         * lib/bind.c (rpl_bind): Likewise.
35813         * lib/getpeername.c (rpl_getpeername): Likewise.
35814         * lib/getsockname.c (rpl_getsockname): Likewise.
35815         * lib/recv.c (rpl_recv): Likewise.
35816         * lib/send.c (rpl_send): Likewise.
35817         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35818         * lib/sendto.c (rpl_sendto): Likewise.
35819
35820 2010-03-06  Bruno Haible  <bruno@clisp.org>
35821
35822         Clarify access, euidaccess, faccessat.
35823         * doc/posix-functions/faccessat.texi: Mention security problem under
35824         "Other problems", not "Portability problems".
35825         * doc/posix-functions/access.texi: Likewise. Mention a related security
35826         problem.
35827         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35828         * lib/euidaccess.c: Add comments about platforms.
35829         * lib/unistd.in.h (access, euidaccess): Add warnings.
35830
35831 2010-03-07  Bruno Haible  <bruno@clisp.org>
35832
35833         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35834         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35835         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35836         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35837         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35838         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35839         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35840         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35841         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35843         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35844         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35845         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35846         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35847         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35848         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35849         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35850         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35851         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35852         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35853         Likewise.
35854         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35855         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35856         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35857         Likewise.
35858         * tests/test-spawn.c (main): Make it work when
35859         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35860
35861 2010-03-07  Bruno Haible  <bruno@clisp.org>
35862
35863         Fix incorrect Makefile.am generation in German locale.
35864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35865         Execute sed command with character range in C locale.
35866
35867 2010-03-06  Bruno Haible  <bruno@clisp.org>
35868
35869         Tests for module 'iconv-h'.
35870         * modules/iconv-h-tests: New file.
35871         * tests/test-iconv-h.c: New file.
35872
35873         New module 'iconv-h'.
35874         * modules/iconv-h: New file.
35875         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35876         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35877         (configure.ac): Remove gl_ICONV_H.
35878         (Makefile.am): Remove rule for iconv.h.
35879
35880 2010-03-06  Bruno Haible  <bruno@clisp.org>
35881
35882         More consistent naming of *.m4 files.
35883         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35884         * modules/wctype (Files): Update.
35885
35886         More consistent naming of *.m4 files.
35887         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35888         * modules/wchar (Files): Update.
35889
35890 2010-03-06  Jim Meyering  <meyering@redhat.com>
35891
35892         euidaccess: relax license to LGPLv2+
35893         * modules/euidaccess (License): Relax to LGPLv2+.
35894
35895 2010-03-06  Bruno Haible  <bruno@clisp.org>
35896
35897         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35898         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35899         (Makefile.am): Augment lib_SOURCES instead.
35900
35901 2010-03-04  Jim Meyering  <meyering@redhat.com>
35902
35903         utime: remove obsolete module
35904         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35905         unnecessary for years, and has been marked as obsolete for 10 months.
35906         * modules/utime: Remove file.
35907         * lib/utime.c: Remove file.
35908         * m4/utime.m4: Remove file.
35909         * m4/utimes-null.m4: Remove file.
35910         * doc/posix-functions/utime.texi (utime): Remove reference to
35911         the module.  Move the sole "fixed by gnulib" item into the
35912         "problems not fixed by Gnulib" list.
35913         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35914
35915 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35916
35917         * modules/exit (License): Relax license to LGPLv2+.
35918         (Status): Mark as obsolete.
35919         * NEWS: Mention deprecated 'exit' module.
35920         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35921         of now obsolete 'exit'.
35922
35923 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35924
35925         fts-lgpl: remove unused module
35926         * modules/fts-lgpl: Remove.
35927         * MODULES.html.sh (func_all_modules): Adjust.
35928         * check-module (find_included_lib_files): Adjust.
35929         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35930
35931 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35932
35933         copy-acl: enhance Solaris ACL error handling
35934         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35935         * lib/set-mode-acl.c (qset_acl): Likewise.
35936
35937 2010-03-02  Bruno Haible  <bruno@clisp.org>
35938
35939         spawn: Don't override the system defined values on FreeBSD 8.
35940         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35941         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35942         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35943         if HAVE_POSIX_SPAWN is 1.
35944         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35945
35946 2010-03-01  Bruno Haible  <bruno@clisp.org>
35947
35948         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35949         regarding Automake.
35950
35951 2010-02-25  Bruno Haible  <bruno@clisp.org>
35952
35953         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35954         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35955         setting, not afterwards.
35956         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35957
35958 2010-02-24  Eric Blake  <eblake@redhat.com>
35959
35960         bootstrap, git-version-gen: use timestamp
35961         * build-aux/git-version-gen (scriptversion): Force UTC.
35962         * build-aux/bootstrap (scriptversion): New variable.
35963
35964         bootstrap: allow older git
35965         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35966         older than 1.6.4.  Requested by the libvirt project.
35967
35968 2010-02-23  Eric Blake  <eblake@redhat.com>
35969
35970         warn-on-use: work with old autoconf
35971         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35972         AS_VAR semantics of autoconf 2.60.
35973         Reported by Bruno Haible.
35974
35975         bootstrap: improve some comments
35976         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35977         clarification comments.
35978
35979         gettimeofday: provide correct function
35980         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35981         when replacement is declared, otherwise provide gettimeofday.
35982         Reported by Michael Goffioul.
35983
35984 2010-02-23  Jim Meyering  <meyering@redhat.com>
35985
35986         lib-ignore: relax license to "unlimited", not LGPLv2+
35987         * modules/lib-ignore (License): Relax to "unlimited".
35988
35989 2010-02-23  Jim Meyering  <meyering@redhat.com>
35990
35991         lib-ignore: relax license to LGPLv2+
35992         * modules/lib-ignore (License): Relax to LGPLv2+.
35993
35994 2010-02-22  Eric Blake  <eblake@redhat.com>
35995
35996         lseek: avoid bash 3.2 broken pipe bug
35997         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35998         warning from bash 3.2.
35999         Reported by Ben Pfaff, with analysis from Bruno Haible.
36000
36001         bootstrap: support non-FSF copyright holder
36002         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36003         bootstrap.conf override of COPYRIGHT_HOLDER.
36004         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36005
36006         bootstrap: interoperate with gettext 0.14.1
36007         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36008
36009         bootstrap: allow for alternate submodule location
36010         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36011         hardcoding submodule location.
36012         (gnulib_mk): Allow direct use of Makefile.am.
36013
36014         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36015         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36016         rather than reconfiguring where the submodule points.
36017
36018         gettimeofday: restore support for platforms that lack function
36019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36020         replacement if function is missing.
36021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36022         * modules/sys_time (Makefile.am): Substitute it.
36023         * lib/sys_time.in.h (gettimeofday): Check it.
36024         Reported by Michael Goffioul.
36025
36026 2010-02-21  Bruno Haible  <bruno@clisp.org>
36027
36028         * lib/stdio.in.h (obstack_printf): Fix typo.
36029
36030 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36031
36032         vc-list-files: use bzr ls's -R option
36033         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36034         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36035
36036 2010-02-21  Jim Meyering  <meyering@redhat.com>
36037
36038         init.sh: fix EXEEXT shims to work also for names like test-prog
36039         * tests/init.sh: Re-exec a better shell, when needed.
36040         If the current shell lacks support for posix $(...), an init.sh-using
36041         test will now try to find a shell that supports that.  If EXEEXT is
36042         nonempty, we also require support for hyphen-in-alias-name and shell
36043         substitutions like ${var#glob}.  Failure to find such a shell results
36044         in a skipped test.
36045
36046 2010-02-21  Bruno Haible  <bruno@clisp.org>
36047
36048         Really work around around "broken pipe" error message from bash 3.2.
36049         * gnulib-tool (func_reset_sigpipe): Remove function.
36050         (echo): In bash 3.2, define to a function that uses printf.
36051         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36052
36053 2010-02-20  Bruno Haible  <bruno@clisp.org>
36054
36055         Restore support for automake 1.9.6 with autoconf 2.61.
36056         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36057         Reported by James Youngman <jay@gnu.org>.
36058
36059 2010-02-20  Bruno Haible  <bruno@clisp.org>
36060
36061         Improve *printf warning condition.
36062         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36063         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36064         and the function is overridden due to SIGPIPE emulation.
36065
36066 2010-02-20  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/stdio.in.h: Tweak comments.
36069
36070 2010-02-19  Bruno Haible  <bruno@clisp.org>
36071
36072         Make it easier to find modules. New gnulib-tool option '--find'.
36073         * gnulib-tool: New option --find.
36074         (func_usage): Document it.
36075         (func_sanitize_modulelist): New function, extracted from
36076         func_all_modules.
36077         (func_all_modules): Invoke it.
36078         * doc/gnulib-tool.texi (Which modules?): New node.
36079
36080 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36081
36082         * lib/sys_select.in.h: Provide select replacement even if
36083         sys/select.h exists on a system, for Interix.
36084
36085 2010-02-18  Jim Meyering  <meyering@redhat.com>
36086
36087         init.sh: don't use $(...) just yet
36088         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36089         to accommodate e.g., Solaris' /bin/sh.
36090
36091 2010-02-17  Bruno Haible  <bruno@clisp.org>
36092
36093         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36094         Reported by Ludovic Courtès <ludo@gnu.org>.
36095
36096 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36097
36098         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36099         linking with -lintl.
36100
36101 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36102
36103         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36104         if not provided by the system's netdb.h.  Reported by
36105         ludo@gnu.org (Ludovic Courtès).
36106
36107 2010-02-15  Jim Meyering  <meyering@redhat.com>
36108
36109         init.sh: improve portability and efficiency
36110         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36111         "dummy" in a for loop.
36112         Use '!', not '^' to select the complement of a character set used
36113         in a "case" statement.
36114         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36115         Suggestions from Eric Blake.
36116
36117         init.sh: automatically accommodate programs with the .exe suffix
36118         Automatically arrange for an invocation of "prog" to execute the
36119         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36120         may use the simpler "prog", yet still work when built on a system
36121         that requires specifying the added suffix.
36122         Do this by constructing a function named "prog" that invokes
36123         "prog.exe" for each .exe file in selected directories.
36124         * tests/init.sh (find_exe_basenames_): New function.
36125         (create_exe_shim_functions_): New function.
36126         (path_prepend_): Use it.
36127
36128         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36129         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36130         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36131
36132 2010-02-14  Jim Meyering  <meyering@redhat.com>
36133
36134         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36135         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36136         (sc_prohibit_hash_pjw_without_use): New rule.
36137
36138         maint.mk: allow the default upload destination dir to be overridden
36139         * top/maint.mk (upload_dest_dir_): Define with a default that
36140         preserves the status quo.
36141         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36142         Reported by Peter Simons.
36143
36144         maint.mk: prohibit inclusion of "hash.h" without_use
36145         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36146
36147 2010-02-10  Jim Meyering  <meyering@redhat.com>
36148
36149         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36150         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36151
36152 2010-02-09  Eric Blake  <ebb9@byu.net>
36153         and Bruno Haible  <bruno@clisp.org>
36154
36155         obstack-printf-posix: ensure declaration
36156         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36157         extracted from gl_FUNC_OBSTACK_PRINTF.
36158         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36159         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36160         Likewise.
36161         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36162         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36163         0.
36164
36165 2010-02-08  Bruno Haible  <bruno@clisp.org>
36166
36167         gnulib-tool: Fix typo in 2010-02-07 commit.
36168         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36169         Reported by Eric Blake.
36170
36171 2010-02-07  Bruno Haible  <bruno@clisp.org>
36172
36173         gnulib-tool: Fix up caching patches.
36174         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36175         option --no-cache. Use associative arrays when supported by the shell.
36176         (sed_comments): New variable.
36177         (modcache): Renamed from do_cache.
36178         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36179         abbreviate unnecessarily.
36180         (have_associative): New variable.
36181         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36182         way also for ksh and zsh.
36183         (func_init_sed_convert_to_cache_statements): New function, extracted
36184         from func_cache_lookup_module. Add support for associative arrays.
36185         Don't set the c_MODULE_cached variable here. Ignore all lines before
36186         the first field header. Remove only the final newline, not all trailing
36187         newlines. Support empty fields correctly. Limit the use of 'eval' to
36188         assignments.
36189         (func_get_description, func_get_status, func_get_notice,
36190         func_get_applicability, func_get_filelist, func_get_dependencies,
36191         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36192         func_get_automake_snippet, func_get_include_directive,
36193         func_get_link_directive, func_get_license, func_get_maintainer):
36194         Update documentation. List the unoptimized code first. Add support for
36195         associative arrays. Limit the use of 'eval' to assignments.
36196         (func_get_applicability): Undo stylistic pessimisations.
36197         (func_get_automake_snippet, func_get_include_directive): Reduce code
36198         duplication.
36199         (func_modules_transitive_closure, func_modules_add_dummy,
36200         func_modules_notice, func_modules_to_filelist, func_add_file,
36201         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36202         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36203         func_create_testdir, func_create_megatestdir): Update documentation.
36204
36205 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36206
36207         * gnulib-tool (func_cache_lookup_module): Store the module name
36208         belonging to the cache variable; error out if two different
36209         module names map to the same cache variable name.
36210
36211 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36212
36213         gnulib-tool: Make caching optional.
36214         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36215         Update matching short versions of --no-changelog.
36216         (func_usage): Update.
36217         (sed_extract_cache_prog): Renamed from ...
36218         (sed_extract_prog): ... this; revert to old extraction script.
36219         (func_get_description, func_get_status)
36220         (func_get_notice, func_get_applicability, func_get_filelist)
36221         (func_get_dependencies, func_get_autoconf_early_snippet)
36222         (func_get_autoconf_snippet, func_get_automake_snippet)
36223         (func_get_include_directive, func_get_link_directive)
36224         (func_get_license, func_get_maintainer): If $do_cache is false,
36225         use old, non-caching extraction scripts.
36226         Suggestion by Bruno Haible.
36227
36228 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36229
36230         gnulib-tool: cache module metainformation.
36231         * gnulib-tool (sed_extract_prog): Match newline before each
36232         header, and rewrite header to a shell variable suffix.
36233         (func_cache_var, func_cache_lookup_module): New functions,
36234         to turn a module name into a cache variable prefix, and to
36235         look up and cache module metainformation.
36236         (func_get_description, func_get_status)
36237         (func_get_notice, func_get_applicability, func_get_filelist)
36238         (func_get_dependencies, func_get_autoconf_early_snippet)
36239         (func_get_autoconf_snippet, func_get_automake_snippet)
36240         (func_get_include_directive, func_get_link_directive)
36241         (func_get_license, func_get_maintainer): Use
36242         func_cache_lookup_module.
36243
36244 2010-02-07  Bruno Haible  <bruno@clisp.org>
36245
36246         fnctl: Fix missing dependency.
36247         * modules/fcntl (Depends-on): Add getdtablesize.
36248         Reported by John W. Eaton <jwe@gnu.org>.
36249
36250 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36251
36252         Argp: fix recognition of short alias options.
36253
36254         * lib/argp-parse.c (convert_options): Fix improper use of
36255         `|' between character values.
36256         * tests/test-argp.c (group1_option): New alias option
36257         --read (-r).
36258         (group1_parser): Special handling for 'r'.
36259         (test15): New test case.
36260         (test_fun): Add test15.
36261         * tests/test-argp-2.sh: Update expected --help and --usage
36262         outputs.
36263
36264 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36265
36266         * tests/test-argp.c: Fix indentation.
36267
36268 2010-02-04  Eric Blake  <ebb9@byu.net>
36269
36270         gettimeofday: expose type of second argument
36271         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36272         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36273         * tests/test-gettimeofday.c: Use it to silence warning.
36274         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36275         the issue.
36276
36277 2010-02-03  Jim Meyering  <meyering@redhat.com>
36278
36279         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36280         * lib/regcomp.c (TYPE_SIGNED): Define.
36281         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36282
36283         regcomp.c: avoid a new -Wshadow warning
36284         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36285
36286 2010-02-01  Jim Meyering  <meyering@redhat.com>
36287
36288         removing useless parentheses in cpp #define directives
36289         For motivation, see commit c0221df4, "define STREQ(a,b)
36290         consistently, removing useless parentheses"
36291         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36292         * lib/mountlist.c (MNT_IGNORE): Likewise.
36293         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36294
36295 2010-02-01  Eric Blake  <ebb9@byu.net>
36296
36297         sys_time: use link-warning
36298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36299         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36300         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36301         * modules/sys_time (Depends-on): Add warn-on-use.
36302         (Makefile.am): Always build replacement.
36303         (configure.ac): Update substitutions.
36304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36305         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36306         bother with SYS_TIME_H.
36307         * modules/gettimeofday (configure.ac): Declare indicator.
36308         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36309         in use.
36310
36311         closein-tests: silence compiler warning
36312         * tests/test-closein.c (main): Ignore fread result.
36313         * modules/closein-tests (Depends-on): Add ignore-value.
36314
36315         tests: silence warning about system return
36316         * tests/test-areadlink-with-size.c (main): Ignore system result.
36317         * tests/test-areadlink.c (main): Likewise.
36318         * tests/test-areadlinkat-with-size.c (main): Likewise.
36319         * tests/test-areadlinkat.c (main): Likewise.
36320         * tests/test-canonicalize-lgpl.c (main): Likewise.
36321         * tests/test-canonicalize.c (main): Likewise.
36322         * tests/test-chown.c (main): Likewise.
36323         * tests/test-fchownat.c (main): Likewise.
36324         * tests/test-fdutimensat.c (main): Likewise.
36325         * tests/test-fstatat.c (main): Likewise.
36326         * tests/test-futimens.c (main): Likewise.
36327         * tests/test-lchown.c (main): Likewise.
36328         * tests/test-link.c (main): Likewise.
36329         * tests/test-linkat.c (main): Likewise.
36330         * tests/test-lstat.c (main): Likewise.
36331         * tests/test-mkdir.c (main): Likewise.
36332         * tests/test-mkdirat.c (main): Likewise.
36333         * tests/test-mkfifo.c (main): Likewise.
36334         * tests/test-mkfifoat.c (main): Likewise.
36335         * tests/test-mknod.c (main): Likewise.
36336         * tests/test-readlink.c (main): Likewise.
36337         * tests/test-remove.c (main): Likewise.
36338         * tests/test-rename.c (main): Likewise.
36339         * tests/test-renameat.c (main): Likewise.
36340         * tests/test-rmdir.c (main): Likewise.
36341         * tests/test-symlink.c (main): Likewise.
36342         * tests/test-symlinkat.c (main): Likewise.
36343         * tests/test-unlink.c (main): Likewise.
36344         * tests/test-unlinkat.c (main): Likewise.
36345         * tests/test-utimens.c (main): Likewise.
36346         * tests/test-utimensat.c (main): Likewise.
36347         * modules/areadlink-tests (Depends-on): Add ignore-value.
36348         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36349         * modules/areadlinkat-tests (Depends-on): Likewise.
36350         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36351         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36352         * modules/canonicalize-tests (Depends-on): Likewise.
36353         * modules/chown-tests (Depends-on): Likewise.
36354         * modules/fdutimensat-tests (Depends-on): Likewise.
36355         * modules/futimens-tests (Depends-on): Likewise.
36356         * modules/lchown-tests (Depends-on): Likewise.
36357         * modules/link-tests (Depends-on): Likewise.
36358         * modules/linkat-tests (Depends-on): Likewise.
36359         * modules/lstat-tests (Depends-on): Likewise.
36360         * modules/mkdir-tests (Depends-on): Likewise.
36361         * modules/mkfifo-tests (Depends-on): Likewise.
36362         * modules/mkfifoat-tests (Depends-on): Likewise.
36363         * modules/mknod-tests (Depends-on): Likewise.
36364         * modules/openat-tests (Depends-on): Likewise.
36365         * modules/readlink-tests (Depends-on): Likewise.
36366         * modules/remove-tests (Depends-on): Likewise.
36367         * modules/rename-tests (Depends-on): Likewise.
36368         * modules/renameat-tests (Depends-on): Likewise.
36369         * modules/rmdir-tests (Depends-on): Likewise.
36370         * modules/symlink-tests (Depends-on): Likewise.
36371         * modules/symlinkat-tests (Depends-on): Likewise.
36372         * modules/unlink-tests (Depends-on): Likewise.
36373         * modules/utimens-tests (Depends-on): Likewise.
36374         * modules/utimensat-tests (Depends-on): Likewise.
36375
36376 2010-01-31  Bruno Haible  <bruno@clisp.org>
36377
36378         Perform the same test for many <math.h> functions.
36379         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36380         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36381         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36382         of gl_MATHFUNC.
36383         * modules/acos (configure.ac): Likewise.
36384         * modules/asin (configure.ac): Likewise.
36385         * modules/atan (configure.ac): Likewise.
36386         * modules/atan2 (configure.ac): Likewise.
36387         * modules/cbrt (configure.ac): Likewise.
36388         * modules/copysign (configure.ac): Likewise.
36389         * modules/cos (configure.ac): Likewise.
36390         * modules/cosh (configure.ac): Likewise.
36391         * modules/erf (configure.ac): Likewise.
36392         * modules/erfc (configure.ac): Likewise.
36393         * modules/exp (configure.ac): Likewise.
36394         * modules/fmod (configure.ac): Likewise.
36395         * modules/hypot (configure.ac): Likewise.
36396         * modules/j0 (configure.ac): Likewise.
36397         * modules/j1 (configure.ac): Likewise.
36398         * modules/jn (configure.ac): Likewise.
36399         * modules/lgamma (configure.ac): Likewise.
36400         * modules/log (configure.ac): Likewise.
36401         * modules/log10 (configure.ac): Likewise.
36402         * modules/log1p (configure.ac): Likewise.
36403         * modules/pow (configure.ac): Likewise.
36404         * modules/remainder (configure.ac): Likewise.
36405         * modules/sin (configure.ac): Likewise.
36406         * modules/sinh (configure.ac): Likewise.
36407         * modules/tan (configure.ac): Likewise.
36408         * modules/tanh (configure.ac): Likewise.
36409         * modules/y0 (configure.ac): Likewise.
36410         * modules/y1 (configure.ac): Likewise.
36411         * modules/yn (configure.ac): Likewise.
36412         Suggested by Paolo Bonzini.
36413
36414 2010-01-31  Bruno Haible  <bruno@clisp.org>
36415
36416         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36417
36418 2010-01-31  Bruno Haible  <bruno@clisp.org>
36419
36420         Work around getdelim() bug on FreeBSD 8.0.
36421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36422         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36423         not work.
36424         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36425         is 1.
36426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36427         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36428         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36429         a non-zero size.
36430         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36431
36432 2010-01-31  Bruno Haible  <bruno@clisp.org>
36433
36434         Work around getline() bug on FreeBSD 8.0.
36435         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36436         and a non-zero size.
36437         * tests/test-getline.c (main): Likewise.
36438         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36439         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36440
36441 2010-01-28  Eric Blake  <ebb9@byu.net>
36442
36443         regex: fix build failure
36444         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36445         platforms.
36446
36447 2010-01-28  Jim Meyering  <meyering@redhat.com>
36448
36449         regex: do not ignore memory allocation failure
36450         * lib/regex_internal.c (create_cd_newstate): Detect
36451         re_node_set_init_copy failure.   Extracted from glibc commit
36452         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36453
36454         regex: sync more white-space changes from libc
36455         * lib/regex_internal.c: White-space only changes.
36456         * lib/regexec.c: Likewise.
36457
36458         regex: add many uses of __attribute_warn_unused_result__
36459         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36460         * lib/regexec.c: Likewise.
36461         Extracted from a messy glibc commit.
36462
36463         regcomp.c: spelling and merge-artifact from glibc
36464         * lib/regcomp.c: Merge remainder of glibc's
36465         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36466
36467         regcomp.c: sync white-space changes from glibc
36468         * lib/regcomp.c: Merge to accommodate white space
36469         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36470
36471         regcomp.c: do not ignore internal return values
36472         * lib/regcomp.c: Do not ignore internal return values.
36473         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36474         but without its white-space changes and spelling fixes.
36475
36476         regex_internal.h: define __attribute_warn_unused_result__
36477         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36478
36479         maint: add a syntax-check rule to check for vulnerable Makefile.in
36480         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36481
36482 2010-01-27  Jim Meyering  <meyering@redhat.com>
36483
36484         ncftpput-ftp: clean up spaces
36485         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36486         Remove trailing blanks.
36487
36488 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36489
36490         * build-aux/git-version-gen: Fix copyright statement.
36491         * build-aux/gnupload: Likewise.
36492         * tests/test-arcfour.c: Likewise.
36493         * tests/test-arctwo.c: Likewise.
36494         * tests/test-count-one-bits.c: Likewise.
36495         * tests/test-crc.c: Likewise.
36496         * tests/test-des.c: Likewise.
36497         * tests/test-gc-arcfour.c: Likewise.
36498         * tests/test-gc-arctwo.c: Likewise.
36499         * tests/test-gc-des.c: Likewise.
36500         * tests/test-gc-hmac-md5.c: Likewise.
36501         * tests/test-gc-hmac-sha1.c: Likewise.
36502         * tests/test-gc-md2.c: Likewise.
36503         * tests/test-gc-md4.c: Likewise.
36504         * tests/test-gc-md5.c: Likewise.
36505         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36506         * tests/test-gc-rijndael.c: Likewise.
36507         * tests/test-gc-sha1.c: Likewise.
36508         * tests/test-gc.c: Likewise.
36509         * tests/test-gethostname.c: Likewise.
36510         * tests/test-gettimeofday.c: Likewise.
36511         * tests/test-hash.c: Likewise.
36512         * tests/test-hmac-md5.c: Likewise.
36513         * tests/test-hmac-sha1.c: Likewise.
36514         * tests/test-md2.c: Likewise.
36515         * tests/test-md4.c: Likewise.
36516         * tests/test-md5.c: Likewise.
36517         * tests/test-memchr.c: Likewise.
36518         * tests/test-memchr2.c: Likewise.
36519         * tests/test-memcmp.c: Likewise.
36520         * tests/test-memmem.c: Likewise.
36521         * tests/test-memrchr.c: Likewise.
36522         * tests/test-rawmemchr.c: Likewise.
36523         * tests/test-read-file.c: Likewise.
36524         * tests/test-rijndael.c: Likewise.
36525         * tests/test-sockets.c: Likewise.
36526         * tests/test-strchrnul.c: Likewise.
36527         * tests/test-strstr.c: Likewise.
36528         * tests/test-strtod.c: Likewise.
36529         * build-aux/ncftpput-ftp: Likewise.
36530
36531 2010-01-26  Eric Blake  <ebb9@byu.net>
36532
36533         ignore-value: update recommended header name
36534         * modules/ignore-value (Include): Only use <> for headers that
36535         exist in glibc.
36536
36537 2010-01-26  Jim Meyering  <meyering@redhat.com>
36538
36539         test-userspec.c: avoid compiler warnings
36540         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36541         and "initialization discards qualifiers..." warnings.
36542         Put the first "uid" in its own scope, and make char* members "const".
36543
36544 2010-01-25  Bruno Haible  <bruno@clisp.org>
36545
36546         gnulib-tool: Make warning diagnostics consistent.
36547         * gnulib-tool (func_warning): New function.
36548         Use it everywhere where gnulib-tool produces output to stderr and it is
36549         not a fatal error.
36550
36551 2010-01-25  Bruno Haible  <bruno@clisp.org>
36552
36553         Fix test dependencies.
36554         * modules/xstrtol-tests (Depends-on): Add inttypes.
36555         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36556
36557 2010-01-25 Pádraig Brady <P@draigBrady.com>
36558
36559         syntax-check: detect incorrect boolean macro values in config.h
36560         * modules/maintainer-makefile (configure.ac): Parameterize the location
36561         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36562         The logic is from Eric Blake and the location indicated by Jim Meyering.
36563         Note the more natural CONFIG_HEADER name is prohibited by automake
36564         for backwards compatibility reasons.
36565         * top/maint.mk (sc_Wundef_boolean): New rule.
36566
36567 2010-01-25  Jim Meyering  <meyering@redhat.com>
36568
36569         bootstrap: detect MacOS 10.6's shasum, too
36570         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36571         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36572
36573 2010-01-23  Jim Meyering  <meyering@redhat.com>
36574
36575         xstrtoll: new module
36576         * modules/xstrtoll: New file.
36577         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36578         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36579         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36580         ./configure fails if you use this module and lack "long long".
36581         * modules/xstrtoll-tests: New module.
36582         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36583         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36584         new init.sh-based test framework.
36585
36586 2010-01-24  Bruno Haible  <bruno@clisp.org>
36587
36588         Tests for module 'yn'.
36589         * modules/yn-tests: New file.
36590         * tests/test-yn.c: New file.
36591
36592         Tests for module 'y1'.
36593         * modules/y1-tests: New file.
36594         * tests/test-y1.c: New file.
36595
36596         Tests for module 'y0'.
36597         * modules/y0-tests: New file.
36598         * tests/test-y0.c: New file.
36599
36600         Tests for module 'tanh'.
36601         * modules/tanh-tests: New file.
36602         * tests/test-tanh.c: New file.
36603
36604         Tests for module 'tan'.
36605         * modules/tan-tests: New file.
36606         * tests/test-tan.c: New file.
36607
36608         Tests for module 'sqrt'.
36609         * modules/sqrt-tests: New file.
36610         * tests/test-sqrt.c: New file.
36611
36612         Tests for module 'sinh'.
36613         * modules/sinh-tests: New file.
36614         * tests/test-sinh.c: New file.
36615
36616         Tests for module 'sin'.
36617         * modules/sin-tests: New file.
36618         * tests/test-sin.c: New file.
36619
36620         Tests for module 'rint'.
36621         * modules/rint-tests: New file.
36622         * tests/test-rint.c: New file.
36623
36624         Tests for module 'remainder'.
36625         * modules/remainder-tests: New file.
36626         * tests/test-remainder.c: New file.
36627
36628         Tests for module 'pow'.
36629         * modules/pow-tests: New file.
36630         * tests/test-pow.c: New file.
36631
36632         Tests for module 'nextafter'.
36633         * modules/nextafter-tests: New file.
36634         * tests/test-nextafter.c: New file.
36635
36636         Tests for module 'modf'.
36637         * modules/modf-tests: New file.
36638         * tests/test-modf.c: New file.
36639
36640         Tests for module 'logb'.
36641         * modules/logb-tests: New file.
36642         * tests/test-logb.c: New file.
36643
36644         Tests for module 'log1p'.
36645         * modules/log1p-tests: New file.
36646         * tests/test-log1p.c: New file.
36647
36648         Tests for module 'log10'.
36649         * modules/log10-tests: New file.
36650         * tests/test-log10.c: New file.
36651
36652         Tests for module 'log'.
36653         * modules/log-tests: New file.
36654         * tests/test-log.c: New file.
36655
36656         Tests for module 'lgamma'.
36657         * modules/lgamma-tests: New file.
36658         * tests/test-lgamma.c: New file.
36659
36660         Tests for module 'ldexp'.
36661         * modules/ldexp-tests: New file.
36662         * tests/test-ldexp.c: New file.
36663
36664         Tests for module 'jn'.
36665         * modules/jn-tests: New file.
36666         * tests/test-jn.c: New file.
36667
36668         Tests for module 'j1'.
36669         * modules/j1-tests: New file.
36670         * tests/test-j1.c: New file.
36671
36672         Tests for module 'j0'.
36673         * modules/j0-tests: New file.
36674         * tests/test-j0.c: New file.
36675
36676         Tests for module 'hypot'.
36677         * modules/hypot-tests: New file.
36678         * tests/test-hypot.c: New file.
36679
36680         Tests for module 'fmod'.
36681         * modules/fmod-tests: New file.
36682         * tests/test-fmod.c: New file.
36683
36684         Tests for module 'fabs'.
36685         * modules/fabs-tests: New file.
36686         * tests/test-fabs.c: New file.
36687
36688         Tests for module 'exp'.
36689         * modules/exp-tests: New file.
36690         * tests/test-exp.c: New file.
36691
36692         Tests for module 'erfc'.
36693         * modules/erfc-tests: New file.
36694         * tests/test-erfc.c: New file.
36695
36696         Tests for module 'erf'.
36697         * modules/erf-tests: New file.
36698         * tests/test-erf.c: New file.
36699
36700         Tests for module 'cosh'.
36701         * modules/cosh-tests: New file.
36702         * tests/test-cosh.c: New file.
36703
36704         Tests for module 'cos'.
36705         * modules/cos-tests: New file.
36706         * tests/test-cos.c: New file.
36707
36708         Tests for module 'copysign'.
36709         * modules/copysign-tests: New file.
36710         * tests/test-copysign.c: New file.
36711
36712         Tests for module 'cbrt'.
36713         * modules/cbrt-tests: New file.
36714         * tests/test-cbrt.c: New file.
36715
36716         Tests for module 'atan2'.
36717         * modules/atan2-tests: New file.
36718         * tests/test-atan2.c: New file.
36719
36720         Tests for module 'atan'.
36721         * modules/atan-tests: New file.
36722         * tests/test-atan.c: New file.
36723
36724         Tests for module 'asin'.
36725         * modules/asin-tests: New file.
36726         * tests/test-asin.c: New file.
36727
36728         Tests for module 'acos'.
36729         * modules/acos-tests: New file.
36730         * tests/test-acos.c: New file.
36731
36732 2010-01-24  Bruno Haible  <bruno@clisp.org>
36733
36734         Fix tests for common <math.h> functions.
36735         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36736         code snippet that references the function pointer, rather than merely
36737         calling the function. Substitute the FUNC_LIBM variable.
36738         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36739         * modules/acos (configure.ac): Likewise.
36740         * modules/asin (configure.ac): Likewise.
36741         * modules/atan (configure.ac): Likewise.
36742         * modules/atan2 (configure.ac): Likewise.
36743         * modules/cbrt (configure.ac): Likewise.
36744         * modules/copysign (configure.ac): Likewise.
36745         * modules/cos (configure.ac): Likewise.
36746         * modules/cosh (configure.ac): Likewise.
36747         * modules/erf (configure.ac): Likewise.
36748         * modules/erfc (configure.ac): Likewise.
36749         * modules/exp (configure.ac): Likewise.
36750         * modules/fabs (configure.ac): Likewise.
36751         * modules/fmod (configure.ac): Likewise.
36752         * modules/hypot (configure.ac): Likewise.
36753         * modules/j0 (configure.ac): Likewise.
36754         * modules/j1 (configure.ac): Likewise.
36755         * modules/jn (configure.ac): Likewise.
36756         * modules/ldexp (configure.ac): Likewise.
36757         * modules/lgamma (configure.ac): Likewise.
36758         * modules/log (configure.ac): Likewise.
36759         * modules/log10 (configure.ac): Likewise.
36760         * modules/log1p (configure.ac): Likewise.
36761         * modules/logb (configure.ac): Likewise.
36762         * modules/modf (configure.ac): Likewise.
36763         * modules/nextafter (configure.ac): Likewise.
36764         * modules/pow (configure.ac): Likewise.
36765         * modules/remainder (configure.ac): Likewise.
36766         * modules/rint (configure.ac): Likewise.
36767         * modules/sin (configure.ac): Likewise.
36768         * modules/sinh (configure.ac): Likewise.
36769         * modules/tan (configure.ac): Likewise.
36770         * modules/tanh (configure.ac): Likewise.
36771         * modules/y0 (configure.ac): Likewise.
36772         * modules/y1 (configure.ac): Likewise.
36773         * modules/yn (configure.ac): Likewise.
36774
36775 2010-01-24  Bruno Haible  <bruno@clisp.org>
36776
36777         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36778         * tests/test-acosl.c (x): New variable.
36779         (main): Store argument in x and fetch it from x.
36780         * tests/test-asinl.c (x): New variable.
36781         (main): Store argument in x and fetch it from x.
36782         * tests/test-atanl.c (x): New variable.
36783         (main): Store argument in x and fetch it from x.
36784         * tests/test-cosl.c (x): New variable.
36785         (main): Store argument in x and fetch it from x.
36786         * tests/test-expl.c (x): New variable.
36787         (main): Store argument in x and fetch it from x.
36788         * tests/test-logl.c (x): New variable.
36789         (main): Store argument in x and fetch it from x.
36790         * tests/test-sinl.c (x): New variable.
36791         (main): Store argument in x and fetch it from x.
36792         * tests/test-sqrtl.c (x): New variable.
36793         (main): Store argument in x and fetch it from x.
36794         * tests/test-tanl.c (x): New variable.
36795         (main): Store argument in x and fetch it from x.
36796
36797 2010-01-24  Bruno Haible  <bruno@clisp.org>
36798
36799         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36800         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36801         assignments to the initial TESTS_ENVIRONMENT.
36802         * doc/gnulib.texi (Unit test modules): Document it.
36803         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36804         TESTS_ENVIRONMENT.
36805         * modules/btowc-tests (Makefile.am): Likewise.
36806         * modules/c-stack-tests (Makefile.am): Likewise.
36807         * modules/c-strcase-tests (Makefile.am): Likewise.
36808         * modules/copy-file-tests (Makefile.am): Likewise.
36809         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36810         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36811         * modules/mbrtowc-tests (Makefile.am): Likewise.
36812         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36813         * modules/mbscasestr-tests (Makefile.am): Likewise.
36814         * modules/mbschr-tests (Makefile.am): Likewise.
36815         * modules/mbscspn-tests (Makefile.am): Likewise.
36816         * modules/mbsinit-tests (Makefile.am): Likewise.
36817         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36818         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36819         * modules/mbspbrk-tests (Makefile.am): Likewise.
36820         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36821         * modules/mbsrchr-tests (Makefile.am): Likewise.
36822         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36823         * modules/mbsspn-tests (Makefile.am): Likewise.
36824         * modules/mbsstr-tests (Makefile.am): Likewise.
36825         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36826         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36827         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36828         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36829         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36830         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36831         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36832         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36833         * modules/wcrtomb-tests (Makefile.am): Likewise.
36834         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36835         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36836         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36837         assignments from TESTS_ENVIRONMENT.
36838         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36839         augmentation.
36840         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36841         * modules/atexit-tests (Makefile.am): Likewise.
36842         * modules/binary-io-tests (Makefile.am): Likewise.
36843         * modules/closein-tests (Makefile.am): Likewise.
36844         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36845         * modules/exclude-tests (Makefile.am): Likewise.
36846         * modules/fflush-tests (Makefile.am): Likewise.
36847         * modules/fpending-tests (Makefile.am): Likewise.
36848         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36849         * modules/freadahead-tests (Makefile.am): Likewise.
36850         * modules/freadptr-tests (Makefile.am): Likewise.
36851         * modules/freadseek-tests (Makefile.am): Likewise.
36852         * modules/fseek-tests (Makefile.am): Likewise.
36853         * modules/fseeko-tests (Makefile.am): Likewise.
36854         * modules/ftell-tests (Makefile.am): Likewise.
36855         * modules/ftello-tests (Makefile.am): Likewise.
36856         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36857         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36858         * modules/lseek-tests (Makefile.am): Likewise.
36859         * modules/parse-duration-tests (Makefile.am): Likewise.
36860         * modules/perror-tests (Makefile.am): Likewise.
36861         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36862         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36863         * modules/pipe-tests (Makefile.am): Likewise.
36864         * modules/pread-tests (Makefile.am): Likewise.
36865         * modules/printf-posix-tests (Makefile.am): Likewise.
36866         * modules/select-tests (Makefile.am): Likewise.
36867         * modules/sigpipe-tests (Makefile.am): Likewise.
36868         * modules/tsearch-tests (Makefile.am): Likewise.
36869         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36870         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36871         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36872         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36873         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36874         * modules/version-etc-tests (Makefile.am): Likewise.
36875         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36876         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36877         * modules/xalloc-die-tests (Makefile.am): Likewise.
36878         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36879         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36880         * modules/xstrtol-tests (Makefile.am): Likewise.
36881         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36882         * modules/yesno-tests (Makefile.am): Likewise.
36883         Suggested by Jim Meyering.
36884
36885 2010-01-24  Bruno Haible  <bruno@clisp.org>
36886
36887         More documentation.
36888         * doc/gnulib.texi (Writing modules): New chapter.
36889         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36890         the new chapter.
36891
36892 2010-01-24  Jim Meyering  <meyering@redhat.com>
36893
36894         maint.mk: do not prepend "./" after filtering
36895         * top/maint.mk (_prepend_srcdir_prefix): New variable
36896         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36897         "./" when $(srcdir) is ".".
36898
36899         define STREQ(a,b) consistently, removing useless parentheses
36900         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36901         since the only risk is that "a" or "b" contains an unparenthesized
36902         comma, but if either did that, STREQ would have 3 or more arguments.
36903         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36904         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36905         * lib/hash-triple.c (STREQ): Likewise.
36906         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36907         * lib/getugroups.c (STREQ): Likewise.
36908
36909 2010-01-23  Jim Meyering  <meyering@redhat.com>
36910
36911         maint.mk: fix syntax-check in a non-srcdir build directory
36912         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36913         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36914
36915 2010-01-22  Jim Meyering  <meyering@redhat.com>
36916
36917         userspec: add unit tests
36918         * tests/test-userspec.c: New file.
36919         * modules/userspec-tests: Likewise.
36920
36921 2010-01-21  Jim Meyering  <meyering@redhat.com>
36922
36923         maint.mk: handle source file names containing "." robustly
36924         * top/maint.mk (_dot_escaped_srcdir): Define.
36925         (VC_LIST): Use it in LHS of sed substitution.
36926
36927 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36928
36929         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36930         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36931         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36932         from a non-srcdir build.
36933
36934 2010-01-20  Eric Blake  <ebb9@byu.net>
36935
36936         warn-on-use: use instead of link-warning
36937         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36938         * modules/unistd (Depends-on, Makefile.am): Likewise.
36939         * modules/arpa_inet (Depends-on): Replace link-warning with
36940         warn-on-use.
36941         (Makefile.am): Update rules accordingly.
36942         * modules/ctype (Depends-on, Makefile.am): Likewise.
36943         * modules/dirent (Depends-on, Makefile.am): Likewise.
36944         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36945         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36946         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36947         * modules/locale (Depends-on, Makefile.am): Likewise.
36948         * modules/math (Depends-on, Makefile.am): Likewise.
36949         * modules/search (Depends-on, Makefile.am): Likewise.
36950         * modules/signal (Depends-on, Makefile.am): Likewise.
36951         * modules/spawn (Depends-on, Makefile.am): Likewise.
36952         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36953         * modules/string (Depends-on, Makefile.am): Likewise.
36954         * modules/strings (Depends-on, Makefile.am): Likewise.
36955         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36956         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36957         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36958         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36959         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36960         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36961         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36962         * modules/wchar (Depends-on, Makefile.am): Likewise.
36963         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36964         should be poisoned.
36965         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36966         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36967         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36968         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36970         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36971         * m4/math_h.m4 (gl_MATH_H): Likewise.
36972         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36973         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36974         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36975         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36976         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36978         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36979         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36980         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36984         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36985         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36986         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36987         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36988         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36989         GL_LINK_WARNING.
36990         * lib/ctype.in.h: Likewise.
36991         * lib/dirent.in.h: Likewise.
36992         * lib/fcntl.in.h: Likewise.
36993         * lib/inttypes.in.h: Likewise.
36994         * lib/langinfo.in.h: Likewise.
36995         * lib/locale.in.h: Likewise.
36996         * lib/math.in.h: Likewise.
36997         * lib/search.in.h: Likewise.
36998         * lib/signal.in.h: Likewise.
36999         * lib/spawn.in.h: Likewise.
37000         * lib/stdio.in.h: Likewise.
37001         * lib/stdlib.in.h: Likewise.
37002         * lib/string.in.h: Likewise.
37003         * lib/strings.in.h: Likewise.
37004         * lib/sys_file.in.h: Likewise.
37005         * lib/sys_ioctl.in.h: Likewise.
37006         * lib/sys_select.in.h: Likewise.
37007         * lib/sys_socket.in.h: Likewise.
37008         * lib/sys_stat.in.h: Likewise.
37009         * lib/sys_times.in.h: Likewise.
37010         * lib/sys_utsname.in.h: Likewise.
37011         * lib/unistd.in.h: Likewise.
37012         * lib/wchar.in.h: Likewise.
37013
37014 2010-01-20  Bruno Haible  <bruno@clisp.org>
37015
37016         Avoid duplicate -lm.
37017         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37018         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37021         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37022         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37023         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37024         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37026         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37027         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37028         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37029         Reported by Paolo Bonzini.
37030
37031 2010-01-19  Bruno Haible  <bruno@clisp.org>
37032
37033         langinfo, nl_langinfo: Relicense under LGPLv2+.
37034         * modules/langinfo (License): Change to LGPLv2+.
37035         * modules/nl_langinfo (License): Likewise.
37036         Patch by David Lutterkort <lutter@redhat.com>.
37037
37038 2010-01-19  Bruno Haible  <bruno@clisp.org>
37039
37040         Avoid compilation error with cc on OSF/1 5.1.
37041         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37042         statement, not before.
37043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37044
37045 2010-01-18  Bruno Haible  <bruno@clisp.org>
37046
37047         Avoid a link error due to the __printf__ symbol.
37048         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37049         and 2.6.x.
37050         (__format__, __printf__): Remove definitions.
37051         * lib/argp-fmtstream.h: Likewise.
37052         * lib/argp.h: Likewise.
37053         * lib/error.h: Likewise.
37054         * lib/vasnprintf.h: Likewise.
37055         * lib/xprintf.h: Likewise.
37056         * lib/xvasprintf.h: Likewise.
37057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37058
37059 2010-01-18  Bruno Haible  <bruno@clisp.org>
37060
37061         Tests for module 'tanl'.
37062         * modules/tanl-tests: New file.
37063         * tests/test-tanl.c: New file.
37064
37065         Tests for module 'sqrtl'.
37066         * modules/sqrtl-tests: New file.
37067         * tests/test-sqrtl.c: New file.
37068
37069         Tests for module 'sinl'.
37070         * modules/sinl-tests: New file.
37071         * tests/test-sinl.c: New file.
37072
37073         Tests for module 'logl'.
37074         * modules/logl-tests: New file.
37075         * tests/test-logl.c: New file.
37076
37077         Tests for module 'expl'.
37078         * modules/expl-tests: New file.
37079         * tests/test-expl.c: New file.
37080
37081         Tests for module 'cosl'.
37082         * modules/cosl-tests: New file.
37083         * tests/test-cosl.c: New file.
37084
37085         Tests for module 'atanl'.
37086         * modules/atanl-tests: New file.
37087         * tests/test-atanl.c: New file.
37088
37089         Tests for module 'asinl'.
37090         * modules/asinl-tests: New file.
37091         * tests/test-asinl.c: New file.
37092
37093         Tests for module 'acosl'.
37094         * modules/acosl-tests: New file.
37095         * tests/test-acosl.c: New file.
37096
37097         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37098         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37099         tanl): Use the standard gnulib idiom.
37100         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37101         * lib/sinl.c: Likewise.
37102         * lib/tanl.c: Don't include trigl.c.
37103         (kernel_tanl): Make static.
37104         * lib/sincosl.c: Include trigl.h first.
37105         * lib/trigl.c: Likewise.
37106         * m4/acosl.m4: New file.
37107         * m4/asinl.m4: New file.
37108         * m4/atanl.m4: New file.
37109         * m4/cosl.m4: New file.
37110         * m4/expl.m4: New file.
37111         * m4/logl.m4: New file.
37112         * m4/sinl.m4: New file.
37113         * m4/sqrtl.m4: New file.
37114         * m4/tanl.m4: New file.
37115         * m4/mathl.m4: Remove file.
37116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37117         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37118         Don't initialize GNULIB_MATHL.
37119         * modules/acosl: New file.
37120         * modules/asinl: New file.
37121         * modules/atanl: New file.
37122         * modules/cosl: New file.
37123         * modules/expl: New file.
37124         * modules/logl: New file.
37125         * modules/sinl: New file.
37126         * modules/sqrtl: New file.
37127         * modules/tanl: New file.
37128         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37129         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37130         substitute GNULIB_MATHL.
37131         * modules/mathl: Rewritten.
37132         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37133         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37134         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37135         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37136         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37137         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37138         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37139         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37140         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37141
37142 2010-01-18  Bruno Haible  <bruno@clisp.org>
37143
37144         sqrt: Make gl_FUNC_SQRT requirable.
37145         * m4/sqrt.m4: New file.
37146         * modules/sqrt (Files): Add it.
37147         (configure.ac): Invoke gl_FUNC_SQRT.
37148
37149 2010-01-18  Bruno Haible  <bruno@clisp.org>
37150
37151         New modules for common <math.h> functions.
37152         * m4/mathfunc.m4: New file.
37153         * modules/acos: New file.
37154         * modules/asin: New file.
37155         * modules/atan: New file.
37156         * modules/atan2: New file.
37157         * modules/cbrt: New file.
37158         * modules/copysign: New file.
37159         * modules/cos: New file.
37160         * modules/cosh: New file.
37161         * modules/erf: New file.
37162         * modules/erfc: New file.
37163         * modules/exp: New file.
37164         * modules/fabs: New file.
37165         * modules/fmod: New file.
37166         * modules/hypot: New file.
37167         * modules/j0: New file.
37168         * modules/j1: New file.
37169         * modules/jn: New file.
37170         * modules/ldexp: New file.
37171         * modules/lgamma: New file.
37172         * modules/log: New file.
37173         * modules/log10: New file.
37174         * modules/log1p: New file.
37175         * modules/logb: New file.
37176         * modules/modf: New file.
37177         * modules/nextafter: New file.
37178         * modules/pow: New file.
37179         * modules/remainder: New file.
37180         * modules/rint: New file.
37181         * modules/sin: New file.
37182         * modules/sinh: New file.
37183         * modules/sqrt: New file.
37184         * modules/tan: New file.
37185         * modules/tanh: New file.
37186         * modules/y0: New file.
37187         * modules/y1: New file.
37188         * modules/yn: New file.
37189         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37190         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37191         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37192         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37193         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37194         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37195         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37196         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37197         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37198         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37199         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37200         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37201         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37202         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37203         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37204         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37205         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37206         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37207         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37208         * doc/posix-functions/log.texi: Mention the 'log' module.
37209         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37210         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37211         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37212         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37213         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37214         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37215         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37216         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37217         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37218         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37219         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37220         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37221         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37222         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37223         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37224         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37225
37226 2010-01-18  Jim Meyering  <meyering@redhat.com>
37227
37228         ignore-value: relax license to LGPLv2+
37229         * modules/ignore-value (License): Relax to LGPLv2+.
37230
37231         getdate: don't leak when TZ contains two or more '"'s
37232         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37233         double quote in TZ after the first one.
37234
37235         readtokens: do not leak internal token_lengths buffer
37236         * lib/readtokens.c (readtokens): Free the local, lengths,
37237         when the supplied "token_lengths" parameter is NULL.
37238
37239 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37240
37241         Fix a couple of missing LIBTHREAD link failures on AIX.
37242         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37243         $(LIBTHREAD).
37244         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37245
37246         Link test-poll against INET_PTON_LIB.
37247         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37248         for inet_pton on Solaris 10.
37249
37250 2010-01-17  Bruno Haible  <bruno@clisp.org>
37251
37252         unistdio/*-sprintf: Fix typo in module description.
37253         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37254         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37255         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37256         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37257         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37258         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37259         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37261
37262 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37263
37264         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37265         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37266         variables in shell case patterns, for AIX and HP-UX ksh.
37267
37268         Split large sed scripts, for HP-UX sed.
37269         * modules/stdio: Split sed scripts around 50 sed commands,
37270         to avoid HP-UX limit of 99 commands, in the near future.
37271         * modules/string: Likewise.
37272         * modules/unistd: Likewise.
37273
37274         gnulib-tool: avoid writing in the current directory.
37275         * gnulib-tool (func_emit_lib_Makefile_am)
37276         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37277         not in the current directory, so concurrent gnulib-tool
37278         instances do not interfere.
37279
37280 2010-01-16  Jim Meyering  <meyering@redhat.com>
37281
37282         doc: update users.txt
37283         * users.txt: Add grep.
37284         (diffutils, gzip): Update URLs.
37285
37286 2010-01-12  Bruno Haible  <bruno@clisp.org>
37287
37288         posix_spawn: Avoid test failure on Cygwin.
37289         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37290         characters.
37291         Reported by Simon Josefsson.
37292
37293 2010-01-12  Bruno Haible  <bruno@clisp.org>
37294
37295         * tests/test-cond.c (main): When skipping the test, show the reason.
37296
37297 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37298
37299         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37300
37301 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37302
37303         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37304         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37305
37306 2010-01-12  Eric Blake  <ebb9@byu.net>
37307
37308         build: guarantee AS_VAR_IF
37309         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37310         (gl_AS_VAR_IF): Move...
37311         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37312         Reported by Simon Josefsson.
37313
37314 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37315
37316         * lib/stdio.in.h: Fix typo.
37317
37318 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37319
37320         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37321         libgpg-error.
37322
37323 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37324
37325         * tests/test-xalloc-die.sh: Use $EXEEXT.
37326
37327 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37328             Bruno Haible  <bruno@clisp.org>
37329
37330         getlogin, getlogin_r: Avoid test failure.
37331         * tests/test-getlogin.c: Include <stdio.h>.
37332         (main): Skip the test when the function fails because stdin is not a
37333         tty.
37334         * tests/test-getlogin_r.c: Include <stdio.h>.
37335         (main): Skip the test when the function fails because stdin is not a
37336         tty.
37337
37338 2010-01-11  Eric Blake  <ebb9@byu.net>
37339
37340         tests: avoid more large file warnings
37341         * tests/test-fflush.c: Avoid warning about ftell use.
37342         * tests/test-fseek.c: Avoid warning about fseek use.
37343
37344 2010-01-10  Bruno Haible  <bruno@clisp.org>
37345
37346         nproc: Work better on Linux when /proc and /sys are not mounted.
37347         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37348         as lower bound when, on glibc/Linux systems,
37349         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37350         Suggested by Pádraig Brady <P@draigbrady.com>.
37351         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37352
37353         nproc: Refactor.
37354         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37355         extracted from num_processors.
37356         (num_processors): Call it.
37357
37358 2010-01-11  Jim Meyering  <meyering@redhat.com>
37359
37360         utimecmp: avoid new warning from upcoming gcc-4.5.0
37361         * lib/utimecmp.c (BILLION): Define using #define rather than an
37362         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37363
37364 2010-01-11  Eric Blake  <ebb9@byu.net>
37365
37366         math: add portability warnings for classification macros
37367         * modules/math (Depends-on): Add warn-on-use.
37368         (Makefile.am): Provide new substitutions.
37369         * m4/math_h.m4 (gl_MATH_H): Require inline.
37370         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37371         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37372         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37373         implement warnings.
37374
37375         unistd: warn on use of environ without module
37376         * modules/unistd (Depends-on): Add warn-on-use.
37377         (Makefile.am): Provide new substitutions.
37378         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37379         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37380
37381         stdio: warn on suspicious uses
37382         * modules/stdio (Depends-on): Add warn-on-use.
37383         (Makefile.am): Provide new substitutions.
37384         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37385         fseeko.
37386         * lib/stdio.in.h (gets): Always warn on use.
37387         (fseek, ftell): Adjust when warnings are issued, and honor
37388         _GL_NO_LARGE_FILES as a way to silence the warning.
37389         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37390         any warning about large file offsets.
37391         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37392         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37393         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37394         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37395         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37396         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37397         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37398         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37399
37400         warn-on-use: new module
37401         * modules/warn-on-use: New file.
37402         * build-aux/warn-on-use.h: Likewise.
37403         * m4/warn-on-use.m4: Likewise.
37404         * MODULES.html.sh (Support for building): Mention it.
37405
37406 2010-01-10  Bruno Haible  <bruno@clisp.org>
37407
37408         Tests for module 'unistr/u32-strdup'.
37409         * modules/unistr/u32-strdup-tests: New file.
37410         * tests/unistr/test-u32-strdup.c: New file.
37411
37412         Tests for module 'unistr/u16-strdup'.
37413         * modules/unistr/u16-strdup-tests: New file.
37414         * tests/unistr/test-u16-strdup.c: New file.
37415
37416         Tests for module 'unistr/u8-strdup'.
37417         * modules/unistr/u8-strdup-tests: New file.
37418         * tests/unistr/test-u8-strdup.c: New file.
37419         * tests/unistr/test-strdup.h: New file.
37420
37421         Tests for module 'unistr/u32-strncmp'.
37422         * modules/unistr/u32-strncmp-tests: New file.
37423         * tests/unistr/test-u32-strncmp.c: New file.
37424
37425         Tests for module 'unistr/u16-strncmp'.
37426         * modules/unistr/u16-strncmp-tests: New file.
37427         * tests/unistr/test-u16-strncmp.c: New file.
37428
37429         Tests for module 'unistr/u8-strncmp'.
37430         * modules/unistr/u8-strncmp-tests: New file.
37431         * tests/unistr/test-u8-strncmp.c: New file.
37432         * tests/unistr/test-strncmp.h: New file.
37433
37434         Tests for module 'unistr/u32-strcoll'.
37435         * modules/unistr/u32-strcoll-tests: New file.
37436         * tests/unistr/test-u32-strcoll.c: New file.
37437
37438         Tests for module 'unistr/u16-strcoll'.
37439         * modules/unistr/u16-strcoll-tests: New file.
37440         * tests/unistr/test-u16-strcoll.c: New file.
37441
37442         Tests for module 'unistr/u8-strcoll'.
37443         * modules/unistr/u8-strcoll-tests: New file.
37444         * tests/unistr/test-u8-strcoll.c: New file.
37445
37446         Tests for module 'unistr/u32-strcmp'.
37447         * modules/unistr/u32-strcmp-tests: New file.
37448         * tests/unistr/test-u32-strcmp.c: New file.
37449         * tests/unistr/test-u32-strcmp.h: New file.
37450
37451         Tests for module 'unistr/u16-strcmp'.
37452         * modules/unistr/u16-strcmp-tests: New file.
37453         * tests/unistr/test-u16-strcmp.c: New file.
37454         * tests/unistr/test-u16-strcmp.h: New file.
37455
37456         Tests for module 'unistr/u8-strcmp'.
37457         * modules/unistr/u8-strcmp-tests: New file.
37458         * tests/unistr/test-u8-strcmp.c: New file.
37459         * tests/unistr/test-u8-strcmp.h: New file.
37460         * tests/unistr/test-strcmp.h: New file.
37461
37462         Tests for module 'unistr/u32-strncat'.
37463         * modules/unistr/u32-strncat-tests: New file.
37464         * tests/unistr/test-u32-strncat.c: New file.
37465
37466         Tests for module 'unistr/u16-strncat'.
37467         * modules/unistr/u16-strncat-tests: New file.
37468         * tests/unistr/test-u16-strncat.c: New file.
37469
37470         Tests for module 'unistr/u8-strncat'.
37471         * modules/unistr/u8-strncat-tests: New file.
37472         * tests/unistr/test-u8-strncat.c: New file.
37473         * tests/unistr/test-strncat.h: New file.
37474
37475         Tests for module 'unistr/u32-strcat'.
37476         * modules/unistr/u32-strcat-tests: New file.
37477         * tests/unistr/test-u32-strcat.c: New file.
37478
37479         Tests for module 'unistr/u16-strcat'.
37480         * modules/unistr/u16-strcat-tests: New file.
37481         * tests/unistr/test-u16-strcat.c: New file.
37482
37483         Tests for module 'unistr/u8-strcat'.
37484         * modules/unistr/u8-strcat-tests: New file.
37485         * tests/unistr/test-u8-strcat.c: New file.
37486         * tests/unistr/test-strcat.h: New file.
37487
37488         Tests for module 'unistr/u32-stpncpy'.
37489         * modules/unistr/u32-stpncpy-tests: New file.
37490         * tests/unistr/test-u32-stpncpy.c: New file.
37491
37492         Tests for module 'unistr/u16-stpncpy'.
37493         * modules/unistr/u16-stpncpy-tests: New file.
37494         * tests/unistr/test-u16-stpncpy.c: New file.
37495
37496         Tests for module 'unistr/u8-stpncpy'.
37497         * modules/unistr/u8-stpncpy-tests: New file.
37498         * tests/unistr/test-u8-stpncpy.c: New file.
37499         * tests/unistr/test-stpncpy.h: New file.
37500
37501         Tests for module 'unistr/u32-strncpy'.
37502         * modules/unistr/u32-strncpy-tests: New file.
37503         * tests/unistr/test-u32-strncpy.c: New file.
37504
37505         Tests for module 'unistr/u16-strncpy'.
37506         * modules/unistr/u16-strncpy-tests: New file.
37507         * tests/unistr/test-u16-strncpy.c: New file.
37508
37509         Tests for module 'unistr/u8-strncpy'.
37510         * modules/unistr/u8-strncpy-tests: New file.
37511         * tests/unistr/test-u8-strncpy.c: New file.
37512         * tests/unistr/test-strncpy.h: New file.
37513
37514         Tests for module 'unistr/u32-stpcpy'.
37515         * modules/unistr/u32-stpcpy-tests: New file.
37516         * tests/unistr/test-u32-stpcpy.c: New file.
37517
37518         Tests for module 'unistr/u16-stpcpy'.
37519         * modules/unistr/u16-stpcpy-tests: New file.
37520         * tests/unistr/test-u16-stpcpy.c: New file.
37521
37522         Tests for module 'unistr/u8-stpcpy'.
37523         * modules/unistr/u8-stpcpy-tests: New file.
37524         * tests/unistr/test-u8-stpcpy.c: New file.
37525         * tests/unistr/test-stpcpy.h: New file.
37526
37527         Tests for module 'unistr/u32-strcpy'.
37528         * modules/unistr/u32-strcpy-tests: New file.
37529         * tests/unistr/test-u32-strcpy.c: New file.
37530
37531         Tests for module 'unistr/u16-strcpy'.
37532         * modules/unistr/u16-strcpy-tests: New file.
37533         * tests/unistr/test-u16-strcpy.c: New file.
37534
37535         Tests for module 'unistr/u8-strcpy'.
37536         * modules/unistr/u8-strcpy-tests: New file.
37537         * tests/unistr/test-u8-strcpy.c: New file.
37538         * tests/unistr/test-strcpy.h: New file.
37539
37540         Tests for module 'unistr/u32-strnlen'.
37541         * modules/unistr/u32-strnlen-tests: New file.
37542         * tests/unistr/test-u32-strnlen.c: New file.
37543
37544         Tests for module 'unistr/u16-strnlen'.
37545         * modules/unistr/u16-strnlen-tests: New file.
37546         * tests/unistr/test-u16-strnlen.c: New file.
37547
37548         Tests for module 'unistr/u8-strnlen'.
37549         * modules/unistr/u8-strnlen-tests: New file.
37550         * tests/unistr/test-u8-strnlen.c: New file.
37551         * tests/unistr/test-strnlen.h: New file.
37552
37553         Tests for module 'unistr/u32-strlen'.
37554         * modules/unistr/u32-strlen-tests: New file.
37555         * tests/unistr/test-u32-strlen.c: New file.
37556
37557         Tests for module 'unistr/u16-strlen'.
37558         * modules/unistr/u16-strlen-tests: New file.
37559         * tests/unistr/test-u16-strlen.c: New file.
37560
37561         Tests for module 'unistr/u8-strlen'.
37562         * modules/unistr/u8-strlen-tests: New file.
37563         * tests/unistr/test-u8-strlen.c: New file.
37564
37565         Tests for module 'unistr/u32-prev'.
37566         * modules/unistr/u32-prev-tests: New file.
37567         * tests/unistr/test-u32-prev.c: New file.
37568
37569         Tests for module 'unistr/u16-prev'.
37570         * modules/unistr/u16-prev-tests: New file.
37571         * tests/unistr/test-u16-prev.c: New file.
37572
37573         Tests for module 'unistr/u8-prev'.
37574         * modules/unistr/u8-prev-tests: New file.
37575         * tests/unistr/test-u8-prev.c: New file.
37576
37577         Tests for module 'unistr/u32-next'.
37578         * modules/unistr/u32-next-tests: New file.
37579         * tests/unistr/test-u32-next.c: New file.
37580
37581         Tests for module 'unistr/u16-next'.
37582         * modules/unistr/u16-next-tests: New file.
37583         * tests/unistr/test-u16-next.c: New file.
37584
37585         Tests for module 'unistr/u8-next'.
37586         * modules/unistr/u8-next-tests: New file.
37587         * tests/unistr/test-u8-next.c: New file.
37588
37589         Tests for module 'unistr/u32-strmbtouc'.
37590         * modules/unistr/u32-strmbtouc-tests: New file.
37591         * tests/unistr/test-u32-strmbtouc.c: New file.
37592
37593         Tests for module 'unistr/u16-strmbtouc'.
37594         * modules/unistr/u16-strmbtouc-tests: New file.
37595         * tests/unistr/test-u16-strmbtouc.c: New file.
37596
37597         Tests for module 'unistr/u8-strmbtouc'.
37598         * modules/unistr/u8-strmbtouc-tests: New file.
37599         * tests/unistr/test-u8-strmbtouc.c: New file.
37600
37601         Tests for module 'unistr/u32-strmblen'.
37602         * modules/unistr/u32-strmblen-tests: New file.
37603         * tests/unistr/test-u32-strmblen.c: New file.
37604
37605         Tests for module 'unistr/u16-strmblen'.
37606         * modules/unistr/u16-strmblen-tests: New file.
37607         * tests/unistr/test-u16-strmblen.c: New file.
37608
37609         Tests for module 'unistr/u8-strmblen'.
37610         * modules/unistr/u8-strmblen-tests: New file.
37611         * tests/unistr/test-u8-strmblen.c: New file.
37612
37613         Tests for module 'unistr/u32-cpy-alloc'.
37614         * modules/unistr/u32-cpy-alloc-tests: New file.
37615         * tests/unistr/test-u32-cpy-alloc.c: New file.
37616
37617         Tests for module 'unistr/u16-cpy-alloc'.
37618         * modules/unistr/u16-cpy-alloc-tests: New file.
37619         * tests/unistr/test-u16-cpy-alloc.c: New file.
37620
37621         Tests for module 'unistr/u8-cpy-alloc'.
37622         * modules/unistr/u8-cpy-alloc-tests: New file.
37623         * tests/unistr/test-u8-cpy-alloc.c: New file.
37624         * tests/unistr/test-cpy-alloc.h: New file.
37625
37626         Tests for module 'unistr/u32-mbsnlen'.
37627         * modules/unistr/u32-mbsnlen-tests: New file.
37628         * tests/unistr/test-u32-mbsnlen.c: New file.
37629
37630         Tests for module 'unistr/u16-mbsnlen'.
37631         * modules/unistr/u16-mbsnlen-tests: New file.
37632         * tests/unistr/test-u16-mbsnlen.c: New file.
37633
37634         Tests for module 'unistr/u8-mbsnlen'.
37635         * modules/unistr/u8-mbsnlen-tests: New file.
37636         * tests/unistr/test-u8-mbsnlen.c: New file.
37637
37638         Tests for module 'unistr/u32-chr'.
37639         * modules/unistr/u32-chr-tests: New file.
37640         * tests/unistr/test-u32-chr.c: New file.
37641
37642         Tests for module 'unistr/u16-chr'.
37643         * modules/unistr/u16-chr-tests: New file.
37644         * tests/unistr/test-u16-chr.c: New file.
37645
37646         Tests for module 'unistr/u8-chr'.
37647         * modules/unistr/u8-chr-tests: New file.
37648         * tests/unistr/test-u8-chr.c: New file.
37649         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37650
37651         Tests for module 'unistr/u32-cmp2'.
37652         * modules/unistr/u32-cmp2-tests: New file.
37653         * tests/unistr/test-u32-cmp2.c: New file.
37654
37655         Tests for module 'unistr/u16-cmp2'.
37656         * modules/unistr/u16-cmp2-tests: New file.
37657         * tests/unistr/test-u16-cmp2.c: New file.
37658
37659         Tests for module 'unistr/u8-cmp2'.
37660         * modules/unistr/u8-cmp2-tests: New file.
37661         * tests/unistr/test-u8-cmp2.c: New file.
37662         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37663
37664         Tests for module 'unistr/u32-cmp'.
37665         * modules/unistr/u32-cmp-tests: New file.
37666         * tests/unistr/test-u32-cmp.c: New file.
37667
37668         Tests for module 'unistr/u16-cmp'.
37669         * modules/unistr/u16-cmp-tests: New file.
37670         * tests/unistr/test-u16-cmp.c: New file.
37671
37672         Tests for module 'unistr/u8-cmp'.
37673         * modules/unistr/u8-cmp-tests: New file.
37674         * tests/unistr/test-u8-cmp.c: New file.
37675         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37676
37677         Tests for module 'unistr/u32-set'.
37678         * modules/unistr/u32-set-tests: New file.
37679         * tests/unistr/test-u32-set.c: New file.
37680
37681         Tests for module 'unistr/u16-set'.
37682         * modules/unistr/u16-set-tests: New file.
37683         * tests/unistr/test-u16-set.c: New file.
37684
37685         Tests for module 'unistr/u8-set'.
37686         * modules/unistr/u8-set-tests: New file.
37687         * tests/unistr/test-u8-set.c: New file.
37688         * tests/unistr/test-set.h: New file.
37689
37690         Tests for module 'unistr/u32-move'.
37691         * modules/unistr/u32-move-tests: New file.
37692         * tests/unistr/test-u32-move.c: New file.
37693
37694         Tests for module 'unistr/u16-move'.
37695         * modules/unistr/u16-move-tests: New file.
37696         * tests/unistr/test-u16-move.c: New file.
37697
37698         Tests for module 'unistr/u8-move'.
37699         * modules/unistr/u8-move-tests: New file.
37700         * tests/unistr/test-u8-move.c: New file.
37701         * tests/unistr/test-move.h: New file.
37702
37703         Tests for module 'unistr/u32-cpy'.
37704         * modules/unistr/u32-cpy-tests: New file.
37705         * tests/unistr/test-u32-cpy.c: New file.
37706
37707         Tests for module 'unistr/u16-cpy'.
37708         * modules/unistr/u16-cpy-tests: New file.
37709         * tests/unistr/test-u16-cpy.c: New file.
37710
37711         Tests for module 'unistr/u8-cpy'.
37712         * modules/unistr/u8-cpy-tests: New file.
37713         * tests/unistr/test-u8-cpy.c: New file.
37714         * tests/unistr/test-cpy.h: New file.
37715
37716 2010-01-09  Bruno Haible  <bruno@clisp.org>
37717
37718         Tests for module 'unistr/u32-uctomb'.
37719         * modules/unistr/u32-uctomb-tests: New file.
37720         * tests/unistr/test-u32-uctomb.c: New file.
37721
37722         Tests for module 'unistr/u16-uctomb'.
37723         * modules/unistr/u16-uctomb-tests: New file.
37724         * tests/unistr/test-u16-uctomb.c: New file.
37725
37726         Tests for module 'unistr/u8-uctomb'.
37727         * modules/unistr/u8-uctomb-tests: New file.
37728         * tests/unistr/test-u8-uctomb.c: New file.
37729
37730         Tests for module 'unistr/u32-mbtoucr'.
37731         * modules/unistr/u32-mbtoucr-tests: New file.
37732         * tests/unistr/test-u32-mbtoucr.c: New file.
37733
37734         Tests for module 'unistr/u16-mbtoucr'.
37735         * modules/unistr/u16-mbtoucr-tests: New file.
37736         * tests/unistr/test-u16-mbtoucr.c: New file.
37737
37738         Tests for module 'unistr/u8-mbtoucr'.
37739         * modules/unistr/u8-mbtoucr-tests: New file.
37740         * tests/unistr/test-u8-mbtoucr.c: New file.
37741
37742         Tests for module 'unistr/u32-mbtouc'.
37743         * modules/unistr/u32-mbtouc-tests: New file.
37744         * tests/unistr/test-u32-mbtouc.c: New file.
37745
37746         Tests for module 'unistr/u16-mbtouc'.
37747         * modules/unistr/u16-mbtouc-tests: New file.
37748         * tests/unistr/test-u16-mbtouc.c: New file.
37749
37750         Tests for module 'unistr/u8-mbtouc'.
37751         * modules/unistr/u8-mbtouc-tests: New file.
37752         * tests/unistr/test-u8-mbtouc.c: New file.
37753
37754         Tests for module 'unistr/u32-mbtouc-unsafe'.
37755         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37756         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37757         * tests/unistr/test-u32-mbtouc.h: New file.
37758
37759         Tests for module 'unistr/u16-mbtouc-unsafe'.
37760         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37761         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37762         * tests/unistr/test-u16-mbtouc.h: New file.
37763
37764         Tests for module 'unistr/u8-mbtouc-unsafe'.
37765         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37766         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37767         * tests/unistr/test-u8-mbtouc.h: New file.
37768
37769         Tests for module 'unistr/u32-mblen'.
37770         * modules/unistr/u32-mblen-tests: New file.
37771         * tests/unistr/test-u32-mblen.c: New file.
37772
37773         Tests for module 'unistr/u16-mblen'.
37774         * modules/unistr/u16-mblen-tests: New file.
37775         * tests/unistr/test-u16-mblen.c: New file.
37776
37777         Tests for module 'unistr/u8-mblen'.
37778         * modules/unistr/u8-mblen-tests: New file.
37779         * tests/unistr/test-u8-mblen.c: New file.
37780
37781         Tests for module 'unistr/u32-to-u16'.
37782         * modules/unistr/u32-to-u16-tests: New file.
37783         * tests/unistr/test-u32-to-u16.c: New file.
37784
37785         Tests for module 'unistr/u32-to-u8'.
37786         * modules/unistr/u32-to-u8-tests: New file.
37787         * tests/unistr/test-u32-to-u8.c: New file.
37788
37789         Tests for module 'unistr/u16-to-u32'.
37790         * modules/unistr/u16-to-u32-tests: New file.
37791         * tests/unistr/test-u16-to-u32.c: New file.
37792
37793         Tests for module 'unistr/u16-to-u8'.
37794         * modules/unistr/u16-to-u8-tests: New file.
37795         * tests/unistr/test-u16-to-u8.c: New file.
37796
37797         Tests for module 'unistr/u8-to-u32'.
37798         * modules/unistr/u8-to-u32-tests: New file.
37799         * tests/unistr/test-u8-to-u32.c: New file.
37800
37801         Tests for module 'unistr/u8-to-u16'.
37802         * modules/unistr/u8-to-u16-tests: New file.
37803         * tests/unistr/test-u8-to-u16.c: New file.
37804
37805         Tests for module 'unistr/u32-check'.
37806         * modules/unistr/u32-check-tests: New file.
37807         * tests/unistr/test-u32-check.c: New file.
37808
37809         Tests for module 'unistr/u16-check'.
37810         * modules/unistr/u16-check-tests: New file.
37811         * tests/unistr/test-u16-check.c: New file.
37812
37813         Tests for module 'unistr/u8-check'.
37814         * modules/unistr/u8-check-tests: New file.
37815         * tests/unistr/test-u8-check.c: New file.
37816
37817         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37818         (category_equals): New function.
37819         (main): Add more tests.
37820         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37821
37822         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37823
37824 2010-01-10  Bruno Haible  <bruno@clisp.org>
37825
37826         unistr/u*-strcoll: Try harder to distinguish different strings.
37827         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37828         compare s1 and s2 to see if they are different.
37829
37830 2010-01-10  Bruno Haible  <bruno@clisp.org>
37831
37832         unistr/u*-stpncpy: Fix the return value.
37833         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37834         description of the return value consistent with stpncpy in glibc.
37835         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37836         written non-NUL unit.
37837
37838 2010-01-10  Bruno Haible  <bruno@clisp.org>
37839
37840         unistr/u*-next: Add missing dependencies.
37841         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37842         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37843         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37844
37845 2010-01-10  Bruno Haible  <bruno@clisp.org>
37846
37847         unistr/u8-mbsnlen: Fix return value for incomplete character.
37848         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37849         u8_mblen.
37850         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37851         Remove unistr/u8-mblen.
37852         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37853         u16_mblen.
37854         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37855         Remove unistr/u16-mblen.
37856
37857 2010-01-10  Bruno Haible  <bruno@clisp.org>
37858
37859         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37860         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37861         Reported by Brian Gough <bjg@gnu.org> and
37862         Chris Clayton <chris2553@googlemail.com> via
37863         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37864
37865 2010-01-09  Bruno Haible  <bruno@clisp.org>
37866
37867         unistr/u16-to-u32: Reject invalid input.
37868         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37869         u16_mbtouc.
37870         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37871         Remove unistr/u16-mbtouc.
37872
37873         unistr/u16-to-u8: Reject invalid input.
37874         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37875         u16_mbtouc.
37876         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37877         Remove unistr/u16-mbtouc.
37878
37879         unistr/u8-to-u32: Reject invalid input.
37880         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37881         u8_mbtouc.
37882         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37883         Remove unistr/u8-mbtouc.
37884
37885         unistr/u8-to-u16: Reject invalid input.
37886         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37887         u8_mbtouc.
37888         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37889         Remove unistr/u8-mbtouc.
37890
37891 2010-01-09  Bruno Haible  <bruno@clisp.org>
37892
37893         Tests for module 'getlogin'.
37894         * modules/getlogin-tests: New file.
37895         * tests/test-getlogin.c: New file.
37896
37897         New module 'getlogin'.
37898         * lib/unistd.in.h (getlogin): New declaration.
37899         * lib/getlogin.c: New file.
37900         * m4/getlogin.m4: New file.
37901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37902         HAVE_GETLOGIN.
37903         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37904         HAVE_GETLOGIN.
37905         * modules/getlogin: New file.
37906         * doc/posix-functions/getlogin.texi: Mention the new module.
37907         Reported by John W. Eaton <jwe@gnu.org>.
37908
37909 2010-01-09  Bruno Haible  <bruno@clisp.org>
37910
37911         getlogin_r: Support for native Windows.
37912         * lib/getlogin_r.c: Include <windows.h>
37913         (getlogin_r): Implement for native Windows.
37914         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37915         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37916         via John W. Eaton <jwe@gnu.org>.
37917
37918 2010-01-09  Bruno Haible  <bruno@clisp.org>
37919
37920         getlogin_r: Small fixes.
37921         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37922         succeeds.
37923         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37924         before testing whether getlogin_r is declared. No need to set
37925         HAVE_DECL_GETLOGIN_R to 1.
37926         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37927
37928 2010-01-09  Bruno Haible  <bruno@clisp.org>
37929
37930         * lib/unistd.in.h (getlogin_r): Add comment.
37931
37932 2010-01-09  Bruno Haible  <bruno@clisp.org>
37933
37934         Tests for module 'getlogin_r'.
37935         * modules/getlogin_r-tests: New file.
37936         * tests/test-getlogin_r.c: New file.
37937
37938 2010-01-09  Jim Meyering  <meyering@redhat.com>
37939
37940         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37941         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37942         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37943
37944 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37945
37946         * lib/dup2.c (rpl_dup2): Improve comment.
37947
37948 2010-01-08  Eric Blake  <ebb9@byu.net>
37949
37950         maint.mk: allow packages to add makefile @@ exceptions
37951         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37952         (sc_makefile_check): Rename...
37953         (sc_makefile_at_at_check): ...to this, and use hook.
37954
37955         dup2: work around mingw bug
37956         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37957         Reported by Simon Josefsson.
37958
37959 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37960
37961         glob: Fix C++ compilation.
37962         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37963         C++.
37964
37965 2010-01-07  Bruno Haible  <bruno@clisp.org>
37966
37967         Fix indentation of wctype.in.h, broken since 2007-01-06.
37968         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37969
37970 2010-01-07  Bruno Haible  <bruno@clisp.org>
37971
37972         mbslen: Avoid collision with system function.
37973         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37974         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37975         * m4/mbslen.m4: New file.
37976         * modules/mbslen (Files): Add it.
37977         (configure.ac): Invoke gl_MBSLEN.
37978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37979         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37980         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37981         via Ian Beckwith <ianb@erislabs.net>.
37982
37983 2010-01-07  Bruno Haible  <bruno@clisp.org>
37984
37985         dirent: Document the last fix.
37986         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37987
37988 2010-01-07  Bruno Haible  <bruno@clisp.org>
37989
37990         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37991         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37992         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37993         va_list are defined.
37994         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37995         Reported by Eric Blake.
37996
37997 2010-01-07  Bruno Haible  <bruno@clisp.org>
37998
37999         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38000         * modules/xlist (Depends-on): Add 'list',
38001         * modules/xoset (Depends-on): Add 'oset'.
38002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38003
38004 2010-01-07  Bruno Haible  <bruno@clisp.org>
38005
38006         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38007         * doc/posix-functions/strncasecmp.texi: Likewise.
38008
38009 2010-01-07  Bruno Haible  <bruno@clisp.org>
38010
38011         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38012
38013 2010-01-07  John W. Eaton  <jwe@octave.org>
38014
38015         wctype: allow C++ use
38016         * lib/wctype.in.h: Add extern "C" block for C++.
38017
38018 2010-01-06  Eric Blake  <ebb9@byu.net>
38019
38020         maint.mk: detect incorrect GFDL usage
38021         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38022
38023 2010-01-06  Jim Meyering  <meyering@redhat.com>
38024         and Eric Blake  <ebb9@byu.net>
38025
38026         maint.mk: ignore multi-line copyright in NEWS
38027         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38028
38029 2010-01-06  Eric Blake  <ebb9@byu.net>
38030
38031         select: add missing dependency
38032         * modules/select-tests (Depends-on): Move sockets dependency...
38033         * modules/select (Depends-on): ...here.
38034         Reported by Ian Beckwith.
38035
38036         doc: regenerate INSTALL
38037         * doc/INSTALL: Reflect recent autoconf update.
38038         * doc/INSTALL.ISO: Likewise.
38039         * doc/INSTALL.UTF-8: Likewise.
38040
38041         pread: fix compilation on glibc
38042         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38043         Reported by Ralf Wildenhues.
38044
38045         dirent: fix test failure
38046         * lib/dirent.in.h (includes): Guarantee ino_t.
38047         Reported by Ralf Wildenhues.
38048
38049 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38050
38051         linkat, renameat: avoid bad free
38052         * lib/at-func2.c (at_func2): Fix typo.
38053         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38054
38055 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38056
38057         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38058         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38059         to avoid failure of symlink test later.
38060
38061 2010-01-06  Eric Blake  <ebb9@byu.net>
38062
38063         stdio, unistd: guarantee ssize_t
38064         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38065         2008 are exposed when needed.
38066         * lib/stdio.in.h (includes): Likewise.
38067         Reported by Ralf Wildenhues.
38068
38069 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38070
38071         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38072         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38073         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38074
38075 2010-01-06  Jim Meyering  <meyering@redhat.com>
38076
38077         readtokens: this module *does* require xalloc.h
38078         It uses only functions that were omitted by the old syntax-check rule.
38079         * lib/readtokens.c: Include "xalloc.h" once again.
38080         * modules/readtokens (Depends-on): Add xalloc.
38081         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38082
38083 2010-01-05  Eric Blake  <ebb9@byu.net>
38084
38085         maint: support 'make announcement' from a VPATH build
38086         * top/maint.mk (announcement): Look for correct NEWS file.
38087
38088 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38089
38090         utimens (fdutimens): ignore a negative FD, per contract
38091         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38092         when we have a valid file descriptor.  Otherwise, using a brand
38093         new glibc (with just-patched futimens that now fails with EBADF)
38094         would cause this function to fail with ENOSYS.
38095         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38096         See also http://bugzilla.redhat.com/552320.
38097
38098 2010-01-05  Eric Blake  <ebb9@byu.net>
38099
38100         strcase: document what it provides
38101         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38102         gnulib module.
38103         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38104         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38105
38106 2010-01-05  Jim Meyering  <meyering@redhat.com>
38107
38108         maint: remove useless inclusions of "xalloc.h"
38109         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38110         * lib/readtokens.c: Likewise.
38111         * lib/same.c: Likewise.
38112         * modules/getloadavg (Depends-on): Remove xalloc.
38113         * modules/readtokens: Likewise.
38114         * modules/same: Likewise.
38115
38116         maint.mk: include 4 more function names in alloca.h-checking regexp
38117         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38118         regexp.  Before, we would give a false-positive (saying alloca.h
38119         is included unnecessarily) when the only uses involved omitted symbols.
38120
38121         xalloc.h: use consistent formatting
38122         * lib/xalloc.h: Move declarations to start in the first column.
38123
38124 2010-01-05  Eric Blake  <ebb9@byu.net>
38125
38126         mkdir: avoid xalloc
38127         * lib/mkdir.c (includes): Drop unused header.
38128         Reported by John W. Eaton.
38129
38130 2010-01-04  Jim Meyering  <meyering@redhat.com>
38131
38132         nl_langinfo: avoid configure-time syntax error
38133         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38134         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38135         the empty string.  Don't let that provoke a shell syntax error.
38136
38137         regcomp, regexec, fnmatch: avoid array bounds read error
38138         * lib/regcomp.c (build_equiv_class): From glibc:
38139         Use only the low 24 bits of a findidx return value as an index
38140         into the weights array.  Patch by Ulrich Drepper:
38141         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38142         * lib/regexec.c (check_node_accept_bytes): Likewise.
38143         * lib/fnmatch_loop.c (FCT): Likewise.
38144
38145         regcomp: skip collseq lookup when there are no rules
38146         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38147         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38148
38149         regcomp: recognize ill-formed { } expressions
38150         * lib/regcomp.c (parse_dup_op): From glibc:
38151         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38152
38153         regcomp: fix typo in comment
38154         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38155         s/satisfy/satisfies/.
38156
38157         regcomp: sync from glibc: remove dead store
38158         * lib/regcomp.c (duplicate_node_closure): Remove useless
38159         search_duplicated_node call and dead store.
38160
38161         regcomp: sync from glibc; always use nl_langinfo
38162         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38163         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38164         * modules/regex (Depends-on): Add nl_langinfo.
38165
38166 2010-01-04  Eric Blake  <ebb9@byu.net>
38167
38168         fdopendir: fix configure test
38169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38170
38171 2010-01-01  Bruno Haible  <bruno@clisp.org>
38172
38173         wchar: Remove unused configure check.
38174         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38175
38176 2010-01-01  Eric Blake  <ebb9@byu.net>
38177
38178         headers: make check of system header explicit
38179         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38180         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38181         ourselves.
38182         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38184         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38186         internals.
38187         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38188         missing.
38189         Suggested by Bruno Haible.
38190
38191 2010-01-01  Jim Meyering  <meyering@redhat.com>
38192
38193         ChangeLog: tweak to eliminate unnecessary copyright line
38194         * ChangeLog: Remove a copyright line that was mistakenly updated
38195         by today's update-copyright run.  Reported by Eric Blake.
38196
38197         test-update-copyright: don't let envvar setting cause test failure
38198         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38199
38200 2010-01-01  Bruno Haible  <bruno@clisp.org>
38201
38202         localename: Avoid gcc warning.
38203         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38204         function if it is not used.
38205
38206 2010-01-01  Jim Meyering  <meyering@redhat.com>
38207
38208         update nearly all FSF copyright year lists to include 2010
38209         Use the same procedure as for 2009, outlined in
38210         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38211
38212         version-etc: set COPYRIGHT_YEAR to 2010
38213         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38214
38215 2009-12-31  Eric Blake  <ebb9@byu.net>
38216
38217         doc: correct availability of cygwin 1.5.x getopt
38218         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38219         variables.
38220         * doc/posix-functions/opterr.texi (opterr): Likewise.
38221         * doc/posix-functions/optind.texi (optind): Likewise.
38222         * doc/posix-functions/optopt.texi (optopt): Likewise.
38223         * doc/posix-functions/tzname.texi (tzname): Likewise.
38224
38225         openat: update maintainer
38226         * modules/openat (Maintainer): Add myself.
38227
38228         utimens: avoid shadowing warning
38229         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38230         buffers into one, to avoid shadowing, as well as avoiding a
38231         redundant stat.
38232         Reported by Jim Meyering.
38233
38234         test-dup2: avoid compiler warning
38235         * tests/test-dup2.c (is_inheritable): Only define if used.
38236
38237 2010-01-01  Bruno Haible  <bruno@clisp.org>
38238
38239         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38240         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38241         defined, use wctomb instead of wcrtomb.
38242
38243 2010-01-01  Bruno Haible  <bruno@clisp.org>
38244
38245         iconv: Reject native Solaris iconv.
38246         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38247         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38248
38249 2009-12-31  Bruno Haible  <bruno@clisp.org>
38250
38251         * tests/test-signal.c (main): Remove test of 'SIG'.
38252
38253 2009-12-31  Bruno Haible  <bruno@clisp.org>
38254
38255         spawn: Fix incomplete fix.
38256         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38257         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38258         warnings for GNULIB_POSIXCHECK again.
38259         Reported by Eric Blake.
38260
38261 2009-12-31  Bruno Haible  <bruno@clisp.org>
38262
38263         Avoid namespace pollution on glibc systems.
38264         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38265         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38266         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38267         glibc systems.
38268
38269 2009-12-31  Bruno Haible  <bruno@clisp.org>
38270
38271         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38272         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38273         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38274         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38275         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38276         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38277         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38278
38279 2009-12-31  Bruno Haible  <bruno@clisp.org>
38280
38281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38282         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38283         afterwards.
38284
38285 2009-12-31  Bruno Haible  <bruno@clisp.org>
38286
38287         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38288         SYS_UTSNAME_H.
38289
38290 2009-12-31  Bruno Haible  <bruno@clisp.org>
38291
38292         spawn: Fix misapplied patch.
38293         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38294         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38295         warnings for GNULIB_POSIXCHECK.
38296
38297 2009-12-31  Bruno Haible  <bruno@clisp.org>
38298
38299         times: Update after sys_times changed.
38300         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38301         * modules/times (Files): Add it.
38302         (configure.ac): Invoke gl_FUNC_TIMES.
38303
38304 2009-12-31  Bruno Haible  <bruno@clisp.org>
38305
38306         Use AC_C_INLINE where necessary.
38307         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38308         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38310         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38311         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38312         * m4/mbiter.m4 (gl_MBITER): Likewise.
38313         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38314         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38316         * modules/u64 (configure.ac): Likewise.
38317
38318 2009-12-31  Bruno Haible  <bruno@clisp.org>
38319
38320         Use AC_C_INLINE instead of module 'inline' where possible.
38321         * modules/inline (Description): Clarify purpose.
38322         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38323         * modules/count-one-bits (Depends-on): Remove inline.
38324         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38325         * modules/openat (Depends-on): Remove inline.
38326         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38327         instead of depending on module 'inline'.
38328         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38329         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38330         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38331         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38332         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38333         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38334         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38335         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38336         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38337         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38338         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38339         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38340         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38341         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38342         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38343         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38344         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38345         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38346         Likewise.
38347         * modules/unictype/property-ascii-hex-digit (Depends-on,
38348         configure.ac): Likewise.
38349         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38350         configure.ac): Likewise.
38351         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38352         configure.ac): Likewise.
38353         * modules/unictype/property-bidi-block-separator (Depends-on,
38354         configure.ac): Likewise.
38355         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38356         configure.ac): Likewise.
38357         * modules/unictype/property-bidi-common-separator (Depends-on,
38358         configure.ac): Likewise.
38359         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38360         Likewise.
38361         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38362         configure.ac): Likewise.
38363         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38364         configure.ac): Likewise.
38365         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38366         configure.ac): Likewise.
38367         * modules/unictype/property-bidi-european-digit (Depends-on,
38368         configure.ac): Likewise.
38369         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38370         configure.ac): Likewise.
38371         * modules/unictype/property-bidi-left-to-right (Depends-on,
38372         configure.ac): Likewise.
38373         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38374         configure.ac): Likewise.
38375         * modules/unictype/property-bidi-other-neutral (Depends-on,
38376         configure.ac): Likewise.
38377         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38378         Likewise.
38379         * modules/unictype/property-bidi-segment-separator (Depends-on,
38380         configure.ac): Likewise.
38381         * modules/unictype/property-bidi-whitespace (Depends-on,
38382         configure.ac): Likewise.
38383         * modules/unictype/property-combining (Depends-on, configure.ac):
38384         Likewise.
38385         * modules/unictype/property-composite (Depends-on, configure.ac):
38386         Likewise.
38387         * modules/unictype/property-currency-symbol (Depends-on,
38388         configure.ac): Likewise.
38389         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38390         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38391         Likewise.
38392         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38393         configure.ac): Likewise.
38394         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38395         Likewise.
38396         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38397         Likewise.
38398         * modules/unictype/property-extender (Depends-on, configure.ac):
38399         Likewise.
38400         * modules/unictype/property-format-control (Depends-on, configure.ac):
38401         Likewise.
38402         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38403         Likewise.
38404         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38405         Likewise.
38406         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38407         Likewise.
38408         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38409         Likewise.
38410         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38411         Likewise.
38412         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38413         Likewise.
38414         * modules/unictype/property-id-start (Depends-on, configure.ac):
38415         Likewise.
38416         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38417         Likewise.
38418         * modules/unictype/property-ids-binary-operator (Depends-on,
38419         configure.ac): Likewise.
38420         * modules/unictype/property-ids-trinary-operator (Depends-on,
38421         configure.ac): Likewise.
38422         * modules/unictype/property-ignorable-control (Depends-on,
38423         configure.ac): Likewise.
38424         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38425         Likewise.
38426         * modules/unictype/property-join-control (Depends-on, configure.ac):
38427         Likewise.
38428         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38429         Likewise.
38430         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38431         Likewise.
38432         * modules/unictype/property-logical-order-exception (Depends-on,
38433         configure.ac): Likewise.
38434         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38435         Likewise.
38436         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38437         * modules/unictype/property-non-break (Depends-on, configure.ac):
38438         Likewise.
38439         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38440         Likewise.
38441         * modules/unictype/property-numeric (Depends-on, configure.ac):
38442         Likewise.
38443         * modules/unictype/property-other-alphabetic (Depends-on,
38444         configure.ac): Likewise.
38445         * modules/unictype/property-other-default-ignorable-code-point
38446         (Depends-on, configure.ac): Likewise.
38447         * modules/unictype/property-other-grapheme-extend (Depends-on,
38448         configure.ac): Likewise.
38449         * modules/unictype/property-other-id-continue (Depends-on,
38450         configure.ac): Likewise.
38451         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38452         Likewise.
38453         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38454         Likewise.
38455         * modules/unictype/property-other-math (Depends-on, configure.ac):
38456         Likewise.
38457         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38458         Likewise.
38459         * modules/unictype/property-paired-punctuation (Depends-on,
38460         configure.ac): Likewise.
38461         * modules/unictype/property-paragraph-separator (Depends-on,
38462         configure.ac): Likewise.
38463         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38464         Likewise.
38465         * modules/unictype/property-pattern-white-space (Depends-on,
38466         configure.ac): Likewise.
38467         * modules/unictype/property-private-use (Depends-on, configure.ac):
38468         Likewise.
38469         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38470         Likewise.
38471         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38472         Likewise.
38473         * modules/unictype/property-radical (Depends-on, configure.ac):
38474         Likewise.
38475         * modules/unictype/property-sentence-terminal (Depends-on,
38476         configure.ac): Likewise.
38477         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38478         Likewise.
38479         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38480         * modules/unictype/property-terminal-punctuation (Depends-on,
38481         configure.ac): Likewise.
38482         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38483         Likewise.
38484         * modules/unictype/property-unassigned-code-value (Depends-on,
38485         configure.ac): Likewise.
38486         * modules/unictype/property-unified-ideograph (Depends-on,
38487         configure.ac): Likewise.
38488         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38489         Likewise.
38490         * modules/unictype/property-variation-selector (Depends-on,
38491         configure.ac): Likewise.
38492         * modules/unictype/property-white-space (Depends-on, configure.ac):
38493         Likewise.
38494         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38495         Likewise.
38496         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38497         Likewise.
38498         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38499         Likewise.
38500         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38501         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38502         Likewise.
38503
38504 2009-12-31  Bruno Haible  <bruno@clisp.org>
38505
38506         Remove unnecessary AC_C_INLINE invocation.
38507         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38508         since 2009-08-21.
38509
38510 2009-12-31  Jim Meyering  <meyering@redhat.com>
38511
38512         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38513         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38514         With this change, we can all remove the gpg_key_ID = ... definition
38515         from our respective cfg.mk files.
38516
38517         maint.mk: create announcement template in ~/, not in /tmp
38518         * top/maint.mk (emit_upload_commands): Adjust.
38519         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38520         Remove temporary file, .ci-msg.
38521
38522 2009-12-31  Eric Blake  <ebb9@byu.net>
38523
38524         link-warning: always build headers with link warnings
38525         * modules/arpa_inet (Makefile.am): Always build replacement
38526         header.
38527         * modules/ctype (Makefile.am): Likewise.
38528         * modules/dirent (Makefile.am): Likewise.
38529         * modules/inttypes (Makefile.am): Likewise.
38530         * modules/langinfo (Makefile.am): Likewise.
38531         * modules/locale (Makefile.am): Likewise.
38532         * modules/spawn (Makefile.am): Likewise.
38533         * modules/sys_file (Makefile.am): Likewise.
38534         * modules/sys_ioctl (Makefile.am): Likewise.
38535         * modules/sys_select (Makefile.am): Likewise.
38536         * modules/sys_socket (Makefile.am): Likewise.
38537         * modules/sys_times (Makefile.am): Likewise.
38538         * modules/sys_utsname (Makefile.am): Likewise.
38539         * modules/sys_wait (Makefile.am): Likewise.
38540         * modules/wchar (Makefile.am): Likewise.
38541         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38542         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38543         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38544         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38545         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38546         Likewise.
38547         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38548         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38549         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38550         Likewise.
38551         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38552         Likewise.
38553         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38555         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38557         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38559         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38560         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38561         (gl_WCHAR_H_DEFAULTS): Likewise.
38562
38563 2009-12-31  Eric Blake  <ebb9@byu.net>
38564
38565         signal, spawn: use link warnings
38566         * lib/signal.in.h (sigset_t): Make unconditional.
38567         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38568         (sigpending, sigprocmask, sigaction): Add link warnings.
38569         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38570         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38571         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38572         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38573         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38574         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38575         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38576         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38577         (posix_spawn_file_actions_destroy)
38578         (posix_spawn_file_actions_addopen)
38579         (posix_spawn_file_actions_addclose)
38580         (posix_spawn_file_actions_adddup2): Likewise.
38581         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38582         * tests/test-signal.c (main): Enhance test.
38583
38584         spawn: improve wrapper support
38585         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38586         (gl_SPAWN_H_DEFAULTS): New defaults.
38587         * modules/spawn (Makefile.am): Substitute them.
38588         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38589         Only declare if missing or broken.
38590
38591         sys_times, sys_utsname: use include_next
38592         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38593         header.
38594         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38596         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38597         * modules/sys_times (Depends-on): Add include_next.
38598         (Makefile.am): Substitute additional values.
38599         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38600         * lib/sys_times.in.h (includes): Include native header, if
38601         available.
38602         * lib/sys_utsname.in.h (includes): Likewise.
38603         * tests/test-sys_times.c (main): Enhance test.
38604
38605         fdutimensat: revert prior patch
38606         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38607         utimens.h.
38608         Reported by Bruno Haible.
38609
38610 2009-12-30  Eric Blake  <ebb9@byu.net>
38611
38612         sys_wait: drop link-warning dependency
38613         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38614         link-warning efforts.
38615         * lib/sys_wait.in.h: Likewise.
38616
38617         fdutimensat: remove bogus dependency
38618         * modules/fdutimensat (Depends-on): Drop inline.
38619
38620         unistd: fix typo
38621         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38622
38623 2009-12-30  Bruno Haible  <bruno@clisp.org>
38624
38625         Fix compilation error with Solaris cc.
38626         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38627         * lib/unicase/u16-is-invariant.c: Likewise.
38628         * lib/unicase/u32-is-invariant.c: Likewise.
38629         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38630
38631 2009-12-30  Bruno Haible  <bruno@clisp.org>
38632
38633         Fix test crash.
38634         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38635         locales.
38636         Reported by Simon Josefsson <simon@josefsson.org>.
38637
38638 2009-12-30  Bruno Haible  <bruno@clisp.org>
38639
38640         Fix compilation error on most platforms.
38641         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38642         Reported by Simon Josefsson <simon@josefsson.org>
38643         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38644
38645 2009-12-30  Eric Blake  <ebb9@byu.net>
38646
38647         futimens, utimensat: work around ntfs-3g bug
38648         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38649         a ctime bug is present, and expand workaround to cover ntfs-3g.
38650         * lib/utimens.c (fdutimens, lutimens): Likewise.
38651         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38652         (validate_timespec): Adjust return value.
38653         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38654         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38655         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38656
38657 2009-12-29  Eric Blake  <ebb9@byu.net>
38658
38659         link-warning: make usage consistent
38660         * modules/ctype (Depends-on): Add link-warning.
38661         (Makefile.am): Update rules accordingly.
38662         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38663         * modules/locale (Depends-on, Makefile.am): Likewise.
38664         * modules/sys_file (Makefile.am): Likewise.
38665         * modules/getopt-posix (Makefile.am): Delete unused link warning
38666         efforts.
38667         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38668         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38669         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38670         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38671
38672         stdio: remove unused variables
38673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38675         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38676
38677         tests: test more substitute headers
38678         * modules/ctype-tests: New file.
38679         * modules/dirent-tests: Likewise.
38680         * modules/spawn-tests: Likewise.
38681         * modules/sys_file-tests: Likewise.
38682         * modules/sys_ioctl-tests: Likewise.
38683         * modules/sys_wait-tests: Likewise.
38684         * tests/test-ctype.c: Likewise.
38685         * tests/test-dirent.c: Likewise.
38686         * tests/test-spawn.c: Likewise.
38687         * tests/test-sys_file.c: Likewise.
38688         * tests/test-sys_ioctl.c: Likewise.
38689         * tests/test-sys_wait.c: Likewise.
38690         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38691         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38692         whether or not flock is in use.
38693
38694         tests: remove License section from module
38695         * modules/arpa_inet-tests: Remove unneeded section.
38696         * modules/byteswap-tests: Likewise.
38697         * modules/ceilf-tests: Likewise.
38698         * modules/ceill-tests: Likewise.
38699         * modules/crypto/des-tests: Likewise.
38700         * modules/crypto/gc-arcfour-tests: Likewise.
38701         * modules/crypto/gc-arctwo-tests: Likewise.
38702         * modules/crypto/gc-des-tests: Likewise.
38703         * modules/crypto/gc-hmac-md5-tests: Likewise.
38704         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38705         * modules/crypto/gc-md2-tests: Likewise.
38706         * modules/crypto/gc-md4-tests: Likewise.
38707         * modules/crypto/gc-md5-tests: Likewise.
38708         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38709         * modules/crypto/gc-rijndael-tests: Likewise.
38710         * modules/crypto/gc-sha1-tests: Likewise.
38711         * modules/crypto/gc-tests: Likewise.
38712         * modules/crypto/md2-tests: Likewise.
38713         * modules/crypto/md4-tests: Likewise.
38714         * modules/fcntl-h-tests: Likewise.
38715         * modules/floorf-tests: Likewise.
38716         * modules/floorl-tests: Likewise.
38717         * modules/frexp-nolibm-tests: Likewise.
38718         * modules/frexp-tests: Likewise.
38719         * modules/frexpl-nolibm-tests: Likewise.
38720         * modules/frexpl-tests: Likewise.
38721         * modules/getaddrinfo-tests: Likewise.
38722         * modules/inttypes-tests: Likewise.
38723         * modules/isfinite-tests: Likewise.
38724         * modules/isinf-tests: Likewise.
38725         * modules/ldexpl-tests: Likewise.
38726         * modules/locale-tests: Likewise.
38727         * modules/math-tests: Likewise.
38728         * modules/netdb-tests: Likewise.
38729         * modules/netinet_in-tests: Likewise.
38730         * modules/printf-frexp-tests: Likewise.
38731         * modules/printf-frexpl-tests: Likewise.
38732         * modules/priv-set-tests: Likewise.
38733         * modules/random_r-tests: Likewise.
38734         * modules/round-tests: Likewise.
38735         * modules/roundf-tests: Likewise.
38736         * modules/roundl-tests: Likewise.
38737         * modules/search-tests: Likewise.
38738         * modules/select-tests: Likewise.
38739         * modules/signal-tests: Likewise.
38740         * modules/stdbool-tests: Likewise.
38741         * modules/stddef-tests: Likewise.
38742         * modules/stdint-tests: Likewise.
38743         * modules/stdio-tests: Likewise.
38744         * modules/stdlib-tests: Likewise.
38745         * modules/string-tests: Likewise.
38746         * modules/strings-tests: Likewise.
38747         * modules/sys_select-tests: Likewise.
38748         * modules/sys_socket-tests: Likewise.
38749         * modules/sys_stat-tests: Likewise.
38750         * modules/sys_time-tests: Likewise.
38751         * modules/sys_utsname-tests: Likewise.
38752         * modules/sysexits-tests: Likewise.
38753         * modules/time-tests: Likewise.
38754         * modules/trunc-tests: Likewise.
38755         * modules/truncf-tests: Likewise.
38756         * modules/truncl-tests: Likewise.
38757         * modules/tsearch-tests: Likewise.
38758         * modules/unistd-tests: Likewise.
38759         * modules/wchar-tests: Likewise.
38760         * modules/wctype-tests: Likewise.
38761
38762         tests: fix license on several tests
38763         * tests/test-des.c: Update to GPLv3+.
38764         * tests/test-flock.c: Likewise.
38765         * tests/test-fsync.c: Likewise.
38766         * tests/test-futimens.h: Likewise.
38767         * tests/test-gc-arcfour.c: Likewise.
38768         * tests/test-gc-arctwo.c: Likewise.
38769         * tests/test-gc-des.c: Likewise.
38770         * tests/test-gc-hmac-md5.c: Likewise.
38771         * tests/test-gc-hmac-sha1.c: Likewise.
38772         * tests/test-gc-md2.c: Likewise.
38773         * tests/test-gc-md4.c: Likewise.
38774         * tests/test-gc-md5.c: Likewise.
38775         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38776         * tests/test-gc-rijndael.c: Likewise.
38777         * tests/test-gc-sha1.c: Likewise.
38778         * tests/test-gc.c: Likewise.
38779         * tests/test-getcwd.c: Likewise.
38780         * tests/test-link.c: Likewise.
38781         * tests/test-link.h: Likewise.
38782         * tests/test-lutimens.h: Likewise.
38783         * tests/test-md2.c: Likewise.
38784         * tests/test-md4.c: Likewise.
38785         * tests/test-mkdir.h: Likewise.
38786         * tests/test-rename.c: Likewise.
38787         * tests/test-rename.h: Likewise.
38788         * tests/test-safe-alloc.c: Likewise.
38789         * tests/test-utimens-common.h: Likewise.
38790         * tests/test-utimens.h: Likewise.
38791
38792         maint: sync license texts
38793         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38794         * doc/gpl-3.0.texi: Revert copyright year update.
38795         * doc/lgpl-3.0.texi: Likewise.
38796
38797 2009-12-29  Jim Meyering  <meyering@redhat.com>
38798
38799         update nearly all FSF copyright year lists to include 2009
38800         The files named by the following are exempted:
38801             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38802               test -f "$dst" && { echo "$dst"; continue; }
38803               test -d "$dst" || continue
38804               echo "$dst"/$(basename "$src")
38805             done > exempt
38806             git ls-files tests/unictype >> exempt
38807         In the remaining files, convert to all-interval notation if
38808         - there is already at least one year interval like 2000-2003
38809         - the file is maintained by me
38810         - the file is in lib/uni*/, where that style already prevails
38811         Otherwise, use update-copyright's default.
38812
38813 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38814         and Eric Blake  <ebb9@byu.net>
38815
38816         tests: don't require debug system() to pass
38817         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38818         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38819         * tests/test-unlink.h (test_unlink_func): Likewise.
38820         * tests/test-fstatat.c (main): ...into callers.
38821         * tests/test-lstat.c (main): Likewise.
38822         * tests/test-rmdir.c (main): Likewise.
38823         * tests/test-unlink.c (main): Likewise.
38824         * tests/test-unlinkat.c (main): Likewise.
38825         * tests/test-areadlink-with-size.c (main): Don't require a
38826         debug-only system call to pass, aiding cross-testing to mingw.
38827         * tests/test-areadlink.c (main): Likewise.
38828         * tests/test-areadlinkat-with-size.c (main): Likewise.
38829         * tests/test-areadlinkat.c (main): Likewise.
38830         * tests/test-canonicalize-lgpl.c (main): Likewise.
38831         * tests/test-canonicalize.c (main): Likewise.
38832         * tests/test-chown.c (main): Likewise.
38833         * tests/test-fchownat.c (main): Likewise.
38834         * tests/test-lchown.c (main): Likewise.
38835         * tests/test-fdutimensat.c (main): Likewise.
38836         * tests/test-futimens.c (main): Likewise.
38837         * tests/test-link.c (main): Likewise.
38838         * tests/test-linkat.c (main): Likewise.
38839         * tests/test-mkdir.c (main): Likewise.
38840         * tests/test-mkdirat.c (main): Likewise.
38841         * tests/test-mkfifo.c (main): Likewise.
38842         * tests/test-mkfifoat.c (main): Likewise.
38843         * tests/test-mknod.c (main): Likewise.
38844         * tests/test-readlink.c (main): Likewise.
38845         * tests/test-remove.c (main): Likewise.
38846         * tests/test-rename.c (main): Likewise.
38847         * tests/test-renameat.c (main): Likewise.
38848         * tests/test-symlink.c (main): Likewise.
38849         * tests/test-symlinkat.c (main): Likewise.
38850         * tests/test-utimens.c (main): Likewise.
38851         * tests/test-utimensat.c (main): Likewise.
38852
38853 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38854
38855         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38856         on $(UNUSED_PARAMETER_H) to avoid build failure.
38857
38858 2009-12-28  Jim Meyering  <meyering@redhat.com>
38859
38860         update-copyright: you may specify a max. line length other than 72
38861         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38862
38863         maint: use consistent FSF copyright line syntax
38864         * lib/posixtm.c: Add missing comma in FSF copyright line.
38865         * lib/posixtm.h: Likewise.
38866         * lib/getugroups.c: Add missing ", Inc.".
38867
38868         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38869         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38870         FSF copyright line.  Remove trailing blanks.
38871
38872 2009-12-28  Eric Blake  <ebb9@byu.net>
38873
38874         test-dup2: reduce dependencies
38875         * modules/cloexec (Configure.ac): Set witness.
38876         * modules/dup2-tests (Depends-on): Drop cloexec.
38877         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38878         not present.
38879         Suggested by Bruno Haible.
38880
38881 2009-12-26  Bruno Haible  <bruno@clisp.org>
38882
38883         Remove an unneeded dependency.
38884         * modules/fseterr (Depends-on): Remove dup2.
38885
38886 2009-12-26  Eric Blake  <ebb9@byu.net>
38887
38888         tests: use macros.h in more places
38889         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38890         (ASSERT_STREAM): Provide default of stderr.
38891         * tests/test-dirent-safer.c: Include macros.h, using alternate
38892         stream for assertions.
38893         * tests/test-dup-safer.c: Likewise.
38894         * tests/test-freopen-safer.c: Likewise.
38895         * tests/test-getopt.c: Likewise.
38896         * tests/test-openat-safer.c: Likewise.
38897         * tests/test-pipe.c: Likewise.
38898         * tests/test-popen-safer.c: Likewise.
38899         * modules/dirent-safer-tests (Files): Include macros.h.
38900         * modules/unistd-safer-tests (Files): Likewise.
38901         * modules/freopen-safer-tests (Files): Likewise.
38902         * modules/getopt-posix-tests (Files): Likewise.
38903         * modules/openat-safer-tests (Files): Likewise.
38904         * modules/pipe-tests (Files): Likewise.
38905
38906 2009-12-26  Bruno Haible  <bruno@clisp.org>
38907
38908         javacomp: Portability fix.
38909         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38910         that it also works on Solaris.
38911
38912 2009-12-26  Bruno Haible  <bruno@clisp.org>
38913
38914         localename: Fix storage allocation of gl_locale_name_thread's result.
38915         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38916         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38917         all platforms that have 'uselocale'.
38918         (gl_locale_name_thread_unsafe): New function, extracted from
38919         gl_locale_name_thread.
38920         (gl_locale_name_thread): Call struniq on all platforms that have
38921         'uselocale'.
38922         * tests/test-localename.c (test_locale_name_thread): Check that the
38923         resulting strings are permanently allocated.
38924         * modules/localename-tests (Depends-on): Add strdup.
38925
38926 2009-12-26  Bruno Haible  <bruno@clisp.org>
38927
38928         * tests/test-localename.c (categories): Fill in the strings.
38929
38930 2009-12-26  Jim Meyering  <meyering@redhat.com>
38931
38932         isdir: complete the removal of m4/isdir.m4
38933         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38934
38935         isdir: clean up, since at least grep still uses it
38936         * lib/isdir.c: Include "isdir.h".
38937         (S_ISDIR): Remove now-unneeded definition.
38938         * modules/isdir (Files): Add lib/isdir.h.
38939         * lib/isdir.h: New file, with declaration.
38940         * m4/isdir.m4: Remove file -- unneeded.
38941
38942 2009-12-25  Bruno Haible  <bruno@clisp.org>
38943
38944         selinux-h: Make generated .h files standalone.
38945         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38946         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38947         * lib/se-selinux.in.h: Likewise.
38948         * modules/selinux-h (Depends-on): Add unused-parameter.
38949         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38950         selinux/selinux.h and selinux/context.h.
38951         Suggested by Eric Blake.
38952
38953 2009-12-25  Bruno Haible  <bruno@clisp.org>
38954
38955         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38956         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38957         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38958         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38959         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38960
38961 2009-12-24  Bruno Haible  <bruno@clisp.org>
38962
38963         openat: Fix warning.
38964         * lib/openat-proc.c: Include <unistd.h>.
38965
38966 2009-12-24  Bruno Haible  <bruno@clisp.org>
38967
38968         New module 'unused-parameter'.
38969         * build-aux/unused-parameter.h: New file, extracted from earlier
38970         gnulib-common.m4.
38971         * modules/unused-parameter: New file.
38972         * lib/unistr.h: Include unused-parameter.h.
38973         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38974         _GL_UNUSED.
38975         * modules/unistr/base (Depends-on): Add unused-parameter.
38976
38977 2009-12-24  Bruno Haible  <bruno@clisp.org>
38978
38979         Add missing dependencies to 'extensions' module.
38980         * m4/extensions.m4: Add comment.
38981         * modules/accept4 (Depends-on): Add extensions.
38982         * modules/dup3 (Depends-on): Likewise.
38983         * modules/fcntl (Depends-on): Likewise.
38984         * modules/futimens (Depends-on): Likewise.
38985         * modules/mknod (Depends-on): Likewise.
38986         * modules/pipe2 (Depends-on): Likewise.
38987         * modules/stat-time (Depends-on): Likewise.
38988         * modules/strcasestr-simple (Depends-on): Likewise.
38989         * modules/strsignal (Depends-on): Likewise.
38990         * modules/utimensat (Depends-on): Likewise.
38991         * modules/localcharset (Depends-on): Likewise. Needed because of
38992         gl_FCNTL_O_FLAGS.
38993         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38994         AC_TYPE_MBSTATE_T.
38995         * modules/wcsnrtombs (Depends-on): Likewise.
38996         * modules/wcsrtombs (Depends-on): Likewise.
38997
38998 2009-12-24  Bruno Haible  <bruno@clisp.org>
38999
39000         binary-io: Avoid gcc warning due to SET_BINARY.
39001         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39002         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39003
39004 2009-12-24  Bruno Haible  <bruno@clisp.org>
39005
39006         Avoid future namespace pollution on glibc systems.
39007         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39008         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39009         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39010         glibc systems.
39011
39012 2009-12-24  Bruno Haible  <bruno@clisp.org>
39013
39014         Refactor common macros used in tests.
39015         * tests/macros.h: New file.
39016         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39017         and/or <stdlib.h>, if appropriate.
39018         (ASSERT, SIZEOF): Remove macros.
39019         * tests/test-areadlink-with-size.c: Likewise.
39020         * tests/test-areadlinkat.c: Likewise.
39021         * tests/test-areadlinkat-with-size.c: Likewise.
39022         * tests/test-argmatch.c: Likewise.
39023         * tests/test-argv-iter.c: Likewise.
39024         * tests/test-array-mergesort.c: Likewise.
39025         * tests/test-array_list.c: Likewise.
39026         * tests/test-array_oset.c: Likewise.
39027         * tests/test-avltree_list.c: Likewise.
39028         * tests/test-avltree_oset.c: Likewise.
39029         * tests/test-avltreehash_list.c: Likewise.
39030         * tests/test-base64.c: Likewise.
39031         * tests/test-binary-io.c: Likewise.
39032         * tests/test-bitrotate.c: Likewise.
39033         * tests/test-btowc.c: Likewise.
39034         * tests/test-byteswap.c: Likewise.
39035         * tests/test-c-ctype.c: Likewise.
39036         * tests/test-c-stack.c: Likewise.
39037         * tests/test-c-strcasecmp.c: Likewise.
39038         * tests/test-c-strcasestr.c: Likewise.
39039         * tests/test-c-strncasecmp.c: Likewise.
39040         * tests/test-c-strstr.c: Likewise.
39041         * tests/test-canonicalize-lgpl.c: Likewise.
39042         * tests/test-canonicalize.c: Likewise.
39043         * tests/test-carray_list.c: Likewise.
39044         * tests/test-ceilf1.c: Likewise.
39045         * tests/test-ceilf2.c: Likewise.
39046         * tests/test-ceill.c: Likewise.
39047         * tests/test-chown.c: Likewise.
39048         * tests/test-cloexec.c: Likewise.
39049         * tests/test-copy-acl.c: Likewise.
39050         * tests/test-copy-file.c: Likewise.
39051         * tests/test-count-one-bits.c: Likewise.
39052         * tests/test-dprintf-posix.c: Likewise.
39053         * tests/test-dup2.c: Likewise.
39054         * tests/test-dup3.c: Likewise.
39055         * tests/test-duplocale.c: Likewise.
39056         * tests/test-fbufmode.c: Likewise.
39057         * tests/test-fchdir.c: Likewise.
39058         * tests/test-fchownat.c: Likewise.
39059         * tests/test-fcntl-safer.c: Likewise.
39060         * tests/test-fcntl.c: Likewise.
39061         * tests/test-fdopendir.c: Likewise.
39062         * tests/test-fdutimensat.c: Likewise.
39063         * tests/test-fflush2.c: Likewise.
39064         * tests/test-file-has-acl.c: Likewise.
39065         * tests/test-filevercmp.c: Likewise.
39066         * tests/test-flock.c: Likewise.
39067         * tests/test-floorf1.c: Likewise.
39068         * tests/test-floorf2.c: Likewise.
39069         * tests/test-floorl.c: Likewise.
39070         * tests/test-fnmatch.c: Likewise.
39071         * tests/test-fopen.h: Likewise.
39072         * tests/test-fpending.c: Likewise.
39073         * tests/test-fprintf-posix.c: Likewise.
39074         * tests/test-fpurge.c: Likewise.
39075         * tests/test-freadable.c: Likewise.
39076         * tests/test-freadahead.c: Likewise.
39077         * tests/test-freading.c: Likewise.
39078         * tests/test-freadptr.c: Likewise.
39079         * tests/test-freadptr2.c: Likewise.
39080         * tests/test-freadseek.c: Likewise.
39081         * tests/test-freopen.c: Likewise.
39082         * tests/test-frexp.c: Likewise.
39083         * tests/test-frexpl.c: Likewise.
39084         * tests/test-fseek.c: Likewise.
39085         * tests/test-fseeko.c: Likewise.
39086         * tests/test-fstatat.c: Likewise.
39087         * tests/test-fstrcmp.c: Likewise.
39088         * tests/test-fsync.c: Likewise.
39089         * tests/test-ftell.c: Likewise.
39090         * tests/test-ftello.c: Likewise.
39091         * tests/test-func.c: Likewise.
39092         * tests/test-futimens.c: Likewise.
39093         * tests/test-fwritable.c: Likewise.
39094         * tests/test-fwriting.c: Likewise.
39095         * tests/test-getcwd.c: Likewise.
39096         * tests/test-getdate.c: Likewise.
39097         * tests/test-getdelim.c: Likewise.
39098         * tests/test-getdtablesize.c: Likewise.
39099         * tests/test-getgroups.c: Likewise.
39100         * tests/test-getline.c: Likewise.
39101         * tests/test-getndelim2.c: Likewise.
39102         * tests/test-glob.c: Likewise.
39103         * tests/test-hash.c: Likewise.
39104         * tests/test-i-ring.c: Likewise.
39105         * tests/test-iconv-utf.c: Likewise.
39106         * tests/test-iconv.c: Likewise.
39107         * tests/test-idpriv-drop.c: Likewise.
39108         * tests/test-idpriv-droptemp.c: Likewise.
39109         * tests/test-inet_ntop.c: Likewise.
39110         * tests/test-inet_pton.c: Likewise.
39111         * tests/test-isblank.c: Likewise.
39112         * tests/test-isfinite.c: Likewise.
39113         * tests/test-isinf.c: Likewise.
39114         * tests/test-isnan.c: Likewise.
39115         * tests/test-isnand.h: Likewise.
39116         * tests/test-isnanf.h: Likewise.
39117         * tests/test-isnanl.h: Likewise.
39118         * tests/test-lchown.c: Likewise.
39119         * tests/test-ldexpl.c: Likewise.
39120         * tests/test-link.c: Likewise.
39121         * tests/test-linkat.c: Likewise.
39122         * tests/test-linked_list.c: Likewise.
39123         * tests/test-linkedhash_list.c: Likewise.
39124         * tests/test-localename.c: Likewise.
39125         * tests/test-lseek.c: Likewise.
39126         * tests/test-lstat.c: Likewise.
39127         * tests/test-mbmemcasecmp.c: Likewise.
39128         * tests/test-mbmemcasecoll.c: Likewise.
39129         * tests/test-mbrtowc.c: Likewise.
39130         * tests/test-mbscasecmp.c: Likewise.
39131         * tests/test-mbscasestr1.c: Likewise.
39132         * tests/test-mbscasestr2.c: Likewise.
39133         * tests/test-mbscasestr3.c: Likewise.
39134         * tests/test-mbscasestr4.c: Likewise.
39135         * tests/test-mbschr.c: Likewise.
39136         * tests/test-mbscspn.c: Likewise.
39137         * tests/test-mbsinit.c: Likewise.
39138         * tests/test-mbsncasecmp.c: Likewise.
39139         * tests/test-mbsnrtowcs.c: Likewise.
39140         * tests/test-mbspbrk.c: Likewise.
39141         * tests/test-mbspcasecmp.c: Likewise.
39142         * tests/test-mbsrchr.c: Likewise.
39143         * tests/test-mbsrtowcs.c: Likewise.
39144         * tests/test-mbsspn.c: Likewise.
39145         * tests/test-mbsstr1.c: Likewise.
39146         * tests/test-mbsstr2.c: Likewise.
39147         * tests/test-mbsstr3.c: Likewise.
39148         * tests/test-memchr.c: Likewise.
39149         * tests/test-memchr2.c: Likewise.
39150         * tests/test-memcmp.c: Likewise.
39151         * tests/test-memmem.c: Likewise.
39152         * tests/test-memrchr.c: Likewise.
39153         * tests/test-mkdir.c: Likewise.
39154         * tests/test-mkdirat.c: Likewise.
39155         * tests/test-mkfifo.c: Likewise.
39156         * tests/test-mkfifoat.c: Likewise.
39157         * tests/test-mknod.c: Likewise.
39158         * tests/test-nanosleep.c: Likewise.
39159         * tests/test-nl_langinfo.c: Likewise.
39160         * tests/test-obstack-printf.c: Likewise.
39161         * tests/test-open.c: Likewise.
39162         * tests/test-openat.c: Likewise.
39163         * tests/test-pipe-filter-gi1.c: Likewise.
39164         * tests/test-pipe-filter-gi2-main.c: Likewise.
39165         * tests/test-pipe-filter-ii1.c: Likewise.
39166         * tests/test-pipe-filter-ii2-main.c: Likewise.
39167         * tests/test-pipe2.c: Likewise.
39168         * tests/test-popen.h: Likewise.
39169         * tests/test-posixtm.c: Likewise.
39170         * tests/test-pread.c: Likewise.
39171         * tests/test-printf-frexp.c: Likewise.
39172         * tests/test-printf-frexpl.c: Likewise.
39173         * tests/test-printf-posix.c: Likewise.
39174         * tests/test-priv-set.c: Likewise.
39175         * tests/test-quotearg.c: Likewise.
39176         * tests/test-random_r.c: Likewise.
39177         * tests/test-rawmemchr.c: Likewise.
39178         * tests/test-rbtree_list.c: Likewise.
39179         * tests/test-rbtree_oset.c: Likewise.
39180         * tests/test-rbtreehash_list.c: Likewise.
39181         * tests/test-readlink.c: Likewise.
39182         * tests/test-remove.c: Likewise.
39183         * tests/test-rename.c: Likewise.
39184         * tests/test-renameat.c: Likewise.
39185         * tests/test-rmdir.c: Likewise.
39186         * tests/test-round1.c: Likewise.
39187         * tests/test-roundf1.c: Likewise.
39188         * tests/test-roundl.c: Likewise.
39189         * tests/test-safe-alloc.c: Likewise.
39190         * tests/test-sameacls.c: Likewise.
39191         * tests/test-set-mode-acl.c: Likewise.
39192         * tests/test-setenv.c: Likewise.
39193         * tests/test-sigaction.c: Likewise.
39194         * tests/test-signbit.c: Likewise.
39195         * tests/test-sleep.c: Likewise.
39196         * tests/test-snprintf-posix.c: Likewise.
39197         * tests/test-snprintf.c: Likewise.
39198         * tests/test-sprintf-posix.c: Likewise.
39199         * tests/test-stat-time.c: Likewise.
39200         * tests/test-stat.c: Likewise.
39201         * tests/test-strcasestr.c: Likewise.
39202         * tests/test-strchrnul.c: Likewise.
39203         * tests/test-strerror.c: Likewise.
39204         * tests/test-striconv.c: Likewise.
39205         * tests/test-striconveh.c: Likewise.
39206         * tests/test-striconveha.c: Likewise.
39207         * tests/test-strsignal.c: Likewise.
39208         * tests/test-strstr.c: Likewise.
39209         * tests/test-strtod.c: Likewise.
39210         * tests/test-strverscmp.c: Likewise.
39211         * tests/test-symlink.c: Likewise.
39212         * tests/test-symlinkat.c: Likewise.
39213         * tests/test-trunc1.c: Likewise.
39214         * tests/test-trunc2.c: Likewise.
39215         * tests/test-truncf1.c: Likewise.
39216         * tests/test-truncf2.c: Likewise.
39217         * tests/test-truncl.c: Likewise.
39218         * tests/test-uname.c: Likewise.
39219         * tests/test-unlink.c: Likewise.
39220         * tests/test-unlinkat.c: Likewise.
39221         * tests/test-unsetenv.c: Likewise.
39222         * tests/test-usleep.c: Likewise.
39223         * tests/test-utimens.c: Likewise.
39224         * tests/test-utimensat.c: Likewise.
39225         * tests/test-vasnprintf-posix.c: Likewise.
39226         * tests/test-vasnprintf-posix2.c: Likewise.
39227         * tests/test-vasnprintf.c: Likewise.
39228         * tests/test-vasprintf-posix.c: Likewise.
39229         * tests/test-vasprintf.c: Likewise.
39230         * tests/test-vdprintf-posix.c: Likewise.
39231         * tests/test-vfprintf-posix.c: Likewise.
39232         * tests/test-vprintf-posix.c: Likewise.
39233         * tests/test-vsnprintf-posix.c: Likewise.
39234         * tests/test-vsnprintf.c: Likewise.
39235         * tests/test-vsprintf-posix.c: Likewise.
39236         * tests/test-wcrtomb.c: Likewise.
39237         * tests/test-wcsnrtombs.c: Likewise.
39238         * tests/test-wcsrtombs.c: Likewise.
39239         * tests/test-wctype.c: Likewise.
39240         * tests/test-wcwidth.c: Likewise.
39241         * tests/test-xfprintf-posix.c: Likewise.
39242         * tests/test-xmemdup0.c: Likewise.
39243         * tests/test-xprintf-posix.c: Likewise.
39244         * tests/test-xvasprintf.c: Likewise.
39245         * tests/unicase/test-locale-language.c: Likewise.
39246         * tests/unicase/test-mapping-part1.h: Likewise.
39247         * tests/unicase/test-predicate-part1.h: Likewise.
39248         * tests/unicase/test-u8-casecmp.c: Likewise.
39249         * tests/unicase/test-u8-casecoll.c: Likewise.
39250         * tests/unicase/test-u8-casefold.c: Likewise.
39251         * tests/unicase/test-u8-is-cased.c: Likewise.
39252         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39253         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39254         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39255         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39256         * tests/unicase/test-u8-tolower.c: Likewise.
39257         * tests/unicase/test-u8-totitle.c: Likewise.
39258         * tests/unicase/test-u8-toupper.c: Likewise.
39259         * tests/unicase/test-u16-casecmp.c: Likewise.
39260         * tests/unicase/test-u16-casecoll.c: Likewise.
39261         * tests/unicase/test-u16-casefold.c: Likewise.
39262         * tests/unicase/test-u16-is-cased.c: Likewise.
39263         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39264         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39265         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39266         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39267         * tests/unicase/test-u16-tolower.c: Likewise.
39268         * tests/unicase/test-u16-totitle.c: Likewise.
39269         * tests/unicase/test-u16-toupper.c: Likewise.
39270         * tests/unicase/test-u32-casecmp.c: Likewise.
39271         * tests/unicase/test-u32-casecoll.c: Likewise.
39272         * tests/unicase/test-u32-casefold.c: Likewise.
39273         * tests/unicase/test-u32-is-cased.c: Likewise.
39274         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39275         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39276         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39277         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39278         * tests/unicase/test-u32-tolower.c: Likewise.
39279         * tests/unicase/test-u32-totitle.c: Likewise.
39280         * tests/unicase/test-u32-toupper.c: Likewise.
39281         * tests/unicase/test-ulc-casecmp.c: Likewise.
39282         * tests/unicase/test-ulc-casecoll.c: Likewise.
39283         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39284         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39285         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39286         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39287         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39288         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39289         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39290         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39291         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39292         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39293         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39294         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39295         * tests/unictype/test-bidi_byname.c: Likewise.
39296         * tests/unictype/test-bidi_name.c: Likewise.
39297         * tests/unictype/test-bidi_of.c: Likewise.
39298         * tests/unictype/test-bidi_test.c: Likewise.
39299         * tests/unictype/test-block_list.c: Likewise.
39300         * tests/unictype/test-block_of.c: Likewise.
39301         * tests/unictype/test-block_test.c: Likewise.
39302         * tests/unictype/test-categ_and.c: Likewise.
39303         * tests/unictype/test-categ_and_not.c: Likewise.
39304         * tests/unictype/test-categ_byname.c: Likewise.
39305         * tests/unictype/test-categ_name.c: Likewise.
39306         * tests/unictype/test-categ_none.c: Likewise.
39307         * tests/unictype/test-categ_of.c: Likewise.
39308         * tests/unictype/test-categ_or.c: Likewise.
39309         * tests/unictype/test-categ_test_withtable.c: Likewise.
39310         * tests/unictype/test-combining.c: Likewise.
39311         * tests/unictype/test-decdigit.c: Likewise.
39312         * tests/unictype/test-digit.c: Likewise.
39313         * tests/unictype/test-mirror.c: Likewise.
39314         * tests/unictype/test-numeric.c: Likewise.
39315         * tests/unictype/test-pr_byname.c: Likewise.
39316         * tests/unictype/test-pr_test.c: Likewise.
39317         * tests/unictype/test-predicate-part1.h: Likewise.
39318         * tests/unictype/test-scripts.c: Likewise.
39319         * tests/unictype/test-sy_c_ident.c: Likewise.
39320         * tests/unictype/test-sy_java_ident.c: Likewise.
39321         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39322         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39323         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39324         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39325         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39326         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39327         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39328         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39329         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39330         * tests/uninorm/test-compat-decomposition.c: Likewise.
39331         * tests/uninorm/test-composition.c: Likewise.
39332         * tests/uninorm/test-decomposing-form.c: Likewise.
39333         * tests/uninorm/test-decomposition.c: Likewise.
39334         * tests/uninorm/test-u8-nfc.c: Likewise.
39335         * tests/uninorm/test-u8-nfd.c: Likewise.
39336         * tests/uninorm/test-u8-nfkc.c: Likewise.
39337         * tests/uninorm/test-u8-nfkd.c: Likewise.
39338         * tests/uninorm/test-u8-normcmp.c: Likewise.
39339         * tests/uninorm/test-u8-normcoll.c: Likewise.
39340         * tests/uninorm/test-u16-nfc.c: Likewise.
39341         * tests/uninorm/test-u16-nfd.c: Likewise.
39342         * tests/uninorm/test-u16-nfkc.c: Likewise.
39343         * tests/uninorm/test-u16-nfkd.c: Likewise.
39344         * tests/uninorm/test-u16-normcmp.c: Likewise.
39345         * tests/uninorm/test-u16-normcoll.c: Likewise.
39346         * tests/uninorm/test-u32-nfc.c: Likewise.
39347         * tests/uninorm/test-u32-nfd.c: Likewise.
39348         * tests/uninorm/test-u32-nfkc.c: Likewise.
39349         * tests/uninorm/test-u32-nfkd.c: Likewise.
39350         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39351         * tests/uninorm/test-u32-normcmp.c: Likewise.
39352         * tests/uninorm/test-u32-normcoll.c: Likewise.
39353         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39354         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39355         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39356         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39357         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39358         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39359         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39360         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39361         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39362         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39363         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39364         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39365         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39366         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39367         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39368         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39369         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39370         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39371         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39372         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39373         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39374         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39375         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39376         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39377         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39378         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39379         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39380         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39381         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39382         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39383         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39384         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39385         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39386         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39387         * tests/uniwidth/test-u8-width.c: Likewise.
39388         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39389         * tests/uniwidth/test-u16-width.c: Likewise.
39390         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39391         * tests/uniwidth/test-u32-width.c: Likewise.
39392         * tests/uniwidth/test-uc_width.c: Likewise.
39393         * tests/uniwidth/test-uc_width2.c: Likewise.
39394         * modules/acl-tests (Files): Add tests/macros.h.
39395         * modules/areadlink-tests (Files): Likewise.
39396         * modules/areadlink-with-size-tests (Files): Likewise.
39397         * modules/areadlinkat-tests (Files): Likewise.
39398         * modules/areadlinkat-with-size-tests (Files): Likewise.
39399         * modules/argmatch-tests (Files): Likewise.
39400         * modules/argv-iter-tests (Files): Likewise.
39401         * modules/array-list-tests (Files): Likewise.
39402         * modules/array-mergesort-tests (Files): Likewise.
39403         * modules/array-oset-tests (Files): Likewise.
39404         * modules/avltree-list-tests (Files): Likewise.
39405         * modules/avltree-oset-tests (Files): Likewise.
39406         * modules/avltreehash-list-tests (Files): Likewise.
39407         * modules/base64-tests (Files): Likewise.
39408         * modules/binary-io-tests (Files): Likewise.
39409         * modules/bitrotate-tests (Files): Likewise.
39410         * modules/btowc-tests (Files): Likewise.
39411         * modules/byteswap-tests (Files): Likewise.
39412         * modules/c-ctype-tests (Files): Likewise.
39413         * modules/c-stack-tests (Files): Likewise.
39414         * modules/c-strcase-tests (Files): Likewise.
39415         * modules/c-strcasestr-tests (Files): Likewise.
39416         * modules/c-strstr-tests (Files): Likewise.
39417         * modules/canonicalize-lgpl-tests (Files): Likewise.
39418         * modules/canonicalize-tests (Files): Likewise.
39419         * modules/carray-list-tests (Files): Likewise.
39420         * modules/ceilf-tests (Files): Likewise.
39421         * modules/ceill-tests (Files): Likewise.
39422         * modules/chown-tests (Files): Likewise.
39423         * modules/cloexec-tests (Files): Likewise.
39424         * modules/copy-file-tests (Files): Likewise.
39425         * modules/count-one-bits-tests (Files): Likewise.
39426         * modules/dprintf-posix-tests (Files): Likewise.
39427         * modules/dup2-tests (Files): Likewise.
39428         * modules/dup3-tests (Files): Likewise.
39429         * modules/duplocale-tests (Files): Likewise.
39430         * modules/fbufmode-tests (Files): Likewise.
39431         * modules/fchdir-tests (Files): Likewise.
39432         * modules/fcntl-safer-tests (Files): Likewise.
39433         * modules/fcntl-tests (Files): Likewise.
39434         * modules/fdopendir-tests (Files): Likewise.
39435         * modules/fdutimensat-tests (Files): Likewise.
39436         * modules/fflush-tests (Files): Likewise.
39437         * modules/filevercmp-tests (Files): Likewise.
39438         * modules/flock-tests (Files): Likewise.
39439         * modules/floorf-tests (Files): Likewise.
39440         * modules/floorl-tests (Files): Likewise.
39441         * modules/fnmatch-tests (Files): Likewise.
39442         * modules/fopen-safer-tests (Files): Likewise.
39443         * modules/fopen-tests (Files): Likewise.
39444         * modules/fpending-tests (Files): Likewise.
39445         * modules/fprintf-posix-tests (Files): Likewise.
39446         * modules/fpurge-tests (Files): Likewise.
39447         * modules/freadable-tests (Files): Likewise.
39448         * modules/freadahead-tests (Files): Likewise.
39449         * modules/freading-tests (Files): Likewise.
39450         * modules/freadptr-tests (Files): Likewise.
39451         * modules/freadseek-tests (Files): Likewise.
39452         * modules/freopen-tests (Files): Likewise.
39453         * modules/frexp-nolibm-tests (Files): Likewise.
39454         * modules/frexp-tests (Files): Likewise.
39455         * modules/frexpl-nolibm-tests (Files): Likewise.
39456         * modules/frexpl-tests (Files): Likewise.
39457         * modules/fseek-tests (Files): Likewise.
39458         * modules/fseeko-tests (Files): Likewise.
39459         * modules/fstrcmp-tests (Files): Likewise.
39460         * modules/fsync-tests (Files): Likewise.
39461         * modules/ftell-tests (Files): Likewise.
39462         * modules/ftello-tests (Files): Likewise.
39463         * modules/func-tests (Files): Likewise.
39464         * modules/futimens-tests (Files): Likewise.
39465         * modules/fwritable-tests (Files): Likewise.
39466         * modules/fwriting-tests (Files): Likewise.
39467         * modules/getcwd-tests (Files): Likewise.
39468         * modules/getdate-tests (Files): Likewise.
39469         * modules/getdelim-tests (Files): Likewise.
39470         * modules/getdtablesize-tests (Files): Likewise.
39471         * modules/getgroups-tests (Files): Likewise.
39472         * modules/getline-tests (Files): Likewise.
39473         * modules/getndelim2-tests (Files): Likewise.
39474         * modules/glob-tests (Files): Likewise.
39475         * modules/hash-tests (Files): Likewise.
39476         * modules/i-ring-tests (Files): Likewise.
39477         * modules/iconv-tests (Files): Likewise.
39478         * modules/iconv_open-utf-tests (Files): Likewise.
39479         * modules/idpriv-drop-tests (Files): Likewise.
39480         * modules/idpriv-droptemp-tests (Files): Likewise.
39481         * modules/inet_ntop-tests (Files): Likewise.
39482         * modules/inet_pton-tests (Files): Likewise.
39483         * modules/isblank-tests (Files): Likewise.
39484         * modules/isfinite-tests (Files): Likewise.
39485         * modules/isinf-tests (Files): Likewise.
39486         * modules/isnan-tests (Files): Likewise.
39487         * modules/isnand-nolibm-tests (Files): Likewise.
39488         * modules/isnand-tests (Files): Likewise.
39489         * modules/isnanf-nolibm-tests (Files): Likewise.
39490         * modules/isnanf-tests (Files): Likewise.
39491         * modules/isnanl-nolibm-tests (Files): Likewise.
39492         * modules/isnanl-tests (Files): Likewise.
39493         * modules/lchown-tests (Files): Likewise.
39494         * modules/ldexpl-tests (Files): Likewise.
39495         * modules/link-tests (Files): Likewise.
39496         * modules/linkat-tests (Files): Likewise.
39497         * modules/linked-list-tests (Files): Likewise.
39498         * modules/linkedhash-list-tests (Files): Likewise.
39499         * modules/localename-tests (Files): Likewise.
39500         * modules/lseek-tests (Files): Likewise.
39501         * modules/lstat-tests (Files): Likewise.
39502         * modules/mbmemcasecmp-tests (Files): Likewise.
39503         * modules/mbmemcasecoll-tests (Files): Likewise.
39504         * modules/mbrtowc-tests (Files): Likewise.
39505         * modules/mbscasecmp-tests (Files): Likewise.
39506         * modules/mbscasestr-tests (Files): Likewise.
39507         * modules/mbschr-tests (Files): Likewise.
39508         * modules/mbscspn-tests (Files): Likewise.
39509         * modules/mbsinit-tests (Files): Likewise.
39510         * modules/mbsncasecmp-tests (Files): Likewise.
39511         * modules/mbsnrtowcs-tests (Files): Likewise.
39512         * modules/mbspbrk-tests (Files): Likewise.
39513         * modules/mbspcasecmp-tests (Files): Likewise.
39514         * modules/mbsrchr-tests (Files): Likewise.
39515         * modules/mbsrtowcs-tests (Files): Likewise.
39516         * modules/mbsspn-tests (Files): Likewise.
39517         * modules/mbsstr-tests (Files): Likewise.
39518         * modules/memchr-tests (Files): Likewise.
39519         * modules/memchr2-tests (Files): Likewise.
39520         * modules/memcmp-tests (Files): Likewise.
39521         * modules/memmem-tests (Files): Likewise.
39522         * modules/memrchr-tests (Files): Likewise.
39523         * modules/mkdir-tests (Files): Likewise.
39524         * modules/mkfifo-tests (Files): Likewise.
39525         * modules/mkfifoat-tests (Files): Likewise.
39526         * modules/mknod-tests (Files): Likewise.
39527         * modules/nanosleep-tests (Files): Likewise.
39528         * modules/nl_langinfo-tests (Files): Likewise.
39529         * modules/obstack-printf-tests (Files): Likewise.
39530         * modules/open-tests (Files): Likewise.
39531         * modules/openat-tests (Files): Likewise.
39532         * modules/pipe-filter-gi-tests (Files): Likewise.
39533         * modules/pipe-filter-ii-tests (Files): Likewise.
39534         * modules/pipe2-tests (Files): Likewise.
39535         * modules/popen-safer-tests (Files): Likewise.
39536         * modules/popen-tests (Files): Likewise.
39537         * modules/posixtm-tests (Files): Likewise.
39538         * modules/pread-tests (Files): Likewise.
39539         * modules/printf-frexp-tests (Files): Likewise.
39540         * modules/printf-frexpl-tests (Files): Likewise.
39541         * modules/printf-posix-tests (Files): Likewise.
39542         * modules/priv-set-tests (Files): Likewise.
39543         * modules/quotearg-tests (Files): Likewise.
39544         * modules/random_r-tests (Files): Likewise.
39545         * modules/rawmemchr-tests (Files): Likewise.
39546         * modules/rbtree-list-tests (Files): Likewise.
39547         * modules/rbtree-oset-tests (Files): Likewise.
39548         * modules/rbtreehash-list-tests (Files): Likewise.
39549         * modules/readlink-tests (Files): Likewise.
39550         * modules/remove-tests (Files): Likewise.
39551         * modules/rename-tests (Files): Likewise.
39552         * modules/renameat-tests (Files): Likewise.
39553         * modules/rmdir-tests (Files): Likewise.
39554         * modules/round-tests (Files): Likewise.
39555         * modules/roundf-tests (Files): Likewise.
39556         * modules/roundl-tests (Files): Likewise.
39557         * modules/safe-alloc-tests (Files): Likewise.
39558         * modules/setenv-tests (Files): Likewise.
39559         * modules/sigaction-tests (Files): Likewise.
39560         * modules/signbit-tests (Files): Likewise.
39561         * modules/sleep-tests (Files): Likewise.
39562         * modules/snprintf-posix-tests (Files): Likewise.
39563         * modules/snprintf-tests (Files): Likewise.
39564         * modules/sprintf-posix-tests (Files): Likewise.
39565         * modules/stat-tests (Files): Likewise.
39566         * modules/stat-time-tests (Files): Likewise.
39567         * modules/strcasestr-tests (Files): Likewise.
39568         * modules/strchrnul-tests (Files): Likewise.
39569         * modules/strerror-tests (Files): Likewise.
39570         * modules/striconv-tests (Files): Likewise.
39571         * modules/striconveh-tests (Files): Likewise.
39572         * modules/striconveha-tests (Files): Likewise.
39573         * modules/strsignal-tests (Files): Likewise.
39574         * modules/strstr-tests (Files): Likewise.
39575         * modules/strtod-tests (Files): Likewise.
39576         * modules/strverscmp-tests (Files): Likewise.
39577         * modules/symlink-tests (Files): Likewise.
39578         * modules/symlinkat-tests (Files): Likewise.
39579         * modules/trunc-tests (Files): Likewise.
39580         * modules/truncf-tests (Files): Likewise.
39581         * modules/truncl-tests (Files): Likewise.
39582         * modules/uname-tests (Files): Likewise.
39583         * modules/unicase/cased-tests (Files): Likewise.
39584         * modules/unicase/ignorable-tests (Files): Likewise.
39585         * modules/unicase/locale-language-tests (Files): Likewise.
39586         * modules/unicase/tolower-tests (Files): Likewise.
39587         * modules/unicase/totitle-tests (Files): Likewise.
39588         * modules/unicase/toupper-tests (Files): Likewise.
39589         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39590         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39591         * modules/unicase/u8-casefold-tests (Files): Likewise.
39592         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39593         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39594         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39595         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39596         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39597         * modules/unicase/u8-tolower-tests (Files): Likewise.
39598         * modules/unicase/u8-totitle-tests (Files): Likewise.
39599         * modules/unicase/u8-toupper-tests (Files): Likewise.
39600         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39601         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39602         * modules/unicase/u16-casefold-tests (Files): Likewise.
39603         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39604         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39605         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39606         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39607         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39608         * modules/unicase/u16-tolower-tests (Files): Likewise.
39609         * modules/unicase/u16-totitle-tests (Files): Likewise.
39610         * modules/unicase/u16-toupper-tests (Files): Likewise.
39611         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39612         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39613         * modules/unicase/u32-casefold-tests (Files): Likewise.
39614         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39615         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39616         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39617         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39618         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39619         * modules/unicase/u32-tolower-tests (Files): Likewise.
39620         * modules/unicase/u32-totitle-tests (Files): Likewise.
39621         * modules/unicase/u32-toupper-tests (Files): Likewise.
39622         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39623         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39624         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39625         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39626         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39627         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39628         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39629         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39630         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39631         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39632         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39633         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39634         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39635         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39636         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39637         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39638         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39639         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39640         * modules/unictype/block-list-tests (Files): Likewise.
39641         * modules/unictype/block-of-tests (Files): Likewise.
39642         * modules/unictype/block-test-tests (Files): Likewise.
39643         * modules/unictype/category-C-tests (Files): Likewise.
39644         * modules/unictype/category-Cc-tests (Files): Likewise.
39645         * modules/unictype/category-Cf-tests (Files): Likewise.
39646         * modules/unictype/category-Cn-tests (Files): Likewise.
39647         * modules/unictype/category-Co-tests (Files): Likewise.
39648         * modules/unictype/category-Cs-tests (Files): Likewise.
39649         * modules/unictype/category-L-tests (Files): Likewise.
39650         * modules/unictype/category-Ll-tests (Files): Likewise.
39651         * modules/unictype/category-Lm-tests (Files): Likewise.
39652         * modules/unictype/category-Lo-tests (Files): Likewise.
39653         * modules/unictype/category-Lt-tests (Files): Likewise.
39654         * modules/unictype/category-Lu-tests (Files): Likewise.
39655         * modules/unictype/category-M-tests (Files): Likewise.
39656         * modules/unictype/category-Mc-tests (Files): Likewise.
39657         * modules/unictype/category-Me-tests (Files): Likewise.
39658         * modules/unictype/category-Mn-tests (Files): Likewise.
39659         * modules/unictype/category-N-tests (Files): Likewise.
39660         * modules/unictype/category-Nd-tests (Files): Likewise.
39661         * modules/unictype/category-Nl-tests (Files): Likewise.
39662         * modules/unictype/category-No-tests (Files): Likewise.
39663         * modules/unictype/category-P-tests (Files): Likewise.
39664         * modules/unictype/category-Pc-tests (Files): Likewise.
39665         * modules/unictype/category-Pd-tests (Files): Likewise.
39666         * modules/unictype/category-Pe-tests (Files): Likewise.
39667         * modules/unictype/category-Pf-tests (Files): Likewise.
39668         * modules/unictype/category-Pi-tests (Files): Likewise.
39669         * modules/unictype/category-Po-tests (Files): Likewise.
39670         * modules/unictype/category-Ps-tests (Files): Likewise.
39671         * modules/unictype/category-S-tests (Files): Likewise.
39672         * modules/unictype/category-Sc-tests (Files): Likewise.
39673         * modules/unictype/category-Sk-tests (Files): Likewise.
39674         * modules/unictype/category-Sm-tests (Files): Likewise.
39675         * modules/unictype/category-So-tests (Files): Likewise.
39676         * modules/unictype/category-Z-tests (Files): Likewise.
39677         * modules/unictype/category-Zl-tests (Files): Likewise.
39678         * modules/unictype/category-Zp-tests (Files): Likewise.
39679         * modules/unictype/category-Zs-tests (Files): Likewise.
39680         * modules/unictype/category-and-not-tests (Files): Likewise.
39681         * modules/unictype/category-and-tests (Files): Likewise.
39682         * modules/unictype/category-byname-tests (Files): Likewise.
39683         * modules/unictype/category-name-tests (Files): Likewise.
39684         * modules/unictype/category-none-tests (Files): Likewise.
39685         * modules/unictype/category-of-tests (Files): Likewise.
39686         * modules/unictype/category-or-tests (Files): Likewise.
39687         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39688         * modules/unictype/combining-class-tests (Files): Likewise.
39689         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39690         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39691         * modules/unictype/ctype-blank-tests (Files): Likewise.
39692         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39693         * modules/unictype/ctype-digit-tests (Files): Likewise.
39694         * modules/unictype/ctype-graph-tests (Files): Likewise.
39695         * modules/unictype/ctype-lower-tests (Files): Likewise.
39696         * modules/unictype/ctype-print-tests (Files): Likewise.
39697         * modules/unictype/ctype-punct-tests (Files): Likewise.
39698         * modules/unictype/ctype-space-tests (Files): Likewise.
39699         * modules/unictype/ctype-upper-tests (Files): Likewise.
39700         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39701         * modules/unictype/decimal-digit-tests (Files): Likewise.
39702         * modules/unictype/digit-tests (Files): Likewise.
39703         * modules/unictype/mirror-tests (Files): Likewise.
39704         * modules/unictype/numeric-tests (Files): Likewise.
39705         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39706         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39707         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39708         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39709         Likewise.
39710         * modules/unictype/property-bidi-block-separator-tests (Files):
39711         Likewise.
39712         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39713         Likewise.
39714         * modules/unictype/property-bidi-common-separator-tests (Files):
39715         Likewise.
39716         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39717         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39718         Likewise.
39719         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39720         Likewise.
39721         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39722         Likewise.
39723         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39724         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39725         Likewise.
39726         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39727         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39728         Likewise.
39729         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39730         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39731         * modules/unictype/property-bidi-segment-separator-tests (Files):
39732         Likewise.
39733         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39734         * modules/unictype/property-byname-tests (Files): Likewise.
39735         * modules/unictype/property-combining-tests (Files): Likewise.
39736         * modules/unictype/property-composite-tests (Files): Likewise.
39737         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39738         * modules/unictype/property-dash-tests (Files): Likewise.
39739         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39740         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39741         Likewise.
39742         * modules/unictype/property-deprecated-tests (Files): Likewise.
39743         * modules/unictype/property-diacritic-tests (Files): Likewise.
39744         * modules/unictype/property-extender-tests (Files): Likewise.
39745         * modules/unictype/property-format-control-tests (Files): Likewise.
39746         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39747         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39748         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39749         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39750         * modules/unictype/property-hyphen-tests (Files): Likewise.
39751         * modules/unictype/property-id-continue-tests (Files): Likewise.
39752         * modules/unictype/property-id-start-tests (Files): Likewise.
39753         * modules/unictype/property-ideographic-tests (Files): Likewise.
39754         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39755         * modules/unictype/property-ids-trinary-operator-tests (Files):
39756         Likewise.
39757         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39758         * modules/unictype/property-iso-control-tests (Files): Likewise.
39759         * modules/unictype/property-join-control-tests (Files): Likewise.
39760         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39761         * modules/unictype/property-line-separator-tests (Files): Likewise.
39762         * modules/unictype/property-logical-order-exception-tests (Files):
39763         Likewise.
39764         * modules/unictype/property-lowercase-tests (Files): Likewise.
39765         * modules/unictype/property-math-tests (Files): Likewise.
39766         * modules/unictype/property-non-break-tests (Files): Likewise.
39767         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39768         * modules/unictype/property-numeric-tests (Files): Likewise.
39769         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39770         * modules/unictype/property-other-default-ignorable-code-point-tests
39771         (Files): Likewise.
39772         * modules/unictype/property-other-grapheme-extend-tests (Files):
39773         Likewise.
39774         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39775         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39776         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39777         * modules/unictype/property-other-math-tests (Files): Likewise.
39778         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39779         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39780         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39781         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39782         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39783         * modules/unictype/property-private-use-tests (Files): Likewise.
39784         * modules/unictype/property-punctuation-tests (Files): Likewise.
39785         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39786         * modules/unictype/property-radical-tests (Files): Likewise.
39787         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39788         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39789         * modules/unictype/property-space-tests (Files): Likewise.
39790         * modules/unictype/property-terminal-punctuation-tests (Files):
39791         Likewise.
39792         * modules/unictype/property-test-tests (Files): Likewise.
39793         * modules/unictype/property-titlecase-tests (Files): Likewise.
39794         * modules/unictype/property-unassigned-code-value-tests (Files):
39795         Likewise.
39796         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39797         * modules/unictype/property-uppercase-tests (Files): Likewise.
39798         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39799         * modules/unictype/property-white-space-tests (Files): Likewise.
39800         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39801         * modules/unictype/property-xid-start-tests (Files): Likewise.
39802         * modules/unictype/property-zero-width-tests (Files): Likewise.
39803         * modules/unictype/scripts-tests (Files): Likewise.
39804         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39805         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39806         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39807         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39808         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39809         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39810         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39811         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39812         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39813         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39814         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39815         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39816         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39817         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39818         * modules/uninorm/composition-tests (Files): Likewise.
39819         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39820         * modules/uninorm/decomposition-tests (Files): Likewise.
39821         * modules/uninorm/filter-tests (Files): Likewise.
39822         * modules/uninorm/nfc-tests (Files): Likewise.
39823         * modules/uninorm/nfd-tests (Files): Likewise.
39824         * modules/uninorm/nfkc-tests (Files): Likewise.
39825         * modules/uninorm/nfkd-tests (Files): Likewise.
39826         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39827         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39828         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39829         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39830         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39831         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39832         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39833         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39834         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39835         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39836         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39837         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39838         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39839         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39840         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39841         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39842         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39843         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39844         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39845         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39846         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39847         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39848         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39849         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39850         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39851         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39852         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39853         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39854         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39855         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39856         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39857         * modules/uniwidth/u8-width-tests (Files): Likewise.
39858         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39859         * modules/uniwidth/u16-width-tests (Files): Likewise.
39860         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39861         * modules/uniwidth/u32-width-tests (Files): Likewise.
39862         * modules/uniwidth/width-tests (Files): Likewise.
39863         * modules/unlink-tests (Files): Likewise.
39864         * modules/unsetenv-tests (Files): Likewise.
39865         * modules/usleep-tests (Files): Likewise.
39866         * modules/utimens-tests (Files): Likewise.
39867         * modules/utimensat-tests (Files): Likewise.
39868         * modules/vasnprintf-posix-tests (Files): Likewise.
39869         * modules/vasnprintf-tests (Files): Likewise.
39870         * modules/vasprintf-posix-tests (Files): Likewise.
39871         * modules/vasprintf-tests (Files): Likewise.
39872         * modules/vdprintf-posix-tests (Files): Likewise.
39873         * modules/vfprintf-posix-tests (Files): Likewise.
39874         * modules/vprintf-posix-tests (Files): Likewise.
39875         * modules/vsnprintf-posix-tests (Files): Likewise.
39876         * modules/vsnprintf-tests (Files): Likewise.
39877         * modules/vsprintf-posix-tests (Files): Likewise.
39878         * modules/wcrtomb-tests (Files): Likewise.
39879         * modules/wcsnrtombs-tests (Files): Likewise.
39880         * modules/wcsrtombs-tests (Files): Likewise.
39881         * modules/wctype-tests (Files): Likewise.
39882         * modules/wcwidth-tests (Files): Likewise.
39883         * modules/xmemdup0-tests (Files): Likewise.
39884         * modules/xprintf-posix-tests (Files): Likewise.
39885         * modules/xvasprintf-tests (Files): Likewise.
39886
39887 2009-12-24  Eric Blake  <ebb9@byu.net>
39888
39889         test-nanosleep: fix typo
39890         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39891         patch.
39892         Reported by Bruno Haible.
39893
39894 2009-12-24  Bruno Haible  <bruno@clisp.org>
39895
39896         Reduce namespace pollution on glibc systems.
39897         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39898         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39899         systems.
39900         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39901         <getopt.h> on glibc systems.
39902         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39903         systems.
39904         * lib/fcntl.c: Include <unistd.h> here instead.
39905
39906 2009-12-24  Bruno Haible  <bruno@clisp.org>
39907
39908         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39909
39910 2009-12-24  Eric Blake  <ebb9@byu.net>
39911
39912         tests: add signature checks
39913         * tests/signature.h (SIGNATURE_CHECK): New file.
39914         * modules/atexit-tests (Files): Use it.
39915         * modules/btowc-tests (Files): Likewise.
39916         * modules/canonicalize-lgpl-tests (Files): Likewise.
39917         * modules/ceilf-tests (Files): Likewise.
39918         * modules/ceill-tests (Files): Likewise.
39919         * modules/chown-tests (Files): Likewise.
39920         * modules/dprintf-posix-tests (Files): Likewise.
39921         * modules/dup2-tests (Files): Likewise.
39922         * modules/dup3-tests (Files): Likewise.
39923         * modules/duplocale-tests (Files): Likewise.
39924         * modules/fchdir-tests (Files): Likewise.
39925         * modules/fcntl-tests (Files): Likewise.
39926         * modules/fdopendir-tests (Files): Likewise.
39927         * modules/fflush-tests (Files): Likewise.
39928         * modules/flock-tests (Files): Likewise.
39929         * modules/floorf-tests (Files): Likewise.
39930         * modules/floorl-tests (Files): Likewise.
39931         * modules/fnmatch-tests (Files): Likewise.
39932         * modules/fopen-tests (Files): Likewise.
39933         * modules/fprintf-posix-tests (Files): Likewise.
39934         * modules/freopen-tests (Files): Likewise.
39935         * modules/frexp-nolibm-tests (Files): Likewise.
39936         * modules/frexp-tests (Files): Likewise.
39937         * modules/frexpl-nolibm-tests (Files): Likewise.
39938         * modules/frexpl-tests (Files): Likewise.
39939         * modules/fseek-tests (Files): Likewise.
39940         * modules/fseeko-tests (Files): Likewise.
39941         * modules/fsync-tests (Files): Likewise.
39942         * modules/ftell-tests (Files): Likewise.
39943         * modules/ftello-tests (Files): Likewise.
39944         * modules/futimens-tests (Files): Likewise.
39945         * modules/getaddrinfo-tests (Files): Likewise.
39946         * modules/getcwd-tests (Files): Likewise.
39947         * modules/getdelim-tests (Files): Likewise.
39948         * modules/getdtablesize-tests (Files): Likewise.
39949         * modules/getgroups-tests (Files): Likewise.
39950         * modules/gethostname-tests (Files): Likewise.
39951         * modules/getline-tests (Files): Likewise.
39952         * modules/getopt-posix-tests (Files): Likewise.
39953         * modules/gettimeofday-tests (Files): Likewise.
39954         * modules/glob-tests (Files): Likewise.
39955         * modules/iconv-tests (Files): Likewise.
39956         * modules/inet_ntop-tests (Files): Likewise.
39957         * modules/inet_pton-tests (Files): Likewise.
39958         * modules/isblank-tests (Files): Likewise.
39959         * modules/lchown-tests (Files): Likewise.
39960         * modules/ldexpl-tests (Files): Likewise.
39961         * modules/link-tests (Files): Likewise.
39962         * modules/linkat-tests (Files): Likewise.
39963         * modules/lseek-tests (Files): Likewise.
39964         * modules/lstat-tests (Files): Likewise.
39965         * modules/mbrtowc-tests (Files): Likewise.
39966         * modules/mbsinit-tests (Files): Likewise.
39967         * modules/mbsnrtowcs-tests (Files): Likewise.
39968         * modules/mbsrtowcs-tests (Files): Likewise.
39969         * modules/memchr-tests (Files): Likewise.
39970         * modules/memcmp-tests (Files): Likewise.
39971         * modules/memmem-tests (Files): Likewise.
39972         * modules/memrchr-tests (Files): Likewise.
39973         * modules/mkdir-tests (Files): Likewise.
39974         * modules/mkfifo-tests (Files): Likewise.
39975         * modules/mkfifoat-tests (Files): Likewise.
39976         * modules/mknod-tests (Files): Likewise.
39977         * modules/nanosleep-tests (Files): Likewise.
39978         * modules/nl_langinfo-tests (Files): Likewise.
39979         * modules/obstack-printf-tests (Files): Likewise.
39980         * modules/open-tests (Files): Likewise.
39981         * modules/openat-tests (Files): Likewise.
39982         * modules/perror-tests (Files): Likewise.
39983         * modules/pipe2-tests (Files): Likewise.
39984         * modules/poll-tests (Files): Likewise.
39985         * modules/popen-tests (Files): Likewise.
39986         * modules/posix_spawn-tests (Files): Likewise.
39987         * modules/posix_spawnp-tests (Files): Likewise.
39988         * modules/pread-tests (Files): Likewise.
39989         * modules/printf-posix-tests (Files): Likewise.
39990         * modules/pty-tests (Files): Likewise.
39991         * modules/random_r-tests (Files): Likewise.
39992         * modules/rawmemchr-tests (Files): Likewise.
39993         * modules/readlink-tests (Files): Likewise.
39994         * modules/remove-tests (Files): Likewise.
39995         * modules/rename-tests (Files): Likewise.
39996         * modules/renameat-tests (Files): Likewise.
39997         * modules/rmdir-tests (Files): Likewise.
39998         * modules/round-tests (Files): Likewise.
39999         * modules/roundf-tests (Files): Likewise.
40000         * modules/roundl-tests (Files): Likewise.
40001         * modules/select-tests (Files): Likewise.
40002         * modules/setenv-tests (Files): Likewise.
40003         * modules/sigaction-tests (Files): Likewise.
40004         * modules/sleep-tests (Files): Likewise.
40005         * modules/snprintf-posix-tests (Files): Likewise.
40006         * modules/snprintf-tests (Files): Likewise.
40007         * modules/sprintf-posix-tests (Files): Likewise.
40008         * modules/stat-tests (Files): Likewise.
40009         * modules/strcasestr-tests (Files): Likewise.
40010         * modules/strchrnul-tests (Files): Likewise.
40011         * modules/strerror-tests (Files): Likewise.
40012         * modules/strsignal-tests (Files): Likewise.
40013         * modules/strstr-tests (Files): Likewise.
40014         * modules/strtod-tests (Files): Likewise.
40015         * modules/strverscmp-tests (Files): Likewise.
40016         * modules/symlink-tests (Files): Likewise.
40017         * modules/symlinkat-tests (Files): Likewise.
40018         * modules/times-tests (Files): Likewise.
40019         * modules/trunc-tests (Files): Likewise.
40020         * modules/truncf-tests (Files): Likewise.
40021         * modules/truncl-tests (Files): Likewise.
40022         * modules/tsearch-tests (Files): Likewise.
40023         * modules/uname-tests (Files): Likewise.
40024         * modules/unlink-tests (Files): Likewise.
40025         * modules/unsetenv-tests (Files): Likewise.
40026         * modules/usleep-tests (Files): Likewise.
40027         * modules/utimensat-tests (Files): Likewise.
40028         * modules/vasprintf-tests (Files): Likewise.
40029         * modules/vdprintf-posix-tests (Files): Likewise.
40030         * modules/vfprintf-posix-tests (Files): Likewise.
40031         * modules/vprintf-posix-tests (Files): Likewise.
40032         * modules/vsnprintf-posix-tests (Files): Likewise.
40033         * modules/vsnprintf-tests (Files): Likewise.
40034         * modules/vsprintf-posix-tests (Files): Likewise.
40035         * modules/wcrtomb-tests (Files): Likewise.
40036         * modules/wcsnrtombs-tests (Files): Likewise.
40037         * modules/wcsrtombs-tests (Files): Likewise.
40038         * modules/wcwidth-tests (Files): Likewise.
40039         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40040         * tests/test-isinf.c (isinf): Likewise.
40041         * tests/test-isnan.c (isnan): Likewise.
40042         * tests/test-signbit.c (signbit): Likewise.
40043         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40044         declaration, either as macro or with correct signature.
40045         (select): Ensure function under test is declared with correct
40046         signature in correct header.
40047         * tests/test-atexit.c (atexit): Likewise.
40048         * tests/test-btowc.c (btowc): Likewise.
40049         * tests/test-canonicalize-lgpl.c (realpath)
40050         (canonicalize_file_name): Likewise.
40051         * tests/test-ceilf1.c (ceilf): Likewise.
40052         * tests/test-ceill.c (ceill): Likewise.
40053         * tests/test-chown.c (chown): Likewise.
40054         * tests/test-dprintf-posix.c (dprintf): Likewise.
40055         * tests/test-dup2.c (dup2): Likewise.
40056         * tests/test-dup3.c (dup3): Likewise.
40057         * tests/test-duplocale.c (duplocale): Likewise.
40058         * tests/test-fchdir.c (fchdir): Likewise.
40059         * tests/test-fchownat.c (fchownat): Likewise.
40060         * tests/test-fcntl.c (fcntl): Likewise.
40061         * tests/test-fdopendir.c (fdopendir): Likewise.
40062         * tests/test-fflush.c (fflush): Likewise.
40063         * tests/test-flock.c (flock): Likewise.
40064         * tests/test-floorf1.c (floorf): Likewise.
40065         * tests/test-floorl.c (floorl): Likewise.
40066         * tests/test-fnmatch.c (fnmatch): Likewise.
40067         * tests/test-fopen.c (fopen): Likewise.
40068         * tests/test-fprintf-posix.c (fprintf): Likewise.
40069         * tests/test-freopen.c (freopen): Likewise.
40070         * tests/test-frexp.c (frexp): Likewise.
40071         * tests/test-frexpl.c (frexpl): Likewise.
40072         * tests/test-fseek.c (fseek): Likewise.
40073         * tests/test-fseeko.c (fseeko): Likewise.
40074         * tests/test-fstatat.c (fstatat): Likewise.
40075         * tests/test-fsync.c (fsync): Likewise.
40076         * tests/test-ftell.c (ftell): Likewise.
40077         * tests/test-ftello.c (ftello): Likewise.
40078         * tests/test-futimens.c (futimens): Likewise.
40079         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40080         (gai_strerror): Likewise.
40081         * tests/test-getcwd.c (getcwd): Likewise.
40082         * tests/test-getdelim.c (getdelim): Likewise.
40083         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40084         * tests/test-getgroups.c (getgroups): Likewise.
40085         * tests/test-gethostname.c (gethostname): Likewise.
40086         * tests/test-getline.c (getline): Likewise.
40087         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40088         Likewise.
40089         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40090         * tests/test-glob.c (glob, globfree): Likewise.
40091         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40092         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40093         * tests/test-inet_pton.c (inet_pton): Likewise.
40094         * tests/test-isblank.c (isblank): Likewise.
40095         * tests/test-lchown.c (lchown): Likewise.
40096         * tests/test-ldexpl.c (ldexpl): Likewise.
40097         * tests/test-link.c (link): Likewise.
40098         * tests/test-linkat.c (linkat): Likewise.
40099         * tests/test-lseek.c (lseek): Likewise.
40100         * tests/test-lstat.c (lstat): Likewise.
40101         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40102         * tests/test-mbsinit.c (mbsinit): Likewise.
40103         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40104         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40105         * tests/test-memchr.c (memchr): Likewise.
40106         * tests/test-memcmp.c (memcmp): Likewise.
40107         * tests/test-memmem.c (memmem): Likewise.
40108         * tests/test-memrchr.c (memrchr): Likewise.
40109         * tests/test-mkdir.c (mkdir): Likewise.
40110         * tests/test-mkdirat.c (mkdirat): Likewise.
40111         * tests/test-mkfifo.c (mkfifo): Likewise.
40112         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40113         * tests/test-mknod.c (mknod): Likewise.
40114         * tests/test-nanosleep.c (nanosleep): Likewise.
40115         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40116         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40117         Likewise.
40118         * tests/test-open.c (open): Likewise.
40119         * tests/test-openat.c (openat): Likewise.
40120         * tests/test-perror.c (perror): Likewise.
40121         * tests/test-pipe2.c (pipe2): Likewise.
40122         * tests/test-poll.c (poll): Likewise.
40123         * tests/test-popen.c (popen, pclose): Likewise.
40124         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40125         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40126         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40127         (posix_spawn_file_actions_destroy)
40128         (posix_spawn_file_actions_addclose)
40129         (posix_spawn_file_actions_addopen)
40130         (posix_spawn_file_actions_adddup2): Likewise.
40131         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40132         * tests/test-pread.c (pread): Likewise.
40133         * tests/test-printf-posix.c (printf): Likewise.
40134         * tests/test-pty.c (openpty, forkpty): Likewise.
40135         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40136         (random_r): Likewise.
40137         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40138         * tests/test-readlink.c (readlink): Likewise.
40139         * tests/test-remove.c (remove): Likewise.
40140         * tests/test-rename.c (rename): Likewise.
40141         * tests/test-renameat.c (renameat): Likewise.
40142         * tests/test-rmdir.c (rmdir): Likewise.
40143         * tests/test-round1.c (round): Likewise.
40144         * tests/test-roundf1.c (roundf): Likewise.
40145         * tests/test-roundl.c (roundl): Likewise.
40146         * tests/test-setenv.c (setenv): Likewise.
40147         * tests/test-sigaction.c (sigaction): Likewise.
40148         * tests/test-sleep.c (sleep): Likewise.
40149         * tests/test-snprintf.c (snprintf): Likewise.
40150         * tests/test-sprintf-posix.c (sprintf): Likewise.
40151         * tests/test-stat.c (stat): Likewise.
40152         * tests/test-stpncpy.c (stpncpy): Likewise.
40153         * tests/test-strcasestr.c (strcasestr): Likewise.
40154         * tests/test-strchrnul.c (strchrnul): Likewise.
40155         * tests/test-strerror.c (strerror): Likewise.
40156         * tests/test-strsignal.c (strsignal): Likewise.
40157         * tests/test-strstr.c (strstr): Likewise.
40158         * tests/test-strtod.c (strtod): Likewise.
40159         * tests/test-strverscmp.c (strverscmp): Likewise.
40160         * tests/test-symlink.c (symlink): Likewise.
40161         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40162         * tests/test-times.c (times): Likewise.
40163         * tests/test-trunc1.c (trunc): Likewise.
40164         * tests/test-truncf1.c (truncf): Likewise.
40165         * tests/test-truncl.c (truncl): Likewise.
40166         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40167         Likewise.
40168         * tests/test-uname.c (uname): Likewise.
40169         * tests/test-unlink.c (unlink): Likewise.
40170         * tests/test-unlinkat.c (unlinkat): Likewise.
40171         * tests/test-unsetenv.c (unsetenv): Likewise.
40172         * tests/test-usleep.c (usleep): Likewise.
40173         * tests/test-utimensat.c (utimensat): Likewise.
40174         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40175         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40176         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40177         * tests/test-vprintf-posix.c (vprintf): Likewise.
40178         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40179         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40180         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40181         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40182         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40183         * tests/test-wcwidth.c (wcwidth): Likewise.
40184
40185         build: pull in conditional headers during GNULIB_POSIXCHECK
40186         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40187         definitions from any conditionally-included headers.
40188         * lib/stdlib.in.h (includes): Likewise.
40189         * lib/unistd.in.h (includes): Likewise.
40190
40191 2009-12-24  Bruno Haible  <bruno@clisp.org>
40192
40193         * tests/test-argv-iter.c: Include header file being tested immediately
40194         after config.h.
40195         * tests/test-base64.c: Likewise.
40196         * tests/test-flock.c: Likewise.
40197         * tests/test-fsync.c: Likewise.
40198         * tests/test-getdate.c: Likewise.
40199         * tests/test-getndelim2.c: Likewise.
40200         * tests/test-isfinite.c: Likewise.
40201         * tests/test-isinf.c: Likewise.
40202         * tests/test-strerror.c: Likewise.
40203         * tests/test-strsignal.c: Likewise.
40204
40205 2009-12-23  Eric Blake  <ebb9@byu.net>
40206
40207         unistd: work around cygwin bug
40208         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40209         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40210         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40211
40212 2009-12-23  Bruno Haible  <bruno@clisp.org>
40213
40214         localename: More tests.
40215         * tests/test-localename.c (SIZEOF): New macro.
40216         (categories): New variable.
40217         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40218         test_locale_name_default): Add test w.r.t. thread locale.
40219         (test_locale_name_thread): New function.
40220         (main): Invoke it.
40221
40222         localename: Make aware of thread locale.
40223         * lib/localename.h (gl_locale_name_thread): New declaration.
40224         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40225         behaviour with respect to thread locale.
40226         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40227         <langinfo.h>, glthread/lock.h.
40228         (SIZE_BITS): New macro.
40229         (string_hash): New function.
40230         (struct hash_node): New type.
40231         (HASH_TABLE_SIZE): New macro.
40232         (struniq_hash_table, struniq_lock): New variables.
40233         (struniq): New function.
40234         (gl_locale_name_thread): New function.
40235         (gl_locale_name): Invoke it.
40236         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40237         * modules/localename (Depends-on): Add lock.
40238         Reported by Mike Gran <spk121@yahoo.com>.
40239
40240 2009-12-23  Eric Blake  <ebb9@byu.net>
40241
40242         va-args: new module
40243         * modules/va-args: New file.
40244         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40245         * MODULES.html.sh (Core language properties): Mention it.
40246
40247         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40248         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40249         named alias for __attribute__((__unused__)).
40250         * lib/chown.c: Update client.
40251         * lib/fchmodat.c: Likewise.
40252         * lib/fts.c: Likewise.
40253         * lib/getdate.y: Likewise.
40254         * lib/getgroups.c: Likewise.
40255         * lib/getopt.c: Likewise.
40256         * lib/getugroups.c: Likewise.
40257         * lib/mkdir.c: Likewise.
40258         * lib/mkfifo.c: Likewise.
40259         * lib/mkfifoat.c: Likewise.
40260         * lib/mknod.c: Likewise.
40261         * lib/mknodat.c: Likewise.
40262         * lib/readlink.c: Likewise.
40263         * lib/se-context.in.h: Likewise.
40264         * lib/se-selinux.in.h: Likewise.
40265         * lib/sockets.c: Likewise.
40266         * lib/symlink.c: Likewise.
40267         * lib/symlinkat.c: Likewise.
40268         * lib/unicodeio.c: Likewise.
40269         * lib/unistr.h: Likewise.
40270         * tests/test-areadlink.c: Likewise.
40271         * tests/test-areadlinkat.c: Likewise.
40272         * tests/test-filenamecat.c: Likewise.
40273         * tests/test-fseeko.c: Likewise.
40274         * tests/test-ftello.c: Likewise.
40275         * tests/test-getdate.c: Likewise.
40276         * tests/test-getgroups.c: Likewise.
40277         * tests/test-gethostname.c: Likewise.
40278         * tests/test-quotearg.c: Likewise.
40279         * tests/test-version-etc.c: Likewise.
40280         * tests/test-xalloc-die.c: Likewise.
40281         * tests/test-xfprintf-posix.c: Likewise.
40282         * tests/test-xprintf-posix.c: Likewise.
40283         * tests/test-xvasprintf.c: Likewise.
40284
40285         tests: avoid compiler warnings
40286         * tests/test-fcntl.c (main): Delete unused parameters.
40287         * tests/test-freopen-safer.c (main): Likewise.
40288         * tests/test-xalloc-die.c (main): Mark unused parameters.
40289         * tests/test-fseeko.c (main): Likewise.
40290         * tests/test-ftello.c (main): Likewise.
40291         * tests/test-nanosleep.c (main): Avoid declaration warning.
40292         * tests/test-sleep.c (main): Likewise.
40293         * tests/test-unsetenv.c (main): Silence warning about string
40294         literal.
40295         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40296
40297 2009-12-23  Bruno Haible  <bruno@clisp.org>
40298
40299         * tests/test-localename.c (test_locale_name): New function, extracted
40300         from main. Also test mixed situations.
40301         (test_locale_name_posix, test_locale_name_environ,
40302         test_locale_name_default): New functions.
40303         (main): Invoke them all.
40304         * modules/localename-tests (configure.ac): Test for newlocale.
40305
40306 2009-12-23  Bruno Haible  <bruno@clisp.org>
40307
40308         unistd: Ensure getcwd gets declared before being overridden.
40309         * lib/unistd.in.h: Conditionally include <io.h>.
40310
40311 2009-12-22  Bruno Haible  <bruno@clisp.org>
40312
40313         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40314         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40315         (gl_WCHAR_H): Invoke it.
40316         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40317         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40318         Reported by Karl Berry <karl@freefriends.org>.
40319
40320 2009-12-22  Eric Blake  <ebb9@byu.net>
40321
40322         math, unistd: avoid redundant includes
40323         * lib/math.in.h (isnan): No need to re-include <math.h>.
40324         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40325
40326         getsubopt: work around cygwin bug
40327         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40328         avoid conflicting with system getsubopt.
40329         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40330         bug.
40331
40332         getopt: synchronize from glibc
40333         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40334         parameter order.  Adjust all callers.
40335         (_getopt_internal_r, main): Adjust quoting in error messages.
40336         Drop considerations for outdated POSIX 1003.2 error message.
40337         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40338         callers.
40339         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40340
40341         test-getopt: test stderr behavior
40342         * modules/getopt-posix-tests (Depends-on): Add dup2.
40343         * tests/test-getopt.c (ASSERT): Avoid stderr.
40344         (main): Move stderr to a temporary file.
40345         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40346         Instead, add parameter to inform caller if output occurred.
40347         (test_getopt): Adjust all existing tests to expect silence, and
40348         add new tests of leading ":".
40349         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40350         glibc shortcomings with leading "-:" or "+:" in optstring.
40351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40352         Likewise.
40353         * doc/posix-functions/getopt.texi (getopt): Likewise.
40354
40355         test-getopt: enhance test
40356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40357         supports optind=0.
40358         * tests/test-getopt.c (OPTIND_MIN): Move...
40359         * tests/test-getopt.h (OPTIND_MIN): ...here.
40360         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40361         Require that optind=0 works, since modern BSD supports it in
40362         addition to optreset, and since coreutils expects it.
40363         (test_getopt_long_only): New test.
40364         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40365         glibc shortcomings with 'W;', and enforcement of optind=0.
40366         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40367         Likewise.
40368
40369 2009-12-21  Bruno Haible  <bruno@clisp.org>
40370
40371         localename: Improvements for MacOS X and Cygwin.
40372         * lib/localename.h (gl_locale_name_environ): New declaration.
40373         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40374         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40375         (gl_locale_name_posix): Invoke it.
40376         (gl_locale_name_default): Add comments. Use Windows native API also on
40377         Cygwin.
40378
40379 2009-12-21  Bruno Haible  <bruno@clisp.org>
40380
40381         Update list of Win32 locale ids.
40382         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40383         (LANG_SAMI): Renamed from LANG_SAAMI.
40384         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40385         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40386         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40387         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40388         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40389         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40390         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40391         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40392         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40393         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40394         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40395         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40396         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40397         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40398         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40399         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40400         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40401         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40402         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40403         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40404         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40405         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40406         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40407         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40408         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40409         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40410         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40411         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40412         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40413         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40414         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40415         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40416         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40417         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40418         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40419         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40420         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40421         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40422         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40423         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40424         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40425         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40426         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40427         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40428         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40429         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40430         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40431         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40432         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40433         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40434         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40435         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40436         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40437         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40438         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40439         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40440         Add more languages and countries for Sami, Sorbian. Add more countries
40441         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40442         for Pashto. Change country for Syriac, Tswana.
40443
40444 2009-12-21  Eric Blake  <ebb9@byu.net>
40445
40446         test-utimens: avoid spurious failure
40447         * tests/test-chown.h (nap): Factor...
40448         * tests/nap.h: ...into new file.
40449         * tests/test-lchown.h (nap): Avoid duplication.
40450         * tests/test-utimens-common.h (nap): Use shared implementation,
40451         necessary on file systems with 1-second resolution.
40452         * modules/chown-tests (Files): Include new file.
40453         * modules/fdutimensat-tests (Files): Likewise.
40454         * modules/futimens-tests (Files): Likewise.
40455         * modules/lchown-tests (Files): Likewise.
40456         * modules/openat-tests (Files): Likewise.
40457         * modules/utimens-tests (Files): Likewise.
40458         * modules/utimensat-tests (Files): Likewise.
40459
40460 2009-12-19  Eric Blake  <ebb9@byu.net>
40461
40462         futimens, utimensat: work around Linux bug
40463         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40464         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40465         * lib/utimensat.c (rpl_utimensat): Work around it.
40466         * lib/futimens.c (rpl_futimens): Adjust comment.
40467
40468         utimens: work around Linux ctime bug
40469         * lib/utimens.c (detect_ctime_bug): New helper function.
40470         (update_timespec): Differentiate between workaround needed for
40471         this bug vs. what is needed for systems that lack utimensat.
40472         (fdutimens, lutimens): Work around bug.
40473
40474         utimens: check for ctime update
40475         * tests/test-utimens-common.h (check_ctime): Define.
40476         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40477         * tests/test-futimens.h (test_futimens): Likewise.
40478         * tests/test-lutimens.h (test_lutimens): Likewise.
40479         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40480         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40481
40482 2009-12-19  Bruno Haible  <bruno@clisp.org>
40483
40484         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40485         * tests/test-dprintf-posix2.sh: New file.
40486         * tests/test-dprintf-posix2.c: New file.
40487         * modules/dprintf-posix-tests (Files): Add them.
40488         (configure.ac): Check for getrlimit and setrlimit.
40489         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40490
40491 2009-12-19  Bruno Haible  <bruno@clisp.org>
40492
40493         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40494         * tests/test-fprintf-posix3.sh: New file.
40495         * tests/test-fprintf-posix3.c: New file.
40496         * modules/fprintf-posix-tests (Files): Add them.
40497         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40498
40499 2009-12-19  Eric Blake  <ebb9@byu.net>
40500
40501         dirfd: fix prototype
40502         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40503         * lib/dirfd.c (dirfd): Likewise.
40504
40505         canonicalize: reduce memory usage
40506         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40507         allocation to size.
40508         Reported by Solar Designer <solar@openwall.com>.
40509
40510 2009-12-19  Bruno Haible  <bruno@clisp.org>
40511
40512         New module attribute 'Applicability'.
40513         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40514         * gnulib-tool: New option --extract-applicability.
40515         (func_usage): Document it.
40516         (sed_extract_prog): Recognize it.
40517         (func_get_applicability): New function.
40518         (func_import): Generalize handling of 'link-warning' module.
40519         * modules/link-warning (Applicability): New section.
40520         * modules/arg-nonnull (Applicability): New section.
40521         Repoted by Simon Josefsson <simon@josefsson.org>.
40522
40523 2009-12-19  Bruno Haible  <bruno@clisp.org>
40524
40525         fflush: tweak
40526         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40527         * lib/fseeko.c (rpl_fseeko): Likewise.
40528
40529 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40530
40531         * lib/gl_list.h: Fix typo in comment.
40532
40533 2009-12-16  Eric Blake  <ebb9@byu.net>
40534
40535         fcntl: use to simplify other modules
40536         * modules/cloexec (Depends-on): Add fcntl.
40537         * modules/fchdir (Depends-on): Likewise.
40538         * modules/fd-safer-flag (Depends-on): Likewise.
40539         * modules/unistd-safer (Depends-on): Likewise.
40540         * modules/dup3 (configure.ac): Set module indicator.
40541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40542         missing.
40543         * lib/fchdir.c (_gl_register_dup): Fix comment.
40544         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40545         * lib/dup-safer.c (dup_safer): Likewise.
40546         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40547         * lib/dup3.c (dup3): Likewise.
40548         * tests/test-fchdir.c (main): Enhance test.
40549         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40550
40551         fcntl: port portions of fcntl to mingw
40552         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40553         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40554         replacement for mingw.
40555         * modules/fcntl (Description): Update.
40556         (Depends-on): Add dup2.
40557         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40558         * modules/fcntl-h (Makefile.am): Substitute it.
40559         * lib/fcntl.in.h (fcntl): Update declaration.
40560         (F_DUPFD, F_GETFD): New macros, when needed.
40561         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40562         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40563         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40564         we now guarantee.
40565
40566         fcntl: work around cygwin bug in F_DUPFD
40567         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40568         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40569         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40570         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40571         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40572
40573         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40574         * modules/fcntl (Files): List new files.
40575         (configure.ac): Run a test.
40576         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40577         * lib/fcntl.c (rpl_fcntl): Likewise.
40578         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40579         (gl_FCNTL_H): Always replace fcntl.h.
40580         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40581         * lib/fcntl.in.h (fcntl): Declare replacement.
40582         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40583         needed, plus a witness.
40584         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40585         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40586         * tests/test-fcntl.c: New file.
40587         * modules/fcntl-tests: Likewise.
40588
40589         binary-io: avoid potential compilation warning
40590         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40591         directives.
40592
40593         fflush: avoid compilation error on NetBSD
40594         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40595         between off_t and fpos_t, since the latter is sometimes a struct.
40596         * lib/fseeko.c (rpl_fseeko): Likewise.
40597         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40598
40599 2009-12-15  Eric Blake  <ebb9@byu.net>
40600
40601         fcntl-h, stdio, sys_ioctl: fix declarations
40602         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40603         function must not take arguments.
40604         * lib/sys_ioctl.in.h (ioctl): Likewise.
40605         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40606         (open): Add a link warning.
40607
40608 2009-12-15  Jim Meyering  <meyering@redhat.com>
40609
40610         areadlink, areadlink-with-size: relax license to LGPLv2+
40611         * modules/areadlink (License): Relax to LGPLv2+.
40612         * modules/areadlink-with-size (License): Likewise.
40613
40614 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40615             Bruno Haible  <bruno@clisp.org>
40616
40617         *printf: Fix memory leak.
40618         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40619         * lib/vfprintf.c (vfprintf): Likewise.
40620         * lib/dprintf.c (dprintf): Likewise.
40621         * lib/vdprintf.c (vdprintf): Likewise.
40622
40623 2009-12-14  Eric Blake  <ebb9@byu.net>
40624
40625         accept4: adjust module dependencies
40626         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40627
40628         utimens: one more try at avoiding compiler warning
40629         * lib/utimens.c (lutimens): Lower scope of result.
40630
40631 2009-12-13  Bruno Haible  <bruno@clisp.org>
40632
40633         Move the malloc checking from module 'list' to new module 'xlist'.
40634         * modules/xlist: New file.
40635         * lib/gl_xlist.h: New file.
40636         * lib/gl_xlist.c: New file.
40637         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40638         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40639         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40640         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40641         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40642         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40643         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40644         gl_sortedlist_nx_add): New declarations.
40645         (struct gl_list_implementation): Rename and change methods accordingly.
40646         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40647         (gl_list_nx_create): Renamed from gl_list_create.
40648         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40649         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40650         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40651         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40652         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40653         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40654         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40655         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40656         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40657         gl_list_create_empty.
40658         (gl_list_nx_create): Renamed from gl_list_create.
40659         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40660         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40661         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40662         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40663         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40664         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40665         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40666         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40667         * lib/gl_array_list.c: Don't include xalloc.h.
40668         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40669         NULL upon out-of-memory.
40670         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40671         out-of-memory.
40672         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40673         Change return type to 'int'.
40674         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40675         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40676         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40677         upon out-of-memory.
40678         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40679         upon out-of-memory.
40680         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40681         upon out-of-memory.
40682         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40683         upon out-of-memory.
40684         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40685         out-of-memory.
40686         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40687         Update.
40688         (gl_array_list_implementation): Update.
40689         * lib/gl_carray_list.c: Don't include xalloc.h.
40690         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40691         Return NULL upon out-of-memory.
40692         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40693         out-of-memory.
40694         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40695         Change return type to 'int'.
40696         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40697         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40698         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40699         upon out-of-memory.
40700         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40701         upon out-of-memory.
40702         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40703         out-of-memory.
40704         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40705         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40706         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40707         Update.
40708         (gl_carray_list_implementation): Update.
40709         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40710         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40711         gl_linked_create_empty. Return NULL upon out-of-memory.
40712         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40713         out-of-memory.
40714         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40715         Change return type to 'int'. Return -1 upon out-of-memory.
40716         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40717         out-of-memory.
40718         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40719         upon out-of-memory.
40720         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40721         upon out-of-memory.
40722         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40723         NULL upon out-of-memory.
40724         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40725         upon out-of-memory.
40726         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40727         out-of-memory.
40728         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40729         Update.
40730         * lib/gl_linked_list.c: Don't include xalloc.h.
40731         (gl_linked_list_implementation): Update.
40732         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40733         (add_to_bucket): Change return type to 'int'.
40734         (gl_linkedhash_list_implementation): Update.
40735         * lib/gl_anytree_list1.h (free_subtree): New function.
40736         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40737         gl_tree_create_empty. Return NULL upon out-of-memory.
40738         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40739         Change return type to 'int'. Return -1 upon out-of-memory.
40740         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40741         out-of-memory.
40742         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40743         (gl_tree_remove_node): New function, moved here from
40744         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40745         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40746         Update.
40747         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40748         malloc, not xmalloc. Return NULL upon out-of-memory.
40749         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40750         out-of-memory.
40751         (gl_tree_remove_node_from_tree): New function, extracted from
40752         gl_tree_remove_node.
40753         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40754         upon out-of-memory.
40755         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40756         out-of-memory.
40757         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40758         upon out-of-memory.
40759         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40760         upon out-of-memory.
40761         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40762         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40763         not xmalloc. Return NULL upon out-of-memory.
40764         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40765         out-of-memory.
40766         (gl_tree_remove_node_from_tree): New function, extracted from
40767         gl_tree_remove_node.
40768         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40769         upon out-of-memory.
40770         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40771         out-of-memory.
40772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40773         upon out-of-memory.
40774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40775         upon out-of-memory.
40776         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40777         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40778         gl_anytree_list1.h before gl_anyavltree_list2.h.
40779         (gl_avltree_list_implementation): Update.
40780         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40781         gl_anytree_list1.h before gl_anyavltree_list2.h.
40782         (gl_rbtree_list_implementation): Update.
40783         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40784         Change return type to 'int'. Return -1 upon out-of-memory. Use
40785         __builtin_expect.
40786         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40787         (gl_avltreehash_list_implementation): Update.
40788         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40789         (gl_rbtreehash_list_implementation): Update.
40790         * modules/array-list (Depends-on): Remove xalloc.
40791         * modules/carray-list (Depends-on): Likewise.
40792         * modules/linked-list (Depends-on): Likewise.
40793         * modules/linkedhash-list (Depends-on): Likewise.
40794         * modules/avltree-list (Depends-on): Likewise.
40795         * modules/rbtree-list (Depends-on): Likewise.
40796         * modules/avltreehash-list (Depends-on): Likewise.
40797         * modules/rbtreehash-list (Depends-on): Likewise.
40798
40799         * modules/xsublist: New file.
40800         * lib/gl_xsublist.h: New file.
40801         * lib/gl_xsublist.c: New file.
40802         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40803         (gl_sublist_nx_create): New declaration.
40804         * lib/gl_sublist.c: Don't include xalloc.h.
40805         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40806         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40807         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40808         Change return type to 'int'. Return -1 upon out-of-memory.
40809         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40810         upon out-of-memory.
40811         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40812         NULL upon out-of-memory.
40813         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40814         upon out-of-memory.
40815         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40816         NULL upon out-of-memory.
40817         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40818         NULL upon out-of-memory.
40819         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40820         upon out-of-memory.
40821         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40822         (gl_sublist_list_implementation): Update.
40823         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40824         upon out-of-memory.
40825         * modules/sublist (Depends-on): Remove xalloc.
40826
40827         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40828         * tests/test-carray_list.c: Likewise.
40829         * tests/test-linked_list.c: Likewise.
40830         * tests/test-linkedhash_list.c: Likewise.
40831         * tests/test-avltree_list.c: Likewise.
40832         * tests/test-rbtree_list.c: Likewise.
40833         * tests/test-avltreehash_list.c: Likewise.
40834         * tests/test-rbtreehash_list.c: Likewise.
40835         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40836         * modules/carray-list-tests (Makefile.am): Likewise.
40837         * modules/linked-list-tests (Makefile.am): Likewise.
40838         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40839         * modules/avltree-list-tests (Makefile.am): Likewise.
40840         * modules/rbtree-list-tests (Makefile.am): Likewise.
40841         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40842         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40843
40844         * NEWS: Mention the changes.
40845
40846         * lib/clean-temp.c: Include gl_xlist.h.
40847         * modules/clean-temp (Depends-on): Add xlist.
40848
40849         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40850         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40851
40852         * tests/test-array_oset.c: Include gl_xlist.h.
40853         * modules/array-oset-tests (Depends-on): Add xlist.
40854
40855         Reported by José E. Marchesi <jemarch@gnu.org>.
40856
40857 2009-12-13  Bruno Haible  <bruno@clisp.org>
40858
40859         Move the malloc checking from module 'oset' to new module 'xoset'.
40860         * modules/xoset: New file.
40861         * lib/gl_xoset.h: New file.
40862         * lib/gl_xoset.c: New file.
40863         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40864         declarations.
40865         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40866         (struct gl_oset_implementation): Rename and change methods accordingly.
40867         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40868         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40869         'int'. Mark as __warn_unused_result__.
40870         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40871         gl_oset_create_empty.
40872         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40873         'int'.
40874         * lib/gl_array_oset.c: Don't include xalloc.h.
40875         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40876         malloc, not xmalloc.
40877         (grow): Change return type to 'int'. Don't call xalloc_die.
40878         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40879         to 'int'.
40880         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40881         'int'.
40882         (gl_array_oset_implementation): Update.
40883         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40884         gl_tree_create_empty.
40885         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40886         'int'.
40887         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40888         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40889         xmalloc.
40890         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40891         not xmalloc.
40892         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40893         xmalloc.
40894         (gl_avltree_oset_implementation): Update.
40895         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40896         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40897         xmalloc.
40898         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40899         not xmalloc.
40900         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40901         xmalloc.
40902         (gl_rbtree_oset_implementation): Update.
40903         * modules/array-oset (Depends-on): Remove xalloc.
40904         * modules/avltree-oset (Depends-on): Likewise.
40905         * modules/rbtree-oset (Depends-on): Likewise.
40906         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40907         * tests/test-avltree_oset.c: Likewise.
40908         * tests/test-rbtree_oset.c: Likewise.
40909         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40910         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40911         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40912         * NEWS: Mention the change.
40913
40914 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40915
40916         maint.mk: allow a project to override release-prep commands
40917         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40918         commands into a new rule.
40919         (release-prep): New rule.
40920         (release-prep-hook): New overridable variable.
40921
40922 2009-12-13  Bruno Haible  <bruno@clisp.org>
40923
40924         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40925
40926 2009-12-13  Jim Meyering  <meyering@redhat.com>
40927
40928         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40929         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40930
40931 2009-12-12  Bruno Haible  <bruno@clisp.org>
40932
40933         duplocale: Tweak.
40934         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40935
40936 2009-12-12  Karl Berry  <karl@gnu.org>
40937
40938         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40939
40940 2009-12-12  Bruno Haible  <bruno@clisp.org>
40941
40942         * m4/po.m4: Undo incorrect untabification.
40943
40944 2009-12-12  Bruno Haible  <bruno@clisp.org>
40945
40946         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40947         * modules/c-strtod (Depends-on): Add locale.
40948         * modules/c-strtold (Depends-on): Likewise.
40949
40950 2009-12-12  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40953
40954 2009-12-11  Eric Blake  <ebb9@byu.net>
40955
40956         setenv: relax requirement in light of POSIX ruling
40957         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40958         not NULL.
40959         * tests/test-setenv.c (main): Relax test.
40960         * tests/test-unsetenv.c (main): Likewise.
40961         * doc/posix-functions/setenv.texi (setenv): Document this.
40962         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40963
40964 2009-12-11  Bruno Haible  <bruno@clisp.org>
40965
40966         New module 'fd-safer-flag'.
40967         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40968         * lib/dup-safer.c (dup_safer_flag): Remove function.
40969         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40970         * lib/fd-safer.c (fd_safer_flag): Remove function.
40971         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40972         * modules/cloexec (configure.ac): Drop indicator macro.
40973         * modules/fd-safer-flag: New file.
40974         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40975         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40976         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40977
40978 2009-12-11  Bruno Haible  <bruno@clisp.org>
40979
40980         Tests for module 'nl_langinfo'.
40981         * modules/nl_langinfo-tests: New file.
40982         * tests/test-nl_langinfo.sh: New file.
40983         * tests/test-nl_langinfo.c: New file.
40984
40985         New module 'nl_langinfo'.
40986         * lib/nl_langinfo.c: New file.
40987         * m4/nl_langinfo.m4: New file.
40988         * modules/nl_langinfo: New file.
40989         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40990
40991 2009-12-11  Bruno Haible  <bruno@clisp.org>
40992
40993         Tests for module 'langinfo'.
40994         * modules/langinfo-tests: New file.
40995         * tests/test-langinfo.c: New file.
40996
40997         New module 'langinfo'.
40998         * lib/langinfo.in.h: New file.
40999         * m4/langinfo_h.m4: New file.
41000         * modules/langinfo: New file.
41001         * doc/posix-headers/langinfo.texi: Mention the new module.
41002
41003 2009-12-11  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/config.charset: Untabify.
41006
41007 2009-12-11  Bruno Haible  <bruno@clisp.org>
41008
41009         * modules/unistd-safer (configure.ac): Drop indicator macro.
41010
41011 2009-12-11  Bruno Haible  <bruno@clisp.org>
41012
41013         Move pipe2-safer code to its own file.
41014         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41015         * lib/pipe-safer.c (pipe2_safer): Remove function.
41016         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41017         (Makefile.am): Add it to lib_SOURCES.
41018
41019 2009-12-10  Bruno Haible  <bruno@clisp.org>
41020
41021         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41022
41023 2009-12-10  Bruno Haible  <bruno@clisp.org>
41024
41025         Declare which arguments expect non-NULL values, for GCC and clang.
41026         * build-aux/arg-nonnull.h: New file.
41027         * modules/arg-nonnull: New file.
41028         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41029         (inet_ntop, inet_pton): Use it.
41030         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41031         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41032         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41033         (open, openat): Use it.
41034         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41035         (fnmatch): Use it.
41036         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41037         (getopt, getopt_long, getopt_long_only): Use it.
41038         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41039         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41040         Use it.
41041         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41042         (iconv_open): Use it.
41043         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41044         (strtoimax, strtoumax): Use it.
41045         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41046         (duplocale): Use it.
41047         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41048         (frexp, frexpl): Use it.
41049         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41050         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41051         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41052         (tsearch, tfind, tdelete, twalk): Use it.
41053         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41054         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41055         sigpending): Use it.
41056         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41057         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41058         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41059         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41060         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41061         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41062         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41063         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41064         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41065         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41066         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41067         Use it.
41068         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41069         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41070         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41071         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41072         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41073         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41074         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41075         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41076         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41077         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41078         strtoull, unsetenv): Use it.
41079         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41080         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41081         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41082         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41083         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41084         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41085         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41086         (strcasecmp, strncasecmp): Use it.
41087         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41088         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41089         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41090         rpl_setsockopt): Use it.
41091         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41092         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41093         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41094         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41095         (gettimeofday): Use it.
41096         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41097         (times): Use it.
41098         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41099         (uname): Use it.
41100         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41101         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41102         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41103         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41104         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41105         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41106         unlinkat, write): Use it.
41107         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41108         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41109         * lib/argv-iter.h: Include arg-nonnull.h.
41110         (_ATTRIBUTE_NONNULL_): Remove macro.
41111         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41112         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41113         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41114         optimization.
41115         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41116         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41117         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41118         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41119         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41120         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41121         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41122         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41123         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41124         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41125         * modules/dirent (Depends-on): Add arg-nonnull.
41126         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41127         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41128         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41129         * modules/fnmatch (Depends-on): Add arg-nonnull.
41130         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41131         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41132         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41133         * modules/glob (Depends-on): Add arg-nonnull.
41134         (Makefile.am): Insert arg-nonnull.h into glob.h.
41135         * modules/iconv_open (Depends-on): Add arg-nonnull.
41136         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41137         * modules/inttypes (Depends-on): Add arg-nonnull.
41138         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41139         * modules/locale (Depends-on): Add arg-nonnull.
41140         (Makefile.am): Insert arg-nonnull.h into locale.h.
41141         * modules/math (Depends-on): Add arg-nonnull.
41142         (Makefile.am): Insert arg-nonnull.h into math.h.
41143         * modules/netdb (Depends-on): Add arg-nonnull.
41144         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41145         * modules/search (Depends-on): Add arg-nonnull.
41146         (Makefile.am): Insert arg-nonnull.h into search.h.
41147         * modules/signal (Depends-on): Add arg-nonnull.
41148         (Makefile.am): Insert arg-nonnull.h into signal.h.
41149         * modules/spawn (Depends-on): Add arg-nonnull.
41150         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41151         * modules/stdio (Depends-on): Add arg-nonnull.
41152         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41153         * modules/stdlib (Depends-on): Add arg-nonnull.
41154         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41155         * modules/string (Depends-on): Add arg-nonnull.
41156         (Makefile.am): Insert arg-nonnull.h into string.h.
41157         * modules/strings (Depends-on): Add arg-nonnull.
41158         (Makefile.am): Insert arg-nonnull.h into strings.h.
41159         * modules/sys_socket (Depends-on): Add arg-nonnull.
41160         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41161         * modules/sys_stat (Depends-on): Add arg-nonnull.
41162         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41163         * modules/sys_time (Depends-on): Add arg-nonnull.
41164         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41165         * modules/sys_times (Depends-on): Add arg-nonnull.
41166         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41167         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41168         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41169         * modules/time (Depends-on): Add arg-nonnull.
41170         (Makefile.am): Insert arg-nonnull.h into time.h.
41171         * modules/unistd (Depends-on): Add arg-nonnull.
41172         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41173         * modules/wchar (Depends-on): Add arg-nonnull.
41174         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41175         * modules/argv-iter (Depends-on): Add arg-nonnull.
41176         * tests/test-canonicalize.c (null_ptr): New function.
41177         (main): Use it.
41178         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41179         (main): Use it.
41180         * tests/test-memmem.c (null_ptr): New function.
41181         (main): Use it.
41182         Reported by Jim Meyering.
41183
41184 2009-12-10  Bruno Haible  <bruno@clisp.org>
41185
41186         Use spaces for indentation, not tabs.
41187         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41188         * m4/*.m4: Untabify.
41189         * build-aux/*.h: Untabify.
41190         * tests/**/*.[hc]: Untabify.
41191         * README: New section "Indent with spaces, not TABs", based on
41192         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41193         * NEWS: Mention the change.
41194
41195 2009-12-10  Bruno Haible  <bruno@clisp.org>
41196
41197         pty test: Fix link error.
41198         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41199         test_pty_LDADD.
41200
41201 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41202
41203         * modules/pty: New file.
41204         * modules/pty-tests: New file.
41205         * m4/pty.m4: New file.
41206         * tests/test-pty.c: New file.
41207         * doc/glibc-headers/pty.texi: Modified.
41208         * doc/glibc-functions/forkpty.texi: Modified.
41209         * doc/glibc-functions/openpty.texi: Modified.
41210
41211 2009-12-10  Bruno Haible  <bruno@clisp.org>
41212
41213         Avoid syntax error in C++ mode.
41214         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41215
41216 2009-12-10  Bruno Haible  <bruno@clisp.org>
41217
41218         Use sed with option -e.
41219         * gnulib-tool (func_version, func_emit_copyright_notice,
41220         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41221         option -e to sed.
41222         * modules/link-warning (Makefile.am): Likewise.
41223
41224 2009-12-10  Jim Meyering  <meyering@redhat.com>
41225
41226         mgetgroups: do not write bytes beyond end of malloc'd buffer
41227         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41228         username, we call getgroups with a one-element-shorter buffer,
41229         but still told it the length was original, max_n_groups.
41230
41231 2009-12-09  Eric Blake  <ebb9@byu.net>
41232
41233         cloexec: relax license
41234         * modules/cloexec (Maintainer): Add myself.
41235         (License): Use LGPL, not GPL.
41236
41237         link-warning: optimize generation
41238         * modules/link-warning (Makefile.am): Reduce process usage.
41239
41240 2009-12-09  Bruno Haible  <bruno@clisp.org>
41241
41242         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41243         workaround was added on 2009-11-17.
41244
41245 2009-12-09  Jim Meyering  <meyering@redhat.com>
41246             Bruno Haible  <bruno@clisp.org>
41247
41248         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41249         * modules/link-warning (Makefile.am): Make the comment-removing sed
41250         command more robust in the face of bootstrap-prepended comment lines.
41251
41252 2009-12-09  Bruno Haible  <bruno@clisp.org>
41253
41254         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41255         most one group.
41256
41257 2009-12-09  Simon Josefsson <simon@josefsson.org>
41258             Bruno Haible  <bruno@clisp.org>
41259
41260         * build-aux/link-warning.h: Add copyright notice.
41261         * modules/link-warning (Makefile.am): Generate link-warning.h from
41262         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41263         * NEWS: Mention change in link-warning module.
41264         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41265         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41266         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41267         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41268         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41269         * modules/math (Makefile.am): Add dependency to math.h.
41270         * modules/search (Makefile.am): Add dependency to search.h.
41271         * modules/signal (Makefile.am): Add dependency to signal.h.
41272         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41273         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41274         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41275         * modules/string (Makefile.am): Add dependency to string.h.
41276         * modules/strings (Makefile.am): Add dependency to strings.h.
41277         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41278         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41279         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41280         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41281         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41282         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41283         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41284         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41285         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41286
41287 2009-12-09  Bruno Haible  <bruno@clisp.org>
41288
41289         fchdir: Optimize away rpl_fstat when possible.
41290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41291         REPLACE_OPEN_DIRECTORY.
41292         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41293
41294 2009-12-09  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/fchdir.c: Update comment.
41297
41298 2009-12-09  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41301
41302 2009-12-08  Eric Blake  <ebb9@byu.net>
41303
41304         fchdir: avoid memory leak on re-registration.
41305         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41306
41307 2009-12-08  Jim Meyering  <meyering@redhat.com>
41308
41309         init.sh: avoid Solaris 10 /bin/sh portability problem
41310         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41311         sourced script:
41312           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41313           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41314           bar
41315         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41316         and two tests used that idiom.
41317         * tests/init.sh: Update suggested usage comments.
41318         (path_prepend_): New function, to be used in place
41319         of the --src-path=DIR option.
41320         (setup_): Move PATH-prepending code into path_prepend_.
41321         * tests/test-pread.sh: Adapt to new usage.
41322         * tests/test-xalloc-die.sh: Likewise.
41323
41324 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41325
41326         * doc/gnulib.texi (Glibc pty.h): Add.
41327         * doc/glibc-functions/forkpty.texi: Add.
41328         * doc/glibc-functions/openpty.texi: Add.
41329         Suggested by Bruno Haible.
41330
41331 2009-12-08  Eric Blake  <ebb9@byu.net>
41332
41333         fchdir: fix logic bugs
41334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41335         * tests/test-fchdir.c (main): Enhance test.
41336         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41337         is in use.
41338
41339         dup2: fix logic bugs
41340         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41341         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41342         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41343         exists.
41344         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41345
41346 2009-12-07  Eric Blake  <ebb9@byu.net>
41347
41348         unlink: fix m4 detection
41349         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41350
41351         unistd-safer: add unit test
41352         * modules/unistd-safer-tests: New file.
41353         * tests/test-dup-safer.c: Likewise.
41354         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41355         * tests/test-dup2.c (setmode): Likewise.
41356         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41357
41358         cloexec: preserve text vs. binary across dup_cloexec
41359         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41360         mode.
41361         * modules/dup2-tests (Depends-on): Add binary-io.
41362         * modules/cloexec-tests (Depends-on): Likewise.
41363         * tests/test-dup2.c (setmode, is_mode): New helpers.
41364         (main): Add tests that translation mode is preserved.
41365         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41366         Reported by Bruno Haible.
41367
41368         mgetgroups: reduce duplicate listings
41369         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41370         resulting array.
41371         * tests/test-chown.h (test_chown): Simplify client.
41372         * tests/test-lchown.h (test_lchown): Likewise.
41373
41374 2009-12-06  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41377         value.
41378
41379 2009-12-06  Bruno Haible  <bruno@clisp.org>
41380
41381         * lib/progname.c: Include stdio.h, stdlib.h.
41382         (set_program_name): Reject a NULL argument.
41383
41384 2009-12-05  Eric Blake  <ebb9@byu.net>
41385
41386         pipe2-safer: new module
41387         * modules/pipe2-safer: New file.
41388         * lib/unistd-safer.h (pipe2_safer): New prototype.
41389         * lib/unistd--.h (pipe2): New wrapper.
41390         * lib/pipe-safer.c (pipe2_safer): New function.
41391         * modules/pipe (Depends-on): Add pipe2-safer.
41392         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41393
41394         stdlib-safer: preserve cloexec flag for mkostemp[s]
41395         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41396         fd_safer_flag.
41397
41398         unistd-safer: allow preservation of cloexec status via flag
41399         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41400         prototypes.
41401         * lib/dup-safer.c (dup_safer_flag): New function.
41402         * lib/fd-safer.c (fd_safer_flag): Likewise.
41403         * modules/cloexec (configure.ac): Set witness.
41404
41405         test-dup2: enhance test
41406         * modules/dup2-tests (Depends-on): Add cloexec.
41407         * tests/test-dup2.c (main): Enhance test.
41408
41409         cloexec: add dup_cloexec
41410         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41411         header and comments.
41412         * lib/cloexec.c (set_cloexec_flag): Add comments.
41413         (dup_cloexec): New function, with mingw implementation borrowed
41414         from...
41415         * lib/w32spawn.h (dup_noinherit): ...here.
41416         * modules/execute (Depends-on): Add cloexec.
41417         * modules/pipe (Depends-on): Likewise.
41418         * modules/cloexec (Depends-on): Add dup2.
41419         * modules/cloexec-tests (Files): New file.
41420         * tests/test-cloexec.c: Likewise.
41421
41422         test-xalloc-die: fix test for mingw
41423         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41424         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41425         directory and .exe suffix off argv[0] output.
41426
41427         test-fseeko: fix test for mingw
41428         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41429         than undefining fseek, so test will pass on mingw.
41430
41431 2009-12-05  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/progname.h (set_program_name): Clarify specification.
41434         * lib/progname.c (set_program_name): Likewise.
41435         Reported by Jim Meyering.
41436
41437 2009-12-05  Jim Meyering  <meyering@redhat.com>
41438
41439         maint.mk: backslash-escape parens in default regexp
41440         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41441         backslash-escape the literal parentheses.
41442
41443         maint.mk: news-date-check: use grep -E
41444         * top/maint.mk (today): Define a Make variable, not a...
41445         (news-date-check): ...shell variable.
41446         (news-date-regexp): Use the Make variable.
41447         Use grep's -E option.  Change the failing diagnostic to mention
41448         the variable, $(news-date-regexp).
41449
41450 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41451
41452         maintainer-makefile: allow customization of NEWS entry format
41453         * top/maint.mk (news-date-regexp): New overridable variable.
41454         (news-date-check): Use it.
41455
41456 2009-12-04  Eric Blake  <ebb9@byu.net>
41457
41458         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41459         * lib/mgetgroups.h (xgetgroups): New prototype.
41460         * lib/mgetgroups.c (xgetgroups): New wrapper.
41461         (mgetgroups): Handle ENOSYS.
41462         * modules/mgetgroups (Depends-on): Add realloc.
41463         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41464
41465         mgetgroups: avoid argument promotion issues with -1
41466         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41467         for invalid gid_t.
41468         * tests/test-chown.h (getegid, test_chown): Likewise.
41469         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41470
41471 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41472
41473         exclude: Fix header file problems.
41474         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41475
41476 2009-12-01  Jim Meyering  <meyering@redhat.com>
41477
41478         fts: fts_open: do not let an empty string cause immediate failure
41479         This is required in support of GNU rm, for which the command
41480         "rm A '' B" must process and remove both A and B, in spite of
41481         the empty string argument.
41482         * lib/fts.c (fts_open): Do not let the presence of an empty string
41483         cause fts_open to fail immediately.  Most fts-using tools must be
41484         able to process all arguments, in order, and can be expected to
41485         diagnose such arguments themselves.
41486
41487 2009-11-30  Eric Blake  <ebb9@byu.net>
41488
41489         utimens: fix compilation error
41490         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41491         Declare variable at right scope.
41492
41493 2009-11-29  Jim Meyering  <meyering@redhat.com>
41494
41495         bootstrap: handle perl-5.11's changed --version output
41496         * build-aux/bootstrap (get_version): Handle perl separately,
41497         since perl-5.11's --version output is different.
41498
41499 2009-11-28  Jim Meyering  <meyering@redhat.com>
41500
41501         userspec: depend on the inttostr module, too
41502         * modules/userspec (Depends-on): Add inttostr.
41503
41504         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41505         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41506         number of MAXUID when it evaluates to (uid_t) -1.
41507         Likewise for group ID.  Reported by Matt McCutchen in
41508         <http://savannah.gnu.org/bugs/?28113>
41509
41510         userspec: reformat to use spaces, not TABs
41511         * lib/userspec.c: Expand TABs to spaces.
41512         Add Emacs' "indent-tabs-mode: nil" hint.
41513
41514 2009-11-27  Eric Blake  <ebb9@byu.net>
41515
41516         getopt-gnu: flush out another BSD bug
41517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41518         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41519         flush out BSD bug.
41520         * tests/test-getopt.h (test_getopt): End lists with NULL.
41521         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41522         (test_getopt_long_posix): Enhance test.
41523         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41524         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41525         getopt-gnu.
41526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41527         Likewise.
41528
41529 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41530
41531         * modules/idpriv-droptemp-tests (Notice): Fix text.
41532
41533 2009-11-27  Jim Meyering  <meyering@redhat.com>
41534
41535         test-xalloc-die: avoid spurious failure due to libtool argv difference
41536         In a libtool-enabled project, this test would fail due to a difference
41537         in the emitted program name, e.g.,
41538         -test-xalloc-die: memory exhausted
41539         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41540         Use program to avoid that.
41541         * modules/xalloc-die-tests (Depends-on): Add progname.
41542         * tests/test-xalloc-die.c: Include progname.h".
41543         (program_name): Remove decl.
41544         (main): Call set_program_name.
41545         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41546
41547 2009-11-26  Richard Jones  <rjones@redhat.com>
41548
41549         w32sock: leave win32 error in place.
41550         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41551
41552 2009-11-26  Eric Blake  <ebb9@byu.net>
41553
41554         init.sh: suggest to use skip_ and fail_ functions in comments
41555         * tests/init.sh: Add a sentence.
41556
41557 2009-11-25  Bruno Haible  <bruno@clisp.org>
41558
41559         init.sh: add documentation in comments
41560         * tests/init.sh: Add some developer and user documentation.
41561
41562 2009-11-26  Jim Meyering  <meyering@redhat.com>
41563
41564         init.sh: accommodate even those who specify bogus srcdir manually
41565         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41566         configure-time tests to be sanitized, so that there is no need to
41567         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41568         (with no double quotes) suffices.  However, since tests may be
41569         invoked manually, and since you may explicitly set srcdir to the
41570         name of a directory containing spaces, do quote its uses here.
41571         * tests/test-pread.sh: Likewise.
41572         Suggested by Bruno Haible.
41573
41574         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41575         * tests/test-pread.sh: Write no data into the pipe, because
41576         test-pread actually reads none.  This avoids a diagnostic,
41577         "bash: echo: write error: Broken pipe", that arises in the unusual
41578         event something is ignoring SIGPIPE, and might be interpreted
41579         as some sort of failure.  Reported by Bruno Haible.
41580
41581 2009-11-25  Jim Meyering  <meyering@redhat.com>
41582
41583         test-pread: cover failure with ESPIPE and EINVAL
41584         * tests/test-pread.c (main): Test for failure, too.
41585         * tests/test-pread.sh: Invoke with stdin on a pipe.
41586         Suggested by Eric Blake.
41587
41588         pread: improvement and fix
41589         * modules/pread (Depends-on): Depend on lseek, for portability to
41590         e.g., mingw.  Suggested by Eric Blake.
41591         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41592
41593         unistd.in.h: correct declaration of pread
41594         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41595         Reported by Richard W.M. Jones.
41596
41597         test-pread.sh: distribute the test script
41598         * modules/pread-tests (Files): Include test-pread.sh.
41599
41600         test-pread.sh: clean up
41601         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41602         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41603         That is unnecessary, since it's always ".".
41604         Suggestion from Eric Blake.
41605
41606         test-pread.sh: make executable
41607         * tests/test-pread.sh: Set executable bit.
41608         Reported by Eric Blake.
41609
41610         correct typo in test-pread.sh
41611         * tests/test-pread.sh: Add #! line.
41612
41613         test pread
41614         * tests/test-pread.c: New file.
41615         * tests/test-pread.sh: Likewise.
41616         * modules/pread-tests: Likewise.
41617
41618         pread: new module
41619         * modules/pread: New file.
41620         * lib/unistd.in.h (pread): Define/declare.
41621         * lib/pread.c (pread): New file.
41622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41623         * modules/unistd (Makefile.am): Substitute witnesses.
41624         * doc/posix-functions/pread.texi (pread): Update.
41625         * MODULES.html.sh: Add pread.
41626
41627 2009-11-25  Jim Meyering  <meyering@redhat.com>
41628
41629         tests/init.sh: new file to be used via most *.sh tests
41630         * tests/init.sh: New file.
41631
41632 2009-11-25  Eric Blake  <ebb9@byu.net>
41633
41634         utimens: work around older Linux failure with symlinks
41635         * lib/utimens.c (lutimensat_works_really): New variable.
41636         (fdutimens, lutimens): Use it to manage kernels that support
41637         nanosecond times on files, but not on symlinks.
41638         Reported by OndÅ™ej Vašík.
41639
41640         utimes: fix configure grammar
41641         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41642
41643 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41644
41645         regex: Fix fastmap for multibyte character ranges.
41646         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41647         characters when a multibyte character range is included.
41648
41649 2009-11-22  Andy Wingo  <wingo@pobox.com>
41650
41651         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41652         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41653
41654 2009-11-24  Bruno Haible  <bruno@clisp.org>
41655
41656         doc: Most *_l functions exist in MacOS X 10.5.
41657         * doc/posix-functions/duplocale.texi: Update platforms list.
41658         * doc/posix-functions/freelocale.texi: Likewise.
41659         * doc/posix-functions/newlocale.texi: Likewise.
41660         * doc/posix-functions/uselocale.texi: Likewise.
41661         * doc/posix-functions/isalnum_l.texi: Likewise.
41662         * doc/posix-functions/isalpha_l.texi: Likewise.
41663         * doc/posix-functions/isblank_l.texi: Likewise.
41664         * doc/posix-functions/iscntrl_l.texi: Likewise.
41665         * doc/posix-functions/isdigit_l.texi: Likewise.
41666         * doc/posix-functions/isgraph_l.texi: Likewise.
41667         * doc/posix-functions/islower_l.texi: Likewise.
41668         * doc/posix-functions/isprint_l.texi: Likewise.
41669         * doc/posix-functions/ispunct_l.texi: Likewise.
41670         * doc/posix-functions/isspace_l.texi: Likewise.
41671         * doc/posix-functions/isupper_l.texi: Likewise.
41672         * doc/posix-functions/iswalnum_l.texi: Likewise.
41673         * doc/posix-functions/iswalpha_l.texi: Likewise.
41674         * doc/posix-functions/iswblank_l.texi: Likewise.
41675         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41676         * doc/posix-functions/iswctype_l.texi: Likewise.
41677         * doc/posix-functions/iswdigit_l.texi: Likewise.
41678         * doc/posix-functions/iswgraph_l.texi: Likewise.
41679         * doc/posix-functions/iswlower_l.texi: Likewise.
41680         * doc/posix-functions/iswprint_l.texi: Likewise.
41681         * doc/posix-functions/iswpunct_l.texi: Likewise.
41682         * doc/posix-functions/iswspace_l.texi: Likewise.
41683         * doc/posix-functions/iswupper_l.texi: Likewise.
41684         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41685         * doc/posix-functions/isxdigit_l.texi: Likewise.
41686         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41687         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41688         * doc/posix-functions/strcoll_l.texi: Likewise.
41689         * doc/posix-functions/strfmon_l.texi: Likewise.
41690         * doc/posix-functions/strftime_l.texi: Likewise.
41691         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41692         * doc/posix-functions/strxfrm_l.texi: Likewise.
41693         * doc/posix-functions/tolower_l.texi: Likewise.
41694         * doc/posix-functions/toupper_l.texi: Likewise.
41695         * doc/posix-functions/towctrans_l.texi: Likewise.
41696         * doc/posix-functions/towlower_l.texi: Likewise.
41697         * doc/posix-functions/towupper_l.texi: Likewise.
41698         * doc/posix-functions/wcscoll_l.texi: Likewise.
41699         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41700         * doc/posix-functions/wctrans_l.texi: Likewise.
41701         * doc/posix-functions/wctype_l.texi: Likewise.
41702         * doc/glibc-functions/strptime_l.texi: Likewise.
41703         * doc/glibc-functions/strtod_l.texi: Likewise.
41704         * doc/glibc-functions/strtof_l.texi: Likewise.
41705         * doc/glibc-functions/strtol_l.texi: Likewise.
41706         * doc/glibc-functions/strtold_l.texi: Likewise.
41707         * doc/glibc-functions/strtoll_l.texi: Likewise.
41708         * doc/glibc-functions/strtoul_l.texi: Likewise.
41709         * doc/glibc-functions/strtoull_l.texi: Likewise.
41710         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41711         * doc/glibc-functions/wcstod_l.texi: Likewise.
41712         * doc/glibc-functions/wcstof_l.texi: Likewise.
41713         * doc/glibc-functions/wcstol_l.texi: Likewise.
41714         * doc/glibc-functions/wcstold_l.texi: Likewise.
41715         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41716         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41717         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41718
41719 2009-11-24  Bruno Haible  <bruno@clisp.org>
41720
41721         duplocale: Fix logic bug.
41722         * lib/duplocale.c: Don't include <langinfo.h>.
41723         (_NL_LOCALE_NAME): Remove macro.
41724         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41725         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41726
41727 2009-11-23  Jim Meyering  <meyering@redhat.com>
41728
41729         test-update-copyright: don't hard-code /usr/bin/perl
41730         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41731         perl to print the current year.  Gilles Espinasse reported that
41732         the replaced use of perl was hard-coded as /usr/bin/perl.
41733
41734 2009-11-23  Bruno Haible  <bruno@clisp.org>
41735
41736         duplocale: Add support for glibc 2.3.x.
41737         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41738
41739 2009-11-22  Bruno Haible  <bruno@clisp.org>
41740
41741         vasnprintf: Tiny optimization.
41742         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41743         MacOS X.
41744
41745 2009-11-22  Bruno Haible  <bruno@clisp.org>
41746
41747         Tests for module 'duplocale'.
41748         * modules/duplocale-tests: New file.
41749         * tests/test-duplocale.c: New file.
41750
41751         New module 'duplocale'.
41752         * m4/duplocale.m4: New file.
41753         * lib/locale.in.h (duplocale): New declaration.
41754         * lib/duplocale.c: New file.
41755         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41756         gl_LOCALE_H_DEFAULTS): New macros.
41757         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41758         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41759         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41760         REPLACE_DUPLOCALE.
41761         * modules/duplocale: New file.
41762         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41763
41764 2009-11-22  Bruno Haible  <bruno@clisp.org>
41765
41766         * modules/locale-tests (configure.ac): Test for newlocale function.
41767         * tests/test-locale.c: When the system has extended locale functions,
41768         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41769
41770         locale: Make locale_t available when possible.
41771         * lib/locale.in.h: Include <xlocale.h> when it exists.
41772         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41773         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41774         * modules/locale (Depends-on): Add extensions.
41775         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41776         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41777
41778 2009-11-22  Bruno Haible  <bruno@clisp.org>
41779
41780         Add comments.
41781         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41782         invocation.
41783         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41784         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41785         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41786
41787 2009-11-22  Bruno Haible  <bruno@clisp.org>
41788
41789         error: account for the possibility of freopen (stdout).
41790         * lib/error.c: Include <unistd.h>.
41791         (flush_stdout): New function, extracted from error and error_at_line.
41792         Determine stdout's fd dynamically.
41793         (error, error_at_line): Invoke flush_stdout.
41794         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41795         * modules/error (Depends-on): Add unistd.
41796
41797 2009-11-22  Bruno Haible  <bruno@clisp.org>
41798
41799         diffseq: Add comment.
41800         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41801
41802 2009-11-22  Jim Meyering  <meyering@redhat.com>
41803
41804         c-stack: avoid defining an unused static function
41805         * lib/c-stack.c (find_stack_direction): Do not define this function
41806         when it will not be used.
41807
41808         diffseq: avoid spurious gcc warnings
41809         * lib/diffseq.h (IF_LINT2): Define.
41810         (compareseq): Use it to initialize two members of "part".
41811         This avoids two used-uninitialized warnings.
41812
41813 2009-11-21  Jim Meyering  <meyering@redhat.com>
41814
41815         c-stack: avoid "ignoring return value of `write'" warning
41816         * lib/c-stack.c: Include "ignore-value.h".
41817         (die): Explicitly ignore each write return value.
41818         * modules/c-stack (Depends-on): Add ignore-value.
41819
41820 2009-11-21  Bruno Haible  <bruno@clisp.org>
41821
41822         diffseq: reduce scope of variable 'best'.
41823         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41824         variable, earlier used for two different purposes.
41825
41826 2009-11-21  Jim Meyering  <meyering@redhat.com>
41827
41828         diffseq: remove useless assignment to "best"
41829         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41830         assignment.  At that point "best" is already guaranteed to be zero.
41831
41832 2009-11-20  Eric Blake  <ebb9@byu.net>
41833
41834         build: mention ftp redirector in release announcements
41835         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41836         values that used to come from cfg.mk; mention FTP redirect URL.
41837         * build-aux/announce-gen: Mention the mirror list.
41838         Suggested by Karl Berry.
41839
41840         nanosleep: improve port to mingw
41841         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41843         LIB_NANOSLEEP, but only when needed.
41844         * modules/select (Link): Document LIBSOCKET.
41845         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41846         enough.
41847
41848         nanosleep: work around cygwin bug
41849         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41850         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41851         bug.
41852         (getnow): Delete, not needed.
41853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41854         LIB_CLOCK_GETTIME.
41855         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41856         clock-time, gettime.
41857         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41858         bug.
41859         * modules/nanosleep-tests: New test.
41860         * tests/test-nanosleep.c: New file.
41861
41862         sleep: work around cygwin bug
41863         * lib/sleep.c (rpl_sleep): Work around the bug.
41864         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41865         (gl_PREREQ_SLEEP): Delete unused macro.
41866         * modules/sleep (Depends-on): Add verify.
41867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41868         * modules/unistd (Makefile.am): Substitute witness.
41869         * lib/unistd.in.h (sleep): Update prototype.
41870         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41871         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41872         * modules/sleep-tests (Depends-on): Check for alarm.
41873
41874 2009-11-20  Jim Meyering  <meyering@redhat.com>
41875
41876         maint.mk: improve sc_prohibit_magic_number_exit
41877         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41878         so it does not match uses like System.exit(1).
41879         Add comments showing how to correct all offenders.
41880
41881 2009-11-19  Eric Blake  <ebb9@byu.net>
41882
41883         xalloc-die-tests: add missing library
41884         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41885
41886         test-xvasprintf: silence compiler warnings
41887         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41888         empty string from gcc.
41889
41890 2009-11-19  Jim Meyering  <meyering@redhat.com>
41891
41892         xfreopen: new module, from coreutils
41893         * modules/xfreopen: New module.
41894         * lib/xfreopen.c: New file.
41895         * lib/xfreopen.h: New file.
41896         * MODULES.html.sh (File stream based Input/Output"): Add it.
41897
41898 2009-11-19  Eric Blake  <ebb9@byu.net>
41899
41900         manywarnings: depend on warnings
41901         * modules/manywarnings (Depends-on): Add warnings.
41902
41903         build: avoid compiler warnings
41904         * lib/select.c (rpl_select): Delete unused variable.
41905         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41906
41907 2009-11-18  Eric Blake  <ebb9@byu.net>
41908
41909         tests: avoid false negative with --with-packager
41910         * tests/test-version-etc.sh: Discard packager information.
41911         * tests/test-argp-version-etc-1.sh: Likewise.
41912         Reported by Mike Frysinger.
41913
41914         utimens: fix regression on Solaris
41915         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41916         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41917         can only change fd timestamps via futimesat.  Instead, use an
41918         additional witness macro to avoid BSD bug.
41919         Reported by Jim Meyering.
41920
41921 2009-11-17  Eric Blake  <ebb9@byu.net>
41922
41923         usleep: use it to simplify tests
41924         * modules/stat-time-tests (Depends-on): Add usleep.
41925         (configure.ac): Drop usleep check.
41926         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41927         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41928         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41929         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41930         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41931         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41932         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41933         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41934         Likewise.
41935         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41936         * tests/test-lchown.h (nap): Likewise.
41937         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41938         * tests/test-stat-time.c (nap): Likewise.
41939         * tests/test-utimens-common.h (nap): Update comments.
41940
41941         usleep: new module
41942         * modules/usleep: New file.
41943         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41944         * lib/usleep.c (usleep): Likewise.
41945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41946         * modules/unistd (Makefile.am): Substitute witnesses.
41947         * lib/unistd.in.h (usleep): Add declaration.
41948         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41949         * MODULES.html.sh (Date and time): Likewise.
41950         * modules/usleep-tests (Depends-on): New test.
41951         * tests/test-usleep.c: New file.
41952
41953         chown: work around OpenBSD bug
41954         * lib/chown.c (rpl_chown): Work around the bug.
41955         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41956         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41958         * modules/chown (Depends-on): Add stdbool.
41959         * modules/lchown (Depends-on): Likewise.
41960         * doc/posix-functions/chown.texi (chown): Document the bug.
41961         * doc/posix-functions/lchown.texi (lchown): Likewise.
41962         * tests/test-lchown.h (test_chown): Relax test.
41963
41964         mkstemp: avoid conflict with C++ keyword template
41965         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41966         * lib/mkostemp.c (mkostemp): Likewise.
41967         * lib/mkostemps.c (mkostemps): Likewise.
41968         * lib/mkstemp.c (mkstemp): Likewise.
41969         * lib/mkstemps.c (mkstemps): Likewise.
41970
41971         xalloc-die-tests: optimize
41972         * tests/test-xalloc-die.sh: Reduce number of processes.
41973
41974 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41975
41976         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41977         patch from ludo@gnu.org (Ludovic Courtès).
41978
41979 2009-11-17  Jim Meyering  <meyering@redhat.com>
41980
41981         version-etc: use proper license string
41982         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41983         * modules/version-etc-fsf: Likewise.
41984
41985 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41986
41987         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41988         printed to stdout.  Deal with EOL differences.
41989
41990 2009-11-17  Eric Blake  <ebb9@byu.net>
41991
41992         unsetenv: work around Solaris bug
41993         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41994         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41995         Reported by Jim Meyering.
41996
41997         vasnprintf: avoid compiler warnings
41998         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41999         variables.
42000         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42001
42002 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42003
42004         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42005         settings since xalloc-die is no longer the self test,
42006         xalloc-die.sh is.
42007
42008 2009-11-17  Jim Meyering  <meyering@redhat.com>
42009
42010         test-xalloc-die.sh: make the code agree with the commit log
42011         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42012         at the end, just in case you happen to have a test-xalloc-die
42013         program in some other PATH directory.
42014
42015         test-xalloc-die.sh: fix a portability bug
42016         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42017         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42018         Otherwise, argv[0] (as often seen in diagnostics) would be too
42019         system-dependent, sometimes with, and sometimes without the leading "./".
42020
42021         version-etc-fsf: relax license to LGPLv3+
42022         * modules/version-etc-fsf (License): Relax license.
42023
42024 2009-11-16  Eric Blake  <ebb9@byu.net>
42025
42026         xalloc-die-tests: avoid printing null pointer
42027         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42028         shell script.
42029         * tests/test-xalloc-die.c (program_name): Declare.
42030         * tests/test-xalloc-die.sh (tmpfiles): New file.
42031
42032         setenv, unsetenv: work around various bugs
42033         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42034         (setenv) [HAVE_SETENV]: Work around bugs.
42035         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42037         for bugs.
42038         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42039         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42041         * modules/stdlib (Makefile.am): Update substitutions.
42042         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42043         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42044         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42045         * modules/setenv-tests: New test.
42046         * modules/unsetenv-tests: Likewise.
42047         * tests/test-setenv.c: New file.
42048         * tests/test-unsetenv.c: Likewise.
42049
42050 2009-11-16  Jim Meyering  <meyering@redhat.com>
42051
42052         version-etc: relax license to LGPLv3+
42053         * modules/version-etc (License): Relax license.
42054
42055         better AC_REQUIRE expanded-before-required-warning avoidance
42056         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42057         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42058         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42059         which is no longer needed.
42060
42061 2009-11-16  Eric Blake  <ebb9@byu.net>
42062
42063         test-freading: clean up temporary file
42064         * tests/test-freading.c (main): Remove file on success, and use
42065         ASSERT more liberally.
42066         Reported by Jim Meyering.
42067
42068 2009-11-16  Jim Meyering  <meyering@redhat.com>
42069
42070         avoid new AC_REQUIRE expanded-before-required warnings
42071         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42072         merely using it.
42073         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42074         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42075
42076 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42077
42078         * tests/test-xalloc-die.c: New file.
42079         * modules/xalloc-die-tests: New file.
42080         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42081         XFAIL_TESTS so it can be appended by modules.
42082
42083 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42084
42085         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42086         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42087
42088 2009-11-14  Eric Blake  <ebb9@byu.net>
42089
42090         fnmatch: avoid compiler warning
42091         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42092         to silence compiler warning about mismatch signedness in ?:.
42093         Reported by Robert Millan.
42094
42095         intprops: add double-inclusion guard
42096         * lib/intprops.h: Allow idempotent includes.
42097         Suggested by Bruce Korb.
42098
42099         openat: detect Solaris fchownat bug
42100         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42101         penalizing glibc chownat when only lchownat is broken.
42102         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42103         trailing slash bugs.
42104         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42105         * modules/openat-tests (Files): Include more files.
42106         (Depends-on): Add mgetgroups, sleep, stat-time.
42107         (configure.ac): Add additional checks.
42108         (Makefile.am): Build new test.
42109         * tests/test-fchownat.c: New file.
42110
42111         lchown: detect Solaris and FreeBSD bug
42112         * lib/lchown.c (rpl_lchown): Work around bug.
42113         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42115         * modules/unistd (Makefile.am): Populate it.
42116         * lib/unistd.in.h (lchown): Update declaration.
42117         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42118         * modules/lchown-tests: New file.
42119         * tests/test-lchown.h (test_lchown): Likewise.
42120         * tests/test-lchown.c (main): Likewise.
42121
42122         chown: detect Solaris and FreeBSD bug
42123         * lib/chown.c (rpl_chown): Work around bug.
42124         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42125         (gl_PREREQ_CHOWN): Delete.
42126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42127         * modules/unistd (Makefile.am): Populate it.
42128         * lib/unistd.in.h (chown): Update declaration.
42129         * lib/lchown.c (chown): Update client.
42130         * modules/lchown (Depends-on): Add lstat.
42131         * doc/posix-functions/chown.texi (chown): Document the bug.
42132         * doc/posix-functions/getgroups.texi (getgroups): Document
42133         getgroups pitfall.
42134         * modules/chown-tests: New file.
42135         * tests/test-chown.h (test_chown): Likewise.
42136         * tests/test-chown.c (main): Likewise.
42137
42138 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42139
42140         gnulib-tool: correctly detect absence of m4 directories
42141         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42142
42143 2009-11-14  Jim Meyering  <meyering@redhat.com>
42144
42145         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42146         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42147
42148 2009-11-14  John W. Eaton  <jwe@gnu.org>
42149
42150         strftime.h: wrap function declaration in extern "C" block
42151         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42152
42153 2009-11-13  Eric Blake  <ebb9@byu.net>
42154
42155         getgroups: avoid compiler warning
42156         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42157
42158         getgroups: work around FreeBSD bug
42159         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42160         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42161         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42162         * tests/test-getgroups.c (main): Fix buffer overrun.
42163
42164         getgroups: avoid compilation failure
42165         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42166         * modules/getgroups (Depends-on): Add stdint.
42167
42168 2009-11-13  Jim Meyering  <meyering@redhat.com>
42169
42170         test-getgroups: avoid compilation failure
42171         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42172
42173 2009-11-13  Eric Blake  <ebb9@byu.net>
42174
42175         mgetgroups: new module, taken from coreutils
42176         * modules/mgetgroups: New file.
42177         * lib/mgetgroups.h: Likewise.
42178         * lib/mgetgroups.c (mgetgroups): Likewise.
42179         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42180         * MODULES.html.sh (Users and groups): Mention it.
42181
42182         getgroups: don't expose GETGROUPS_T to user
42183         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42184         an element at a time if GETGROUPS_T is wrong size.
42185         * lib/getugroups.h (getugroups): Change signature.
42186         * lib/unistd.in.h (getgroups): Likewise.
42187         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42188         signature needs fixing.
42189         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42190         AC_TYPE_GETGROUPS.
42191         * modules/group-member (Depends-on): Add getgroups.
42192         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42193         (group_member): Rely on getgroups replacement.
42194         * lib/getugroups.c (getugroups): Use gid_t.
42195         * tests/test-getgroups.c (main): Likewise.
42196         * NEWS: Mention the signature change.
42197         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42198         problem with signature.
42199         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42200         GETGROUPS_T is still useful for setgroups.
42201
42202         getgroups, getugroups: provide stubs for mingw
42203         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42204         * lib/getugroups.c (getugroups): Likewise.
42205         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42206         function.  Modernize replacement scheme.
42207         (gl_PREREQ_GETGROUPS): Delete.
42208         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42209         * modules/getgroups (configure.ac): Declare witness.
42210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42211         * modules/unistd (Depends-on): Substitute witness.
42212         * lib/unistd.in.h (getgroups): Declare replacement.
42213
42214         getgroups: avoid calling exit
42215         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42216         drop xalloc.
42217         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42218         dependencies.
42219         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42220         exiting, in the rare case of malloc failure.
42221
42222         getgroups: fix logic error
42223         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42224         has more than 20 groups.
42225         * modules/getgroups-tests: New test.
42226         * tests/test-getgroups.c: New file.
42227
42228 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42229
42230         * tests/test-base64.c: Improve.
42231
42232 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42233
42234         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42235         Blake <ebb9@byu.net>.
42236
42237 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42238
42239         * tests/test-xvasprintf.c: Add %s%s related checks.
42240
42241 2009-11-12  Eric Blake  <ebb9@byu.net>
42242
42243         version-etc: match standards.texi style
42244         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42245         and use <> only for URLs.
42246
42247 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42248
42249         fts: do not fail on a submount during traversal
42250         * lib/fts.c (fts_build): Read the stat info again after opening
42251         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42252         Original report at http://bugzilla.redhat.com/501848.
42253
42254 2009-11-12  Jim Meyering  <meyering@redhat.com>
42255
42256         bootstrap: sync from coreutils
42257         * build-aux/bootstrap (bootstrap_epilogue): New function.
42258         Use git_modules_config in one more place.  This make bootstrap's
42259         --gnulib-srcdir option more useful for testing.
42260
42261         bootstrap: generalize autoheader check
42262         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42263         AC_CONFIG_HEADERS.
42264
42265 2009-11-11  Eric Blake  <ebb9@byu.net>
42266
42267         mkfifoat: use new modules for Solaris and BSD bugs
42268         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42269         * lib/mkfifoat.c (mknodat): Split...
42270         * lib/mknodat.c (mknodat): ...into new file.
42271         * modules/mkfifoat (Files): Ship new file.
42272         (Depends-on): Add mkfifo, mknod.
42273         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42274         (Depends-on): Add symlink.
42275         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42276         redundant with test_mkfifo.h.
42277         (do_mkfifoat, do_mknodat): New helpers.
42278
42279         mknod: new module
42280         * modules/mknod: New file.
42281         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42282         * lib/mknod.c (mknod): Likewise.
42283         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42284         defaults.
42285         * modules/sys_stat (Makefile.am): Substitute them.
42286         * lib/sys_stat.in.h (mknod): Declare replacement.
42287         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42288         Document it.
42289         * doc/posix-functions/mknod.texi (mknod): Likewise.
42290         * modules/mknod-tests: New test.
42291         * tests/test-mknod.c: Likewise.
42292
42293         mkfifo: new module
42294         * modules/mkfifo: New file.
42295         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42296         * lib/mkfifo.c (mkfifo): Likewise.
42297         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42298         defaults.
42299         * modules/sys_stat (Makefile.am): Substitute them.
42300         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42301         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42302         Document it.
42303         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42304         * modules/mkfifo-tests: New test.
42305         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42306         from test-mkfifoat.c.
42307         * tests/test-mkfifo.c: New file.
42308
42309         readlink: detect FreeBSD bug
42310         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42311         slash on symlink.
42312         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42313         * tests/test-readlink.h (test_readlink): Enhance test.
42314
42315         symlink: detect FreeBSD bug
42316         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42317         slash on symlink.
42318         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42319         * tests/test-symlink.h (test_symlink): Enhance test.
42320
42321 2009-11-10  Eric Blake  <ebb9@byu.net>
42322
42323         link: detect FreeBSD bug
42324         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42325         symlink.
42326         * doc/posix-functions/link.texi (link): Document the bug.
42327         * tests/test-link.h (test_link): Enhance test.
42328         * tests/test-linkat.c (main): Update caller.
42329
42330         unlink, remove: detect FreeBSD bug
42331         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42332         slash on symlink.
42333         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42334         * doc/posix-functions/remove.texi (remove): Likewise.
42335         * tests/test-unlink.h (test_unlink): Enhance test.
42336         * tests/test-remove.c (main): Likewise.
42337
42338 2009-11-09  Eric Blake  <ebb9@byu.net>
42339
42340         rename: detect FreeBSD bug
42341         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42342         slash on symlink.
42343         * modules/renameat-tests (Depends-on): Add filenamecat.
42344         * tests/test-rename.h (test_rename): Allow one more errno.
42345         * tests/test-renameat.c (main): Likewise.
42346         * doc/posix-functions/rename.texi (rename): Document the bug.
42347
42348         open: detect FreeBSD bug
42349         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42350         symlink.
42351         * doc/posix-functions/open.texi (open): Document the bug.
42352         * doc/posix-functions/utimes.texi (utimes): Likewise.
42353         * tests/test-open.h (test_open): Add parameters, and test symlink
42354         handling.
42355         * tests/test-open.c (main): Adjust caller.
42356         * tests/test-fcntl-safer.c (main): Likewise.
42357         * modules/open-tests (Depends-on): Add stdbool, symlink.
42358         * modules/fcntl-safer-tests (Depends-on): Likewise.
42359         * tests/test-openat.c (main): Add test-open tests.
42360
42361         stat: detect FreeBSD bug
42362         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42363         symlink.
42364         * doc/posix-functions/stat.texi (stat): Document the bug.
42365         * tests/test-stat.h (test_stat_func): Add argument.
42366         * tests/test-stat.c (main): Adjust caller.
42367         * tests/test-fstatat.c (main): Likewise.
42368         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42369         Reported by Jim Meyering.
42370
42371 2009-11-09  James Youngman  <jay@gnu.org>
42372
42373         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42374         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42375
42376 2009-11-08  Jim Meyering  <meyering@redhat.com>
42377
42378         utimens: remove invalid futimesat call
42379         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42380         It used the file descriptor of the target file as the DIR_FD
42381         parameter and NULL as the file name.  That caused failure with
42382         errno == EFAULT on FreeBSD-8.0-rc2
42383
42384 2009-11-07  Eric Blake  <ebb9@byu.net>
42385
42386         fflush, freadseek: use fseeko, not fseek
42387         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42388         (clear_ungetc_buffer): Avoid potential problems on large files.
42389         * lib/freadseek.c (freadseek): Likewise.
42390         * modules/freadseek (Depends-on): Add fseeko.
42391         * modules/fseek (configure.ac): Set a witness.
42392         * tests/test-fflush.c (main): Use fseeko.
42393         * tests/test-fpurge.c (fseek): Disable link warning.
42394         * tests/test-freadable.c (fseek): Likewise.
42395         * tests/test-freading.c (fseek): Likewise.
42396         * tests/test-fseeko.c (fseek): Likewise.
42397         * tests/test-ftell.c (fseek): Likewise.
42398         * tests/test-ftello.c (fseek): Likewise.
42399         * tests/test-fwritable.c (fseek): Likewise.
42400         * tests/test-fwriting.c (fseek): Likewise.
42401
42402 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42403
42404         * modules/memchr (Depends-on): Drop getpagesize dependency.
42405
42406 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42407
42408         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42409         Reported by Ludovic Courtès.
42410         * build-aux/pmccabe2html: Improve example usage.
42411         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42412
42413 2009-11-06  Jim Meyering  <meyering@redhat.com>
42414
42415         do-release-commit-and-tag: New module.
42416         Automate the release-commit and tag process.
42417         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42418         * modules/do-release-commit-and-tag: New file.
42419         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42420
42421 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42422
42423         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42424         because test-select.c uses inet_pton.
42425
42426 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42427
42428         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42429         GETADDRINFO_LIB.  Bump serial number.
42430         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42431         Suggested by Eric Blake <ebb9@byu.net>.
42432
42433 2009-11-05  Eric Blake  <ebb9@byu.net>
42434
42435         strtod: detect darwin bug
42436         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42437         Reported by Leo Davis.
42438
42439         freopen-safer: new module
42440         * modules/freopen-safer: New module.
42441         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42442         * lib/freopen-safer.c (freopen_safer): New file.
42443         * lib/stdio-safer.h (freopen_safer): New declaration.
42444         * lib/stdio--.h (freopen): New override.
42445         * MODULES.html.sh (File stream based Input/Output): Mention it.
42446         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42447         freopen-safer module.
42448         * doc/posix-functions/stderr.texi (stderr): Likewise.
42449         * doc/posix-functions/stdin.texi (stdin): Likewise.
42450         * doc/posix-functions/stdout.texi (stdout): Likewise.
42451         * modules/freopen-safer-tests: New test.
42452         * tests/test-reopen-safer.c: New file.
42453
42454 2009-11-05  Jim Meyering  <meyering@redhat.com>
42455
42456         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42457         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42458
42459 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42460
42461         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42462
42463 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42464
42465         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42466
42467 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42468
42469         Fix link error.
42470         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42471         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42472
42473 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42474
42475         * tests/test-func.c: Also test value of __func__.
42476
42477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42478
42479         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42480         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42481
42482 2009-11-05  Bruno Haible  <bruno@clisp.org>
42483
42484         Fix link error.
42485         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42486         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42487         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42488
42489 2009-11-05  Bruno Haible  <bruno@clisp.org>
42490
42491         Tests for module 'inet_pton'.
42492         * modules/inet_pton-tests: New file.
42493         * tests/test-inet_pton.c: New file.
42494
42495 2009-11-05  Bruno Haible  <bruno@clisp.org>
42496
42497         Tests for module 'inet_ntop'.
42498         * modules/inet_ntop-tests: New file.
42499         * tests/test-inet_ntop.c: New file.
42500
42501 2009-11-04  Eric Blake  <ebb9@byu.net>
42502
42503         stdlib-safer: wrap all mkstemp variants
42504         * modules/mkostemp (configure.ac): Set witness.
42505         * modules/mkostemps (configure.ac): Likewise.
42506         * modules/mkstemps (configure.ac): Likewise.
42507         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42508         (mkstemps_safer): Wrap more functions.
42509         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42510         wrapping.
42511         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42512         (mkstemps_safer): Implement the wrappers.
42513
42514         mkstemps, mkostemps: new modules
42515         * modules/mkostemps: New module.
42516         * modules/mkstemps: Likewise.
42517         * lib/mkostemps.c (mkostemps): New file.
42518         * lib/mkstemps.c (mkstemps): Likewise.
42519         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42520         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42522         * modules/stdlib (Makefile.am): Substitute them.
42523         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42524         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42525         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42526         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42527         * MODULES.html.sh (File system functions): Mention them.
42528
42529         tempname: resync from glibc
42530         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42531         same values for __GT_FILE as glibc.  Abort even when assertions
42532         are disabled.
42533         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42534         match its value otherwise.  Allow idempotent inclusion.
42535         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42536         * lib/mkostemp.c (mkostemp): Likewise.
42537         * lib/mkstemp.c (mkstemp): Likewise.
42538         * lib/tmpfile.c (tmpfile): Likewise.
42539         * NEWS: Document this.
42540
42541         utimens: fix use of futimens on older Linux
42542         * lib/utimens.c (fdutimens): Use updated, rather than original,
42543         timespec to avoid bug in older Linux kernel.
42544         Reported by Simon Josefsson.
42545
42546 2009-11-04  Bruno Haible  <bruno@clisp.org>
42547
42548         Make num_processors more flexible and consistent.
42549         * lib/nproc.h (enum nproc_query): New type.
42550         (num_processors): Add a 'query' argument.
42551         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42552         (num_processors): Add a 'query' argument. Test the value of the
42553         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42554         mingw, count the number of CPUs available for the current process.
42555         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42556         Check for sched_getaffinity and sched_getaffinity_np.
42557         * modules/nproc (Depends-on): Add c-ctype, extensions.
42558         * NEWS: Mention the change.
42559
42560 2009-11-03  Bruno Haible  <bruno@clisp.org>
42561
42562         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42563
42564 2009-11-03  Jim Meyering  <meyering@redhat.com>
42565
42566         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42567         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42568         if it is defined.
42569
42570 2009-11-02  Eric Blake  <ebb9@byu.net>
42571
42572         mktime, timegm: share common declaration
42573         * lib/mktime-internal.h: New file.
42574         * lib/mktime.c: Use it rather than open-coding a declaration.
42575         * lib/timegm.c: Likewise.
42576         * modules/mktime (Files): Ship it.
42577         * modules/timegm (Files): Likewise.
42578         Suggested by Bruno Haible.
42579
42580         test-update-copyright: update test to match script changes
42581         * tests/test-update-copyright.sh: Avoid hard-coding perl
42582         location.  Don't update *.bak created by earlier runs.
42583
42584 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42585             Simon Josefsson  <simon@josefsson.org>
42586             Bruno Haible  <bruno@clisp.org>
42587
42588         Fix link error on Solaris 8.
42589         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42590         also in libnsl. Define also INET_PTON_LIB.
42591         * modules/inet_pton (Link): New section.
42592
42593 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42594             Bruno Haible  <bruno@clisp.org>
42595
42596         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42597         * modules/inet_ntop (Link): New section.
42598         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42599
42600 2009-11-02  Eric Blake  <ebb9@byu.net>
42601
42602         maint: avoid compiler warnings in m4 macros
42603         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42604         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42605
42606 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42607
42608         * m4/pmccabe2html.m4: Remove file.
42609         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42610         function.  Change maintainer.
42611         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42612         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42613         Courtès).
42614
42615 2009-10-31  Eric Blake  <ebb9@byu.net>
42616
42617         fseeko: fix m4 regression
42618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42619         regression from 2009-10-27.
42620         Reported by Ralf Wildenhues.
42621
42622 2009-10-31  Jim Meyering  <meyering@redhat.com>
42623
42624         inttostr: aesthetics and improved (compile-time) safety
42625         Define inttype_is_signed rather than inttype_is_unsigned,
42626         since the sole use is via "#if inttype_is_signed".
42627         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42628         inttype_is_unsigned.
42629         * lib/offtostr.c (inttype_is_signed): Likewise.
42630         * lib/uinttostr.c (inttype_is_signed): Likewise.
42631         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42632         * lib/inttostr.c (inttostr): Use verify to cross-check the
42633         inttype_is_signed value and the signedness of the actual type.
42634         * modules/inttostr (Depends-on): Add verify.
42635
42636 2009-10-30  Eric Blake  <ebb9@byu.net>
42637
42638         build: avoid compiler warnings
42639         * lib/fchmodat.c (lchmod): Mark unused variables.
42640         * lib/getopt.c (_getopt_initialize): Likewise.
42641         * lib/mktime.c (__mktime_internal): Provide prototype.
42642         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42643         older gcc that do not understand #pragma GCC diagnostic.
42644         * lib/uinttostr.c (inttype_is_unsigned): Define.
42645         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42646
42647 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42648
42649         stat: fix compilation on AIX
42650         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42651         only see struct stat64.
42652
42653 2009-10-30  Eric Blake  <ebb9@byu.net>
42654
42655         exclude: make more robust
42656         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42657         rather than masking a coding bug.
42658         Suggested by Bruno Haible.
42659
42660 2009-10-30  Jim Meyering  <meyering@redhat.com>
42661
42662         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42663         Rather than putting #!/usr/bin/perl on the first line,
42664         start with a variant of what's recommended by "man perlrun" that
42665         invokes the first "perl" program from your shell's search path.
42666         * build-aux/gitlog-to-changelog: Replace #!... as above.
42667         Add a "Local Variables" perl mode setting.
42668         Prompted by a patch from Ludovic Courtès.
42669         Improved by Eric Blake.
42670         * build-aux/useless-if-before-free: Likewise.
42671         * build-aux/announce-gen: Likewise.
42672         * build-aux/update-copyright: Likewise.
42673
42674 2009-10-29  Eric Blake  <ebb9@byu.net>
42675
42676         filenamecat-lgpl: adjust clients
42677         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42678         filenamecat.
42679         * modules/renameat (Depends-on): Likewise.
42680
42681         filenamecat: split into filenamecat-lgpl
42682         * modules/filenamecat-lgpl: New module.
42683         * modules/filenamecat (Files): Move library-safe files into
42684         filenamecat-lgpl.
42685         (Depends-on): Add filenamecat-lgpl.
42686         (configure.ac): Declare witness.
42687         * lib/filenamecat.h (file_name_concat): Only declare when using
42688         GPL module.
42689         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42690         Move...
42691         * lib/filenamecat-lgpl.c: ...into new file.
42692         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42693         (gl_FILE_NAME_CONCAT): Use it.
42694         * MODULES.html.sh (File system functions): Mention new module.
42695
42696         argp: avoid memory leak
42697         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42698         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42699         base_name, since the latter malloc()s and can call exit().
42700         Leak introduced 2006-07-03.
42701
42702         dirname-lgpl: adjust clients that don't need full dirname
42703         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42704         * modules/filenamecat (Depends-on): Likewise.
42705         * modules/linkat (Depends-on): Likewise.
42706         * modules/mkancesdirs (Depends-on): Likewise.
42707         * modules/mkdir (Depends-on): Likewise.
42708         * modules/openat (Depends-on): Likewise.
42709         * modules/savewd (Depends-on): Likewise.
42710         * modules/rename (Depends-on): Likewise.
42711         (License): Relax license.
42712         * modules/mkdir-tests (Depends-on): Drop progname.
42713         (Makefile.am): Delete unneeded LDADD.
42714         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42715
42716         dirname: split into dirname-lgpl
42717         * modules/dirname-lgpl: New module.
42718         * modules/dirname (Files): Move library-safe files into
42719         dirname-lgpl.
42720         (Depends-on): Add dirname-lgpl.
42721         (configure.ac): Declare witness.
42722         * modules/double-slash-root (License): Relax license.
42723         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42724         module.
42725         * lib/dirname.c (dir_len, mdir_name): Move...
42726         * lib/dirname-lgpl.c: ...into new file.
42727         * lib/basename.c (last_component, base_len): Move...
42728         * lib/basename-lgpl.c: ...into new file.
42729         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42730         (gl_DIRNAME): Use it.
42731         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42732         Mention new module.
42733         * modules/dirname-tests (Depends-on): Add progname.
42734         * tests/test-dirname.c (program_name): Delete.
42735
42736         mkdir: make safe for libraries
42737         * modules/mkdir (Depends-on): Drop xalloc.
42738         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42739         exit.
42740
42741         tests: avoid some compiler warnings
42742         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42743         literals.
42744         * tests/test-memchr.c (main): Avoid type mismatch.
42745         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42746         * tests/test-base64.c (main): Likewise.
42747         * tests/test-getdelim.c (main): Likewise.
42748         * tests/test-gethostname.c (main): Likewise.
42749         * tests/test-getline.c (main): Likewise.
42750         * tests/test-netinet_in.c (main): Likewise.
42751         * tests/test-select.c (open_server_socket, main): Likewise.
42752         * tests/test-select-stdin.c (main): Likewise.
42753         * tests/test-sockets.c (main): Likewise.
42754         * tests/test-strsignal.c (main): Likewise.
42755         * tests/test-sys_select.c (main): Likewise.
42756         * tests/test-sys_socket.c (main): Likewise.
42757         * tests/test-u64.c (main): Likewise.
42758         * tests/test-xfprintf-posix.c (main): Likewise.
42759         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42760
42761         sockets: avoid compiler warning
42762         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42763
42764         maint: detect usage(1) and other suspicious exits
42765         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42766
42767 2009-10-29  Jim Meyering  <meyering@redhat.com>
42768
42769         timespec: long-to-int truncation could make timespec_cmp malfunction
42770         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42771         a multiple of 2^32 nanoseconds as no difference.
42772
42773 2009-10-28  Jim Meyering  <meyering@redhat.com>
42774
42775         fprintftime: wrap macro code argument in "do {...} while(0)"
42776         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42777         cpy macro must be a statement that can be followed by a semicolon.
42778         Now that the else clause contains a comment and is hence longer
42779         than one line, I require curly braces.  That in turn requires
42780         that we wrap this code block in the standard do...while(0).
42781
42782         fprintftime: remove stray semicolon from previous change
42783         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42784
42785         fprintftime: avoid a warning about ignored fwrite return value
42786         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42787         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42788         that is unsafe.
42789         * modules/fprintftime (Depends-on): Add ignore-value.
42790
42791         exclude: avoid an unwarranted warning
42792         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42793
42794 2009-10-27  Eric Blake  <ebb9@byu.net>
42795
42796         fseek: avoid compilation failure when fflush is replaced
42797         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42798         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42799         module is in use.
42800         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42801         module is not in use; since REPLACE_FSEEK worked otherwise.
42802         (GNULIB_FTELLO): Likewise for ftell.
42803         Reported by Ian Beckwith and others.
42804
42805 2009-10-27  Bruno Haible  <bruno@clisp.org>
42806
42807         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42808         Reported by Jim Meyering.
42809
42810 2009-10-27  Jim Meyering  <jim@meyering.net>
42811             Bruno Haible  <bruno@clisp.org>
42812
42813         Avoid warning despite dropping the return value of fwrite.
42814         * lib/unicodeio.c: Include ignore-value.h.
42815         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42816         * modules/unicodeio (Depends-on): Add ignore-value.
42817
42818 2009-10-26  Eric Blake  <ebb9@byu.net>
42819
42820         areadlinkat: fix fallback path
42821         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42822         pointer and zero.
42823
42824 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42825
42826         Use a better IO block size for modern systems
42827         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42828         * lib/md2.c: Likewise.
42829         * lib/md4.c: Likewise.
42830         * lib/md5.c: Likewise.
42831         * lib/sha1.c: Likewise.
42832         * lib/sha256.c: Likewise.
42833         * lib/sha512.c: Likewise.
42834
42835 2009-10-22  Eric Blake  <ebb9@byu.net>
42836
42837         tests: avoid several compiler warnings
42838         * tests/test-getcwd.c (main): Avoid buffer underflow.
42839         * tests/test-getdate.c (main): String literals are not safe with
42840         putenv, so use setenv.  Declare unused argument.
42841         * modules/getdate-tests (Depends-on): Add setenv.
42842         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42843         problems with string literals in char *.
42844         * tests/test-hash.c (main): Avoid shadowing declaration.
42845         (insert_new): Treat string literals as char const *.
42846         * tests/test-getopt.h (test_getopt): Likewise.
42847         (getopt_loop): Alter types to minimize casting elsewhere.
42848         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42849         (test_getopt_long_posix): Likewise.
42850         (do_getopt_long): Add wrapper to minimize casting.
42851         * tests/test-atexit.c (clear_temp_file): Use void.
42852         * tests/test-areadlink-with-size.c (main): Declare unused
42853         arguments.
42854         * tests/test-areadlink.c (main): Likewise.
42855         * tests/test-areadlinkat-with-size.c (main): Likewise.
42856         * tests/test-areadlinkat.c (main): Likewise.
42857         * tests/test-canonicalize-lgpl.c (main): Likewise.
42858         * tests/test-canonicalize.c (main): Likewise.
42859         * tests/test-dirent-safer.c (main): Likewise.
42860         * tests/test-dirname.c (main): Likewise.
42861         * tests/test-dup2.c (main): Likewise.
42862         * tests/test-fchdir.c (main): Likewise.
42863         * tests/test-fcntl-h.c (main): Likewise.
42864         * tests/test-fcntl-safer.c (main): Likewise.
42865         * tests/test-fdopendir.c (main): Likewise.
42866         * tests/test-fdutimensat.c (main): Likewise.
42867         * tests/test-fflush.c (main): Likewise.
42868         * tests/test-filenamecat.c (main): Likewise.
42869         * tests/test-filevercmp.c (main): Likewise.
42870         * tests/test-fopen-safer.c (main): Likewise.
42871         * tests/test-fopen.c (main): Likewise.
42872         * tests/test-fpending.c (main): Likewise.
42873         * tests/test-fpurge.c (main): Likewise.
42874         * tests/test-freading.c (main): Likewise.
42875         * tests/test-fstatat.c (main): Likewise.
42876         * tests/test-fsync.c (main): Likewise.
42877         * tests/test-futimens.c (main): Likewise.
42878         * tests/test-getndelim2.c (main): Likewise.
42879         * tests/test-gettimeofday.c (main): Likewise.
42880         * tests/test-getopt.c (main): Likewise.
42881         * tests/test-i-ring.c (main): Likewise.
42882         * tests/test-inttypes.c (main): Likewise.
42883         * tests/test-link.c (main): Likewise.
42884         * tests/test-lstat.c (main): Likewise.
42885         * tests/test-math.c (main): Likewise.
42886         * tests/test-md5.c (main): Likewise.
42887         * tests/test-memchr2.c (main): Likewise.
42888         * tests/test-memrchr.c (main): Likewise.
42889         * tests/test-mkdir.c (main): Likewise.
42890         * tests/test-mkdirat.c (main): Likewise.
42891         * tests/test-mkfifoat.c (main): Likewise.
42892         * tests/test-open.c (main): Likewise.
42893         * tests/test-openat-safer.c (main): Likewise.
42894         * tests/test-openat.c (main): Likewise.
42895         * tests/test-quotearg.c (main): Likewise.
42896         * tests/test-rawmemchr.c (main): Likewise.
42897         * tests/test-readlink.c (main): Likewise.
42898         * tests/test-remove.c (main): Likewise.
42899         * tests/test-rename.c (main): Likewise.
42900         * tests/test-renameat.c (main): Likewise.
42901         * tests/test-rmdir.c (main): Likewise.
42902         * tests/test-sha1.c (main): Likewise.
42903         * tests/test-signal.c (main): Likewise.
42904         * tests/test-sigaction.c (main): Likewise.
42905         * tests/test-stat.c (main): Likewise.
42906         * tests/test-stat-time.c (main): Likewise.
42907         * tests/test-stddef.c (main): Likewise.
42908         * tests/test-stdint.c (main): Likewise.
42909         * tests/test-stdio.c (main): Likewise.
42910         * tests/test-stdlib.c (main): Likewise.
42911         * tests/test-strchrnul.c (main): Likewise.
42912         * tests/test-strerror.c (main): Likewise.
42913         * tests/test-string.c (main): Likewise.
42914         * tests/test-strtod.c (main): Likewise.
42915         * tests/test-strverscmp.c (main): Likewise.
42916         * tests/test-symlink.c (main): Likewise.
42917         * tests/test-symlinkat.c (main): Likewise.
42918         * tests/test-sys_stat.c (main): Likewise.
42919         * tests/test-sys_time.c (main): Likewise.
42920         * tests/test-time.c (main): Likewise.
42921         * tests/test-unistd.c (main): Likewise.
42922         * tests/test-unlink.c (main): Likewise.
42923         * tests/test-unlinkat.c (main): Likewise.
42924         * tests/test-utimens.c (main): Likewise.
42925         * tests/test-utimensat.c (main): Likewise.
42926         * tests/test-version-etc.c (main): Likewise.
42927         * tests/test-wchar.c (main): Likewise.
42928         * tests/test-wctype.c (main): Likewise.
42929         * tests/test-xprintf-posix.c (main): Likewise.
42930         * tests/test-posixtm.c (main): Likewise.
42931         (STREQ): Delete unused macro.
42932         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42933         shadowed variables.
42934         * tests/test-memchr.c (main): Likewise.
42935
42936 2009-10-21  Eric Blake  <ebb9@byu.net>
42937
42938         areadlinkat: avoid failure on older glibc
42939         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42940         rather than mis-comparing 0 against FUNC_RESULT of char*.
42941
42942 2009-10-21  Bruno Haible  <bruno@clisp.org>
42943
42944         * modules/stpncpy (License): Relicense under LGPLv2+.
42945         Reported by David Lutterkort <lutter@redhat.com>.
42946
42947 2009-10-20  Eric Blake  <ebb9@byu.net>
42948
42949         utimensat: work around Solaris 9 bug
42950         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42951         has trailing slash bugs.
42952         * tests/test-lutimens.h (test_lutimens): Enhance test.
42953         * tests/test-utimens.h (test_utimens): Likewise.
42954         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42955         * doc/posix-functions/utimes.texi (utimes): Likewise.
42956         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42957         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42958         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42959         * doc/posix-functions/futimens.texi (futimens): Likewise.
42960
42961         fdutimensat: new module
42962         * modules/fdutimensat: New file.
42963         * lib/fdutimensat.c (fdutimensat): Likewise.
42964         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42965         * MODULES.html.sh (File system functions): Mention module.
42966         * modules/fdutimensat-tests: New test.
42967         * tests/test-fdutimensat.c: Likewise.
42968
42969         doc: regenerate INSTALL
42970         * doc/INSTALL: Reflect recent autoconf update.
42971         * doc/INSTALL.ISO: Likewise.
42972         * doc/INSTALL.UTF-8: Likewise.
42973
42974 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42975
42976         acl: warn if ACL support is not detected
42977         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42978
42979 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42980
42981         * lib/nproc.h: Add extern "C" block for C++.
42982
42983 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42984             Bruno Haible  <bruno@clisp.org>
42985
42986         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42987         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42988         * doc/posix-functions/isalpha.texi: Likewise.
42989         * doc/posix-functions/isblank.texi: Likewise.
42990         * doc/posix-functions/iscntrl.texi: Likewise.
42991         * doc/posix-functions/isdigit.texi: Likewise.
42992         * doc/posix-functions/isgraph.texi: Likewise.
42993         * doc/posix-functions/islower.texi: Likewise.
42994         * doc/posix-functions/isprint.texi: Likewise.
42995         * doc/posix-functions/ispunct.texi: Likewise.
42996         * doc/posix-functions/isspace.texi: Likewise.
42997         * doc/posix-functions/isupper.texi: Likewise.
42998         * doc/posix-functions/isxdigit.texi: Likewise.
42999
43000 2009-10-18  Bruno Haible  <bruno@clisp.org>
43001
43002         Tests for module 'isblank'.
43003         * modules/isblank-tests: New file.
43004         * tests/test-isblank.c: New file.
43005
43006         New module 'isblank'.
43007         * lib/isblank.c: New file.
43008         * m4/isblank.m4: New file.
43009         * modules/isblank: New file.
43010         * doc/posix-functions/isblank.texi: Mention the new module.
43011
43012 2009-10-18  Bruno Haible  <bruno@clisp.org>
43013
43014         New module 'ctype'.
43015         * lib/ctype.in.h: New file.
43016         * m4/ctype.m4: New file.
43017         * modules/ctype: New file.
43018         * doc/posix-headers/ctype.texi: Mention the new module.
43019
43020 2009-10-18  Jim Meyering  <meyering@redhat.com>
43021
43022         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43023         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43024         right after its initialization, rather than farther down.
43025         Keeping these in close proximity makes it easier to ensure
43026         that each such variable is initialized.  E.g.,
43027
43028             LIB_CLOCK_GETTIME=
43029             AC_SUBST([LIB_CLOCK_GETTIME])
43030
43031         This change also increments these serial numbers.
43032         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43033         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43035
43036 2009-10-18  Bruno Haible  <bruno@clisp.org>
43037
43038         Don't let environment variables perturb build.
43039         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43040         (gl_PREREQ_GETHRXTIME): ... not here.
43041
43042 2009-10-18  Bruno Haible  <bruno@clisp.org>
43043
43044         Avoid symlink attack in localcharset module.
43045         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43046         (O_NOFOLLOW): Define fallback.
43047         (get_charset_aliases): Don't open the file if it is a symbolic link.
43048         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43049         gl_FCNTL_H.
43050         (gl_FCNTL_H): Require it.
43051         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43052         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43053         Reported by Fergal Glynn <fglynn@veracode.com>.
43054
43055 2009-10-18  Bruno Haible  <bruno@clisp.org>
43056
43057         Implement nproc for mingw.
43058         * lib/nproc.c: Include <windows.h>
43059         (num_processors): On native Windows platforms, try GetSystemInfo.
43060
43061 2009-10-18  Bruno Haible  <bruno@clisp.org>
43062
43063         Implement nproc for IRIX.
43064         * lib/nproc.c: Include <sys/sysmp.h>.
43065         (num_processors): On IRIX systems, try sysmp.
43066         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43067
43068 2009-10-18  Bruno Haible  <bruno@clisp.org>
43069
43070         Implement nproc for HP-UX.
43071         * lib/nproc.c: Include <sys/pstat.h>
43072         (num_processors): On HP-UX systems, try pstat_getdynamic.
43073         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43074         pstat_getdynamic.
43075
43076 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43077             Bruno Haible  <bruno@clisp.org>
43078
43079         Implement nproc for NetBSD, OpenBSD.
43080         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43081         (ARRAY_SIZE): New macro.
43082         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43083         * m4/nproc.m4: New file.
43084         * modules/nproc (Files): Add m4/nproc.m4.
43085         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43086         (Makefile.am): Instead, augment lib_SOURCES.
43087
43088 2009-10-18  Bruno Haible  <bruno@clisp.org>
43089
43090         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43091         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43092         sys/param.h.
43093
43094 2009-10-16  Eric Blake  <ebb9@byu.net>
43095
43096         utimensat: new module
43097         * modules/utimensat: New file.
43098         * lib/utimensat.c (utimensat): Likewise.
43099         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43100         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43101         so we can work around Linux bugs.
43102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43103         * modules/sys_stat (Makefile.am): Substitute them.
43104         * lib/sys_stat.in.h (utimensat): Declare it.
43105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43107         * modules/utimensat-tests: New test.
43108         * tests/test-utimensat.c: Likewise.
43109
43110         utimens: let lutimens work on non-symlinks
43111         * lib/utimens.c (lutimens): Fall back to utimens rather than
43112         failing with ENOSYS, when file is not a symlink.
43113         (utimens): Reduce redirection.
43114         * tests/test-lutimens.h (test_lutimens): Update test to cover
43115         non-symlinks.
43116         * tests/test-utimens.h (test_utimens): Update test to cover
43117         symlinks.
43118         * tests/test-utimens.c (main): Update caller.
43119
43120         utimens: cache whether utimensat syscall works
43121         * lib/utimens.c (utimensat_works_really): New cache variable.
43122         (fdutimens, lutimens): Use it to avoid failing syscall.
43123
43124         test-stat-time, test-utimens: improve portability
43125         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43126         ext4 on alpha, and for cygwin.
43127         * tests/test-utimens-common.h: New file.
43128         (nap): Factor delays into single function.
43129         * tests/test-lutimens.h (test_lutimens): Use new header.
43130         * tests/test-futimens.h (test_futimens): Likewise.
43131         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43132         timestamps to occur from same machine, as was done previously for
43133         test_utimens.
43134         * modules/utimens-tests (Files): Ship new file.
43135         * modules/futimens-tests (Files): Likewise.
43136         Reported in part by Jim Meyering.
43137
43138         sys_stat: sort replacement declarations
43139         * lib/sys_stat.in.h: Sort declarations.
43140         * lib/futimens.c (futimens): Fix typo.
43141
43142 2009-10-15  Jim Meyering  <meyering@redhat.com>
43143
43144         don't let environment settings perturb build
43145         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43146         could cause a configure-time and/or build-time malfunction.
43147         Typically, a configure-time function-in-library test is performed
43148         via code like this:
43149
43150           LIB_VAR=
43151           AC_SUBST([LIB_VAR])
43152           prefix_saved_LIBS=$LIBS
43153             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43154                        [test "$ac_cv_search_FUNC" = "none required" ||
43155                         LIB_VAR=$ac_cv_search_FUNC])
43156           LIBS=$prefix_saved_LIBS
43157
43158         However, in each of the files affected by this change, the LIB_VAR=
43159         initialization was omitted.  Thus, when set in the environment, its
43160         value would propagate into generated Makefiles when FUNC is not found
43161         in LIB_NAME.
43162         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43163         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43165
43166 2009-10-14  Eric Blake  <ebb9@byu.net>
43167
43168         fchdir: avoid infinite recursion in mingw
43169         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43170         recursing.
43171
43172         test-stat-time: port to mingw
43173         * tests/test-stat-time.c (force_unlink): Return a value.
43174         (test_ctime) [W32]: Fix compilation error.
43175         (nap): Don't call usleep with too large an argument.  Use
43176         force_unlink.
43177         * doc/pastposix-functions/usleep.texi (usleep): Document the
43178         portability issue.
43179
43180 2009-10-13  Jim Meyering  <meyering@redhat.com>
43181
43182         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43183         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43184         * modules/pipe-filter-ii: Likewise.
43185         * modules/sys_socket-tests: Likewise.
43186         * modules/tsearch-tests: Likewise.
43187         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43188         (check): Depend on it.
43189
43190 2009-10-12  Eric Blake  <ebb9@byu.net>
43191
43192         utimens-tests: port to NFS file systems
43193         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43194         comparisons to avoid spurious failures from timestamp drift
43195         between NFS machines.
43196
43197 2009-10-12  Eric Blake  <ebb9@byu.net>
43198
43199         stat-time-tests: minor cleanups
43200         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43201         * tests/test-stat-time.c (nap): Separate assignment from call.
43202         Suggested by Paolo Bonzini and Bruno Haible.
43203
43204         sys_stat: guarantee struct timespec
43205         * lib/sys_stat.in.h (includes): Always include <time.h>
43206         * modules/sys_stat (Depends-on): Add time.
43207         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43208         mode_t permission values.
43209         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43210         get at subsecond timestamps.
43211
43212 2009-10-10  Eric Blake  <ebb9@byu.net>
43213
43214         futimens: new module
43215         * modules/futimens: New file.
43216         * lib/futimens.c (futimens): Likewise.
43217         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43218         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43219         we can work around Linux bugs.
43220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43221         * modules/sys_stat (Makefile.am): Substitute them.
43222         * lib/sys_stat.in.h (futimens): Declare it.
43223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43224         * doc/posix-functions/futimens.texi (futimens): Likewise.
43225         * modules/futimens-tests: New test.
43226         * tests/test-futimens.c: Likewise.
43227
43228         utimens: introduce fdutimens
43229         * lib/utimens.h (fdutimens): New prototype.
43230         * lib/utimens.c (gl_futimens): Move guts...
43231         (fdutimens): ...to new interface.
43232         * tests/test-utimens.c (do_fdutimens): Use it.
43233
43234         utimens: add UTIME_NOW and UTIME_OMIT support
43235         * lib/utimens.c (validate_timespec, update_timespec): New helper
43236         functions.
43237         (gl_futimens, lutimens): Use them.
43238         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43239         stdbool, sys_stat.
43240         (Link): Mention resulting library dependency.
43241         * modules/utimecmp (Link): Likewise.
43242         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43243         (Makefile.am): Pick up library dependency.
43244         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43245         definition.
43246         * tests/test-sys_stat.c: Test the definitions.
43247         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43248         * NEWS: Document library dependency.
43249
43250         utimecmp: support symlink timestamps
43251         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43252         hashing when possible.  Use pathconf when available.
43253         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43254         * modules/utimecmp (Depends-on): Add lstat.
43255
43256         utimens: add lutimens interface
43257         * lib/utimens.c (lutimens): New function.
43258         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43259         * lib/utimens.h (lutimens): Declare new interface.
43260         * tests/test-utimens.c (main): Enhance test.
43261         * tests/test-lutimens.h (test_lutimens): New file.
43262         * modules/utimens-tests (Files): Distribute it.
43263         (Depends-on): Add symlink.
43264         (configure.ac): Check for usleep.
43265
43266         utimens: validate futimens usage
43267         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43268         fewer syscalls on failure later on.  Avoid compiler warning on
43269         mingw.
43270         * modules/utimens (Depends-on): Add dup2.
43271
43272         utimens: add test
43273         * modules/utimens-tests: New test.
43274         * tests/test-utimens.h: New file.
43275         * tests/test-futimens.h: Likewise.
43276         * tests/test-utimens.c: Likewise.
43277
43278         doc: mention timestamp portability issues
43279         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43280         instead.
43281         * doc/posix-functions/utime.texi (utime): Likewise.
43282         * doc/posix-functions/utimes.texi (utimes): Likewise.
43283         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43284         instead.
43285         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43286         module.
43287         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43288         Mention weakness with symlink timestamps.
43289         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43290         to utimensat/futimens instead.
43291         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43292
43293         test-dup2: enhance test
43294         * tests/test-dup2.c (main): Also check AT_FDCWD.
43295
43296         test-stat-time: avoid more spurious failures
43297         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43298         xfs; and avoid race if the two timestamps cross quantization edge.
43299
43300         relocatable: prefer 'file system' over 'filesystem'
43301         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43302         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43303         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43304         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43305         * lib/relocatable.c (compute_curr_prefix): Likewise.
43306
43307 2009-10-10  Jim Meyering  <meyering@redhat.com>
43308
43309         stat-time-tests: check for the usleep function
43310         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43311
43312 2009-10-10  Bruno Haible  <bruno@clisp.org>
43313
43314         * modules/xnanosleep: Put the Link section after the Include section.
43315
43316 2009-10-09  Eric Blake  <ebb9@byu.net>
43317
43318         dup2: work around FreeBSD 6.1 bug
43319         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43320         * doc/posix-functions/dup2.texi (dup2): Document it.
43321         Reported by Nelson H. F. Beebe and Jim Meyering.
43322
43323         test-stat-time: port to buggy NFS clients
43324         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43325         (test_ctime): Also skip test if mtime and ctime are skewed.
43326
43327         maint: prefer 'file system' over 'filesystem'
43328         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43329         * doc/posix-functions/lstat.texi (lstat): Likewise.
43330         * lib/file-has-acl.c (file_has_acl): Likewise.
43331         * lib/fwriteerror.c [TEST]: Likewise.
43332         * tests/test-areadlink.h (test_areadlink): Likewise.
43333         * tests/test-areadlinkat-with-size.c (main): Likewise.
43334         * tests/test-areadlinkat.c (main): Likewise.
43335         * tests/test-canonicalize-lgpl.c (main): Likewise.
43336         * tests/test-canonicalize.c (main): Likewise.
43337         * tests/test-fstatat.c (main): Likewise.
43338         * tests/test-linkat.c (main): Likewise.
43339         * tests/test-lstat.h (test_lstat_func): Likewise.
43340         * tests/test-mkdir.h (test_mkdir): Likewise.
43341         * tests/test-readlink.h (test_readlink): Likewise.
43342         * tests/test-remove.c (main): Likewise.
43343         * tests/test-rename.h (test_rename): Likewise.
43344         * tests/test-renameat.c (main): Likewise.
43345         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43346         * tests/test-symlink.h (test_symlink): Likewise.
43347         * tests/test-symlinkat.c (main): Likewise.
43348         * tests/test-unlink.h (test_unlink_func): Likewise.
43349         * tests/test-unlinkat.c (main): Likewise.
43350
43351         maint: make realtime library usage explicit
43352         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43353         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43354         * modules/settime (Link): Likewise.
43355         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43356
43357         test-stat-time: speed up execution
43358         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43359         warning on mingw.
43360         (nap): New helper function.
43361         (prepare_test): Use it to reduce sleep time.
43362         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43363         execution.
43364         * modules/stat-time-tests (configure.ac): Check for usleep.
43365
43366 2009-10-09  Jim Meyering  <meyering@redhat.com>
43367
43368         selinux-h: always use getfilecon wrappers
43369         * lib/getfilecon.c: New file.
43370         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43371         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43372         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43373         (fgetfilecon): Provide a stub.
43374         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43375         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43376         file unconditionally.
43377         When <selinux/selinux.h> is found, arrange to use wrappers.
43378         * modules/selinux-h (Files): Add getfilecon.c.
43379         (Makefile.am): Substitute include-next-related bits
43380         into the now-always-generated selinux/selinux.h file.
43381         * doc/glibc-functions/lgetfilecon.texi: New file.
43382         * doc/glibc-functions/fgetfilecon.texi: New file.
43383         * doc/glibc-functions/getfilecon.texi: New file.
43384         * doc/glibc-functions/getfilecon-desc.texi: New file.
43385         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43386         which to pull in the new files.
43387         * MODULES.html.sh (Misc): Add selinux-h.
43388
43389 2009-10-08  Jim Meyering  <meyering@redhat.com>
43390
43391         unistd: fix comment typo
43392         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43393
43394 2009-10-08  Eric Blake  <ebb9@byu.net>
43395
43396         areadlink: use SIZE_MAX consistently
43397         * modules/areadlink (Depends-on): Add stdint.
43398         * modules/areadlink-with-size (Depends-on): Likewise.
43399         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43400         gives NULL; drop sys/types, since unistd gives size_t; and add
43401         stdint for SIZE_MAX.
43402         (SIZE_MAX): Rely on headers.
43403         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43404         and add stdint.
43405         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43406         (SIZE_MAX): Likewise.
43407         (INITIAL_BUF_SIZE): Turn into enum.
43408         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43409
43410 2009-10-08  Jim Meyering  <meyering@redhat.com>
43411
43412         areadlinkat: avoid compilation failure
43413         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43414         Fix typo in comment.
43415
43416 2009-10-07  Eric Blake  <ebb9@byu.net>
43417
43418         areadlinkat-with-size: new module
43419         * modules/areadlinkat-with-size: New module.
43420         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43421         * lib/areadlink.h (areadlinkat): Declare it.
43422         * MODULES.html.sh (File system functions): Mention it.
43423         * modules/areadlinkat-with-size-tests: New test.
43424         * tests/test-areadlinkat-with-size.c: New file.
43425
43426         xreadlinkat: new module
43427         * modules/xreadlinkat: New module.
43428         * lib/xreadlinkat.c (xreadlinkat): New file.
43429         * lib/xreadlink.h (xreadlinkat): Declare it.
43430         * MODULES.html.sh (File system functions): Mention it.
43431
43432         areadlinkat: new module
43433         * lib/at-func.c (FUNC_FAIL): New define.
43434         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43435         * modules/areadlinkat: New module.
43436         * lib/linkat.c (areadlinkat): Move...
43437         * lib/areadlinkat.c (areadlinkat): ...to new file.
43438         * lib/areadlink.h (areadlinkat): Declare it.
43439         * modules/linkat (Depends-on): Add areadlinkat.
43440         * MODULES.html.sh (File system functions): Mention it.
43441         * modules/areadlinkat-tests: New test.
43442         * tests/test-areadlinkat.c: New file.
43443
43444         areadlink, areadlink-with-size: add tests
43445         * modules/areadlink-tests: New test.
43446         * modules/areadlink-with-size-tests: Likewise.
43447         * tests/test-areadlink.h: New file.
43448         * tests/test-areadlink.c: Likewise.
43449         * tests/test-areadlink-with-size.c: Likewise.
43450
43451         maint: minor cleanups
43452         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43453         _UNUSED_PARAMETER_ instead.
43454         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43455         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43456         * modules/linkat-tests (Files): Distribute test-link.h.
43457
43458         openat, utimens: whitespace cleanup
43459         * lib/openat.c: Prefer space throughout, rather than mix of 8
43460         spaces vs. tabs.
43461         * lib/at-func.c: Likewise.
43462         * lib/utimens.c: Likewise.
43463
43464         openat: avoid using wrong fd
43465         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43466         working directory chooses same fd.
43467         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43468
43469         mkdir, mkdirat: fix cygwin 1.5.x bug
43470         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43471         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43472         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43473         bug.
43474         (gl_PREREQ_MKDIR): Delete unused macro.
43475         * modules/mkdir (Files): Track file rename.
43476         (configure.ac): Update macro name.
43477         * modules/openat (Depends-on): Add mkdir.
43478         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43479
43480         mkdir, mkdirat: add tests
43481         * modules/mkdir-tests: New test.
43482         * tests/test-mkdir.h: New file.
43483         * tests/test-mkdir.c: Likewise.
43484         * tests/test-mkdirat.c: Likewise.
43485         * modules/openat-tests (Files): Add new files.
43486         (Makefile.am): Run new test.
43487
43488 2009-10-06  Eric Blake  <ebb9@byu.net>
43489
43490         doc: tweak *at function documentation
43491         * doc/posix-functions/faccessat.texi (faccessat): Mention
43492         known issue with replacement.
43493         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43494         * doc/posix-functions/linkat.texi (linkat): Likewise.
43495         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43496         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43497         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43498         * doc/posix-functions/renameat.texi (renameat): Likewise.
43499         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43500
43501         openat: fix GNU/Hurd bug in unlinkat
43502         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43503         broken.
43504         * doc/posix-functions/unlink.texi (unlink): Document this.
43505         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43506
43507         fdopendir: fix GNU/Hurd bug
43508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43509         allowing non-directory fds.
43510         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43511         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43512         * modules/dirent (Makefile.am): Substitute it.
43513         * lib/dirent.in.h (fdopendir): Declare replacement.
43514         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43515         * tests/test-fdopendir.c (main): Test something other than
43516         /dev/null, since on Hurd that behaves like a directory.
43517
43518         test-symlink: port to GNU/Hurd
43519         * tests/test-symlink.h (test_symlink): Relax expected errno.
43520
43521         doc: tweak more cygwin information
43522         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43523         now compatible with glibc.
43524         * doc/posix-functions/getopt.texi (getopt): Likewise.
43525
43526         getopt-gnu: add another test
43527         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43528         guarantee behavior relied on by m4.
43529         * tests/test-getopt.c (main): Use it.
43530         * modules/getopt-posix-tests (Depends-on): Add setenv.
43531         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43532
43533         getopt: fix compilation on darwin
43534         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43535         include.
43536         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43537         Reported by Ludovic Courtès.
43538
43539 2009-10-06  Bruno Haible  <bruno@clisp.org>
43540
43541         * modules/size_max (Description): Discourage its use.
43542         Reported by Simon Josefsson.
43543
43544 2009-10-06  Jim Meyering  <meyering@redhat.com>
43545
43546         linkat: avoid compilation failure
43547         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43548
43549 2009-10-05  Eric Blake  <ebb9@byu.net>
43550
43551         linkat: support Linux 2.6.17
43552         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43553         linkat on Linux, but allow cache variable override.
43554         * lib/linkat.c (rpl_linkat): Define override.
43555         * modules/linkat (Depends-on): Add symlinkat.
43556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43557         * modules/unistd (Makefile.am): Substitute it.
43558         * lib/unistd.in.h (linkat): Declare replacement.
43559         Reported by Pádraig Brady.
43560
43561         quotearg: port test to systems with C.UTF-8 locale
43562         * tests/test-quotearg.c (struct result_strings): Add another
43563         member, differentiating between C.ASCII and C.UTF-8 handling.
43564         (compare_strings): Add parameter.
43565         (main): Adjust all callers.
43566
43567         getopt: avoid clash with FreeBSD _getopt_internal
43568         * lib/getopt.in.h (_getopt_internal): Override the name.
43569         * lib/getopt_int.h (includes): Pick up any overrides.
43570         Reported by Reuben Thomas.
43571
43572         hash: allow C89 compilation
43573         * lib/hash.c (check_tuning): Move declaration before statement.
43574         Reported by Reuben Thomas.
43575
43576 2009-10-05  Karl Berry  <karl@gnu.org>
43577
43578         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43579
43580 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43581             Bruno Haible  <bruno@clisp.org>
43582
43583         * lib/uname.c (uname): Use a table-driven algorithm to compute
43584         Windows NT versions.
43585
43586 2009-10-04  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43589         program_invocation_short_name.
43590         * modules/progname (configure.ac): Test for presence of
43591         program_invocation_short_name.
43592         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43593
43594 2009-10-04  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/progname.c (set_program_name): Fix comment.
43597         Reported by Jim Meyering.
43598
43599 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43600             Bruno Haible  <bruno@clisp.org>
43601
43602         * lib/uname.c: Include <string.h>.
43603         (uname): Do only one call to GetVersionEx in the common case.
43604
43605 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43606             Bruno Haible  <bruno@clisp.org>
43607
43608         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43609         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43610         (uname): Add support for Windows CE and various non-x86 CPU types.
43611
43612 2009-10-03  Bruno Haible  <bruno@clisp.org>
43613
43614         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43615         invocation to tests/configure.ac.
43616         Reported by Ian Beckwith <ianb@erislabs.net>.
43617
43618 2009-10-02  Eric Blake  <ebb9@byu.net>
43619
43620         fchdir: avoid compiler warning
43621         * lib/fchdir.c (canonicalize_file_name)
43622         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43623
43624         test-open: support mingw errno values
43625         * tests/test-open.h (test_open): Relax test.
43626         * tests/test-fopen.h (test_fopen): Likewise.
43627         * tests/test-openat-safer.c (main): Likewise.
43628
43629         open: fix opening directory on mingw
43630         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43631
43632         test-open: on GNU/Hurd, /dev/null is a directory
43633         * tests/test-fopen.h (main): Rename...
43634         (test_fopen): ...to this.  Use a guaranteed non-directory when
43635         confirming open behavior on trailing slash.
43636         * tests/test-openat-safer.c (main): Likewise.
43637         * tests/test-open.h (main): Likewise....
43638         (test_open): ...to this.
43639         * tests/test-fopen.c (main): Adjust caller.
43640         * tests/test-fopen-safer.c (main): Likewise.
43641         * tests/test-open.c (main): Likewise.
43642         * tests/test-fcntl-safer.c (main): Likewise.
43643         Reported by Samuel Thibault.
43644
43645         rename, fchdir: don't ignore chdir failure
43646         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43647         * lib/rename.c (rpl_rename) [W32]: Likewise.
43648         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43649         an empty destination directory if source cannot be renamed,
43650         although there is still possibility for failure.
43651         * doc/posix-functions/rename.texi (rename): Document the race.
43652         Reported by Jim Meyering.
43653
43654         maint: cleanup whitespace in recent commits
43655         * lib/rename.c (rpl_rename): Remove tabs.
43656         * tests/test-link.h (test_link): Likewise.
43657         * lib/fchdir.c (get_name): Likewise.
43658         Reported by Jim Meyering.
43659
43660 2009-10-02  Ben Pfaff  <blp@gnu.org>
43661
43662         relocatable-prog-wrapper: Add missing dependency on
43663         double-slash-root.
43664         * modules/relocatable-prog-wrapper: Add dependency.
43665         Reported by Ian Beckwith <ianb@erislabs.net>.
43666
43667 2009-10-02  Eric Blake  <ebb9@byu.net>
43668
43669         renameat: fix Solaris bugs
43670         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43671         needed fixing.
43672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43673         * modules/stdio (Makefile.am): Substitute it.
43674         * lib/stdio.in.h (renameat): Declare replacement.
43675         * lib/renameat.c (rpl_renameat): Implement fix.
43676
43677         renameat: new module
43678         * modules/renameat: New file.
43679         * lib/renameat.c (renameat): Likewise.
43680         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43682         * modules/stdio (Makefile.am): Substitute them.
43683         * lib/stdio.in.h (renameat): Declare it.
43684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43685         * doc/posix-functions/renameat.texi (renameat): Likewise.
43686         * modules/renameat-tests: New test.
43687         * tests/test-renameat.c: Likewise.
43688
43689         rename: fix mingw bugs
43690         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43691         directory overwrite bugs.
43692
43693         rename: fix another cygwin 1.5 bug
43694         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43695         checks.
43696         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43697         unnecessary cygwin workarounds.  Also work around bug with moving
43698         full directory onto an empty one.
43699         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43700
43701         rename-dest-slash: merge into rename module
43702         * modules/rename-dest-slash (Status): Mark obsolete.
43703         (Depends-on): Add rename.
43704         (Files): Let rename do it all.
43705         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43706         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43707         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43708         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43709         * lib/rename.c (rpl_rename): Update comments.
43710
43711         rename: fix cygwin 1.5.x bugs
43712         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43713         * lib/rename.c (rpl_rename): Work around them.
43714         * modules/rename (Depends-on): Add same-inode.
43715
43716         rename: fix Solaris 10 bug
43717         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43718         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43719         was the only bug.
43720
43721         rename: fix Solaris 9 bug
43722         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43723         on non-directory.  Avoid calling exit.
43724         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43725         strdup.
43726         * modules/rename-tests (Depends-on): Drop lstat.
43727         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43728         (gl_PREREQ_RENAME): Delete unused macro.
43729
43730         rename-dest-slash: fix NetBSD bug
43731         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43732         links.
43733         * modules/rename-dest-slash (Depends-on): Add same-inode.
43734
43735         rename-tests: new test, exposes several platform bugs
43736         * modules/rename-tests: New file.
43737         * tests/test-rename.h: Likewise.
43738         * tests/test-rename.c: Likewise.
43739         * doc/posix-functions/rename.texi (rename): Improve documentation,
43740         including bugs that will eventually be fixed in gnulib.
43741
43742 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43743
43744         * lib/uname.c: Include <stdlib.h>
43745         (uname): Assume version info is available.
43746
43747 2009-10-02  Jim Meyering  <meyering@redhat.com>
43748
43749         gnu-web-doc-update: correct --help output
43750         * build-aux/gnu-web-doc-update: Make --help output relevant.
43751
43752         gnu-web-doc-update: add standard options
43753         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43754
43755         gnu-web-doc-update: New module.
43756         Use this script to automatically update the on-line web documentation
43757         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43758         * modules/gnu-web-doc-update: New file, from coreutils.
43759         * build-aux/gnu-web-doc-update: New script.
43760
43761 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43762
43763         link: LoadLibrary is not needed.
43764         * lib/link.c: Use GetModuleHandle.
43765
43766 2009-10-01  Eric Blake  <ebb9@byu.net>
43767
43768         getopt: bump serial number
43769         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43770         change.
43771
43772         tests: tighten link, rmdir, and remove tests
43773         * tests/test-link.h (includes): No need to use <config.h> here.
43774         Clean up if directory hard link was created, otherwise test for
43775         trailing '.'.
43776         * tests/test-linkat.c (main): Simplify.
43777         * tests/test-remove.c (main): Enhance test for trailing '.'.
43778         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43779
43780 2009-10-01  Jim Meyering  <meyering@redhat.com>
43781
43782         maint.mk: requiring "make major" was annoying, for a "minor" release.
43783         What is intended is "stable", to contrast with alpha and beta,
43784         so require "make stable", not "make major".
43785         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43786         (get_tool_versions): Likewise.
43787         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43788
43789 2009-09-30  Ben Pfaff  <blp@gnu.org>
43790
43791         Fix broken build of replacement for Windows tmpfile().
43792         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43793         flags argument added along with the 'mkostemp' module.
43794
43795 2009-09-28  Bruno Haible  <bruno@clisp.org>
43796
43797         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43798         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43799         to 'remove_elt'.
43800         (gl_list_remove): Update.
43801         * lib/gl_list.c (gl_list_remove): Update.
43802         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43803         to 'remove_elt'.
43804         (gl_oset_remove): Update.
43805         * lib/gl_list.c (gl_oset_remove): Update.
43806         Reported by Eric Blake.
43807
43808 2009-09-28  Eric Blake  <ebb9@byu.net>
43809
43810         doc: mention yet more cygwin 1.7 status
43811         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43812         cygwin.
43813         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43814         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43815
43816         argp: fix test failure
43817         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43818         that are not upper-case.  Pass correct range to tolower.
43819
43820 2009-09-27  Jim Meyering  <meyering@redhat.com>
43821
43822         test-yesno: work around sparc-dash here-document infelicity
43823         Without this change, the literal \177 byte in a here document
43824         would make dash 0.5.5.1-3 access uninitialized memory.
43825         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43826         Instead, use a marker, "@", and filter through tr to create the desired
43827         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43828
43829 2009-09-27  Bruno Haible  <bruno@clisp.org>
43830
43831         Disable untested support for new flavours of ACLs on AIX.
43832         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43833         progress.
43834         * lib/set-mode-acl.c (qset_acl): Likewise.
43835
43836 2008-12-07  Bruno Haible  <bruno@clisp.org>
43837
43838         Add support for new flavours of ACLs on AIX. (Untested.)
43839         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43840         (file_has_acl): Add support for newer AIX.
43841         * lib/set-mode-acl.c (qset_acl): Likewise.
43842         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43843         Rainer Tammer <tammer@tammer.net>.
43844
43845 2009-09-26  Eric Blake  <ebb9@byu.net>
43846
43847         argp: fix compilation of getopt
43848         * lib/getopt.in.h (includes): Use different guard than glibc.
43849         Reported by Sergey Poznyakoff.
43850
43851         doc: mention more cygwin 1.7 status
43852         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43853         bug.
43854         * doc/posix-functions/execl.texi (execl): Likewise.
43855         * doc/posix-functions/execle.texi (execle): Likewise.
43856         * doc/posix-functions/execlp.texi (execlp): Likewise.
43857         * doc/posix-functions/execv.texi (execv): Likewise.
43858         * doc/posix-functions/execve.texi (execve): Likewise.
43859         * doc/posix-functions/execvp.texi (execvp): Likewise.
43860         * doc/glibc-functions/canonicalize_file_name.texi
43861         (canonicalize_file_name): Cygwin 1.7 now provides this.
43862         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43863         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43864         on AT_SYMLINK_NOFOLLOW.
43865
43866 2009-09-24  Eric Blake  <ebb9@byu.net>
43867
43868         test-linkat: make test more robust
43869         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43870
43871         getopt: fix inclusion guards for cygwin
43872         * modules/getopt-posix (Depends-on): Add include-next.
43873         (Makefile.am): Substitute more items in replacement header.
43874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43875         <getopt.h>.
43876         * lib/getopt.in.h (includes): Use split inclusion guard, and
43877         prefer <getopt.h> over include <unistd.h> when one is present.
43878         (option): Also override name of 'struct option'.
43879
43880         same-inode: revert prior change; it is not yet ready
43881         * NEWS: Undo mention of this change.
43882         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43883         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43884         * lib/cycle-check.c (cycle_check): Likewise.
43885         * lib/same.c (same_name): Likewise.
43886         * lib/at-func2.c (at_func2): Likewise.
43887
43888 2009-09-23  Eric Blake  <ebb9@byu.net>
43889
43890         linkat: new module
43891         * modules/linkat: New file.
43892         * lib/at-func2.c (at_func2): Likewise.
43893         * lib/linkat.c (linkat): Likewise.
43894         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43895         * lib/openat-priv.h (at_func2): Add declaration.
43896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43897         * modules/unistd (Makefile.am): Substitute them.
43898         * lib/unistd.in.h (linkat): Declare it.
43899         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43900         * doc/posix-functions/linkat.texi (linkat): Likewise.
43901         * doc/posix-functions/link.texi (link): Tweak wording.
43902         * tests/test-link.c (main): Move guts...
43903         * tests/test-link.h (test_link): ...into new file.
43904         * modules/linkat-tests: New test.
43905         * tests/test-linkat.c: Likewise.
43906         * modules/link-tests (Files): Ship new file.
43907         (Depends-on): Add stdbool.
43908
43909         dirname: add library-safe mdir_name
43910         * lib/dirname.h (mdir_name): New prototype.
43911         * lib/dirname.c (dir_name): Move guts...
43912         (mdir_name): ...to new function that avoids xalloc_die.
43913
43914         fchdir: another mingw fix
43915         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43916         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43917         on mingw (where it has not yet been ported), and make it optional
43918         elsewhere.
43919         (_gl_register_fd): Use it.
43920
43921         same-inode: make SAME_INODE tri-state, to port to mingw
43922         * NEWS: Mention this change.
43923         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43924         st_ino always being 0.
43925         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43926         * lib/cycle-check.c (cycle_check): Likewise.
43927         * lib/same.c (same_name): Likewise.
43928
43929         lstat: avoid mingw compilation error
43930         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43931         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43932         lstat ourselves.
43933         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43934         was adequate.
43935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43936         the checks for lstat.
43937         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43938
43939         link: fix test failure on Solaris 9
43940         * lib/link.c (rpl_link): Don't assume link will catch bogus
43941         trailing slash on source.
43942
43943         test-symlinkat: enhance test
43944         * tests/test-readlink.c (main): Move guts...
43945         * tests/test-readlink.h (test_readlink): ...into new file.
43946         * tests/test-symlink.c (main): Move guts...
43947         * tests/test-symlink.h (test_symlink): ...into new file.
43948         * tests/test-symlinkat.c (main): Use new files for further
43949         coverage.
43950         (do_symlink, do_readlink): New helper functions.
43951         * modules/symlink-tests (Files): Ship new file.
43952         (Depends-on): Add stdbool.
43953         * modules/readlink-tests (Files): Ship new file.
43954         (Depends-on): Add stdbool.
43955         * modules/symlinkat-tests (Files): Use new files.
43956
43957 2009-09-23  Eric Blake  <ebb9@byu.net>
43958
43959         readlink: document portability issue with symlink length
43960         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43961         systems have bogus st_size on symlinks, and mention the
43962         areadlink-with-size module.
43963         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43964         * doc/posix-functions/readlink.texi (readlink): Mention the
43965         areadlink module, and ERANGE failure.
43966         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43967         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43968
43969         readlink: fix Solaris 9 bug with trailing slash
43970         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43971         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43972         * doc/posix-functions/readlink.texi (readlink): Document this.
43973         * modules/readlink-tests: New test.
43974         * tests/test-readlink.c: Likewise.
43975
43976         readlink: fix cygwin 1.5.x bug with return type
43977         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43978         * lib/unistd.in.h (readlink): Use ssize_t.
43979         * lib/readlink.c (readlink): Likewise.
43980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43981         * modules/unistd (Makefile.am): Substitute it.
43982         * lib/unistd.in.h (readlink): Declare replacement.
43983         * doc/posix-functions/readlink.texi (readlink): Document this.
43984
43985         symlink: use throughout gnulib
43986         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43987         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43988         symlink is not used.
43989         * modules/symlinkat (Depends-on): Add symlink.
43990         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43991         * modules/canonicalize-tests (Depends-on): Likewise.
43992         * modules/lstat-tests (Depends-on): Likewise.
43993         * modules/openat-tests (Depends-on): Likewise.
43994         * modules/remove-tests (Depends-on): Likewise.
43995         * modules/rmdir-tests (Depends-on): Likewise.
43996         * modules/unlink-tests (Depends-on): Likewise.
43997         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43998         * tests/test-canonicalize.c (symlink): Likewise.
43999         * tests/test-fstatat.c (symlink): Likewise.
44000         * tests/test-lstat.c (symlink): Likewise.
44001         * tests/test-remove.c (symlink): Likewise.
44002         * tests/test-rmdir.c (symlink): Likewise.
44003         * tests/test-unlink.c (symlink): Likewise.
44004         * tests/test-unlinkat.c (symlink): Likewise.
44005
44006         symlink: new module, for Solaris 9 bug
44007         * modules/symlink: New file.
44008         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44009         * lib/symlink.c: Likewise.
44010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44011         * modules/unistd (Makefile.am): Substitute them.
44012         * lib/unistd.in.h (symlink): Declare replacement.
44013         * MODULES.html.sh (File system functions): Mention it.
44014         * doc/posix-functions/symlink.texi (symlink): Likewise.
44015         * modules/symlink-tests: New test.
44016         * tests/test-symlink.c: Likewise.
44017
44018 2009-09-23  Bruno Haible  <bruno@clisp.org>
44019
44020         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44021         when needed.
44022         Test case: gnulib-tool --import --with-tests atexit inttypes.
44023         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44024
44025 2009-09-23  Bruno Haible  <bruno@clisp.org>
44026
44027         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44028         subcommand, not in a subshell.
44029
44030 2009-09-22  Eric Blake  <ebb9@byu.net>
44031
44032         unistd: sort replacement declarations
44033         * lib/unistd.in.h: Sort declarations.
44034
44035         open, openat: minor optimization
44036         * lib/open.c (open): If open succeeded, len is non-zero.
44037         * lib/openat.c (rpl_openat): Likewise.
44038
44039         link-follow: ensure correct result
44040         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44041         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44042         distinguish between possible failures.
44043
44044 2009-09-21  Eric Blake  <ebb9@byu.net>
44045
44046         fts: avoid compiler warning
44047         * lib/fts.c (dirent_inode_sort_may_be_useful)
44048         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44049
44050 2009-09-19  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/progreloc.c (canonicalize_file_name): New declaration.
44053
44054 2009-09-19  Eric Blake  <ebb9@byu.net>
44055
44056         link: fix quoting
44057         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44058
44059         openat: fix openat bugs on Solaris 9
44060         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44061         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44062         * modules/openat (Depends-on): Add open.
44063         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44064         * modules/fcntl-h (Makefile.am): Substitute it.
44065         * lib/fcntl.in.h (openat): Declare replacement.
44066         * doc/posix-functions/openat.texi (openat): Document this.
44067
44068         openat: move fstatat and unlinkat into correct files
44069         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44070         compiled.
44071         * lib/openat.c (fstatat, unlinkat): Move...
44072         * lib/fstatat.c (fstatat): ...into correct files.
44073         * lib/unlinkat.c (unlinkat): Likewise.
44074
44075         openat: fix unlinkat bugs on Solaris 9
44076         * lib/unlinkat.c (unlinkat): New file.
44077         * modules/openat (Depends-on): Add unlink.
44078         (Files): Distribute it.
44079         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44080         trailing slash behavior is broken.
44081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44082         * modules/unistd (Makefile.am): Substitute it.
44083         * lib/unistd.in.h (unlinkat): Declare replacement.
44084         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44085
44086         openat: fix fstatat bugs on Solaris 9
44087         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44088         stat.
44089         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44090
44091         test-unlinkat: enhance test, to expose Solaris 9 bug
44092         * tests/test-unlink.c (main): Factor guts...
44093         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44094         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44095         * tests/test-rmdir.c (main): Adjust caller.
44096         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44097         (unlinker): New helper function.
44098         (rmdirat): Enhance check.
44099         * modules/rmdir-tests (Depends-on): Add stdbool.
44100         * modules/unlink-tests (Depends-on): Likewise.
44101         (Files): Add test-unlink.h.
44102         * modules/openat-tests (Files): Likewise.
44103         (Depends-on): Add unlinkdir.
44104
44105         test-fstatat: new test, to expose Solaris 9 bugs
44106         * tests/test-stat.c (main): Factor guts...
44107         * tests/test-stat.h (test_stat_func): ...into new file.
44108         * tests/test-lstat.c (main): Factor guts...
44109         * tests/test-lstat.h (test_lstat_func): ...into new file.
44110         * tests/test-fstatat.c: New file.
44111         * modules/stat-tests (Files): Add test-stat.h.
44112         * modules/lstat-tests (Files): Add test-lstat.h.
44113         (Depends-on): Add stdbool.
44114         * modules/openat-tests (Depends-on): Add pathmax.
44115         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44116         (Makefile.am): Run new test.
44117
44118         remove: new module, for mingw and Solaris 9 bugs
44119         * modules/remove: New file.
44120         * lib/remove.c: Likewise.
44121         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44123         * modules/stdio (Makefile.am): Use them.
44124         * lib/stdio.in.h (remove): Declare replacement.
44125         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44126         * doc/posix-functions/remove.texi (remove): Likewise.
44127         * modules/remove-tests: New test.
44128         * tests/test-remove.c: Likewise.
44129
44130         unlink: new module, for Solaris 9 bug
44131         * modules/unlink: New file.
44132         * lib/unlink.c: Likewise.
44133         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44135         * modules/unistd (Makefile.am): Use them.
44136         * lib/unistd.in.h (stat): Declare replacement.
44137         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44138         * doc/posix-functions/unlink.texi (unlink): Likewise.
44139         * modules/unlink-tests: New test.
44140         * tests/test-unlink.c: Likewise.
44141
44142         lstat: fix Solaris 9 bug
44143         * lib/lstat.c (lstat): Also check for trailing slash on
44144         non-symlink, non-directories.  Use stat module to simplify logic.
44145         * doc/posix-functions/lstat.texi (lstat): Document it.
44146         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44147         (configure.ac): Check for symlink.
44148         * tests/test-lstat.c (main): Add more tests.
44149
44150         stat: add as dependency to other modules
44151         * modules/chown (Depends-on): Add stat.
44152         * modules/euidaccess (Depends-on): Likewise.
44153         * modules/fchdir (Depends-on): Likewise.
44154         * modules/isdir (Depends-on): Likewise.
44155         * modules/link (Depends-on): Likewise.
44156         * modules/lstat (Depends-on): Likewise.
44157         * modules/mkdir-p (Depends-on): Likewise.
44158         * modules/modechange (Depends-on): Likewise.
44159         * modules/open (Depends-on): Likewise.
44160         * modules/readlink (Depends-on): Likewise.
44161         * modules/same (Depends-on): Likewise.
44162
44163         stat: fix Solaris 9 bug
44164         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44165         slash.
44166         * lib/stat.c (rpl_stat): Work around it.
44167         * doc/posix-functions/stat.texi (stat): Update documentation.
44168
44169         stat: new module, for mingw bug
44170         * modules/stat: New file.
44171         * lib/stat.c: Likewise.
44172         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44173         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44174         * modules/sys_stat (Makefile.am): Use them.
44175         * lib/sys_stat.in.h (stat): Declare replacement.
44176         * lib/openat.c (fstatat): Deal with lstat and stat being function
44177         macros.
44178         * modules/openat (Depends-on): Add inline.
44179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44180         * doc/posix-functions/stat.texi (stat): Likewise.
44181         * modules/stat-tests: New test.
44182         * tests/test-stat.c: Likewise.
44183
44184 2009-09-19  Jim Meyering  <meyering@redhat.com>
44185
44186         syntax-check: detect unnecessary inclusion of canonicalize.h
44187         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44188
44189 2009-09-19  Eric Blake  <ebb9@byu.net>
44190
44191         canonicalize-lgpl: adjust clients to use correct header
44192         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44193         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44194         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44195         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44196         * lib/progreloc.c (includes): Likewise.
44197
44198 2009-09-19  Jim Meyering  <meyering@redhat.com>
44199
44200         test-posixtm.c: correct a comment
44201         * tests/test-posixtm.c: Correct first-line comment.
44202         Spotted by Eric Blake.
44203
44204 2009-09-16  Jim Meyering  <meyering@redhat.com>
44205
44206         posixtm-tests: make T const-correct; add a test case
44207         * tests/test-posixtm.c (T): Declare const.
44208         Add a test for -(2^31+1).
44209         Remove useless can-succeed-only-in-2002 test.
44210
44211         posixtm-tests: adjust the sole failing test
44212         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44213         expected output matches what mktime now produces.  Cross-checked via
44214         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44215
44216         posixtm: move #ifdef'd tests into a new module
44217         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44218         * tests/test-posixtm.c: ... this new file.
44219         * modules/posixtm-tests: New module.
44220
44221 2009-09-19  Eric Blake  <ebb9@byu.net>
44222
44223         openat: simplify use of at-func.c
44224         * lib/at-func.c (includes): Include prerequisites here, to
44225         simplify requirements on client files.
44226         * lib/openat-priv.h: Add double-inclusion guard.
44227         * lib/faccessat.c (includes): Simplify.
44228         * lib/fchmodat.c (includes): Likewise.
44229         * lib/fchownat.c (includes): Likewise.
44230         * lib/mkdirat.c (includes): Likewise.
44231         * lib/mkfifoat.c (includes): Likewise.
44232         * lib/symlinkat.c (includes): Likewise.
44233
44234         openat: allow return of fd 0
44235         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44236         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44237         unistd-safer.
44238         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44239         <fcntl.h>; this module does not leak fds.
44240         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44241         must be allowed to return 0, leaving openat_safer to add the
44242         safety.
44243         (openat_permissive): Avoid writing to just-opened fd 2 if
44244         restoring the current directory fails.
44245         * lib/openat-die.c (openat_restore_fail): Add comment.
44246         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44247         (save_cwd): Guarantee safe fd, but without use of open_safer.
44248         * tests/test-openat.c: New test.
44249         * modules/openat-tests (Files, Makefile.am): Distribute and build
44250         new file.
44251
44252         relocatable-prog-wrapper: fix build
44253         * modules/relocatable-prog-wrapper (Files): Update name of
44254         canonicalize m4 file, broken on 2009-09-17.
44255         Reported by emad hajjar <aleppos@hotmail.com>.
44256
44257 2009-09-19  Bruno Haible  <bruno@clisp.org>
44258
44259         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44260         * lib/safe-alloc.c: Likewise.
44261         Reported by Ian Beckwith <ianb@erislabs.net>.
44262
44263 2009-09-18  Bruno Haible  <bruno@clisp.org>
44264
44265         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44266         Reported by <erobles@sensacd.com.mx>.
44267
44268 2009-09-17  Eric Blake  <ebb9@byu.net>
44269
44270         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44271         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44272         slashes when checking if last component is missing.
44273         * tests/test-canonicalize.c (main): Test this.
44274
44275         canonicalize, canonicalize-lgpl: honor // if distinct from /
44276         * modules/canonicalize (Files): Add double-slash-root.m4.
44277         * modules/canonicalize-lgpl (Files): Likewise.
44278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44279         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44280         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44281         fallback definition.
44282         (canonicalize_filename_mode): Use it to protect //.
44283         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44284         (__realpath): Likewise.
44285         * tests/test-canonicalize.c (main): Test this.
44286         * tests/test-canonicalize-lgpl.c (main): Likewise.
44287         * modules/canonicalize-tests (Depends-on): Add same-inode.
44288         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44289
44290         canonicalize-lgpl: fix glibc bug with trailing slash
44291         * m4/canonicalize-lgpl.m4: Move contents...
44292         * m4/canonicalize.m4: ...here.
44293         (gl_CANONICALIZE_LGPL): Factor realpath check...
44294         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44295         glibc 2.3.5 bug, fixed 2005-04-27.
44296         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44297         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44298         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44299         * modules/canonicalize-lgpl (Files): Manage file rename.
44300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44301         * modules/stdlib (Makefile.am): Substitute witness.
44302         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44303         is needed.
44304         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44305         replacement is required.
44306         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44307         * doc/glibc-functions/canonicalize_file_name.texi
44308         (canonicalize_file_name): Document this.
44309         * doc/posix-functions/realpath.texi (realpath): Likewise.
44310
44311         canonicalize-lgpl: reject non-directory with trailing slash
44312         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44313         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44314         catches failures in glibc 2.3.5.
44315         * tests/test-canonicalize.c (main): Likewise.
44316
44317         canonicalize-lgpl: use native realpath if it works
44318         * lib/canonicalize-lgpl.c (realpath): Guard with
44319         FUNC_REALPATH_WORKS.
44320         * lib/stdlib.in.h (realpath): Make declaration optional based on
44321         HAVE_REALPATH.
44322         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44323         native realpath works.
44324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44325         * modules/stdlib (Makefile.am): Substitute witness.
44326
44327         canonicalize, canonicalize-lgpl: use <stdlib.h>
44328         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44329         (Include): Mention <stdlib.h>.
44330         (configure.ac): Mention functions we provide.
44331         * modules/canonicalize (configure.ac): Likewise.
44332         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44333         realpath if canonicalize_file_name is missing.
44334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44335         * modules/stdlib (Makefile.am): Substitute witnesses.
44336         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44337         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44338         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44339         * NEWS: Document this.
44340         * doc/glibc-functions/canonicalize_file_name.texi
44341         (canonicalize_file_name): Likewise.
44342         * doc/posix-functions/realpath.texi (realpath): Likewise.
44343         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44344
44345         test-canonicalize: consolidate into single C program
44346         * tests/test-canonicalize.sh: Delete; move setup into...
44347         * tests/test-canonicalize.c (main): ...the program, making it
44348         easier to run in debugger.  Add some tests.
44349         * modules/canonicalize-tests (Files): Remove unused file.
44350         (Depends-on): Add progname.
44351         (configure.ac, Makefile.am): Simplify.
44352
44353         test-canonicalize-lgpl: consolidate into single C program
44354         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44355         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44356         easier to run in debugger.  Add some tests.
44357         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44358         (configure.ac, Makefile.am): Simplify.
44359
44360         canonicalize: avoid resolvepath
44361         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44362         unnecessary checks.
44363         * lib/canonicalize.c (includes): Simplify.
44364         (canonicalize_file_name): Drop resolvepath implementation.
44365         * modules/canonicalize (Depends-on): Drop filenamecat.
44366
44367         canonicalize: don't lose errno
44368         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44369         over calls to free.
44370
44371         canonicalize: simplify errno handling
44372         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44373         assignment.
44374
44375         canonicalize, canonicalize-lgpl: update module dependencies
44376         * modules/canonicalize (Depends-on): Add extensions, lstat,
44377         pathmax, stdlib.
44378         (Files): Drop pathmax.h.
44379         (configure.ac): Adjust macro name.
44380         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44381         lstat, stdlib, sys_stat.
44382         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44383         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44384         extensions.
44385         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44386         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44387         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44388         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44389         declaration, if available.
44390         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44391         we can rely on the readlink module.
44392         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44393         (includes): Use <unistd.h> unconditionally.
44394
44395 2009-09-17  Eric Blake  <ebb9@byu.net>
44396
44397         maint: make Include sections of modules consistent
44398         * modules/alloca: Use only header name; no need to list #include.
44399         * modules/alloca-opt: Likewise.
44400         * modules/arpa_inet: Likewise.
44401         * modules/canon-host: Likewise.
44402         * modules/configmake: Likewise.
44403         * modules/dirent: Likewise.
44404         * modules/eealloc: Likewise.
44405         * modules/environ: Likewise.
44406         * modules/fchdir: Likewise.
44407         * modules/fcntl: Likewise.
44408         * modules/fcntl-h: Likewise.
44409         * modules/gethrxtime: Likewise.
44410         * modules/gettime: Likewise.
44411         * modules/ignore-value: Likewise.
44412         * modules/inet_ntop: Likewise.
44413         * modules/inet_pton: Likewise.
44414         * modules/inttypes: Likewise.
44415         * modules/isnand-nolibm: Likewise.
44416         * modules/isnanf-nolibm: Likewise.
44417         * modules/mbchar: Likewise.
44418         * modules/mbfile: Likewise.
44419         * modules/mbiter: Likewise.
44420         * modules/mbuiter: Likewise.
44421         * modules/netdb: Likewise.
44422         * modules/netinet_in: Likewise.
44423         * modules/nproc: Likewise.
44424         * modules/pagealign_alloc: Likewise.
44425         * modules/poll: Likewise.
44426         * modules/printf-frexp: Likewise.
44427         * modules/pthread: Likewise.
44428         * modules/putenv: Likewise.
44429         * modules/random_r: Likewise.
44430         * modules/relocatable-prog: Likewise.
44431         * modules/search: Likewise.
44432         * modules/select: Likewise.
44433         * modules/selinux-h: Likewise.
44434         * modules/settime: Likewise.
44435         * modules/signal: Likewise.
44436         * modules/size_max: Likewise.
44437         * modules/socklen: Likewise.
44438         * modules/ssize_t: Likewise.
44439         * modules/stdarg: Likewise.
44440         * modules/stdbool: Likewise.
44441         * modules/stddef: Likewise.
44442         * modules/stdint: Likewise.
44443         * modules/stdio: Likewise.
44444         * modules/stdlib: Likewise.
44445         * modules/string: Likewise.
44446         * modules/strings: Likewise.
44447         * modules/sys_file: Likewise.
44448         * modules/sys_ioctl: Likewise.
44449         * modules/sys_select: Likewise.
44450         * modules/sys_socket: Likewise.
44451         * modules/sys_stat: Likewise.
44452         * modules/sys_time: Likewise.
44453         * modules/sys_times: Likewise.
44454         * modules/sys_utsname: Likewise.
44455         * modules/sys_wait: Likewise.
44456         * modules/sysexits: Likewise.
44457         * modules/time: Likewise.
44458         * modules/times: Likewise.
44459         * modules/tmpfile: Likewise.
44460         * modules/trim: Likewise.
44461         * modules/unistd: Likewise.
44462         * modules/wchar: Likewise.
44463         * modules/wctype: Likewise.
44464
44465 2009-09-17  Bruno Haible  <bruno@clisp.org>
44466
44467         Make getdate.y compile on QNX and NetBSD 5 / i386.
44468         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44469         TIME_T_FITS_IN_LONG_INT.
44470         * lib/getdate.y (long_time_t): New type.
44471         (relative_time): Change type of 'seconds' field to long_time_t.
44472         (get_date): Update types of local variables. Check against overflow
44473         during conversion from long_time_t to time_t.
44474         Reported by Matt Kraai <kraai@ftbfs.org>
44475         and Hasso Tepper <hasso@netbsd.org>.
44476
44477 2009-09-17  Bruno Haible  <bruno@clisp.org>
44478
44479         * modules/COPYING: Update copyright years.
44480         * modules/README: Likeiwse.
44481         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44482         Reported by Ian Beckwith <ianb@erislabs.net>.
44483
44484 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44485
44486         * users.txt: Update references for gnuit package.
44487
44488 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44489
44490         * m4/getdelim.m4: Fix typo in copyright line.
44491
44492 2009-09-17  Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/atoll.c: Use the standard header with GPL copyright.
44495         * lib/argz.in.h: Likewise.
44496         * lib/glob.c: Likewise.
44497         * lib/glob-libc.h: Likewise.
44498         * lib/random_r.c: Likewise.
44499         * lib/siglist.h: Likewise.
44500         * lib/strsignal.c: Likewise.
44501         Reported by Ian Beckwith <ianb@erislabs.net>.
44502
44503 2009-09-17  Eric Blake  <ebb9@byu.net>
44504
44505         rmdir: ensure correct dependency order
44506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44507
44508 2009-09-17  Bruno Haible  <bruno@clisp.org>
44509
44510         Disable assertion that fails on NetBSD 5 / i386.
44511         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44512         Reported by Sam Steingold <sds@gnu.org>
44513         and Hasso Tepper <hasso@netbsd.org>.
44514
44515 2009-09-16  Eric Blake  <ebb9@byu.net>
44516
44517         unlinkdir: port to mingw
44518         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44519         on which no one can unlink a directory.
44520
44521         stdlib: sort witness names
44522         * modules/stdlib (Makefile.am): Sort replacements.
44523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44524         * lib/stdlib.in.h: Likewise.
44525
44526         parse-duration-tests: avoid link failure
44527         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44528         LIBINTL.
44529         Reported by Tom G. Christensen.
44530
44531         openat-tests: ensure unlinkat behaves like rmdir
44532         * tests/test-rmdir.c (main): Factor guts...
44533         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44534         * modules/rmdir-tests (Files): Ship new file.
44535         * modules/openat-tests: New test.
44536         * tests/test-unlinkat.c: Likewise.
44537
44538         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44539         * modules/rmdir-errno (Status, Notice): Now obsolete.
44540
44541         rmdir: work around cygwin 1.5.x and mingw bugs
44542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44543         * lib/rmdir.c (rmdir): Work around it.
44544         * modules/rmdir (Status, Notice): No longer obsolete.
44545         (Files): Add dos.m4.
44546         (Depends-on): Add unistd.
44547         (configure.ac): Set witnesses.
44548         (License): Relax to LGPLv2+.
44549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44550         * modules/unistd (Makefile.am): Substitute witnesses.
44551         * lib/unistd.in.h (rmdir): Declare replacement.
44552         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44553         * modules/rmdir-tests: New tests.
44554         * tests/test-rmdir.c: Likewise.
44555
44556 2009-09-15  Eric Blake  <ebb9@byu.net>
44557
44558         fchdir: improve use of replacement functions
44559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44561         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44562         REPLACE_CLOSEDIR.
44563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44564         * modules/sys_stat (Makefile.am): Substitute correct witness.
44565         * modules/dirent (Makefile.am): Likewise.
44566         * modules/unistd (Makefile.am): Likewise.
44567         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44568         * lib/unistd.in.h (dup): Likewise.
44569         * lib/sys_stat.in.h (fstat): Likewise.
44570
44571         maint: ignore gnulib-tool temp files
44572         * .gitignore: Ignore files created during gnulib-tool --test.
44573
44574 2009-09-13  Jim Meyering  <meyering@redhat.com>
44575
44576         posixtm: don't reject a time that specify "60" as the number of seconds
44577         * lib/posixtm.c (posixtime): The code to reject invalid dates
44578         would also reject a time specified with the .60 suffix.
44579         But POSIX allows that, in order to accommodate leap seconds.
44580         So don't reject it.
44581         (main): Adjust tests accordingly.
44582         * modules/posixtm (Depends-on): Add stpcpy.
44583
44584 2009-09-11  Jim Meyering  <meyering@redhat.com>
44585
44586         announce-gen: include [$release_type] in emitted Subject:
44587         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44588         e.g., [stable] in the emitted Subject: line.
44589
44590 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44591
44592         Remove obsolete macros from several modules.
44593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44594         obsolete Autoconf macros with their modern counterparts.
44595         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44596         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44598         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44600         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44603         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44604         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44605         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44606         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44607         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44608         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44609         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44610         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44612         * m4/time_r.m4 (gl_TIME_R): Likewise.
44613         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44614         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44616
44617         Fix copyright header in build-aux scripts.
44618         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44619         recommendation.
44620         * build-aux/ncftpput-ftp: Likewise.
44621         * build-aux/update-copyright: Likewise.
44622
44623 2009-09-09  Eric Blake  <ebb9@byu.net>
44624
44625         test-link: allow Linux choice of errno
44626         * tests/test-link.c (main): Relax test for alternate error.
44627
44628         strndup: fix improper m4 caching
44629         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44630         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44631         (gl_PREREQ_STRNDUP): Delete.
44632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44633         * modules/string (Makefile.am): Substitute it.
44634         * lib/string.in.h (strndup): Modernize prototype.
44635
44636         getcwd: port to mingw
44637         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44638         different from the POSIX assumptions made throughout the getcwd
44639         module; fortunately, the mingw getcwd does not need replacement.
44640         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44641         * modules/getcwd-tests: New test.
44642         * tests/test-getcwd.c: Likewise.
44643
44644         link: fix platform bugs
44645         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44646         * lib/link.c (link): Work around them.  Fix related mingw bug.
44647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44648         * modules/unistd (Makefile.am): Substitute it.
44649         * lib/unistd.in.h (link): Declare replacement.
44650         * doc/posix-functions/link.texi (link): Document this.
44651         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44652
44653         test-link: consolidate into single C program, test more cases
44654         * tests/test-link.sh: Delete.
44655         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44656         at least Cygwin and Solaris.
44657         * modules/link-tests (Files): Remove unused file.
44658         (Depends-on): Add errno, sys_stat.
44659         (Makefile.am): Simplify.
44660
44661 2009-09-08  Bruno Haible  <bruno@clisp.org>
44662
44663         Work around towlower, towupper bug on mingw.
44664         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44665         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44666         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44667         * doc/posix-functions/towupper.texi: Likewise.
44668         Reported by Eric Blake.
44669
44670 2009-09-08  Jim Meyering  <meyering@redhat.com>
44671
44672         build: don't try to run autoheader if we don't use it
44673         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44674         is not used in configure.ac.
44675
44676 2009-09-08  Eric Blake  <ebb9@byu.net>
44677
44678         euidaccess: fix compilation error
44679         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44680
44681         rawmemchr: relax license
44682         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44683         okay.
44684         Reported by Jim Meyering.
44685
44686         mkfifoat: new module
44687         * modules/mkfifoat: New file.
44688         * lib/mkfifoat.c: Likewise.
44689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44691         * modules/sys_stat (Makefile.am): Use them.
44692         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44693         * MODULES.html.sh (File system functions): Mention module.
44694         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44695         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44696         * modules/mkfifoat-tests: New test.
44697         * tests/test-mkfifoat.c: Likewise.
44698
44699         strchrnul: relax license
44700         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44701         okay.
44702         Reported by Jim Meyering.
44703
44704 2009-09-08  Eric Blake  <ebb9@byu.net>
44705
44706         fstatat: fix compilation on Solaris
44707         * lib/fstatat.c (includes): Add fcntl.h.
44708         Reported by Pádraig Brady.
44709
44710 2009-09-07  Eric Blake  <ebb9@byu.net>
44711
44712         rename: modernize replacement
44713         * modules/rename (Depends-on): Add stdio.
44714         (configure.ac): Declare witness.
44715         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44716         stdio take care of replacement.
44717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44718         * modules/stdio (Makefile.am): Substitute them.
44719         * lib/stdio.in.h (rename): Declare replacement.
44720         * lib/rename.c (includes): Allow cross-compilation to non-windows
44721         machines.
44722         * doc/posix-functions/rename.texi (rename): Improve
44723         documentation.
44724
44725         stdio: sort witness names
44726         * modules/stdio (Makefile.am): Sort replacements.
44727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44728         * lib/stdio.in.h: Likewise.
44729
44730         getcwd: minor cleanups
44731         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44732         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44733
44734         openat: provide more convenience names
44735         * modules/faccessat (configure.ac): Add C witness.
44736         * lib/unistd.in.h (readlinkat): Fix typo.
44737         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44738         convenience wrappers.
44739         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44740         wrappers in syntax checks.
44741
44742 2009-09-06  Eric Blake  <ebb9@byu.net>
44743
44744         doc: fix comments in recent patches
44745         * lib/faccessat.c: Mention correct function.
44746         * lib/fchmodat.c: Likewise.
44747         * lib/fchownat.c: Likewise.
44748         * lib/symlinkat.c: Likewise.
44749         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44750         constants.
44751
44752         faccessat, symlinkat: continue cleanup of previous patch
44753         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44754         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44755         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44757         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44758         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44759         set.
44760
44761 2009-09-06  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44764         (fstatat): Declare if GNULIB_FSTATAT is set.
44765         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44766         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44767         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44768         * modules/fcntl-h (Files): Remove m4/openat.m4.
44769         * modules/sys_stat (Files): Remove m4/openat.m4.
44770         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44771         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44772         * modules/unistd (Files): Remove m4/openat.m4.
44773         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44774         GNULIB_OPENAT.
44775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44776         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44777         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44778         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44779         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44780         gl_OPENAT_DEFAULTS.
44781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44782         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44783         Don't require gl_OPENAT_DEFAULTS.
44784         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44785         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44786         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44787         (gl_OPENAT_DEFAULTS): Remove macro.
44788
44789 2009-09-06  Bruno Haible  <bruno@clisp.org>
44790
44791         * modules/openat (configure.ac): Remove unneeded witness.
44792
44793 2009-09-06  Bruno Haible  <bruno@clisp.org>
44794
44795         Set errno to ENOSYS when a function is entirely unsupported.
44796         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44797         EOPNOTSUPP.
44798         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44799         * modules/chown (Depends-on): Remove errno.
44800
44801 2009-09-06  Bruno Haible  <bruno@clisp.org>
44802
44803         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44804
44805 2009-09-06  Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44808
44809 2009-09-06  Ben Pfaff  <blp@gnu.org>
44810             Bruno Haible  <bruno@clisp.org>
44811
44812         Work around a glibc bug in strtok_r.
44813         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44814         Undefine if UNDEFINE_STRTOK_R is set.
44815         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44817         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44819         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44820         UNDEFINE_STRTOK_R.
44821         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44822
44823 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44824
44825         exclude: minor fix
44826         * lib/exclude.c: Include wctype.h
44827
44828 2009-09-06  Akim Demaille  <demaille@gostai.com>
44829
44830         bootstrap: improve error message
44831         * build-aux/bootstrap (find_tool): Upon failure, report the list
44832         of candidates.
44833         Honor the initial value of the envvar.
44834
44835 2009-09-05  Eric Blake  <ebb9@byu.net>
44836
44837         symlinkat: new module
44838         * modules/symlinkat: New file.
44839         * lib/symlinkat.c: Likewise.
44840         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44842         * modules/unistd (Makefile.am): Use them.
44843         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44844         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44845         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44846         * MODULES.html.sh (File system functions): Mention module.
44847         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44848         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44849         * modules/symlinkat-tests: New test.
44850         * tests/test-symlinkat.c: Likewise.
44851
44852         test-openat-safer: add more checks
44853         * tests/test-openat-safer.c (main): Check more code paths.
44854
44855 2009-09-05  Jim Meyering  <meyering@redhat.com>
44856
44857         syntax-check: detect unnecessary inclusion of openat.h
44858         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44859
44860 2009-09-05  Bruno Haible  <bruno@clisp.org>
44861
44862         Support towlower, towupper.
44863         * doc/posix-functions/towlower.texi: Mention module wctype.
44864         * doc/posix-functions/towupper.texi: Likewise.
44865         * lib/wctype.in.h (towlower, towupper): New functions.
44866         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44867         (ASSERT): New macro.
44868         (e): New variable.
44869         (main): Test also towlower, towupper. Test WEOF argument.
44870         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44871
44872 2009-09-05  Bruno Haible  <bruno@clisp.org>
44873
44874         Fix conversion behaviour when the input is invalid.
44875         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44876         mark occurring in first pass of indirect conversion.
44877         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44878         input.
44879         Found by clang's static analyzer.
44880
44881 2009-09-05  Bruno Haible  <bruno@clisp.org>
44882
44883         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44884         where direct conversion is possible.
44885
44886 2009-09-04  Eric Blake  <ebb9@byu.net>
44887
44888         openat: fail with ENOENT on empty name
44889         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44890         buffer.
44891
44892         link-follow: fix logic bug in prior patch
44893         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44894         reversed sense of yes and no in prior patch.  Avoid confusing
44895         compilation failure with desired semantics.
44896
44897         link-follow: accommodate mingw and cross-compilation
44898         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44899         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44900         cross-compilation results to -1, to make linkat easier to
44901         implement when cross-compiling.  Trivially support mingw.
44902         * modules/link-follow (configure.ac): Call new name.
44903         * NEWS: Mention this.
44904
44905 2009-09-03  Eric Blake  <ebb9@byu.net>
44906
44907         faccessat: compile replacement
44908         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44909         needed.
44910
44911         fts: fix compilation error
44912         * lib/fts.c (includes): Re-add "openat.h", for
44913         openat_needs_fchdir.
44914
44915         faccessat: new module
44916         * modules/faccessat: New file.
44917         * lib/faccessat.c: Likewise.
44918         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44920         * modules/unistd (Makefile.am): Use it.
44921         * lib/unistd.in.h (faccessat): Declare it.
44922         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44923         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44924         * MODULES.html.sh (File system functions): Mention it.
44925         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44926         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44927
44928         euidaccess: prefer POSIX over non-standard implementation
44929         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44930         * lib/euidaccess.c (euidaccess): Use it if available.
44931
44932         openat: make template easier to use
44933         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44934         AT_FUNC_F2 to be undefined.
44935         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44936         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44937         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44938         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44939         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44940         Likewise.
44941         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44942         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44943         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44944         Likewise.
44945
44946         openat: declare in POSIX headers
44947         * NEWS: Mention this.
44948         * modules/openat (configure.ac): Declare witnesses.
44949         (Depends-on): Add fcntl-h, sys_stat, unistd.
44950         (Include): Mention correct headers.
44951         * modules/fcntl-h (Depends-on): Add link-warning.
44952         (Files): Add openat.m4.
44953         (Makefile.am): Substitute witnesses.
44954         * modules/sys_stat (Files, Makefile.am): Likewise.
44955         * modules/unistd (Files, Makefile.am): Likewise.
44956         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44957         (gl_OPENAT_DEFAULTS): New macro.
44958         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44961         (SYS_STAT_H): Remove unused variable.
44962         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44963         * lib/fcntl--.h (includes): Remove unneeded header.
44964         * lib/openat-safer.c (includes): Likewise.
44965         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44966         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44967         appropriate headers.
44968         (__OPENAT_PREFIX): Delete.
44969         * lib/fcntl.in.h (openat): Provide declaration.
44970         (AT_FDCWD): Fix Solaris bug.
44971         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44972         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44973         * lib/fchmodat.c (includes):  Adjust to find declaration.
44974         * lib/fchownat.c (includes): Likewise.
44975         * lib/mkdirat.c (includes): Likewise.
44976         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44977         still visible.
44978
44979 2009-09-02  Eric Blake  <ebb9@byu.net>
44980
44981         errno: use consistently
44982         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44983         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44984         * lib/canonicalize.c (ELOOP): Likewise.
44985         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44986         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44987         * lib/lchown.c (EOPNOTSUPP): Likewise.
44988         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44989         * lib/savewd.c (ESTALE): Likewise.
44990         * lib/settime.c (ENOSYS): Likewise.
44991         * lib/utimens.c (ENOSYS): Likewise.
44992         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44993         * lib/chdir-safer.c (ELOOP): Likewise.
44994         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44995         * modules/c-stack (Depends-on): Add errno.
44996         * modules/canonicalize (Depends-on): Likewise.
44997         * modules/chdir-safer (Depends-on): Likewise.
44998         * modules/fdopendir (Depends-on): Likewise.
44999         * modules/inet_ntop (Depends-on): Likewise.
45000         * modules/inet_pton (Depends-on): Likewise.
45001         * modules/lchown (Depends-on): Likewise.
45002         * modules/openat (Depends-on): Likewise.
45003         * modules/savewd (Depends-on): Likewise.
45004         * modules/settime (Depends-on): Likewise.
45005         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45006
45007         fts: avoid leaking fds
45008         * modules/fts (Depends-on): Add cloexec.
45009         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45010         flag.
45011
45012         fts: make directory fds more robust
45013         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45014         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45015
45016         backupfile, chdir-long, fts, savedir: make safer
45017         * lib/backupfile.c (includes): Use "dirent--.h", since
45018         numbered_backup can write to stderr during readdir.
45019         * lib/savedir.c (includes): Likewise.
45020         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45021         emulation can write to stderr on failure.
45022         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45023         * lib/getcwd.c: Document why opendir_safer is unused.
45024         * lib/glob.c: Likewise.
45025         * lib/scandir.c: Likewise.
45026         * lib/openat-proc.c: Likewise, for open_safer.
45027         * modules/backupfile (Depends-on): Add dirent-safer.
45028         * modules/savedir (Depends-on): Likewise.
45029         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45030         * modules/chdir-long (Depends-on): Add openat-safer.
45031
45032         openat-safer: new module
45033         * modules/openat-safer: New file.
45034         * lib/openat-safer.c: Likewise.
45035         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45036         * lib/fcntl-safer.h (openat_safer): Declare.
45037         * lib/fcntl--.h (openat): Override.
45038         * MODULES.html.sh (File descriptor based I/O): Mention it.
45039         * lib/openat.h: Add double-inclusion guards.
45040         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45041         "fcntl--.h", so we can implement openat.
45042         * modules/openat-safer-tests: New test.
45043         * tests/test-openat-safer.c: New file.
45044
45045         dirent-safer: new module
45046         * modules/dirent-safer: New file.
45047         * lib/dirent--.h: Likewise.
45048         * lib/dirent-safer.h: Likewise.
45049         * lib/opendir-safer.c: Likewise.
45050         * m4/dirent-safer.m4: Likewise.
45051         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45052         * modules/dirent-safer-tests: New test.
45053         * tests/test-dirent-safer.c: New file.
45054         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45055
45056         fdopendir: optimize on mingw
45057         * lib/unistd.in.h (_gl_directory_name): New prototype.
45058         * lib/fchdir.c (_gl_directory_name): Implement it.
45059         (fchdir): Use it to simplify implementation.
45060         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45061         fchdir, when available, to avoid calling [f]chdir().
45062
45063         fdopendir: split into its own module
45064         * lib/openat.c (fdopendir): Move...
45065         * lib/fdopendir.c: ...into new file.
45066         * modules/fdopendir: New module.
45067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45068         * modules/openat (Depends-on): Add fdopendir.
45069         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45070         fdopendir here.
45071         * modules/savedir (Depends-on): Only need fdopendir, not full
45072         openat.
45073         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45074         * lib/openat.h (fdopendir): Drop prototype.
45075         * lib/dirent.in.h (fdopendir): Provide prototype.
45076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45077         * modules/dirent (Makefile.am): Substitute them.
45078         * MODULES.html.sh (File system functions): Mention it.
45079         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45080         * modules/fdopendir-tests: New file.
45081         * tests/test-fdopendir.c: Likewise.
45082
45083         fchdir: use more consistent macro convention
45084         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45085         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45086         REPLACE_FCHDIR, rather than relying on config.h macros.
45087         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45088         inside a single make-time REPLACE_FCHDIR block, rather than using
45089         the config.h FCHDIR_REPLACEMENT.
45090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45091         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45092         Manage fstat replacement.
45093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45094         REPLACE_FCHDIR.
45095         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45096         (Makefile.am): Substitute REPLACE_FCHDIR.
45097         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45098         FCHDIR_REPLACEMENT.
45099         * lib/dup-safer.c (dup_safer): Likewise.
45100         * lib/dup2.c (rpl_dup2): Likewise.
45101         * lib/dup3.c (rpl_dup3): Likewise.
45102         * lib/open.c (rpl_open): Likewise.
45103
45104         fchdir: simplify error handling, and support dup3
45105         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45106         stdbool, malloc-posix, realloc-posix.
45107         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45108         (ensure_dirs_slot): Return false on allocation failure.
45109         (rpl_dup2): Delete.
45110         (_gl_register_dup): New function.
45111         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45112         (_gl_register_fd): Close fd on allocation failure.
45113         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45114         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45115         prototype.
45116         (rpl_dup2_fchdir): Delete prototype.
45117         * lib/open.c (open): Update caller.
45118         * lib/dup2.c (dup2): Track fchdir metadata.
45119         * lib/dup3.c (dup3): Likewise.
45120         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45122
45123 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45124
45125         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45126         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45127         don't pass arguments to AC_OUTPUT.
45128
45129 2009-09-02  Bruno Haible  <bruno@clisp.org>
45130
45131         * modules/mkdtemp (License): Relicense under LGPLv2+.
45132         Reported by Paolo Bonzini.
45133
45134 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45135
45136         Replace uses of obsolete autoconf macros in Jim's modules.
45137         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45138         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45139         can evoke a warning from autoconf when run with -Wobsolete
45140         enabled.  They were declared obsolete for good reasons (see
45141         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45142         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45143         should not continue using the deprecated macros.
45144         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45145         obsolete Autoconf macros with modern counterparts.
45146         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45147         * m4/dos.m4 (gl_AC_DOS): Likewise.
45148         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45150         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45151         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45152         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45154         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45155         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45156         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45157         Likewise.
45158         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45160         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45161         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45162         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45163         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45164
45165 2009-09-01  Eric Blake  <ebb9@byu.net>
45166
45167         fchdir: fix off-by-one bug in previous patch
45168         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45169         (_gl_unregister_fd): Delete useless if.
45170
45171 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45172
45173         maint.mk: sort the list of syntax-check rules
45174         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45175         easier to get a sense of progress when the rules are run sequentially
45176         and take a long time.
45177
45178 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45179
45180         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45181         * modules/netinet_in: Likewise.
45182         * modules/sys_file: Likewise.
45183         * modules/sys_ioctl: Likewise.
45184         * modules/sys_select: Likewise.
45185         * modules/sys_socket: Likewise.
45186         * modules/sys_stat: Likewise.
45187         * modules/sys_time: Likewise.
45188         * modules/sys_times: Likewise.
45189         * modules/sys_utsname: Likewise.
45190         * modules/sys_wait: Likewise.
45191
45192 2009-09-01  Jim Meyering  <meyering@redhat.com>
45193
45194         fts: help ensure that return values are not ignored
45195         * lib/fts_.h (__GNUC_PREREQ): Define.
45196         (__attribute_warn_unused_result__): Define.
45197         (fts_children, fts_close, fts_open, fts_read): Declare with
45198         __attribute_warn_unused_result__.
45199
45200         fts: fts_close now fails also when closing a dir file descriptor fails
45201         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45202         and propagate to caller, along with errno.
45203
45204         announce-gen: correct formatting in --help output
45205         * build-aux/announce-gen (usage): Move the one-line description in
45206         --help output "up", to where it belongs, just after Usage:.
45207
45208 2009-08-31  Eric Blake  <ebb9@byu.net>
45209
45210         fchdir: port to mingw
45211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45212         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45213         opened, then use a substitute.
45214         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45215         replacement.
45216         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45217         (_gl_register_fd): No need to check stat if open already filters
45218         all directories.
45219         (fchdir): Fix error condition to match POSIX.
45220         * modules/fchdir (Depends-on): Add sys_stat.
45221         * doc/posix-functions/open.texi (open): Document the limitation.
45222         * modules/fchdir-tests: New file.
45223         * tests/test-fchdir.c: Likewise.
45224
45225         canonicalize: allow cross-testing from cygwin to mingw
45226         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45227         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45228         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45229         Likewise.
45230         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45231         target does not support symlinks.
45232         * tests/test-canonicalize-lgpl.sh: Likewise.
45233
45234         chown: avoid compilation warning on mingw
45235         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45236         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45237         mingw.
45238         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45239         * modules/chown (Depends-on): Add errno.
45240
45241 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45242
45243         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45244         command.
45245
45246 2009-08-31  Jim Meyering  <meyering@redhat.com>
45247
45248         canonicalize: remove useless initialization
45249         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45250         initialization of local, "end".
45251
45252 2009-08-30  Bruno Haible  <bruno@clisp.org>
45253
45254         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45255         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45256         ENOSYS.
45257
45258 2009-08-30  Bruno Haible  <bruno@clisp.org>
45259
45260         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45261         /usr/xpg4/bin/tr when it exists.
45262         * tests/test-pipe-filter-gi1.sh: Likewise.
45263
45264 2009-08-30  Bruno Haible  <bruno@clisp.org>
45265
45266         Work around deficient /usr/bin/id program on Solaris.
45267         * tests/test-file-has-acl.sh (ID): New variable.
45268         * tests/test-set-mode-acl.sh (ID): Likewise.
45269         * tests/test-copy-acl.sh (ID): Likewise.
45270         * tests/test-copy-file.sh (ID): Likewise.
45271
45272 2009-08-30  Bruno Haible  <bruno@clisp.org>
45273
45274         New module 'xstriconveh'.
45275         * lib/xstriconveh.h: New file.
45276         * lib/xstriconveh.c: New file.
45277         * modules/xstriconveh: New file.
45278
45279 2009-08-30  Bruno Haible  <bruno@clisp.org>
45280
45281         Make it easier to use mem_cd_iconveh.
45282         * lib/striconveh.h (iconveh_t): New type.
45283         (iconveh_open, iconveh_close): New declarations.
45284         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45285         with a single 'const iconveh_t *' argument.
45286         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45287         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45288         with a single 'const iconveh_t *' argument.
45289         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45290         * tests/test-striconveh.c (main): Update.
45291         * NEWS: Mention the change.
45292
45293 2009-08-30  Bruno Haible  <bruno@clisp.org>
45294
45295         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45296         problem.
45297
45298 2009-08-30  Bruno Haible  <bruno@clisp.org>
45299
45300         Work around iconv_open problem on Solaris.
45301         * lib/iconv_open-solaris.gperf: New file.
45302         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45303         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45304         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45305         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45306         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45307         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45308
45309 2009-08-29  Jim Meyering  <meyering@redhat.com>
45310
45311         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45312         * top/maint.mk (cvs-check): Remove target; it was just an alias
45313         to the better-named vc-diff-check.
45314         (maintainer-distcheck): Remove rule.  It was used only from
45315         the (alpha/beta/major) target, and all of its commands but one
45316         were coreutils-specific.
45317         (vc-dist): Remove rule.
45318         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45319         Run vc-diff-check, not vc-dist.
45320         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45321
45322 2009-08-27  Bruno Haible  <bruno@clisp.org>
45323
45324         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45325         of 0.
45326
45327 2009-08-27  Bruno Haible  <bruno@clisp.org>
45328
45329         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45330         compilers.
45331         * doc/func.texi: Document the SunPRO C bug.
45332
45333 2009-08-27  Bruno Haible  <bruno@clisp.org>
45334
45335         Fix link error on Solaris.
45336         * tests/test-parse-duration.c (xstrdup): Remove function.
45337
45338 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45339
45340         ignore-value: handle pointer types, too
45341         * lib/ignore-value.h (__attribute__): Remove definition.
45342         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45343         of a more concise and more-often effective "(void) i" statement.
45344         (ignore_ptr): New function to suppress warnings from functions that
45345         return pointers, and to make it explicit that one function doesn't
45346         handle all cases.
45347
45348 2009-08-25  Bruno Haible  <bruno@clisp.org>
45349
45350         dup2: work around a Linux bug.
45351         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45352         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45353         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45354         Reported by Simon Josefsson.
45355
45356 2009-08-25  Jim Meyering  <meyering@redhat.com>
45357
45358         libguestfs uses gnulib
45359         * users.txt: Add libguestfs.
45360
45361 2009-08-24  Eric Blake  <ebb9@byu.net>
45362
45363         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45364         * lib/pipe2.c (includes): Add binary-io.h.
45365         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45366
45367 2009-08-24  Bruno Haible  <bruno@clisp.org>
45368
45369         Tolerate declared but missing accept4 syscall.
45370         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45371         available.
45372         * lib/sys_socket.in.h (accept4): If the function is already present,
45373         override it.
45374         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45375         * modules/accept4 (Makefile.am): Compile accept4.c always.
45376         Reported by Paolo Bonzini and Eric Blake.
45377
45378 2009-08-23  Bruno Haible  <bruno@clisp.org>
45379
45380         New module 'accept4'.
45381         * lib/sys_socket.in.h (accept4): New declaration.
45382         * lib/accept4.c: New file.
45383         * m4/accept4.m4: New file.
45384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45385         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45386         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45387         HAVE_ACCEPT4.
45388         * modules/accept4: New file.
45389         * doc/glibc-functions/accept4.texi: Mention the new module.
45390
45391 2009-08-24  Jim Meyering  <meyering@redhat.com>
45392
45393         progname: also set global program_invocation_name, when possible
45394         Before this change, a libtool-enabled program that calls glibc's
45395         error function would report the program name as
45396         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45397         * modules/progname (configure.ac): Check for a declaration of
45398         program_invocation_name.
45399         * lib/progname.c:  Include <errno.h>.
45400         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45401         Set program_invocation_name.
45402
45403 2009-08-23  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/dup3.c: Include <string.h>.
45406
45407 2009-08-23  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45410         * lib/pipe2.c (pipe2): Likewise.
45411         Suggested by Eric Blake.
45412
45413 2009-08-23  Bruno Haible  <bruno@clisp.org>
45414
45415         Tolerate declared but missing dup3 syscall.
45416         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45417         * lib/unistd.in.h (dup3): If the function is already present,
45418         override it.
45419         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45420         * modules/dup3 (Makefile.am): Compile dup3.c always.
45421         Reported by Paolo Bonzini.
45422
45423 2009-08-23  Bruno Haible  <bruno@clisp.org>
45424
45425         Tolerate declared but missing pipe2 syscall.
45426         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45427         available.
45428         * lib/unistd.in.h (pipe2): If the function is already present,
45429         override it.
45430         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45431         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45432         Reported by Paolo Bonzini.
45433
45434 2009-08-23  Bruno Haible  <bruno@clisp.org>
45435
45436         * lib/pipe2.c (pipe2): Move #ifs inside function.
45437
45438 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45439
45440         quotearg: document limitations of quote_these_too
45441         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45442         those limitations are created.
45443         * lib/quotearg.h (set_char_quoting): Document that digits and
45444         letters that are special after backslash are not permitted.
45445         (quotearg_char): Cross-reference set_char_quoting documentation.
45446
45447 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45448
45449         quotearg: implement custom_quoting_style
45450         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45451         right_quote fields.
45452         (set_custom_quoting): New public function.
45453         (quotearg_buffer_restyled): Add left_quote and right_quote
45454         arguments, handle them very much like locale quoting, and update
45455         all uses.
45456         (quotearg_n_custom): New public function.
45457         (quotearg_n_custom_mem): New public function.
45458         (quotearg_custom): New public function.
45459         (quotearg_custom_mem): New public function.
45460         * lib/quotearg.h: Prototype and document new public functions.
45461         (enum quoting_style): For escape_quoting_style and
45462         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45463         ignored even though they're otherwise like c_quoting_style.
45464         Add custom_quoting_style member and document with comparison to
45465         clocale_quoting_style.
45466         * tests/test-quotearg.c (custom_quotes): New array.
45467         (custom_results): New array.
45468         (main): Extend to test custom quoting.
45469
45470 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45471
45472         quotearg: fix right quote escaping when it's in quote_these_too
45473         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45474         quote, be sure to prepend only one backslash.
45475         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45476         (main): Test it.
45477
45478 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45479
45480         quotearg-tests: test escaping of embedded locale quotes
45481         * tests/test-quotearg.c (struct result_strings): Add member for
45482         new input.
45483         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45484         (inputs): Add new input.
45485         (results_g): Add expected results.
45486         (flag_results): Likewise.
45487         (locale_results): Likewise.
45488         (compare_strings): Check those.
45489
45490 2009-08-23  Bruno Haible  <bruno@clisp.org>
45491
45492         Tests for module 'dup3'.
45493         * modules/dup3-tests: New file.
45494         * tests/test-dup3.c: New file.
45495
45496         New module 'dup3'.
45497         * lib/unistd.in.h (dup3): New declaration.
45498         * lib/dup3.c: New file.
45499         * m4/dup3.m4: New file.
45500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45501         HAVE_DUP3.
45502         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45503         * modules/dup3: New file.
45504         * doc/glibc-functions/dup3.texi: Mention the new module.
45505
45506 2009-08-23  Bruno Haible  <bruno@clisp.org>
45507
45508         Tweak the dup2 test.
45509         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45510         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45511         the test file is still empty. Fix argument order of lseek.
45512
45513 2009-08-23  Bruno Haible  <bruno@clisp.org>
45514
45515         Avoid test link errors when the modules getopt-gnu, gettext are used.
45516         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45518
45519 2009-08-23  Bruno Haible  <bruno@clisp.org>
45520
45521         Fix getdtablesize() on mingw.
45522         * lib/getdtablesize.c (getdtablesize): Implement differently.
45523         * lib/unistd.in.h (getdtablesize): Improve comment.
45524
45525 2009-08-23  Bruno Haible  <bruno@clisp.org>
45526
45527         New module 'mkostemp'.
45528         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45529         * lib/stdlib.in.h (mksotemp): New declaration.
45530         * lib/mkostemp.c: New file, from glibc with modifications.
45531         * lib/tempname.h (GT_FILE): Remove outdated comment.
45532         (gen_tempname): Add flags argument.
45533         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45534         (__GT_FILE): Map to 1.
45535         (small_open, large_open): Remove macros.
45536         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45537         * lib/mkstemp.c (mkstemp): Update.
45538         * lib/mkdtemp.c (mkdtemp): Likewise.
45539         * m4/mkostemp.m4: New file.
45540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45541         HAVE_MKOSTEMP.
45542         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45543         HAVE_MKOSTEMP.
45544         * modules/mkostemp: New file, based on modules/mkstemp.
45545         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45546         * NEWS: Mention the change.
45547
45548 2009-08-23  Bruno Haible  <bruno@clisp.org>
45549
45550         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45551         Reported by Eric Blake.
45552
45553 2009-08-23  Bruno Haible  <bruno@clisp.org>
45554
45555         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45556         Reported by Eric Blake.
45557
45558 2009-08-23  Bruno Haible  <bruno@clisp.org>
45559
45560         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45561         * modules/pipe2 (Depends-on): Likewise.
45562
45563 2009-08-23  Eric Blake  <ebb9@byu.net>
45564
45565         fcntl-h: add O_TTY_INIT support
45566         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45567         * tests/test-fcntl-h.c (o): Test it.
45568         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45569
45570         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45571         * modules/fcntl: Move <fcntl.h> header replacement...
45572         * modules/fcntl-h: ...to new name, so as not to collide with
45573         like-named function.
45574         * tests/test-fcntl.c: Rename...
45575         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45576         * modules/fcntl-tests: Rename...
45577         * modules/fcntl-h-tests: ...to this.  Update test file name.
45578         * modules/chdir-long (Depends-on): Update clients.
45579         * modules/chdir-safer (Depends-on): Likewise.
45580         * modules/fcntl-safer (Depends-on): Likewise.
45581         * modules/fts (Depends-on): Likewise.
45582         * modules/mkancesdirs (Depends-on): Likewise.
45583         * modules/mkdir-p (Depends-on): Likewise.
45584         * modules/open (Depends-on): Likewise.
45585         * modules/savewd (Depends-on): Likewise.
45586         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45587         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45588
45589 2009-08-22  Bruno Haible  <bruno@clisp.org>
45590
45591         * modules/binary-io (License): Relicense under LGPL.
45592         * modules/pipe2 (License): Likewise.
45593
45594 2009-08-22  Bruno Haible  <bruno@clisp.org>
45595
45596         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45597         return value.
45598         * lib/pipe-filter-gi.c (filter_init): Likewise.
45599         Reported by Eric Blake.
45600
45601 2009-08-22  Bruno Haible  <bruno@clisp.org>
45602
45603         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45604         * modules/pipe (Depends-on): Add pipe2.
45605
45606 2009-08-22  Bruno Haible  <bruno@clisp.org>
45607
45608         Tests for module 'pipe2'.
45609         * modules/pipe2-tests: New file.
45610         * tests/test-pipe2.c: New file.
45611
45612         New module 'pipe2'.
45613         * lib/unistd.in.h (pipe2): New declaration.
45614         * lib/pipe2.c: New file.
45615         * m4/pipe2.m4: New file.
45616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45617         HAVE_PIPE2.
45618         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45619         * modules/pipe2: New file.
45620         * doc/glibc-functions/pipe2.texi: Mention the new module.
45621
45622 2009-08-22  Bruno Haible  <bruno@clisp.org>
45623
45624         Reference some new glibc functions.
45625         * doc/glibc-functions/accept4.texi: New file.
45626         * doc/glibc-functions/dup3.texi: New file.
45627         * doc/glibc-functions/mkostemp.texi: New file.
45628         * doc/glibc-functions/pipe2.texi: New file.
45629         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45630         (Glibc sys/socket.h): Refer to accept4.
45631         (Glibc unistd.h): Refer to dup3, pipe2.
45632         Reported by Eric Blake.
45633
45634 2009-08-22  Jim Meyering  <meyering@redhat.com>
45635             Bruno Haible  <bruno@clisp.org>
45636
45637         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45638         This makes it so packages using automake-1.11's silent-rules option
45639         can print e.g., a single "GEN    configmake.h" line, rather than
45640         the 30+ statements that perform the job.  If you want to see the
45641         actual commands, you can still run "make V=1".
45642         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45643         so that make output is abbreviated when those variables are defined
45644         appropriately.
45645         * modules/argz: Likewise.
45646         * modules/arpa_inet: Likewise.
45647         * modules/byteswap: Likewise.
45648         * modules/configmake: Likewise.
45649         * modules/dirent: Likewise.
45650         * modules/errno: Likewise.
45651         * modules/fcntl: Likewise.
45652         * modules/float: Likewise.
45653         * modules/fnmatch: Likewise.
45654         * modules/getopt-posix: Likewise.
45655         * modules/glob: Likewise.
45656         * modules/iconv_open: Likewise.
45657         * modules/inttypes: Likewise.
45658         * modules/localcharset: Likewise.
45659         * modules/locale: Likewise.
45660         * modules/math: Likewise.
45661         * modules/netdb: Likewise.
45662         * modules/netinet_in: Likewise.
45663         * modules/poll: Likewise.
45664         * modules/posix_spawnp-tests: Likewise.
45665         * modules/sched: Likewise.
45666         * modules/search: Likewise.
45667         * modules/selinux-h: Likewise.
45668         * modules/signal: Likewise.
45669         * modules/spawn: Likewise.
45670         * modules/stdarg: Likewise.
45671         * modules/stdbool: Likewise.
45672         * modules/stddef: Likewise.
45673         * modules/stdint: Likewise.
45674         * modules/stdio: Likewise.
45675         * modules/stdlib: Likewise.
45676         * modules/string: Likewise.
45677         * modules/strings: Likewise.
45678         * modules/sys_file: Likewise.
45679         * modules/sys_ioctl: Likewise.
45680         * modules/sys_select: Likewise.
45681         * modules/sys_socket: Likewise.
45682         * modules/sys_stat: Likewise.
45683         * modules/sys_time: Likewise.
45684         * modules/sys_times: Likewise.
45685         * modules/sys_utsname: Likewise.
45686         * modules/sys_wait: Likewise.
45687         * modules/sysexits: Likewise.
45688         * modules/time: Likewise.
45689         * modules/unistd: Likewise.
45690         * modules/wchar: Likewise.
45691         * modules/wctype: Likewise.
45692
45693 2009-08-22  Jim Meyering  <meyering@redhat.com>
45694
45695         announce-gen: detect write failure
45696         * build-aux/announce-gen: Add Coda at end.
45697         Remove equivalent-but-more-verbose block at top.
45698
45699 2009-08-19  Akim Demaille  <demaille@gostai.com>
45700
45701         bootstrap: --help to stdout.
45702         * bootstrap (usage): Don't send --help to stderr.
45703         Use a here doc instead of a long string.
45704
45705 2009-08-21  Eric Blake  <ebb9@byu.net>
45706
45707         test-popen-safer: split from test-popen
45708         * tests/test-popen.c (main): Move...
45709         * tests/test-popen.h: ...into new file.
45710         * tests/test-popen-safer2.c: New file.
45711         * modules/popen-tests (Files): Add test-popen.h.
45712         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45713         Suggested by Bruno Haible.
45714
45715         test-fcntl-safer: split from test-open
45716         * tests/test-open.c (main): Move...
45717         * tests/test-open.h: ...into new file.
45718         * tests/test-fcntl-safer.c: New file.
45719         * modules/open-tests (Files): Add test-open.h.
45720         * modules/fcntl-safer-tests: New file.
45721         Suggested by Bruno Haible.
45722
45723         test-fopen-safer: split from test-fopen
45724         * tests/test-fopen.c (main): Move...
45725         * tests/test-fopen.h: ...into new file.
45726         * tests/test-fopen-safer.c: New file.
45727         * modules/fopen-tests (Files): Add test-fopen.h.
45728         * modules/fopen-safer-tests: New file.
45729         Suggested by Bruno Haible.
45730
45731 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45732
45733         popen-safer: test O_CLOEXEC at run-time.
45734         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45735
45736 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45737
45738         fcntl: move more flags to the header
45739         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45740         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45741         * lib/fcntl.in.h: Do both things here.
45742
45743 2009-08-21  Jim Meyering  <meyering@redhat.com>
45744
45745         consistently remove $@-t before redirecting to it
45746         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45747         * modules/alloca-opt: Likewise.
45748         * modules/byteswap: Likewise.
45749         * modules/fnmatch: Likewise.
45750         * modules/getopt-posix: Likewise.
45751         * modules/glob: Likewise.
45752         * modules/poll: Likewise.
45753         * modules/posix_spawnp-tests: Likewise.
45754         * modules/sys_socket: Likewise.
45755         * modules/sysexits: Likewise.
45756
45757 2009-08-21  Eric Blake  <ebb9@byu.net>
45758
45759         popen: simplify access to original popen
45760         * lib/popen.c (rpl_popen): No need to worry about popen being a
45761         macro.
45762         Reported by Bruno Haible.
45763
45764 2009-08-20  Eric Blake  <ebb9@byu.net>
45765
45766         build: avoid some compiler warnings
45767         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45768         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45769         type.
45770         (new_exclude_segment, excluded_file_pattern_p)
45771         (excluded_file_name_p): Reduce scope.
45772         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45773         old-style declaration.
45774
45775 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45776
45777         * tests/test-exclude1.sh: Handle Windows EOL.
45778         * tests/test-exclude2.sh: Likewise.
45779         * tests/test-exclude3.sh: Likewise.
45780         * tests/test-exclude4.sh: Likewise.
45781         * tests/test-exclude5.sh: Likewise.
45782         * tests/test-exclude6.sh: Likewise.
45783         * tests/test-exclude7.sh: Likewise.
45784
45785 2009-08-19  Akim Demaille  <demaille@gostai.com>
45786
45787         bootstrap: find sha1sum when named gsha1sum.
45788         * bootstrap (find_tool): New.
45789         ($SHA1SUM): New.
45790         Use it.
45791
45792 2009-08-20  Jim Meyering  <meyering@redhat.com>
45793
45794         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45795         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45796         expression that converts "." in a file name to "\." in the resulting
45797         regexp.  Start with a dummy statement, so that prior shell variable
45798         definitions are expanded portably.  Reported by Simon Josefsson.
45799
45800 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45801
45802         Fix polling for writeability of a screen buffer.
45803         * lib/poll.c: Distinguish input and screen buffers for the
45804         Win32 implementation.
45805         * lib/select.c: Likewise.
45806
45807 2009-08-19  Eric Blake  <ebb9@byu.net>
45808
45809         popen-safer: prevent popen from clobbering std descriptors
45810         * modules/popen-safer: New file.
45811         * lib/popen-safer.c: Likewise.
45812         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45813         * lib/stdio--.h (popen): Provide override.
45814         * lib/stdio-safer.h (popen_safer): Provide declaration.
45815         * tests/test-popen.c (includes): Partially test this.
45816         * modules/popen-safer-tests: New file, for more tests.
45817         * tests/test-popen-safer.c: Likewise.
45818         * MODULES.html.sh (file stream based Input/Output): Mention it.
45819
45820         tests: test some of the *-safer modules
45821         * modules/fopen-safer (Depends-on): Add fopen.
45822         * modules/fcntl-safer (Depends-on): Add fcntl.
45823         * modules/stdlib-safer (Depends-on): Add stdlib.
45824         (configure.ac): Set indicator.
45825         * modules/unistd-safer (configure.ac): Likewise.
45826         * modules/tmpfile-safer (configure.ac): Likewise.
45827         (Depends-on): Add tmpfile.
45828         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45829         active.
45830         * tests/test-fopen.c (includes): Test safer versions when they are
45831         in use.
45832         * tests/test-open.c (includes): Likewise.
45833
45834         popen: fix cygwin 1.5 bug when stdin closed
45835         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45836         * modules/popen: New file.
45837         * modules/popen-tests: Likewise.
45838         * tests/test-popen.c: Likewise.
45839         * m4/popen.m4: Likewise.
45840         * lib/popen.c: Likewise.
45841         * lib/stdio.in.h (popen): New declaration.
45842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45843         * modules/stdio (Makefile.am): Likewise.
45844         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45845
45846 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45847
45848         maint.mk: give full control over update-copyright exclusions
45849         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45850         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45851         (update-copyright): Don't force inclusion of top-level
45852         ChangeLog.  Don't force exclusion of all COPYING files, but make
45853         them the default exclusion instead.
45854
45855 2009-08-16  Bruno Haible  <bruno@clisp.org>
45856
45857         Fix test failures on Solaris 10.
45858         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45859         tests when Solaris iconv() is used.
45860         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45861         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45862         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45863         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45864         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45865
45866 2009-08-16  Bruno Haible  <bruno@clisp.org>
45867
45868         Fix test failures on Solaris 10.
45869         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45870         'tr' program and pass it as first argument.
45871         * tests/test-pipe-filter-gi1.sh: Likewise.
45872         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45873         program as first argument.
45874         * tests/test-pipe-filter-gi1.c (main): Likewise.
45875
45876 2009-08-16  Eric Blake  <ebb9@byu.net>
45877
45878         fpurge: fix previous commits
45879         * modules/fpurge (Makefile.am): Make replacement conditional,
45880         partially reverting 2007-04-29 change; missed in previous
45881         attempt.
45882         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45883         is missing.
45884
45885 2009-08-16  Bruno Haible  <bruno@clisp.org>
45886
45887         Clarify fpurge's effect on the file position.
45888         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45889         * tests/test-fpurge.c (main): Make a second pass for checking the file
45890         position.
45891
45892 2009-08-16  Bruno Haible  <bruno@clisp.org>
45893
45894         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45895         declaration of fpurge is missing.
45896         * tests/test-fpurge.c (main): Check that the file has not more contents
45897         than expected. Close the file before removing it.
45898
45899 2009-08-15  Eric Blake  <ebb9@byu.net>
45900
45901         fpurge: don't wrap working cygwin implementation
45902         * lib/fpurge.c (fpurge): Fix comment typo.
45903         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45904         1.7 to avoid replacement.
45905         * tests/test-fpurge.c (main): Enhance test.
45906
45907 2009-08-15  Eric Blake  <ebb9@byu.net>
45908         and Jim Meyering  <meyering@redhat.com>
45909
45910         test-update-copyright: skip if perl is insufficient
45911         * tests/test-update-copyright.sh: Failure to run maintainer tool
45912         should not cause testsuite failure on cygwin 1.5.
45913
45914 2009-08-14  Eric Blake  <ebb9@byu.net>
45915
45916         doc: mention more functions added in cygwin 1.7.0
45917         * doc/posix-headers/limits.texi (limits.h): Update for recent
45918         cygwin additions.
45919         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45920         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45921         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45922         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45923         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45924
45925 2009-08-14  Eric Blake  <ebb9@byu.net>
45926
45927         maint.mk: simplify update-copyright rule
45928         * top/maint.mk (update-copyright-local): Delete, and document how
45929         to do it in cfg.mk instead.
45930         (update-copyright-exclude-regexp): Delete, and document how to do
45931         it in .x-update-copyright instead.
45932         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45933         exclude ChangeLog.
45934
45935 2009-08-14  Bruno Haible  <bruno@clisp.org>
45936
45937         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45938
45939 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45940
45941         maint.mk: support update-copyright-env
45942         * top/maint.mk (update-copyright-env): Define place-holder.
45943         (update-copyright): Expand $(update-copyright-env) before
45944         invoking update-copyright.
45945
45946 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45947
45948         update-copyright: implement forced reformatting
45949         * build-aux/update-copyright: Implement and document
45950         UPDATE_COPYRIGHT_FORCE.
45951         * tests/test-update-copyright.sh: Test it.
45952
45953 2009-08-14  Eric Blake  <ebb9@byu.net>
45954         and Bruno Haible  <bruno@clisp.org>
45955
45956         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45957         * tests/test-locale.c: Revert previous patch related to NULL.
45958         * tests/test-stdio.c: Likewise.
45959         * tests/test-stdlib.c: Likewise.
45960         * tests/test-string.c: Likewise.
45961         * tests/test-unistd.c: Likewise.
45962         * modules/time-tests (Depends-on): Add verify.
45963         * modules/wchar-tests (Depends-on): Likewise.
45964         * tests/test-time.c: Test for NULL compliance.
45965         * tests/test-wchar.c: Likewise.
45966         * modules/locale (Depends-on): Add stddef.
45967         * modules/stdio (Depends-on): Likewise.
45968         * modules/stdlib (Depends-on): Likewise.
45969         * modules/string (Depends-on): Likewise.
45970         * modules/time (Depends-on): Likewise.
45971         * modules/unistd (Depends-on): Likewise.
45972         * modules/wchar (Depends-on): Likewise.
45973         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45974         * lib/stdlib.in.h (includes): Likewise.
45975         * lib/string.in.h (includes): Likewise.
45976         * lib/time.in.h (includes): Likewise.
45977         * lib/unistd.in.h (includes): Likewise.
45978         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45979         replaced.
45980         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45981         * m4/stddef_h.m4: New file.
45982         * modules/stddef: Likewise.
45983         * lib/stddef.in.h: Likewise.
45984         * modules/stddef-tests: Likewise.
45985         * tests/test-stddef.c: Likewise.
45986         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45987         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45988         * doc/posix-headers/locale.texi (locale.h): Likewise.
45989         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45990         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45991         * doc/posix-headers/string.texi (string.h): Likewise.
45992         * doc/posix-headers/time.texi (time.h): Likewise.
45993         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45994         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45995
45996 2009-08-14  Eric Blake  <ebb9@byu.net>
45997
45998         doc: improve git diff of texinfo files
45999         * .gitattributes: Add rule for *.texi files, with hint on how to
46000         use it.
46001         Copied from m4, and based on a report by Bruno Haible.
46002
46003 2009-08-14  Bruno Haible  <bruno@clisp.org>
46004
46005         Disable multithread support by default on Cygwin 1.5.x for real.
46006         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46007
46008 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46009
46010         update-copyright: much ado about intervals
46011         * build-aux/update-copyright: Implement and document
46012         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46013         of copyright year intervals.
46014         Also, document UPDATE_COPYRIGHT_YEAR.
46015         * tests/test-update-copyright.sh: Test it.
46016
46017         update-copyright: convert 2-digit to 4-digit years
46018         * build-aux/update-copyright: Implement and document.
46019         * tests/test-update-copyright.sh: Update.
46020
46021 2009-08-14  Jim Meyering  <meyering@redhat.com>
46022
46023         test-exclude: avoid coreutils "make check" failure
46024         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46025         just as in test-argmatch.c.
46026
46027 2009-08-13  Eric Blake  <ebb9@byu.net>
46028
46029         test-dup2: fix bad assumption
46030         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46031         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46032
46033         test-version-etc: fix CRLF portability issue
46034         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46035         recognize \r.
46036         * tests/test-argp-version-etc-1.sh: Likewise.
46037
46038         getopt: update client modules
46039         * modules/argp (Depends-on): Use getopt-gnu.
46040         * modules/git-merge-changelog (Depends-on): Likewise.
46041         * modules/long-options (Depends-on): Likewise.
46042         * modules/xstrtol (Depends-on): Likewise.
46043
46044 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46045
46046         * tests/test-version-etc.sh: Don't fail on different
46047         project/version.  Don't fail on CRLF differences.  Rewrite to use
46048         multiple -e instead of multiple sed forks, suggested by Eric Blake
46049         <ebb9@byu.net>.
46050         * tests/test-argp-version-etc-1.sh: Likewise.
46051
46052 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46053
46054         * tests/test-version-etc.sh: Don't fail on different
46055         project/version.
46056
46057 2009-08-12  Bruno Haible  <bruno@clisp.org>
46058
46059         Tests for modules 'getopt-posix', 'getopt-gnu'.
46060         * modules/getopt-posix-tests: New file.
46061         * tests/test-getopt.c: New file.
46062         * tests/test-getopt.h: New file.
46063         * tests/test-getopt_long.h: New file.
46064
46065         New modules 'getopt-posix', 'getopt-gnu'.
46066         * modules/getopt-gnu: New file, renamed from modules/getopt.
46067         * modules/getopt-posix: New file.
46068         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46070         (gl_GETOPT): Remove macro.
46071         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46072         Disable the test against BSD systems that declare optreset. Test
46073         against mingw bug. Test against lack of support of optional arguments
46074         on many platforms.
46075         * doc/glibc-headers/getopt.texi: Update module name and list of
46076         relevant platforms.
46077         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46078         'getopt-gnu' and more portability problems.
46079         * NEWS: Mention the changes.
46080
46081 2009-08-12  Bruno Haible  <bruno@clisp.org>
46082
46083         Ensure that optarg etc. get declared by <unistd.h>.
46084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46085         AC_USE_SYSTEM_EXTENSIONS.
46086         * modules/getopt (Depends-on): Add 'extensions'.
46087
46088 2009-08-12  Bruno Haible  <bruno@clisp.org>
46089
46090         Avoid test link errors.
46091         * modules/pipe-filter-ii-tests (Makefile.am): Define
46092         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46093         * modules/pipe-filter-gi-tests (Makefile.am): Define
46094         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46096
46097 2009-08-12  Bruno Haible  <bruno@clisp.org>
46098
46099         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46100         gl_GETOPT_SUBSTITUTE before.
46101         (gl_GETOPT): Use it.
46102         * m4/argp.m4 (gl_ARGP): Update.
46103         Reported by Sergey Poznyakoff.
46104
46105         * m4/getopt.m4: Reorder macros.
46106         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46107         (gl_GETOPT_SUBSTITUTE): Remove macro.
46108
46109 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46110
46111         Minor improvement in gitlog-to-changelog
46112
46113         * build-aux/gitlog-to-changelog: New option `--format' makes
46114         output format string configurable.
46115
46116 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46117
46118         Optimize exclude: use hash tables for non-wildcard patterns.
46119
46120         * lib/exclude.c: Include hash.h and mbuiter.h
46121         (struct exclude_pattern, exclude_segment): New data types.
46122         (struct exclude): Rewrite.
46123         (fnmatch_pattern_has_wildcards): New function.
46124         (new_exclude_segment, free_exclude_segment): New functions.
46125         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46126         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46127         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46128         * modules/exclude: Depend on hash and mbuiter.
46129
46130         * modules/exclude-tests: New file.
46131         * tests/test-exclude.c: New file.
46132         * tests/test-exclude1.sh: New file.
46133         * tests/test-exclude2.sh: New file.
46134         * tests/test-exclude3.sh: New file.
46135         * tests/test-exclude4.sh: New file.
46136         * tests/test-exclude5.sh: New file.
46137         * tests/test-exclude6.sh: New file.
46138         * tests/test-exclude7.sh: New file.
46139
46140 2009-08-12  Bruno Haible  <bruno@clisp.org>
46141
46142         Ensure that getopt() gets declared by <unistd.h>.
46143         * lib/unistd.in.h: Conditionally include getopt.h.
46144         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46145         Set GNULIB_UNISTD_H_GETOPT.
46146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46147         GNULIB_UNISTD_H_GETOPT.
46148         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46149
46150 2009-08-12  Bruno Haible  <bruno@clisp.org>
46151
46152         Clarify logic.
46153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46154         gl_replace_getopt instead of GETOPT_H.
46155
46156 2009-08-12  Bruno Haible  <bruno@clisp.org>
46157
46158         * m4/getopt.m4: Add comments.
46159
46160 2009-08-12  Bruno Haible  <bruno@clisp.org>
46161
46162         Disable multithread support by default on Cygwin 1.5.x.
46163         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46164         set gl_use_threads=no if not specified otherwise.
46165
46166 2009-08-11  Bruno Haible  <bruno@clisp.org>
46167
46168         Avoid compilation error on NetBSD 5.0.
46169         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46170         * tests/test-stdio.c: Likewise.
46171         * tests/test-stdlib.c: Likewise.
46172         * tests/test-string.c: Likewise.
46173         * tests/test-unistd.c: Likewise.
46174         Reported by Greg Troxel <gdt@ir.bbn.com>
46175         at <https://savannah.gnu.org/support/?106973>.
46176
46177 2009-08-11  Bruno Haible  <bruno@clisp.org>
46178
46179         * modules/dup2-tests (Depends-on): Remove close.
46180
46181         Undo 2009-07-19 commit.
46182         * modules/acl-tests (Depends-on): Remove close.
46183         * modules/binary-io-tests (Depends-on): Likewise.
46184         * modules/closein-tests (Depends-on): Likewise.
46185         * modules/flock-tests (Depends-on): Likewise.
46186         * modules/fsync-tests (Depends-on): Likewise.
46187         * modules/lseek-tests (Depends-on): Likewise.
46188         * modules/pipe-tests (Depends-on): Likewise.
46189         * modules/posix_spawn-tests (Depends-on): Likewise.
46190         * modules/posix_spawnp-tests (Depends-on): Likewise.
46191         * modules/stat-time-tests (Depends-on): Likewise.
46192         * modules/yesno-tests (Depends-on): Likewise.
46193
46194 2009-08-10  Bruno Haible  <bruno@clisp.org>
46195
46196         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46197
46198 2009-08-10  Bruno Haible  <bruno@clisp.org>
46199
46200         Fix a gcc warning.
46201         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46202
46203 2009-08-10  Bruno Haible  <bruno@clisp.org>
46204
46205         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46206         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46207         not only the first time.
46208         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46209         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46210         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46211         is 1, not only the the first time.
46212
46213 2009-08-10  Bruno Haible  <bruno@clisp.org>
46214
46215         Make it possible to use module 'gethostname' without module 'close'.
46216         * lib/unistd.in.h (close): Evoke a link error only if
46217         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46219         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46220         * modules/unistd (Makefile.am): Substitute
46221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46222         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46223         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46225         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46226         * modules/sys_ioctl (Makefile.am): Substitute
46227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46228         * modules/socket (configure.ac): On native Windows, set
46229         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46230         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46231         Reported by Sam Steingold <sds@gnu.org>.
46232
46233 2009-08-10  Bruno Haible  <bruno@clisp.org>
46234
46235         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46236         * modules/ioctl (configure.ac): Likewise.
46237
46238 2009-08-10  Bruno Haible  <bruno@clisp.org>
46239
46240         Avoid collision between gnulib wrapper and libintl wrapper.
46241         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46242         already defined in intl/printf.c.
46243         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46244         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46245
46246 2009-08-09  Bruno Haible  <bruno@clisp.org>
46247
46248         Make <sys/select.h> really self-contained, also on Solaris 10.
46249         * lib/sys_select.in.h: Include <string.h>.
46250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46251         Solaris 10 problem.
46252         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46253         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46254         Reported by Jim Meyering.
46255
46256 2009-08-09  Bruno Haible  <bruno@clisp.org>
46257
46258         Avoid warnings from 'aclocal' that are due to a use of macro name
46259         AM_XGETTEXT_OPTION that is not defined in automake.
46260         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46261         automake.
46262         * modules/error (configure.ac): Likewise.
46263         * modules/propername (configure.ac): Likewise.
46264         * modules/vasprintf (configure.ac): Likewise.
46265         * modules/verror (configure.ac): Likewise.
46266         * modules/xprintf (configure.ac): Likewise.
46267         * modules/xvasprintf (configure.ac): Likewise.
46268
46269 2009-08-08  Bruno Haible  <bruno@clisp.org>
46270
46271         Avoid compilation error in C++ mode.
46272         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46273         Reported by Sam Steingold <sds@gnu.org>.
46274
46275 2009-08-08  Bruno Haible  <bruno@clisp.org>
46276
46277         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46278         for the various Unix platforms.
46279         * doc/posix-headers/limits.texi: Update platforms list regarding
46280         HOST_NAME_MAX.
46281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46282
46283 2009-08-07  Jim Meyering  <meyering@redhat.com>
46284
46285         selinux-at: fix typo in a comment
46286         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46287         Spotted by Paolo Bonzini.
46288
46289         selinux-at: remove redundant m4 code, add documentation
46290         * modules/selinux-at (configure.ac): Remove redundant code.
46291         LIB_SELINUX is already set via the dependent module, selinux-h.
46292         (Include): Add quotes around selinux-at.h.
46293         * lib/selinux-at.h: Add documentation.
46294         Reported by Bruno Haible in
46295         http://marc.info/?l=gnulib-bug&m=124958988300749
46296
46297 2009-08-07  Bruno Haible  <bruno@clisp.org>
46298
46299         Avoid link error on MacOS X 10.3 and 10.4.
46300         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46301         on non-ELF systems.
46302         * lib/argp-pv.c (argp_program_version): Likewise.
46303         Reported by Simon Josefsson.
46304
46305 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46306
46307         * tests/test-version-etc.sh: Use $EXEEXT.
46308
46309 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46310
46311         update-copyright: update documentation to point to maint.mk
46312         * build-aux/update-copyright: Here.
46313
46314 2009-08-06  Jim Meyering  <meyering@redhat.com>
46315
46316         maint.mk: support update-copyright-local
46317         * top/maint.mk (update-copyright-local): Define place-holder.
46318         (update-copyright): Depend on $(update-copyright-local).
46319
46320 2009-08-06  Jim Meyering  <meyering@redhat.com>
46321
46322         selinux-at: new module
46323         Initially written for coreutils, this module will soon be
46324         used by findutils, too.
46325         * MODULES.html.sh [Misc]: Add selinux-at.
46326         * lib/selinux-at.h: New file, from coreutils.
46327         * lib/selinux-at.c: Likewise.
46328         * modules/selinux-at: Likewise.
46329         (License): Change from LGPL to GPL, since it depends
46330         on the GPL'd openat module.
46331
46332         doc: update README
46333         * README: Remove references to cogito.
46334         Remove cvs-repo-updating instructions from 2007.
46335         Don't imply that CVS is better if you have limited disk space.
46336
46337 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46338
46339         update-copyright: support C-style comments
46340         * build-aux/update-copyright: Implement and document.
46341         * tests/test-update-copyright.sh: Test.
46342
46343 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46344
46345         update-copyright: support omitted "(C)"
46346         * build-aux/update-copyright: Implement and document.  Also,
46347         allow variable whitespace before "(C)".
46348         * tests/test-update-copyright.sh: Test.
46349
46350 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46351
46352         update-copyright: don't trip on non-FSF copyright statements
46353         * build-aux/update-copyright: Fix so that the first correctly
46354         formatted FSF copyright statement is recognized no matter what
46355         appears before it.  Update documentation.
46356         * tests/test-update-copyright.sh: Test that.
46357
46358 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46359
46360         update-copyright: clean up code a little
46361         * build-aux/update-copyright: Append "_re" to the name of any
46362         variable holding a regular expression.
46363         Replace "old" and "new" with "stmt" in variable names.
46364         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46365         handled correctly.
46366         Format code more consistently.
46367
46368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46369
46370         update-copyright-tests: improve portability
46371         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46372         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46373
46374 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46375
46376         update-copyright: support @copyright{} and &copy;
46377         * build-aux/update-copyright: Implement and document.
46378         * tests/test-update-copyright.sh: Test.
46379
46380 2009-08-04  Jim Meyering  <meyering@redhat.com>
46381
46382         update-copyright-tests: correctly test EOL=\r\n handling
46383         * tests/test-update-copyright.sh: Put \r at the end of some lines
46384         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46385
46386         maint.mk: make update-copyright exclusion list more configurable
46387         * top/maint.mk (update-copyright): Default to excluding COPYING,
46388         but allow an override, in case someone does want to update that file.
46389
46390         maint.mk: don't update copyright date in COPYING
46391         * top/maint.mk (update-copyright): Exclude COPYING.
46392
46393         maint.mk: add a copyright-updating rule
46394         * top/maint.mk (update-copyright): New rule.
46395         Derived from coreutils/Makefile.am.
46396
46397         update-copyright: rename some variables
46398         * build-aux/update-copyright: Rename a few variables for clarity.
46399         Tweak syntax.  List Joel E. Denny as coauthor.
46400
46401 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46402
46403         update-copyright: fix bug for 2-digit last year and add tests
46404         * build-aux/update-copyright: Fix bug.
46405         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46406         specified.
46407         * modules/update-copyright-tests: New
46408         * tests/test-update-copyright.sh: New.
46409
46410 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46411
46412         update-copyright: handle leading tabs in line prefix
46413         * build-aux/update-copyright: Count leading tabs as 8 spaces
46414         when computing margin.  This helps with the formatting of
46415         ChangeLogs, for example.
46416         Fix documentation a little.
46417
46418 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46419
46420         update-copyright: support EOL=\r\n
46421         * build-aux/update-copyright: Implement that.
46422
46423 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46424
46425         update-copyright: automatically format copyright statements
46426         * build-aux/update-copyright: Implement that.
46427         Also, be a little more predictable and safer by always failing
46428         when the full copyright format is not perfectly recognized as an
46429         unbroken whole.  Discussed at
46430         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46431         Rewrite documentation.
46432
46433 2009-08-03  Bruno Haible  <bruno@clisp.org>
46434
46435         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46436
46437 2009-08-02  Bruno Haible  <bruno@clisp.org>
46438
46439         Tests for module 'uname'.
46440         * modules/uname-tests: New file.
46441         * tests/test-uname.c: New file.
46442
46443         New module 'uname'.
46444         * lib/uname.c: New file.
46445         * m4/uname.m4: New file.
46446         * modules/uname: New file.
46447         * doc/posix-functions/uname.texi: Mention the new module.
46448
46449 2009-08-02  Bruno Haible  <bruno@clisp.org>
46450
46451         Tests for module 'sys_utsname'.
46452         * modules/sys_utsname-tests: New file.
46453         * tests/test-sys_utsname.c: New file.
46454
46455         New module 'sys_utsname'.
46456         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46457         * m4/sys_utsname_h.m4: New file.
46458         * modules/sys_utsname: New file.
46459         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46460
46461 2009-08-02  Bruno Haible  <bruno@clisp.org>
46462
46463         Implicitly initialize the sockets library.
46464         * lib/gethostname.c: Include sockets.h.
46465         (rpl_gethostname): Invoke gl_sockets_startup.
46466         * lib/socket.c: Include sockets.h.
46467         (rpl_socket): Invoke gl_sockets_startup.
46468         * modules/gethostname (Depends-on): Add sockets.
46469         * modules/socket (Depends-on): Likewise.
46470         * tests/test-poll.c: Don't include sockets.h.
46471         (main): Don't invoke gl_sockets_startup.
46472         * tests/test-select.c: Don't include sockets.h.
46473         (main): Don't invoke gl_sockets_startup.
46474
46475 2009-08-02  Bruno Haible  <bruno@clisp.org>
46476
46477         Allow multiple calls to gl_sockets_startup.
46478         * lib/sockets.c (initialized_sockets_version): New variable.
46479         (gl_sockets_startup): Do nothing if already called for this or a higher
46480         version.
46481         (gl_sockets_cleanup): Reset initialized_sockets_version.
46482
46483 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46484
46485         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46486         different project/version.
46487
46488 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46489             Bruno Haible  <bruno@clisp.org>
46490
46491         Tests for module 'pipe-filter-gi'.
46492         * modules/pipe-filter-gi-tests: New file.
46493         * tests/test-pipe-filter-gi1.sh: New file.
46494         * tests/test-pipe-filter-gi1.c: New file.
46495         * tests/test-pipe-filter-gi2.sh: New file.
46496         * tests/test-pipe-filter-gi2-main.c: New file.
46497         * tests/test-pipe-filter-gi2-child.c: New file.
46498
46499         New module 'pipe-filter-gi'.
46500         * lib/pipe-filter-gi.c: New file.
46501         * modules/pipe-filter-gi: New file.
46502
46503 2009-08-02  Bruno Haible  <bruno@clisp.org>
46504             Paolo Bonzini  <bonzini@gnu.org>
46505
46506         Tests for module 'pipe-filter-ii'.
46507         * modules/pipe-filter-ii-tests: New file.
46508         * tests/test-pipe-filter-ii1.sh: New file.
46509         * tests/test-pipe-filter-ii1.c: New file.
46510         * tests/test-pipe-filter-ii2.sh: New file.
46511         * tests/test-pipe-filter-ii2-main.c: New file.
46512         * tests/test-pipe-filter-ii2-child.c: New file.
46513
46514         New module 'pipe-filter-ii'.
46515         * lib/pipe-filter.h: New file.
46516         * lib/pipe-filter-ii.c: New file.
46517         * lib/pipe-filter-aux.h: New file.
46518         * modules/pipe-filter-ii: New file.
46519
46520 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46521
46522         * lib/gc-libgcrypt.c: Change copyright to FSF.
46523         * lib/gc-gnulib.c: Likewise.
46524
46525 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46526
46527         * lib/gethostname.c: Include limits.h.
46528
46529 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46530             Bruno Haible  <bruno@clisp.org>
46531
46532         Ensure HOST_NAME_MAX as part of the gethostname module.
46533         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46534         define also HOST_NAME_MAX.
46535         * tests/test-gethostname.c: Include <limits.h>.
46536         (main): Check also HOST_NAME_MAX.
46537         * doc/posix-headers/limits.texi: Document the mingw problem.
46538
46539 2009-08-02  Bruno Haible  <bruno@clisp.org>
46540
46541         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46542         Add comments.
46543
46544 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46545
46546         * lib/gethostname.c: Add Windows wrapper.
46547         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46548         * modules/gethostname: Depend on sys_socket & errno, for also
46549         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46550         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46551
46552 2009-07-31  Jim Meyering  <meyering@redhat.com>
46553
46554         getloadavg: fix symbol name in comment
46555         * lib/getloadavg.c: Correct a typo I introduced when adding
46556         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46557         Matt Kraai spotted the problem.
46558
46559 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46560
46561         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46562         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46563         code also if ! defined N_NAME_POINTER.
46564         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46565         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46566         but the n_name member is a 12-byte array.
46567
46568 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46569
46570         update-copyright: generalize comment handling
46571         * build-aux/update-copyright: Handle copyright statements
46572         within more comment styles.
46573         Document usage.
46574         Report any file with an external copyright holder or parse failure.
46575
46576 2009-07-29  Jim Meyering  <meyering@redhat.com>
46577
46578         mktime: correct setting of REPLACE_MKTIME
46579         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46580
46581         update-copyright: new module
46582         * modules/update-copyright: New file.
46583         * build-aux/update-copyright: New file.
46584         * MODULES.html.sh (maint+release support): Add update-copyright.
46585
46586 2009-07-27  Bruno Haible  <bruno@clisp.org>
46587
46588         Fix compilation error when <ctime> is used and mktime is replaced.
46589         * lib/time.in.h (mktime): New declaration.
46590         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46591         REPLACE_MKTIME instead of defining mktime in config.h.
46592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46593         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46594         Reported by Ross McFarland <rwmcfa1@neces.com>.
46595
46596 2009-07-27  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46599         Reported by Matt Kraai <mkraai@beckman.com>.
46600
46601 2009-07-25  Jim Meyering  <meyering@redhat.com>
46602
46603         maint.mk: avoid warnings about missing files
46604         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46605         diagnostic when .prev-version does not exist.
46606         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46607         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46608         nonexistent cfg.mk.
46609         Suggestions from Simon Josefsson.
46610
46611 2009-07-25  Bruno Haible  <bruno@clisp.org>
46612
46613         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46614         defined as macros. Needed on QNX 6.4.1.
46615         Reported by Matt Kraai <mkraai@beckman.com>.
46616
46617 2009-07-23  Jim Meyering  <meyering@redhat.com>
46618
46619         maint.mk: invoke "make dist" with a working value of XZ_OPT
46620         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46621
46622 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46623
46624         Make fseeko.c compile on QNX.
46625         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46626
46627 2009-07-22  Peter Simons  <simons@cryp.to>
46628
46629         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46630         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46631         * lib/md4.h: Likewise.
46632         * lib/md5.h: Likewise.
46633         * lib/sha1.h: Likewise.
46634         * lib/sha256.h: Likewise.
46635         * lib/sha512.h: Likewise.
46636
46637         tests-sha1: don't assign literal string to 'char *' variable
46638         * tests/test-sha1.c (main): Declare locals with "const" to match
46639         attributes of the right hand side.
46640
46641 2009-07-21  Eric Blake  <ebb9@byu.net>
46642
46643         dup2: fix more mingw problems
46644         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46645         fd to itself.
46646         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46647         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46648         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46649         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46650         care of mingw bugs.
46651
46652 2009-07-21  Jim Meyering  <meyering@redhat.com>
46653
46654         vc-list-files: avoid failure when /bin/sh is dash
46655         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46656         On some Debian based systems, /bin/sh is a symlink to dash, and running
46657         this command would omit the "/" following each 'tests' prefix:
46658           dash -x build-aux/vc-list-files -C . tests
46659         That is because bash and dash work differently:
46660           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46661           bash ok
46662           dash odd
46663
46664 2009-07-21  Eric Blake  <ebb9@byu.net>
46665
46666         dup2-tests: test previous patch
46667         * modules/dup2-tests: New file.
46668         * tests/test-dup2.c: Likewise.
46669         * tests/test-open.c (main): Avoid unspecified behavior.
46670         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46671         test.
46672
46673         dup2: work around mingw and cygwin 1.5 bug
46674         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46676         * modules/unistd (Makefile.am): Substitute it.
46677         * lib/unistd.in.h (dup2): Declare the replacement.
46678         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46679         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46680         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46681         * modules/execute (Depends-on): Add dup2.
46682         * modules/fseterr (Depends-on): Likewise.
46683         * modules/pipe (Depends-on): Likewise.
46684         * modules/posix_spawn-internal (Depends-on): Likewise.
46685
46686 2009-07-21  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/.gitattributes: New file.
46689
46690 2009-07-20  Bruno Haible  <bruno@clisp.org>
46691
46692         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46693         (main): Use it.
46694
46695 2009-07-20  Eric Blake  <ebb9@byu.net>
46696
46697         test-pipe: make a bit more robust.
46698         * tests/test-pipe.c (myerr): Allow error messages regardless of
46699         what we do to stderr.
46700         (test_pipe): Rearrange to avoid deadlock.
46701         (child_main): Try a larger read, to ensure we avoided deadlock.
46702         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46703         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46704         if misused.
46705
46706 2009-07-19  Jim Meyering  <meyering@redhat.com>
46707
46708         fts: avoid false-positive cycle-detection
46709         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46710         for each new command line argument.
46711
46712 2009-07-19  Bruno Haible  <bruno@clisp.org>
46713
46714         Fix build error on mingw with the modules sys_select and unistd.
46715         * modules/acl-tests (Depends-on): Add close.
46716         * modules/binary-io-tests (Depends-on): Likewise.
46717         * modules/closein-tests (Depends-on): Likewise.
46718         * modules/flock-tests (Depends-on): Likewise.
46719         * modules/fsync-tests (Depends-on): Likewise.
46720         * modules/lseek-tests (Depends-on): Likewise.
46721         * modules/pipe-tests (Depends-on): Likewise.
46722         * modules/posix_spawn-tests (Depends-on): Likewise.
46723         * modules/posix_spawnp-tests (Depends-on): Likewise.
46724         * modules/stat-time-tests (Depends-on): Likewise.
46725         * modules/yesno-tests (Depends-on): Likewise.
46726
46727 2009-07-19  Bruno Haible  <bruno@clisp.org>
46728
46729         Unify conditionals.
46730         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46731         macros, not at the compiler macros.
46732         * lib/pipe.c: Likewise.
46733         * lib/execute.c: Likewise.
46734         * lib/spawni.c: Likewise.
46735
46736 2009-07-19  Bruno Haible  <bruno@clisp.org>
46737
46738         Fix handling of closed stdin/stdout/stderr on mingw.
46739         * lib/w32spawn.h: Include unistd.h.
46740         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46741         file descriptor with O_NOINHERIT flag.
46742         (fd_safer_noinherit): New function, based on fd-safer.c.
46743         (dup_safer_noinherit): New function, based on dup-safer.c.
46744         (undup_safer_noinherit): New function.
46745         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46746         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46747         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46748         instead of fd_safer.
46749         * tests/test-pipe.c: Include <windows.h>.
46750         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46751         result.
46752
46753         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46754         from main.
46755         (test_pipe): Pass an extra argument for disambiguation.
46756         (main): Invoke parent_main or child_main.
46757
46758         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46759         consistently.
46760
46761 2009-07-18  Eric Blake  <ebb9@byu.net>
46762
46763         test-pipe: fix mingw build
46764         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46765
46766 2009-07-18  Bruno Haible  <bruno@clisp.org>
46767
46768         * modules/pipe-tests (Makefile.am): Fix typo.
46769
46770 2009-07-18  Eric Blake  <ebb9@byu.net>
46771
46772         error: fix mingw build
46773         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46774         Reported by Bruno Haible.
46775
46776         error: avoid undefined use of stdout
46777         * lib/error.c (error, error_at_line): Check that fd 1 is open
46778         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46779         is handling faults and the close_stdout module wants to report the
46780         detection of closed stdout as an error.
46781
46782 2009-07-17  Eric Blake  <ebb9@byu.net>
46783
46784         pipe: be robust in face of closed fds
46785         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46786         should cause child to misbehave.
46787         * modules/pipe-tests: New module.
46788         * tests/test-pipe.c: New file.
46789         * tests/test-pipe.sh: New file.
46790         Reported by Akim Demaille.
46791
46792 2009-07-14  Bruno Haible  <bruno@clisp.org>
46793
46794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46795         Reported by anonymous kc.
46796
46797 2009-07-07  Jim Meyering  <meyering@redhat.com>
46798
46799         maint.mk: don't look for translatable strings in *.m4 or *.mk
46800         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46801         when searching for translatable strings.
46802
46803 2009-07-05  Jim Meyering  <meyering@redhat.com>
46804
46805         remove superfluous parentheses in STREQ definition
46806         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46807         * lib/getugroups.c (STREQ): Likewise.
46808         * lib/fnmatch.c (STREQ): Likewise.
46809         Spotted by Bruno Haible.
46810
46811 2009-07-04  Jim Meyering  <meyering@redhat.com>
46812
46813         argv-iter: new module
46814         * MODULES.html.sh: Add argv-iter.
46815         * lib/argv-iter.c, lib/argv-iter.h: New files.
46816         * modules/argv-iter: New file.
46817         * modules/argv-iter-tests: New file.
46818         * tests/test-argv-iter.c: Test it.
46819
46820 2009-07-04  Bruno Haible  <bruno@clisp.org>
46821
46822         Fix assertion.
46823         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46824         contains more exact copies of a given entry than file2, leave the extra
46825         copies unpaired rather than aborting.
46826         Reported by Eric Blake.
46827
46828 2009-07-02  Bruno Haible  <bruno@clisp.org>
46829
46830         Speedup git-merge-changelog for git cherry-pick.
46831         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46832         (entries_mapping_get): New function, extracted from compute_mapping.
46833         (entries_mapping_reverse_get): New function.
46834         (compute_mapping): Add a 'full' argument. Return the result in a
46835         'struct entries_mapping'.
46836         (main): Update. Access the mappings through entries_mapping_get.
46837         Reported by Eric Blake.
46838
46839 2009-07-02  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46842         best_i.
46843
46844 2009-07-02  Bruno Haible  <bruno@clisp.org>
46845
46846         Speed up approximate search for matching ChangeLog entries.
46847         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46848         argument. Call fstrcmp_bounded instead of fstrcmp.
46849         (compute_mapping, try_split_merged_entry, main): Update callers.
46850
46851 2009-07-02  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46854
46855 2009-06-30  Bruno Haible  <bruno@clisp.org>
46856
46857         Reduce the number of uc_is_cased calls.
46858         * lib/unicase.h (casing_suffix_context_t): Add
46859         'first_char_except_ignorable' field.
46860         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46861         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46862         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46863         Update initializer.
46864         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46865         case-ignorable characters.
46866         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46867         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46868         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46869         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46870         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46871
46872 2009-06-30  Bruno Haible  <bruno@clisp.org>
46873
46874         Tests for module 'unicase/ignorable'.
46875         * modules/unicase/ignorable-tests: New file.
46876         * tests/unicase/test-ignorable.c: New file, generated by
46877         gen-uni-tables.
46878
46879         Tests for module 'unicase/cased'.
46880         * modules/unicase/cased-tests: New file.
46881         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46882         * tests/unicase/test-predicate-part1.h: New file, derived from
46883         tests/unictype/test-predicate-part1.h.
46884         * tests/unicase/test-predicate-part2.h: New file, same as
46885         tests/unictype/test-predicate-part2.h.
46886
46887         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46888         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46889         (output_casing_properties): New function.
46890         (main): Call it.
46891         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46892         * lib/unicase/cased.c: Include unictype/bitmap.h.
46893         (uc_is_cased): Define through a bitmap lookup.
46894         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46895         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46896         (uc_is_case_ignorable): Define through a bitmap lookup.
46897         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46898         lib/unictype/bitmap.h.
46899         (Depends-on): Add inline. Clean up.
46900         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46901         lib/unictype/bitmap.h.
46902         (Depends-on): Add inline. Clean up.
46903         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46904         recognition.
46905         * tests/unicase/test-u16-tolower.c (main): Likewise.
46906         * tests/unicase/test-u32-tolower.c (main): Likewise.
46907
46908 2009-06-30  Bruno Haible  <bruno@clisp.org>
46909
46910         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46911         * lib/unicase/u16-casemap.c: Likewise.
46912         * lib/unicase/u32-casemap.c: Likewise.
46913
46914 2009-06-29  Bruno Haible  <bruno@clisp.org>
46915
46916         Define u32_casefold as a wrapper around u32_ct_casefold.
46917         * lib/unicase/u32-casefold.c: Update.
46918         * modules/unicase/u32-casefold (Depends-on): Add
46919         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46920         unicase/empty-suffix-context. Clean up.
46921
46922         Define u16_casefold as a wrapper around u16_ct_casefold.
46923         * lib/unicase/u16-casefold.c: Update.
46924         * modules/unicase/u16-casefold (Depends-on): Add
46925         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46926         unicase/empty-suffix-context. Clean up.
46927
46928         Define u8_casefold as a wrapper around u8_ct_casefold.
46929         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46930         * lib/unicase/u8-casefold.c: Update.
46931         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46932         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46933
46934         Define u32_totitle as a wrapper around u32_ct_totitle.
46935         * lib/unicase/u32-totitle.c: Update.
46936         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46937         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46938
46939         Define u16_totitle as a wrapper around u16_ct_totitle.
46940         * lib/unicase/u16-totitle.c: Update.
46941         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46942         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46943
46944         Define u8_totitle as a wrapper around u8_ct_totitle.
46945         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46946         functions.
46947         (FUNC): Delegate to U_CT_TOTITLE.
46948         * lib/unicase/u8-totitle.c: Update.
46949         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46950         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46951
46952         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46953         invocation.
46954         * modules/unicase/u32-tolower (Depends-on): Add
46955         unicase/empty-prefix-context, unicase/empty-suffix-context.
46956
46957         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46958         invocation.
46959         * modules/unicase/u16-tolower (Depends-on): Add
46960         unicase/empty-prefix-context, unicase/empty-suffix-context.
46961
46962         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46963         * modules/unicase/u8-tolower (Depends-on): Add
46964         unicase/empty-prefix-context, unicase/empty-suffix-context.
46965
46966         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46967         invocation.
46968         * modules/unicase/u32-toupper (Depends-on): Add
46969         unicase/empty-prefix-context, unicase/empty-suffix-context.
46970
46971         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46972         invocation.
46973         * modules/unicase/u16-toupper (Depends-on): Add
46974         unicase/empty-prefix-context, unicase/empty-suffix-context.
46975
46976         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46977         * modules/unicase/u8-toupper (Depends-on): Add
46978         unicase/empty-prefix-context, unicase/empty-suffix-context.
46979
46980         New module 'unicase/u32-ct-casefold'.
46981         * lib/unicase/u32-ct-casefold.c: New file.
46982         * modules/unicase/u32-ct-casefold: New file.
46983
46984         New module 'unicase/u16-ct-casefold'.
46985         * lib/unicase/u16-ct-casefold.c: New file.
46986         * modules/unicase/u16-ct-casefold: New file.
46987
46988         New module 'unicase/u8-ct-casefold'.
46989         * lib/unicase/u8-ct-casefold.c: New file.
46990         * lib/unicase/u-ct-casefold.h: New file, derived from
46991         lib/unicase/u-casefold.h.
46992         * modules/unicase/u8-ct-casefold: New file.
46993
46994         New module 'unicase/u32-ct-totitle'.
46995         * lib/unicase/u32-ct-totitle.c: New file.
46996         * modules/unicase/u32-ct-totitle: New file.
46997
46998         New module 'unicase/u16-ct-totitle'.
46999         * lib/unicase/u16-ct-totitle.c: New file.
47000         * modules/unicase/u16-ct-totitle: New file.
47001
47002         New module 'unicase/u8-ct-totitle'.
47003         * lib/unicase/u8-ct-totitle.c: New file.
47004         * lib/unicase/u-ct-totitle.h: New file, derived from
47005         lib/unicase/u-totitle.h.
47006         * modules/unicase/u8-ct-totitle: New file.
47007
47008         New module 'unicase/u32-ct-tolower'.
47009         * lib/unicase/u32-ct-tolower.c: New file.
47010         * modules/unicase/u32-ct-tolower: New file.
47011
47012         New module 'unicase/u16-ct-tolower'.
47013         * lib/unicase/u16-ct-tolower.c: New file.
47014         * modules/unicase/u16-ct-tolower: New file.
47015
47016         New module 'unicase/u8-ct-tolower'.
47017         * lib/unicase/u8-ct-tolower.c: New file.
47018         * modules/unicase/u8-ct-tolower: New file.
47019
47020         New module 'unicase/u32-ct-toupper'.
47021         * lib/unicase/u32-ct-toupper.c: New file.
47022         * modules/unicase/u32-ct-toupper: New file.
47023
47024         New module 'unicase/u16-ct-toupper'.
47025         * lib/unicase/u16-ct-toupper.c: New file.
47026         * modules/unicase/u16-ct-toupper: New file.
47027
47028         New module 'unicase/u8-ct-toupper'.
47029         * lib/unicase/u8-ct-toupper.c: New file.
47030         * modules/unicase/u8-ct-toupper: New file.
47031
47032         Add context arguments to u*_casemap functions.
47033         * lib/unicase/unicasemap.h: Include unicase.h.
47034         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47035         suffix_context arguments.
47036         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47037         functions.
47038         (FUNC): Add prefix_context and suffix_context arguments. Use
47039         uc_is_cased and uc_is_case_ignorable.
47040         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47041         * lib/unicase/u16-casemap.c: Likewise.
47042         * lib/unicase/u32-casemap.c: Likewise.
47043         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47044         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47045         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47046         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47047         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47048         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47049
47050         New module 'unicase/u32-suffix-context'.
47051         * lib/unicase/u32-suffix-context.c: New file.
47052         * modules/unicase/u32-suffix-context: New file.
47053
47054         New module 'unicase/u16-suffix-context'.
47055         * lib/unicase/u16-suffix-context.c: New file.
47056         * modules/unicase/u16-suffix-context: New file.
47057
47058         New module 'unicase/u8-suffix-context'.
47059         * lib/unicase/u8-suffix-context.c: New file.
47060         * lib/unicase/u-suffix-context.h: New file.
47061         * modules/unicase/u8-suffix-context: New file.
47062
47063         New module 'unicase/empty-suffix-context'.
47064         * lib/unicase/empty-suffix-context.c: New file.
47065         * modules/unicase/empty-suffix-context: New file.
47066
47067         New module 'unicase/u32-prefix-context'.
47068         * lib/unicase/u32-prefix-context.c: New file.
47069         * modules/unicase/u32-prefix-context: New file.
47070
47071         New module 'unicase/u16-prefix-context'.
47072         * lib/unicase/u16-prefix-context.c: New file.
47073         * modules/unicase/u16-prefix-context: New file.
47074
47075         New module 'unicase/u8-prefix-context'.
47076         * lib/unicase/u8-prefix-context.c: New file.
47077         * lib/unicase/u-prefix-context.h: New file.
47078         * lib/unicase/context.h: New file.
47079         * modules/unicase/u8-prefix-context: New file.
47080
47081         New module 'unicase/empty-prefix-context'.
47082         * lib/unicase/empty-prefix-context.c: New file.
47083         * modules/unicase/empty-prefix-context: New file.
47084
47085         New module 'unicase/ignorable'.
47086         * lib/unicase/ignorable.c: New file.
47087         * modules/unicase/ignorable: New file.
47088
47089         New module 'unicase/cased'.
47090         * lib/unicase/caseprop.h: New file.
47091         * lib/unicase/cased.c: New file.
47092         * modules/unicase/cased: New file.
47093
47094         New functions for case mapping of substrings.
47095         * lib/unicase.h (casing_prefix_context_t): New type.
47096         (unicase_empty_prefix_context): New variable.
47097         (u8_casing_prefix_context, u16_casing_prefix_context,
47098         u32_casing_prefix_context, u8_casing_prefixes_context,
47099         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47100         declarations.
47101         (casing_suffix_context_t): New type.
47102         (unicase_empty_suffix_context): New variable.
47103         (u8_casing_suffix_context, u16_casing_suffix_context,
47104         u32_casing_suffix_context, u8_casing_suffixes_context,
47105         u16_casing_suffixes_context, u32_casing_suffixes_context,
47106         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47107         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47108         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47109         declarations.
47110
47111 2009-06-28  Jim Meyering  <meyering@redhat.com>
47112
47113         boostrap: indent only with spaces
47114         * build-aux/bootstrap: Indent only with spaces, never TABs.
47115
47116         bootstrap: split long lines
47117         * build-aux/bootstrap: Keep line length < 80.
47118
47119         bootstrap: sync from coreutils
47120         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47121         just as autoreconf does.  Verify a list of prerequisite
47122         package-name,version-number pairs if defined in bootstrap.conf.
47123         Refer to README-prereq, if prerequisites are not satisfied.
47124
47125 2009-06-27  Eric Blake  <ebb9@byu.net>
47126
47127         tests: add test for bogus NULL definition
47128         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47129         * tests/test-stdlib.c: Likewise.
47130         * tests/test-string.c: Likewise.
47131         * tests/test-locale.c: Likewise.
47132         * tests/test-unistd.c: Likewise.
47133         * modules/stdio-tests (Depends-on): Add verify.
47134         * modules/stdlib-tests (Depends-on): Likewise.
47135         * modules/string-tests (Depends-on): Likewise.
47136         * modules/locale-tests (Depends-on): Likewise.
47137         * modules/unistd-tests (Depends-on): Likewise.
47138
47139 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47140
47141         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47142         self-explaining comment.
47143         * m4/selinux-selinux-h: Update serial.
47144         (gl_LIBSELINUX): New macro, adding a warning for missing development
47145         packages to code extracted from...
47146         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47147         Add warning for missing development packages here, too.
47148
47149 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47150
47151         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47152
47153 2009-06-25  Eric Blake  <ebb9@byu.net>
47154
47155         version-etc: fix regression
47156         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47157         gcc.
47158         (version_etc): Use it, to catch bugs with trailing NULL.
47159         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47160         (version_etc_va): Fix logic bug.
47161         * modules/version-etc-tests: Add test.
47162         * tests/test-version-etc.c: New file.
47163         * tests/test-version-etc.sh: Likewise.
47164
47165 2009-06-25  Sam Steingold  <sds@gnu.org>
47166
47167         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47168         mbtowc declaration.
47169
47170 2009-06-25  Eric Blake  <ebb9@byu.net>
47171
47172         fpurge: migrate into <stdio.h>
47173         * lib/fpurge.h: Delete...
47174         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47175         * lib/fpurge.c (fpurge): Change declaring header.
47176         * modules/fpurge (Files): Drop deleted file.
47177         (Depends-on): Add stdio.
47178         (configure.ac): Set witness.
47179         * modules/stdio (Makefile.am): Support fpurge macros.
47180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47182         * lib/fflush.c: Update client.
47183         * tests/test-fpurge.c: Likewise.
47184         * NEWS: Mention the change.
47185
47186 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47187
47188         * lib/argp-version-etc.c (program_authors): Add const
47189         qualifier.
47190         * lib/version-etc.c: Fix typos in the comments.
47191         * modules/argp-version-etc: Depends on version-etc.
47192
47193 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47194
47195         argp-version-etc: new module.
47196
47197         * lib/argp-version-etc.c: New file.
47198         * lib/argp-version-etc.h: New file.
47199         * modules/argp-version-etc: New file.
47200         * modules/argp-version-etc-tests: New file.
47201         * tests/test-argp-version-etc.c: New test.
47202         * tests/test-argp-version-etc-1.sh: New test.
47203
47204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47205
47206         Provide additional interfaces and documentation for version-etc
47207         module.
47208
47209         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47210         interfaces.
47211         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47212         prototypes.
47213
47214 2009-06-24  Bruno Haible  <bruno@clisp.org>
47215
47216         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47217         HAVE_LIB${NAME} macro.
47218         Reported by Sam Steingold <sds@gnu.org>.
47219
47220 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47221
47222         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47223         needed.
47224
47225 2009-06-21  Bruno Haible  <bruno@clisp.org>
47226
47227         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47228         work.
47229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47230         together with LIB${NAME}, LTLIB${NAME}.
47231         Reported by Sam Steingold <sds@gnu.org>.
47232
47233 2009-06-20  Jim Meyering  <meyering@redhat.com>
47234
47235         tests: make sc_require_test_exit_idiom more generic
47236         * top/maint.mk (Exit_witness_file): New overridable variable.
47237         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47238         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47239
47240 2009-06-19  Jim Meyering  <meyering@redhat.com>
47241
47242         hash: reverse order of src/dst parameters in an internal interface
47243         * lib/hash.c (transfer_entries): Reverse order of parameters to
47244         put DST before SRC.  Adjust callers.
47245
47246         tests: test-hash: avoid wholesale duplication
47247         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47248         Instead, use a loop and add a single conditional.
47249
47250         tests: test-hash: allow seed selection via a command line argument
47251         * tests/test-hash.c (get_seed): New function.
47252         (main): Use it.
47253
47254 2009-06-19  Eric Blake  <ebb9@byu.net>
47255
47256         hash: avoid memory leak on allocation failure
47257         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47258         failure.  Factor repeated algorithm...
47259         (transfer_entries): ...into new helper routine.
47260         (hash_delete): React to hash_rehash return value.
47261
47262         hash: reduce memory pressure in hash_rehash no-op case
47263         * lib/hash.c (next_prime): Avoid overflow.
47264         (hash_initialize): Factor bucket size computation...
47265         (compute_bucket_size): ...into new helper function.
47266         (hash_rehash): Use new function and open coding to reduce memory
47267         pressure, and avoid a memory leak in USE_OBSTACK code.
47268         Reported by Jim Meyering.
47269
47270 2009-06-18  Eric Blake  <ebb9@byu.net>
47271
47272         hash: make rotation more obvious
47273         * modules/hash (Depends-on): Add bitrotate and stdint.
47274         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47275         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47276         (SIZE_MAX): Rely on headers for definition.
47277         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47278         (raw_hasher): Use rotr_sz.
47279         Suggested by Jim Meyering.
47280
47281         hash: fix memory leak in last patch
47282         * lib/hash.c (hash_rehash): Avoid memory leak.
47283
47284         hash: avoid no-op rehashing
47285         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47286
47287         hash: provide default callback functions
47288         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47289         (hash_initialize): Use them as defaults.
47290         * tests/test-hash.c (main): Test this.
47291
47292         hash: minor optimization
47293         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47294         when possible.
47295         (hash_initialize): Document this promise.
47296         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47297         * tests/test-hash.c (hash_compare_strings): Test this.
47298
47299 2009-06-18  Bruno Haible  <bruno@clisp.org>
47300
47301         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47302         going to be replaced anyway.
47303
47304 2009-06-18  Bruno Haible  <bruno@clisp.org>
47305
47306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47307         in one place.
47308         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47309         be replaced anyway.
47310
47311 2009-06-18  Eric Blake  <ebb9@byu.net>
47312
47313         hash: check for resize before insertion
47314         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47315         threshold before insertion, so that a pathological hash_rehash
47316         that fills every bucket can still trigger another rehash.
47317
47318 2009-06-18  Jim Meyering  <meyering@redhat.com>
47319
47320         hash-tests: add a loop around the small tests
47321         * tests/test-hash.c (main): Repeat small tests with selected
47322         small initial table sizes.
47323
47324 2009-06-17  Eric Blake  <ebb9@byu.net>
47325
47326         hash: minor cleanups
47327         * lib/hash.h (hash_entry): Make opaque, by moving...
47328         * lib/hash.c (hash_entry): ...here.
47329         (hash_insert): Clarify restrictions on what can be inserted.
47330         (hash_get_next): Clarify when it is safe to remove an element
47331         during traversal.
47332         (check_tuning): Skip verification when tuning is known safe.
47333         (hash_initialize): Clarify restrictions on tuning.
47334
47335 2009-06-17  Jim Meyering  <jim@meyering.net>
47336         and Eric Blake  <ebb9@byu.net>
47337
47338         hash-tests: new module
47339         * modules/hash-tests: New file.
47340         * tests/test-hash.c: New file.
47341
47342 2009-06-17  Eric Blake  <ebb9@byu.net>
47343
47344         strstr-simple: document new module
47345         * MODULES.html.sh: Document new module.
47346
47347         strstr, strcasestr: replace on platforms with broken memchr
47348         * modules/strstr: Split into...
47349         * modules/strstr-simple: ...new module that does not care about
47350         performance, but does care about glibc bug.
47351         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47352         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47353         if platform memchr is broken, per Debian bug 521737.
47354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47355         memchr.
47356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47357         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47358         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47359         * modules/mountlist (Depends-on): Add strstr-simple.
47360         * modules/gen-uni-tables (Depends-on): Likewise.
47361         * modules/argz (Depends-on): Add strstr.
47362
47363 2009-06-17  Bruno Haible  <bruno@clisp.org>
47364
47365         * modules/posix_spawn-internal (Depends-on): Add errno.
47366
47367 2009-06-17  Bruno Haible  <bruno@clisp.org>
47368
47369         Define missing ESTALE on Interix 3.5.
47370         * lib/errno.in.h (ESTALE): Assign a value if missing.
47371         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47372         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47373         missing.
47374         * doc/posix-headers/errno.texi: Mention the Interix bug.
47375         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47376
47377 2009-06-15  Eric Blake  <ebb9@byu.net>
47378
47379         memchr, memchr2: add valgrind exception
47380         * lib/memchr.valgrind: New file.
47381         * lib/memchr2.valgrind: New file.
47382         * modules/memchr (Files): Distribute valgrind file.
47383         * modules/memchr2 (Files): Likewise.
47384
47385         docs: memchr is no longer obsolete
47386         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47387         * lib/string.in.h (memchr): Simplify logic.
47388
47389 2009-06-14  Jim Meyering  <meyering@redhat.com>
47390
47391         link-follow: fix the "checking..." message to not mention trailing slash
47392         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47393         never considered trailing slashes.
47394
47395 2009-06-14  Bruno Haible  <bruno@clisp.org>
47396
47397         * m4/memchr.m4: Mention also the bug on IA-64.
47398         * doc/posix-functions/memchr.texi: Likewise.
47399
47400 2009-06-12  Eric Blake  <ebb9@byu.net>
47401
47402         memchr: detect broken x86_64 and alpha implementations
47403         * modules/memchr-tests (Depends-on): Move mmap detection...
47404         * modules/memchr (Depends-on): ...here.
47405         (configure.ac): Set indicator.
47406         * lib/string.in.h (memchr): Declare replacement.
47407         * modules/string (Makefile.am): Trigger replacement.
47408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47409         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47410         bugs.
47411         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47412         * modules/getpagesize (License): Relax license.
47413
47414 2009-06-11  Bruno Haible  <bruno@clisp.org>
47415
47416         * lib/idpriv.h: Add more references.
47417
47418 2009-06-08  Bruno Haible  <bruno@clisp.org>
47419
47420         Tests for module 'idpriv-droptemp'.
47421         * modules/idpriv-droptemp-tests: New file.
47422         * tests/test-idpriv-droptemp.sh: New file.
47423         * tests/test-idpriv-droptemp.su.sh: New file.
47424         * tests/test-idpriv-droptemp.c: New file.
47425
47426         New module 'idpriv-droptemp'.
47427         * lib/idpriv-droptemp.c: New file.
47428         * modules/idpriv-droptemp: New file.
47429
47430 2009-06-08  Bruno Haible  <bruno@clisp.org>
47431
47432         Tests for module 'idpriv-drop'.
47433         * modules/idpriv-drop-tests: New file.
47434         * tests/test-idpriv-drop.sh: New file.
47435         * tests/test-idpriv-drop.su.sh: New file.
47436         * tests/test-idpriv-drop.c: New file.
47437
47438         New module 'idpriv-drop'.
47439         * lib/idpriv.h: New file.
47440         * lib-idpriv-drop.c: New file.
47441         * m4/idpriv.m4: New file.
47442         * modules/idpriv-drop: New file.
47443
47444 2009-06-08  Bruno Haible  <bruno@clisp.org>
47445
47446         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47447         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47448         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47449         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47450         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47451         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47452         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47453
47454 2009-06-08  Eric Blake  <ebb9@byu.net>
47455
47456         test-strstr: use memory fence, when possible
47457         * tests/test-strstr.c (main): Use memory fence, in order to be
47458         more likely to trigger Debian bug 521737.
47459         * modules/strstr-tests (Files): Pull in additional files.
47460
47461         memchr: no longer obsolete, for wider field testing
47462         * modules/memchr (Status, Notice): Delete, this module is no
47463         longer obsolete.
47464         * modules/vasnprintf (Depends-on): Add memchr.
47465
47466 2009-06-07  Jim Meyering  <meyering@redhat.com>
47467
47468         hash: declare some functions with the warn_unused_result attribute
47469         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47470
47471 2009-06-07  Bruno Haible  <bruno@clisp.org>
47472
47473         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47474         Reported by Eric Blake.
47475
47476 2009-06-06  Eric Blake  <ebb9@byu.net>
47477
47478         test-alignof: fix typo with long double
47479         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47480         compiler error.
47481
47482 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47483
47484         Escape non-texinfo { and }s.
47485         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47486         markup error.
47487
47488 2009-06-04  Jim Meyering  <meyering@redhat.com>
47489
47490         gitlog-to-changelog: don't infloop on an empty commit log
47491         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47492         Reported by Boris Petersen <transacid@centerim.org>.
47493
47494 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47495
47496         version-etc: extend for packagers
47497         Add three new configure options, intended for packagers:
47498           --with-packager="packager name"
47499           --with-packager-version="packager-specific version"
47500           --with-packager-bug-reports="packager bug reporting"
47501         An example with coreutils:
47502           $ ./configure \
47503             --with-packager=Gentoo \
47504             --with-packager-bug-report=http://bugs.gentoo.org/ \
47505             --with-packager-version="patchset 1.6"
47506           $ ./src/ls --version | head -n2
47507           ls (GNU coreutils) 7.1-dirty
47508           Packaged by Gentoo (patchset 1.6)
47509         Note that the bug reporting info via --help doesn't show up because
47510         coreutils uses its own custom emit_bug_reporting_address() implementation
47511         in src/system.h.  If it didn't, it'd look like:
47512           $ ./src/ls --help | tail -n4
47513           Report bugs to <bug-coreutils@gnu.org>.
47514           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47515           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47516           General help using GNU software: <http://www.gnu.org/gethelp/>.
47517         * lib/version-etc.c: Print new information, if provided.
47518         * m4/version-etc.m4: New file.
47519         * modules/version-etc (Files): Add m4/version-etc.m4.
47520         (configure.ac): Add gl_VERSION_ETC.
47521
47522 2009-05-31  Bruno Haible  <bruno@clisp.org>
47523
47524         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47525         and 'int64_t'.
47526         * modules/alignof-tests (Dependencies): Add stdint.
47527         Reported by Eric Blake.
47528
47529 2009-05-31  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47532         restriction due to compiler bugs.
47533         Reported by Eric Blake.
47534
47535 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47536             Bruno Haible  <bruno@clisp.org>
47537
47538         Fix test-alignof failure.
47539         * lib/alignof.h (alignof_slot): New macro.
47540         (alignof_type): New macro, with the same semantics as the previous
47541         'alignof'.
47542         (alignof): Alias to alignof_slot.
47543         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47544         check that the results are usable as constant expressions.
47545
47546 2009-05-31  Bruno Haible  <bruno@clisp.org>
47547
47548         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47549         * tests/test-memchr.c (main): Check that memchr does not read past the
47550         first occurrence of the byte.
47551         * tests/test-strstr.c (main): Update comment.
47552         Suggested by Eric Blake.
47553
47554 2009-05-30  Bruno Haible  <bruno@clisp.org>
47555
47556         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47557         detail how to use dumpbin.
47558         Reported by David Byron <dbyron@dbyron.com>.
47559
47560 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47561
47562         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47563
47564 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47565
47566         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47567
47568 2009-05-28  Bruno Haible  <bruno@clisp.org>
47569
47570         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47571         build-aux/ files.
47572
47573 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47574
47575         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47576
47577 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47578
47579         * gnulib-tool (sed_transform_main_lib_file)
47580         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47581         regexps.
47582
47583 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47584
47585         * tests/test-strstr.c: Add another self-test.
47586         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47587         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47588
47589 2009-05-23  Bruno Haible  <bruno@clisp.org>
47590
47591         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47592         change.
47593
47594 2009-05-21  Bruno Haible  <bruno@clisp.org>
47595
47596         Simplify use of mode_t varargs.
47597         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47598         uses 'mode_t' or 'int'.
47599         * lib/openat.c (openat): Likewise.
47600         * lib/open-safer.c (open_safer): Likewise.
47601         * m4/mode_t.m4: New file.
47602         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47603         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47604         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47605         * modules/open (Files): Add m4/mode_t.m4.
47606         * modules/openat (Files): Likewise.
47607         * modules/fcntl-safer (Files): Likewise.
47608         Suggested by Eric Blake.
47609
47610 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47611
47612         * doc/glibc-functions/fallocate.texi: New file.
47613         * doc/gnulib.texi: Include it.
47614
47615 2009-05-21  Eric Blake  <ebb9@byu.net>
47616             Bruno Haible  <bruno@clisp.org>
47617
47618         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47619         invocations.
47620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47621
47622 2009-05-21  Eric Blake  <ebb9@byu.net>
47623             Bruno Haible  <bruno@clisp.org>
47624
47625         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47626         include_next. Fix of 2008-11-20 commit.
47627         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47628         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47629         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47630         NEXT_MATH_H.
47631         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47632         instead of NEXT_MATH_H.
47633
47634 2009-05-21  Bruno Haible  <bruno@clisp.org>
47635
47636         Avoid redefinition warnings for SIZE_MAX.
47637         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47638         Reported by Simon Josefsson.
47639
47640 2009-05-21  Bruno Haible  <bruno@clisp.org>
47641
47642         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47643         AC_CACHE_VAL.
47644
47645 2009-05-20  Bruno Haible  <bruno@clisp.org>
47646
47647         Make zeroptr.h work on mingw.
47648         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47649         mprotect.
47650         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47651         * modules/memchr2-tests (configure.ac): Likewise.
47652         * modules/memcmp-tests (configure.ac): Likewise.
47653         * modules/memmem-tests (configure.ac): Likewise.
47654         * modules/memrchr-tests (configure.ac): Likewise.
47655         Reported by Simon Josefsson.
47656
47657 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47658
47659         * tests/test-glob.c: Include string.h for strcmp prototype.
47660
47661 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47662
47663         * modules/getdelim (Depends-on): Add explicit stdint, although it
47664         was implicitly already pulled in via realloc-posix.
47665         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47666
47667 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47668
47669         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47670         G. Christensen" <tgc@jupiterrise.com>.
47671         * m4/sys_socket_h.m4: Check for sa_family_t.
47672         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47673         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47674         * tests/test-sys_socket.c: Check that sa_family_t works.
47675
47676 2009-05-18  Eric Blake  <ebb9@byu.net>
47677
47678         maint.mk: allow gnulib_dir in VPATH build
47679         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47680
47681 2009-05-15  Jim Meyering  <meyering@redhat.com>
47682
47683         maint.mk: Give gnulib_dir a default definition.
47684         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47685         Thus, most packages no longer need to specify this variable in cfg.mk
47686
47687 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47688
47689         rename.m4: fix typos that would make non-mingw cross-configure fail
47690         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47691
47692 2009-05-13  Eric Blake  <ebb9@byu.net>
47693
47694         mmap-anon: avoid out-of-order autoconf expansion
47695         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47696         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47697         * modules/memchr-tests (Depends-on): Add extensions.
47698         * modules/memchr2-tests (Depends-on): Add extensions.
47699         * modules/memcmp-tests (Depends-on): Add extensions.
47700         * modules/memmem-tests (Depends-on): Add extensions.
47701         * modules/memrchr-tests (Depends-on): Add extensions.
47702
47703 2009-05-13  Bruno Haible  <bruno@clisp.org>
47704
47705         Make some tests ISO C 99 compliant.
47706         * tests/zerosize-ptr.h: New file.
47707         * tests/test-memchr.c: Include zerosize-ptr.h.
47708         (main): Use a zero-size object pointer instead of NULL.
47709         * tests/test-memchr2.c: Include zerosize-ptr.h.
47710         (main): Use a zero-size object pointer instead of NULL.
47711         * tests/test-memcmp.c: Include zerosize-ptr.h.
47712         (main): Use a zero-size object pointer instead of NULL.
47713         * tests/test-memmem.c: Include zerosize-ptr.h.
47714         (main): Use a zero-size object pointer instead of NULL.
47715         * tests/test-memrchr.c: Include zerosize-ptr.h.
47716         (main): Use a zero-size object pointer instead of NULL.
47717         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47718         m4/mmap-anon.m4.
47719         (Depends-on): Add getpagesize.
47720         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47721         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47722         m4/mmap-anon.m4.
47723         (Depends-on): Add getpagesize.
47724         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47725         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47726         m4/mmap-anon.m4.
47727         (Depends-on): Add getpagesize.
47728         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47729         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47730         m4/mmap-anon.m4.
47731         (Depends-on): Add getpagesize.
47732         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47733         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47734         m4/mmap-anon.m4.
47735         (Depends-on): Add getpagesize.
47736         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47737
47738 2009-05-12  Bruno Haible  <bruno@clisp.org>
47739
47740         Tests for module 'alignof'.
47741         * modules/alignof-tests: New file.
47742         * tests/test-alignof.c: New file.
47743
47744 2009-05-12  Bruno Haible  <bruno@clisp.org>
47745
47746         Fix alignof macro.
47747         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47748         vendor compilers that are always correct.
47749
47750 2009-05-12  Bruno Haible  <bruno@clisp.org>
47751
47752         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47753         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47754         not whether its fully works.
47755
47756 2009-05-12  Bruno Haible  <bruno@clisp.org>
47757
47758         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47759
47760 2009-05-12  Jim Meyering  <meyering@redhat.com>
47761
47762         * top/maint.mk: Adjust backslash alignment.
47763
47764 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47765
47766         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47767
47768 2009-05-11  Eric Blake  <ebb9@byu.net>
47769
47770         argp: avoid undefined behavior
47771         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47772         macros.
47773
47774 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47775
47776         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47777         user.name to prevent git commit from complaining.
47778
47779 2009-05-10  Bruno Haible  <bruno@clisp.org>
47780
47781         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47782         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47783         it rewrites every file name only once.
47784         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47785
47786 2009-05-08  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47789         instead of 'max'.
47790
47791 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47792
47793         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47794         sockaddr_storage test.
47795
47796 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47797
47798         * modules/sys_socket (Makefile.am): Substitute
47799         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47800         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47801         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47802         * tests/test-sys_socket.c: Check sockaddr_storage.
47803
47804 2009-05-08  Bruno Haible  <bruno@clisp.org>
47805
47806         New module 'alignof'.
47807         * lib/alignof.h: New file.
47808         * modules/alignof: New file.
47809
47810 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47811             Bruno Haible  <bruno@clisp.org>
47812
47813         Fix test-file-has-acl on FreeBSD.
47814         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47815         mask is implicitly added.
47816         * tests/test-file-has-acl.c: Include <signal.h>.
47817         (main): Terminate the test after 5 seconds.
47818         * modules/acl-tests (configure.ac): Check for alarm function.
47819
47820 2009-05-04  Bruno Haible  <bruno@clisp.org>
47821
47822         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47824         * modules/errno (configure.ac): Drop AC_REQUIRE.
47825         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47826         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47827
47828 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47829
47830         * modules/glob-tests: New module.
47831         * tests/test-glob.c: Add.
47832
47833 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47834
47835         * modules/fnmatch-tests: New module.
47836         * tests/test-fnmatch.c: Add.
47837
47838 2009-05-04  Eric Blake  <ebb9@byu.net>
47839
47840         maint: make the new no-submodule-changes rule VPATH-safe
47841         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47842
47843 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47844             Bruno Haible  <bruno@clisp.org>
47845
47846         acl: Fix infinite loop on FreeBSD.
47847         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47848         of return value from acl_get_entry.
47849         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47850         Likewise.
47851
47852 2009-05-03  Bruno Haible  <bruno@clisp.org>
47853
47854         * lib/acl-internal.h (acl_entries): Clarify return value.
47855         * lib/acl_entries.c (acl_entries): Likewise.
47856
47857 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47858
47859         Bug fix in acl module.
47860         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47861
47862 2009-05-03  Bruno Haible  <bruno@clisp.org>
47863
47864         Create gperf-generated file in the source dir, not in the build dir.
47865         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47866         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47867         * modules/unicase/locale-language (unicase/locale-languages.h):
47868         Likewise.
47869         * modules/unicase/special-casing (unicase/special-casing-table.h):
47870         Likewise.
47871         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47872         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47873         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47874         Reported by Ralf Wildenhues.
47875
47876 2009-05-03  Bruno Haible  <bruno@clisp.org>
47877
47878         * modules/fnmatch (Description, configure.ac): Taken from
47879         fnmatch-posix.
47880         * modules/fnmatch-posix: Turn into a symbolic reference to the
47881         'fnmatch' module, and deprecate.
47882         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47883
47884 2009-05-03  Bruno Haible  <bruno@clisp.org>
47885
47886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47887         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47888         Reported by Ralf Wildenhues.
47889
47890 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47891
47892         * m4/fnmatch.m4: Fix fnmatch re-define.
47893
47894 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47895
47896         priv-set: new module and tests; adapt write-any-file
47897         * lib/priv-set.c: New file.
47898         * lib/priv-set.h: New file.
47899         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47900         * lib/write-any-file.c: Simplify by using priv-set module.
47901         * m4/priv-set.m4: New file.
47902         * modules/priv-set: New file.
47903         * modules/unlinkdir: Add dependency on priv-set module.
47904         * modules/write-any-file: Likewise.
47905
47906         Tests for module 'priv-set'.
47907         * modules/priv-set-tests: New file.
47908         * tests/test-priv-set.c: New file.
47909
47910 2009-05-03  Jim Meyering  <meyering@redhat.com>
47911             Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47914         use the converted UTF-8 variant of the name instead.
47915
47916 2009-05-03  Jim Meyering  <meyering@redhat.com>
47917
47918         tests: tighten some getdate tests
47919         * tests/test-getdate.c (main): Tighten tests: require equality,
47920         not just greater than.  Set TZ envvar to UTC0.
47921
47922 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47923
47924         getdate: correctly interpret "next monday" when run on a Monday
47925         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47926         that e.g., "next tues" (when run on a tuesday) results in a date
47927         that is one week in the future, and not today's date.
47928         I.e., add a week when the wday is the same as the current one.
47929         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47930         and earlier by Martin Bernreuther and Jan Minář.
47931         * tests/test-getdate.c (main): Check that "next DAY" is always in
47932         the future and that "last DAY" is always in the past.
47933
47934 2009-05-02  Jim Meyering  <meyering@redhat.com>
47935
47936         build: ensure that a release build fails when a submodule is unclean
47937         * top/maint.mk (no-submodule-changes): New rule.
47938         (alpha beta major): Depend on it.
47939
47940 2009-05-02  Bruno Haible  <bruno@clisp.org>
47941
47942         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47943         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47944         shell variable gl_fnmatch_required to detect which variant is
47945         requested.
47946         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47947         gl_FUNC_FNMATCH_POSIX.
47948         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47949         exclude fnmatch-posix.
47950
47951 2009-05-02  Bruno Haible  <bruno@clisp.org>
47952
47953         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47954         * modules/mbsrtowcs (License): Change to LGPLv2+.
47955         * modules/strnlen1 (License): Likewise.
47956         Reported by Simon Josefsson.
47957
47958 2009-05-02  Bruno Haible  <bruno@clisp.org>
47959
47960         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47961         "cross".
47962         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47963         gnulib-tool was called with option --source-base=lib.
47964
47965 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47966
47967         Use automake *-local hooks without commands, for extensibility.
47968         * modules/localcharset (Makefile.am): Rename install-exec-local
47969         rule to install-exec-localcharset, and make it a prerequisite of
47970         install-exec-local.  Likewise, rename the uninstall-local rule to
47971         uninstall-localcharset, and make it a prerequisite of the former.
47972
47973 2009-05-01  Bruno Haible  <bruno@clisp.org>
47974
47975         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47976         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47977         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47979         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47980         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47981         m4/locale-zh.m4, m4/codeset.m4.
47982
47983         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47984         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47985         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47986         m4/locale-zh.m4.
47987
47988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47989         REPLACE_WCRTOMB if mbstate_t must be replaced.
47990         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47991         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47992
47993 2009-05-01  Bruno Haible  <bruno@clisp.org>
47994
47995         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47996         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47997         dngettext, dcngettext, textdomain, bindtextdomain,
47998         bind_textdomain_codeset): Undefine before redefining.
47999
48000 2009-04-30  Bruno Haible  <bruno@clisp.org>
48001
48002         Fix bug introduced on 2009-04-25.
48003         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48004         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48005         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48006         is defined.
48007         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48008         is defined.
48009         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48010         is defined.
48011         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48012
48013 2009-04-28  Bruno Haible  <bruno@clisp.org>
48014
48015         Comment tweaks.
48016         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48017         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48018         * lib/unicase.h (u*_casexfrm): Likewise.
48019         Reported by Paolo Bonzini.
48020
48021 2009-04-28  Bruno Haible  <bruno@clisp.org>
48022
48023         Fix a compilation error.
48024         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48025         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48026         Reported by Jim Meyering.
48027
48028 2009-04-27  Bruno Haible  <bruno@clisp.org>
48029
48030         New module 'libunistring'.
48031         * modules/libunistring: New file.
48032         * m4/libunistring.m4: New file.
48033         * MODULES.html.sh (Unicode string functions): Add it.
48034
48035 2009-04-27  Eric Blake  <ebb9@byu.net>
48036
48037         maint.mk: allow package-specific header to provide <config.h>
48038         * top/maint.mk (sc_require_config_h): New variable.
48039         (sc_require_config_h, sc_require_config_h_first): Use it.
48040
48041 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48042
48043         * top/maint.mk (sc_avoid_if_before_free): Except
48044         useless-if-before-free script.
48045
48046 2009-04-27  Eric Blake  <ebb9@byu.net>
48047
48048         maintainer-makefile: depend on all required helper scripts
48049         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48050         useless-if-before-free.
48051         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48052         version, rather than assuming gnulib checkout is available.
48053         Reported by Simen Josefsson.
48054
48055 2009-04-26  Bruno Haible  <bruno@clisp.org>
48056
48057         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48058         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48059         "../" or "..".
48060
48061 2009-04-26  Bruno Haible  <bruno@clisp.org>
48062
48063         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48064         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48065         AC_LIB_HAVE_LINKFLAGS.
48066
48067 2009-04-26  Bruno Haible  <bruno@clisp.org>
48068
48069         Simplify calling convention of u*_conv_from_encoding.
48070         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48071         u32_conv_from_encoding): Expect a resultbuf argument and return the
48072         result directly as a pointer.
48073         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48074         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48075         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48076         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48077         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48078         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48079         Update.
48080         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48081         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48082         * lib/vasnprintf.c (VASNPRINTF): Update.
48083         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48084         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48085         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48086         * NEWS: Mention the change.
48087
48088 2009-04-26  Bruno Haible  <bruno@clisp.org>
48089
48090         Simplify calling convention of u*_conv_to_encoding.
48091         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48092         u32_conv_to_encoding): Expect a resultbuf argument and return the
48093         result directly as a pointer.
48094         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48095         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48096         freeing scaled_offsets if mem_iconveha failed.
48097         * lib/unicase/u-casexfrm.h (FUNC): Update.
48098         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48099         * lib/vasnprintf.c (VASNPRINTF): Update.
48100         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48101         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48102         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48103         * NEWS: Mention the change.
48104
48105 2009-04-26  Bruno Haible  <bruno@clisp.org>
48106
48107         Avoid test failures on AIX and OSF/1.
48108         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48109         malloc(0).
48110         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48111         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48112         Likewise.
48113         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48114         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48115         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48116         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48117         * doc/posix-functions/malloc.texi: Document the portability problem
48118         related to malloc(0).
48119
48120 2009-04-26  Bruno Haible  <bruno@clisp.org>
48121
48122         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48123         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48124         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48125
48126 2009-04-25  Bruno Haible  <bruno@clisp.org>
48127
48128         Avoid link error when creating a namespace clean library.
48129         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48130         as macro with arguments if already defined as an alias.
48131         * lib/signbitf.c (gl_signbitf): Don't undefine.
48132         * lib/signbitd.c (gl_signbitd): Don't undefine.
48133         * lib/signbitl.c (gl_signbitl): Don't undefine.
48134
48135 2009-04-25  Jim Meyering  <meyering@redhat.com>
48136
48137         vc-list-files: fix another quoting bug
48138         * build-aux/vc-list-files: Avoid sed backslash expansion
48139         of pathological directory names.
48140
48141 2009-04-25  Eric Blake  <ebb9@byu.net>
48142
48143         vc-list-files: fix shell quoting error
48144         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48145         timestamp.
48146
48147 2009-04-25  Jim Meyering  <meyering@redhat.com>
48148
48149         vc-list-files: restore lost functionality with subdir argument
48150         * build-aux/vc-list-files: When given a non-"." sub-directory
48151         argument, substitute the $dir/ prefix back onto each resulting name.
48152         Otherwise, coreutils' root_tests check would fail.
48153
48154 2009-04-24  Eric Blake  <ebb9@byu.net>
48155
48156         vc-list-files: ignore git symlinks
48157         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48158         than ls-files, to ignore git symlinks.
48159
48160         maint.mk: import improvements from m4
48161         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48162         (move_if_change): Delete unused macro.
48163         (news-date-check, vc-diff-check): Support VPATH builds.
48164         (announcement): Likewise.  Split --bootstrap-tools list...
48165         (boostrap-tools): ...into separate list, which can be overridden
48166         in cfg.mk.
48167         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48168         requiring dependency on useless-if-before-free module.
48169         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48170         Support VPATH builds.
48171
48172 2009-04-24  Jim Meyering  <meyering@redhat.com>
48173
48174         maint.mk: remove coreutils-specific rules and variables
48175         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48176         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48177         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48178
48179         maint.mk: remove obsolete rule
48180         * top/maint.mk (rel-check): Remove rule.
48181         (WGET, WGETFLAGS): Remove now-unused variables.
48182
48183 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48184
48185         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48186         consistency.
48187
48188         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48189         '$(PATH_SEPARATOR)' instead of ':'.
48190
48191 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48192
48193         * lib/getopt1.c (main): Use 'const' for static array.
48194
48195 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48196
48197         * top/maint.mk: Sync with coreutils.
48198         * NEWS: Explain incompatibilities.
48199
48200 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48201             Bruno Haible  <bruno@clisp.org>
48202
48203         Fix cross-compilation results.
48204         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48205         statement, as third argument of AC_TRY_RUN.
48206         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48207         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48208         Likewise.
48209         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48211         Likewise.
48212         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48214         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48215
48216 2009-04-20  Bruno Haible  <bruno@clisp.org>
48217
48218         Avoid test failure on mingw.
48219         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48220
48221 2009-04-20  Bruno Haible  <bruno@clisp.org>
48222
48223         Avoid compilation error on mingw.
48224         * modules/localename-tests (Depends-on): Add locale.
48225
48226 2009-04-19  Bruno Haible  <bruno@clisp.org>
48227
48228         Support for building a shared library on Windows platforms.
48229         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48230         (main): Test the presence of UNINORM_NFC here.
48231         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48232         (main): Test the presence of UNINORM_NFD here.
48233         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48234         (main): Test the presence of UNINORM_NFKC here.
48235         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48236         (main): Test the presence of UNINORM_NFKD here.
48237
48238 2009-04-19  Bruno Haible  <bruno@clisp.org>
48239
48240         Avoid a compiler warning.
48241         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48242         Change type of variable 'sequence'.
48243
48244 2009-04-19  Bruno Haible  <bruno@clisp.org>
48245
48246         * modules/configmake (Makefile.am): When the contents of configmake.h
48247         does not change, arrange to preserve its modification time.
48248
48249 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48250
48251         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48252         gettext domain.
48253
48254 2009-04-16  Jim Meyering  <meyering@redhat.com>
48255
48256         useless-if-before-free: improve conversion code
48257         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48258         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48259
48260 2009-04-14  Bruno Haible  <bruno@clisp.org>
48261
48262         * modules/fcntl (Depends-on): Add extensions.
48263         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48264
48265 2009-04-12  Ben Pfaff  <blp@gnu.org>
48266
48267         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48268         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48269
48270 2009-03-20  Ben Pfaff  <blp@gnu.org>
48271
48272         Make rename replace existing destinations on Windows.
48273         * m4/rename.m4: Add test for Mingw.
48274         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48275         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48276         * doc/posix-functions/rename.texi: Document.
48277
48278 2009-04-10  Bruno Haible  <bruno@clisp.org>
48279
48280         New include file "iconveh.h".
48281         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48282         * lib/striconveh.h: Include it.
48283         (enum iconv_ilseq_handler): Remove definition.
48284         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48285         striconveh.h.
48286         * lib/striconveha.c: Include striconveh.h.
48287         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48288         * modules/striconveh (Files): Add lib/iconveh.h.
48289         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48290         lib/striconveh.h.
48291
48292 2009-04-10  Bruno Haible  <bruno@clisp.org>
48293
48294         * lib/uniconv.h: Update comment.
48295
48296 2009-04-10  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48299         always.
48300         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48301         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48302         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48303         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48304         "unistring-notinline.h", so that the function gets defined always.
48305         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48306         * lib/unistr/u8-uctomb.c: Likewise.
48307         * lib/unistr/u16-mbtouc.c: Likewise.
48308         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48309         * lib/unistr/u16-uctomb.c: Likewise.
48310         * lib/unistr/u32-mbtouc.c: Likewise.
48311         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48312         * lib/unistr/u32-uctomb.c: Likewise.
48313
48314 2009-04-10  Bruno Haible  <bruno@clisp.org>
48315
48316         Mark 'utime' obsolete.
48317         * modules/utime (Status, Notice): New sections.
48318         Suggested by Jim Meyering.
48319
48320         Fix cross-compile guess for utime test.
48321         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48322         autoconf.
48323         * doc/posix-functions/utime.texi: Give more precisions.
48324         Reported by Jan <ipif@ymail.com>.
48325
48326 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48327
48328         filevercmp: correct today's change
48329         * lib/filevercmp.c: Also handle coreutils' test inputs.
48330         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48331
48332         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48333         for reporting it.
48334         * lib/filevercmp.c: Special handle for "", "." and "..".
48335         * tests/test-filevercmp.c: Enlarge the set suite.
48336
48337 2009-04-07  Jim Meyering  <meyering@redhat.com>
48338
48339         useless-if-before-free: show how to remove braced useless free, too
48340         * build-aux/useless-if-before-free: still only in a comment, though.
48341
48342 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48343
48344         maint.mk: import changes to syntax-check macros from coreutils
48345         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48346         Use them in the relevant macros.
48347
48348 2009-04-06  Bruno Haible  <bruno@clisp.org>
48349
48350         Fix unportable use of bit-fields.
48351         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48352         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48353         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48354
48355 2009-04-06  Bruno Haible  <bruno@clisp.org>
48356
48357         Avoid test failures on AIX and OSF/1.
48358         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48359         that malloc(0) = NULL.
48360         * tests/unicase/test-u8-tolower.c (check): Likewise.
48361         * tests/unicase/test-u8-totitle.c (check): Likewise.
48362         * tests/unicase/test-u8-toupper.c (check): Likewise.
48363         * tests/unicase/test-u16-casefold.c (check): Likewise.
48364         * tests/unicase/test-u16-tolower.c (check): Likewise.
48365         * tests/unicase/test-u16-totitle.c (check): Likewise.
48366         * tests/unicase/test-u16-toupper.c (check): Likewise.
48367         * tests/unicase/test-u32-casefold.c (check): Likewise.
48368         * tests/unicase/test-u32-tolower.c (check): Likewise.
48369         * tests/unicase/test-u32-totitle.c (check): Likewise.
48370         * tests/unicase/test-u32-toupper.c (check): Likewise.
48371         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48372         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48373         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48374         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48375         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48376         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48377         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48378         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48379         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48380         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48381         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48382         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48383
48384 2009-04-05  Bruno Haible  <bruno@clisp.org>
48385
48386         Work around an autoconf limitation.
48387         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48388         comment line if it would be longer than 3 KB.
48389
48390 2009-04-05  Bruno Haible  <bruno@clisp.org>
48391
48392         Avoid test failure with libiconv-1.13.
48393         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48394         of the expected test results.
48395
48396 2009-04-05  Bruno Haible  <bruno@clisp.org>
48397
48398         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48399         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48400         that it should be installed.
48401
48402 2009-04-05  Bruno Haible  <bruno@clisp.org>
48403
48404         * gnulib-tool: New option --copy-file.
48405         (func_usage): Document it.
48406         (func_dest_tmpfilename): Moved out of func_import.
48407         (func_add_file, func_update_file): New functions, extracted from
48408         func_import.
48409         (func_import): Update.
48410
48411 2009-04-05  Karl Berry  <karl@gnu.org>
48412
48413         * README: prominently mention gnulib-tool.
48414         Rearrange sections so getting the code is near the top.
48415
48416 2009-04-05  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/unicase.h: Mention u*_cmp2.
48419         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48420         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48421         * lib/unicase/ulc-casecmp.c: Likewise.
48422         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48423         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48424         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48425         unistr/u8-cmp.
48426         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48427         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48428         unistr/u16-cmp.
48429         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48430         unistr/u32-cmp.
48431
48432         * lib/uninorm.h: Mention u*_cmp2.
48433         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48434         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48435         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48436         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48437         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48438         unistr/u8-cmp.
48439         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48440         unistr/u16-cmp.
48441         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48442         unistr/u32-cmp.
48443
48444         New module 'unistr/u32-cmp2'.
48445         * lib/unistr/u32-cmp2.c: New file.
48446         * modules/unistr/u32-cmp2: New file.
48447
48448         New module 'unistr/u16-cmp2'.
48449         * lib/unistr/u16-cmp2.c: New file.
48450         * modules/unistr/u16-cmp2: New file.
48451
48452         New module 'unistr/u8-cmp2'.
48453         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48454         * lib/unistr/u8-cmp2.c: New file.
48455         * lib/unistr/u-cmp2.h: New file.
48456         * modules/unistr/u8-cmp2: New file.
48457
48458 2009-04-05  Bruno Haible  <bruno@clisp.org>
48459
48460         * lib/unictype.h (uc_property_is_valid): New macro.
48461         * tests/unictype/test-pr_byname.c (main): Use it.
48462
48463         * lib/unistr.h: Doc fixes.
48464         * lib/uniconv.h: Doc fixes.
48465         * lib/unictype.h: Doc fixes.
48466
48467 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48468
48469         Port coreutils 7.2 to Solaris 8.
48470
48471         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48472         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48473         for Solaris 8.  This is a bit of a hack, as it means it's the
48474         caller's responsibility to add -lnsl if needed, but most likely it
48475         won't be needed since only getaddrinfo uses this and getaddrinfo
48476         isn't needed on Solaris 8.
48477
48478         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48479         problem to Solaris 8 encountered with coreutils 7.2, which
48480         resulted in a message "fnmatch.c:292: warning: passing argument 4
48481         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48482         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48483
48484 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48485
48486         * m4/ld-version-script.m4: Add FIXME comment.
48487
48488 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48489
48490         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48491         SOVERSION variable.
48492
48493 2009-04-02  Bruno Haible  <bruno@clisp.org>
48494
48495         * Makefile (info, html, dvi, pdf): Combine the rules.
48496         Suggested by Jim Meyering.
48497
48498 2009-04-01  Bruno Haible  <bruno@clisp.org>
48499
48500         * Makefile (info, html, dvi, pdf): New targets.
48501         Reported by Reuben Thomas <rrt@sc3d.org>.
48502
48503 2009-04-01  Bruno Haible  <bruno@clisp.org>
48504
48505         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48506         can be put into PATH.
48507         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48508
48509 2009-04-01  Bruno Haible  <bruno@clisp.org>
48510
48511         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48512
48513 2009-04-01  Bruno Haible  <bruno@clisp.org>
48514
48515         Rename module 'visibility'.
48516         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48517         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48518         * doc/gnulib.texi: Update.
48519         * MODULES.html.sh (Misc): Update.
48520         * NEWS: Mention the change.
48521
48522 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48523
48524         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48525         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48526         Eric Blake <ebb9@byu.net> for review.
48527         * MODULES.html.sh: Add lib-msvc-compat.
48528         * doc/gnulib.texi: Link to new section.
48529         * m4/ld-output-def.m4: New file.
48530         * doc/ld-output-def.texi: New file.
48531
48532 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48533
48534         Rename ld-version-script to lib-symbol-versions.  Suggested by
48535         Bruno Haible <bruno@clisp.org>.
48536         * modules/ld-version-script: Renamed to lib-symbol-versions.
48537         * doc/ld-version-script.texi: Fix module name.
48538         * MODULES.html.sh: Add lib-symbol-versions.
48539
48540 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48541
48542         * modules/u64-tests: New file.
48543         * tests/test-u64.c: New file.
48544
48545 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48546
48547         * MODULES.html.sh: Mention u64.
48548         * modules/u64: New module.
48549         * modules/crypto/sha512: Depend on u64 module instead of providing
48550         u64.h.
48551
48552 2009-03-27  Eric Blake  <ebb9@byu.net>
48553
48554         test-strerror: make debugging EAI_SYSTEM easier
48555         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48556         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48557         failure was EAI_SYSTEM.
48558
48559 2009-03-25  Bruno Haible  <bruno@clisp.org>
48560
48561         Fix a problem with --enable-relocatable on Solaris 7.
48562         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48563         since 2008-02-24.
48564
48565 2009-03-25  Eric Blake  <ebb9@byu.net>
48566
48567         test-sockets: avoid gcc warning
48568         * tests/test-sockets.c (main): Silence compiler warning.
48569
48570 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         New modules nproc, pthread, contributed by Glen Lenker.
48573
48574         * MODULES.html.sh: Add pthread, nproc.
48575         * lib/nproc.c: New file.
48576         * lib/nproc.h: New file.
48577         * lib/pthread.in.h: New file.
48578         * m4/pthread.m4: New file.
48579         * modules/nproc: New file.
48580         * modules/pthread: New file.
48581
48582 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48583
48584         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48585         New variable.
48586
48587 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48588
48589         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48590         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48591         * tests/test-filevercmp.c: Add tests for backup suffixes.
48592
48593 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48594
48595         * modules/stdlib (Depends-on): Add stdint, needed when defining
48596         struct random_data on, for example, HP-UX 10.20.  Reported by
48597         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48598
48599 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48600
48601         * lib/readline.c (readline): Call fflush on stdout after printing
48602         prompt.
48603
48604 2009-03-20  Bruno Haible  <bruno@clisp.org>
48605
48606         Remove dependency from 'close' module to -lws2_32 on native Windows.
48607         * lib/close-hook.h: New file.
48608         * lib/close-hook.c: New file.
48609         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48610         w32sock.h.
48611         (_gl_close_fd_maybe_socket): Remove function.
48612         (rpl_close): Invoke execute_all_close_hooks instead of
48613         _gl_close_fd_maybe_socket.
48614         * lib/sockets.c: Include close-hook.h, w32sock.h.
48615         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48616         (close_sockets_hook): New variable.
48617         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48618         (gl_sockets_cleanup): Unregister it.
48619         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48620         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48621         * modules/close-hook: New file.
48622         * modules/close (Files): Remove lib/w32sock.h.
48623         (Depends-on): Add close-hook.
48624         (Link): Remove section.
48625         * modules/sockets (Files): Add lib/w32sock.h.
48626         (Depends-on): Add close-hook.
48627         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48628         invocation.
48629         * NEWS: Mention that LIB_CLOSE is gone.
48630
48631 2009-03-23  Eric Blake  <ebb9@byu.net>
48632
48633         signal-tests: test previous patch
48634         * tests/test-signal.c: New file.
48635         * modules/signal-tests: Likewise.
48636
48637         signal.h: always support 'volatile sig_atomic_t'
48638         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48639         (gl_SIGNAL_H_DEFAULTS): Add a default.
48640         * modules/signal (Makefile.am): Substitute if needed.
48641         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48642         users can blindly add volatile.
48643         * doc/posix-headers/signal.texi (signal.h): Document it.
48644         Reported by Matthew Woehlke.
48645
48646 2009-03-23  Jim Meyering  <meyering@redhat.com>
48647
48648         pathmax: PATH_MAX: use pathconf only when available
48649         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48650         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48651         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48652         This avoids a link failure in a PSP cross-compilation environment
48653         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48654
48655         * lib/vasnprintf.c (divide): Fix typo in comment.
48656
48657 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48658
48659         * gnulib-tool (func_filter_filelist): Fix comment.
48660
48661 2009-03-20  Bruno Haible  <bruno@clisp.org>
48662
48663         Make sockets.h self-contained.
48664         * lib/sockets.c: Include sockets.h first.
48665         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48666
48667 2009-03-19  Eric Blake  <ebb9@byu.net>
48668
48669         doc: mention more functions added in cygwin 1.7.0
48670         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48671         addition.
48672         * doc/posix-functions/log2f.texi: Likewise.
48673
48674 2009-03-19  Jim Meyering  <meyering@redhat.com>
48675
48676         fsusage: avoid syntax error due to statement-before-declaration
48677         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48678         after all declarations.  Reported by Matthew Woehlke in
48679         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48680
48681 2009-03-18  Eric Blake  <ebb9@byu.net>
48682
48683         build-aux/compile: sync from automake
48684         * build-aux/compile: New file, from automake.
48685         * config/srclist.txt: Mention build-aux/compile.
48686
48687 2009-03-17  Bruno Haible  <bruno@clisp.org>
48688
48689         * lib/git-merge-changelog.c: Fix typo in comment.
48690         Reported by Reuben Thomas <rrt@sc3d.org>.
48691
48692 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48693
48694         * m4/regex.m4: update and improve help for
48695         --without-included-regex.
48696
48697 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48698
48699         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48700         failure on missing include files.
48701
48702 2009-03-17  Eric Blake  <ebb9@byu.net>
48703
48704         doc: mention more functions added in cygwin 1.7.0
48705         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48706         addition.
48707         * doc/posix-functions/fwscanf.texi: Likewise.
48708         * doc/posix-functions/swprintf.texi: Likewise.
48709         * doc/posix-functions/swscanf.texi: Likewise.
48710         * doc/posix-functions/vfwprintf.texi: Likewise.
48711         * doc/posix-functions/vfwscanf.texi: Likewise.
48712         * doc/posix-functions/vswprintf.texi: Likewise.
48713         * doc/posix-functions/vswscanf.texi: Likewise.
48714         * doc/posix-functions/vwprintf.texi: Likewise.
48715         * doc/posix-functions/vwscanf.texi: Likewise.
48716         * doc/posix-functions/wcscasecmp.texi: Likewise.
48717         * doc/posix-functions/wcsdup.texi: Likewise.
48718         * doc/posix-functions/wcsftime.texi: Likewise.
48719         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48720         * doc/posix-functions/wprintf.texi: Likewise.
48721         * doc/posix-functions/wscanf.texi: Likewise.
48722         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48723
48724 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48725
48726         maint.mk: really add $(AM_MAKEFLAGS)
48727         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48728         was inadvertently omitted in the last commit.
48729         Spotted by Bruno Haible.
48730
48731         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48732         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48733         $(AM_MAKEFLAGS)' rather than plain `make'.
48734
48735         gnulib-tool: execute $MAKE not make
48736         * gnulib-tool: Default $MAKE to 'make'.
48737         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48738         than make.  Initialize $MAKE in the do-autobuild script.
48739
48740         gnulib-tool: use $MAKE not make in generated files
48741         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48742         make, in generated files.  Initialize $MAKE in the do-autobuild
48743         script.
48744
48745         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48746
48747         GNUmakefile: disable parallelism only for multiple, recursive targets
48748         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48749         additions in the Makefile.
48750         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48751         by Automake.
48752         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48753         are listed on the command line and at least one of them is
48754         listed in $(ALL_RECURSIVE_TARGETS).
48755
48756 2009-03-14  Bruno Haible  <bruno@clisp.org>
48757
48758         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48759         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48760         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48761         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48762         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48763         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48764         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48765         unistr/u8-uctomb.
48766         * modules/unistr/u8-strchr (Depends-on): Likewise.
48767         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48768         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48769         unistr/u16-uctomb.
48770         * modules/unistr/u16-strchr (Depends-on): Likewise.
48771         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48772
48773 2009-03-12  Bruno Haible  <bruno@clisp.org>
48774
48775         Work around select() bug on Interix 3.5.
48776         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48777         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48778         * m4/select.m4: New file.
48779         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48780         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48781         * modules/select (Files): Add m4/select.m4.
48782         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48783         * modules/nanosleep (Depends-on): Add select.
48784         * modules/poll (Depends-on): Likewise.
48785         * doc/posix-functions/select.texi: Mention the Interix bug.
48786         Reported by Markus Duft <mduft@gentoo.org>.
48787
48788         * lib/select.c: Renamed from lib/winsock-select.c.
48789         * modules/select (Files): Add lib/select.c, remove
48790         lib/winsock-select.c.
48791         (configure.ac): Update.
48792
48793 2009-03-12  Jim Meyering  <meyering@redhat.com>
48794
48795         avoid gcc warnings about unused macro definitions
48796         * lib/readtokens.c (STREQ): Remove unused definition.
48797         * lib/xmalloc.c (SIZE_MAX): Likewise.
48798         * lib/openat-die.c (N_): Likewise.
48799         * lib/mountlist.c (SIZE_MAX): Remove definition.
48800         Instead, include <stdint.h>.
48801         * lib/readutmp.c: Likewise.
48802         * modules/readutmp (Depends-on): Add stdint.
48803         * modules/mountlist (Depends-on): Add stdint.
48804         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48805
48806 2009-03-10  Bruno Haible  <bruno@clisp.org>
48807
48808         Tests for module 'mbmemcasecoll'.
48809         * modules/mbmemcasecoll-tests: New file.
48810         * tests/test-mbmemcasecoll1.sh: New file.
48811         * tests/test-mbmemcasecoll2.sh: New file.
48812         * tests/test-mbmemcasecoll3.sh: New file.
48813         * tests/test-mbmemcasecoll.c: New file.
48814
48815         New module 'mbmemcasecoll'.
48816         * lib/mbmemcasecoll.h: New file.
48817         * lib/mbmemcasecoll.c: New file.
48818         * modules/mbmemcasecoll: New file.
48819
48820         * tests/test-mbmemcasecmp.h: New file, extracted from
48821         tests/test-mbmemcasecmp.c.
48822         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48823         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48824         (main): Update.
48825         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48826
48827 2009-03-09  Bruno Haible  <bruno@clisp.org>
48828
48829         Tests for module 'mbmemcasecmp'.
48830         * modules/mbmemcasecmp-tests: New file.
48831         * tests/test-mbmemcasecmp1.sh: New file.
48832         * tests/test-mbmemcasecmp2.sh: New file.
48833         * tests/test-mbmemcasecmp3.sh: New file.
48834         * tests/test-mbmemcasecmp.c: New file.
48835
48836         New module 'mbmemcasecmp'.
48837         * lib/mbmemcasecmp.h: New file.
48838         * lib/mbmemcasecmp.c: New file.
48839         * modules/mbmemcasecmp: New file.
48840
48841 2009-03-09  Bruno Haible  <bruno@clisp.org>
48842
48843         Tests for module 'unicase/ulc-casecoll'.
48844         * modules/unicase/ulc-casecoll-tests: New file.
48845         * tests/unicase/test-ulc-casecoll1.sh: New file.
48846         * tests/unicase/test-ulc-casecoll2.sh: New file.
48847         * tests/unicase/test-ulc-casecoll.c: New file.
48848
48849         New module 'unicase/ulc-casecoll'.
48850         * lib/unicase.h (ulc_casecoll): New declaration.
48851         * lib/unicase/ulc-casecoll.c: New file.
48852         * modules/unicase/ulc-casecoll: New file.
48853
48854         New module 'unicase/ulc-casexfrm'.
48855         * lib/unicase.h (ulc_casexfrm): New declaration.
48856         * lib/unicase/ulc-casexfrm.c: New file.
48857         * modules/unicase/ulc-casexfrm: New file.
48858
48859 2009-03-09  Bruno Haible  <bruno@clisp.org>
48860
48861         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48862         invocations.
48863
48864         * m4/mbscasecmp.m4: Remove file.
48865         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48866         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48867
48868         * m4/mbscasestr.m4: Remove file.
48869         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48870         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48871
48872         * m4/mbschr.m4: Remove file.
48873         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48874         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48875
48876         * m4/mbscspn.m4: Remove file.
48877         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48878         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48879
48880         * m4/mbslen.m4: Remove file.
48881         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48882         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48883
48884         * m4/mbsncasecmp.m4: Remove file.
48885         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48886         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48887
48888         * m4/mbsnlen.m4: Remove file.
48889         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48890         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48891
48892         * m4/mbspbrk.m4: Remove file.
48893         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48894         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48895
48896         * m4/mbspcasecmp.m4: Remove file.
48897         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48898         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48899
48900         * m4/mbsrchr.m4: Remove file.
48901         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48902         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48903
48904         * m4/mbssep.m4: Remove file.
48905         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48906         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48907
48908         * m4/mbsspn.m4: Remove file.
48909         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48910         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48911
48912         * m4/mbsstr.m4: Remove file.
48913         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48914         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48915
48916         * m4/mbstok_r.m4: Remove file.
48917         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48918         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48919
48920         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48921
48922         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48923         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48924
48925         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48926
48927 2009-03-08  Bruno Haible  <bruno@clisp.org>
48928
48929         Tests for module 'unicase/ulc-casecmp'.
48930         * modules/unicase/ulc-casecmp-tests: New file.
48931         * tests/unicase/test-ulc-casecmp1.sh: New file.
48932         * tests/unicase/test-ulc-casecmp2.sh: New file.
48933         * tests/unicase/test-ulc-casecmp.c: New file.
48934
48935         New module 'unicase/ulc-casecmp'.
48936         * lib/unicase.h (ulc_casecmp): New declaration.
48937         * lib/unicase/ulc-casecmp.c: New file.
48938         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48939         'const SRC_UNIT *'.
48940         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48941         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48942         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48943         * modules/unicase/ulc-casecmp: New file.
48944
48945         Tests for module 'unicase/u32-is-cased'.
48946         * modules/unicase/u32-is-cased-tests: New file.
48947         * tests/unicase/test-u32-is-cased.c: New file.
48948
48949         Tests for module 'unicase/u16-is-cased'.
48950         * modules/unicase/u16-is-cased-tests: New file.
48951         * tests/unicase/test-u16-is-cased.c: New file.
48952
48953         Tests for module 'unicase/u8-is-cased'.
48954         * modules/unicase/u8-is-cased-tests: New file.
48955         * tests/unicase/test-u8-is-cased.c: New file.
48956         * tests/unicase/test-is-cased.h: New file.
48957
48958         New module 'unicase/u32-is-cased'.
48959         * lib/unicase/u32-is-cased.c: New file.
48960         * modules/unicase/u32-is-cased: New file.
48961
48962         New module 'unicase/u16-is-cased'.
48963         * lib/unicase/u16-is-cased.c: New file.
48964         * modules/unicase/u16-is-cased: New file.
48965
48966         New module 'unicase/u8-is-cased'.
48967         * lib/unicase/u8-is-cased.c: New file.
48968         * lib/unicase/u-is-cased.h: New file.
48969         * modules/unicase/u8-is-cased: New file.
48970
48971         Tests for module 'unicase/u32-is-casefolded'.
48972         * modules/unicase/u32-is-casefolded-tests: New file.
48973         * tests/unicase/test-u32-is-casefolded.c: New file.
48974
48975         Tests for module 'unicase/u16-is-casefolded'.
48976         * modules/unicase/u16-is-casefolded-tests: New file.
48977         * tests/unicase/test-u16-is-casefolded.c: New file.
48978
48979         Tests for module 'unicase/u8-is-casefolded'.
48980         * modules/unicase/u8-is-casefolded-tests: New file.
48981         * tests/unicase/test-u8-is-casefolded.c: New file.
48982         * tests/unicase/test-is-casefolded.h: New file.
48983
48984         New module 'unicase/u32-is-casefolded'.
48985         * lib/unicase/u32-is-casefolded.c: New file.
48986         * modules/unicase/u32-is-casefolded: New file.
48987
48988         New module 'unicase/u16-is-casefolded'.
48989         * lib/unicase/u16-is-casefolded.c: New file.
48990         * modules/unicase/u16-is-casefolded: New file.
48991
48992         New module 'unicase/u8-is-casefolded'.
48993         * lib/unicase/u8-is-casefolded.c: New file.
48994         * modules/unicase/u8-is-casefolded: New file.
48995
48996         Tests for module 'unicase/u32-is-titlecase'.
48997         * modules/unicase/u32-is-titlecase-tests: New file.
48998         * tests/unicase/test-u32-is-titlecase.c: New file.
48999
49000         Tests for module 'unicase/u16-is-titlecase'.
49001         * modules/unicase/u16-is-titlecase-tests: New file.
49002         * tests/unicase/test-u16-is-titlecase.c: New file.
49003
49004         Tests for module 'unicase/u8-is-titlecase'.
49005         * modules/unicase/u8-is-titlecase-tests: New file.
49006         * tests/unicase/test-u8-is-titlecase.c: New file.
49007         * tests/unicase/test-is-titlecase.h: New file.
49008
49009         New module 'unicase/u32-is-titlecase'.
49010         * lib/unicase/u32-is-titlecase.c: New file.
49011         * modules/unicase/u32-is-titlecase: New file.
49012
49013         New module 'unicase/u16-is-titlecase'.
49014         * lib/unicase/u16-is-titlecase.c: New file.
49015         * modules/unicase/u16-is-titlecase: New file.
49016
49017         New module 'unicase/u8-is-titlecase'.
49018         * lib/unicase/u8-is-titlecase.c: New file.
49019         * modules/unicase/u8-is-titlecase: New file.
49020
49021         Tests for module 'unicase/u32-is-lowercase'.
49022         * modules/unicase/u32-is-lowercase-tests: New file.
49023         * tests/unicase/test-u32-is-lowercase.c: New file.
49024
49025         Tests for module 'unicase/u16-is-lowercase'.
49026         * modules/unicase/u16-is-lowercase-tests: New file.
49027         * tests/unicase/test-u16-is-lowercase.c: New file.
49028
49029         Tests for module 'unicase/u8-is-lowercase'.
49030         * modules/unicase/u8-is-lowercase-tests: New file.
49031         * tests/unicase/test-u8-is-lowercase.c: New file.
49032         * tests/unicase/test-is-lowercase.h: New file.
49033
49034         New module 'unicase/u32-is-lowercase'.
49035         * lib/unicase/u32-is-lowercase.c: New file.
49036         * modules/unicase/u32-is-lowercase: New file.
49037
49038         New module 'unicase/u16-is-lowercase'.
49039         * lib/unicase/u16-is-lowercase.c: New file.
49040         * modules/unicase/u16-is-lowercase: New file.
49041
49042         New module 'unicase/u8-is-lowercase'.
49043         * lib/unicase/u8-is-lowercase.c: New file.
49044         * modules/unicase/u8-is-lowercase: New file.
49045
49046         Tests for module 'unicase/u32-is-uppercase'.
49047         * modules/unicase/u32-is-uppercase-tests: New file.
49048         * tests/unicase/test-u32-is-uppercase.c: New file.
49049
49050         Tests for module 'unicase/u16-is-uppercase'.
49051         * modules/unicase/u16-is-uppercase-tests: New file.
49052         * tests/unicase/test-u16-is-uppercase.c: New file.
49053
49054         Tests for module 'unicase/u8-is-uppercase'.
49055         * modules/unicase/u8-is-uppercase-tests: New file.
49056         * tests/unicase/test-u8-is-uppercase.c: New file.
49057         * tests/unicase/test-is-uppercase.h: New file.
49058
49059         New module 'unicase/u32-is-uppercase'.
49060         * lib/unicase/u32-is-uppercase.c: New file.
49061         * modules/unicase/u32-is-uppercase: New file.
49062
49063         New module 'unicase/u16-is-uppercase'.
49064         * lib/unicase/u16-is-uppercase.c: New file.
49065         * modules/unicase/u16-is-uppercase: New file.
49066
49067         New module 'unicase/u8-is-uppercase'.
49068         * lib/unicase/u8-is-uppercase.c: New file.
49069         * modules/unicase/u8-is-uppercase: New file.
49070
49071         New module 'unicase/u32-is-invariant'.
49072         * lib/unicase/u32-is-invariant.c: New file.
49073         * modules/unicase/u32-is-invariant: New file.
49074
49075         New module 'unicase/u16-is-invariant'.
49076         * lib/unicase/u16-is-invariant.c: New file.
49077         * modules/unicase/u16-is-invariant: New file.
49078
49079         New module 'unicase/u8-is-invariant'.
49080         * lib/unicase/u8-is-invariant.c: New file.
49081         * lib/unicase/invariant.h: New file.
49082         * lib/unicase/u-is-invariant.h: New file.
49083         * modules/unicase/u8-is-invariant: New file.
49084
49085         Tests for module 'unicase/u32-casecoll'.
49086         * modules/unicase/u32-casecoll-tests: New file.
49087         * tests/unicase/test-u32-casecoll.c: New file.
49088
49089         Tests for module 'unicase/u16-casecoll'.
49090         * modules/unicase/u16-casecoll-tests: New file.
49091         * tests/unicase/test-u16-casecoll.c: New file.
49092
49093         Tests for module 'unicase/u8-casecoll'.
49094         * modules/unicase/u8-casecoll-tests: New file.
49095         * tests/unicase/test-u8-casecoll.c: New file.
49096
49097         New module 'unicase/u32-casecoll'.
49098         * lib/unicase/u32-casecoll.c: New file.
49099         * modules/unicase/u32-casecoll: New file.
49100
49101         New module 'unicase/u16-casecoll'.
49102         * lib/unicase/u16-casecoll.c: New file.
49103         * modules/unicase/u16-casecoll: New file.
49104
49105         New module 'unicase/u8-casecoll'.
49106         * lib/unicase/u8-casecoll.c: New file.
49107         * lib/unicase/u-casecoll.h: New file.
49108         * modules/unicase/u8-casecoll: New file.
49109
49110         New module 'unicase/u32-casexfrm'.
49111         * lib/unicase/u32-casexfrm.c: New file.
49112         * modules/unicase/u32-casexfrm: New file.
49113
49114         New module 'unicase/u16-casexfrm'.
49115         * lib/unicase/u16-casexfrm.c: New file.
49116         * modules/unicase/u16-casexfrm: New file.
49117
49118         New module 'unicase/u8-casexfrm'.
49119         * lib/unicase/u8-casexfrm.c: New file.
49120         * lib/unicase/u-casexfrm.h: New file.
49121         * modules/unicase/u8-casexfrm: New file.
49122
49123         Tests for module 'unicase/u32-casecmp'.
49124         * modules/unicase/u32-casecmp-tests: New file.
49125         * tests/unicase/test-u32-casecmp.c: New file.
49126
49127         Tests for module 'unicase/u16-casecmp'.
49128         * modules/unicase/u16-casecmp-tests: New file.
49129         * tests/unicase/test-u16-casecmp.c: New file.
49130
49131         Tests for module 'unicase/u8-casecmp'.
49132         * modules/unicase/u8-casecmp-tests: New file.
49133         * tests/unicase/test-u8-casecmp.c: New file.
49134         * tests/unicase/test-casecmp.h: New file.
49135
49136         New module 'unicase/u32-casecmp'.
49137         * lib/unicase/u32-casecmp.c: New file.
49138         * modules/unicase/u32-casecmp: New file.
49139
49140         New module 'unicase/u16-casecmp'.
49141         * lib/unicase/u16-casecmp.c: New file.
49142         * modules/unicase/u16-casecmp: New file.
49143
49144         New module 'unicase/u8-casecmp'.
49145         * lib/unicase/u8-casecmp.c: New file.
49146         * lib/unicase/u-casecmp.h: New file.
49147         * modules/unicase/u8-casecmp: New file.
49148
49149         Tests for module 'unicase/u32-casefold'.
49150         * modules/unicase/u32-casefold-tests: New file.
49151         * tests/unicase/test-u32-casefold.c: New file.
49152
49153         Tests for module 'unicase/u16-casefold'.
49154         * modules/unicase/u16-casefold-tests: New file.
49155         * tests/unicase/test-u16-casefold.c: New file.
49156
49157         Tests for module 'unicase/u8-casefold'.
49158         * modules/unicase/u8-casefold-tests: New file.
49159         * tests/unicase/test-u8-casefold.c: New file.
49160
49161         New module 'unicase/u32-casefold'.
49162         * lib/unicase/u32-casefold.c: New file.
49163         * modules/unicase/u32-casefold: New file.
49164
49165         New module 'unicase/u16-casefold'.
49166         * lib/unicase/u16-casefold.c: New file.
49167         * modules/unicase/u16-casefold: New file.
49168
49169         New module 'unicase/u8-casefold'.
49170         * lib/unicase/u8-casefold.c: New file.
49171         * lib/unicase/u-casefold.h: New file.
49172         * modules/unicase/u8-casefold: New file.
49173
49174         New module 'unicase/tocasefold'.
49175         * lib/unicase/casefold.h: New file.
49176         * lib/unicase/tocasefold.c: New file.
49177         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49178         * modules/unicase/tocasefold: New file.
49179
49180         Tests for module 'unicase/u32-totitle'.
49181         * modules/unicase/u32-totitle-tests: New file.
49182         * tests/unicase/test-u32-totitle.c: New file.
49183
49184         Tests for module 'unicase/u16-totitle'.
49185         * modules/unicase/u16-totitle-tests: New file.
49186         * tests/unicase/test-u16-totitle.c: New file.
49187
49188         Tests for module 'unicase/u8-totitle'.
49189         * modules/unicase/u8-totitle-tests: New file.
49190         * tests/unicase/test-u8-totitle.c: New file.
49191
49192         New module 'unicase/u32-totitle'.
49193         * lib/unicase/u32-totitle.c: New file.
49194         * modules/unicase/u32-totitle: New file.
49195
49196         New module 'unicase/u16-totitle'.
49197         * lib/unicase/u16-totitle.c: New file.
49198         * modules/unicase/u16-totitle: New file.
49199
49200         New module 'unicase/u8-totitle'.
49201         * lib/unicase/u8-totitle.c: New file.
49202         * lib/unicase/u-totitle.h: New file.
49203         * modules/unicase/u8-totitle: New file.
49204
49205         Tests for module 'unicase/u32-tolower'.
49206         * modules/unicase/u32-tolower-tests: New file.
49207         * tests/unicase/test-u32-tolower.c: New file.
49208
49209         Tests for module 'unicase/u16-tolower'.
49210         * modules/unicase/u16-tolower-tests: New file.
49211         * tests/unicase/test-u16-tolower.c: New file.
49212
49213         Tests for module 'unicase/u8-tolower'.
49214         * modules/unicase/u8-tolower-tests: New file.
49215         * tests/unicase/test-u8-tolower.c: New file.
49216
49217         New module 'unicase/u32-tolower'.
49218         * lib/unicase/u32-tolower.c: New file.
49219         * modules/unicase/u32-tolower: New file.
49220
49221         New module 'unicase/u16-tolower'.
49222         * lib/unicase/u16-tolower.c: New file.
49223         * modules/unicase/u16-tolower: New file.
49224
49225         New module 'unicase/u8-tolower'.
49226         * lib/unicase/u8-tolower.c: New file.
49227         * modules/unicase/u8-tolower: New file.
49228
49229         Tests for module 'unicase/u32-toupper'.
49230         * modules/unicase/u32-toupper-tests: New file.
49231         * tests/unicase/test-u32-toupper.c: New file.
49232
49233         Tests for module 'unicase/u16-toupper'.
49234         * modules/unicase/u16-toupper-tests: New file.
49235         * tests/unicase/test-u16-toupper.c: New file.
49236
49237         Tests for module 'unicase/u8-toupper'.
49238         * modules/unicase/u8-toupper-tests: New file.
49239         * tests/unicase/test-u8-toupper.c: New file.
49240
49241         New module 'unicase/u32-toupper'.
49242         * lib/unicase/u32-toupper.c: New file.
49243         * modules/unicase/u32-toupper: New file.
49244
49245         New module 'unicase/u16-toupper'.
49246         * lib/unicase/u16-toupper.c: New file.
49247         * modules/unicase/u16-toupper: New file.
49248
49249         New module 'unicase/u8-toupper'.
49250         * lib/unicase/u8-toupper.c: New file.
49251         * modules/unicase/u8-toupper: New file.
49252
49253         New module 'unicase/u32-casemap'.
49254         * lib/unicase/u32-casemap.c: New file.
49255         * modules/unicase/u32-casemap: New file.
49256
49257         New module 'unicase/u16-casemap'.
49258         * lib/unicase/u16-casemap.c: New file.
49259         * modules/unicase/u16-casemap: New file.
49260
49261         New module 'unicase/u8-casemap'.
49262         * lib/unicase/unicasemap.h: New file.
49263         * lib/unicase/u8-casemap.c: New file.
49264         * lib/unicase/u-casemap.h: New file.
49265         * modules/unicase/u8-casemap: New file.
49266
49267         New module 'unicase/special-casing'.
49268         * lib/unicase/special-casing.h: New file.
49269         * lib/unicase/special-casing.c: New file.
49270         * lib/unicase/special-casing-table.gperf: New file, generated by
49271         gen-uni-tables.c.
49272         * modules/unicase/special-casing: New file.
49273
49274         Tests for module 'unicase/locale-language'.
49275         * modules/unicase/locale-language-tests: New file.
49276         * tests/unicase/test-locale-language.sh: New file.
49277         * tests/unicase/test-locale-language.c: New file.
49278
49279         New module 'unicase/locale-language'.
49280         * lib/unicase/locale-language.c: New file.
49281         * lib/unicase/locale-languages.gperf: New file.
49282         * modules/unicase/locale-language: New file.
49283
49284         Generate more tables for case conversion and case folding.
49285         * lib/gen-uni-tables.c (SCC_*): New enum items.
49286         (struct special_casing_rule): New type.
49287         (casing_rules, num_casing_rules, allocated_casing_rules): New
49288         variables.
49289         (add_casing_rule, fill_casing_rules): New functions.
49290         (struct casefold_rule): New type.
49291         (casefolding_rules, num_casefolding_rules,
49292         allocated_casefolding_rules): New variables.
49293         (fill_casefolding_rules): New function.
49294         (unicode_casefold): New variable.
49295         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49296         sort_casing_rules, output_casing_rules): New functions.
49297         (main): Accept to more arguments: SpecialCasing.txt and
49298         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49299         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49300         Output mapping for casefolding.
49301
49302         * lib/unicase.h: Include stdbool.h, uninorm.h.
49303         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49304         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49305         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49306         arguments.
49307         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49308         resultp arguments.
49309         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49310         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49311         resultp arguments.
49312         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49313         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49314         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49315         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49316         declarations.
49317         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49318
49319 2009-03-08  Bruno Haible  <bruno@clisp.org>
49320
49321         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49322         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49323         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49324         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49325
49326 2009-03-07  Bruno Haible  <bruno@clisp.org>
49327
49328         Adjust u*_normcmp, u*_normcoll API.
49329         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49330         u16_normcoll, u32_normcoll): Change failure conventions.
49331         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49332         errno and return -1.
49333         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49334
49335 2009-03-07  Bruno Haible  <bruno@clisp.org>
49336
49337         Tests for module 'uninorm/u32-normcoll'.
49338         * modules/uninorm/u32-normcoll-tests: New file.
49339         * tests/uninorm/test-u32-normcoll.c: New file.
49340
49341         Tests for module 'uninorm/u16-normcoll'.
49342         * modules/uninorm/u16-normcoll-tests: New file.
49343         * tests/uninorm/test-u16-normcoll.c: New file.
49344
49345         Tests for module 'uninorm/u8-normcoll'.
49346         * modules/uninorm/u8-normcoll-tests: New file.
49347         * tests/uninorm/test-u8-normcoll.c: New file.
49348
49349 2009-03-07  Bruno Haible  <bruno@clisp.org>
49350
49351         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49352         tests/uninorm/test-u32-normcmp.c.
49353         * tests/uninorm/test-u32-normcmp.c: Include it.
49354         (test_nonascii): New function, extracted from main. Add some more
49355         tests.
49356         (main): Invoke test_ascii and test_nonascii.
49357         * modules/uninorm/u32-normcmp-tests (Files): Add
49358         tests/uninorm/test-u32-normcmp.h.
49359         (Depends-on): Remove uninorm/u32-normcmp.
49360
49361         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49362         tests/uninorm/test-u16-normcmp.c.
49363         * tests/uninorm/test-u16-normcmp.c: Include it.
49364         (test_nonascii): New function, extracted from main. Add some more
49365         tests.
49366         (main): Invoke test_ascii and test_nonascii.
49367         * modules/uninorm/u16-normcmp-tests (Files): Add
49368         tests/uninorm/test-u16-normcmp.h.
49369         (Depends-on): Remove uninorm/u16-normcmp.
49370
49371         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49372         tests/uninorm/test-u8-normcmp.c.
49373         * tests/uninorm/test-u8-normcmp.c: Include it.
49374         (test_nonascii): New function, extracted from main. Add some more
49375         tests.
49376         (main): Invoke test_ascii and test_nonascii.
49377         * modules/uninorm/u8-normcmp-tests (Files): Add
49378         tests/uninorm/test-u8-normcmp.h.
49379         (Depends-on): Remove uninorm/u8-normcmp.
49380
49381 2009-03-07  Bruno Haible  <bruno@clisp.org>
49382
49383         New module 'uninorm/u32-normcoll'.
49384         * lib/uninorm/u32-normcoll.c: New file.
49385         * modules/uninorm/u32-normcoll: New file.
49386
49387         New module 'uninorm/u16-normcoll'.
49388         * lib/uninorm/u16-normcoll.c: New file.
49389         * modules/uninorm/u16-normcoll: New file.
49390
49391         New module 'uninorm/u8-normcoll'.
49392         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49393         declarations.
49394         * lib/uninorm/u8-normcoll.c: New file.
49395         * lib/uninorm/u-normcoll.h: New file.
49396         * modules/uninorm/u8-normcoll: New file.
49397
49398         New module 'uninorm/u32-normxfrm'.
49399         * lib/uninorm/u32-normxfrm.c: New file.
49400         * modules/uninorm/u32-normxfrm: New file.
49401
49402         New module 'uninorm/u16-normxfrm'.
49403         * lib/uninorm/u16-normxfrm.c: New file.
49404         * modules/uninorm/u16-normxfrm: New file.
49405
49406         New module 'uninorm/u8-normxfrm'.
49407         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49408         declarations.
49409         * lib/uninorm/u8-normxfrm.c: New file.
49410         * lib/uninorm/u-normxfrm.h: New file.
49411         * modules/uninorm/u8-normxfrm: New file.
49412
49413 2009-03-07  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49416         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49417         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49418
49419 2009-03-07  Bruno Haible  <bruno@clisp.org>
49420
49421         New module 'memxfrm'.
49422         * lib/memxfrm.h: New file.
49423         * lib/memxfrm.c: New file.
49424         * modules/memxfrm: New file.
49425
49426 2009-03-07  Bruno Haible  <bruno@clisp.org>
49427
49428         New module 'memcmp2'.
49429         * lib/memcmp2.h: New file.
49430         * lib/memcmp2.c: New file.
49431         * modules/memcmp2: New file.
49432
49433 2009-03-07  Bruno Haible  <bruno@clisp.org>
49434
49435         Tests for module 'uninorm/decomposing-form'.
49436         * modules/uninorm/decomposing-form-tests: New file.
49437         * tests/uninorm/test-decomposing-form.c: New file.
49438
49439         New module 'uninorm/decomposing-form'.
49440         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49441         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49442         Add 'decomposing_variant' field.
49443         * lib/uninorm/decomposing-form.c: New file.
49444         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49445         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49446         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49447         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49448         * modules/uninorm/decomposing-form: New file.
49449         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49450         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49451
49452 2009-03-07  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49455         strings.
49456
49457 2009-03-06  Bruno Haible  <bruno@clisp.org>
49458
49459         Tests for module 'uninorm/u32-normcmp'.
49460         * tests/uninorm/test-u32-normcmp.c: New file.
49461         * modules/uninorm/u32-normcmp-tests: New file.
49462
49463         Tests for module 'uninorm/u16-normcmp'.
49464         * tests/uninorm/test-u16-normcmp.c: New file.
49465         * modules/uninorm/u16-normcmp-tests: New file.
49466
49467         Tests for module 'uninorm/u8-normcmp'.
49468         * tests/uninorm/test-u8-normcmp.c: New file.
49469         * modules/uninorm/u8-normcmp-tests: New file.
49470
49471         New module 'uninorm/u32-normcmp'.
49472         * lib/uninorm/u32-normcmp.c: New file.
49473         * modules/uninorm/u32-normcmp: New file.
49474
49475         New module 'uninorm/u16-normcmp'.
49476         * lib/uninorm/u16-normcmp.c: New file.
49477         * modules/uninorm/u16-normcmp: New file.
49478
49479         New module 'uninorm/u8-normcmp'.
49480         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49481         declarations.
49482         * lib/uninorm/u8-normcmp.c: New file.
49483         * lib/uninorm/u-normcmp.h: New file.
49484         * modules/uninorm/u8-normcmp: New file.
49485
49486 2009-03-06  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49489         Reported by Eric Blake.
49490
49491 2009-03-06  Eric Blake  <ebb9@byu.net>
49492             Bruno Haible  <bruno@clisp.org>
49493
49494         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49495         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49496         condition.
49497         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49498         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49499         condition.
49500         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49501
49502 2009-03-06  Eric Blake  <ebb9@byu.net>
49503
49504         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49505         to avoid compiler warnings.
49506         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49507
49508 2009-03-05  Bruno Haible  <bruno@clisp.org>
49509
49510         * tests/test-ftell.c (main): Disable test beyond end of file on
49511         FreeMiNT.
49512         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49513
49514 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49515
49516         * lib/filevercmp.c: Move hidden files up in ordering.
49517         * tests/test-filevercmp.c: Add tests for hidden files.
49518
49519 2009-03-04  Bruno Haible  <bruno@clisp.org>
49520
49521         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49522         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49523         AM_CFLAGS.
49524         Reported by Simon Josefsson.
49525
49526 2009-03-03  Bruno Haible  <bruno@clisp.org>
49527
49528         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49529         Reported by Simon Josefsson.
49530
49531         * doc/ld-version-script.texi: Update node reference.
49532
49533 2009-03-03  Bruno Haible  <bruno@clisp.org>
49534
49535         * modules/visibility (License): Change to 'unlimited'.
49536         Suggested by Simon Josefsson.
49537
49538 2009-03-03  Jim Meyering  <meyering@redhat.com>
49539
49540         unlinkdir: cannot_unlink_dir may modify process state
49541         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49542         it's neither thread-safe nor appropriate for use in a library.
49543
49544 2009-03-03  Eric Blake  <ebb9@byu.net>
49545
49546         test-closein: silence test under Darwin
49547         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49548         care if it dies from EPIPE or EBADF.
49549
49550 2009-03-03  Bruno Haible  <bruno@clisp.org>
49551
49552         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49553         earlier.
49554         * doc/visibility.texi: Fix @node and @section.
49555
49556 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49557
49558         * doc/gnulib.texi: Link to sections for ld version script and
49559         visibility.
49560         * doc/visibility.texi: Add @node and @section.
49561         * modules/ld-version-script: New module.
49562         * m4/ld-version-script.m4: New file.
49563         * doc/ld-version-script.texi: New file.
49564
49565 2009-03-02  David Lutterkort  <lutter@redhat.com>
49566
49567         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49569
49570 2009-03-02  Bruno Haible  <bruno@clisp.org>
49571
49572         * doc/visibility.texi: Mention libtool's -export-symbols option.
49573
49574 2009-03-02  Jim Meyering  <meyering@redhat.com>
49575
49576         announce-gen: new option: --no-print-checksums
49577         * build-aux/announce-gen (usage): Describe it.
49578         (print_checksums): Print a newline here, not in the [*] footnote.
49579         (main): Honor it.
49580
49581 2009-03-01  Bruno Haible  <bruno@clisp.org>
49582
49583         Use socklen_t in the native Windows replacements prototypes.
49584         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49585         instead of 'int'.
49586         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49587         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49588         * modules/getsockopt (Depends-on): Add socklen.
49589         * modules/setsockopt (Depends-on): Add socklen.
49590
49591 2009-03-01  Bruno Haible  <bruno@clisp.org>
49592
49593         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49594         least 4.2.
49595
49596 2009-03-01  Eric Blake  <ebb9@byu.net>
49597             Bruno Haible  <bruno@clisp.org>
49598
49599         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49600         error messages.
49601         * lib/wait-process.c (wait_subprocess): Omit error message about
49602         deadly signal sent to the child of termsigp != NULL.
49603
49604 2009-03-01  Eric Blake  <ebb9@byu.net>
49605
49606         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49607
49608 2009-03-01  Bruno Haible  <bruno@clisp.org>
49609
49610         Avoid a gcc warning.
49611         * tests/test-sched.c (b): Make global.
49612         Reported by Eric Blake.
49613
49614 2009-01-19  Martin Lambers  <marlam@marlam.de>
49615
49616         Provide POSIX semantics for socket timeout options on W32.
49617         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49618         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49619         * modules/setsockopt: Depend on sys_time module for struct timeval.
49620         * modules/getsockopt: Depend on sys_time module for struct timeval.
49621
49622 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49623
49624         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49625         __USE_GNU, for consistency with netdb.in.h.
49626         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49627
49628 2009-03-01  Bruno Haible  <bruno@clisp.org>
49629
49630         More support for FreeMiNT.
49631         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49632         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49633
49634 2009-03-01  Bruno Haible  <bruno@clisp.org>
49635
49636         More support for FreeMiNT.
49637         * lib/fpurge.c (fpurge): Correct last commit.
49638         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49639
49640 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49641
49642         Fix unportable awk script in vc-list-files.
49643         * build-aux/vc-list-files: In the replacement awk script, use
49644         substr with a second argument of 1, not zero.
49645         Report by Simon Josefsson.
49646
49647 2009-02-28  Bruno Haible  <bruno@clisp.org>
49648
49649         More support for FreeMiNT.
49650         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49651         to FreeMiNT today.
49652         * lib/fwriting.c (fwriting): Likewise.
49653         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49654
49655 2009-02-28  Bruno Haible  <bruno@clisp.org>
49656
49657         * tests/test-freadseek.c (main): Disable test beyond end of file on
49658         FreeMiNT.
49659         * tests/test-ftello.c (main): Likewise.
49660         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49661
49662 2009-02-28  Bruno Haible  <bruno@clisp.org>
49663
49664         Add tentative support for FreeMiNT.
49665         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49666         * lib/fpurge.c (fpurge): Likewise.
49667         * lib/freadable.c (freadable): Likewise.
49668         * lib/freading.c (freading): Likewise.
49669         * lib/freadptr.c (freadptr): Likewise.
49670         * lib/freadseek.c (freadptrinc): Likewise.
49671         * lib/fseeko.c (rpl_fseeko): Likewise.
49672         * lib/fseterr.c (fseterr): Likewise.
49673         * lib/fwritable.c (fwritable): Likewise.
49674         * lib/fwriting.c (fwriting): Likewise.
49675         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49676         Hourihane.
49677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49678
49679 2009-02-28  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49682         SIGCHLD.
49683         Reported by Jim Meyering.
49684
49685 2009-02-28  Bruno Haible  <bruno@clisp.org>
49686
49687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49688         Mention the results of these tests on various platforms.
49689         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49690         order.
49691         * doc/posix-functions/printf.texi: Likewise.
49692         * doc/posix-functions/snprintf.texi: Likewise.
49693         * doc/posix-functions/sprintf.texi: Likewise.
49694         * doc/posix-functions/vfprintf.texi: Likewise.
49695         * doc/posix-functions/vprintf.texi: Likewise.
49696         * doc/posix-functions/vsnprintf.texi: Likewise.
49697         * doc/posix-functions/vsprintf.texi: Likewise.
49698         * doc/glibc-functions/obstack_printf.texi: Likewise.
49699         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49700
49701 2009-02-28  Bruno Haible  <bruno@clisp.org>
49702
49703         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49704         Reported by Loïc Minier <lool@dooz.org>.
49705
49706 2009-02-27  Bruno Haible  <bruno@clisp.org>
49707
49708         * gnulib-tool (func_import): Make the sed expression used to create the
49709         sed script for updating the .gitignore file POSIX compliant.
49710         Reported by Eric Blake.
49711
49712 2009-02-27  Bruno Haible  <bruno@clisp.org>
49713
49714         * gnulib-tool (sed): Don't alias as "sed --posix".
49715         Reported by Eric Blake.
49716
49717 2009-02-27  Bruno Haible  <bruno@clisp.org>
49718
49719         Avoid test link errors.
49720         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49721         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49722         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49723         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49725
49726 2009-02-27  Bruno Haible  <bruno@clisp.org>
49727
49728         Avoid spurious "(cached)" in configure output.
49729         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49730         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49731         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49732         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49734         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49735         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49736         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49737         Reported by Eric Blake.
49738
49739 2009-02-27  Eric Blake  <ebb9@byu.net>
49740
49741         printf: fix regression in previous patch
49742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49743
49744 2009-02-27  Bruno Haible  <bruno@clisp.org>
49745
49746         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49747         value.
49748         * lib/stdint.in.h: Likewise.
49749         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49750
49751 2009-02-27  Eric Blake  <ebb9@byu.net>
49752
49753         doc: mention more functions added in cygwin 1.7.0
49754         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49755         addition.
49756         * doc/posix-functions/open_wmemstream.texi: Likewise.
49757         * doc/posix-functions/wcsnlen.texi: Likewise.
49758         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49759         * doc/posix-functions/wcstod.texi: Likewise.
49760         * doc/posix-functions/wcstof.texi: Likewise.
49761         * doc/posix-functions/wcstoimax.texi: Likewise.
49762         * doc/posix-functions/wcstok.texi: Likewise.
49763         * doc/posix-functions/wcstoumax.texi: Likewise.
49764
49765         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49767         * doc/posix-functions/fprintf.texi: Update.
49768         * doc/posix-functions/printf.texi: Update.
49769         * doc/posix-functions/snprintf.texi: Update.
49770         * doc/posix-functions/sprintf.texi: Update.
49771         * doc/posix-functions/vfprintf.texi: Update.
49772         * doc/posix-functions/vprintf.texi: Update.
49773         * doc/posix-functions/vsnprintf.texi: Update.
49774         * doc/posix-functions/vsprintf.texi: Update.
49775         * doc/glibc-functions/obstack_printf.texi: Update.
49776         * doc/glibc-functions/obstack_vprintf.texi: Update.
49777
49778 2009-02-26  Eric Blake  <ebb9@byu.net>
49779
49780         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49781         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49782         compilation bug by using runtime conversion.
49783         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49785         * modules/ceill-tests (Files): Use nan.h.
49786         * modules/floorl-tests (Files): Likewise.
49787         * modules/frexpl-tests (Files): Likewise.
49788         * modules/isnanl-tests (Files): Likewise.
49789         * modules/ldexpl-tests (Files): Likewise.
49790         * modules/roundl-tests (Files): Likewise.
49791         * modules/truncl-tests (Files): Likewise.
49792         * tests/test-ceill.c (main): Use a working NaN.
49793         * tests/test-floorl.c (main): Likewise.
49794         * tests/test-frexpl.c (main): Likewise.
49795         * tests/test-isnan.c (test_long_double): Likewise.
49796         * tests/test-isnanl.h (main): Likewise.
49797         * tests/test-ldexpl.h (main): Likewise.
49798         * tests/test-roundl.h (main): Likewise.
49799         * tests/test-truncl.h (main): Likewise.
49800         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49801
49802 2009-02-26  Eric Blake  <ebb9@byu.net>
49803             Bruno Haible  <bruno@clisp.org>
49804
49805         Work around a *printf bug with %ls on Solaris.
49806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49807         precision is specified, sprintf stops converting the wide string
49808         argument when the number of bytes that have been produced by this
49809         conversion equals or exceeds the precision.
49810         * doc/posix-functions/fprintf.texi: Update.
49811         * doc/posix-functions/printf.texi: Update.
49812         * doc/posix-functions/snprintf.texi: Update.
49813         * doc/posix-functions/sprintf.texi: Update.
49814         * doc/posix-functions/vfprintf.texi: Update.
49815         * doc/posix-functions/vprintf.texi: Update.
49816         * doc/posix-functions/vsnprintf.texi: Update.
49817         * doc/posix-functions/vsprintf.texi: Update.
49818         * doc/glibc-functions/obstack_printf.texi: Update.
49819         * doc/glibc-functions/obstack_vprintf.texi: Update.
49820
49821 2009-02-26  Eric Blake  <ebb9@byu.net>
49822
49823         stdlib: favor compiler check of random.h
49824         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49825         to avoid an ObjC random.h installed by Swarm.
49826
49827 2009-02-26  Bruno Haible  <bruno@clisp.org>
49828
49829         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49830         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49831         Reported by Gary V. Vaughan <gary@gnu.org>.
49832
49833 2009-02-26  Bruno Haible  <bruno@clisp.org>
49834
49835         Fix *printf behaviour regarding the %ls directive.
49836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49837         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49838         NEED_PRINTF_DIRECTIVE_LS.
49839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49840         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49842         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49843         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49844         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49845         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49850         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49854         * doc/posix-functions/fprintf.texi: Update.
49855         * doc/posix-functions/printf.texi: Update.
49856         * doc/posix-functions/snprintf.texi: Update.
49857         * doc/posix-functions/sprintf.texi: Update.
49858         * doc/posix-functions/vfprintf.texi: Update.
49859         * doc/posix-functions/vprintf.texi: Update.
49860         * doc/posix-functions/vsnprintf.texi: Update.
49861         * doc/posix-functions/vsprintf.texi: Update.
49862         * doc/glibc-functions/obstack_printf.texi: Update.
49863         * doc/glibc-functions/obstack_vprintf.texi: Update.
49864         Reported by Eric Blake.
49865
49866 2009-02-25  Bruno Haible  <bruno@clisp.org>
49867
49868         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49869         with known value.
49870         Reported by Gary V. Vaughan <gary@gnu.org>.
49871
49872 2009-02-25  Bruno Haible  <bruno@clisp.org>
49873
49874         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49875         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49876         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49877         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49878         Reported by Gary V. Vaughan <gary@gnu.org>.
49879
49880 2009-02-25  Bruno Haible  <bruno@clisp.org>
49881
49882         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49883         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49884         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49885         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49886         Reported by Gary V. Vaughan <gary@gnu.org>.
49887
49888 2009-02-25  Eric Blake  <ebb9@byu.net>
49889
49890         tests: skip fseek/ftell tests if ungetc is broken
49891         * m4/ungetc.m4: New file.
49892         * modules/fseek-tests: Split test, so ungetc dependency is
49893         separate from rest of test.
49894         * modules/fseeko-tests: Likewise.
49895         * modules/ftell-tests: Likewise.
49896         * modules/ftello-tests: Likewise.
49897         * tests/test-fseek.c (main): Isolate ungetc dependency.
49898         * tests/test-fseeko.c (main): Likewise.
49899         * tests/test-ftell.c (main): Likewise.
49900         * tests/test-ftello.c (main): Likewise.
49901         * tests/test-fseek2.sh: New file.
49902         * tests/test-fseeko2.sh: Likewise.
49903         * tests/test-ftell2.sh: Likewise.
49904         * tests/test-ftello2.sh: Likewise.
49905
49906 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49907
49908         test-getaddrinfo: fix usage of skip return code 77
49909         * tests/test-gettaddrinfo.c: Return skip code 77 only
49910         for first occurrence of skip (4x77 is not 77)
49911
49912 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49913
49914         strtod: avoid C99 decl-after-statement
49915         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49916
49917 2009-02-24  Eric Blake  <ebb9@byu.net>
49918
49919         strtod: detect HP-UX 11.31 bug
49920         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49921         Reported by Gary V. Vaughan.
49922
49923 2009-02-23  Bruno Haible  <bruno@clisp.org>
49924
49925         Fix invalid read past end of memory block.
49926         * lib/vasnprintf.c (DCHAR_SET): Define.
49927         (local_wcslen): Define only when needed.
49928         (local_strnlen, local_wcsnlen): New functions.
49929         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49930         directives that involve a conversion ourselves.
49931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49932         wcsnlen, mbrtowc, wcrtomb.
49933         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49934         * tests/test-vasprintf-posix.c (test_function): Likewise.
49935         * tests/test-snprintf-posix.h (test_function): Likewise.
49936         * tests/test-sprintf-posix.h (test_function): Likewise.
49937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49938
49939 2009-02-22  Bruno Haible  <bruno@clisp.org>
49940
49941         Implement new clarified decomposition of Hangul syllables.
49942         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49943         of type LTV, return only a pairwise decomposition.
49944         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49945         Likewise.
49946         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49947         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49948         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49949
49950 2009-02-22  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49953         zero-length results and shrink excess allocated memory.
49954         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49955         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49956         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49957         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49958         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49959         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49960         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49961         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49962         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49963         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49964         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49965         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49966
49967 2009-02-21  Bruno Haible  <bruno@clisp.org>
49968
49969         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49970         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49971         spaces after a period. Put a space between a macro name and its
49972         argument list. Trivial rewordings.
49973         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49974         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49975         (main): Return 0 explicitly.
49976
49977 2009-02-21  Bruno Haible  <bruno@clisp.org>
49978
49979         Tests for module 'uninorm/filter'.
49980         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49981         * modules/uninorm/filter-tests: New file.
49982
49983         New module 'uninorm/filter'.
49984         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49985         uninorm_filter_flush, uninorm_filter_free): New declarations.
49986         * lib/uninorm/uninorm-filter.c: New file.
49987         * modules/uninorm/filter: New file.
49988
49989 2009-02-21  Bruno Haible  <bruno@clisp.org>
49990
49991         Tests for module 'uninorm/nfkc'.
49992         * tests/uninorm/test-nfkc.c: New file.
49993         * tests/uninorm/test-u8-nfkc.c: New file.
49994         * tests/uninorm/test-u16-nfkc.c: New file.
49995         * tests/uninorm/test-u32-nfkc.c: New file.
49996         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49997         * tests/uninorm/test-u32-nfkc-big.c: New file.
49998         * modules/uninorm/nfkc-tests: New file.
49999
50000         New module 'uninorm/nfkc'.
50001         * lib/uninorm/nfkc.c: New file.
50002         * modules/uninorm/nfkc: New file.
50003
50004         Tests for module 'uninorm/nfkd'.
50005         * tests/uninorm/test-nfkd.c: New file.
50006         * tests/uninorm/test-u8-nfkd.c: New file.
50007         * tests/uninorm/test-u16-nfkd.c: New file.
50008         * tests/uninorm/test-u32-nfkd.c: New file.
50009         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50010         * tests/uninorm/test-u32-nfkd-big.c: New file.
50011         * modules/uninorm/nfkd-tests: New file.
50012
50013         New module 'uninorm/nfkd'.
50014         * lib/uninorm/nfkd.c: New file.
50015         * modules/uninorm/nfkd: New file.
50016
50017         Tests for module 'uninorm/nfc'.
50018         * tests/uninorm/test-nfc.c: New file.
50019         * tests/uninorm/test-u8-nfc.c: New file.
50020         * tests/uninorm/test-u16-nfc.c: New file.
50021         * tests/uninorm/test-u32-nfc.c: New file.
50022         * tests/uninorm/test-u32-nfc-big.sh: New file.
50023         * tests/uninorm/test-u32-nfc-big.c: New file.
50024         * modules/uninorm/nfc-tests: New file.
50025
50026         New module 'uninorm/nfc'.
50027         * lib/uninorm/nfc.c: New file.
50028         * modules/uninorm/nfc: New file.
50029
50030         Tests for module 'uninorm/nfd'.
50031         * tests/uninorm/test-nfd.c: New file.
50032         * tests/uninorm/test-u8-nfd.c: New file.
50033         * tests/uninorm/test-u16-nfd.c: New file.
50034         * tests/uninorm/test-u32-nfd.c: New file.
50035         * tests/uninorm/test-u32-nfd-big.sh: New file.
50036         * tests/uninorm/test-u32-nfd-big.c: New file.
50037         * tests/uninorm/test-u32-normalize-big.h: New file.
50038         * tests/uninorm/test-u32-normalize-big.c: New file.
50039         * tests/uninorm/NormalizationTest.txt: New file, created from
50040         Unicode 5.1.0 NormalizationTest.txt.
50041         * modules/uninorm/nfd-tests: New file.
50042
50043         New module 'uninorm/nfd'.
50044         * lib/uninorm/nfd.c: New file.
50045         * modules/uninorm/nfd: New file.
50046
50047         New module 'uninorm/u32-normalize'.
50048         * lib/uninorm/u32-normalize.c: New file.
50049         * modules/uninorm/u32-normalize: New file.
50050
50051         New module 'uninorm/u16-normalize'.
50052         * lib/uninorm/u16-normalize.c: New file.
50053         * modules/uninorm/u16-normalize: New file.
50054
50055         New module 'uninorm/u8-normalize'.
50056         * lib/uninorm/u8-normalize.c: New file.
50057         * lib/uninorm/normalize-internal.h: New file.
50058         * lib/uninorm/u-normalize-internal.h: New file.
50059         * modules/uninorm/u8-normalize: New file.
50060
50061         New module 'uninorm/decompose-internal'.
50062         * lib/uninorm/decompose-internal.c: New file.
50063         * modules/uninorm/decompose-internal: New file.
50064
50065         Tests for module 'uninorm/composition'.
50066         * tests/uninorm/test-composition.c: New file.
50067         * modules/uninorm/composition-tests: New file.
50068
50069         New module 'uninorm/composition'.
50070         * lib/uninorm/composition.c: New file.
50071         * lib/uninorm/composition-table.gperf: New file, generated by
50072         gen-uni-tables.
50073         * modules/uninorm/composition: New file.
50074
50075         Tests for module 'uninorm/compat-decomposition'.
50076         * tests/uninorm/test-compat-decomposition.c: New file.
50077         * modules/uninorm/compat-decomposition-tests: New file.
50078
50079         New module 'uninorm/compat-decomposition'.
50080         * lib/uninorm/decompose-internal.h: New file.
50081         * lib/uninorm/compat-decomposition.c: New file.
50082         * modules/uninorm/compat-decomposition: New file.
50083
50084         Tests for module 'uninorm/canonical-decomposition'.
50085         * tests/uninorm/test-canonical-decomposition.c: New file.
50086         * modules/uninorm/canonical-decomposition-tests: New file.
50087
50088         New module 'uninorm/canonical-decomposition'.
50089         * lib/uninorm/canonical-decomposition.c: New file.
50090         * modules/uninorm/canonical-decomposition: New file.
50091
50092         Tests for module 'uninorm/decomposition'.
50093         * tests/uninorm/test-decomposition.c: New file.
50094         * modules/uninorm/decomposition-tests: New file.
50095
50096         New module 'uninorm/decomposition'.
50097         * lib/uninorm/decomposition.c: New file.
50098         * modules/uninorm/decomposition: New file.
50099
50100         New module 'uninorm/decomposition-table'.
50101         * lib/uninorm/decomposition-table.h: New file.
50102         * lib/uninorm/decomposition-table.c: New file.
50103         * lib/uninorm/decomposition-table1.h: New file, generated by
50104         gen-uni-tables.
50105         * lib/uninorm/decomposition-table2.h: New file, generated by
50106         gen-uni-tables.
50107         * modules/uninorm/decomposition-table: New file.
50108
50109         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50110         (UC_DECOMP_*): New enumeration items.
50111         (get_decomposition): New function.
50112         (struct decomp_table): New type.
50113         (output_decomposition, output_decomposition_tables): New functions.
50114         (unicode_composition_exclusions): New variable.
50115         (fill_composition_exclusions, debug_output_composition_tables): New
50116         functions.
50117         (main): Accept one more argument. Invoke fill_composition_exclusions.
50118         Output decomposition and composition tables.
50119
50120         New module 'uninorm/base'.
50121         * lib/uninorm.h: New file.
50122         * lib/unictype.h: Update comment.
50123         * modules/uninorm/base: New file.
50124
50125 2009-02-21  David Lutterkort  <lutter@redhat.com>
50126
50127         Tests for module 'safe-alloc'.
50128         * tests/test-safe-alloc.c: New file.
50129         * modules/safe-alloc-tests: New file.
50130
50131         New module 'safe-alloc'.
50132         * lib/safe-alloc.h: New file.
50133         * lib/safe-alloc.c: New file.
50134         * m4/safe-alloc.m4: New file.
50135         * modules/safe-alloc: New file.
50136         * doc/safe-alloc.texi: New file.
50137         * doc/gnulib.texi: Include it.
50138         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50139         safe-alloc.
50140
50141 2009-02-18  Bruno Haible  <bruno@clisp.org>
50142
50143         Fix link error on non-glibc systems.
50144         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50145         variable.
50146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50147
50148 2009-02-18  Jim Meyering  <meyering@redhat.com>
50149
50150         fts: avoid used-uninitialized error due to recent change
50151         * lib/fts.c (fts_read): Guard uses of the new member,
50152         parent->fts_n_dirs_remaining, since it's not relevant for
50153         the parent of a directory specified on the command-line.
50154
50155 2009-02-17  James Youngman  <jay@gnu.org>
50156             Bruno Haible  <bruno@clisp.org>
50157
50158         * m4/include_next.m4: Reformulate comment.
50159
50160 2009-02-16  Jim Meyering  <meyering@redhat.com>
50161
50162         fts: add #if guards so that the fts_lgpl module still builds
50163         * lib/fts.c: Guard just-added hash-table-using parts with
50164         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50165         Reported by Simon Josefsson.
50166
50167 2009-02-15  Bruno Haible  <bruno@clisp.org>
50168
50169         * modules/array-mergesort-tests: New file.
50170         * tests/test-array-mergesort.c: New file.
50171
50172         New module 'array-mergesort'.
50173         * modules/array-mergesort: New file.
50174         * lib/array-mergesort.h: New file.
50175
50176 2009-02-15  Bruno Haible  <bruno@clisp.org>
50177
50178         Fix 2009-02-07 commit.
50179         * lib/gen-uni-tables.c (output_predicate, output_category,
50180         output_combclass, output_bidi_category, output_decimal_digit,
50181         output_digit, output_numeric, output_mirror, output_scripts,
50182         output_ident_category, output_simple_mapping): Fix format directives.
50183         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50184
50185 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50186
50187         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50188         fixes are available from IBM.
50189
50190 2009-02-13  Jim Meyering  <meyering@redhat.com>
50191
50192         fts: arrange not to stat non-directories in more cases
50193         This makes GNU find (when it doesn't need to stat each file)
50194         *much* more efficient at traversing reiserfs file systems.
50195         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50196         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50197         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50198         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50199         (leaf_optimization_applies): New function.
50200         (LCO_hash, LCO_compare): New helper functions.
50201         (link_count_optimize_ok): New function.
50202         (fts_stat): Initialize new member (if dir).
50203         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50204         we've just stat'ed a directory.  Skip the stat call when possible.
50205         ---
50206         Note this AFS-related exchange:
50207         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50208         and note find's pioctl call in find/fstype.c.
50209         But that is necessary only if you want to enable the
50210         optimization for AFS, and for now, I don't.
50211
50212         fts: move a function definition "up" (no semantic change)
50213         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50214         "up" to precede upcoming use of a related function.
50215
50216 2009-02-11  Jim Meyering  <meyering@redhat.com>
50217
50218         fts: correct internal computation of nlinks (optimization-related)
50219         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50220         whether the current entry is a directory, so don't test it.
50221
50222 2009-02-10  Bruno Haible  <bruno@clisp.org>
50223
50224         Tests for module 'uniwbrk/ulc-wordbreaks'.
50225         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50226         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50227         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50228
50229         Tests for module 'uniwbrk/u32-wordbreaks'.
50230         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50231         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50232
50233         Tests for module 'uniwbrk/u16-wordbreaks'.
50234         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50235         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50236
50237         Tests for module 'uniwbrk/u8-wordbreaks'.
50238         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50239         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50240
50241 2009-02-10  Bruno Haible  <bruno@clisp.org>
50242
50243         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50244         property.
50245         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50246         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50247         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50248
50249 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50250
50251         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50252         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50253
50254 2009-02-10  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50257         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50258         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50259         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50260         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50261         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50262
50263 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50264
50265         * lib/sockets.h (gl_fd_to_handle): New function.
50266
50267         * tests/test-sockets.c: Call gl_fd_to_handle.
50268
50269 2009-02-09  Bruno Haible  <bruno@clisp.org>
50270
50271         * doc/havelib.texi: Document the conventions on bi-arch systems.
50272
50273 2009-02-08  Bruno Haible  <bruno@clisp.org>
50274
50275         Document the AC_LIB_LINKFLAGS macro.
50276         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50277         * doc/gnulib.texi: Include it.
50278
50279 2009-02-08  Bruno Haible  <bruno@clisp.org>
50280
50281         Fix wrong order of sections, compared to TOC.
50282         * doc/gnulib.texi: Include relocatable-maint.texi after the
50283         "Regular expressions" node, not before.
50284
50285 2009-02-08  Bruno Haible  <bruno@clisp.org>
50286
50287         Tests for module 'unicase/totitle'.
50288         * modules/unicase/totitle-tests: New file.
50289
50290         Tests for module 'unicase/tolower'.
50291         * modules/unicase/tolower-tests: New file.
50292
50293         Tests for module 'unicase/toupper'.
50294         * modules/unicase/toupper-tests: New file.
50295         * tests/unicase/test-mapping-part1.h: New file.
50296         * tests/unicase/test-mapping-part2.h: New file.
50297
50298         New module 'unicase/totitle'.
50299         * modules/unicase/totitle: New file.
50300         * lib/unicase/totitle.c: New file.
50301
50302         New module 'unicase/tolower'.
50303         * modules/unicase/tolower: New file.
50304         * lib/unicase/tolower.c: New file.
50305
50306         New module 'unicase/toupper'.
50307         * modules/unicase/toupper: New file.
50308         * lib/unicase/toupper.c: New file.
50309         * lib/unicase/simple-mapping.h: New file.
50310
50311         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50312         (mapping_table): New structure.
50313         (output_simple_mapping): New function.
50314         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50315         * modules/gen-uni-tables (Description): Update.
50316         * lib/unicase/toupper.h: New file, automatically generated by
50317         gen-uni-tables.
50318         * lib/unicase/tolower.h: New file, automatically generated by
50319         gen-uni-tables.
50320         * lib/unicase/totitle.h: New file, automatically generated by
50321         gen-uni-tables.
50322         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50323         gen-uni-tables.
50324         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50325         gen-uni-tables.
50326         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50327         gen-uni-tables.
50328
50329         New module 'unicase/base'.
50330         * modules/unicase/base: New file.
50331         * lib/unicase.h: New file.
50332
50333 2009-02-08  Bruno Haible  <bruno@clisp.org>
50334
50335         New module 'uniwbrk/ulc-wordbreaks'.
50336         * modules/uniwbrk/ulc-wordbreaks: New file.
50337         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50338
50339         New module 'uniwbrk/u32-wordbreaks'.
50340         * modules/uniwbrk/u32-wordbreaks: New file.
50341         * lib/uniwbrk/u32-wordbreaks.c: New file.
50342
50343         New module 'uniwbrk/u16-wordbreaks'.
50344         * modules/uniwbrk/u16-wordbreaks: New file.
50345         * lib/uniwbrk/u16-wordbreaks.c: New file.
50346
50347         New module 'uniwbrk/u8-wordbreaks'.
50348         * modules/uniwbrk/u8-wordbreaks: New file.
50349         * lib/uniwbrk/u8-wordbreaks.c: New file.
50350         * lib/uniwbrk/u-wordbreaks.h: New file.
50351
50352         New module 'uniwbrk/table'.
50353         * modules/uniwbrk/table: New file.
50354         * lib/uniwbrk/wbrktable.h: New file.
50355         * lib/uniwbrk/wbrktable.c: New file.
50356
50357         New module 'uniwbrk/wordbreak-property'.
50358         * modules/uniwbrk/wordbreak-property: New file.
50359         * lib/uniwbrk/wordbreak-property.c: New file.
50360
50361         * lib/gen-uni-tables.c (WBP_*): New enum items.
50362         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50363         (unicode_org_wbp): New variable.
50364         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50365         New functions.
50366         (wbp_table): New structure.
50367         (output_wbp, output_wbrk_tables): New functions.
50368         (main): Accept additional argument. Invoke fill_org_wbp,
50369         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50370         output_wbrk_tables.
50371         * modules/gen-uni-tables (Description): Update.
50372         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50373         gen-uni-tables.
50374
50375         New module 'uniwbrk/base'.
50376         * modules/uniwbrk/base: New file.
50377         * lib/uniwbrk.h: New file.
50378
50379 2009-02-08  Bruno Haible  <bruno@clisp.org>
50380
50381         Update to Unicode 5.1.0.
50382         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50383         U+2185..U+2188.
50384         (is_property_default_ignorable_code_point): Don't include characters
50385         of category Cc or Cs and not-a-characters.
50386         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50387         U+0D79, U+109E, U+109F, U+A60C.
50388         * lib/unictype/bidi_of.h: Regenerated.
50389         * lib/unictype/blocks.h: Regenerated.
50390         * lib/unictype/categ_C.h: Regenerated.
50391         * lib/unictype/categ_Cf.h: Regenerated.
50392         * lib/unictype/categ_Cn.h: Regenerated.
50393         * lib/unictype/categ_L.h: Regenerated.
50394         * lib/unictype/categ_Ll.h: Regenerated.
50395         * lib/unictype/categ_Lm.h: Regenerated.
50396         * lib/unictype/categ_Lo.h: Regenerated.
50397         * lib/unictype/categ_Lu.h: Regenerated.
50398         * lib/unictype/categ_M.h: Regenerated.
50399         * lib/unictype/categ_Mc.h: Regenerated.
50400         * lib/unictype/categ_Me.h: Regenerated.
50401         * lib/unictype/categ_Mn.h: Regenerated.
50402         * lib/unictype/categ_N.h: Regenerated.
50403         * lib/unictype/categ_Nd.h: Regenerated.
50404         * lib/unictype/categ_Nl.h: Regenerated.
50405         * lib/unictype/categ_No.h: Regenerated.
50406         * lib/unictype/categ_P.h: Regenerated.
50407         * lib/unictype/categ_Pd.h: Regenerated.
50408         * lib/unictype/categ_Pe.h: Regenerated.
50409         * lib/unictype/categ_Pf.h: Regenerated.
50410         * lib/unictype/categ_Pi.h: Regenerated.
50411         * lib/unictype/categ_Po.h: Regenerated.
50412         * lib/unictype/categ_Ps.h: Regenerated.
50413         * lib/unictype/categ_S.h: Regenerated.
50414         * lib/unictype/categ_Sk.h: Regenerated.
50415         * lib/unictype/categ_Sm.h: Regenerated.
50416         * lib/unictype/categ_So.h: Regenerated.
50417         * lib/unictype/categ_of.h: Regenerated.
50418         * lib/unictype/combining.h: Regenerated.
50419         * lib/unictype/ctype_alnum.h: Regenerated.
50420         * lib/unictype/ctype_alpha.h: Regenerated.
50421         * lib/unictype/ctype_graph.h: Regenerated.
50422         * lib/unictype/ctype_lower.h: Regenerated.
50423         * lib/unictype/ctype_print.h: Regenerated.
50424         * lib/unictype/ctype_punct.h: Regenerated.
50425         * lib/unictype/ctype_upper.h: Regenerated.
50426         * lib/unictype/decdigit.h: Regenerated.
50427         * lib/unictype/digit.h: Regenerated.
50428         * lib/unictype/mirror.h: Regenerated.
50429         * lib/unictype/numeric.h: Regenerated.
50430         * lib/unictype/pr_alphabetic.h: Regenerated.
50431         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50432         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50433         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50434         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50435         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50436         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50437         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50438         * lib/unictype/pr_combining.h: Regenerated.
50439         * lib/unictype/pr_dash.h: Regenerated.
50440         * lib/unictype/pr_decimal_digit.h: Regenerated.
50441         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50442         * lib/unictype/pr_deprecated.h: Regenerated.
50443         * lib/unictype/pr_diacritic.h: Regenerated.
50444         * lib/unictype/pr_extender.h: Regenerated.
50445         * lib/unictype/pr_format_control.h: Regenerated.
50446         * lib/unictype/pr_grapheme_base.h: Regenerated.
50447         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50448         * lib/unictype/pr_grapheme_link.h: Regenerated.
50449         * lib/unictype/pr_id_continue.h: Regenerated.
50450         * lib/unictype/pr_id_start.h: Regenerated.
50451         * lib/unictype/pr_ideographic.h: Regenerated.
50452         * lib/unictype/pr_ignorable_control.h: Regenerated.
50453         * lib/unictype/pr_lowercase.h: Regenerated.
50454         * lib/unictype/pr_math.h: Regenerated.
50455         * lib/unictype/pr_numeric.h: Regenerated.
50456         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50457         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50458         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50459         * lib/unictype/pr_other_id_continue.h: Regenerated.
50460         * lib/unictype/pr_other_lowercase.h: Regenerated.
50461         * lib/unictype/pr_other_math.h: Regenerated.
50462         * lib/unictype/pr_punctuation.h: Regenerated.
50463         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50464         * lib/unictype/pr_soft_dotted.h: Regenerated.
50465         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50466         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50467         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50468         * lib/unictype/pr_uppercase.h: Regenerated.
50469         * lib/unictype/pr_xid_continue.h: Regenerated.
50470         * lib/unictype/pr_xid_start.h: Regenerated.
50471         * lib/unictype/pr_zero_width.h: Regenerated.
50472         * lib/unictype/scripts.h: Regenerated.
50473         * lib/unictype/scripts_byname.gperf: Regenerated.
50474         * lib/unictype/sy_java_ident.h: Regenerated.
50475         * lib/unilbrk/lbrkprop1.h: Regenerated.
50476         * lib/unilbrk/lbrkprop2.h: Regenerated.
50477         * tests/unictype/test-categ_C.c: Regenerated.
50478         * tests/unictype/test-categ_Cf.c: Regenerated.
50479         * tests/unictype/test-categ_Cn.c: Regenerated.
50480         * tests/unictype/test-categ_L.c: Regenerated.
50481         * tests/unictype/test-categ_Ll.c: Regenerated.
50482         * tests/unictype/test-categ_Lm.c: Regenerated.
50483         * tests/unictype/test-categ_Lo.c: Regenerated.
50484         * tests/unictype/test-categ_Lu.c: Regenerated.
50485         * tests/unictype/test-categ_M.c: Regenerated.
50486         * tests/unictype/test-categ_Mc.c: Regenerated.
50487         * tests/unictype/test-categ_Me.c: Regenerated.
50488         * tests/unictype/test-categ_Mn.c: Regenerated.
50489         * tests/unictype/test-categ_N.c: Regenerated.
50490         * tests/unictype/test-categ_Nd.c: Regenerated.
50491         * tests/unictype/test-categ_Nl.c: Regenerated.
50492         * tests/unictype/test-categ_No.c: Regenerated.
50493         * tests/unictype/test-categ_P.c: Regenerated.
50494         * tests/unictype/test-categ_Pd.c: Regenerated.
50495         * tests/unictype/test-categ_Pe.c: Regenerated.
50496         * tests/unictype/test-categ_Pf.c: Regenerated.
50497         * tests/unictype/test-categ_Pi.c: Regenerated.
50498         * tests/unictype/test-categ_Po.c: Regenerated.
50499         * tests/unictype/test-categ_Ps.c: Regenerated.
50500         * tests/unictype/test-categ_S.c: Regenerated.
50501         * tests/unictype/test-categ_Sk.c: Regenerated.
50502         * tests/unictype/test-categ_Sm.c: Regenerated.
50503         * tests/unictype/test-categ_So.c: Regenerated.
50504         * tests/unictype/test-ctype_alnum.c: Regenerated.
50505         * tests/unictype/test-ctype_alpha.c: Regenerated.
50506         * tests/unictype/test-ctype_graph.c: Regenerated.
50507         * tests/unictype/test-ctype_lower.c: Regenerated.
50508         * tests/unictype/test-ctype_print.c: Regenerated.
50509         * tests/unictype/test-ctype_punct.c: Regenerated.
50510         * tests/unictype/test-ctype_upper.c: Regenerated.
50511         * tests/unictype/test-decdigit.h: Regenerated.
50512         * tests/unictype/test-digit.h: Regenerated.
50513         * tests/unictype/test-numeric.h: Regenerated.
50514         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50515         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50516         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50517         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50518         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50519         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50520         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50521         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50522         * tests/unictype/test-pr_combining.c: Regenerated.
50523         * tests/unictype/test-pr_dash.c: Regenerated.
50524         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50525         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50526         * tests/unictype/test-pr_deprecated.c: Regenerated.
50527         * tests/unictype/test-pr_diacritic.c: Regenerated.
50528         * tests/unictype/test-pr_extender.c: Regenerated.
50529         * tests/unictype/test-pr_format_control.c: Regenerated.
50530         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50531         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50532         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50533         * tests/unictype/test-pr_id_continue.c: Regenerated.
50534         * tests/unictype/test-pr_id_start.c: Regenerated.
50535         * tests/unictype/test-pr_ideographic.c: Regenerated.
50536         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50537         * tests/unictype/test-pr_lowercase.c: Regenerated.
50538         * tests/unictype/test-pr_math.c: Regenerated.
50539         * tests/unictype/test-pr_numeric.c: Regenerated.
50540         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50541         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50542         Regenerated.
50543         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50544         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50545         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50546         * tests/unictype/test-pr_other_math.c: Regenerated.
50547         * tests/unictype/test-pr_punctuation.c: Regenerated.
50548         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50549         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50550         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50551         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50552         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50553         * tests/unictype/test-pr_uppercase.c: Regenerated.
50554         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50555         * tests/unictype/test-pr_xid_start.c: Regenerated.
50556         * tests/unictype/test-pr_zero_width.c: Regenerated.
50557
50558         Update to Unicode 5.1.0.
50559         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50560         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50561         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50562         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50563         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50564         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50565         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50566         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50567         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50568         (nonspacing_table_ind): Update.
50569         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50570
50571         Update to Unicode 5.1.0.
50572         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50573         code transform.
50574         * lib/uniname/uniname.c (unicode_character_name,
50575         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50576         * lib/uniname/uninames.h: Regenerated.
50577         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50578
50579 2009-02-07  Bruno Haible  <bruno@clisp.org>
50580
50581         Merge gen-ctype and gen-lbrk into a single program.
50582         * lib/gen-uni-tables.c: New file, incorporating
50583         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50584         Add directory prefixes to the names of the generated files.
50585         * lib/unictype/gen-ctype.c: Remove file.
50586         * lib/unilbrk/gen-lbrk.c: Remove file.
50587         * modules/gen-uni-tables: New file.
50588         * modules/unictype/gen-ctype: Remove file.
50589         * modules/unilbrk/gen-lbrk: Remove file.
50590
50591 2009-02-07  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50594
50595         New module 'unistr/u32-strcoll'.
50596         * modules/unistr/u32-strcoll: New file.
50597         * lib/unistr/u32-strcoll.c: New file.
50598
50599         New module 'unistr/u16-strcoll'.
50600         * modules/unistr/u16-strcoll: New file.
50601         * lib/unistr/u16-strcoll.c: New file.
50602
50603         New module 'unistr/u8-strcoll'.
50604         * modules/unistr/u8-strcoll: New file.
50605         * lib/unistr/u8-strcoll.c: New file.
50606         * lib/unistr/u-strcoll.h: New file.
50607
50608 2009-02-07  Bruno Haible  <bruno@clisp.org>
50609
50610         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50611         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50612         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50613         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50614         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50615         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50616
50617 2009-02-07  Bruno Haible  <bruno@clisp.org>
50618
50619         Make 64-bit clean.
50620         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50621         output_combclass, output_bidi_category, output_decimal_digit,
50622         output_digit, output_numeric, output_mirror, output_scripts,
50623         output_ident_category): Use proper width specifier in format strings.
50624
50625 2009-02-07  Bruno Haible  <bruno@clisp.org>
50626
50627         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50628         failure behaviour.
50629
50630 2009-02-07  Jim Meyering  <meyering@redhat.com>
50631
50632         regex: avoid compilation failure with upcoming gcc-4.4
50633         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50634         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50635         "... error: integer overflow in preprocessor expression".
50636
50637 2009-02-05  Ben Pfaff  <blp@gnu.org>
50638
50639         Fix link errors on Windows when close module is used.
50640         * modules/close: Add $(LIB_CLOSE) to Link section.
50641         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50642         $(LIB_CLOSE) on Windows.
50643
50644 2009-02-05  Jim Meyering  <meyering@redhat.com>
50645
50646         still avoid unused-parameter warnings, but do it cleanly
50647         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50648         (get_fs_usage): Cast to void instead.
50649         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50650         (dev_from_mount_options, read_file_system_list): Cast to void.
50651         Prompted by Bruno Haible.
50652
50653 2009-02-04  Jim Meyering  <meyering@redhat.com>
50654
50655         fsusage.c: correct copyright year
50656         * lib/fsusage.c: Reflect year in which the change is pushed into
50657
50658         avoid misc. warnings
50659         * lib/fsusage.c (UNUSED_PARAM): Define.
50660         (get_fs_usage): Mark parameter "disk" as unused.
50661         * lib/getugroups.c (getgrent): Use "void" in prototype.
50662         * lib/mountlist.c: Mark unused parameters.
50663         (read_file_system_list): Declare a local with "const".
50664         * lib/nanosleep.c (getnow): Declare static.
50665         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50666
50667         dirfd: set errno upon failure
50668         * lib/dirfd.c: Include <errno.h>.
50669         Set errno to ENOTSUP when returning -1.
50670         * modules/dirfd (Depends-on): Add errno.
50671         Suggested by John Kodis <kodis@comcast.net>.
50672
50673 2009-02-01  Bruno Haible  <bruno@clisp.org>
50674
50675         Don't assume sizeof (long) >= sizeof (void *).
50676         * lib/memcmp.c: Include stdint.h.
50677         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50678         srcp2 to 'const byte *'.
50679         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50680         types to uintptr_t.
50681         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50682         * modules/memcmp (Depends-on): Add stdint.
50683         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50684
50685 2009-01-30  Eric Blake  <ebb9@byu.net>
50686
50687         fix more require-before-expand issues
50688         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50689         expand, AC_PROG_AWK.
50690         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50691
50692 2009-01-28  Eric Blake  <ebb9@byu.net>
50693
50694         version-etc: use consistent URL formatting
50695         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50696         Improve formatting.  Use fputs for string without %.
50697
50698 2009-01-28  Jim Meyering  <meyering@redhat.com>
50699
50700         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50701         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50702         "underquoted definition of NAME" from autoconf-2.59.
50703
50704 2009-01-28  Bruno Haible  <bruno@clisp.org>
50705
50706         * doc/gnulib.texi: Add "Obsolete modules" to index.
50707
50708 2009-01-28  Jim Meyering  <meyering@redhat.com>
50709
50710         useless-if-before-free: recognize more variants
50711         * build-aux/useless-if-before-free: Also recognize e.g.,
50712         if (NULL != p) free (p);
50713
50714 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50715
50716         test-getaddrinfo: skip (don't fail) this test when there's no network
50717         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50718         on the presumption that it means you lack network access.
50719
50720 2009-01-26  Jim Meyering  <meyering@redhat.com>
50721
50722         fflush: avoid warnings on modern systems
50723         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50724         pos and result, into scopes where they're used.
50725
50726 2009-01-26  Eric Blake  <ebb9@byu.net>
50727
50728         Silence warning reintroduced by recent extensions patch.
50729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50730         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50731         autoconf.
50732
50733         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50734         * m4/00gnulib.m4: New file.
50735         * gnulib-tool (func_get_filelist): Always use it.
50736         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50737         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50738
50739 2009-01-25  Bruno Haible  <bruno@clisp.org>
50740
50741         Make test-quotearg work on MacOS X and AIX.
50742         * tests/test-quotearg.sh: New file.
50743         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50744         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50745         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50746         include <libintl.h>.
50747         (fake_locale): Remove variable.
50748         (gettext, dgettext, dcgettext): Remove functions.
50749         (main): Instead of setting a fake locale, set a real locale. Call
50750         textdomain and bindtextdomain.
50751         * modules/quotearg-tests (Files): Add the new files.
50752         (Depends-on): Add gettext, setenv, unsetenv.
50753         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50754         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50755         Augment TESTS_ENVIRONMENT.
50756
50757 2009-01-25  Bruno Haible  <bruno@clisp.org>
50758
50759         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50760         fr_FR.ISO8859-1 locale on MacOS X.
50761         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50762         ja_JP.eucJP locale on MacOS X.
50763         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50764         zh_CN.GB18030 locale on MacOS X.
50765
50766 2009-01-25  Bruno Haible  <bruno@clisp.org>
50767
50768         Avoid link errors on MacOS X 10.3.
50769         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50770         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50771
50772 2009-01-25  Bruno Haible  <bruno@clisp.org>
50773
50774         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50775         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50776         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50777         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50778         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50779         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50780         posix_spawnattr_init, posix_spawnattr_setsigmask,
50781         posix_spawnattr_setflags, posix_spawnattr_destroy.
50782
50783         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50784         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50785         * modules/execute (Files): Remove m4/posix_spawn.m4.
50786         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50787         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50788         posix_spawnattr_init, posix_spawnattr_setsigmask,
50789         posix_spawnattr_setflags, posix_spawnattr_destroy.
50790
50791 2009-01-25  Bruno Haible  <bruno@clisp.org>
50792
50793         * lib/glthread/threadlib.c: Include <stdlib.h>.
50794
50795 2009-01-25  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/glthread/threadlib.c (dummy): New declaration.
50798
50799 2009-01-25  Bruno Haible  <bruno@clisp.org>
50800
50801         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50802         multibyte characters also for the GB18030 encoding. Don't crash when
50803         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50804
50805 2009-01-25  Bruno Haible  <bruno@clisp.org>
50806
50807         Avoid redefining 'struct random_data' on OSF/1 5.1.
50808         * lib/stdlib.in.h: Include <random.h> if it exists.
50809         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50810         HAVE_RANDOM_H. Include <random.h> when testing whether
50811         'struct random_data' exists.
50812         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50813
50814 2009-01-25  Bruno Haible  <bruno@clisp.org>
50815
50816         Don't install charset.alias on MacOS X >= 10.3.
50817         * lib/localcharset.c (DARWIN7): New macro.
50818         (get_charset_aliases): Hardcode the result for Darwin7.
50819         * modules/localcharset (install-exec-local): Don't install
50820         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50821
50822 2009-01-25  Bruno Haible  <bruno@clisp.org>
50823
50824         Don't install charset.alias on mingw and Cygwin.
50825         * modules/localcharset (install-exec-local): Don't install
50826         charset.alias on mingw and Cygwin, if the file does not yet exist.
50827         The result for these platforms is hardcoded in localcharset.c.
50828
50829 2009-01-25  Bruno Haible  <bruno@clisp.org>
50830
50831         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50833         before requiring AC_USE_SYSTEM_EXTENSIONS.
50834
50835 2009-01-25  Jim Meyering  <meyering@redhat.com>
50836
50837         c-strtod: avoid warnings
50838         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50839         "assignment discards qualifiers from pointer target type" warnings.
50840
50841 2009-01-24  Bruno Haible  <bruno@clisp.org>
50842
50843         Add support for non-UTF-8 locales on MacOS X.
50844         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50845         canonical encodings. For Darwin 7 and newer, don't map traditional
50846         encodings to UTF-8.
50847         Reported by Vincent Lefevre <vincent@vinc17.org>
50848         at <http://savannah.gnu.org/bugs/?25235>.
50849
50850 2009-01-24  Bruno Haible  <bruno@clisp.org>
50851
50852         * doc/gnulib.texi (Obsolete modules): New section.
50853         Reported by Mike Frysinger <vapier@gentoo.org>.
50854
50855 2009-01-24  Bruno Haible  <bruno@clisp.org>
50856
50857         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50858         (%.dvi): New rule.
50859
50860 2009-01-24  Bruno Haible  <bruno@clisp.org>
50861
50862         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50863         Reported by Eric Blake.
50864
50865 2009-01-24  Bruno Haible  <bruno@clisp.org>
50866
50867         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50868         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50869         Reported by Gary V. Vaughan <gary@gnu.org>.
50870
50871 2009-01-24  Bruno Haible  <bruno@clisp.org>
50872
50873         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50874
50875 2009-01-23  Bruno Haible  <bruno@clisp.org>
50876
50877         Make c-strtod, c-strtold usable in libraries.
50878         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50879         (C_STRTOD): Call strdup instead of xstrdup.
50880         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50881         * modules/c-strtold (Depends-on): Likewise.
50882         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50883         * NEWS: Mention the change.
50884         Reported by Michael Gold <mgold@ncf.ca>.
50885
50886 2009-01-23  Jim Meyering  <meyering@redhat.com>
50887
50888         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50889         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50890         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50891
50892 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50893
50894         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50895         GNU CoreUtils.
50896         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50897         * modules/version-etc (Description): Update.
50898
50899 2009-01-22  Bruno Haible  <bruno@clisp.org>
50900
50901         Cache the C locale object.
50902         * lib/c-strtod.c (c_locale_cache): New variable.
50903         (c_locale): New function.
50904         (C_STRTOD): Use it, and don't call freelocale.
50905         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50906         Suggested by Paolo Bonzini.
50907
50908 2009-01-21  Bruno Haible  <bruno@clisp.org>
50909
50910         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50911         conditions other than overflow.
50912
50913 2009-01-21  Bruno Haible  <bruno@clisp.org>
50914
50915         * lib/c-strtod.c: Include errno.h.
50916         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50917         value from STRTOD_L and STRTOD.
50918
50919 2009-01-21  Bruno Haible  <bruno@clisp.org>
50920         and Jim Meyering  <meyering@redhat.com>
50921
50922         nanosleep: skip configure test (fail it) for apple universal builds
50923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50924         universal builds, assume that nanosleep does not work.
50925         * modules/nanosleep (Depends-on): Add multiarch.
50926
50927         mktime: skip configure test (fail it) for apple universal builds
50928         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50929         universal builds, assume that mktime does not work.
50930         * modules/mktime (Depends-on): Add multiarch.
50931
50932 2009-01-21  Eric Blake  <ebb9@byu.net>
50933
50934         multiarch: avoid expand-before-require warning
50935         * modules/multiarch (configure.ac): Require, rather than expand,
50936         gl_MULTIARCH.
50937         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50938         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50939         enforce that all clients require it.  Partial reversion of
50940         2008-12-29 patch.
50941
50942         error: avoid expand-before-require warning
50943         * modules/errno (configure.ac): Require, rather than expand,
50944         gl_HEADER_ERRNO_H.
50945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50946         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50947         enforce that all clients require it.
50948
50949         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50950         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50951         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50952         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50953
50954 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50955
50956         Revert:
50957         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50958
50959         regex: do not depend on obsolete modules.
50960         * modules/regex: Remove memcmp and memmove.
50961
50962 2009-01-20  Bruno Haible  <bruno@clisp.org>
50963
50964         Make the 'link' module link on Windows NT 4.
50965         * lib/link.c (_WIN32_WINNT): Don't define.
50966         (CreateHardLinkFuncType): New type.
50967         (CreateHardLinkFunc, initialized): New variables.
50968         (initialize): New function.
50969         (link): Invoke CreateHardLink indirectly through the function pointer.
50970
50971 2009-01-20  Bruno Haible  <bruno@clisp.org>
50972
50973         Fix compilation failure on mingw.
50974         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50975
50976 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50977
50978         * doc/c-strtod.texi: Mention a couple of restrictions.
50979
50980 2009-01-20  Jim Meyering  <meyering@redhat.com>
50981
50982         gettimeofday: move more declarations out of functions
50983         * lib/gettimeofday.c: Move extern declarations of tzset and
50984         gmtime out of containing functions.  Prompted by Bruno Haible.
50985
50986 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50987
50988         regex: do not depend on obsolete modules.
50989         * modules/regex: Remove memcmp and memmove.
50990
50991 2009-01-19  Bruno Haible  <bruno@clisp.org>
50992
50993         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50994         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50995         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50996         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50997         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50998
50999 2009-01-19  Bruno Haible  <bruno@clisp.org>
51000
51001         * tests/test-link.c: Include <errno.h>.
51002         (main): Exit with code 77 when a hard link cannot be created due to
51003         the file system.
51004         * tests/test-link.sh: Skip test when a hard link cannot be created due
51005         to the file system.
51006         Suggested by Eric Blake.
51007
51008 2009-01-19  Martin Lambers  <marlam@marlam.de>
51009
51010         * modules/link-tests: New file.
51011         * tests/test-link.sh: New file.
51012         * tests/test-link.c: New file.
51013
51014 2009-01-19  Eric Blake  <ebb9@byu.net>
51015
51016         doc: mention another function added in cygwin 1.7.0
51017         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51018         Another new function in cygwin 1.7.
51019
51020 2009-01-19  Bruno Haible  <bruno@clisp.org>
51021
51022         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51023         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51024         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51025         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51026         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51027         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51028         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51029         * m4/md4.m4 (gl_MD4): Likewise.
51030         * m4/md5.m4 (gl_MD5): Likewise.
51031         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51032         * m4/sha1.m4 (gl_SHA1): Likewise.
51033         * m4/sha256.m4 (gl_SHA256): Likewise.
51034         * m4/sha512.m4 (gl_SHA512): Likewise.
51035
51036 2009-01-19  Bruno Haible  <bruno@clisp.org>
51037
51038         * modules/uniname/uniname-tests (Depends-on): Add progname.
51039         * tests/uniname/test-uninames.c: Include progname.h.
51040         (main): Call set_program_name.
51041
51042         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51043         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51044         (main): Call set_program_name.
51045
51046         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51047         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51048         (main): Call set_program_name.
51049
51050         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51051         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51052         (main): Call set_program_name.
51053
51054         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51055         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51056         (main): Call set_program_name.
51057
51058         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51059         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51060         (main): Call set_program_name.
51061
51062         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51063         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51064         (main): Call set_program_name.
51065
51066         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51067         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51068         (main): Call set_program_name.
51069
51070         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51071         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51072         (main): Call set_program_name.
51073
51074 2009-01-19  Eric Blake  <ebb9@byu.net>
51075
51076         test-unistd: test previous patch
51077         * tests/test-unistd.c: Test *_FILENO macros.
51078
51079         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51080         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51081         Guarantee a definition.
51082         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51083         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51084         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51085         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51086         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51087         Likewise.
51088         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51089         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51090         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51091         Likewise.
51092         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51093         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51094         (STDERR_FILENO): Likewise.
51095         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51096         (STDERR_FILENO): Likewise.
51097         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51098         (STDERR_FILENO): Likewise.
51099         Reported by Elbert Pol.
51100
51101 2009-01-19  Eric Blake  <ebb9@byu.net>
51102
51103         doc: mention more functions added in cygwin 1.7.0
51104         * doc/posix-functions/abort.texi (abort): Update wording related
51105         to cygwin.
51106         * doc/posix-functions/daylight.texi (daylight): Likewise.
51107         * doc/posix-functions/optarg.texi (optarg): Likewise.
51108         * doc/posix-functions/optarg.texi (opterr): Likewise.
51109         * doc/posix-functions/optarg.texi (optind): Likewise.
51110         * doc/posix-functions/optarg.texi (optopt): Likewise.
51111         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51112         worked in 1.5.x, and was withdrawn in 1.7.
51113         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51114         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51115         cygwin versions.
51116         * doc/posix-functions/perror.texi (perror): Likewise.
51117         * doc/posix-functions/printf.texi (printf): Likewise.
51118         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51119         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51120         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51121         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51122         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51123         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51124         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51125         Likewise.
51126         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51127         Likewise.
51128         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51129         this function.
51130         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51131         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51132         Likewise.
51133         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51134         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51135         * doc/posix-functions/confstr.texi (confstr): Likewise.
51136         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51137         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51138         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51139         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51140         * doc/posix-functions/fputws.texi (fputws): Likewise.
51141         * doc/posix-functions/fwide.texi (fwide): Likewise.
51142         * doc/posix-functions/getwc.texi (getwc): Likewise.
51143         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51144         * doc/posix-functions/putwc.texi (putwc): Likewise.
51145         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51146         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51147         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51148         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51149         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51150         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51151         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51152         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51153         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51154         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51155         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51156
51157 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51158
51159         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51160         * lib/ioctl.c: Include <sys/ioctl.h>.
51161
51162 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51163
51164         * modules/getdate-tests (Depends-on): Add progname.
51165         * tests/test-getdate.c: Use progname module, to avoid link errors
51166         on non-glibc systems.
51167
51168 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51169
51170         * modules/filenamecat-tests (Depends-on): Add progname.
51171         * modules/fstrcmp-tests (Depends-on): Likewise.
51172
51173         * tests/test-filenamecat.c: Use progname module, to avoid link
51174         errors on non-glibc systems.
51175         * tests/test-fstrcmp.c: Likewise.
51176
51177 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51178
51179         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51180         * lib/gettimeofday.c: Move extern declaration out of function.
51181
51182 2009-01-18  Bruno Haible  <bruno@clisp.org>
51183
51184         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51185         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51186         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51187
51188 2009-01-18  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/strftime.c (MEMPCPY): Remove unused macro.
51191         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51192
51193 2009-01-18  Martin Lambers  <marlam@marlam.de>
51194
51195         New module 'link'.
51196         * lib/unistd.in.h (link): New declaration.
51197         * lib/link.c: New file.
51198         * m4/link.m4: New file.
51199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51200         HAVE_LINK.
51201         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51202         * modules/link: New file.
51203         * doc/posix-functions/link.texi: Mention the new module.
51204
51205 2009-01-18  Bruno Haible  <bruno@clisp.org>
51206
51207         * tests/test-avltree_list.c (main): Call set_program_name.
51208         * tests/test-avltree_oset.c (main): Likewise.
51209         * tests/test-obstack-printf.c: Include progname.h.
51210         (main): Call set_program_name.
51211         * tests/test-quotearg.c: Include progname.h.
51212         (main): Call set_program_name.
51213         * tests/test-xmemdup0.c: Include progname.h.
51214         (main): Call set_program_name.
51215
51216 2009-01-18  Bruno Haible  <bruno@clisp.org>
51217
51218         New module 'alphasort'.
51219         * lib/dirent.in.h (alphasort): New declaration.
51220         * lib/alphasort.c: New file, from glibc with modifications.
51221         * m4/alphasort.m4: New file.
51222         * modules/alphasort: New file.
51223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51224         HAVE_ALPHASORT.
51225         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51226         HAVE_ALPHASORT.
51227         * doc/posix-functions/alphasort.texi: Mention the new module and the
51228         portability problems.
51229
51230 2009-01-18  Bruno Haible  <bruno@clisp.org>
51231
51232         New module 'scandir'.
51233         * lib/dirent.in.h (scandir): New declaration.
51234         * lib/scandir.c: New file, from glibc with modifications.
51235         * m4/scandir.m4: New file.
51236         * modules/scandir: New file.
51237         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51238         HAVE_SCANDIR.
51239         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51240         HAVE_SCANDIR.
51241         * doc/posix-functions/scandir.texi: Mention the new module and the
51242         portability problems.
51243
51244 2009-01-17  Bruno Haible  <bruno@clisp.org>
51245
51246         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51247         Update documentation.
51248         (func_remove_suffix): Escape all dots in the suffix. Update
51249         documentation.
51250         (func_filter_filelist): Update documentation.
51251         Reported by Ralf Wildenhues.
51252
51253 2009-01-17  Bruno Haible  <bruno@clisp.org>
51254
51255         * modules/dprintf-posix-tests: New file.
51256         * tests/test-dprintf-posix.sh: New file.
51257         * tests/test-dprintf-posix.c: New file.
51258
51259         New modules 'dprintf', 'dprintf-posix'.
51260         * lib/stdio.in.h (dprintf): New declaration.
51261         * lib/dprintf.c: New file.
51262         * m4/dprintf.m4: New file.
51263         * m4/dprintf-posix.m4: New file.
51264         * modules/dprintf: New file.
51265         * modules/dprintf-posix: New file.
51266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51267         HAVE_DPRINTF, REPLACE_DPRINTF.
51268         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51269         HAVE_DPRINTF, REPLACE_DPRINTF.
51270         * doc/posix-functions/dprintf.texi: Mention the new modules.
51271
51272 2009-01-17  Bruno Haible  <bruno@clisp.org>
51273
51274         * modules/vdprintf-posix-tests: New file.
51275         * tests/test-vdprintf-posix.sh: New file.
51276         * tests/test-vdprintf-posix.c: New file.
51277
51278         New modules 'vdprintf', 'vdprintf-posix'.
51279         * lib/stdio.in.h (vdprintf): New declaration.
51280         * lib/vdprintf.c: New file.
51281         * m4/vdprintf.m4: New file.
51282         * m4/vdprintf-posix.m4: New file.
51283         * modules/vdprintf: New file.
51284         * modules/vdprintf-posix: New file.
51285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51286         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51287         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51288         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51289         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51290
51291 2009-01-17  Bruno Haible  <bruno@clisp.org>
51292
51293         Fix replacement of fopen on mingw.
51294         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51295         mingw.
51296
51297 2009-01-17  Bruno Haible  <bruno@clisp.org>
51298
51299         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51300         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51301
51302 2009-01-17  Bruno Haible  <bruno@clisp.org>
51303
51304         Avoid test-fflush2.sh failure on mingw.
51305         * tests/test-fflush2.c: Include binary-io.h.
51306         (main): Put standard input into binary mode.
51307         * modules/fflush-tests (Depends-on): Add binary-io.
51308
51309 2009-01-17  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/wchar.in.h: In another particular situation, include only the
51312         system's <wchar.h> file.
51313         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51314         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51315         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51316
51317 2009-01-17  Bruno Haible  <bruno@clisp.org>
51318
51319         Support for stripping executables in --enable-relocatable.
51320         * build-aux/install-reloc: Expect one more argument, or an environment
51321         variable RELOC_STRIP_PROG. If set, strip the destination program and
51322         its wrapper.
51323         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51324         RELOC_STRIP_PROG.
51325         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51326         to set RELOCATABLE_STRIP.
51327         * NEWS: Mention the new Makefile requirement.
51328
51329 2009-01-17  Bruno Haible  <bruno@clisp.org>
51330
51331         * build-aux/install-reloc: Remove debugging information left over by
51332         C compiler on MacOS X.
51333
51334 2009-01-17  Bruno Haible  <bruno@clisp.org>
51335
51336         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51337         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51338         _NSGetExecutablePath.
51339
51340 2009-01-16  Jim Meyering  <meyering@redhat.com>
51341
51342         strerror: avoid warnings about discarding "const"
51343         * lib/strerror.c (rpl_strerror): Instead of returning a const
51344         string from each and every "case", use a variable, and add a single
51345         cast after the switch.
51346
51347 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51348
51349         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51350
51351 2009-01-16  Bruno Haible  <bruno@clisp.org>
51352
51353         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51354         array initializer syntax that also works in C++ mode.
51355         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51356
51357 2009-01-16  Jim Meyering  <meyering@redhat.com>
51358
51359         poll: suppress a warning
51360         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51361         to ignore "...unsigned expression < 0 is always false" warnings.
51362
51363 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51364
51365         poll: remove declarations of unused variables
51366         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51367         sockbuf and optlen.
51368
51369 2009-01-15  Bruno Haible  <bruno@clisp.org>
51370
51371         Make fflush-after-ungetc POSIX compliant on BSD systems.
51372         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51373         (clear_ungetc_buffer): Implement also for other systems.
51374         (rpl_fflush): On glibc systems, invoke
51375         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51376         clear_ungetc_buffer after fetching the stream's position, not before.
51377
51378 2009-01-15  Bruno Haible  <bruno@clisp.org>
51379
51380         Make fflush-after-ungetc POSIX compliant on glibc systems.
51381         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51382         after ungetc.
51383         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51384         (rpl_fflush): On glibc systems, simply call the system's fflush
51385         function after clearing the ungetc buffer.
51386         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51387         Instead, lseek only to the end of file, then use the system's fseeko
51388         for the rest. On glibc systems, reset the EOF indicator bit.
51389
51390 2009-01-15  Jim Meyering  <meyering@redhat.com>
51391
51392         openmp.m4: revert quote-adding change, for portability to older autoconf
51393         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51394         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51395         Simon Josefsson noticed the problem when using autoconf-2.61.
51396
51397 2009-01-15  Bruno Haible  <bruno@clisp.org>
51398
51399         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51400         * tests/test-fflush2.c (ASSERT): Always fail.
51401         (main): Add two tests for fflush() after ungetc(), taking into account
51402         the Austin Group's clarification.
51403         Suggested by Eric Blake.
51404
51405 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51406
51407         mktime.m4: remove K&R-style function prototypes
51408         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51409         for the Sun C++ compiler.
51410
51411 2009-01-14  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51414         while including <wchar.h>.
51415         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51416         the system's <wchar.h> file.
51417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51418
51419 2009-01-14  Bruno Haible  <bruno@clisp.org>
51420
51421         * m4/csharp.m4: Don't mention gettext on the serial number line.
51422         * m4/csharpexec.m4: Likewise.
51423         * m4/eaccess.m4: Likewise.
51424         * m4/javaexec.m4: Likewise.
51425         * m4/sig_atomic_t.m4: Likewise.
51426         * m4/tmpdir.m4: Likewise.
51427         * m4/intldir.m4: Bump gettext version.
51428         * m4/lib-ld.m4: Likewise.
51429
51430 2009-01-14  Bruno Haible  <bruno@clisp.org>
51431
51432         * lib/progname.c (set_program_name): Add more comments.
51433         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51434
51435 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51436
51437         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51438         were sys/stat.h does not define it.
51439
51440 2009-01-14  Jim Meyering  <meyering@redhat.com>
51441
51442         many *.m4 files: improve m4 quoting
51443         99% of this change was performed by running the following commands:
51444         git ls-files | grep '\.m4$' | xargs perl -pi \
51445           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51446           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51447           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51448           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51449         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51450         The remainder were to add Copyright dates, increment serial numbers,
51451         undo some changes in comments, exclude m4/intl.m4, and add quotes
51452         around the "1" in ",1" where the unusual spacing prohibited the
51453         above regexps from doing the job.  For more details, see
51454         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51455         * m4/acl.m4: Modified.
51456         * m4/afs.m4: Likewise.
51457         * m4/alloca.m4: Likewise.
51458         * m4/argp.m4: Likewise.
51459         * m4/argz.m4: Likewise.
51460         * m4/atexit.m4: Likewise.
51461         * m4/bison-i18n.m4: Likewise.
51462         * m4/bison.m4: Likewise.
51463         * m4/byteswap.m4: Likewise.
51464         * m4/c-stack.m4: Likewise.
51465         * m4/c-strtod.m4: Likewise.
51466         * m4/calloc.m4: Likewise.
51467         * m4/canonicalize-lgpl.m4: Likewise.
51468         * m4/chown.m4: Likewise.
51469         * m4/clock_time.m4: Likewise.
51470         * m4/codeset.m4: Likewise.
51471         * m4/copy-file.m4: Likewise.
51472         * m4/csharp.m4: Likewise.
51473         * m4/csharpcomp.m4: Likewise.
51474         * m4/csharpexec.m4: Likewise.
51475         * m4/d-ino.m4: Likewise.
51476         * m4/d-type.m4: Likewise.
51477         * m4/dirfd.m4: Likewise.
51478         * m4/double-slash-root.m4: Likewise.
51479         * m4/eaccess.m4: Likewise.
51480         * m4/eealloc.m4: Likewise.
51481         * m4/environ.m4: Likewise.
51482         * m4/errno_h.m4: Likewise.
51483         * m4/euidaccess.m4: Likewise.
51484         * m4/execute.m4: Likewise.
51485         * m4/fatal-signal.m4: Likewise.
51486         * m4/fchdir.m4: Likewise.
51487         * m4/fcntl_h.m4: Likewise.
51488         * m4/fileblocks.m4: Likewise.
51489         * m4/filenamecat.m4: Likewise.
51490         * m4/findprog.m4: Likewise.
51491         * m4/flexmember.m4: Likewise.
51492         * m4/fnmatch.m4: Likewise.
51493         * m4/fopen.m4: Likewise.
51494         * m4/fpending.m4: Likewise.
51495         * m4/fprintf-posix.m4: Likewise.
51496         * m4/free.m4: Likewise.
51497         * m4/frexp.m4: Likewise.
51498         * m4/frexpl.m4: Likewise.
51499         * m4/fsusage.m4: Likewise.
51500         * m4/ftruncate.m4: Likewise.
51501         * m4/gc-camellia.m4: Likewise.
51502         * m4/gc-random.m4: Likewise.
51503         * m4/gc.m4: Likewise.
51504         * m4/getaddrinfo.m4: Likewise.
51505         * m4/getcwd-abort-bug.m4: Likewise.
51506         * m4/getcwd-path-max.m4: Likewise.
51507         * m4/getdate.m4: Likewise.
51508         * m4/getdomainname.m4: Likewise.
51509         * m4/getgroups.m4: Likewise.
51510         * m4/gethostname.m4: Likewise.
51511         * m4/gethrxtime.m4: Likewise.
51512         * m4/getline.m4: Likewise.
51513         * m4/getloadavg.m4: Likewise.
51514         * m4/getndelim2.m4: Likewise.
51515         * m4/getpass.m4: Likewise.
51516         * m4/gettext.m4: Likewise.
51517         * m4/gettime.m4: Likewise.
51518         * m4/gettimeofday.m4: Likewise.
51519         * m4/gnulib-common.m4: Likewise.
51520         * m4/group-member.m4: Likewise.
51521         * m4/host-os.m4: Likewise.
51522         * m4/iconv.m4: Likewise.
51523         * m4/iconv_open.m4: Likewise.
51524         * m4/inet_ntop.m4: Likewise.
51525         * m4/inet_pton.m4: Likewise.
51526         * m4/inline.m4: Likewise.
51527         * m4/intldir.m4: Likewise.
51528         * m4/intlmacosx.m4: Likewise.
51529         * m4/intmax.m4: Likewise.
51530         * m4/intmax_t.m4: Likewise.
51531         * m4/inttypes.m4: Likewise.
51532         * m4/inttypes_h.m4: Likewise.
51533         * m4/inttypes-pri.m4: Likewise.
51534         * m4/isapipe.m4: Likewise.
51535         * m4/isnand.m4: Likewise.
51536         * m4/isnanf.m4: Likewise.
51537         * m4/isnanl.m4: Likewise.
51538         * m4/javacomp.m4: Likewise.
51539         * m4/javaexec.m4: Likewise.
51540         * m4/jm-winsz1.m4: Likewise.
51541         * m4/jm-winsz2.m4: Likewise.
51542         * m4/lchown.m4: Likewise.
51543         * m4/lcmessage.m4: Likewise.
51544         * m4/ldexpl.m4: Likewise.
51545         * m4/lib-ld.m4: Likewise.
51546         * m4/lib-link.m4: Likewise.
51547         * m4/libsigsegv.m4: Likewise.
51548         * m4/link-follow.m4: Likewise.
51549         * m4/localcharset.m4: Likewise.
51550         * m4/locale-fr.m4: Likewise.
51551         * m4/locale-ja.m4: Likewise.
51552         * m4/locale-tr.m4: Likewise.
51553         * m4/locale-zh.m4: Likewise.
51554         * m4/lock.m4: Likewise.
51555         * m4/longlong.m4: Likewise.
51556         * m4/ls-mntd-fs.m4: Likewise.
51557         * m4/lstat.m4: Likewise.
51558         * m4/malloc.m4: Likewise.
51559         * m4/mathl.m4: Likewise.
51560         * m4/mbrtowc.m4: Likewise.
51561         * m4/mbstate_t.m4: Likewise.
51562         * m4/mbswidth.m4: Likewise.
51563         * m4/memchr.m4: Likewise.
51564         * m4/memcmp.m4: Likewise.
51565         * m4/memcpy.m4: Likewise.
51566         * m4/memmem.m4: Likewise.
51567         * m4/memmove.m4: Likewise.
51568         * m4/mempcpy.m4: Likewise.
51569         * m4/memrchr.m4: Likewise.
51570         * m4/memset.m4: Likewise.
51571         * m4/minmax.m4: Likewise.
51572         * m4/mkdir-slash.m4: Likewise.
51573         * m4/mkdtemp.m4: Likewise.
51574         * m4/mktime.m4: Likewise.
51575         * m4/mmap-anon.m4: Likewise.
51576         * m4/mountlist.m4: Likewise.
51577         * m4/nanosleep.m4: Likewise.
51578         * m4/nls.m4: Likewise.
51579         * m4/nocrash.m4: Likewise.
51580         * m4/open.m4: Likewise.
51581         * m4/openat.m4: Likewise.
51582         * m4/openmp.m4: Likewise.
51583         * m4/pathmax.m4: Likewise.
51584         * m4/perl.m4: Likewise.
51585         * m4/physmem.m4: Likewise.
51586         * m4/pipe.m4: Likewise.
51587         * m4/po.m4: Likewise.
51588         * m4/poll.m4: Likewise.
51589         * m4/posixtm.m4: Likewise.
51590         * m4/posixver.m4: Likewise.
51591         * m4/printf-frexp.m4: Likewise.
51592         * m4/printf-frexpl.m4: Likewise.
51593         * m4/printf-posix.m4: Likewise.
51594         * m4/printf-posix-rpl.m4: Likewise.
51595         * m4/printf.m4: Likewise.
51596         * m4/progtest.m4: Likewise.
51597         * m4/putenv.m4: Likewise.
51598         * m4/readline.m4: Likewise.
51599         * m4/readlink.m4: Likewise.
51600         * m4/readutmp.m4: Likewise.
51601         * m4/realloc.m4: Likewise.
51602         * m4/regex.m4: Likewise.
51603         * m4/relocatable.m4: Likewise.
51604         * m4/relocatable-lib.m4: Likewise.
51605         * m4/rename-dest-slash.m4: Likewise.
51606         * m4/rename.m4: Likewise.
51607         * m4/rmdir-errno.m4: Likewise.
51608         * m4/rmdir.m4: Likewise.
51609         * m4/roundf.m4: Likewise.
51610         * m4/roundl.m4: Likewise.
51611         * m4/rpmatch.m4: Likewise.
51612         * m4/save-cwd.m4: Likewise.
51613         * m4/selinux-selinux-h.m4: Likewise.
51614         * m4/setenv.m4: Likewise.
51615         * m4/settime.m4: Likewise.
51616         * m4/sig2str.m4: Likewise.
51617         * m4/sig_atomic_t.m4: Likewise.
51618         * m4/signalblocking.m4: Likewise.
51619         * m4/signbit.m4: Likewise.
51620         * m4/sigpipe.m4: Likewise.
51621         * m4/sockets.m4: Likewise.
51622         * m4/sockpfaf.m4: Likewise.
51623         * m4/st_dm_mode.m4: Likewise.
51624         * m4/stat-time.m4: Likewise.
51625         * m4/stdbool.m4: Likewise.
51626         * m4/stdint.m4: Likewise.
51627         * m4/stdint_h.m4: Likewise.
51628         * m4/stpcpy.m4: Likewise.
51629         * m4/stpncpy.m4: Likewise.
51630         * m4/strcase.m4: Likewise.
51631         * m4/strchrnul.m4: Likewise.
51632         * m4/strcspn.m4: Likewise.
51633         * m4/strdup.m4: Likewise.
51634         * m4/strftime.m4: Likewise.
51635         * m4/strndup.m4: Likewise.
51636         * m4/strnlen.m4: Likewise.
51637         * m4/strpbrk.m4: Likewise.
51638         * m4/strptime.m4: Likewise.
51639         * m4/strsep.m4: Likewise.
51640         * m4/strtod.m4: Likewise.
51641         * m4/strtoimax.m4: Likewise.
51642         * m4/strtok_r.m4: Likewise.
51643         * m4/strtol.m4: Likewise.
51644         * m4/strtoll.m4: Likewise.
51645         * m4/strtoul.m4: Likewise.
51646         * m4/strtoull.m4: Likewise.
51647         * m4/strtoumax.m4: Likewise.
51648         * m4/strverscmp.m4: Likewise.
51649         * m4/threadlib.m4: Likewise.
51650         * m4/timegm.m4: Likewise.
51651         * m4/tm_gmtoff.m4: Likewise.
51652         * m4/tmpdir.m4: Likewise.
51653         * m4/tmpfile.m4: Likewise.
51654         * m4/tzset.m4: Likewise.
51655         * m4/uintmax_t.m4: Likewise.
51656         * m4/unlinkdir.m4: Likewise.
51657         * m4/unlocked-io.m4: Likewise.
51658         * m4/uptime.m4: Likewise.
51659         * m4/userspec.m4: Likewise.
51660         * m4/utimbuf.m4: Likewise.
51661         * m4/utime.m4: Likewise.
51662         * m4/utimes-null.m4: Likewise.
51663         * m4/utimes.m4: Likewise.
51664         * m4/vararrays.m4: Likewise.
51665         * m4/vasnprintf.m4: Likewise.
51666         * m4/vfprintf-posix.m4: Likewise.
51667         * m4/vprintf-posix.m4: Likewise.
51668         * m4/wait-process.m4: Likewise.
51669         * m4/wchar_t.m4: Likewise.
51670         * m4/wint_t.m4: Likewise.
51671         * m4/write-any-file.m4: Likewise.
51672         * m4/yield.m4: Likewise.
51673
51674 2009-01-13  Bruno Haible  <bruno@clisp.org>
51675
51676         Avoid test-copy-file.sh failures when ACL support insufficient.
51677         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51678         TESTS_ENVIRONMENT.
51679         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51680         Reported by Jim Meyering.
51681
51682 2009-01-13  Bruno Haible  <bruno@clisp.org>
51683
51684         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51685         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51686         * modules/unistdio/u8-printf-parse (Files): Likewise.
51687         * modules/unistdio/u32-printf-parse (Files): Likewise.
51688         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51689
51690 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51691
51692         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51693         and m4/inttypes_h.m4 too.
51694
51695 2009-01-12  Eric Blake  <ebb9@byu.net>
51696
51697         tests: IRIX 6.2 cc can't compile -0.0 into .data
51698         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51699         rather than at compile-time.
51700         * tests/test-floorl.c (minus_zero): Likewise.
51701         * tests/test-frexpl.c (minus_zero): Likewise.
51702         * tests/test-isnan.c (minus_zerol): Likewise.
51703         * tests/test-isnanl.h (minus_zero): Likewise.
51704         * tests/test-ldexpl.c (minus_zero): Likewise.
51705         * tests/test-roundl.c (minus_zero): Likewise.
51706         * tests/test-signbit.c (minus_zerol): Likewise.
51707         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51708         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51709         * tests/test-truncl.c (minus_zero): Likewise.
51710         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51711         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51712         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51713
51714 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51715
51716         regex: fix glibc bug 9697
51717         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51718         handling.
51719
51720 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51721
51722         regex: fix glibc bug 697
51723         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51724         being NULL also if there are no backreferences.
51725
51726 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51727
51728         regex: merge glibc changes
51729         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51730         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51731         re_string_skip_chars, re_string_reconstruct): Likewise.
51732         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51733
51734 2009-01-07  Jim Meyering  <meyering@redhat.com>
51735
51736         poll: filter through cppi
51737         * lib/poll.c: Indent cpp directives to reflect nesting.
51738
51739 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51740
51741         poll: don't return uninitialized
51742         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51743
51744 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51745
51746         avoid compile failure on AIX 6.1
51747         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51748         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51749
51750 2009-01-04  Jim Meyering  <meyering@redhat.com>
51751
51752         remove duplicate inclusion of <stdio.h>
51753         * tests/test-fprintf-posix.c: Likewise.
51754         * tests/test-printf-posix.c: Likewise.
51755         * tests/test-snprintf-posix.c: Likewise.
51756         * tests/test-sprintf-posix.c: Likewise.
51757         * tests/test-vasprintf-posix.c: Likewise.
51758         * tests/test-vfprintf-posix.c: Likewise.
51759         * tests/test-vprintf-posix.c: Likewise.
51760         * tests/test-vsnprintf-posix.c: Likewise.
51761         * tests/test-vsprintf-posix.c: Likewise.
51762
51763 2009-01-03  Jim Meyering  <meyering@redhat.com>
51764
51765         gnulib-tool: fix sed-based filtering
51766         * gnulib-tool (func_filter_filelist): Remove extra backslash
51767         in sed_fff_filter definition.
51768
51769 2009-01-02  Jim Meyering  <meyering@redhat.com>
51770
51771         strftime: avoid compilation failure on Solaris 2.6
51772         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51773         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51774         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51775         be available.  Reported by Tom G. Christensen.  Details in
51776         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51777
51778 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51779             Bruno Haible  <bruno@clisp.org>
51780
51781         Speed up gnulib-tool by doing more string processing through shell
51782         built-ins.
51783         * gnulib-tool (fast_func_append): New variable.
51784         (func_remove_prefix, func_remove_suffix): New functions.
51785         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51786         (func_filter_filelist): New function.
51787         (func_get_dependencies): Use func_remove_suffix instead of sed.
51788         (func_get_automake_snippet): Use func_filter_filelist instead of a
51789         subshell and sed invocation.
51790
51791 2009-01-01  Bruno Haible  <bruno@clisp.org>
51792
51793         Fix a security bug.
51794         * gnulib-tool (func_import, import, update): Don't allow the characters
51795         '"', '$', '`', '\' in macro arguments that become part of commands that
51796         are evaluated.
51797
51798 2009-01-01  Bruno Haible  <bruno@clisp.org>
51799
51800         * gnulib-tool (func_reset_sigpipe): Add more comments.
51801
51802 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51803
51804         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51805         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51806         already know the answer.
51807
51808 2009-01-01  Jim Meyering  <meyering@redhat.com>
51809
51810         * lib/version-etc.c (version_etc_va): Update copyright year.
51811
51812 2008-12-30  Bruno Haible  <bruno@clisp.org>
51813
51814         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51815         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51816         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51817
51818 2008-12-29  Eric Blake  <ebb9@byu.net>
51819
51820         multiarch: avoid autoconf AC_REQUIRE bug
51821         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51822         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51823         2.63 and older.
51824         Reported by Bruno Haible, and analyzed in
51825         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51826
51827 2008-12-29  Bruno Haible  <bruno@clisp.org>
51828
51829         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51830         files in subdirectories correctly.
51831         Reported by Ralf Wildenhues.
51832
51833 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51834
51835         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51836         rather than 'join FILE -', for Solaris join.
51837
51838 2008-12-29  Bruno Haible  <bruno@clisp.org>
51839
51840         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51841         quoting.
51842         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51843         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51844         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51845         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51846         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51847         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51848         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51849         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51850         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51851         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51852         * m4/nls.m4 (AM_NLS): Likewise.
51853         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51854         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51856         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51857         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51858         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51859         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51860         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51861         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51862         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51863         * m4/xsize.m4 (gl_XSIZE): Likewise.
51864         Suggested by Jim Meyering.
51865
51866 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51867
51868         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51869         * lib/parse-duration.c: use a switch instead of cascading if's.
51870
51871 2008-12-29  Eric Blake  <ebb9@byu.net>
51872
51873         wchar.h: supply WEOF on Irix 5.3
51874         * lib/wchar.in.h (wint_t): Also supply WEOF.
51875         * lib/wctype.in.h (wint_t): Likewise.
51876         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51877         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51878         Reported by Tom G. Christensen.
51879
51880 2008-12-26  Bruno Haible  <bruno@clisp.org>
51881
51882         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51883         i486, i586, i686.
51884
51885 2008-12-26  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51888
51889 2008-12-26  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51892         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51893         not __STDC_CONSTANT_MACROS.
51894         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51895
51896 2008-12-25  Bruno Haible  <bruno@clisp.org>
51897
51898         Add support for universal builds to vasnprintf.
51899         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51900         universal builds, guess no.
51901         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51902         * modules/vasprintf-posix (Depends-on): Likewise.
51903         * modules/fprintf-posix (Depends-on): Likewise.
51904         * modules/vfprintf-posix (Depends-on): Likewise.
51905         * modules/snprintf-posix (Depends-on): Likewise.
51906         * modules/vsnprintf-posix (Depends-on): Likewise.
51907         * modules/sprintf-posix (Depends-on): Likewise.
51908         * modules/vsprintf-posix (Depends-on): Likewise.
51909         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51910         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51911         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51912         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51914         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51915         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51916
51917         Add support for universal builds to <inttypes.h>.
51918         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51919         _SCNu64_PREFIX): In Apple
51920         universal builds, define directly, using _LP64.
51921         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51922         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51923         * modules/inttypes (Depends-on): Add multiarch.
51924         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51925
51926         Add support for universal builds to <stdint.h>.
51927         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51928         universal builds, define directly, using _LP64.
51929         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51930         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51931         and size_t.
51932         * modules/stdint (Depends-on): Add multiarch.
51933         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51934
51935         New module 'multiarch'.
51936         * modules/multiarch: New file.
51937         * m4/multiarch.m4: New file.
51938
51939 2008-12-25  Bruno Haible  <bruno@clisp.org>
51940
51941         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51942
51943 2008-12-25  Bruno Haible  <bruno@clisp.org>
51944
51945         * modules/btowc (License): Relicense under LGPLv2+.
51946         * modules/mbsinit (License): Likewise.
51947         * modules/mbrtowc (License): Likewise.
51948         * modules/wcrtomb (License): Likewise.
51949         * modules/streq (License): Likewise.
51950         Reported by David Lutterkort <lutter@redhat.com>.
51951
51952 2008-12-23  Bruno Haible  <bruno@clisp.org>
51953
51954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51955
51956 2008-12-23  Bruno Haible  <bruno@clisp.org>
51957
51958         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51960         GETADDRINFO_LIB, not in LIBS.
51961         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51962         * modules/canon-host (Link): Likewise.
51963         * NEWS: Mention the change.
51964         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51965         GETADDRINFO_LIB.
51966
51967 2008-12-22  Bruno Haible  <bruno@clisp.org>
51968
51969         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51970         * doc/posix-functions/iswalpha_l.texi: Likewise.
51971         * doc/posix-functions/iswblank_l.texi: Likewise.
51972         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51973         * doc/posix-functions/iswctype_l.texi: Likewise.
51974         * doc/posix-functions/iswdigit_l.texi: Likewise.
51975         * doc/posix-functions/iswgraph_l.texi: Likewise.
51976         * doc/posix-functions/iswlower_l.texi: Likewise.
51977         * doc/posix-functions/iswprint_l.texi: Likewise.
51978         * doc/posix-functions/iswpunct_l.texi: Likewise.
51979         * doc/posix-functions/iswspace_l.texi: Likewise.
51980         * doc/posix-functions/iswupper_l.texi: Likewise.
51981         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51982         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51983         * doc/posix-functions/open_wmemstream.texi: Likewise.
51984         * doc/posix-functions/swscanf.texi: Likewise.
51985         * doc/posix-functions/towctrans_l.texi: Likewise.
51986         * doc/posix-functions/towlower.texi: Likewise.
51987         * doc/posix-functions/towlower_l.texi: Likewise.
51988         * doc/posix-functions/towupper.texi: Likewise.
51989         * doc/posix-functions/towupper_l.texi: Likewise.
51990         * doc/posix-functions/vfwprintf.texi: Likewise.
51991         * doc/posix-functions/vfwscanf.texi: Likewise.
51992         * doc/posix-functions/vswscanf.texi: Likewise.
51993         * doc/posix-functions/vwprintf.texi: Likewise.
51994         * doc/posix-functions/vwscanf.texi: Likewise.
51995         * doc/posix-functions/wcpcpy.texi: Likewise.
51996         * doc/posix-functions/wcpncpy.texi: Likewise.
51997         * doc/posix-functions/wcscasecmp.texi: Likewise.
51998         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51999         * doc/posix-functions/wcscoll_l.texi: Likewise.
52000         * doc/posix-functions/wcsdup.texi: Likewise.
52001         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52002         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52003         * doc/posix-functions/wcsnlen.texi: Likewise.
52004         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52005         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52006         * doc/posix-functions/wctrans_l.texi: Likewise.
52007         * doc/posix-functions/wctype_l.texi: Likewise.
52008         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52009         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52010         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52011         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52012         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52013         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52014         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52015         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52016         * doc/glibc-functions/wcschrnul.texi: Likewise.
52017         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52018         * doc/glibc-functions/wcstod_l.texi: Likewise.
52019         * doc/glibc-functions/wcstof_l.texi: Likewise.
52020         * doc/glibc-functions/wcstol_l.texi: Likewise.
52021         * doc/glibc-functions/wcstold_l.texi: Likewise.
52022         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52023         * doc/glibc-functions/wcstoq.texi: Likewise.
52024         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52025         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52026         * doc/glibc-functions/wcstouq.texi: Likewise.
52027         * doc/glibc-functions/wmempcpy.texi: Likewise.
52028
52029 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52030             Eric Blake  <ebb9@byu.net>
52031             Paolo Bonzini  <bonzini@gnu.org>
52032             Bruno Haible  <bruno@clisp.org>
52033
52034         Make c-stack work on Haiku.
52035         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52036         (c_stack_action): Use SA_ONSTACK flag.
52037
52038 2008-12-22  Bruno Haible  <bruno@clisp.org>
52039
52040         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52041
52042 2008-12-22  Bruno Haible  <bruno@clisp.org>
52043
52044         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52045         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52046         being overridden.
52047         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52048         New macros.
52049         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52051         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52052         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52053
52054 2008-12-22  Bruno Haible  <bruno@clisp.org>
52055
52056         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52057         from test code.
52058
52059 2008-12-22  Eric Blake  <ebb9@byu.net>
52060
52061         Avoid gcc warnings on cygwin.
52062         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52063         Avoid unused variable.
52064         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52065         Likewise.
52066
52067 2008-12-22  Bruno Haible  <bruno@clisp.org>
52068
52069         Remove HAVE_MBRTOWC conditionals.
52070         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52071         (mbscasecmp): Assume mbrtowc function.
52072         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52073         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52074         * lib/mbschr.c: Include mbuiter.h unconditionally.
52075         (mbschr): Assume mbrtowc function.
52076         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52077         (mbscspn): Assume mbrtowc function.
52078         * lib/mbslen.c: Include mbuiter.h unconditionally.
52079         (mbslen): Assume mbrtowc function.
52080         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52081         (mbsncasecmp): Assume mbrtowc function.
52082         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52083         (mbsnlen): Assume mbrtowc function.
52084         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52085         (mbspbrk): Assume mbrtowc function.
52086         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52087         (mbspcasecmp): Assume mbrtowc function.
52088         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52089         (mbsrchr): Assume mbrtowc function.
52090         * lib/mbssep.c: Include mbuiter.h unconditionally.
52091         (mbssep): Assume mbrtowc function.
52092         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52093         (mbsspn): Assume mbrtowc function.
52094         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52095         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52096         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52097         (mbstok_r): Assume mbrtowc function.
52098         * lib/propername.c: Include mbuiter.h unconditionally.
52099         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52100         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52101         (trim2): Assume mbrtowc function.
52102         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52103         (mbsnwidth): Assume mbrtowc function.
52104         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52105         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52106         fallback definitions.
52107         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52108
52109 2008-12-22  Bruno Haible  <bruno@clisp.org>
52110
52111         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52112
52113 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52114
52115         * modules/regex: Request emulations for the mb*/wc* functions we need.
52116         * m4/regex.m4: Don't look for those functions here.
52117         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52118
52119 2008-12-22  Bruno Haible  <bruno@clisp.org>
52120
52121         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52122
52123 2008-12-21  Bruno Haible  <bruno@clisp.org>
52124
52125         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52126         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52127         (Include): Remove conditionalization.
52128         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52129         (Include): Remove conditionalization.
52130         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52131         (Include): Remove conditionalization.
52132         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52133         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52134         * NEWS: Mention the change.
52135         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52136         via Sergey Poznyakoff <gray@gnu.org.ua>.
52137
52138 2008-12-21  Bruno Haible  <bruno@clisp.org>
52139
52140         * MODULES.html.sh (Extended multibyte and wide character utilities
52141         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52142         wcrtomb, wcsrtombs.
52143         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52144         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52145         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52146         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52147
52148 2008-12-21  Bruno Haible  <bruno@clisp.org>
52149
52150         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52151
52152 2008-12-21  Bruno Haible  <bruno@clisp.org>
52153
52154         * modules/wcsnrtombs-tests: New file.
52155         * tests/test-wcsnrtombs1.sh: New file.
52156         * tests/test-wcsnrtombs2.sh: New file.
52157         * tests/test-wcsnrtombs3.sh: New file.
52158         * tests/test-wcsnrtombs4.sh: New file.
52159         * tests/test-wcsnrtombs.c: New file.
52160
52161         New module 'wcsnrtombs'.
52162         * lib/wchar.in.h (wcsnrtombs): New declaration.
52163         * lib/wcsnrtombs.c: New file.
52164         * lib/wcsrtombs-state.c: New file.
52165         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52166         (internal_state): Remove variable.
52167         * m4/wcsnrtombs.m4: New file.
52168         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52169         compilation units.
52170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52171         HAVE_WCSNRTOMBS.
52172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52173         HAVE_WCSNRTOMBS.
52174         * modules/wcsnrtombs: New file.
52175         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52176         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52177
52178 2008-12-21  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/wcsrtombs-tests: New file.
52181         * tests/test-wcsrtombs1.sh: New file.
52182         * tests/test-wcsrtombs2.sh: New file.
52183         * tests/test-wcsrtombs3.sh: New file.
52184         * tests/test-wcsrtombs4.sh: New file.
52185         * tests/test-wcsrtombs.c: New file.
52186
52187         New module 'wcsrtombs'.
52188         * lib/wchar.in.h (wcsrtombs): New declaration.
52189         * lib/wcsrtombs.c: New file.
52190         * m4/wcsrtombs.m4: New file.
52191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52192         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52194         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52195         * modules/wcsrtombs: New file.
52196         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52197         bugs.
52198
52199 2008-12-21  Bruno Haible  <bruno@clisp.org>
52200
52201         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52202         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52203         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52204         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52205         if not correct.
52206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52207         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52208         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52209         m4/locale-zh.m4, m4/codeset.m4.
52210         * doc/posix-functions/wcrtomb.texi: Document the bug.
52211
52212 2008-12-21  Bruno Haible  <bruno@clisp.org>
52213
52214         Work around a btowc() bug on IRIX 6.5.
52215         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52216         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52217         REPLACE_WTOBC if not.
52218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52219         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52220         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52221
52222 2008-12-21  Bruno Haible  <bruno@clisp.org>
52223
52224         * modules/wcrtomb-tests: New file.
52225         * tests/test-wcrtomb.sh: New file.
52226         * tests/test-wcrtomb.c: New file.
52227
52228         New module 'wcrtomb'.
52229         * lib/wchar.in.h (wcrtomb): New declaration.
52230         * lib/wcrtomb.c: New file.
52231         * m4/wcrtomb.m4: New file.
52232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52233         HAVE_WCRTOMB.
52234         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52235         HAVE_WCRTOMB.
52236         * modules/wcrtomb: New file.
52237         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52238
52239 2008-12-21  Bruno Haible  <bruno@clisp.org>
52240
52241         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52242         * modules/mbsrtowcs (Files): Likewise.
52243         * modules/wctob (Files): Likewise.
52244         * modules/c-strcase-tests (Files): Likewise.
52245         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52246         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52247         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52248         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52249         * modules/vasnprintf-posix-tests (Files): Likewise.
52250
52251 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52252
52253         gitlog-to-changelog: pass all command-line arguments to git-log
52254         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52255         it is sometimes convenient to filter the commits in various ways.
52256         gitlog-to-changelog only allows --since to specify a start date,
52257         but git-log itself supports many other filtering mechanisms.
52258         At the moment, I want to filter by branch name.  Rather than
52259         adding a --branch option to gitlog-to-changelog, it seems more
52260         flexible to simply pass all options directly to git-log and let
52261         git do the work.  Notice that this effectively makes --since a
52262         redundant option for gitlog-to-changelog, but removing it would
52263         require current usage to change since calls would then require
52264         an additional '--'.
52265
52266 2008-12-21  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/mbsnrtowcs-tests: New file.
52269         * tests/test-mbsnrtowcs1.sh: New file.
52270         * tests/test-mbsnrtowcs2.sh: New file.
52271         * tests/test-mbsnrtowcs3.sh: New file.
52272         * tests/test-mbsnrtowcs4.sh: New file.
52273         * tests/test-mbsnrtowcs.c: New file.
52274
52275         New module 'mbsnrtowcs'.
52276         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52277         * lib/mbsnrtowcs.c: New file.
52278         * lib/mbsrtowcs-state.c: New file.
52279         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52280         (internal_state): Remove variable.
52281         * m4/mbsnrtowcs.m4: New file.
52282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52283         compilation units.
52284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52285         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52286         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52287         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52288         * modules/mbsnrtowcs: New file.
52289         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52290         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52291         portability problem.
52292
52293 2008-12-21  Bruno Haible  <bruno@clisp.org>
52294
52295         Work around mbsrtowcs bug.
52296         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52297         (gl_FUNC_MBSRTOWCS): Invoke it.
52298         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52299         m4/locale-zh.m4.
52300         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52301
52302 2008-12-21  Bruno Haible  <bruno@clisp.org>
52303
52304         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52305
52306 2008-12-21  Bruno Haible  <bruno@clisp.org>
52307
52308         Update doc for AIX.
52309         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52310         16-bit wchar_t type.
52311         * doc/posix-functions/btowc.texi: Likewise.
52312         * doc/posix-functions/fgetwc.texi: Likewise.
52313         * doc/posix-functions/fgetws.texi: Likewise.
52314         * doc/posix-functions/fputwc.texi: Likewise.
52315         * doc/posix-functions/fputws.texi: Likewise.
52316         * doc/posix-functions/fwide.texi: Likewise.
52317         * doc/posix-functions/fwprintf.texi: Likewise.
52318         * doc/posix-functions/fwscanf.texi: Likewise.
52319         * doc/posix-functions/getwchar.texi: Likewise.
52320         * doc/posix-functions/getwc.texi: Likewise.
52321         * doc/posix-functions/iswalnum.texi: Likewise.
52322         * doc/posix-functions/iswalpha.texi: Likewise.
52323         * doc/posix-functions/iswblank.texi: Likewise.
52324         * doc/posix-functions/iswcntrl.texi: Likewise.
52325         * doc/posix-functions/iswctype.texi: Likewise.
52326         * doc/posix-functions/iswdigit.texi: Likewise.
52327         * doc/posix-functions/iswgraph.texi: Likewise.
52328         * doc/posix-functions/iswlower.texi: Likewise.
52329         * doc/posix-functions/iswprint.texi: Likewise.
52330         * doc/posix-functions/iswpunct.texi: Likewise.
52331         * doc/posix-functions/iswspace.texi: Likewise.
52332         * doc/posix-functions/iswupper.texi: Likewise.
52333         * doc/posix-functions/iswxdigit.texi: Likewise.
52334         * doc/posix-functions/mbrtowc.texi: Likewise.
52335         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52336         * doc/posix-functions/mbstowcs.texi: Likewise.
52337         * doc/posix-functions/mbtowc.texi: Likewise.
52338         * doc/posix-functions/putwchar.texi: Likewise.
52339         * doc/posix-functions/putwc.texi: Likewise.
52340         * doc/posix-functions/swprintf.texi: Likewise.
52341         * doc/posix-functions/tolower.texi: Likewise.
52342         * doc/posix-functions/toupper.texi: Likewise.
52343         * doc/posix-functions/towctrans.texi: Likewise.
52344         * doc/posix-functions/ungetwc.texi: Likewise.
52345         * doc/posix-functions/vswprintf.texi: Likewise.
52346         * doc/posix-functions/wcrtomb.texi: Likewise.
52347         * doc/posix-functions/wcscat.texi: Likewise.
52348         * doc/posix-functions/wcschr.texi: Likewise.
52349         * doc/posix-functions/wcscmp.texi: Likewise.
52350         * doc/posix-functions/wcscoll.texi: Likewise.
52351         * doc/posix-functions/wcscpy.texi: Likewise.
52352         * doc/posix-functions/wcscspn.texi: Likewise.
52353         * doc/posix-functions/wcsftime.texi: Likewise.
52354         * doc/posix-functions/wcslen.texi: Likewise.
52355         * doc/posix-functions/wcsncat.texi: Likewise.
52356         * doc/posix-functions/wcsncmp.texi: Likewise.
52357         * doc/posix-functions/wcsncpy.texi: Likewise.
52358         * doc/posix-functions/wcspbrk.texi: Likewise.
52359         * doc/posix-functions/wcsrchr.texi: Likewise.
52360         * doc/posix-functions/wcsrtombs.texi: Likewise.
52361         * doc/posix-functions/wcsspn.texi: Likewise.
52362         * doc/posix-functions/wcsstr.texi: Likewise.
52363         * doc/posix-functions/wcstod.texi: Likewise.
52364         * doc/posix-functions/wcstof.texi: Likewise.
52365         * doc/posix-functions/wcstoimax.texi: Likewise.
52366         * doc/posix-functions/wcstok.texi: Likewise.
52367         * doc/posix-functions/wcstold.texi: Likewise.
52368         * doc/posix-functions/wcstoll.texi: Likewise.
52369         * doc/posix-functions/wcstol.texi: Likewise.
52370         * doc/posix-functions/wcstombs.texi: Likewise.
52371         * doc/posix-functions/wcstoull.texi: Likewise.
52372         * doc/posix-functions/wcstoul.texi: Likewise.
52373         * doc/posix-functions/wcstoumax.texi: Likewise.
52374         * doc/posix-functions/wcswidth.texi: Likewise.
52375         * doc/posix-functions/wcsxfrm.texi: Likewise.
52376         * doc/posix-functions/wctob.texi: Likewise.
52377         * doc/posix-functions/wctomb.texi: Likewise.
52378         * doc/posix-functions/wctrans.texi: Likewise.
52379         * doc/posix-functions/wctype.texi: Likewise.
52380         * doc/posix-functions/wcwidth.texi: Likewise.
52381         * doc/posix-functions/wmemchr.texi: Likewise.
52382         * doc/posix-functions/wmemcmp.texi: Likewise.
52383         * doc/posix-functions/wmemcpy.texi: Likewise.
52384         * doc/posix-functions/wmemmove.texi: Likewise.
52385         * doc/posix-functions/wmemset.texi: Likewise.
52386         * doc/posix-functions/wprintf.texi: Likewise.
52387         * doc/posix-functions/wscanf.texi: Likewise.
52388
52389 2008-12-21  Bruno Haible  <bruno@clisp.org>
52390
52391         Update doc for HP-UX 11.11.
52392         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52393         in HP-UX version 11.00, not in all versions of HP-UX 11.
52394         * doc/posix-functions/fwide.texi: Likewise.
52395         * doc/posix-functions/fwprintf.texi: Likewise.
52396         * doc/posix-functions/fwscanf.texi: Likewise.
52397         * doc/posix-functions/inet_ntop.texi: Likewise.
52398         * doc/posix-functions/inet_pton.texi: Likewise.
52399         * doc/posix-functions/mbrlen.texi: Likewise.
52400         * doc/posix-functions/mbrtowc.texi: Likewise.
52401         * doc/posix-functions/mbsinit.texi: Likewise.
52402         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52403         * doc/posix-functions/swprintf.texi: Likewise.
52404         * doc/posix-functions/swscanf.texi: Likewise.
52405         * doc/posix-functions/towctrans.texi: Likewise.
52406         * doc/posix-functions/vfwprintf.texi: Likewise.
52407         * doc/posix-functions/vswprintf.texi: Likewise.
52408         * doc/posix-functions/vwprintf.texi: Likewise.
52409         * doc/posix-functions/wcrtomb.texi: Likewise.
52410         * doc/posix-functions/wcsrtombs.texi: Likewise.
52411         * doc/posix-functions/wcsstr.texi: Likewise.
52412         * doc/posix-functions/wctob.texi: Likewise.
52413         * doc/posix-functions/wctrans.texi: Likewise.
52414         * doc/posix-functions/wmemchr.texi: Likewise.
52415         * doc/posix-functions/wmemcmp.texi: Likewise.
52416         * doc/posix-functions/wmemcpy.texi: Likewise.
52417         * doc/posix-functions/wmemmove.texi: Likewise.
52418         * doc/posix-functions/wmemset.texi: Likewise.
52419         * doc/posix-functions/wprintf.texi: Likewise.
52420         * doc/posix-functions/wscanf.texi: Likewise.
52421
52422 2008-12-21  Bruno Haible  <bruno@clisp.org>
52423
52424         Work around a portability problem.
52425         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52426         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52427
52428 2008-12-20  Bruno Haible  <bruno@clisp.org>
52429
52430         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52431         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52432         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52434         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52435
52436         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52437         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52438         set.
52439         (GNULIB_defined_mbstate_t): New macro.
52440         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52441         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52442         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52443         reuses the system's mbrtowc function but works around the bugs.
52444         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52445         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52446         macros.
52447         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52448         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52449         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52450         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52451         REPLACE_MBSINIT if mbsinit needs to be overridden.
52452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52453         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52454         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52455         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52456         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52457         m4/locale-zh.m4.
52458         (Depends): Add mbsinit.
52459         * modules/mbsinit (Depends): Add mbrtowc.
52460         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52461
52462 2008-12-20  Bruno Haible  <bruno@clisp.org>
52463
52464         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52465         so that there are no conversion errors on AIX.
52466         * tests/test-mbsrtowcs.c (main): LIkewise.
52467
52468 2008-12-20  Bruno Haible  <bruno@clisp.org>
52469
52470         Work around wctob bug on Solaris <= 9.
52471         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52472         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52474         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52475         * modules/wctob (Files): Add m4/locale-fr.m4.
52476         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52477
52478 2008-12-20  Bruno Haible  <bruno@clisp.org>
52479
52480         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52481         /dev/null.
52482         * tests/test-select-in.sh: Likewise.
52483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52484
52485 2008-12-20  Bruno Haible  <bruno@clisp.org>
52486
52487         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52488         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52489         Cygwin 1.5.x.
52490
52491 2008-12-20  Bruno Haible  <bruno@clisp.org>
52492
52493         Ensure mbstate_t is defined on HP-UX 11.11.
52494         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52495         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52496         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52497         AC_USE_SYSTEM_EXTENSIONS.
52498         * modules/fnmatch (Depends-on): Add extensions.
52499         * modules/mbrlen (Depends-on): Likewise.
52500         * modules/mbrtowc (Depends-on): Likewise.
52501         * modules/mbsinit (Depends-on): Likewise.
52502         * modules/mbsrtowcs (Depends-on): Likewise.
52503         * modules/mbswidth (Depends-on): Likewise.
52504         * modules/quotearg (Depends-on): Likewise.
52505         * modules/strftime (Depends-on): Likewise.
52506
52507 2008-12-20  Bruno Haible  <bruno@clisp.org>
52508
52509         Ensure wctob is declared on IRIX 6.5.
52510         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52511         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52512         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52514         of HAVE_WCTOB.
52515         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52516         HAVE_WCTOB.
52517         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52518
52519 2008-12-19  Bruno Haible  <bruno@clisp.org>
52520
52521         * modules/mbsrtowcs-tests: New file.
52522         * tests/test-mbsrtowcs1.sh: New file.
52523         * tests/test-mbsrtowcs2.sh: New file.
52524         * tests/test-mbsrtowcs3.sh: New file.
52525         * tests/test-mbsrtowcs4.sh: New file.
52526         * tests/test-mbsrtowcs.c: New file.
52527
52528         New module 'mbsrtowcs'.
52529         * lib/wchar.in.h (mbsrtowcs): New declaration.
52530         * lib/mbsrtowcs.c: New file.
52531         * m4/mbsrtowcs.m4: New file.
52532         * modules/mbsrtowcs: New file.
52533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52534         HAVE_MBSRTOWCS.
52535         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52536         HAVE_MBSRTOWCS.
52537         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52538
52539 2008-12-19  Bruno Haible  <bruno@clisp.org>
52540
52541         New module 'mbrlen'.
52542         * lib/wchar.in.h (mbrlen): New declaration.
52543         * lib/mbrlen.c: New file.
52544         * m4/mbrlen.m4: New file.
52545         * modules/mbrlen: New file.
52546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52547         HAVE_MBRLEN.
52548         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52549         HAVE_MBRLEN.
52550         * doc/posix-functions/mbrlen.texi: Document the new module.
52551
52552 2008-12-19  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52555         * modules/mbrtowc (Depends-on): Add verify.
52556         Suggested by Paul Eggert.
52557
52558 2008-12-18  Bruno Haible  <bruno@clisp.org>
52559
52560         * modules/mbsinit-tests: New file.
52561         * tests/test-mbsinit.sh: New file.
52562         * tests/test-mbsinit.c: New file.
52563
52564 2008-12-18  Bruno Haible  <bruno@clisp.org>
52565
52566         * modules/mbrtowc-tests: New file.
52567         * tests/test-mbrtowc1.sh: New file.
52568         * tests/test-mbrtowc2.sh: New file.
52569         * tests/test-mbrtowc3.sh: New file.
52570         * tests/test-mbrtowc4.sh: New file.
52571         * tests/test-mbrtowc.c: New file.
52572
52573         New module 'mbrtowc'.
52574         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52575         mbsinit and mbrtowc.
52576         (mbrtowc): New declaration.
52577         * lib/mbrtowc.c: New file.
52578         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52579         * modules/mbrtowc: New file.
52580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52581         HAVE_MBRTOWC.
52582         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52583         HAVE_MBRTOWC.
52584         * doc/posix-functions/mbrtowc.texi: Document the new module.
52585
52586 2008-12-18  Bruno Haible  <bruno@clisp.org>
52587
52588         New module 'wctob'.
52589         * lib/wchar.in.h (wctob): New declaration.
52590         * lib/wctob.c: New file.
52591         * m4/wctob.m4: New file.
52592         * modules/wctob: New file.
52593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52594         HAVE_WCTOB.
52595         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52596         * doc/posix-functions/wctob.texi: Document the new module.
52597
52598 2008-12-18  Bruno Haible  <bruno@clisp.org>
52599
52600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52601         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52602
52603 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52604
52605         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52606         G. Christensen" <tgc@jupiterrise.com>.
52607
52608         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52609         G. Christensen" <tgc@jupiterrise.com>.
52610
52611         * lib/flock.c: Need to include string.h.  Reported by "Tom
52612         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52613         <ebb9@byu.net>.
52614
52615 2008-12-18  Bruno Haible  <bruno@clisp.org>
52616
52617         * m4/locale-ja.m4: New file, from GNU gettext.
52618
52619 2008-12-17  Bruno Haible  <bruno@clisp.org>
52620
52621         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52622         Suggested by Eric Blake.
52623
52624 2008-12-17  Bruno Haible  <bruno@clisp.org>
52625
52626         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52627
52628 2008-12-17  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52631         * modules/mbsinit (Depends-on): Add verify.
52632         Suggested by Paul Eggert.
52633
52634 2008-12-17  Bruno Haible  <bruno@clisp.org>
52635
52636         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52637         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52638         gl_FUNC_MBRTOWC.
52639         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52640         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52641         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52642         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52643         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52644         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52645         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52646         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52647         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52648         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52649         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52650         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52651         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52652         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52653         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52654         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52655         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52656         * modules/trim (configure.ac): Likewise.
52657
52658 2008-12-17  Bruno Haible  <bruno@clisp.org>
52659
52660         * modules/btowc-tests: New file.
52661         * tests/test-btowc1.sh: New file.
52662         * tests/test-btowc2.sh: New file.
52663         * tests/test-btowc.c: New file.
52664
52665         New module 'btowc'.
52666         * lib/wchar.in.h (btowc): New declaration.
52667         * lib/btowc.c: New file.
52668         * m4/btowc.m4: New file.
52669         * modules/btowc: New file.
52670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52671         HAVE_BTOWC.
52672         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52673         * doc/posix-functions/btowc.texi: Document the new module.
52674
52675 2008-12-17  Bruno Haible  <bruno@clisp.org>
52676
52677         New module 'mbsinit'.
52678         * lib/wchar.in.h (mbsinit): New declaration.
52679         * lib/mbsinit.c: New file.
52680         * m4/mbsinit.m4: New file.
52681         * modules/mbsinit: New file.
52682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52683         HAVE_MBSINIT.
52684         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52685         HAVE_MBSINIT.
52686         * doc/posix-functions/mbsinit.texi: Document the new module.
52687
52688 2008-12-16  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/unistd.in.h: Add comment.
52691         * tests/test-environ.c: Don't include <stdlib.h>.
52692
52693 2008-12-16  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/parse-duration.h (parse_duration): Document return value
52696         convention.
52697         * lib/parse-duration.c: Include specification header first. Add
52698         comments.
52699         (_): Remove macro.
52700         (parse_year_month_day, parse_hour_minute_second): Move side effects
52701         outside of strchr call.
52702         (parse_non_iso8601): Move side effects outside of isspace call.
52703         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52704         call.
52705
52706 2008-12-16  Bruno Haible  <bruno@clisp.org>
52707
52708         * tests/test-parse-duration.sh: Produce no output when the test
52709         succeeds.
52710
52711 2008-12-16  Bruno Haible  <bruno@clisp.org>
52712
52713         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52714         expressions.
52715
52716 2008-12-15  Bruno Haible  <bruno@clisp.org>
52717
52718         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52719         * doc/glibc-functions/flistxattr.texi: Likewise.
52720         * doc/glibc-functions/fopencookie.texi: Likewise.
52721         * doc/glibc-functions/fremovexattr.texi: Likewise.
52722         * doc/glibc-functions/fsetxattr.texi: Likewise.
52723         * doc/glibc-functions/getxattr.texi: Likewise.
52724         * doc/glibc-functions/lgetxattr.texi: Likewise.
52725         * doc/glibc-functions/listxattr.texi: Likewise.
52726         * doc/glibc-functions/llistxattr.texi: Likewise.
52727         * doc/glibc-functions/lremovexattr.texi: Likewise.
52728         * doc/glibc-functions/lsetxattr.texi: Likewise.
52729         * doc/glibc-functions/removexattr.texi: Likewise.
52730         * doc/glibc-functions/setxattr.texi: Likewise.
52731         * doc/posix-functions/open_memstream.texi: Likewise.
52732
52733 2008-12-15  Eric Blake  <ebb9@byu.net>
52734
52735         Update doc for cygwin 1.7.
52736         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52737         functions.
52738         * doc/posix-functions/fchmodat.texi: Likewise.
52739         * doc/posix-functions/fchownat.texi: Likewise.
52740         * doc/posix-functions/fdopendir.texi: Likewise.
52741         * doc/posix-functions/fmemopen.texi: Likewise.
52742         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52743         * doc/posix-functions/fstatat.texi: Likewise.
52744         * doc/posix-functions/futimens.texi: Likewise.
52745         * doc/posix-functions/gai_strerror.texi: Likewise.
52746         * doc/posix-functions/getaddrinfo.texi: Likewise.
52747         * doc/posix-functions/getnameinfo.texi: Likewise.
52748         * doc/posix-functions/if_freenameindex.texi: Likewise.
52749         * doc/posix-functions/if_indextoname.texi: Likewise.
52750         * doc/posix-functions/if_nameindex.texi: Likewise.
52751         * doc/posix-functions/if_nametoindex.texi: Likewise.
52752         * doc/posix-functions/insque.texi: Likewise.
52753         * doc/posix-functions/linkat.texi: Likewise.
52754         * doc/posix-functions/llrint.texi: Likewise.
52755         * doc/posix-functions/llrintf.texi: Likewise.
52756         * doc/posix-functions/llrintl.texi: Likewise.
52757         * doc/posix-functions/lockf.texi: Likewise.
52758         * doc/posix-functions/lrintl.texi: Likewise.
52759         * doc/posix-functions/mkdirat.texi: Likewise.
52760         * doc/posix-functions/mkfifoat.texi: Likewise.
52761         * doc/posix-functions/mknodat.texi: Likewise.
52762         * doc/posix-functions/mq_close.texi: Likewise.
52763         * doc/posix-functions/mq_getattr.texi: Likewise.
52764         * doc/posix-functions/mq_notify.texi: Likewise.
52765         * doc/posix-functions/mq_open.texi: Likewise.
52766         * doc/posix-functions/mq_receive.texi: Likewise.
52767         * doc/posix-functions/mq_send.texi: Likewise.
52768         * doc/posix-functions/mq_setattr.texi: Likewise.
52769         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52770         * doc/posix-functions/mq_timedsend.texi: Likewise.
52771         * doc/posix-functions/mq_unlink.texi: Likewise.
52772         * doc/posix-functions/open_memstream.texi: Likewise.
52773         * doc/posix-functions/openat.texi: Likewise.
52774         * doc/posix-functions/posix_fadvise.texi: Likewise.
52775         * doc/posix-functions/posix_fallocate.texi: Likewise.
52776         * doc/posix-functions/posix_madvise.texi: Likewise.
52777         * doc/posix-functions/posix_memalign.texi: Likewise.
52778         * doc/posix-functions/posix_openpt.texi: Likewise.
52779         * doc/posix-functions/readlinkat.texi: Likewise.
52780         * doc/posix-functions/remque.texi: Likewise.
52781         * doc/posix-functions/renameat.texi: Likewise.
52782         * doc/posix-functions/rintl.texi: Likewise.
52783         * doc/posix-functions/sem_unlink.texi: Likewise.
52784         * doc/posix-functions/shm_open.texi: Likewise.
52785         * doc/posix-functions/shm_unlink.texi: Likewise.
52786         * doc/posix-functions/signgam.texi: Likewise.
52787         * doc/posix-functions/sigset.texi: Likewise.
52788         * doc/posix-functions/stpcpy.texi: Likewise.
52789         * doc/posix-functions/stpncpy.texi: Likewise.
52790         * doc/posix-functions/strerror.texi: Likewise.
52791         * doc/posix-functions/strtod.texi: Likewise.
52792         * doc/posix-functions/symlinkat.texi: Likewise.
52793         * doc/posix-functions/unlinkat.texi: Likewise.
52794         * doc/posix-functions/utimensat.texi: Likewise.
52795         * doc/glibc-functions/bindresvport.texi: Likewise.
52796         * doc/glibc-functions/dn_expand.texi: Likewise.
52797         * doc/glibc-functions/exp10.texi: Likewise.
52798         * doc/glibc-functions/exp10f.texi: Likewise.
52799         * doc/glibc-functions/fgetxattr.texi: Likewise.
52800         * doc/glibc-functions/flistxattr.texi: Likewise.
52801         * doc/glibc-functions/fopencookie.texi: Likewise.
52802         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52803         * doc/glibc-functions/fremovexattr.texi: Likewise.
52804         * doc/glibc-functions/fsetxattr.texi: Likewise.
52805         * doc/glibc-functions/getifaddrs.texi: Likewise.
52806         * doc/glibc-functions/getxattr.texi: Likewise.
52807         * doc/glibc-functions/lgetxattr.texi: Likewise.
52808         * doc/glibc-functions/listxattr.texi: Likewise.
52809         * doc/glibc-functions/llistxattr.texi: Likewise.
52810         * doc/glibc-functions/lremovexattr.texi: Likewise.
52811         * doc/glibc-functions/lsetxattr.texi: Likewise.
52812         * doc/glibc-functions/pow10.texi: Likewise.
52813         * doc/glibc-functions/pow10f.texi: Likewise.
52814         * doc/glibc-functions/rcmd_af.texi: Likewise.
52815         * doc/glibc-functions/removexattr.texi: Likewise.
52816         * doc/glibc-functions/res_init.texi: Likewise.
52817         * doc/glibc-functions/res_mkquery.texi: Likewise.
52818         * doc/glibc-functions/res_query.texi: Likewise.
52819         * doc/glibc-functions/res_querydomain.texi: Likewise.
52820         * doc/glibc-functions/res_send.texi: Likewise.
52821         * doc/glibc-functions/rresvport_af.texi: Likewise.
52822         * doc/glibc-functions/setxattr.texi: Likewise.
52823         * doc/glibc-functions/strcasestr.texi: Likewise.
52824
52825 2008-12-15  Bruno Haible  <bruno@clisp.org>
52826
52827         Fix compilation error on OSF/1 4.0.
52828         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52829         <sys/time.h>, simply delegate to the system header.
52830         Reported by Daniel Richard G. <oss@teragram.com>.
52831
52832 2008-12-15  Bruno Haible  <bruno@clisp.org>
52833
52834         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52835         * doc/posix-functions/fchmodat.texi: Likewise.
52836         * doc/posix-functions/fchownat.texi: Likewise.
52837         * doc/posix-functions/fdopendir.texi: Likewise.
52838         * doc/posix-functions/fstatat.texi: Likewise.
52839         * doc/posix-functions/mkdirat.texi: Likewise.
52840         * doc/posix-functions/unlinkat.texi: Likewise.
52841
52842 2008-12-14  Bruno Haible  <bruno@clisp.org>
52843
52844         Update doc for POSIX:2008.
52845         * doc/posix-functions/faccessat.texi: New file.
52846         * doc/posix-functions/fchmodat.texi: New file.
52847         * doc/posix-functions/fchownat.texi: New file.
52848         * doc/posix-functions/fdopendir.texi: New file.
52849         * doc/posix-functions/fstatat.texi: New file.
52850         * doc/posix-functions/futimens.texi: New file.
52851         * doc/posix-functions/linkat.texi: New file.
52852         * doc/posix-functions/mkdirat.texi: New file.
52853         * doc/posix-functions/mkfifoat.texi: New file.
52854         * doc/posix-functions/mknodat.texi: New file.
52855         * doc/posix-functions/open_wmemstream.texi: New file.
52856         * doc/posix-functions/openat.texi: New file.
52857         * doc/posix-functions/psiginfo.texi: New file.
52858         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52859         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52860         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52861         * doc/posix-functions/readlinkat.texi: New file.
52862         * doc/posix-functions/renameat.texi: New file.
52863         * doc/posix-functions/strerror_l.texi: New file.
52864         * doc/posix-functions/symlinkat.texi: New file.
52865         * doc/posix-functions/unlinkat.texi: New file.
52866         * doc/posix-functions/utimensat.texi: New file.
52867         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52868
52869 2008-12-14  Bruno Haible  <bruno@clisp.org>
52870
52871         Update doc for POSIX:2008.
52872         * doc/posix-functions/alphasort.texi: Renamed from
52873         doc/glibc-functions/alphasort.texi.
52874         * doc/posix-functions/dirfd.texi: Renamed from
52875         doc/glibc-functions/dirfd.texi.
52876         * doc/posix-functions/dprintf.texi: Renamed from
52877         doc/glibc-functions/dprintf.texi.
52878         * doc/posix-functions/duplocale.texi: Renamed from
52879         doc/glibc-functions/duplocale.texi.
52880         * doc/posix-functions/fexecve.texi: Renamed from
52881         doc/glibc-functions/fexecve.texi.
52882         * doc/posix-functions/fmemopen.texi: Renamed from
52883         doc/glibc-functions/fmemopen.texi.
52884         * doc/posix-functions/freelocale.texi: Renamed from
52885         doc/glibc-functions/freelocale.texi.
52886         * doc/posix-functions/getdate_err.texi: Renamed from
52887         doc/glibc-functions/getdate_err.texi.
52888         * doc/posix-functions/isalnum_l.texi: Renamed from
52889         doc/glibc-functions/isalnum_l.texi.
52890         * doc/posix-functions/isalpha_l.texi: Renamed from
52891         doc/glibc-functions/isalpha_l.texi.
52892         * doc/posix-functions/isblank_l.texi: Renamed from
52893         doc/glibc-functions/isblank_l.texi.
52894         * doc/posix-functions/iscntrl_l.texi: Renamed from
52895         doc/glibc-functions/iscntrl_l.texi.
52896         * doc/posix-functions/isdigit_l.texi: Renamed from
52897         doc/glibc-functions/isdigit_l.texi.
52898         * doc/posix-functions/isgraph_l.texi: Renamed from
52899         doc/glibc-functions/isgraph_l.texi.
52900         * doc/posix-functions/islower_l.texi: Renamed from
52901         doc/glibc-functions/islower_l.texi.
52902         * doc/posix-functions/isprint_l.texi: Renamed from
52903         doc/glibc-functions/isprint_l.texi.
52904         * doc/posix-functions/ispunct_l.texi: Renamed from
52905         doc/glibc-functions/ispunct_l.texi.
52906         * doc/posix-functions/isspace_l.texi: Renamed from
52907         doc/glibc-functions/isspace_l.texi.
52908         * doc/posix-functions/isupper_l.texi: Renamed from
52909         doc/glibc-functions/isupper_l.texi.
52910         * doc/posix-functions/iswalnum_l.texi: Renamed from
52911         doc/glibc-functions/iswalnum_l.texi.
52912         * doc/posix-functions/iswalpha_l.texi: Renamed from
52913         doc/glibc-functions/iswalpha_l.texi.
52914         * doc/posix-functions/iswblank_l.texi: Renamed from
52915         doc/glibc-functions/iswblank_l.texi.
52916         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52917         doc/glibc-functions/iswcntrl_l.texi.
52918         * doc/posix-functions/iswctype_l.texi: Renamed from
52919         doc/glibc-functions/iswctype_l.texi.
52920         * doc/posix-functions/iswdigit_l.texi: Renamed from
52921         doc/glibc-functions/iswdigit_l.texi.
52922         * doc/posix-functions/iswgraph_l.texi: Renamed from
52923         doc/glibc-functions/iswgraph_l.texi.
52924         * doc/posix-functions/iswlower_l.texi: Renamed from
52925         doc/glibc-functions/iswlower_l.texi.
52926         * doc/posix-functions/iswprint_l.texi: Renamed from
52927         doc/glibc-functions/iswprint_l.texi.
52928         * doc/posix-functions/iswpunct_l.texi: Renamed from
52929         doc/glibc-functions/iswpunct_l.texi.
52930         * doc/posix-functions/iswspace_l.texi: Renamed from
52931         doc/glibc-functions/iswspace_l.texi.
52932         * doc/posix-functions/iswupper_l.texi: Renamed from
52933         doc/glibc-functions/iswupper_l.texi.
52934         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52935         doc/glibc-functions/iswxdigit_l.texi.
52936         * doc/posix-functions/isxdigit_l.texi: Renamed from
52937         doc/glibc-functions/isxdigit_l.texi.
52938         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52939         doc/glibc-functions/mbsnrtowcs.texi.
52940         * doc/posix-functions/mkdtemp.texi: Renamed from
52941         doc/glibc-functions/mkdtemp.texi.
52942         * doc/posix-functions/newlocale.texi: Renamed from
52943         doc/glibc-functions/newlocale.texi.
52944         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52945         doc/glibc-functions/nl_langinfo_l.texi.
52946         * doc/posix-functions/open_memstream.texi: Renamed from
52947         doc/glibc-functions/open_memstream.texi.
52948         * doc/posix-functions/opterr.texi: Renamed from
52949         doc/glibc-functions/opterr.texi.
52950         * doc/posix-functions/optind.texi: Renamed from
52951         doc/glibc-functions/optind.texi.
52952         * doc/posix-functions/optopt.texi: Renamed from
52953         doc/glibc-functions/optopt.texi.
52954         * doc/posix-functions/psignal.texi: Renamed from
52955         doc/glibc-functions/psignal.texi.
52956         * doc/posix-functions/scandir.texi: Renamed from
52957         doc/glibc-functions/scandir.texi.
52958         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52959         doc/glibc-functions/sched_get_priority_min.texi.
52960         * doc/posix-functions/signgam.texi: Renamed from
52961         doc/glibc-functions/signgam.texi.
52962         * doc/posix-functions/stpcpy.texi: Renamed from
52963         doc/glibc-functions/stpcpy.texi.
52964         * doc/posix-functions/stpncpy.texi: Renamed from
52965         doc/glibc-functions/stpncpy.texi.
52966         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52967         doc/glibc-functions/strcasecmp_l.texi.
52968         * doc/posix-functions/strcoll_l.texi: Renamed from
52969         doc/glibc-functions/strcoll_l.texi.
52970         * doc/posix-functions/strfmon_l.texi: Renamed from
52971         doc/glibc-functions/strfmon_l.texi.
52972         * doc/posix-functions/strftime_l.texi: Renamed from
52973         doc/glibc-functions/strftime_l.texi.
52974         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52975         doc/glibc-functions/strncasecmp_l.texi.
52976         * doc/posix-functions/strndup.texi: Renamed from
52977         doc/glibc-functions/strndup.texi.
52978         * doc/posix-functions/strnlen.texi: Renamed from
52979         doc/glibc-functions/strnlen.texi.
52980         * doc/posix-functions/strsignal.texi: Renamed from
52981         doc/glibc-functions/strsignal.texi.
52982         * doc/posix-functions/strxfrm_l.texi: Renamed from
52983         doc/glibc-functions/strxfrm_l.texi.
52984         * doc/posix-functions/timer_gettime.texi: Renamed from
52985         doc/glibc-functions/timer_gettime.texi.
52986         * doc/posix-functions/tolower_l.texi: Renamed from
52987         doc/glibc-functions/tolower_l.texi.
52988         * doc/posix-functions/toupper_l.texi: Renamed from
52989         doc/glibc-functions/toupper_l.texi.
52990         * doc/posix-functions/towctrans_l.texi: Renamed from
52991         doc/glibc-functions/towctrans_l.texi.
52992         * doc/posix-functions/towlower_l.texi: Renamed from
52993         doc/glibc-functions/towlower_l.texi.
52994         * doc/posix-functions/towupper_l.texi: Renamed from
52995         doc/glibc-functions/towupper_l.texi.
52996         * doc/posix-functions/uselocale.texi: Renamed from
52997         doc/glibc-functions/uselocale.texi.
52998         * doc/posix-functions/vdprintf.texi: Renamed from
52999         doc/glibc-functions/vdprintf.texi.
53000         * doc/posix-functions/wcpcpy.texi:
53001         Renamed from doc/glibc-functions/wcpcpy.texi.
53002         * doc/posix-functions/wcpncpy.texi: Renamed from
53003         doc/glibc-functions/wcpncpy.texi.
53004         * doc/posix-functions/wcscasecmp.texi: Renamed from
53005         doc/glibc-functions/wcscasecmp.texi.
53006         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53007         doc/glibc-functions/wcscasecmp_l.texi.
53008         * doc/posix-functions/wcscoll_l.texi: Renamed from
53009         doc/glibc-functions/wcscoll_l.texi.
53010         * doc/posix-functions/wcsdup.texi: Renamed from
53011         doc/glibc-functions/wcsdup.texi.
53012         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53013         doc/glibc-functions/wcsncasecmp.texi.
53014         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53015         doc/glibc-functions/wcsncasecmp_l.texi.
53016         * doc/posix-functions/wcsnlen.texi: Renamed from
53017         doc/glibc-functions/wcsnlen.texi.
53018         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53019         doc/glibc-functions/wcsnrtombs.texi.
53020         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53021         doc/glibc-functions/wcsxfrm_l.texi.
53022         * doc/posix-functions/wctrans_l.texi: Renamed from
53023         doc/glibc-functions/wctrans_l.texi.
53024         * doc/posix-functions/wctype_l.texi: Renamed from
53025         doc/glibc-functions/wctype_l.texi.
53026         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53027         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53028         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53029         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53030         these subsections.
53031         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53032         Remove sections.
53033
53034 2008-12-14  Bruno Haible  <bruno@clisp.org>
53035
53036         Update doc for POSIX:2008.
53037         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53038
53039 2008-12-14  Bruno Haible  <bruno@clisp.org>
53040
53041         Update doc for POSIX:2008.
53042         * doc/pastposix-functions/bcmp.texi: Renamed from
53043         doc/posix-functions/bcmp.texi.
53044         * doc/pastposix-functions/bcopy.texi: Renamed from
53045         doc/posix-functions/bcopy.texi.
53046         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53047         doc/posix-functions/bsd_signal.texi.
53048         * doc/pastposix-functions/bzero.texi: Renamed from
53049         doc/posix-functions/bzero.texi.
53050         * doc/pastposix-functions/ecvt.texi: Renamed from
53051         doc/posix-functions/ecvt.texi.
53052         * doc/pastposix-functions/fcvt.texi: Renamed from
53053         doc/posix-functions/fcvt.texi.
53054         * doc/pastposix-functions/ftime.texi: Renamed from
53055         doc/posix-functions/ftime.texi.
53056         * doc/pastposix-functions/gcvt.texi: Renamed from
53057         doc/posix-functions/gcvt.texi.
53058         * doc/pastposix-functions/getcontext.texi: Renamed from
53059         doc/posix-functions/getcontext.texi.
53060         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53061         doc/posix-functions/gethostbyaddr.texi.
53062         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53063         doc/posix-functions/gethostbyname.texi.
53064         * doc/pastposix-functions/getwd.texi: Renamed from
53065         doc/posix-functions/getwd.texi.
53066         * doc/pastposix-functions/h_errno.texi: Renamed from
53067         doc/posix-functions/h_errno.texi.
53068         * doc/pastposix-functions/index.texi: Renamed from
53069         doc/posix-functions/index.texi.
53070         * doc/pastposix-functions/makecontext.texi: Renamed from
53071         doc/posix-functions/makecontext.texi.
53072         * doc/pastposix-functions/mktemp.texi: Renamed from
53073         doc/posix-functions/mktemp.texi.
53074         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53075         doc/posix-functions/pthread_attr_getstackaddr.texi.
53076         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53077         doc/posix-functions/pthread_attr_setstackaddr.texi.
53078         * doc/pastposix-functions/rindex.texi: Renamed from
53079         doc/posix-functions/rindex.texi.
53080         * doc/pastposix-functions/scalb.texi: Renamed from
53081         doc/posix-functions/scalb.texi.
53082         * doc/pastposix-functions/setcontext.texi: Renamed from
53083         doc/posix-functions/setcontext.texi.
53084         * doc/pastposix-functions/swapcontext.texi: Renamed from
53085         doc/posix-functions/swapcontext.texi.
53086         * doc/pastposix-functions/ualarm.texi: Renamed from
53087         doc/posix-functions/ualarm.texi.
53088         * doc/pastposix-functions/usleep.texi: Renamed from
53089         doc/posix-functions/usleep.texi.
53090         * doc/pastposix-functions/vfork.texi: Renamed from
53091         doc/posix-functions/vfork.texi.
53092         * doc/pastposix-functions/wcswcs.texi: Renamed from
53093         doc/posix-functions/wcswcs.texi.
53094         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53095         (Function Substitutes): Update.
53096
53097 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53098
53099         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53100         m4/strerror.m4.
53101
53102 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53103             Bruno Haible  <bruno@clisp.org>
53104
53105         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53106
53107 2008-12-13  Bruno Haible  <bruno@clisp.org>
53108
53109         * modules/strtoull (Depends-on): Remove unistd.
53110
53111 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53112
53113         * modules/strtoull (Depends-on): Add stdlib.
53114
53115 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53116
53117         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53118
53119 2008-12-10  Jim Meyering  <meyering@redhat.com>
53120
53121         gl_ASSERT: don't say assertions are disabled when they're not
53122         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53123         "checking whether to enable assertions... no", when they are in
53124         fact enabled.  This is solely a bug in the output of configure.
53125         In spite of saying "no", NDEBUG was not defined in that case.
53126         Also, as noted by Eric Blake, leave assertions enabled upon
53127         --enable-assert=INVALID.
53128
53129 2008-12-10  Bruno Haible  <bruno@clisp.org>
53130
53131         Change MODULES.html to refer to POSIX:2008 where possible.
53132         * MODULES.html.sh (POSIX2008_URL): New variable.
53133         (posix_headers): Remove sys/timeb, ucontext.
53134         (posix2001_headers): New variable.
53135         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53136         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53137         index, makecontext, mktemp, pthread_attr_getstackaddr,
53138         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53139         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53140         (posix2001_functions): New variable.
53141         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53142         otherwise.
53143
53144 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53145
53146         add missing include to parse-duration.c
53147         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53148         * modules/parse-duration (Depends-on): Add xalloc.
53149
53150         fix sed script reading maint.mk
53151         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53152         (syntax-check-rules): Use it.
53153
53154 2008-12-09  Bruno Haible  <bruno@clisp.org>
53155
53156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53157         MacOS X 10.4/PowerPC.
53158         Reported by Simon Josefsson.
53159
53160 2008-12-08  Jim Meyering  <meyering@redhat.com>
53161
53162         work around mingw's lack of some S_IF definitions
53163         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53164         Reported by Simon Josefsson.
53165
53166 2008-12-08  Bruno Haible  <bruno@clisp.org>
53167
53168         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53169         applied to variables. Needed on MacOS X 10.4/PowerPC.
53170         Reported by Simon Josefsson.
53171
53172 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53173         and Eric Blake  <ebb9@byu.net>
53174
53175         assert: honor --enable-assert
53176         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53177         order to honor --enable-assert, rather than treating it as a
53178         synonym for --disable-assert.
53179
53180 2008-12-08  Jim Meyering  <meyering@redhat.com>
53181
53182         * lib/posixtm.c: Remove now-useless declaration of mktime.
53183
53184         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53185
53186 2008-12-07  Bruno Haible  <bruno@clisp.org>
53187
53188         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53189         test_once): Mark functions as static.
53190         * tests/test-tls.c (test_tls): Likewise.
53191
53192 2008-12-07  Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53195         iconv_register_autodetect.
53196
53197 2008-12-07  Jim Meyering  <meyering@redhat.com>
53198
53199         posixtm.c: avoid a warning
53200         * lib/posixtm.c (posixtime): Don't initialize tm0.
53201         It's no longer needed to placate gcc4's -Wuninitialized,
53202         and the attempt to placate would elicit a new warning.
53203
53204         unicodeio.c: mark unused parameters
53205         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53206         (fallback_failure_callback): Likewise.
53207
53208 2008-12-07  Bruno Haible  <bruno@clisp.org>
53209
53210         * gnulib-tool (func_create_testdir): When building the tests
53211         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53212         Reported by Simon Josefsson.
53213
53214 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53215
53216         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53217
53218 2008-12-06  Bruno Haible  <bruno@clisp.org>
53219
53220         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53221         Suggested by Eric Blake.
53222
53223 2008-12-06  Bruno Haible  <bruno@clisp.org>
53224
53225         Fix a c-stack test failure on MacOS X.
53226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53227         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53228         handler for SIGBUS as well.
53229         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53230         install a signal handler for SIGBUS as well.
53231         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53232
53233 2008-12-06  Bruno Haible  <bruno@clisp.org>
53234
53235         Advocacy documentation.
53236         * doc/gnulib-intro.texi (Benefits): New section.
53237         * doc/gnulib.texi: Update.
53238
53239 2008-12-06  Bruno Haible  <bruno@clisp.org>
53240
53241         Document the 'manywarnings' module.
53242         * doc/manywarnings.texi: New file.
53243         * doc/gnulib.texi: Include it.
53244
53245 2008-12-05  Eric Blake  <ebb9@byu.net>
53246
53247         tests: silence some gcc warnings
53248         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53249         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53250         type mismatches.
53251
53252 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53253             Bruno Haible  <bruno@clisp.org>
53254
53255         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53256
53257 2008-11-29  Jim Meyering  <meyering@redhat.com>
53258
53259         unicodeio.c: mark unused parameters
53260         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53261         (fallback_failure_callback): Likewise.
53262
53263         fts: fix a thinko
53264         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53265         (set_stat_type): Return S_IF*-valued "type" directly.
53266         Prompted by James Youngman's spotting a related bug.
53267         Confirmed by further testing through find.
53268
53269         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53270         * lib/fts.c (D_TYPE): Define.
53271         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53272         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53273         (s_ifmt_shift_bits): New function.
53274         (set_stat_type): New function.
53275         (fts_build): When not calling fts_stat, call set_stat_type
53276         to propagate dirent.d_type info to fts_read caller.
53277         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53278         fts_statp->st_mode type information may be valid.
53279
53280 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53281
53282         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53283         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53284         <sds@gnu.org>.
53285
53286 2008-11-20  Bruno Haible  <bruno@clisp.org>
53287
53288         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53289         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53290         INCLUDE_NEXT.
53291         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53292         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53293         * modules/math (Makefile.am): Substitute
53294         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53296
53297 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53298             Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/stdint.in.h: Define all type macros so that their expansion is
53301         a single typedef'ed token. Fixes a compilation failure in Boost which
53302         does "using ::int8_t;".
53303
53304 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53305
53306         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53307         gl_MANYWARN_ALL_GCC.
53308         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53309         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53310         * modules/manywarnings: New file.
53311         * MODULES.html.sh: Mention manywarnings module.
53312
53313 2008-11-18  Bruno Haible  <bruno@clisp.org>
53314
53315         * doc/gnulib-tool.texi (Unit tests): New section.
53316
53317 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53318
53319         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53320         paths like 'lib/po/foo.po'.
53321
53322 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53323
53324         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53325         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53326
53327 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53328
53329         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53330         parameter works.
53331
53332 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53333
53334         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53335
53336 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53337
53338         * modules/parse-duration-tests: New file.
53339         * tests/test-parse-duration.sh: New file.
53340         * tests/test-parse-duration.c: New file.
53341
53342         New module 'parse-duration'.
53343         * lib/parse-duration.h: New file.
53344         * lib/parse-duration.c: New file.
53345         * modules/parse-duration: New file.
53346
53347 2008-11-17  Bruno Haible  <bruno@clisp.org>
53348
53349         * tests/test-select-out.sh: Comment out the first pipe test.
53350         Reported by Simon Josefsson.
53351
53352 2008-11-17  Bruno Haible  <bruno@clisp.org>
53353
53354         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53356         gl_HOSTENT.
53357
53358 2008-11-17  Bruno Haible  <bruno@clisp.org>
53359
53360         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53361         -lnetwork and -lnet. Needed for Haiku and BeOS.
53362
53363 2008-11-16  Bruno Haible  <bruno@clisp.org>
53364
53365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53366
53367 2008-11-16  Bruno Haible  <bruno@clisp.org>
53368
53369         Avoid test failure on Haiku.
53370         * tests/test-fsync.c: Include <errno.h>.
53371         (main): Don't require that fsync (0) fails.
53372
53373 2008-11-15  Bruno Haible  <bruno@clisp.org>
53374
53375         New module 'hostent'.
53376         * modules/hostent: New file.
53377         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53378
53379 2008-11-15  Bruno Haible  <bruno@clisp.org>
53380
53381         New module 'servent'.
53382         * modules/servent: New file.
53383         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53384
53385 2008-11-15  Bruno Haible  <bruno@clisp.org>
53386
53387         Avoid generating same test program with two different rules.
53388         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53389         test-frexp to test-frexp-nolibm.
53390         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53391         test-frexpl to test-frexpl-nolibm.
53392
53393 2008-11-15  Bruno Haible  <bruno@clisp.org>
53394
53395         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53396         $(FREXPL_LIBM).
53397
53398 2008-11-15  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/netdb.in.h: Activate the definitions also when the system's
53401         <netdb.h> has 'struct addrinfo'.
53402         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53403         EAI_OVERFLOW or AI_NUMERICSERV.
53404         * doc/posix-headers/netdb.texi: Document the problem.
53405
53406 2008-11-15  Bruno Haible  <bruno@clisp.org>
53407
53408         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53409
53410         Make the 'sched' module work on platforms where <sched.h> exists but
53411         is incomplete (such as Haiku).
53412         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53413         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53414         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53415         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53416         HAVE_STRUCT_SCHED_PARAM.
53417         * modules/sched (Depends-on): Add include_next.
53418         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53419         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53420         * doc/posix-headers/sched.texi: Document the issue.
53421
53422 2008-11-13  Jim Meyering  <meyering@redhat.com>
53423
53424         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53425         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53426         test would fail due to the difference in the Report bugs to ...
53427         line.  The expected address is empty, "<>", while the actual
53428         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53429
53430 2008-11-12  Bruno Haible  <bruno@clisp.org>
53431
53432         lstat: don't compile lstat.c on systems lacking lstat
53433         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53434         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53435         Reported by Daniel P. Berrange via Jim Meyering.
53436
53437 2008-11-12  Jim Meyering  <meyering@redhat.com>
53438
53439         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53440
53441 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53442
53443         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53444         instead.
53445
53446 2008-11-12  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/unicodeio.c: Include unistr.h.
53449         (utf8_wctomb): Remove function.
53450         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53451
53452 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53453
53454         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53455         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53456         <bruno@clisp.org>.
53457         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53458
53459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53460
53461         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53462         * doc/gnulib.texi: Add section for warnings.
53463
53464 2008-11-11  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/sockets.h: Add a comment.
53467
53468 2008-11-11  Karl Berry  <karl@gnu.org>
53469
53470         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53471
53472 2008-11-11  Eric Blake  <ebb9@byu.net>
53473
53474         fdl.texi: avoid git symlinks
53475         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53476
53477 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53478
53479         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53480
53481 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53482
53483         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53484         (gl_WARN_ADD): Substitute $2 if literal.
53485
53486 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53487
53488         * m4/warning.m4: Remove.
53489
53490 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53491
53492         * m4/warnings.m4: Almost complete rewrite. :-)
53493
53494 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53495
53496         * modules/warnings: New module.
53497         * m4/warnings.m4: New file.
53498         * MODULES.html.sh: Mention warnings module.
53499         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53500         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53501
53502 2008-11-10  Eric Blake  <ebb9@byu.net>
53503
53504         fdl.texi: make a symlink to the latest version
53505         * doc/standards.texi: Revert today's earlier change.
53506         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53507         * doc/fdl.texi: ...and replace this with a symlink to the newer
53508         fdl-1.3.texi.
53509
53510 2008-11-10  Bruno Haible  <bruno@clisp.org>
53511
53512         * tests/test-select-fd.c (main): Accept the result file name as fourth
53513         argument.
53514         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53515         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53516
53517 2008-11-10  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53520         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53521         as autoconf-substituted macros.
53522         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53523         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53524         gl_NETDB_H_DEFAULTS. Set these variables.
53525         * modules/netdb (Makefile.am): Substitute these variables.
53526
53527 2008-11-10  Eric Blake  <ebb9@byu.net>
53528
53529         standards.texi: include correct file for FDL 1.3
53530         * doc/standards.texi (GNU Free Documentation License): Change
53531         include file to pull in FDL 1.3, not 1.2.
53532
53533         fdl.texi: revert accidental change to license
53534         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53535
53536 2008-11-10  Bruno Haible  <bruno@clisp.org>
53537
53538         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53539         cross-compiling guesses also when the native compile gives no result.
53540
53541 2008-11-10  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/spawni.c (__spawni): Force variable into the stack.
53544
53545 2008-11-10  Bruno Haible  <bruno@clisp.org>
53546
53547         Add support for Haiku.
53548         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53549         glibc and BeOS, but also on Haiku.
53550         * lib/fpurge.c (fpurge): Likewise.
53551         * lib/freadable.c (freadable): Likewise.
53552         * lib/freadahead.c (freadahead): Likewise.
53553         * lib/freading.c (freading): Likewise.
53554         * lib/freadptr.c (freadptr): Likewise.
53555         * lib/freadseek.c (freadptrinc): Likewise.
53556         * lib/fseeko.c (rpl_fseeko): Likewise.
53557         * lib/fseterr.c (fseterr): Likewise.
53558         * lib/fwritable.c (fwritable): Likewise.
53559         * lib/fwriting.c (fwriting): Likewise.
53560         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53561
53562 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53563
53564         * lib/config.charset: Treat Haiku like BeOS.
53565
53566 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53567
53568         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53569         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53570
53571 2008-11-08  Bruno Haible  <bruno@clisp.org>
53572
53573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53574         AC_CACHE_CHECK.
53575
53576 2008-11-08  Bruno Haible  <bruno@clisp.org>
53577
53578         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53579
53580 2008-11-08  Bruno Haible  <bruno@clisp.org>
53581
53582         * tests/test-select-fd.c: New file.
53583         * tests/test-select-in.sh: New file.
53584         * tests/test-select-out.sh: New file.
53585         * tests/test-select-stdin.c: New file.
53586         * modules/select-tests (Files): Add the new files.
53587         (Depends-on): Add gettimeofday.
53588         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53589         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53590         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53591
53592 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53593             Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53596
53597 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53598
53599         * build-aux/pmccabe2html: Added support for C++ source files.
53600
53601 2008-11-05  Ben Pfaff  <blp@gnu.org>
53602
53603         Fix lib/close.c build on Windows.
53604         * modules/close (Files): Add lib/w32sock.h.
53605
53606 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53607
53608         Accept Bison's NEWS format.
53609         * build-aux/announce-gen (print_news_deltas): Tweak
53610         $re_prefix.
53611
53612 2008-11-04  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/random_r (Maintainer): Add glibc.
53615
53616 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53617
53618         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53619         by karl@freefriends.org (Karl Berry).
53620         * doc/alloca.texi: Likewise.
53621         * doc/c-ctype.texi: Likewise.
53622         * doc/c-strcase.texi: Likewise.
53623         * doc/c-strcaseeq.texi: Likewise.
53624         * doc/c-strcasestr.texi: Likewise.
53625         * doc/c-strstr.texi: Likewise.
53626         * doc/c-strtod.texi: Likewise.
53627         * doc/c-strtold.texi: Likewise.
53628         * doc/ctime.texi: Likewise.
53629         * doc/error.texi: Likewise.
53630         * doc/fdl.texi: Likewise.
53631         * doc/gcd.texi: Likewise.
53632         * doc/getdate.texi: Likewise.
53633         * doc/gnulib-intro.texi: Likewise.
53634         * doc/gnulib-tool.texi: Likewise.
53635         * doc/gnulib.texi: Likewise.
53636         * doc/inet_ntoa.texi: Likewise.
53637         * doc/maintain.texi: Likewise.
53638         * doc/make-stds.texi: Likewise.
53639         * doc/quote.texi: Likewise.
53640         * doc/regexprops-generic.texi: Likewise.
53641         * doc/standards.texi: Likewise.
53642         * doc/verify.texi: Likewise.
53643         * doc/visibility.texi: Likewise.
53644         * doc/gnulib.texi (GNU Free Documentation License): Include
53645         fdl-1.3.texi instead of fdl.texi.
53646
53647 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53648
53649         * doc/fdl-1.3.texi: New file, from
53650         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53651         * modules/fdl-1.3: Add.
53652         * MODULES.html.sh: Add fdl-1.3.
53653
53654 2008-11-03  Bruno Haible  <bruno@clisp.org>
53655
53656         Make determination of absolute name of header file work with AIX xlc.
53657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53658         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53659         preprocessing.
53660         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53661         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53662
53663 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53664
53665         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53666         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53667         <ludo@gnu.org>.
53668
53669 2008-11-02  Bruno Haible  <bruno@clisp.org>
53670
53671         Mark 'strpbrk' obsolete.
53672         * modules/strpbrk (Status, Notice): New sections.
53673         * modules/strtok_r (Depends-on): Add strpbrk.
53674
53675 2008-11-02  Bruno Haible  <bruno@clisp.org>
53676
53677         Mark 'strdup' obsolete.
53678         * modules/strdup (Status, Notice): New sections.
53679         * modules/findprog (Depends-on): Add strdup.
53680         * modules/getaddrinfo (Depends-on): Likewise.
53681         * modules/localename (Depends-on): Likewise.
53682         * modules/relocatable-lib (Depends-on): Likewise.
53683         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53684         * modules/relocatable-prog (Depends-on): Likewise.
53685         * modules/trim (Depends-on): Likewise.
53686         * modules/unictype/gen-ctype (Depends-on): Likewise.
53687         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53688
53689 2008-11-02  Bruno Haible  <bruno@clisp.org>
53690
53691         Mark 'strcspn' obsolete.
53692         * modules/strcspn (Status, Notice): New sections.
53693
53694 2008-11-02  Bruno Haible  <bruno@clisp.org>
53695
53696         Mark 'rmdir' obsolete.
53697         * modules/rmdir (Status, Notice): New sections.
53698         * modules/clean-temp (Depends-on): Add rmdir.
53699         * modules/openat (Depends-on): Likewise.
53700
53701 2008-11-02  Bruno Haible  <bruno@clisp.org>
53702
53703         Mark 'raise' obsolete.
53704         * modules/raise (Status, Notice): New sections.
53705         (Include): Specify <signal.h>.
53706         * modules/stdio (Depends-on): Add raise.
53707         * modules/write (Depends-on): Likewise.
53708
53709 2008-11-02  Bruno Haible  <bruno@clisp.org>
53710
53711         Mark 'memset' obsolete.
53712         * modules/memset (Status, Notice): New sections.
53713
53714 2008-11-02  Bruno Haible  <bruno@clisp.org>
53715
53716         Mark 'memmove' obsolete.
53717         * modules/memmove (Status, Notice): New sections.
53718         * modules/argp (Depends-on): Add memmove.
53719         * modules/argz (Depends-on): Likewise.
53720         * modules/canonicalize (Depends-on): Likewise.
53721         * modules/canonicalize-lgpl (Depends-on): Likewise.
53722         * modules/fts (Depends-on): Likewise.
53723         * modules/getcwd (Depends-on): Likewise.
53724         * modules/human (Depends-on): Likewise.
53725         * modules/regex (Depends-on): Likewise.
53726         * modules/striconveh (Depends-on): Likewise.
53727         * modules/trim (Depends-on): Likewise.
53728         * modules/unistr/u8-move (Depends-on): Likewise.
53729         * modules/unistr/u16-move (Depends-on): Likewise.
53730         * modules/unistr/u32-move (Depends-on): Likewise.
53731
53732 2008-11-02  Bruno Haible  <bruno@clisp.org>
53733
53734         Mark 'memcpy' obsolete.
53735         * modules/memcpy (Status, Notice): New sections.
53736
53737 2008-11-02  Bruno Haible  <bruno@clisp.org>
53738
53739         Mark 'memcmp' obsolete.
53740         * modules/memcmp (Status, Notice): New sections.
53741         * modules/argmatch (Depends-on): Add memchr.
53742         * modules/backupfile (Depends-on): Likewise.
53743         * modules/c-strcasestr (Depends-on): Likewise.
53744         * modules/crypto/des (Depends-on): Likewise.
53745         * modules/csharpcomp (Depends-on): Likewise.
53746         * modules/fnmatch (Depends-on): Likewise.
53747         * modules/git-merge-changelog (Depends-on): Likewise.
53748         * modules/isnand (Depends-on): Likewise.
53749         * modules/isnand-nolibm (Depends-on): Likewise.
53750         * modules/isnanf (Depends-on): Likewise.
53751         * modules/isnanf-nolibm (Depends-on): Likewise.
53752         * modules/isnanl (Depends-on): Likewise.
53753         * modules/isnanl-nolibm (Depends-on): Likewise.
53754         * modules/mbchar (Depends-on): Likewise.
53755         * modules/memcoll (Depends-on): Likewise.
53756         * modules/quotearg (Depends-on): Likewise.
53757         * modules/regex (Depends-on): Likewise.
53758         * modules/relocatable-prog (Depends-on): Likewise.
53759         * modules/same (Depends-on): Likewise.
53760         * modules/signbit (Depends-on): Likewise.
53761         * modules/strcasestr-simple (Depends-on): Likewise.
53762         * modules/unictype/gen-ctype (Depends-on): Likewise.
53763         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53764         * modules/uniname/uniname (Depends-on): Likewise.
53765         * modules/unistr/u8-cmp (Depends-on): Likewise.
53766
53767 2008-11-02  Bruno Haible  <bruno@clisp.org>
53768
53769         Mark 'memchr' obsolete.
53770         * modules/memchr (Status, Notice): New sections.
53771         * modules/argp (Depends-on): Add memchr.
53772         * modules/base64 (Depends-on): Likewise.
53773         * modules/c-strcasestr (Depends-on): Likewise.
53774         * modules/chdir-long (Depends-on): Likewise.
53775         * modules/fnmatch (Depends-on): Likewise.
53776         * modules/getsubopt (Depends-on): Likewise.
53777         * modules/git-merge-changelog (Depends-on): Likewise.
53778         * modules/glob (Depends-on): Likewise.
53779         * modules/strcasestr-simple (Depends-on): Likewise.
53780         * modules/strnlen (Depends-on): Likewise.
53781
53782 2008-11-02  Bruno Haible  <bruno@clisp.org>
53783
53784         Mark 'atexit' obsolete.
53785         * modules/atexit (Status, Notice): New sections.
53786         * modules/chdir-long (Depends-on): Add atexit.
53787         * modules/wait-process (Depends-on): Likewise.
53788
53789 2008-11-02  Bruno Haible  <bruno@clisp.org>
53790
53791         * gnulib-tool: New option --with-obsolete.
53792         (func_usage): Document it.
53793         (func_modules_transitive_closure): Drop obsolete dependencies if
53794         incobsolete is not true.
53795         (func_import): Read and save the incobsolete variable to the cache.
53796
53797 2008-11-02  Bruno Haible  <bruno@clisp.org>
53798
53799         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53800         * gnulib-tool: New option --extract-status.
53801         (func_usage): Document it.
53802         (sed_extract_prog): Recognize it.
53803         (func_get_status): New function.
53804
53805 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53806
53807         * modules/sockets (License): Change from LGPL to LGPLv2+.
53808
53809 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53810
53811         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53812
53813 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53814
53815         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53816         Mention times and sys_times.
53817         * modules/sys_times, modules/sys_times-tests: New modules.
53818         * modules/times, modules/times-tests: Likewise
53819         * m4/sys_times_h.m4: New file.
53820         * lib/sys_times.in.h: Likewise
53821         * lib/times.c: Likewise.
53822         * tests/test-sys_times.c: Likewise.
53823         * tests/test-times.c: Likewise.
53824         * doc/posix-headers/sys_times.texi: Update.
53825         * doc/posix-functions/times.texi: Update.
53826
53827 2008-10-28  Jim Meyering  <meyering@redhat.com>
53828
53829         * modules/tempname (Depends-on): Add lstat.
53830
53831         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53832
53833 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53834
53835         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53836         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53837         using idiom used elsewhere in gnulib.
53838
53839 2008-10-27  Jim Meyering  <meyering@redhat.com>
53840
53841         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53842
53843 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53844
53845         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53846         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53847         programs.
53848         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53849
53850 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53851
53852         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53853
53854 2008-10-27  Bruno Haible  <bruno@clisp.org>
53855
53856         * tests/test-lstat.c: Include <stdio.h>.
53857
53858 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53859
53860         * modules/lstat-tests: New module.
53861         * tests/test-lstat.c: New file.
53862
53863 2008-10-26  Jim Meyering  <meyering@redhat.com>
53864
53865         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53866
53867 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53868             Bruno Haible  <bruno@clisp.org>
53869
53870         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53871         * modules/configmake (Include): Add a note that the include must come
53872         after all system headers.
53873         * lib/javaversion.c: Include configmake.h after all other includes.
53874
53875 2008-10-26  Bruno Haible  <bruno@clisp.org>
53876
53877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53878         HAVE_STRUCT_RANDOM_DATA to 1.
53879         (gl_STDLIB_H): Simplify.
53880
53881 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53882
53883         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53884         substitute HAVE_STRUCT_RANDOM_DATA.
53885         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53886         random_data.
53887         * modules/stdlib (Makefile.am): Substitute
53888         HAVE_STRUCT_RANDOM_DATA.
53889
53890 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53891
53892         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53893         * doc/gnulib-intro.texi (Copyright): Likewise.
53894
53895 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53896
53897         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53898         findings.
53899
53900 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53901             Bruno Haible  <bruno@clisp.org>
53902
53903         * lib/unistd.in.h: Include <winsock2.h>.
53904         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53905         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53906         Provide dummy declarations.
53907         (gethostname): Override.
53908         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53909         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53910         gl_PREREQ_SYS_H_WINSOCK2.
53911         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53912         * doc/posix-functions/gethostname.texi: More details.
53913
53914 2008-10-25  Bruno Haible  <bruno@clisp.org>
53915
53916         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53917         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53918         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53919
53920         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53921         here ...
53922         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53924         gl_UNISTD_H_DEFAULTS.
53925
53926 2008-10-25  Eric Blake  <ebb9@byu.net>
53927
53928         signbit: avoid spurious compiler failure
53929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53930         declarations inside function.
53931
53932 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53933             Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53936         * modules/random_r (Depends-on): Add stdint.
53937
53938 2008-10-24  Bruno Haible  <bruno@clisp.org>
53939
53940         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53941         Eggert.
53942         * modules/strerror (License): Likewise.
53943
53944 2008-10-24  Jim Meyering  <meyering@redhat.com>
53945
53946         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53947         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53948
53949 2008-10-24  Eric Blake  <ebb9@byu.net>
53950
53951         getgroups: fix compilation when getgroups is available
53952         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53953         but with <config.h> override of getgroups disabled.
53954
53955 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53956
53957         * doc/gnulib.texi (Header files): Add note about C++ problems.
53958         Explained by Bruno Haible <bruno@clisp.org>.
53959
53960 2008-10-23  Bruno Haible  <bruno@clisp.org>
53961
53962         Define a dummy SA_NODEFER macro on Interix.
53963         * lib/signal.in.h (SA_NODEFER): Define fallback.
53964         Reported by Aleksey Cheusov <cheusov@tut.by> via
53965         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53966
53967 2008-10-23  Bruno Haible  <bruno@clisp.org>
53968
53969         * modules/freadahead (License): Change to LGPLv2+.
53970         Suggested by Simon Josefsson.
53971
53972 2008-10-23  Jim Meyering  <meyering@redhat.com>
53973
53974         random_r: new module
53975         * modules/random_r: New file.
53976         * m4/random_r.m4: New file.
53977         * lib/random_r.c: New file, from glibc.
53978         * modules/random_r-tests: New file.
53979         * tests/test-random_r.c: New file.
53980         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53981          Declare.
53982         (RAND_MAX): Define.
53983         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53984         * modules/stdlib: Substitute them, too.
53985         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53986         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53987         * doc/glibc-functions/random_r.texi: Likewise.
53988         * doc/glibc-functions/setstate_r.texi: Likewise.
53989         * doc/glibc-functions/srandom_r.texi: Likewise.
53990         * config/srclist.txt: Mention it.
53991
53992 2008-10-23  David Lutterkort  <lutter@redhat.com>
53993
53994         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53995         link requirement
53996
53997 2008-10-23  Jim Meyering  <meyering@redhat.com>
53998
53999         selinux-h: mark parameters of stub functions as intentionally unused
54000         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54001         * lib/se-context.in.h: Likewise.
54002
54003 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54004
54005         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54006
54007 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54008
54009         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54010
54011 2008-10-22  Eric Blake  <ebb9@byu.net>
54012
54013         glthread/thread: avoid compiler warning
54014         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54015         Add unreachable abort to silence compiler.
54016
54017 2008-10-22  Eric Blake  <ebb9@byu.net>
54018
54019         netdb: also supply struct addrinfo for cygwin 1.5.x
54020         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54021         older cygwin.
54022         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54023         cygwin.
54024         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54025
54026 2008-10-22  Bruno Haible  <bruno@clisp.org>
54027
54028         * users.txt: Update entry about pspp.
54029
54030 2008-10-21  Bruno Haible  <bruno@clisp.org>
54031
54032         Simplification.
54033         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54034         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54035
54036         Simplification.
54037         * lib/ioctl.c (ioctl): Don't undefine.
54038         * lib/socket.c (socket): Don't undefine.
54039
54040         Remove unused module indicator macros.
54041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54042         GNULIB_$1 as a C macro.
54043
54044         * doc/posix-functions/close.texi: Undo last change.
54045         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54046         Windows platforms.
54047
54048 2008-10-21  Bruno Haible  <bruno@clisp.org>
54049
54050         Add gethostname() declaration to <unistd.h>.
54051         * lib/unistd.in.h (gethostname): New declaration.
54052         * lib/gethostname.c: Include <unistd.h>.
54053         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54054         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54056         and HAVE_GETHOSTNAME.
54057         * modules/gethostname (Depends-on): Add unistd.
54058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54059         (Include): Specify <unistd.h>.
54060         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54061         HAVE_GETHOSTNAME.
54062         * tests/test-gethostname.c: Include <unistd.h> first.
54063
54064 2008-10-21  Bruno Haible  <bruno@clisp.org>
54065
54066         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54067         * modules/select-tests (Depends-on): Likewise.
54068         Reported by Simon Josefsson.
54069
54070 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54071
54072         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54073         * lib/accept.c: New file, based on winsock.c.
54074         * lib/bind.c: New file, based on winsock.c.
54075         * lib/connect.c: New file, based on winsock.c.
54076         * lib/getpeername.c: New file, based on winsock.c.
54077         * lib/getsockname.c: New file, based on winsock.c.
54078         * lib/getsockopt.c: New file, based on winsock.c.
54079         * lib/ioctl.c: New file, based on winsock.c.
54080         * lib/listen.c: New file, based on winsock.c.
54081         * lib/recv.c: New file, based on winsock.c.
54082         * lib/recvfrom.c: New file, based on winsock.c.
54083         * lib/send.c: New file, based on winsock.c.
54084         * lib/sendto.c: New file, based on winsock.c.
54085         * lib/setsockopt.c: New file, based on winsock.c.
54086         * lib/shutdown.c: New file, based on winsock.c.
54087         * lib/socket.c: New file, based on winsock.c.
54088         * lib/w32sock.h: New file, based on winsock.c.
54089         * lib/winsock.c: Remove file.
54090         * modules/accept: Likewise.
54091         * modules/bind: Likewise.
54092         * modules/connect: Likewise.
54093         * modules/getpeername: Likewise.
54094         * modules/getsockname: Likewise.
54095         * modules/getsockopt: Likewise.
54096         * modules/ioctl: Likewise.
54097         * modules/listen: Likewise.
54098         * modules/recv: Likewise.
54099         * modules/recvfrom: Likewise.
54100         * modules/send: Likewise.
54101         * modules/sendto: Likewise.
54102         * modules/setsockopt: Likewise.
54103         * modules/shutdown: Likewise.
54104         * modules/socket: Use socket.c instead of winsock.c.
54105         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54106         * doc/posix-functions/accept.texi: Doc fix.
54107         * doc/posix-functions/bind.texi: Doc fix.
54108         * doc/posix-functions/close.texi: Doc fix.
54109         * doc/posix-functions/connect.texi: Doc fix.
54110         * doc/posix-functions/getpeername.texi: Doc fix.
54111         * doc/posix-functions/getsockname.texi: Doc fix.
54112         * doc/posix-functions/getsockopt.texi: Doc fix.
54113         * doc/posix-functions/ioctl.texi: Doc fix.
54114         * doc/posix-functions/listen.texi: Doc fix.
54115         * doc/posix-functions/recv.texi: Doc fix.
54116         * doc/posix-functions/recvfrom.texi: Doc fix.
54117         * doc/posix-functions/send.texi: Doc fix.
54118         * doc/posix-functions/sendto.texi: Doc fix.
54119         * doc/posix-functions/setsockopt.texi: Doc fix.
54120         * doc/posix-functions/shutdown.texi: Doc fix.
54121         * doc/posix-functions/socket.texi: Doc fix.
54122
54123 2008-10-20  Bruno Haible  <bruno@clisp.org>
54124
54125         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54126         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54127         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54128         as an alias for SIGABRT.
54129         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54130         (sigaction): Map it to SIGABRT.
54131         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54132
54133 2008-10-20  Bruno Haible  <bruno@clisp.org>
54134
54135         * lib/fts.c: Don't include lstat.h.
54136         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54137
54138         Move the lstat() declaration to <sys/stat.h>.
54139         * lib/lstat.h: Remove file.
54140         * lib/sys_stat.in.h: Add special invocation convention.
54141         (lstat): New declaration.
54142         * lib/lstat.c (orig_lstat): New function.
54143         (rpl_lstat): Use orig_lstat instead of lstat.
54144         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54145         AC_C_INLINE. Set REPLACE_LSTAT.
54146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54147         and REPLACE_LSTAT.
54148         * modules/lstat (Files): Remove lib/lstat.h.
54149         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54150         (Include): Specify <sys/stat.h> instead of lstat.h.
54151         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54152         REPLACE_LSTAT.
54153         * NEWS: Mention the change.
54154
54155 2008-10-20  Bruno Haible  <bruno@clisp.org>
54156
54157         * modules/posix_spawn-tests: New file.
54158         * tests/test-posix_spawn3.c: New file.
54159
54160 2008-10-20  Bruno Haible  <bruno@clisp.org>
54161
54162         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54163         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54164         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54165         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54166         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54167
54168 2008-10-20  Bruno Haible  <bruno@clisp.org>
54169
54170         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54171         of posix_spawn on AIX 5.3.
54172
54173 2008-10-20  Bruno Haible  <bruno@clisp.org>
54174
54175         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54176
54177 2008-10-20  Bruno Haible  <bruno@clisp.org>
54178
54179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54180         of AC_LANG_PROGRAM.
54181
54182 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54183
54184         * lib/netdb.in.h: Don't define GNU specific constants until they
54185         are supported or needed.  Reported by Bruno Haible
54186         <bruno@clisp.org>.
54187
54188 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54189
54190         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54191
54192 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54193
54194         * lib/getaddrinfo.h: Remove file.
54195         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54196         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54197         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54198         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54199         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54200         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54201         * tests/test-getaddrinfo.c: Likewise.
54202         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54203         * NEWS: Mention change.
54204
54205 2008-10-19  Bruno Haible  <bruno@clisp.org>
54206
54207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54208
54209 2008-10-19  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/wait-process.c: Include simply <sys/wait.h>.
54212         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54213         WIFSTOPPED): Remove fallback definitions.
54214         * modules/wait-process (Depends-on): Add sys_wait.
54215
54216         New module 'sys_wait'.
54217         * modules/sys_wait: New file.
54218         * lib/sys_wait.in.h: New file, partially copied from
54219         lib/wait-process.c.
54220         * m4/sys_wait_h.m4: New file.
54221         * doc/posix-headers/sys_wait.texi: Mention the new module.
54222
54223 2008-10-19  Bruno Haible  <bruno@clisp.org>
54224
54225         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54226
54227 2008-10-19  Bruno Haible  <bruno@clisp.org>
54228
54229         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54230         * lib/wait-process.c (WAIT_T): Remove type.
54231         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54232         (wait_subprocess): Update.
54233
54234 2008-10-19  Bruno Haible  <bruno@clisp.org>
54235
54236         New module 'atoll'.
54237         * modules/atoll: New file.
54238         * lib/stdlib.in.h (atoll): New declaration.
54239         * lib/atoll.c: New file, from glibc with modifications.
54240         * m4/atoll.m4: New file.
54241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54242         HAVE_ATOLL.
54243         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54244         * doc/posix-functions/atoll.texi: Mention the new module.
54245
54246 2008-10-19  Bruno Haible  <bruno@clisp.org>
54247
54248         Add strtoull() declaration to <stdlib.h>.
54249         * lib/stdlib.in.h (strtoull): New declaration.
54250         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54251         Set HAVE_STRTOULL.
54252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54253         HAVE_STRTOULL.
54254         * modules/strtoull (Depends-on): Add stdlib.
54255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54256         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54257         HAVE_STRTOULL.
54258
54259 2008-10-19  Bruno Haible  <bruno@clisp.org>
54260
54261         Add strtoll() declaration to <stdlib.h>.
54262         * lib/stdlib.in.h (strtoll): New declaration.
54263         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54264         Set HAVE_STRTOLL.
54265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54266         HAVE_STRTOLL.
54267         * modules/strtoll (Depends-on): Add stdlib.
54268         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54269         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54270
54271 2008-10-19  Bruno Haible  <bruno@clisp.org>
54272
54273         * modules/bcopy (Depends-on): Add strings.
54274         (Include): Specify <strings.h>.
54275
54276 2008-10-19  Bruno Haible  <bruno@clisp.org>
54277
54278         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54279
54280 2008-10-19  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54283         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54284         mingw.
54285
54286 2008-10-19  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/atanl.c: Don't include isnanl.h.
54289         * lib/cosl.c: Likewise.
54290         * lib/ldexpl.c: Likewise.
54291         * lib/logl.c: Likewise.
54292         * lib/sinl.c: Likewise.
54293         * lib/sqrtl.c: Likewise.
54294         * lib/tanl.c: Likewise.
54295
54296         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54297         * lib/isnanf.h: Remove file.
54298         * lib/isnand.h: Remove file.
54299         * lib/isnanl.h: Remove file.
54300         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54301         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54302         macros.
54303         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54304         HAVE_ISNANF, don't define it as a C macro.
54305         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54306         HAVE_ISNAND, don't define it as a C macro.
54307         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54308         HAVE_ISNANL, don't define it as a C macro.
54309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54310         HAVE_ISNAN[FDL].
54311         * modules/isnanf (Files): Remove lib/isnanf.h.
54312         (Depends-on): Add math.
54313         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54314         (Include): Specify <math.h> instead of isnanf.h.
54315         * modules/isnand (Files): Remove lib/isnand.h.
54316         (Depends-on): Add math.
54317         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54318         (Include): Specify <math.h> instead of isnand.h.
54319         * modules/isnanl (Files): Remove lib/isnanl.h.
54320         (Depends-on): Add math.
54321         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54322         (Include): Specify <math.h> instead of isnanl.h.
54323         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54324         HAVE_ISNAN[FDL].
54325         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54326         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54327         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54328         * NEWS: Mention the change.
54329
54330 2008-10-18  Bruno Haible  <bruno@clisp.org>
54331
54332         Add getusershell(), setusershell(), endusershell() declarations to
54333         <unistd.h>.
54334         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54335         declarations.
54336         * lib/getusershell.c: Include unistd.h.
54337         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54338         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54339         HAVE_GETUSERSHELL.
54340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54341         and HAVE_GETUSERSHELL.
54342         * modules/getusershell (Depends-on): Add unistd, extensions.
54343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54344         (Include): Specify <unistd.h>.
54345         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54346         HAVE_GETUSERSHELL.
54347
54348 2008-10-18  Bruno Haible  <bruno@clisp.org>
54349
54350         Add a getloadavg() declaration to <stdlib.h>.
54351         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54352         getloadavg declaration.
54353         (getloadavg): New declaration.
54354         * lib/getloadavg.c: Include <stdlib.h> first.
54355         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54356         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54357         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54359         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54360         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54362         (Include): Specify <stdlib.h>.
54363         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54364         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54365
54366 2008-10-18  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/dirchownmod.c: Don't include lchmod.h.
54369
54370         Move the lchmod() declaration to <sys/stat.h>.
54371         * lib/lchmod.h: Remove file.
54372         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54373         (lchmod): New declaration, moved here from lib/lchown.h.
54374         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54375         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54377         and HAVE_LCHMOD.
54378         * modules/lchmod (Files): Remove lib/lchmod.h.
54379         (Depends-on): Add sys_stat, extensions.
54380         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54381         (Include): Specify <sys/stat.h> instead of lchmod.h.
54382         * modules/sys_stat (Depends-on): Add link-warning.
54383         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54384         definition of GL_LINK_WARNING.
54385         * NEWS: Mention the change.
54386
54387 2008-10-18  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/fchdir.c: Don't include dirfd.h.
54390         * lib/fts.c: Likewise.
54391         * lib/getcwd.c: Likewise.
54392         * lib/glob.c: Likewise.
54393
54394         Move the dirfd() declaration to <dirent.h>.
54395         * lib/dirfd.h: Remove file.
54396         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54397         (dirfd): New declaration.
54398         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54399         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54400         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54401         HAVE_DECL_DIRFD.
54402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54403         HAVE_DECL_DIRFD.
54404         * modules/dirfd (Files): Remove lib/dirfd.h.
54405         (Depends-on): Add dirent, extensions.
54406         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54407         (Include): Specify <dirent.h> instead of dirfd.h.
54408         * modules/dirent (Depends-on): Add link-warning.
54409         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54410         definition of GL_LINK_WARNING.
54411         * NEWS: Mention the change.
54412
54413 2008-10-18  Bruno Haible  <bruno@clisp.org>
54414
54415         Move the euidaccess() declaration to <unistd.h>.
54416         * lib/euidaccess.h: Remove file.
54417         * lib/unistd.in.h (euidaccess): New declaration.
54418         * lib/euidaccess.c: Don't include euidaccess.h.
54419         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54420         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54422         and HAVE_EUIDACCESS.
54423         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54424         (Depends-on): Add unistd.
54425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54426         (Include): Specify <unistd.h> instead of euidaccess.h.
54427         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54428         HAVE_EUIDACCESS.
54429         * NEWS: Mention the change.
54430
54431 2008-10-18  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54434
54435         Move the getdomainname() declaration to <unistd.h>.
54436         * lib/getdomainname.h: Remove file.
54437         * lib/unistd.in.h (getdomainname): New declaration.
54438         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54439         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54440         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54441         HAVE_GETDOMAINNAME.
54442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54443         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54444         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54445         (Depends-on): Add unistd, extensions.
54446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54447         (Includes): Specify <unistd.h> instead of getdomainname.h.
54448         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54449         HAVE_GETDOMAINNAME.
54450         * NEWS: Mention the change.
54451
54452 2008-10-18  Bruno Haible  <bruno@clisp.org>
54453
54454         * modules/dirent: New file.
54455         * m4/dirent_h.m4: New file.
54456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54457         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54458         * modules/fchdir (Files): Remove lib/dirent.in.h.
54459         (Depends-on): Add dirent.
54460         (Makefile.am): Move rules to modules/dirent.
54461         * doc/posix-headers/dirent.texi: Mention the new module.
54462
54463 2008-10-18  Bruno Haible  <bruno@clisp.org>
54464
54465         Avoid -Wunused-parameter warnings in public gnulib header files.
54466         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54467         macro.
54468         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54469
54470 2008-10-18  Bruno Haible  <bruno@clisp.org>
54471
54472         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54473         * doc/glibc-functions/error.texi: Mention the module 'error'.
54474         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54475         * doc/glibc-functions/getdomainname.texi: Mention the module
54476         'getdomainname'.
54477         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54478         * doc/glibc-functions/getpagesize.texi: Mention the module
54479         'getpagesize'.
54480         * doc/glibc-functions/getusershell.texi: Mention the module
54481         'getusershell'.
54482         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54483         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54484         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54485         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54486         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54487         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54488         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54489         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54490         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54491         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54492         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54493         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54494         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54495         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54496
54497 2008-10-17  Bruno Haible  <bruno@clisp.org>
54498
54499         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54500         HP-UX and IRIX, use -0.0L.
54501         * tests/test-ceill.c (minus_zero): Likewise.
54502         * tests/test-floorl.c (minus_zero): Likewise.
54503         * tests/test-frexpl.c (minus_zero): Likewise.
54504         * tests/test-isnan.c (minus_zerol): Likewise.
54505         * tests/test-isnanl.h (minus_zero): Likewise.
54506         * tests/test-ldexpl.c (minus_zero): Likewise.
54507         * tests/test-roundl.c (minus_zero): Likewise.
54508         * tests/test-signbit.c (minus_zerol): Likewise.
54509         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54510         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54511         * tests/test-truncl.c (minus_zero): Likewise.
54512         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54513         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54514         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54515         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54516
54517 2008-10-17  Bruno Haible  <bruno@clisp.org>
54518
54519         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54520         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54521         that it gets activated only for gcc >= 3.0.
54522         * lib/dirent.in.h: Likewise.
54523         * lib/errno.in.h: Likewise.
54524         * lib/fcntl.in.h: Likewise.
54525         * lib/float.in.h: Likewise.
54526         * lib/iconv.in.h: Likewise.
54527         * lib/inttypes.in.h: Likewise.
54528         * lib/locale.in.h: Likewise.
54529         * lib/math.in.h: Likewise.
54530         * lib/netdb.in.h: Likewise.
54531         * lib/netinet_in.in.h: Likewise.
54532         * lib/search.in.h: Likewise.
54533         * lib/signal.in.h: Likewise.
54534         * lib/spawn.in.h: Likewise.
54535         * lib/stdarg.in.h: Likewise.
54536         * lib/stdint.in.h: Likewise.
54537         * lib/stdio.in.h: Likewise.
54538         * lib/stdlib.in.h: Likewise.
54539         * lib/string.in.h: Likewise.
54540         * lib/strings.in.h: Likewise.
54541         * lib/sys_file.in.h: Likewise.
54542         * lib/sys_ioctl.in.h: Likewise.
54543         * lib/sys_select.in.h: Likewise.
54544         * lib/sys_socket.in.h: Likewise.
54545         * lib/sys_stat.in.h: Likewise.
54546         * lib/sys_time.in.h: Likewise.
54547         * lib/sysexits.in.h: Likewise.
54548         * lib/time.in.h: Likewise.
54549         * lib/unistd.in.h: Likewise.
54550         * lib/wchar.in.h: Likewise.
54551         * lib/wctype.in.h: Likewise.
54552         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54553
54554 2008-10-17  Jim Meyering  <meyering@redhat.com>
54555
54556         ignore-value: don't depend on inline module
54557         * modules/ignore-value (Depends-on): Remove 'inline'.
54558         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54559         Suggestion from Bruno Haible.
54560
54561 2008-10-17  Bruno Haible  <bruno@clisp.org>
54562
54563         New implementation of condition variables for Win32.
54564         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54565         (gl_linked_waitqueue_t): New type.
54566         (gl_cond_t): Use it.
54567         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54568         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54569         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54570         (glthread_cond_init_func, glthread_cond_wait_func,
54571         glthread_cond_timedwait_func, glthread_cond_signal_func,
54572         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54573         Reimplemented on the basis of gl_linked_waitqueue_t.
54574         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54575         gl_waitqueue_t.
54576         (gl_rwlock_t): Update.
54577         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54578
54579 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54580
54581         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54582         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54583
54584 2008-10-17  Jim Meyering  <meyering@redhat.com>
54585
54586         ignore-value: new module
54587         * modules/ignore-value: New file.
54588         * lib/ignore-value.h: New file.
54589         * MODULES.html.sh (Compiler warning management): New section,
54590         just for this module.  More to come.
54591
54592 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54595         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54596         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54597
54598 2008-10-16  Jim Meyering  <meyering@redhat.com>
54599
54600         openat-die.c: avoid 'no previous prototype' warning
54601         * lib/openat-die.c: Include "openat.h".
54602         Reported by Reuben Thomas <rrt@sc3d.org>.
54603
54604 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54605
54606         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54607         * lib/netdb.in.h: Fix typo.
54608         Reported by Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/netdb.in.h: Include sys/socket.h for platforms without
54611         netdb.h, to get structures like hostent on MinGW.
54612         * modules/netdb (Depends-on): Add sys_socket.
54613
54614 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54615
54616         * modules/netdb, modules/netdb-tests: New file.
54617         * m4/netdb_h.m4: New file.
54618         * lib/netdb.in.h: Add, currently just an empty file pending
54619         definitions.
54620         * tests/test-netdb.c: New file.
54621         * doc/posix-headers/netdb.texi: Mention that we replace it if
54622         needed.
54623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54624         netdb.
54625
54626 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54627
54628         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54629         with code.
54630
54631 2008-10-13  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/glthread/cond.c (glthread_cond_wait_func,
54634         glthread_cond_timedwait_func): Add a comment.
54635
54636 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54637
54638         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54639         * tests/test-select.c: Likewise,
54640
54641 2008-10-13  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/glthread/cond.c (glthread_cond_wait_func,
54644         glthread_cond_timedwait_func): Fix variable name.
54645         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54646
54647 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54648
54649         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54651         struct sockaddr.sa_len.
54652         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54653
54654 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54655
54656         * build-aux/pmccabe2html: Add css and css_url parameters.
54657
54658 2008-10-12  Bruno Haible  <bruno@clisp.org>
54659
54660         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54661         calling aclx_get.
54662         Reported by Rainer Tammer <tammer@tammer.net>.
54663
54664 2008-10-12  Bruno Haible  <bruno@clisp.org>
54665
54666         Use msvcrt aware primitives for creation/termination of Win32 threads.
54667         * lib/glthread/thread.c: Include <process.h>.
54668         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54669         (wrapper_func): Update signature.
54670         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54671
54672 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54673             Bruno Haible  <bruno@clisp.org>
54674
54675         Provide a Win32 implementation of the 'cond' module.
54676         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54677         * lib/glthread/cond.c (glthread_cond_init_func,
54678         glthread_cond_wait_func, glthread_cond_timedwait_func,
54679         glthread_cond_signal_func, glthread_cond_broadcast_func,
54680         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54681         * modules/cond (Dependencies): Add gettimeofday.
54682
54683 2008-10-11  Bruno Haible  <bruno@clisp.org>
54684
54685         Make sleep work on older versions of mingw.
54686         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54687         only whether it exists.
54688         * doc/posix-functions/sleep.texi: Mention the problem with older
54689         versions of mingw.
54690
54691 2008-10-11  Bruno Haible  <bruno@clisp.org>
54692
54693         New module 'shutdown'.
54694         * modules/shutdown: New file.
54695         * lib/sys_socket.in.h (shutdown): New declaration.
54696         * lib/winsock.c (shutdown): New function.
54697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54698         GNULIB_SHUTDOWN.
54699         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54700         * doc/posix-functions/shutdown.texi: Document the new module.
54701
54702 2008-10-11  Jim Meyering  <meyering@redhat.com>
54703
54704         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54705
54706 2008-10-11  Bruno Haible  <bruno@clisp.org>
54707
54708         New module 'fclose'.
54709         * modules/fclose: New file.
54710         * lib/stdio.in.h (fclose): New declaration.
54711         * lib/fclose.c: New file.
54712         * m4/fclose.m4: New file.
54713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54714         REPLACE_FCLOSE.
54715         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54716         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54717         REPLACE_FCLOSE.
54718         * modules/close (Depends-on): fclose.
54719         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54720
54721 2008-10-11  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54724         set errno and don't call _close.
54725
54726 2008-10-10  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54729         ACL, not afterwards. Fixes test failure on Cygwin.
54730
54731 2008-10-09  Ben Pfaff  <blp@gnu.org>
54732
54733         * build-aux/announce-gen: Fix gnulib version related part of usage
54734         message.  Die with a useful error message if no tarballs are
54735         found.
54736
54737 2008-10-10  Jim Meyering  <meyering@redhat.com>
54738
54739         bootstrap: use git's --depth=N option only if it's supported
54740         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54741         recognize the --depth option.  Reported by Pádraig Brady.
54742
54743 2008-10-09  Bruno Haible  <bruno@clisp.org>
54744
54745         New module 'ioctl'.
54746         * modules/ioctl: New file.
54747         * lib/sys_socket.in.h (ioctl): Remove declaration.
54748         * lib/winsock.c: Include <sys/ioctl.h>.
54749         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54750         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54751         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54752         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54753         * doc/posix-functions/ioctl.texi: Mention the new module.
54754
54755 2008-10-09  Bruno Haible  <bruno@clisp.org>
54756
54757         New module 'sys_ioctl'.
54758         * lib/sys_ioctl.in.h: New file.
54759         * m4/sys_ioctl_h.m4: New file.
54760         * modules/sys_ioctl: New file.
54761         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54762
54763 2008-10-09  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54766         * lib/winsock.c: Include <stdarg.h>.
54767         (rpl_ioctl): Change to second argument 'int' and then varargs.
54768
54769 2008-10-09  Bruno Haible  <bruno@clisp.org>
54770
54771         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54772         when the sys_socket module is present and the system has <winsock2.h>.
54773
54774 2008-10-09  Bruno Haible  <bruno@clisp.org>
54775
54776         * doc/posix-functions/close.texi: Mention module 'close' instead of
54777         module 'sys_socket'.
54778
54779 2008-10-09  Bruno Haible  <bruno@clisp.org>
54780
54781         * doc/glibc-headers/sys_ioctl.texi: New file.
54782         * doc/gnulib.texi: Include it.
54783
54784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54785             Bruno Haible  <bruno@clisp.org>
54786
54787         Combine the two replacements of 'close'.
54788         * lib/sys_socket.in.h (close): Define to a reminder to include
54789         <unistd.h>.
54790         (_gl_close_fd_maybe_socket): New declaration.
54791         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54792         * lib/winsock.c (close): Remove undefinition.
54793         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54794         needed for the gnulib module 'close'.
54795         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54796         define to an error symbol or to a warning, if suitable.
54797         * lib/close.c: Include <sys/socket.h>.
54798         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54799         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54800         UNISTD_H_HAVE_WINSOCK2_H.
54801         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54803         UNISTD_H_HAVE_WINSOCK2_H.
54804         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54805         (configure.ac): Set a module indicator.
54806         (Makefile.am): Substitute GNULIB_CLOSE.
54807         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54808         * modules/poll-tests (Depends-on): Add close.
54809         * modules/select-tests (Depends-on): Likewise.
54810
54811 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54812             Bruno Haible  <bruno@clisp.org>
54813
54814         New module 'close'.
54815         * modules/close: New file.
54816         * lib/unistd.in.h (close): Move declaration out of the
54817         FCHDIR_REPLACEMENT scope.
54818         (_gl_unregister_fd): New declaration.
54819         * lib/close.c: New file.
54820         * lib/fchdir.c (rpl_close): Remove function.
54821         * m4/close.m4: New file.
54822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54823         close.
54824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54825         REPLACE_CLOSE.
54826         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54827         REPLACE_CLOSE.
54828         * modules/fchdir (Depends-on): Add close.
54829
54830 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54831             Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/fcntl.in.h (open): Simplify conditionals.
54834         (_gl_register_fd): New declaration.
54835         * lib/fchdir.c (rpl_open): Remove function.
54836         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54837         also.
54838         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54840         open.
54841
54842 2008-10-09  Jim Meyering  <meyering@redhat.com>
54843
54844         GNUmakefile: use the more name-space-friendly "_version"
54845         * top/GNUmakefile (_dummy): Update.
54846         (_version): Rename from "version".
54847
54848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54849             Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54852         rpl_close.
54853         (_gl_register_fd): New function, extracted from rpl_open.
54854         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54855         (rpl_open, rpl_opendir): Use _gl_register_fd.
54856
54857 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54858
54859         Fix organization of 'open' replacement.
54860         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54861         (gl_FUNC_OPEN): Use it.
54862         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54863
54864 2008-10-08  Bruno Haible  <bruno@clisp.org>
54865
54866         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54867
54868 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54869
54870         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54871         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54872         listen).
54873
54874 2008-10-08  Eric Blake  <ebb9@byu.net>
54875
54876         GNUmakefile: add 'make version' target
54877         * top/GNUmakefile (_curr-ver): Split version update rules...
54878         (version): ...into a target.
54879
54880 2008-10-07  Bruno Haible  <bruno@clisp.org>
54881
54882         Use a more portable replacement expression for -0.0L.
54883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54884         instead of -0.0L. Fix m4 quotation.
54885
54886         * tests/test-signbit.c: Include <float.h>.
54887         (minus_zero): New variable.
54888         (test_signbitl): Use minus_zero instead of -zero.
54889         * modules/signbit-tests (Depends-on): Add float.
54890
54891         * tests/test-ceill.c: Include <float.h>.
54892         (zero): Remove variable.
54893         (minus_zero): New variable.
54894         (main): Use minus_zero instead of -zero.
54895         * modules/ceill-tests (Depends-on): Add float.
54896
54897         * tests/test-floorl.c: Include <float.h>.
54898         (zero): Remove variable.
54899         (minus_zero): New variable.
54900         (main): Use minus_zero instead of -zero.
54901         * modules/floorl-tests (Depends-on): Add float.
54902
54903         * tests/test-roundl.c: Include <float.h>.
54904         (zero): Remove variable.
54905         (minus_zero): New variable.
54906         (main): Use minus_zero instead of -zero.
54907         * modules/roundl-tests (Depends-on): Add float.
54908
54909         * tests/test-truncl.c: Include <float.h>.
54910         (zero): Remove variable.
54911         (minus_zero): New variable.
54912         (main): Use minus_zero instead of -zero.
54913         * modules/truncl-tests (Depends-on): Add float.
54914
54915         * tests/test-frexpl.c (zero): Remove variable.
54916         (minus_zero): New variable.
54917         (main): Use minus_zero instead of -zero.
54918         * modules/frexpl-tests (Depends-on): Add float.
54919
54920         * tests/test-isnan.c (zerol): Remove variable.
54921         (minus_zerol): New variable.
54922         (test_long_double): Use minus_zerol instead of -zerol.
54923         * modules/isnan-tests (Depends-on): Add float.
54924
54925         * tests/test-isnanl.h (zero): Remove variable.
54926         (minus_zero): New variable.
54927         (main): Use minus_zero instead of -zero.
54928         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54929         * modules/isnanl-tests (Depends-on): Add float.
54930
54931         * tests/test-ldexpl.c (zero): Remove variable.
54932         (minus_zero): New variable.
54933         (main): Use minus_zero instead of -zero.
54934         * modules/ldexpl-tests (Depends-on): Add float.
54935
54936         * tests/test-snprintf-posix.h (zerol): Remove variable.
54937         (minus_zerol): New variable.
54938         (test_function): Use minus_zerol instead of -zerol.
54939         * modules/snprintf-posix-tests (Depends-on): Add float.
54940         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54941
54942         * tests/test-sprintf-posix.h (zerol): Remove variable.
54943         (minus_zerol): New variable.
54944         (test_function): Use minus_zerol instead of -zerol.
54945         * modules/sprintf-posix-tests (Depends-on): Add float.
54946         * modules/vsprintf-posix-tests (Depends-on): Add float.
54947
54948         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54949         (minus_zerol): New variable.
54950         (test_function): Use minus_zerol instead of -zerol.
54951         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54952
54953         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54954         (minus_zerol): New variable.
54955         (test_function): Use minus_zerol instead of -zerol.
54956         * modules/vasprintf-posix-tests (Depends-on): Add float.
54957
54958 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54959
54960         * MODULES.html.sh (Support for building documentation): Mention
54961         pmccabe2html.  Sort entries.
54962
54963         Add pmccabe2html module, from gnupdf.
54964         * build-aux/pmccabe.css: New file.
54965         * build-aux/pmccabe2html: New file.
54966         * m4/pmccabe2html.m4: New file.
54967         * modules/pmccabe2html: New file.
54968
54969 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54970
54971         flock: new module
54972         * MODULES.html.sh: Add to list of modules.
54973         * lib/flock.c: flock implementation for Windows and Unix systems
54974         which have fcntl.
54975         * doc/glibc-functions/flock.texi: Update documentation.
54976         * lib/sys_file.in.h: <sys/file.h> header file.
54977         * m4/flock.m4: M4 macros.
54978         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54979         * modules/flock: flock module.
54980         * modules/flock-tests: flock tests module.
54981         * modules/sys_file: sys/file.h module.
54982         * tests/test-flock.c: test suite for flock.
54983
54984 2008-10-06  Jim Meyering  <meyering@redhat.com>
54985
54986         bootstrap: check for LT_INIT more portably still ;-)
54987         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54988         Spotted by Bruno Haible.
54989
54990 2008-10-06  Eric Blake  <ebb9@byu.net>
54991
54992         test-signbit: avoid tripping Irix cc bug on -0.0L
54993         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54994         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54995         entire testsuite consistent and avoids an Irix 6.2 bug.
54996
54997 2008-10-05  Bruno Haible  <bruno@clisp.org>
54998             Jim Meyering  <jim@meyering.net>
54999
55000         Add an option for ignoring EPIPE during close_stdout.
55001         * lib/closeout.h: Include <stdbool.h>.
55002         (close_stdout_set_ignore_EPIPE): New declaration.
55003         * lib/closeout.c: Include <stdbool.h>.
55004         (ignore_EPIPE): New variable.
55005         (close_stdout_set_ignore_EPIPE): New function.
55006         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55007         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55008         failure.
55009         * modules/closeout (Depends-on): Add stdbool.
55010
55011 2008-10-05  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/accept: New file.
55014         * modules/bind: New file.
55015         * modules/connect: New file.
55016         * modules/getpeername: New file.
55017         * modules/getsockname: New file.
55018         * modules/getsockopt: New file.
55019         * modules/listen: New file.
55020         * modules/recv: New file.
55021         * modules/recvfrom: New file.
55022         * modules/send: New file.
55023         * modules/sendto: New file.
55024         * modules/setsockopt: New file.
55025         * modules/socket: New file.
55026         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55027         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55028         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55029         the particular module is requested. Add a link warning when the
55030         particular module is not requested.
55031         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55032         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55033         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55034         the particular module is requested.
55035         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55036         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55037         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55038         * modules/sys_socket (Depends-on): Add link-warning.
55039         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55040         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55041         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55042         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55043         GL_LINK_WARNING.
55044         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55045         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55046         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55047         * doc/posix-functions/getpeername.texi: Mention the new module
55048         'getpeername'.
55049         * doc/posix-functions/getsockname.texi: Mention the new module
55050         'getsockname'.
55051         * doc/posix-functions/getsockopt.texi: Mention the new module
55052         'getsockopt'.
55053         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55054         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55055         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55056         * doc/posix-functions/send.texi: Mention the new module 'send'.
55057         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55058         * doc/posix-functions/setsockopt.texi: Mention the new module
55059         'setsockopt'.
55060         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55061         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55062         listen, connect, accept.
55063         * modules/select-tests (Depends-on): Likewise.
55064
55065 2008-10-05  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/winsock.c (strerror): Remove unused #undef.
55068         (rpl_close): Remove unused local variable.
55069
55070         * modules/sys_socket (Depends-on); Add errno.
55071
55072 2008-10-05  Bruno Haible  <bruno@clisp.org>
55073
55074         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55075         (select): Add a link warning when the 'select' module is not used.
55076         * modules/sys_select (Depends-on): Add link-warning.
55077         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55078         Suggested by Paolo Bonzini.
55079
55080 2008-10-05  Jim Meyering  <meyering@redhat.com>
55081
55082         bootstrap: check for LT_INIT more portably
55083         * build-aux/bootstrap: Avoid using grep -E, since it's not
55084         portable enough.  Suggestion from Bruno Haible.
55085
55086 2008-10-05  Bruno Haible  <bruno@clisp.org>
55087
55088         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55089         as being fixed by gnulib.
55090
55091 2008-10-05  Bruno Haible  <bruno@clisp.org>
55092
55093         * modules/select-tests: New file, mostly copied from
55094         modules/sys_select-tests.
55095         * tests/test-select.c: New file, mostly copied from
55096         tests/test-sys_select.c.
55097         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55098         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55099         (Makefile.am): Remove test_sys_select_LDADD.
55100
55101         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55102         to an undefined symbol, for an error message.
55103         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55104         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55105         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55106         winsock-select.c here.
55107         * modules/sys_select (Files): Remove lib/winsock-select.c.
55108         (Depends-on): Remove alloca.
55109         (Makefile.am): Substitute GNULIB_SELECT.
55110         * modules/select: New file.
55111         * doc/posix-functions/select.texi: Update.
55112
55113 2008-10-05  Bruno Haible  <bruno@clisp.org>
55114
55115         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55116         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55117         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55118         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55119         getdtablesize.
55120         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55121         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55122
55123 2008-10-05  Bruno Haible  <bruno@clisp.org>
55124
55125         * modules/getdtablesize-tests: New file.
55126         * tests/test-getdtablesize.c: New file.
55127
55128         New module 'getdtablesize'.
55129         * lib/unistd.in.h (getdtablesize): New declaration.
55130         * lib/getdtablesize.c: New file.
55131         * m4/getdtablesize.m4: New file.
55132         * modules/getdtablesize: New file.
55133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55134         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55135         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55136         HAVE_GETDTABLESIZE.
55137         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55138
55139 2008-10-05  Bruno Haible  <bruno@clisp.org>
55140
55141         * modules/sched (Makefile.am): Fix typo.
55142         Reported by Simon Josefsson.
55143
55144 2008-10-05  Jim Meyering  <meyering@redhat.com>
55145
55146         bootstrap: check for LT_INIT, too
55147         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55148         are deprecated.  Suggestion from Ralf Wildenhues.
55149
55150 2008-10-05  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55153         overriding them by ours.
55154         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55155
55156 2008-10-05  Jim Meyering  <meyering@redhat.com>
55157
55158         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55159         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55160         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55161
55162 2008-10-04  Bruno Haible  <bruno@clisp.org>
55163
55164         * modules/dup2 (License): Change to LGPLv2+.
55165         * modules/sleep (License): Likewise.
55166         * modules/perror (License): Likewise.
55167         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55168         Blake.
55169         * modules/signal (License): Likewise.
55170         * modules/sigprocmask (License): Likewise.
55171         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55172         Meyering.
55173
55174 2008-10-04  Bruno Haible  <bruno@clisp.org>
55175
55176         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55177         Reported by Rainer Tammer <tammer@tammer.net>.
55178
55179 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55180             Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55183         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55184         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55185
55186 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55187
55188         filevercmp: new module
55189         * lib/filevercmp.h: New function filevercmp comparing version strings.
55190         * lib/filevercmp.c: Implementation of filevercmp function.
55191         * modules/filevercmp: Module metadata.
55192         * tests/test-filevercmp.c: Unit test for new module.
55193         * modules/filevercmp-tests: Unit test metadata.
55194         * MODULES.html.sh: Add filevercmp module.
55195
55196 2008-10-03  Bruno Haible  <bruno@clisp.org>
55197
55198         * lib/c-ctype.h: Add comment.
55199         Reported by Jim Meyering.
55200
55201 2008-10-02  Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55204
55205 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55206
55207         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55208         name of bootstrap.conf accordingly.
55209
55210 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55211
55212         * build-aux/bootstrap: Install git-merge-changelog configuration
55213         items into .gitconfig if needed.
55214
55215 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55216
55217         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55218         git repository, and initialize/update it accordingly.
55219
55220 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55221
55222         * modules/fsync-tests: New file.
55223         * tests/test-fsync.c: New file.
55224
55225         New module 'fsync'.
55226         * lib/fsync.c: New file.
55227         * m4/fsync.m4: New file.
55228         * modules/fsync: New file.
55229         * lib/unistd.in.h (fsync): New declaration.
55230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55231         GNULIB_FSYNC and HAVE_FSYNC.
55232         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55233         * MODULES.html.sh (posix_functions): Add fsync.
55234         * doc/posix-functions/fsync.texi: Mention the new module.
55235
55236 2008-10-02  Jim Meyering  <meyering@redhat.com>
55237
55238         fts.c: sync with similar code from coreutils' remove.c
55239         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55240         Guard also with "#if defined __linux__", since for now at least,
55241         this code is Linux-kernel-specific.
55242
55243 2008-10-02  Jim Meyering  <meyering@redhat.com>
55244
55245         fts: bug fixes
55246         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55247         Include <sys/vfs.h>, not <sys/statfs.h>.
55248
55249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55250         Include <sys/vfs.h>, not <sys/statfs.h>.
55251
55252 2008-10-01  Bruno Haible  <bruno@clisp.org>
55253
55254         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55256         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55257         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55258         * doc/posix-functions/posix_spawnp.texi: Likewise.
55259         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55260         whether posix_spawn actually works.
55261         * m4/pipe.m4 (gl_PIPE): Likewise.
55262         * modules/execute (Files): Add m4/posix_spawn.m4.
55263         * modules/pipe (Files): Add m4/posix_spawn.m4.
55264         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55265
55266 2008-10-01  Jim Meyering  <meyering@redhat.com>
55267
55268         remove trailing spaces
55269         * NEWS: Likewise.
55270         * lib/poll.c (poll): Likewise.
55271         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55272         * lib/winsock.c (rpl_close): Likewise.
55273         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55274         * modules/yield: Likewise.
55275         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55276         * tests/test-sys_select.c (connect_to_socket): Likewise.
55277
55278         fts.c: adjust a new interface to be more generally useful
55279         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55280         (fts_build): Adjust caller.
55281
55282 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55283
55284         * modules/cond-tests: New file.
55285         * tests/test-cond.c: New file.
55286
55287 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55288             Bruno Haible  <bruno@clisp.org>
55289
55290         * modules/cond (Dependencies): Add errno, time.
55291         * lib/glthread/cond.h: Include <time.h>.
55292         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55293         across platforms.
55294
55295 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55296             Bruno Haible  <bruno@clisp.org>
55297
55298         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55299
55300 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55301             Bruno Haible  <bruno@clisp.org>
55302
55303         * modules/tls-tests (Depends-on): Add thread, yield.
55304         (configure.ac): Remove all checks.
55305         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55306         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55307         gl_thread_self): Remove definitions. Include glthread/thread.h and
55308         glthread/yield.h instead.
55309         (test_tls): Pass an additional NULL argument to gl_thread_join.
55310
55311 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55312             Bruno Haible  <bruno@clisp.org>
55313
55314         * modules/lock-tests (Depends-on): Add thread, yield.
55315         (configure.ac): Remove all checks.
55316         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55317         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55318         gl_thread_self): Remove definitions. Include glthread/thread.h and
55319         glthread/yield.h instead.
55320         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55321         additional NULL argument to gl_thread_join.
55322
55323 2008-09-30  Bruno Haible  <bruno@clisp.org>
55324
55325         Fix the Win32 implementation of the 'thread' module.
55326         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55327         pointer type.
55328         (gl_thread_self): Invoke gl_thread_self_func.
55329         (gl_thread_self_func): New declaration.
55330         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55331         (do_init_self_key, init_self_key): New functions.
55332         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55333         Remove some fields.
55334         (running_threads, running_lock): Remove variables.
55335         (get_current_thread_handle): New function.
55336         (gl_thread_self_func, wrapper_func, glthread_create_func,
55337         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55338         simplified.
55339
55340 2008-09-30  Bruno Haible  <bruno@clisp.org>
55341
55342         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55343         files.
55344
55345 2008-09-30  Jim Meyering  <meyering@redhat.com>
55346
55347         fts.m4: correct the test for statfs.f_type
55348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55349         when checking for statfs.f_type.
55350
55351 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55352
55353         tests: avoid some compiler warnings
55354         * tests/test-memchr.c (main): Pass NULL indirectly.
55355         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55356
55357 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55358
55359         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55360         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55361         exactly specified dayshifts.
55362         (dayshift): New rule.
55363         (rel): Add dayshift.
55364         (relative_time_table) [tomorrow, yesterday, today, now]:
55365         Use tDAY_SHIFT in place of tDAY_UNIT.
55366         * tests/test-getdate.c: Add tests for now-disallowed countable
55367         dayshifts, e.g., "4 yesterday ago".
55368
55369 2008-09-29  Bruno Haible  <bruno@clisp.org>
55370
55371         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55372         * tests/test-posix_spawn1.in.sh: Renamed from
55373         tests/test-posix_spawn.in.sh.
55374         * tests/test-posix_spawn2.c: New file.
55375         * tests/test-posix_spawn2.in.sh: New file.
55376         * modules/posix_spawnp-tests (Files): Update.
55377         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55378
55379 2008-09-29  Bruno Haible  <bruno@clisp.org>
55380
55381         Propagate effects of putenv/setenv/unsetenv to child processes.
55382         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55383         * lib/pipe.c (create_pipe): Likewise.
55384
55385 2008-09-29  Bruno Haible  <bruno@clisp.org>
55386
55387         Enable use of shell scripts as executables in mingw.
55388         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55389         run the program as a shell script.
55390         * lib/pipe.c (create_pipe): Likewise.
55391         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55392         resulting array.
55393
55394 2008-09-29  Eric Blake  <ebb9@byu.net>
55395
55396         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55397
55398 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55399
55400         * doc/posix-functions/accept.texi: Update mingw problems.
55401         * doc/posix-functions/bind.texi: Update mingw problems.
55402         * doc/posix-functions/close.texi: Update mingw problems.
55403         * doc/posix-functions/connect.texi: Update mingw problems.
55404         * doc/posix-functions/getpeername.texi: Update mingw problems.
55405         * doc/posix-functions/getsockname.texi: Update mingw problems.
55406         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55407         * doc/posix-functions/ioctl.texi: Update mingw problems.
55408         * doc/posix-functions/listen.texi: Update mingw problems.
55409         * doc/posix-functions/recv.texi: Update mingw problems.
55410         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55411         * doc/posix-functions/select.texi: Update mingw problems.
55412         * doc/posix-functions/send.texi: Update mingw problems.
55413         * doc/posix-functions/sendto.texi: Update mingw problems.
55414         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55415         * doc/posix-functions/socket.texi: Update mingw problems.
55416
55417 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55418             Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/sys_select.in.h: Include sys/time.h.
55421         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55422         * modules/sys_select: Depend on sys_time.
55423         * tests/test-sys_select.c: Test that sys/select.h defines struct
55424         timeval fully.
55425
55426 2008-09-29  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55429         * lib/sys_select.in.h: Likewise.
55430
55431 2008-09-29  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55434
55435 2008-09-29  Bruno Haible  <bruno@clisp.org>
55436
55437         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55438         Set LIBSOCKET instead of augmenting LIBS.
55439         * modules/sockets (Link): New section.
55440         * modules/sockets-tests (test_sockets_LDADD): New variable.
55441         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55442         * modules/poll-tests (test_poll_LDADD): New variable.
55443         * NEWS: Document the change.
55444
55445 2008-09-29  Bruno Haible  <bruno@clisp.org>
55446
55447         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55448         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55449         ARPA_INET_H directly.
55450         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55451
55452 2008-09-28  Bruno Haible  <bruno@clisp.org>
55453
55454         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55455         from gl_HEADER_SYS_SOCKET.
55456         (gl_HEADER_SYS_SOCKET): Invoke it.
55457         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55458
55459 2008-09-28  Bruno Haible  <bruno@clisp.org>
55460
55461         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55462         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55463         Needed on OSF/1 4.0.
55464
55465 2008-09-28  Bruno Haible  <bruno@clisp.org>
55466
55467         Override open more carefully.
55468         * lib/open.c (orig_open): New function.
55469         (rpl_open): Use orig_open instead of open.
55470         * lib/fcntl.in.h: Add special invocation convention.
55471         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55472         (gl_FUNC_OPEN): Invoke it.
55473
55474         Override freopen more carefully.
55475         * lib/freopen.c (orig_freopen): New function.
55476         (rpl_freopen): Use orig_freopen instead of freopen.
55477         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55478         (gl_FUNC_FREOPEN): Invoke it.
55479
55480         Override fopen more carefully.
55481         * lib/fopen.c (orig_fopen): New function.
55482         (rpl_fopen): Use orig_fopen instead of fopen.
55483         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55484         (gl_FUNC_FOPEN): Invoke it.
55485         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55486
55487 2008-09-28  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55490         SIGPIPE.
55491
55492 2008-09-28  Bruno Haible  <bruno@clisp.org>
55493
55494         * tests/test-sigaction.c (handler, main): Disable the check whether
55495         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55496         glibc systems with LinuxThreads.
55497
55498 2008-09-28  Bruno Haible  <bruno@clisp.org>
55499
55500         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55501
55502         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55503         with AIX xlc.
55504         * lib/fcntl.in.h (open): Likewise.
55505         Reported by Rainer Tammer <tammer@tammer.net>.
55506
55507 2008-09-28  Bruno Haible  <bruno@clisp.org>
55508
55509         * modules/posix_spawnp-tests: New file.
55510         * tests/test-posix_spawn.c: New file.
55511         * tests/test-posix_spawn.in.sh: New file.
55512
55513         New module 'posix_spawnp'.
55514         * modules/posix_spawnp: New file.
55515         * lib/spawnp.c: New file, from GNU libc with modifications.
55516         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55517
55518         New module 'posix_spawn'.
55519         * modules/posix_spawn: New file.
55520         * lib/spawn.c: New file, from GNU libc with modifications.
55521         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55522
55523         New module 'posix_spawnattr_destroy'.
55524         * modules/posix_spawnattr_destroy: New file.
55525         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55526         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55527         module.
55528
55529         New module 'posix_spawnattr_setsigmask'.
55530         * modules/posix_spawnattr_setsigmask: New file.
55531         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55532         modifications.
55533         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55534         new module.
55535
55536         New module 'posix_spawnattr_getsigmask'.
55537         * modules/posix_spawnattr_getsigmask: New file.
55538         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55539         modifications.
55540         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55541         new module.
55542
55543         New module 'posix_spawnattr_setsigdefault'.
55544         * modules/posix_spawnattr_setsigdefault: New file.
55545         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55546         modifications.
55547         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55548         new module.
55549
55550         New module 'posix_spawnattr_getsigdefault'.
55551         * modules/posix_spawnattr_getsigdefault: New file.
55552         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55553         modifications.
55554         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55555         new module.
55556
55557         New module 'posix_spawnattr_setschedpolicy'.
55558         * modules/posix_spawnattr_setschedpolicy: New file.
55559         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55560         modifications.
55561         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55562         new module.
55563
55564         New module 'posix_spawnattr_getschedpolicy'.
55565         * modules/posix_spawnattr_getschedpolicy: New file.
55566         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55567         modifications.
55568         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55569         new module.
55570
55571         New module 'posix_spawnattr_setschedparam'.
55572         * modules/posix_spawnattr_setschedparam: New file.
55573         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55574         modifications.
55575         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55576         new module.
55577
55578         New module 'posix_spawnattr_getschedparam'.
55579         * modules/posix_spawnattr_getschedparam: New file.
55580         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55581         modifications.
55582         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55583         new module.
55584
55585         New module 'posix_spawnattr_setpgroup'.
55586         * modules/posix_spawnattr_setpgroup: New file.
55587         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55588         modifications.
55589         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55590         module.
55591
55592         New module 'posix_spawnattr_getpgroup'.
55593         * modules/posix_spawnattr_getpgroup: New file.
55594         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55595         modifications.
55596         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55597         module.
55598
55599         New module 'posix_spawnattr_setflags'.
55600         * modules/posix_spawnattr_setflags: New file.
55601         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55602         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55603         module.
55604
55605         New module 'posix_spawnattr_getflags'.
55606         * modules/posix_spawnattr_getflags: New file.
55607         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55608         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55609         module.
55610
55611         New module 'posix_spawnattr_init'.
55612         * modules/posix_spawnattr_init: New file.
55613         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55614         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55615         module.
55616
55617         New module 'posix_spawn_file_actions_destroy'.
55618         * modules/posix_spawn_file_actions_destroy: New file.
55619         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55620         modifications.
55621         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55622         the new module.
55623
55624         New module 'posix_spawn_file_actions_addopen'.
55625         * modules/posix_spawn_file_actions_addopen: New file.
55626         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55627         modifications.
55628         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55629         the new module.
55630
55631         New module 'posix_spawn_file_actions_adddup2'.
55632         * modules/posix_spawn_file_actions_adddup2: New file.
55633         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55634         modifications.
55635         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55636         the new module.
55637
55638         New module 'posix_spawn_file_actions_addclose'.
55639         * modules/posix_spawn_file_actions_addclose: New file.
55640         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55641         modifications.
55642         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55643         the new module.
55644
55645         New module 'posix_spawn_file_actions_init'.
55646         * modules/posix_spawn_file_actions_init: New file.
55647         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55648         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55649         new module.
55650
55651         New module 'posix_spawn-internal'.
55652         * modules/posix_spawn-internal: New file.
55653         * lib/spawn_int.h: New file, from GNU libc with modifications.
55654         * lib/spawni.c: New file, from GNU libc with modifications.
55655         * m4/posix_spawn.m4: New file.
55656
55657         New module 'spawn'.
55658         * modules/spawn: New file.
55659         * lib/spawn.in.h: New file, from GNU libc with modifications.
55660         * m4/spawn_h.m4: New file.
55661         * doc/posix-headers/spawn.texi: Mention the new module.
55662
55663 2008-09-28  Bruno Haible  <bruno@clisp.org>
55664
55665         * modules/sched-tests: New file.
55666         * tests/test-sched.c: New file.
55667
55668         New module 'sched'.
55669         * modules/sched: New file.
55670         * lib/sched.in.h: New file.
55671         * m4/sched_h.m4: New file.
55672         * doc/posix-headers/sched.texi: Mention the new module.
55673
55674 2008-09-27  Eric Blake  <ebb9@byu.net>
55675
55676         Fix previous patch, and tweak references to $0.
55677         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55678         (func_version, func_gnulib_dir): Don't call this program
55679         gnulib-tool.
55680         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55681         with using $0 in function.
55682         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55683         (func_fatal_error): Reuse the name the user invoked us with.
55684
55685 2008-09-27  Bruno Haible  <bruno@clisp.org>
55686
55687         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55688         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55689         (gl_ICONV_H): Not here.
55690         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55691         instead of assigning ICONV_H directly.
55692
55693         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55695         WCHAR_H directly.
55696
55697 2008-09-27  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55700         * modules/arpa_inet (Depends-on): Add link-warning.
55701         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55702         * modules/unistd (Makefile.am): Likewise.
55703
55704 2008-09-26  Bruno Haible  <bruno@clisp.org>
55705
55706         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55707         variables.
55708         (func_version): Essentially copied from gnulib-tool.
55709         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55710         func_readlink): Copied from gnulib-tool.
55711
55712 2008-09-26  Bruno Haible  <bruno@clisp.org>
55713
55714         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55715         invoking git-version-gen.
55716
55717 2008-09-26  Bruno Haible  <bruno@clisp.org>
55718
55719         * posix-modules: Update to directory names changed on 2008-01-19.
55720         Remove commas in output before splitting into words. No more need to
55721         avoid 'ftruncate' since 2007-02-19.
55722
55723 2008-09-26  Bruno Haible  <bruno@clisp.org>
55724
55725         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55726
55727 2008-09-26  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55730         * modules/fwriteerror (Depends-on): Add errno.
55731
55732 2008-09-26  Bruno Haible  <bruno@clisp.org>
55733
55734         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55735         * tests/test-vc-list-files-cvs.sh: Likewise.
55736
55737 2008-09-26  Bruno Haible  <bruno@clisp.org>
55738
55739         * doc/posix-headers/sys_resource.texi: Reorder items.
55740
55741 2008-09-26  Jim Meyering  <meyering@redhat.com>
55742
55743         fts: tweak inode comparison function
55744         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55745         inode numbers, as documented.
55746
55747         fts: sort dirent entries on inode number before traversing
55748         This avoids a quadratic, seek-related performance penalty when
55749         operating on a directory containing many entries (measurable at 10k;
55750         3.5 hours at 2 million entries with a cold cache) on certain types
55751         of file systems, including ext3 and ext4, but not tmpfs.
55752         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55753         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55754         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55755         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55756         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55757         (fts_build): Set the stat.st_ino member from D_INO.
55758         If it is likely to be useful, sort dirent entries on inode number.
55759
55760         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55761         and the struct statfs.f_type member.
55762         * modules/fts (Depends-on): Add d-ino.
55763
55764 2008-09-26  Bruno Haible  <bruno@clisp.org>
55765
55766         * modules/sigpipe-die (Depends-on): Add sigpipe.
55767
55768         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55769         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55770         and GNULIB_STDIO_H_SIGPIPE are set.
55771         * lib/stdio-write.c: New file.
55772         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55773         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55774         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55775         REPLACE_STDIO_WRITE_FUNCS.
55776         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55777         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55778         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55779         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55780         * modules/stdio (Files): Add lib/stdio-write.c.
55781         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55782         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55783         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55784         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55785         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55786         REPLACE_FPRINTF_POSIX.
55787         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55788         REPLACE_PRINTF_POSIX.
55789         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55790         REPLACE_VFPRINTF_POSIX.
55791         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55792         REPLACE_VPRINTF_POSIX.
55793         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55794         SIGPIPE issue.
55795         * doc/posix-functions/fputc.texi: Likewise.
55796         * doc/posix-functions/fputs.texi: Likewise.
55797         * doc/posix-functions/fwrite.texi: Likewise.
55798         * doc/posix-functions/printf.texi: Likewise.
55799         * doc/posix-functions/putc.texi: Likewise.
55800         * doc/posix-functions/putchar.texi: Likewise.
55801         * doc/posix-functions/puts.texi: Likewise.
55802         * doc/posix-functions/vfprintf.texi: Likewise.
55803         * doc/posix-functions/vprintf.texi: Likewise.
55804
55805         * modules/safe-write (Depends-on): Add write.
55806
55807         * modules/sigpipe-tests: New file.
55808         * tests/test-sigpipe.c: New file.
55809         * tests/test-sigpipe.sh: New file.
55810
55811         * modules/write: New file.
55812         * lib/unistd.in.h: Include <sys/types.h>.
55813         (write): New declaration.
55814         * lib/write.c: New file.
55815         * m4/write.m4: New file.
55816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55817         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55818         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55819         GNULIB_WRITE, REPLACE_WRITE.
55820         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55821         and the SIGPIPE issue.
55822
55823         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55824         (raise): New declaration.
55825         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55826         (ext_signal): New function.
55827         (rpl_raise): New function.
55828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55829         GNULIB_SIGNAL_H_SIGPIPE.
55830         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55831         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55832
55833         * modules/sigpipe: New file.
55834         * m4/sigpipe.m4: New file.
55835
55836 2008-09-25  Derek Price  <derek@ximbiot.com>
55837             Bruno Haible  <bruno@clisp.org>
55838
55839         * gnulib-tool (func_import): Report all license incompatibilities, not
55840         just the first one.
55841
55842 2008-09-25  Bruno Haible  <bruno@clisp.org>
55843
55844         * gnulib-tool (func_import): When computing the edits, consider not
55845         only the Makefile.ams that exist but also those that will be generated.
55846
55847 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55848
55849         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55850         fixes gnulib-tool --test warning about duplicate dependency.
55851
55852 2008-09-25  Bruno Haible  <bruno@clisp.org>
55853
55854         * gnulib-tool: Don't ask the user to perform edits in the generated
55855         Makefile.ams.
55856         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55857         apply to the Makefile.am being generated.
55858         (func_emit_tests_Makefile_am): Execute edits that apply to the
55859         Makefile.am being generated.
55860         (func_import): Setup list of Makefile.am edits before emitting the
55861         Makefile.ams, not at the end.
55862         (func_create_testdir): Update.
55863         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55864
55865 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55866
55867         * gnulib-tool (func_import): Store the --tests-base option in the
55868         comment in gnulib-cache.m4.
55869
55870 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55871
55872         * NEWS: Document increased portability that sys_select now provides.
55873
55874         * lib/sys_select.in.h: Install select wrapper.
55875         * lib/sys_socket.in.h: Use more descriptive name when there is no
55876         select wrapper.
55877         * lib/winsock-select.c: New.
55878         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55879         Require gl_HEADER_SYS_SOCKET.
55880         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55881         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55882         * tests/test-sys_select.c: Add functional tests.
55883
55884 2008-09-24  Eric Blake  <ebb9@byu.net>
55885
55886         open, fopen: close fd leak in last patch
55887         * lib/open.c (rpl_open): Close fd before returning error.
55888         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55889         * doc/posix-functions/open.texi (open): Document that Irix also
55890         has the bug.
55891         * doc/posix-functions/fopen.texi (fopen): Likewise.
55892         Reported by Paolo Bonzini.
55893
55894 2008-09-24  Bruno Haible  <bruno@clisp.org>
55895
55896         Ensure that a filename ending in a slash cannot be used to access a
55897         non-directory.
55898         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55899         to check whether it's really a directory.
55900         * lib/fopen.c: Include fcntl.h, unistd.h.
55901         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55902         and fdopen().
55903         * modules/fopen (Depends-on): Add unistd.
55904         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55905         * tests/test-fopen.c (main): Likewise.
55906         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55907         * doc/posix-functions/fopen.texi: Likewise.
55908         Reported by Eric Blake.
55909
55910 2008-09-23  Eric Blake  <ebb9@byu.net>
55911
55912         c-stack: avoid compiler optimizations when provoking overflow
55913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55914         recursion harder to optimize, to ensure a stack overflow occurs.
55915         * tests/test-c-stack.c (recurse): Likewise.
55916         Borrowed from libsigsegv.
55917
55918         c-stack: work around Irix sigaltstack bug
55919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55920         whether sigaltstack uses wrong end of stack_t (copied in part from
55921         libsigsegv).
55922         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55923         Irix bug, without requiring an over-allocation.
55924         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55925         bug.
55926
55927         fopen: document mingw bug on directories
55928         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55929         not allowing a stream visiting a directory, even though reading
55930         from such a stream is not portable.
55931
55932 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55933
55934         * lib/poll.c: Rewrite.
55935         * modules/poll: Depend on alloca.
55936
55937 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55938
55939         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55940         instead define prototypes for a full set of wrappers.  Ensure
55941         that Cygwin does not use the compatibility code, which is only
55942         for MinGW.
55943         * lib/winsock.c: New.
55944         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55945         * modules/sys_socket: Add lib/winsock.c.
55946
55947         * modules/poll-tests: Add errno and perror.
55948         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55949
55950 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55951
55952         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55953
55954 2008-09-23  Bruno Haible  <bruno@clisp.org>
55955
55956         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55957         * doc/glibc-functions/*: Likewise.
55958
55959 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55960
55961         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55962         success.
55963
55964 2008-09-22  Eric Blake  <ebb9@byu.net>
55965             Bruno Haible  <bruno@clisp.org>
55966
55967         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55968         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55969         supply %A but mishandle pseudo-NaN.
55970         Reported by Simon Josefsson.
55971
55972 2008-09-21  Bruno Haible  <bruno@clisp.org>
55973
55974         * tests/test-lock.c (main): Tweak skip message.
55975         * tests/test-tls.c (main): Likewise.
55976
55977 2008-09-21  Bruno Haible  <bruno@clisp.org>
55978
55979         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55980         whether 'struct sigaction' has sa_sigaction here...
55981         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55982         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55983
55984 2008-09-21  Bruno Haible  <bruno@clisp.org>
55985
55986         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55987         section.
55988         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55989         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55990         the new section.
55991         (Support for obsolete systems lacking POSIX:2001): New section.
55992         (String handling <string.h>): Move strdup to the new section.
55993         Suggested by Simon Josefsson and Paolo Bonzini.
55994
55995 2008-09-21  Bruno Haible  <bruno@clisp.org>
55996
55997         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55998         exponents in %e and %g results on 'long double'. Needed for mingw's
55999         improved *printf functions.
56000         * tests/test-vasprintf-posix.c (test_function): Likewise.
56001         * tests/test-snprintf-posix.h (test_function): Likewise.
56002         * tests/test-sprintf-posix.h (test_function): Likewise.
56003         Reported by Eric Blake.
56004
56005 2008-09-21  Bruno Haible  <bruno@clisp.org>
56006
56007         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56008         * tests/test-sprintf-posix.h (test_function): Likewise.
56009
56010 2008-09-21  Bruno Haible  <bruno@clisp.org>
56011
56012         * modules/getpass (Depends-on): Add strdup-posix.
56013
56014         New module 'strdup-posix'.
56015         * modules/strdup-posix: New file.
56016         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56017         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56019         REPLACE_STRDUP.
56020         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56021         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56023         strdup-posix.
56024
56025         * modules/strdup (Depends-on): Remove malloc-posix.
56026
56027 2008-09-20  Bruno Haible  <bruno@clisp.org>
56028
56029         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56030         Wildenhues.
56031
56032 2008-09-20  Bruno Haible  <bruno@clisp.org>
56033
56034         Ensure that wint_t gets defined on IRIX 5.3.
56035         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56036         * lib/wctype.in.h (wint_t): Likewise.
56037         (__wctype_wint_t): Remove type.
56038         (isw*): Use wint_t instead of __wctype_wint_t.
56039         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56040         * modules/wchar (Files): Add m4/wint_t.m4.
56041         (Makefile.am): Substitute HAVE_WINT_T.
56042         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56043         * tests/test-wctype.c: Check that wint_t is defined.
56044         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56045         * doc/posix-headers/wctype.texi: Likewise.
56046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56047
56048 2008-09-18  Bruno Haible  <bruno@clisp.org>
56049
56050         * gnulib-tool (func_exit): Update comment.
56051
56052 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56053
56054         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56055         assumes strdup exists and does not depend on strdup to return
56056         ENOMEM on out of memory conditions.
56057
56058 2008-09-18  Bruno Haible  <bruno@clisp.org>
56059
56060         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56061         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56062         digits for the exponent.
56063
56064 2008-09-18  Jim Meyering  <meyering@redhat.com>
56065             Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/vasnprintf.c (decimal_point_char): Define also if
56068         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56069
56070 2008-09-16  Bruno Haible  <bruno@clisp.org>
56071         and Eric Blake  <ebb9@byu.net>
56072
56073         vasnprintf: support Irix 5.3
56074         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56075         that mishandle long double infinity.
56076         Reported by Tom G. Christensen.
56077
56078 2008-09-16  Bruno Haible  <bruno@clisp.org>
56079
56080         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56081         Solaris 9.
56082         * doc/glibc-functions/alphasort.texi: Likewise.
56083         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56084
56085 2008-09-16  Jim Meyering  <meyering@redhat.com>
56086
56087         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56088         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56089         a umask modification leak out of a subshell.  Otherwise, the
56090         opensolaris /bin/sh would be accepted and thus cause unwarranted
56091         failures in the coreutils test suite.
56092
56093 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56094
56095         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56096         to succeed.
56097
56098 2008-09-16  Jim Meyering  <meyering@redhat.com>
56099
56100         avoid spurious test failure when library is built without ACL support
56101         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56102         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56103         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56104         * tests/test-copy-acl.sh: Likewise.
56105
56106 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56107
56108         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56109         based on character occurrence counts.
56110
56111 2008-09-15  Eric Blake  <ebb9@byu.net>
56112
56113         tests: avoid some compiler warnings
56114         * tests/test-memchr.c (main): Pass NULL indirectly.
56115         * tests/test-closein.c (main): Avoid unused variable.
56116
56117 2008-09-15  Bruno Haible  <bruno@clisp.org>
56118
56119         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56120         are missing on OpenBSD 4.0 individually.
56121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56122
56123 2008-09-15  Bruno Haible  <bruno@clisp.org>
56124
56125         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56126         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56127         * doc/posix-functions/perror.texi: Likewise.
56128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56129         is missing.
56130         Reported by Eric Blake.
56131
56132         * lib/errno.in.h: Use replacement values >= 2000.
56133         Reported by Eric Blake.
56134
56135 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56136
56137         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56138         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56139         limit.
56140         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56141         compareseq was aborted.
56142
56143 2008-09-14  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56146         yvec_edit_count.
56147         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56148         (fstrcmp_bounded): Simplify result computation accordingly.
56149
56150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56151
56152         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56153         (fstrcmp): Define in terms of fstrcmp_bounded.
56154         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56155         lower_bound argument.
56156         Return quickly if the result is certainly < lower_bound.
56157         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56158
56159 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56160
56161         * lib/diffseq.h (EARLY_ABORT): New macro.
56162         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56163         evaluates to true.
56164
56165 2008-09-14  Bruno Haible  <bruno@clisp.org>
56166
56167         * modules/perror-tests: New file.
56168         * tests/test-perror.sh: New file.
56169         * tests/test-perror.c: New file.
56170
56171         New module 'perror'.
56172         * lib/stdio.in.h (perror): New declaration.
56173         * lib/perror.c: New file.
56174         * m4/perror.m4: New file.
56175         * modules/perror: New file.
56176         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56177         * doc/posix-functions/perror.texi: Mention the perror module.
56178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56179         REPLACE_PERROR.
56180         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56181         REPLACE_PERROR.
56182
56183 2008-09-14  Bruno Haible  <bruno@clisp.org>
56184
56185         * modules/stdio (Makefile.am): Reorder to match the order in
56186         lib/stdio.in.h.
56187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56188
56189 2008-09-13  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56192
56193 2008-09-13  Bruno Haible  <bruno@clisp.org>
56194
56195         Extend strerror to cover the added errno values.
56196         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56197         (rpl_strerror): Provide error messages for the added errno values and
56198         for the WSA* values.
56199         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56200         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56201         strerror.
56202         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56203         * modules/strerror (Depends-on): Add errno.
56204         * doc/posix-functions/strerror.texi: Document the change.
56205         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56206         and EOVERFLOW.
56207
56208 2008-09-13  Bruno Haible  <bruno@clisp.org>
56209
56210         * modules/EOVERFLOW: Remove file.
56211         * m4/eoverflow.m4: Remove file.
56212         * modules/EOVERFLOW-tests: Remove file.
56213         * tests/test-EOVERFLOW.c: Remove file.
56214         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56215         * modules/ftell (Depends-on): Likewise.
56216         * modules/getdelim (Depends-on): Likewise.
56217         * modules/getugroups (Depends-on): Likewise.
56218         * modules/poll (Depends-on): Likewise.
56219         * modules/snprintf (Depends-on): Likewise.
56220         * modules/sprintf-posix (Depends-on): Likewise.
56221         * modules/vasnprintf (Depends-on): Likewise.
56222         * modules/vasprintf (Depends-on): Likewise.
56223         * modules/vfprintf-posix (Depends-on): Likewise.
56224         * modules/vsnprintf (Depends-on): Likewise.
56225         * modules/vsprintf-posix (Depends-on): Likewise.
56226         * modules/xvasprintf (Depends-on): Likewise.
56227         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56228         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56229         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56230         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56231         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56232         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56233         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56234         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56235         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56236         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56237         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56238         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56239         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56240         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56241         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56242         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56244         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56245         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56246         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56247         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56248         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56249         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56250         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56251         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56252         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56253         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56254         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56255         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56256         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56257         * MODULES.html.sh: Remove EOVERFLOW.
56258         * NEWS: Mention the change.
56259
56260 2008-09-13  Bruno Haible  <bruno@clisp.org>
56261
56262         * modules/errno-tests: New file.
56263         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56264
56265         * lib/errno.in.h: New file.
56266         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56267         * modules/errno: New file.
56268         * doc/posix-headers/errno.texi: Update documentation.
56269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56270
56271 2008-09-13  Bruno Haible  <bruno@clisp.org>
56272
56273         * tests/test-poll.c: Use #if for native Windows, rather than testing
56274         __MSVCRT__.
56275
56276 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56277             Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/glob.c: Don't include <pwd.h> on native Windows.
56280         (WINDOWS32): New macro.
56281         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56282
56283 2008-09-13  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56286         (ETIMEDOUT): Remove macro.
56287         (glthread_cond_timedwait_multithreaded): New declaration.
56288         (glthread_cond_timedwait): Use it.
56289         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56290         (glthread_cond_timedwait_multithreaded): New function.
56291
56292 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56293
56294         * modules/poll-tests: Do not check for io.h.
56295         * tests/test-poll.c: Check for __MSVCRT__ instead.
56296
56297 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56298
56299         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56300         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56301         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56302
56303 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56304
56305         * modules/poll-tests: New.
56306         * tests/test-poll.c: New.
56307
56308 2008-09-12  Eric Blake  <ebb9@byu.net>
56309
56310         frexp: test for NetBSD failure on -0.0
56311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56312         not all, bugs from NetBSD 3.0 have been fixed.
56313         * doc/posix-functions/frexp.texi (frexp): Document bug.
56314         Reported by Thomas Klausner.
56315
56316         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56317         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56318         literal -0.0.
56319         Reported by Jonathan C. Patschke <jp@centtech.com>.
56320
56321 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56322
56323         * lib/glthread/cond.h: Use dummy implementation also if
56324         USE_WIN32_THREADS.
56325
56326 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56327
56328         * modules/fnmatch-posix (License): Change to LGPLv2+.
56329         * modules/fnmatch-gnu (License): Likewise.
56330
56331 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56332
56333         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56334
56335 2008-09-11  Jim Meyering  <meyering@redhat.com>
56336
56337         * users.txt: Add gtk-vnc.
56338
56339 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56340
56341         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56342         rotate amounts.
56343
56344         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56345         required for 16-bit and 8-bit rotates.
56346         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56347         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56348         UINT8_MAX instead of hard-coded constants.
56349         Suggested by Paul Eggert.
56350
56351 2008-09-07  Bruno Haible  <bruno@clisp.org>
56352
56353         * tests/test-striconveh.c (main): Check behaviour when converting from
56354         UTF-7.
56355
56356         Make striconveh work better with stateful encodings.
56357         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56358         that iconv does not increment the inptr when returning -1/EINVAL.
56359
56360 2008-09-07  Bruno Haible  <bruno@clisp.org>
56361
56362         * build-aux/config.rpath: Update according to libtool-2.2.6.
56363         * build-aux/config.libpath: Likewise.
56364
56365 2008-09-06  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56368         * lib/freadptr.c (freadptr): Likewise.
56369         * lib/freadseek.c (freadptrinc): Likewise.
56370         Reported by Simon Josefsson.
56371
56372 2008-09-06  Bruno Haible  <bruno@clisp.org>
56373
56374         * modules/freadptr (License): Change to LGPLv2+.
56375         * modules/freadseek (License): Likewise.
56376         Suggested by Eric Blake.
56377
56378         * modules/memchr2 (License): Change to LGPLv2+.
56379         Approved by Eric Blake.
56380
56381 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56382             Bruno Haible  <bruno@clisp.org>
56383
56384         Make gnulib-tool work with native 'sed' on AIX.
56385         * gnulib-tool (sed_noop): New variable.
56386         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56387         func_add_or_update, func_create_testdir): Use it to initialize sed
56388         script variables.
56389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56390
56391 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56392             Bruno Haible  <bruno@clisp.org>
56393
56394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56395         also works after #include directives.
56396
56397 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56398
56399         getdate.y: reject an out-of-range timezone value
56400         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56401         the range [-24...+24].  When specified with only one or two digits,
56402         * tests/test-getdate.c: Tests for the fix.
56403         * doc/getdate.texi: Document this change.
56404
56405 2008-09-03  Bruno Haible  <bruno@clisp.org>
56406
56407         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56408
56409 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56410
56411         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56412         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56413         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56414         Blake <ebb9@byu.net>.
56415
56416         * tests/test-bitrotate.c: Add more test vectors.
56417
56418 2008-09-02  Eric Blake  <ebb9@byu.net>
56419
56420         vasnprintf-posix: handle large precision via %.*d
56421         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56422         when handling it ourselves.
56423         * tests/test-vasnprintf-posix.c (test_function): Add test.
56424         * tests/test-snprintf-posix.h (test_function): Likewise.
56425         * tests/test-sprintf-posix.h (test_function): Likewise.
56426         * tests/test-vasprintf-posix.c (test_function): Likewise.
56427         Reported by Alain Guibert.
56428
56429 2008-09-01  Eric Blake  <ebb9@byu.net>
56430
56431         c-stack: make configure-time check more robust
56432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56433         successful sigaction call.
56434         Reported by Tom G. Christensen.
56435
56436 2008-09-01  Bruno Haible  <bruno@clisp.org>
56437
56438         New module 'findprog-lgpl'.
56439         * modules/findprog-lgpl: New file.
56440         * lib/findprog-lgpl.c: New file.
56441         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56442         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56443         to decide whether to use strdup or xstrdup, concatenated_filename or
56444         xconcatenated_filename.
56445
56446 2008-09-01  Bruno Haible  <bruno@clisp.org>
56447
56448         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56449         'xconcat-filename' (GPL).
56450         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56451         (License): Change to LGPLv2+.
56452         * modules/xconcat-filename: New file.
56453         * lib/concat-filename.h (concatenated_filename): Change specification.
56454         (xconcatenated_filename): New declaration.
56455         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56456         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56457         memory situations.
56458         * lib/xconcat-filename.c: New file.
56459         * NEWS: Mention the change.
56460         * lib/findprog.c: Include concat-filename.h, not filename.h.
56461         (find_in_path): Use xconcatenated_filename instead of
56462         concatenated_filename.
56463         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56464         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56465         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56466         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56467         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56468         instead of concatenated_filename.
56469         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56470         (execute_java_class): Use xconcatenated_filename instead of
56471         concatenated_filename.
56472         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56473         * modules/javacomp (Depends-on): Likewise.
56474         * modules/javaexec (Depends-on): Likewise.
56475
56476 2008-09-01  Bruno Haible  <bruno@clisp.org>
56477
56478         Split module 'filename' into 'filename' and 'concat-filename'.
56479         * modules/filename: Keep only lib/filename.h.
56480         (License): Change to LGPLv2+.
56481         * modules/concat-filename: New file, extracted from modules/filename.
56482         * lib/filename.h (concatenated_filename): Remove declaration.
56483         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56484         * lib/concat-filename.c: Include concat-filename.h.
56485         * NEWS: Mention the change.
56486
56487 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56488
56489         * lib/bitrotate.h (rotl8, rotr8): Add.
56490
56491         * modules/bitrotate (configure.ac): Need
56492         AC_REQUIRE([AC_C_INLINE]).
56493         (Description): Mention stdint.h.  Reported by Bruno Haible
56494         <bruno@clisp.org>.
56495
56496         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56497         Paolo Bonzini <bonzini@gnu.org>.
56498
56499 2008-08-31  Bruno Haible  <bruno@clisp.org>
56500
56501         Assume Solaris specific bi-arch conventions on Solaris systems.
56502         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56503         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56505         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56506         like acl_libdirstem.
56507         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56508         acl_libdirstem.
56509         * NEWS: Mention the change.
56510         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56511
56512 2008-08-31  Jim Meyering  <meyering@redhat.com>
56513
56514         * lib/strftime.h: Add comments describing the two added arguments.
56515
56516         remove duplicate #include directives
56517         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56518         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56519
56520 2008-08-31  Bruno Haible  <bruno@clisp.org>
56521
56522         New module 'sigpipe-die'.
56523         * modules/sigpipe-die: New file.
56524         * lib/sigpipe-die.h: New file.
56525         * lib/sigpipe-die.c: New file.
56526         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56527
56528 2008-08-31  Bruno Haible  <bruno@clisp.org>
56529
56530         Don't override previously installed signal handlers.
56531         * lib/fatal-signal.c (saved_sigactions): New variable.
56532         (uninstall_handlers): Reset the signal to the saved handler, not
56533         to SIG_DFL (except when ignored).
56534         (install_handlers): Save the previous handlers.
56535
56536 2008-08-30  Bruno Haible  <bruno@clisp.org>
56537
56538         * gnulib-tool (func_reset_sigpipe): New function.
56539         (func_get_automake_snippet, func_modules_transitive_closure,
56540         func_import): Invoke it before a join command that reads from stdin,
56541         to avoid "echo: write error: Broken pipe" error messages on stderr.
56542         Reported by Sam Steingold <sds@gnu.org>.
56543
56544 2008-08-30  Bruno Haible  <bruno@clisp.org>
56545
56546         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56547         Code copied from m4/open.m4.
56548         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56549         access and the filename ends in a slash. Code copied from lib/open.c.
56550         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56551         * tests/test-fopen.c (main): Check against bug with trailing slash.
56552
56553 2008-08-29  Bruno Haible  <bruno@clisp.org>
56554
56555         Avoid some "gcc -pedantic" warnings.
56556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56557         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56558         * lib/dirent.in.h: Likewise.
56559         * lib/fcntl.in.h: Likewise.
56560         * lib/float.in.h: Likewise.
56561         * lib/iconv.in.h: Likewise.
56562         * lib/inttypes.in.h: Likewise.
56563         * lib/locale.in.h: Likewise.
56564         * lib/math.in.h: Likewise.
56565         * lib/netinet_in.in.h: Likewise.
56566         * lib/search.in.h: Likewise.
56567         * lib/signal.in.h: Likewise.
56568         * lib/stdarg.in.h: Likewise.
56569         * lib/stdint.in.h: Likewise.
56570         * lib/stdio.in.h: Likewise.
56571         * lib/stdlib.in.h: Likewise.
56572         * lib/string.in.h: Likewise.
56573         * lib/strings.in.h: Likewise.
56574         * lib/sys_select.in.h: Likewise.
56575         * lib/sys_socket.in.h: Likewise.
56576         * lib/sys_stat.in.h: Likewise.
56577         * lib/sys_time.in.h: Likewise.
56578         * lib/sysexits.in.h: Likewise.
56579         * lib/time.in.h: Likewise.
56580         * lib/unistd.in.h: Likewise.
56581         * lib/wchar.in.h: Likewise.
56582         * lib/wctype.in.h: Likewise.
56583         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56584         * modules/fchdir (Makefile.am): Likewise.
56585         * modules/fcntl (Makefile.am): Likewise.
56586         * modules/float (Makefile.am): Likewise.
56587         * modules/iconv_open (Makefile.am): Likewise.
56588         * modules/inttypes (Makefile.am): Likewise.
56589         * modules/locale (Makefile.am): Likewise.
56590         * modules/math (Makefile.am): Likewise.
56591         * modules/netinet_in (Makefile.am): Likewise.
56592         * modules/search (Makefile.am): Likewise.
56593         * modules/signal (Makefile.am): Likewise.
56594         * modules/stdarg (Makefile.am): Likewise.
56595         * modules/stdint (Makefile.am): Likewise.
56596         * modules/stdio (Makefile.am): Likewise.
56597         * modules/stdlib (Makefile.am): Likewise.
56598         * modules/string (Makefile.am): Likewise.
56599         * modules/strings (Makefile.am): Likewise.
56600         * modules/sys_select (Makefile.am): Likewise.
56601         * modules/sys_socket (Makefile.am): Likewise.
56602         * modules/sys_stat (Makefile.am): Likewise.
56603         * modules/sys_time (Makefile.am): Likewise.
56604         * modules/sysexits (Makefile.am): Likewise.
56605         * modules/time (Makefile.am): Likewise.
56606         * modules/unistd (Makefile.am): Likewise.
56607         * modules/wchar (Makefile.am): Likewise.
56608         * modules/wctype (Makefile.am): Likewise.
56609         Reported by Reuben Thomas <rrt@sc3d.org>.
56610
56611 2008-08-29  Bruno Haible  <bruno@clisp.org>
56612
56613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56614         any more.
56615
56616 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56617
56618         * MODULES.html.sh (Misc): Add bitrotate.
56619
56620         * modules/bitrotate: New file.
56621
56622         * lib/bitrotate.h: New file.
56623
56624         * modules/bitrotate-tests: New file.
56625
56626         * tests/test-bitrotate.c: New file.
56627
56628         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56629         on the bitrotate module.
56630
56631         * lib/arctwo.c: Use new bitrotate module.
56632
56633 2008-08-29  Jim Meyering  <meyering@redhat.com>
56634
56635         bootstrap: merge changes from coreutils
56636         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56637         of copied files.  Remove a kludge, now that this is fixed.
56638         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56639         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56640         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56641
56642 2008-08-29  Bruno Haible  <bruno@clisp.org>
56643
56644         * MODULES.html.sh: Remove --cvs-urls option.
56645
56646 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56647
56648         maint.mk: adjust to file name change
56649         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56650
56651 2008-08-28  Jim Meyering  <meyering@redhat.com>
56652
56653         * modules/getndelim2 (License): Relicense to LGPLv2+.
56654         Approved by Richard Stallman for the version of 1995, and by
56655         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56656
56657 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56658
56659         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56660         dummy if one is not available.  Do not touch them if
56661         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56662         (getc_maybe_unlocked): New.
56663         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56664
56665 2008-08-26  Eric Blake  <ebb9@byu.net>
56666
56667         doc/INSTALL: resync from autoconf
56668         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56669         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56670         moving...
56671         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56672         * INSTALL: Regenerate.
56673         * INSTALL.ISO: New file.
56674         * INSTALL.UTF-8: Likewise.
56675
56676 2008-08-26  Jim Meyering  <meyering@redhat.com>
56677
56678         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56679         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56680         these definitions conditional, so that they may be overridden, too.
56681
56682 2008-08-26  Bruno Haible  <bruno@clisp.org>
56683
56684         Generate INSTALL file variants with prettier quotes.
56685         * doc/Makefile (INSTALL_PRELUDE): New macro.
56686         (INSTALL): Use it.
56687         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56688
56689 2008-08-26  Bruno Haible  <bruno@clisp.org>
56690
56691         Run makeinfo in an English locale.
56692         * doc/Makefile (MAKEINFO): New variable.
56693
56694 2008-08-26  Bruno Haible  <bruno@clisp.org>
56695
56696         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56697         Suggested by Eric Blake.
56698
56699 2008-08-25  Bruno Haible  <bruno@clisp.org>
56700
56701         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56702
56703 2008-08-25  Eric Blake  <ebb9@byu.net>
56704
56705         c-stack: test that stack overflow can be caught
56706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56707         that platform allows handling stack overflow; at least OS/2 EMX
56708         has sigaltstack, but crashes before transferring control to
56709         handler on stack overflow.
56710         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56711         check for HAVE_STACK_OVERFLOW_HANDLING.
56712         Reported by Elbert Pol.
56713
56714 2008-08-25  Bruno Haible  <bruno@clisp.org>
56715
56716         * doc/posix-functions/strftime.texi: Fix description of strftime
56717         module.
56718
56719 2008-08-24  Bruno Haible  <bruno@clisp.org>
56720
56721         * tests/uniwidth/test-uc_width2.c: New file.
56722         * tests/uniwidth/test-uc_width2.sh: New file.
56723         * modules/uniwidth/width-tests (Files): Add the new files.
56724         (TESTS): Add uniwidth/test-uc_width2.sh.
56725         (TESTS_ENVIRONMENT): New variable.
56726         (check_PROGRAMS): Add test-uc_width2.
56727         (test_uc_width2_SOURCES): New variable.
56728
56729         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56730         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56731         not 0x00AB.
56732         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56733
56734 2008-08-22  Eric Blake  <ebb9@byu.net>
56735
56736         test-lock, test-tls: mention why a test is skipped
56737         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56738         skipped.
56739         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56740
56741         count-one-bits: relax license
56742         * modules/count-one-bits (License): Relicense to LGPLv2+.
56743         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56744
56745 2008-08-22  Andreas Schwab  <schwab@suse.de>
56746
56747         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56748         Remove spurious space in assignment.
56749
56750 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56751
56752         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56753         Paul Eggert <eggert@CS.UCLA.EDU>.
56754
56755 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56756
56757         * modules/gettext: Add m4/threadlib.m4.
56758
56759 2008-08-19  Eric Blake  <ebb9@byu.net>
56760
56761         test-c-stack: fix compilation failure on FreeBSD 5.0
56762         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56763         headers before <sys/resource.h>.
56764         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56765         the bug.
56766         Reported by Nelson H. F. Beebe.
56767
56768         strverscmp: migrate from "strverscmp.h" to <string.h>
56769         * modules/string (Makefile.am): Add new hooks.
56770         * modules/strverscmp (Files): Remove strverscmp.h.
56771         (Depends-on): Add string.
56772         (configure.ac): Add indicator.
56773         (Include): Mention new header.
56774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56775         defaults.
56776         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56777         results.
56778         * lib/strverscmp.h: Delete.
56779         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56780         * tests/test-strverscmp.c (includes): Adjust client.
56781         * lib/check-version.c (includes): Likewise.
56782         * NEWS: Document the change.
56783
56784         strverscmp: add unit test
56785         * modules/strverscmp-tests: New file.
56786         * tests/test-strverscmp.c: Likewise.
56787
56788 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56789
56790         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56791         regarding Windows crypto stuff, from Mono.
56792
56793 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56794
56795         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56796         if present, for intel RND.  Return error on failures.
56797
56798 2008-08-18  Ben Pfaff  <blp@gnu.org>
56799
56800         gitlog-to-changelog: give better diagnostic for failed pipe-open
56801         * build-aux/gitlog-to-changelog: Improve error message: suggest
56802         that the version of Git may be too old.
56803
56804 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56805
56806         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56807         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56808
56809 2008-08-18  Bruno Haible  <bruno@clisp.org>
56810
56811         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56812         pthread_in_use().
56813
56814 2008-08-18  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/glthread/threadlib.c: Include <pthread.h>.
56817
56818 2008-08-18  Bruno Haible  <bruno@clisp.org>
56819
56820         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56821         glthread_recursive_lock_* macros.
56822         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56823         Fix syntax error.
56824
56825 2008-08-18  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/glthread/thread.c: Avoid forcing a context switch right after
56828         thread creation.
56829
56830 2008-08-17  Bruno Haible  <bruno@clisp.org>
56831
56832         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56833         * lib/glthread/thread.h: Provide Win32 specific implementation.
56834         * modules/thread (Files): Add lib/glthread/thread.c.
56835         (Depends-on): Add lock.
56836         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56837
56838 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56839
56840         New module 'yield'.
56841         * modules/yield: New file.
56842         * lib/glthread/yield.h: New file.
56843         * m4/yield.m4: New file.
56844         * MODULES.html.sh (Multithreading): Add yield.
56845
56846 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56847
56848         New module 'thread'.
56849         * modules/thread: New file.
56850         * lib/glthread/thread.h: New file.
56851         * m4/thread.m4: New file.
56852         * MODULES.html.sh (Multithreading): Add thread.
56853
56854 2008-08-17  Bruno Haible  <bruno@clisp.org>
56855
56856         * lib/glthread/lock.h: Include <stdlib.h> always.
56857         * lib/glthread/tls.h: Likewise.
56858         * lib/glthread/cond.h: Likewise.
56859
56860 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56861
56862         New module 'cond'.
56863         * modules/cond: New file.
56864         * lib/glthread/cond.h: New file.
56865         * lib/glthread/cond.c: New file.
56866         * m4/cond.m4: New file.
56867         * MODULES.html.sh (Multithreading): Add cond.
56868
56869 2008-08-16  Eric Blake  <ebb9@byu.net>
56870
56871         c-stack: fix regression on Irix 5.3 from 2008-06-21
56872         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56873         sa_sigaction...
56874         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56875         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56877         * modules/signal (Makefile.am): Use the value.
56878         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56879         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56880         * doc/posix-headers/signal.texi (signal.h): Document this
56881         portability issue.
56882         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56883         Reported by Tom G. Christensen.
56884
56885 2008-08-17  Bruno Haible  <bruno@clisp.org>
56886
56887         New module 'threadlib'.
56888         * modules/threadlib: New file.
56889         * lib/glthread/threadlib.c: New file, extracted from
56890         lib/glthread/lock.c.
56891         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56892         functions.
56893         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56894         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56895         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56896         macros.
56897         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56898         (gl_DISABLE_THREADS): Remove macro.
56899         * modules/lock (Files): Remove build-aux/config.rpath.
56900         (Depends-on): Remove havelib. Add threadlib.
56901         (configure.ac-early): Remove section.
56902         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56903         * modules/tls (Depends-on): Remove lock. Add threadlib.
56904         (Link): New section, copied from threadlib.
56905         * MODULES.html.sh (Multithreading): Add threadlib.
56906
56907 2008-08-14  Bruno Haible  <bruno@clisp.org>
56908
56909         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56910         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56911         glthread_rwlock_unlock, glthread_rwlock_destroy,
56912         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56913         glthread_recursive_lock_destroy): Define as macros always.
56914         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56915         glthread_lock_lock.
56916         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56917         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56918         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56919         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56920         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56921         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56922         (glthread_recursive_lock_lock_func): Renamed from
56923         glthread_recursive_lock_lock.
56924         (glthread_recursive_lock_unlock_func): Renamed from
56925         glthread_recursive_lock_unlock.
56926         (glthread_recursive_lock_destroy_func): Renamed from
56927         glthread_recursive_lock_destroy.
56928
56929 2008-08-14  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/glthread/lock.h: Renamed from lib/lock.h.
56932         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56933         * lib/glthread/tls.h: Renamed from lib/tls.h.
56934         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56935         * lib/fstrcmp.c: Update includes.
56936         * lib/strsignal.c: Update includes.
56937         * modules/lock (Files, Makefile.am): Update.
56938         (Include): Change to "glthread/lock.h".
56939         * modules/tls (Files, Makefile.am): Update.
56940         (Include): Change to "glthread/tls.h".
56941         * tests/test-lock.c: Update includes.
56942         * tests/test-tls.c: Update includes.
56943         * NEWS: Mention the renamed header files.
56944
56945 2008-08-11  Jim Meyering  <meyering@redhat.com>
56946
56947         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56948
56949 2008-08-11  Eric Blake  <ebb9@byu.net>
56950
56951         test-c-stack: avoid C99-ism
56952         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56953         before statement.
56954         Reported by Alain Guibert.
56955
56956 2008-08-10  Jim Meyering  <meyering@redhat.com>
56957
56958         ensure that return value of uinttostr et al are not ignored
56959         * lib/inttostr.h (__GNUC_PREREQ): Define.
56960         (__attribute_warn_unused_result__): Define.
56961         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56962
56963 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56964
56965         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56966         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56967
56968 2008-08-07  Jim Meyering  <meyering@redhat.com>
56969
56970         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56971
56972         * modules/mkstemp (License): Relicense under LGPLv2+.
56973         * modules/tempname (License): Likewise.
56974
56975 2008-08-06  Bruno Haible  <bruno@clisp.org>
56976
56977         * lib/poll.c (poll): Further micro-optimization.
56978
56979 2008-08-06  Jim Meyering  <meyering@redhat.com>
56980
56981         inet_pton.c: use locale-independent tolower
56982         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56983         (inet_pton6): Use c_tolower rather than tolower.
56984         * modules/inet_pton (Depends-on): Add c-ctype.
56985
56986 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56987
56988         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56989         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56990
56991 2008-08-06  Jim Meyering  <meyering@redhat.com>
56992
56993         * modules/inet_pton (License): Relicense under LGPLv2+.
56994
56995 2008-08-03  Bruno Haible  <bruno@clisp.org>
56996
56997         Additional non-aborting API for lock and tls.
56998         * lib/lock.h: Include <errno.h>.
56999         (glthread_lock_init): New macro/function.
57000         (gl_lock_init): Define as wrapper around glthread_lock_init.
57001         (glthread_lock_lock): New macro/function.
57002         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57003         (glthread_lock_unlock): New macro/function.
57004         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57005         (glthread_lock_destroy): New macro/function.
57006         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57007         (glthread_rwlock_init): New macro/function.
57008         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57009         (glthread_rwlock_rdlock): New macro/function.
57010         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57011         (glthread_rwlock_wrlock): New macro/function.
57012         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57013         (glthread_rwlock_unlock): New macro/function.
57014         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57015         (glthread_rwlock_destroy): New macro/function.
57016         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57017         (glthread_recursive_lock_init): New macro/function.
57018         (gl_recursive_lock_init): Define as wrapper around
57019         glthread_recursive_lock_init.
57020         (glthread_recursive_lock_lock): New macro/function.
57021         (gl_recursive_lock_lock): Define as wrapper around
57022         glthread_recursive_lock_lock.
57023         (glthread_recursive_lock_unlock): New macro/function.
57024         (gl_recursive_lock_unlock): Define as wrapper around
57025         glthread_recursive_lock_unlock.
57026         (glthread_recursive_lock_destroy): New macro/function.
57027         (gl_recursive_lock_destroy): Define as wrapper around
57028         glthread_recursive_lock_destroy.
57029         (glthread_once): New macro/function.
57030         (gl_once): Define as wrapper around glthread_once.
57031         Update function declarations.
57032         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57033         glthread_rwlock_init. Return error code.
57034         (glthread_rwlock_rdlock_multithreaded): Renamed from
57035         glthread_rwlock_rdlock. Return error code.
57036         (glthread_rwlock_wrlock_multithreaded): Renamed from
57037         glthread_rwlock_wrlock. Return error code.
57038         (glthread_rwlock_unlock_multithreaded): Renamed from
57039         glthread_rwlock_unlock. Return error code.
57040         (glthread_rwlock_destroy_multithreaded): Renamed from
57041         glthread_rwlock_destroy. Return error code.
57042         (glthread_recursive_lock_init_multithreaded): Renamed from
57043         glthread_recursive_lock_init. Return error code.
57044         (glthread_recursive_lock_lock_multithreaded): Renamed from
57045         glthread_recursive_lock_lock. Return error code.
57046         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57047         glthread_recursive_lock_unlock. Return error code.
57048         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57049         glthread_recursive_lock_destroy. Return error code.
57050         (glthread_once_call): Make static.
57051         (glthread_once_multithreaded): Renamed from glthread_once.
57052         * lib/tls.h: Include <errno.h>.
57053         (glthread_tls_key_init): New macro/function.
57054         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57055         (glthread_tls_set): New macro/function.
57056         (gl_tls_set): Define as wrapper around glthread_tls_set.
57057         (glthread_tls_key_destroy): New macro/function.
57058         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57059         Update function declarations.
57060         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57061         glthread_tls_get.
57062         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57063
57064 2008-08-04  Eric Blake  <ebb9@byu.net>
57065
57066         gnumakefile: use space, not TAB, outside of targets
57067         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57068
57069 2008-08-02  Jim Meyering  <meyering@redhat.com>
57070
57071         getdate.y: avoid locale-dependent date parsing failure
57072         In Turkish locales, getdate would fail to recognize keywords
57073         containing a lowercase "i".  The solution is not to rely on
57074         locale-sensitive case-conversion.
57075         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57076         (lookup_word): Use c_toupper in place of toupper.
57077         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57078         Reported by Vefa Bicakci <bicave@superonline.com> in
57079         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57080         * modules/getdate (Depends-on): Add c-ctype.
57081
57082 2008-08-02  Bruno Haible  <bruno@clisp.org>
57083
57084         * gnulib-tool (func_import): When updating or creating a .gitignore
57085         file, prepend each added line with a slash, and ignore leading slashes
57086         from the existing lines.
57087         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57088
57089 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57090
57091         Portability fix for GNU make 3.79.1.
57092         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57093         versions do not understand.
57094
57095 2008-08-01  Bruno Haible  <bruno@clisp.org>
57096
57097         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57098         * tests/test-isnanf.h (zero): New variable.
57099         (main): Avoid literal -0.0f.
57100         * tests/test-isnand.h (zero): New variable.
57101         (main): Avoid literal -0.0.
57102         * tests/test-isnanl.h (zero): New variable.
57103         (main): Avoid literal -0.0L.
57104         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57105         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57106         -0.0, -0.0L.
57107         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57108         (test_signbitd): Avoid literal -0.0.
57109         (test_signbitl): Avoid literal -0.0L.
57110         * tests/test-ceilf1.c (zero): New variable.
57111         (main): Avoid literal -0.0f.
57112         * tests/test-ceill.c (zero): New variable.
57113         (main): Avoid literal -0.0L.
57114         * tests/test-floorf1.c (zero): New variable.
57115         (main): Avoid literal -0.0f.
57116         * tests/test-floorl.c (zero): New variable.
57117         (main): Avoid literal -0.0L.
57118         * tests/test-roundf1.c (zero): New variable.
57119         (main): Avoid literal -0.0f.
57120         * tests/test-round1.c (zero): New variable.
57121         (main): Avoid literal -0.0.
57122         * tests/test-roundl.c (zero): New variable.
57123         (main): Avoid literal -0.0L.
57124         * tests/test-truncf1.c (zero): New variable.
57125         (main): Avoid literal -0.0f.
57126         * tests/test-trunc1.c (zero): New variable.
57127         (main): Avoid literal -0.0.
57128         * tests/test-truncl.c (zero): New variable.
57129         (main): Avoid literal -0.0L.
57130         * tests/test-frexp.c (zero): New variable.
57131         (main): Avoid literal -0.0.
57132         * tests/test-frexpl.c (zero): New variable.
57133         (main): Avoid literal -0.0L.
57134         * tests/test-ldexpl.c (zero): New variable.
57135         (main): Avoid literal -0.0L.
57136         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57137         (zerod, zerol): New variables.
57138         (test_function): Avoid literals -0.0, -0.0L.
57139         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57140         (zerod, zerol): New variables.
57141         (test_function): Avoid literals -0.0, -0.0L.
57142         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57143         (zerod, zerol): New variables.
57144         (test_function): Avoid literals -0.0, -0.0L.
57145         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57146         (zerod, zerol): New variables.
57147         (test_function): Avoid literals -0.0, -0.0L.
57148         * tests/test-strtod.c (zero): New variable.
57149         (main): Avoid literal -0.0.
57150         Reported by Jonathan C. Patschke <jp@centtech.com>.
57151
57152 2008-07-31  Jim Meyering  <meyering@redhat.com>
57153
57154         sha256.h: correct definition of SHA224_DIGEST_SIZE
57155         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57156         Reported by Paulie Pena IV <paulie4@gmail.com>.
57157         Define as 224 / 8, rather than as a literal.
57158         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57159         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57160         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57161
57162 2008-07-31  Bruno Haible  <bruno@clisp.org>
57163
57164         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57165         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57166         Reported by Jonathan Patschke <jp@centtech.com>.
57167
57168 2008-07-31  Bruno Haible  <bruno@clisp.org>
57169
57170         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57171         Reported by Paolo Bonzini <bonzini@gnu.org>.
57172
57173 2008-07-30  Eric Blake  <ebb9@byu.net>
57174
57175         test-strtod: allow compilation without -lm
57176         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57177         Reported by Dennis Clarke <blastwave@gmail.com>.
57178
57179 2008-07-28  Jim Meyering  <meyering@redhat.com>
57180
57181         bootstrap: work also when there are no .po files in po/
57182         * build-aux/bootstrap (update_po_files): Complete the change
57183         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57184
57185 2008-07-27  Jim Meyering  <meyering@redhat.com>
57186
57187         * users.txt: Add zile.
57188
57189 2008-07-26  Ben Pfaff  <blp@gnu.org>
57190
57191         Add missing dependencies on new m4/exponent[fdl].m4 files.
57192         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57193         * modules/isnand-nolibm: Add m4/exponentd.m4.
57194         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57195         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57196         m4/isnan[fdl].m4, because the macros actually used moved.
57197         Reported by Jim Meyering.
57198
57199 2008-07-14  Ben Pfaff  <blp@gnu.org>
57200
57201         Add isinf module.
57202         * lib/isinf.c: New file.
57203         * lib/math.in.h: Define isinf macro if we have decided to replace
57204         it.
57205         * m4/isinf.m4: New file.
57206         * m4/math_h.m4: Initialize and substitute variables for isinf
57207         module.
57208         * modules/isinf: New file.
57209         * modules/isinf-tests: New file.
57210         * modules/math: Add substitutions for new module.
57211         * tests/test-isinf.c: New file.
57212         * doc/posix-functions/isinf.texi: Mention new module.
57213         * MODULES.html.sh: Mention new module.
57214
57215 2008-07-14  Ben Pfaff  <blp@gnu.org>
57216
57217         Factor out some macros for use by additional modules.
57218         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57219         exponentf.m4.
57220         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57221         exponentd.m4.
57222         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57223         file exponentl.m4.
57224         * m4/exponentf.m4: New file.
57225         * m4/exponentd.m4: New file.
57226         * m4/exponentl.m4: New file.
57227         * modules/isnanf: Use new file m4/exponentf.m4.
57228         * modules/isnand: Use new file m4/exponentd.m4.
57229         * modules/isnanl: Use new file m4/exponentl.m4.
57230
57231 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57232
57233         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57234         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57235         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57236         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57237
57238         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57239         readlink on platforms without PATH_MAX.
57240
57241 2008-07-21  Eric Blake  <ebb9@byu.net>
57242
57243         Warn, not fail, on stale version.
57244         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57245
57246         Don't allow installation with stale devel version number.
57247         * top/GNUmakefile (_is-install-target): New macro.
57248         (_curr-ver): Forbid installation with stale version number.
57249
57250 2008-07-20  Bruno Haible  <bruno@clisp.org>
57251
57252         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57253         TESTS_ENVIRONMENT.
57254         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57255
57256 2008-07-20  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/c-stack.h (c_stack_action): Add documentation.
57259         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57260
57261 2008-07-20  Bruno Haible  <bruno@clisp.org>
57262
57263         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57264         * modules/readlink (License): Likewise.
57265
57266 2008-07-17  Eric Blake  <ebb9@byu.net>
57267
57268         * modules/c-stack (Link): Fix typo.
57269
57270         Make c-stack use libsigsegv, when available.
57271         * modules/c-stack (Depends-on): Add libsigsegv.
57272         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57273         needed.
57274         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57275         (segv_handler, overflow_handler, c_stack_action)
57276         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57277         implementation when libsigsegv is available, but only when using
57278         the library is necessary.
57279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57280         comment, explaining why XSI check fails on Linux.
57281         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57282         * tests/test-c-stack2.sh: Tweak skip message.
57283         * NEWS: Document new link-time requirements.
57284
57285 2008-07-16  Eric Blake  <ebb9@byu.net>
57286
57287         c-stack: Expose false positives when not using libsigsegv.
57288         * modules/c-stack-tests (Files): Expand test.
57289         * tests/test-c-stack.c (main): Add means to conditionally trigger
57290         non-overflow SIGSEGV.
57291         * tests/test-c-stack2.sh: New file.
57292
57293 2008-07-14  Bruno Haible  <bruno@clisp.org>
57294
57295         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57296         Reported by Eric Blake.
57297
57298 2008-07-14  Sam Steingold  <sds@gnu.org>
57299             Bruno Haible  <bruno@clisp.org>
57300
57301         New module libsigsegv.
57302         * modules/libsigsegv: New file.
57303         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57304         modifications.
57305         * MODULES.html.sh (Signal handling): New section.
57306
57307 2008-07-14  Bruno Haible  <bruno@clisp.org>
57308
57309         * modules/unictype/ctype-* (Description): Add the word "function".
57310         Improves the resulting doc in MODULES.html.
57311
57312 2008-07-12  Ben Pfaff  <blp@gnu.org>
57313
57314         Add longlong module.
57315         * modules/longlong: New file.
57316
57317 2008-07-12  Bruno Haible  <bruno@clisp.org>
57318
57319         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57320         to empty.
57321
57322 2008-07-10  Ben Pfaff  <blp@gnu.org>
57323
57324         Add isnan module.
57325         * doc/posix-functions/isnan.texi: Mention new module.
57326         * lib/math.in.h: Define isnan macro if we have decided to replace
57327         it.
57328         * m4/isnan.m4: New file.
57329         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57330         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57331         also.
57332         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57333         redundancy.
57334         * m4/math_h.m4: Initialize and substitute variables for isnan
57335         module.
57336         * modules/isnan: New file.
57337         * modules/isnan-tests: New file.
57338         * modules/math: Add substitutions for new module.
57339         * tests/test-isnan.c: New file.
57340         * MODULES.html.sh: Mention new module.
57341
57342 2008-07-10  Ben Pfaff  <blp@gnu.org>
57343
57344         Add isnanf module.
57345         * lib/isnanf.m4: New file.
57346         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57347         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57348         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57349         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57350         * modules/isnanf: New file.
57351         * modules/isnanf-tests: New file.
57352         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57353         files.
57354         * tests/test-isnanf-nolibm.c: factored most of its contents into
57355         new file tests/test-isnanf.h.
57356         * tests/test-isnanf.h: New file.
57357         * tests/test-isnanf.c: New file.
57358         * MODULES.html.sh: Mention new module.
57359         * doc/glibc-functions/isnanf.texi: Mention new module.
57360
57361 2008-07-10  Ben Pfaff  <blp@gnu.org>
57362
57363         Add isnand module.
57364         * lib/isnand.h: New file.
57365         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57366         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57367         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57368         functionality also.
57369         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57370         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57371         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57372         * modules/isnand: New file.
57373         * modules/isnand-tests: New file.
57374         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57375         files.
57376         * tests/test-isnand-nolibm.c: factored most of its contents into
57377         new file tests/test-isnand.h.
57378         * tests/test-isnand.h: New file.
57379         * tests/test-isnand.c: New file.
57380         * MODULES.html.sh: Mention new module.
57381
57382 2008-07-10  Ben Pfaff  <blp@gnu.org>
57383
57384         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57385         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57386         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57387         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57388         * modules/isnanf-nolibm: Update references to renamed files.
57389         * modules/isnand-nolibm: Likewise.
57390         * modules/isnanf-nolibm-tests: Likewise.
57391         * modules/isnand-nolibm-tests: Likewise.
57392         * lib/frexp.c: Likewise.
57393         * lib/isfinite.c: Likewise.
57394         * lib/signbitd.c: Likewise.
57395         * lib/signbitf.c: Likewise.
57396         * lib/vasnprintf.c: Likewise.
57397         * tests/test-ceilf1.c: Likewise.
57398         * tests/test-ceilf2.c: Likewise.
57399         * tests/test-floorf1.c: Likewise.
57400         * tests/test-floorf2.c: Likewise.
57401         * tests/test-frexp.c: Likewise.
57402         * tests/test-round1.c: Likewise.
57403         * tests/test-round2.c: Likewise.
57404         * tests/test-roundf1.c: Likewise.
57405         * tests/test-strtod.c: Likewise.
57406         * tests/test-trunc1.c: Likewise.
57407         * tests/test-trunc2.c: Likewise.
57408         * tests/test-truncf1.c: Likewise.
57409         * tests/test-truncf2.c: Likewise.
57410         * NEWS: Mention the renamed header files.
57411
57412 2008-07-11  Jim Meyering  <meyering@redhat.com>
57413
57414         vc-list-files: make the last-resort awk code more portable
57415         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57416         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57417         does not support it.
57418
57419 2008-07-10  Eric Blake  <ebb9@byu.net>
57420
57421         Work with tar's bootstrap.
57422         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57423         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57424         an m4 comment.
57425
57426 2008-07-09  Jim Meyering  <meyering@redhat.com>
57427
57428         posix-shell.m4: fix typo that made this test malfunction
57429         * m4/posix-shell.m4: Remove capitalization in variable name.
57430
57431 2008-07-08  Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/onceonly.m4: Update comments.
57434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57435
57436 2008-07-04  Jim Meyering  <meyering@redhat.com>
57437
57438         * users.txt: Add vc-dwim.
57439         (bison, coreutils): Use the gitweb URL.
57440
57441 2008-07-03  Jim Meyering  <meyering@redhat.com>
57442
57443         * users.txt: Add libffcall.  From Sam Steingold.
57444
57445 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57446
57447         getdate.y: do not ignore TZ with relative day, month or year offset
57448         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57449         relative-date-handling, since otherwise, the latter would clobber the
57450         sole output (an updated Start value) of the tz-handling block.
57451         * tests/test-getdate.c: Tests for the fix
57452
57453 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57454
57455         Recognize 'foo_LIBRARIES += libgnu.a'.
57456         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57457         makefile snippet has already specified an installation location,
57458         also using '+='.
57459
57460 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57461
57462         getdate.y: factor out common actions
57463         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57464         Use them in place of open-coded actions.
57465
57466 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57467
57468         Add self-test for getdate module.
57469         * modules/getdate-tests: New file.
57470         * tests/test-getdate.c: New file.
57471
57472 2008-06-29  Bruno Haible  <bruno@clisp.org>
57473
57474         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57475         .gitignore.
57476         Reported by Sylvain Beucler <beuc@beuc.net>.
57477
57478 2008-06-29  Bruno Haible  <bruno@clisp.org>
57479
57480         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57481         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57482
57483 2008-06-29  Bruno Haible  <bruno@clisp.org>
57484
57485         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57486         EXTRA_DIST.
57487         Reported by Sylvain Beucler <beuc@beuc.net>.
57488
57489 2008-06-26  Jim Meyering  <meyering@redhat.com>
57490
57491         make several modules depend on the "open" module
57492         This provides slightly increased consistency when opening-for-write
57493         the name of a non-directory spelled with a trailing slash.
57494         * modules/chdir-safer: Likewise.
57495         * modules/chown: Likewise.
57496         * modules/clean-temp: Likewise.
57497         * modules/copy-file: Likewise.
57498         * modules/fchdir: Likewise.
57499         * modules/fcntl-safer: Likewise.
57500         * modules/pipe: Likewise.
57501         * modules/utime: Likewise.
57502         Prompted by Eric Blake and Bruno Haible.
57503
57504 2008-06-24  Andreas Schwab  <schwab@suse.de>
57505
57506         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57507         literals can be used as initializers for global variables.
57508
57509 2008-06-23  Eric Blake  <ebb9@byu.net>
57510
57511         Make gnulib-cache.m4 easier to diff.
57512         * gnulib-tool (func_import): Allow newlines when reading cached
57513         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57514
57515 2008-06-23  Bruno Haible  <bruno@clisp.org>
57516
57517         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57518         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57519         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57520         m4/signalblocking.m4.
57521         (gl_PREREQ_SIGACTION): Don't invoke it.
57522         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57523         gl_PREREQ_SIG_HANDLER_H.
57524         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57525         Don't check for sigaction here.
57526
57527 2008-06-23  Bruno Haible  <bruno@clisp.org>
57528
57529         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57530         (install_handlers): Don't set the SA_RESETHAND flag.
57531
57532 2008-06-23  Bruno Haible  <bruno@clisp.org>
57533
57534         * m4/sigaction.m4: Comment fixes.
57535         * lib/signal.in.h: Likewise.
57536
57537 2008-06-23  Eric Blake  <ebb9@byu.net>
57538
57539         Fix typo.
57540         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57541
57542         Avoid SA_ namespace.
57543         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57544         Reported by Ralf Wildenhues.
57545
57546         Avoid test failure due to SA_RESTORER.
57547         * tests/test-sigaction.c (SA_MASK): New macro.
57548         (main): Avoid failing due to extension flags being set.
57549         Reported by Jim Meyering.
57550
57551         Revert use of sig-handler.h in sigprocmask.c.
57552         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57553         it requires the existence of struct sigaction.
57554         * lib/sigprocmask.c (handler_t): Restore typedef.
57555         (rpl_signal, old_handlers): Use local type.
57556
57557 2008-06-22  Bruno Haible  <bruno@clisp.org>
57558
57559         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57560         conditionally.
57561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57562
57563 2008-06-22  Bruno Haible  <bruno@clisp.org>
57564
57565         * doc/posix-functions/siginterrupt.texi: Move note.
57566
57567         * lib/signal.in.h (SA_RESTART): New macro.
57568         * lib/sigaction.c: Update comment.
57569
57570         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57571
57572         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57573         (gl_PREREQ_SIGPROCMASK): Invoke it.
57574         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57575
57576         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57577
57578         * lib/sigprocmask.c: Update a comment.
57579
57580 2008-06-21  Eric Blake  <ebb9@byu.net>
57581
57582         Use sigaction module rather than signal().
57583         * modules/c-stack (Depends-on): Add sigaction.
57584         * modules/fatal-signal (Depends-on): Likewise.
57585         * modules/nanosleep (Depends-on): Likewise.
57586         * modules/sigprocmask (Files): Add sig-handler.h.
57587         * modules/sigaction (Files): Likewise.
57588         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57589         Eggert.
57590         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57591         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57592         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57593         (init_fatal_signals): Likewise.
57594         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57595         (siginterrupt): Delete fallback.
57596         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57597         instead.
57598         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57599         siginterrupt.
57600
57601         New module sigaction, for mingw.
57602         * modules/sigaction: New module...
57603         * modules/sigaction-tests: ...and its test.
57604         * m4/sigaction.m4: New file.
57605         * lib/sigaction.c: Likewise.
57606         * tests/test-sigaction.c: Likewise.
57607         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57608         * modules/signal (Makefile.am): Likewise.
57609         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57610         needed.
57611         * doc/posix-headers/signal.texi (signal.h): Mention provided
57612         types.
57613         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57614         that sigaction is preferable.
57615         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57616         module.
57617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57618         sigaction.
57619
57620         Improve robustness of sigprocmask by overriding signal.
57621         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57622         is in use.
57623         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57624         (SIGKILL, SIGSTOP): Provide fallbacks.
57625         (rpl_signal): Implement.
57626         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57627         signal can be called inside handlers.
57628
57629         Fix nanosleep module on mingw.
57630         * modules/nanosleep (Depends-on): Add sys_select.
57631         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57632
57633         Fix licensing of sigprocmask.
57634         * modules/raise (License): Relicense as LGPL.
57635
57636 2008-06-21  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57639         result if it contains question marks.
57640         Reported by Michael Geng <linux@michaelgeng.de>.
57641
57642 2008-06-19  Bruno Haible  <bruno@clisp.org>
57643
57644         Fix CVS-ism.
57645         * doc/gnulib.texi: Include updated-stamp.texi.
57646         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57647         (updated-stamp.texi): New rule.
57648         (gnulib.info): Depend on it.
57649         * doc/.gitignore: Add updated-stamp.texi.
57650         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57651
57652 2008-06-19  Bruno Haible  <bruno@clisp.org>
57653
57654         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57655         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57656
57657 2008-06-19  Eric Blake  <ebb9@byu.net>
57658
57659         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57660         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57661         Reported by Stepan Kasal.
57662
57663 2008-06-18  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57666         Reported by Eric Blake.
57667
57668 2008-06-18  Eric Blake  <ebb9@byu.net>
57669
57670         Work around cygwin 1.5.25 strsignal bug.
57671         * tests/test-strsignal.c: Allow for const char *.
57672         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57673
57674 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57675
57676         * users.txt: Update URL to article and add author/date
57677         information.
57678
57679 2008-06-17  Bruno Haible  <bruno@clisp.org>
57680
57681         New macro gl_DISABLE_THREADS.
57682         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57683         if the user did not pass --enable-threads or --disable-threads option.
57684         (gl_DISABLE_THREADS): New macro.
57685         Reported by Eric Blake <ebb9@byu.net>.
57686
57687 2008-06-17  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57690         when the macro ignores it.
57691         Based on a patch by Eric Blake <ebb9@byu.net>.
57692
57693 2008-06-17  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/tls (License): Change to LGPLv2+.
57696         Reported by Eric Blake.
57697
57698 2008-06-17  Eric Blake  <ebb9@byu.net>
57699
57700         Simplify c-stack prerequisites.
57701         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57703         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57704         check.
57705         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57706         <sys/resource.h>.
57707
57708         Move c-stack test into testsuite.
57709         * modules/c-stack-tests: New file.
57710         * lib/c-stack.c [DEBUG]: Move test program...
57711         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57712         fail test if sigaltstack is lacking.
57713         * tests/test-c-stack.sh: New driver file.
57714
57715 2008-06-16  Eric Blake  <ebb9@byu.net>
57716
57717         Use raise module consistently.
57718         * modules/fatal-signal (Depends-on): Add raise.
57719         * modules/sigprocmask (Depends-on): Likewise.
57720         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57721         * lib/sigprocmask.c (sigprocmask): Likewise.
57722         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57723         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57724
57725         Fix compliance bug in sigpending.
57726         * lib/sigprocmask.c (sigpending): Return pending array via
57727         parameter, not return value.
57728
57729 2008-06-14  Eric Blake  <ebb9@byu.net>
57730
57731         Improve obstack-printf test code.
57732         * tests/test-obstack-printf.c (test_function): Fix comment, and
57733         simplify usage of obstack_* in macros.  Add a test for coverage.
57734         Reported by Bruno Haible.
57735
57736 2008-06-14  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57739         array size as a constant, not as a const variable.
57740         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57741         AC_USE_SYSTEM_EXTENSIONS.
57742         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57743         Test whether the obstack_printf function actually exists.
57744         * modules/obstack-printf (Depends-on): Add extensions.
57745         (Include): Remove obstack.h.
57746         * modules/obstack-printf-posix (Depends-on): Add extensions.
57747         (Include): Remove obstack.h.
57748
57749 2008-06-13  Eric Blake  <ebb9@byu.net>
57750
57751         Add obstack-printf and obstack-printf-posix modules.
57752         * modules/obstack-printf: New file.
57753         * modules/obstack-printf-posix: Likewise.
57754         * MODULES.html.sh (Misc): Mention them.
57755         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57756         Likewise.
57757         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57758         Likewise.
57759         * modules/stdio (Makefile.am): Accomodate new modules.
57760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57761         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57762         Declare.
57763         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57764         functions.
57765         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57766         (gl_REPLACE_OBSTACK_PRINTF): New macros
57767         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57768         * tests/test-obstack-printf.c: New file.
57769         * modules/obstack-printf-tests: Likewise.
57770         * modules/obstack-printf-posix-tests: Likewise.
57771
57772 2008-06-11  Bruno Haible  <bruno@clisp.org>
57773
57774         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57775         * lib/open.c: Include errno.h.
57776         (open): Fail when attempting to write to a file that has a trailing
57777         slash.
57778         * tests/test-open.c (main): Test against trailing slash bug.
57779         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57780
57781 2008-06-10  Bruno Haible  <bruno@clisp.org>
57782
57783         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57784         for $? to work inside the trap command, with various /bin/sh-s.
57785         * tests/test-vc-list-files-cvs.sh: Likewise.
57786
57787 2008-06-10  Bruno Haible  <bruno@clisp.org>
57788
57789         * lib/acl-internal.h: Don't include gettext.h here.
57790         * lib/set-mode-acl.c: Include gettext.h here.
57791         * lib/copy-acl.c: Likewise.
57792
57793 2008-06-10  Bruno Haible  <bruno@clisp.org>
57794
57795         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57796         * lib/wait-process.c (wait_subprocess): Likewise.
57797         * lib/execute.h (execute): Add termsigp argument.
57798         * lib/execute.c (execute): Likewise.
57799         * lib/csharpcomp.c (compile_csharp_using_pnet,
57800         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57801         * lib/csharpexec.c (execute_csharp_using_pnet,
57802         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57803         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57804         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57805         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57806         is_jikes_present): Update.
57807         * lib/javaexec.c (execute_java_class): Update.
57808         * lib/javaversion.c (execute_and_read_line): Update.
57809         * NEWS: Document the changes.
57810         Reported by Eric Blake.
57811
57812 2008-06-10  Eric Blake  <ebb9@byu.net>
57813
57814         Add missing include.
57815         * tests/test-strstr.c (includes): Add <signal.h>.
57816         * tests/test-strcasestr.c (includes): Likewise.
57817         * tests/test-memmem.c (includes): Likewise.
57818
57819 2008-06-10  Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/wait-process.c (wait_subprocess): Add an assertion.
57822
57823 2008-06-10  Bruno Haible  <bruno@clisp.org>
57824
57825         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57826
57827 2008-06-10  Bruno Haible  <bruno@clisp.org>
57828
57829         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57830         using alarm().
57831         * tests/test-strcasestr.c (main): Likewise.
57832         * tests/test-strstr.c (main): Likewise.
57833
57834 2008-06-09  Bruno Haible  <bruno@clisp.org>
57835
57836         Work around the Solaris 10 ACE ACLs ABI change.
57837         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57838         declare if ACL_NO_TRIVIAL is present.
57839         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57840         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57841         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57842         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57843         define if ACL_NO_TRIVIAL is present.
57844         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57845         and use the current ABI.
57846         (file_has_acl): Use same #if condition as elsewhere.
57847         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57848         in use, and use the current ABI.
57849         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57850         Reported by Jim Meyering.
57851
57852 2008-06-09  Eric Blake  <ebb9@byu.net>
57853
57854         Work around environments that (stupidly) ignore SIGALRM.
57855         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57856         before using alarm().
57857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57858         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57859         Reported by Ian Beckwith <ianb@erislabs.net>.
57860
57861         Produce autobuild blurb earlier in log.
57862         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57863
57864 2008-06-09  Jim Meyering  <meyering@redhat.com>
57865         and OndÅ™ej Vašík  <ovasik@redhat.com>
57866
57867         utimens.c: correct kernel bug work-around
57868         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57869         failure, not success, and the kernel bug we're trying to work
57870         around affects not just the utimensat call, but also the fallback
57871         futimens call.
57872         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57873         not success.
57874         [HAVE_FUTIMENS]: Use the same work-around, here.
57875
57876 2008-06-09  Jim Meyering  <meyering@redhat.com>
57877
57878         add more guards around definition of ACE_-related code
57879         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57880         ALLOW and ACE_OWNER are also defined.
57881
57882 2008-06-08  Bruno Haible  <bruno@clisp.org>
57883
57884         * lib/acl-internal.h: Add me as co-author.
57885         * lib/file-has-acl.c: Likewise.
57886         * lib/set-mode-acl.c: Likewise.
57887         * lib/copy-acl.c: Likewise.
57888
57889 2008-06-08  Bruno Haible  <bruno@clisp.org>
57890
57891         Add support for AIX ACLs.
57892         * lib/acl-internal.h (acl_nontrivial): New declaration.
57893         * lib/file-has-acl.c (acl_nontrivial): New function.
57894         (file_has_acl): Add implementation using AIX 4 ACL API.
57895         * lib/set-mode-acl.c (qset_acl): Likewise.
57896         * lib/copy-acl.c (qcopy_acl): Likewise.
57897
57898 2008-06-08  Bruno Haible  <bruno@clisp.org>
57899
57900         Add support for HP-UX ACLs.
57901         * lib/acl-internal.h (acl_nontrivial): New declaration.
57902         * lib/file-has-acl.c (acl_nontrivial): New function.
57903         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57904         * lib/set-mode-acl.c (qset_acl): Likewise.
57905         * lib/copy-acl.c (qcopy_acl): Likewise.
57906
57907 2008-06-08  Bruno Haible  <bruno@clisp.org>
57908
57909         Add support for Cygwin ACLs.
57910         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57911         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57912         the chmod_or_fchmod call.
57913         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57914
57915 2008-06-08  Bruno Haible  <bruno@clisp.org>
57916
57917         Fix bug with setuid modes in Solaris 10+ code.
57918         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57919         succeeded, when the mode contains some special bits.
57920
57921 2008-06-08  Bruno Haible  <bruno@clisp.org>
57922
57923         Add support for Solaris 7..10 ACLs.
57924         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57925         declarations.
57926         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57927         functions.
57928         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57929         * lib/set-mode-acl.c (qset_acl): Likewise.
57930         * lib/copy-acl.c (qcopy_acl): Likewise.
57931
57932 2008-06-08  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57935         declaration.
57936         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57937         (acl_access_nontrivial): Remove MacOS X case.
57938         (file_has_acl): Use acl_extended_nontrivial.
57939         * lib/copy-acl.c (qcopy_acl): Likewise.
57940
57941 2008-06-08  Bruno Haible  <bruno@clisp.org>
57942
57943         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57944
57945 2008-06-08  Jim Meyering  <meyering@redhat.com>
57946
57947         * modules/acl (Maintainer): Add Bruno Haible.
57948
57949 2008-06-07  Bruno Haible  <bruno@clisp.org>
57950
57951         Improve support for Tru64 ACLs.
57952         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57953         ACL on OSF/1.
57954
57955 2008-06-07  Bruno Haible  <bruno@clisp.org>
57956
57957         Add support for MacOS X ACLs.
57958         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57959         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57960         * lib/set-mode-acl.c (qset_acl): Likewise.
57961         * lib/copy-acl.c (qcopy_acl): Likewise.
57962
57963 2008-06-07  Bruno Haible  <bruno@clisp.org>
57964
57965         Fix memory leak introduced on 2008-05-22.
57966         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57967         use.
57968
57969 2008-06-07  Bruno Haible  <bruno@clisp.org>
57970
57971         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57972         to construct an empty ACL.
57973
57974 2008-06-07  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57977         precisely.
57978         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57979
57980 2008-06-07  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57983         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57984
57985 2008-06-07  Bruno Haible  <bruno@clisp.org>
57986
57987         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57988         regardless of POSIX.
57989         * doc/posix-functions/_longjmp.texi: Likewise.
57990         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57991         SystemV platform in this case.
57992
57993 2008-06-06  Eric Blake  <ebb9@byu.net>
57994
57995         Document abort() bugs.
57996         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57997
57998         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57999         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58000         sigsetjmp.
58001         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58002         siglongjmp, but only as a macro.
58003         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58004         is obsolete.
58005         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58006
58007         Tweak documentation to cover cygwin argz bugs.
58008         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58009         argz bug fix; no code change needed since no cygwin releases
58010         occurred between the last fix and the bug being tested.
58011         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58012         module and recently fixed cygwin bugs.
58013         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58014         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58015         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58016         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58017         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58018         Likewise.
58019         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58020         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58021         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58022         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58023         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58024         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58025         Likewise.
58026
58027         Avoid gcc warning on cygwin.
58028         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58029         !ACL_NO_TRIVIAL]: Avoid unused variable.
58030
58031 2008-06-05  Eric Blake  <ebb9@byu.net>
58032
58033         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58034         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58035         git-version-gen fails to come up with a version.
58036         Reported by Simon Josefsson.
58037
58038 2008-06-05  Jim Meyering  <meyering@redhat.com>
58039             Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         utimens.c: work around a probable Linux kernel bug
58042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58043         appears to be a kernel bug that causes utimensat to return 280
58044         instead of 0, indicating success.
58045
58046 2008-06-04  Bruno Haible  <bruno@clisp.org>
58047
58048         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58049         2008-06-01 commit.
58050
58051 2008-06-04  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58054         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58055         (file_has_acl): Use it. Save errno afterwards.
58056         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58057
58058 2008-06-03  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58061         draft code. Simplify #ifs.
58062         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58063         Put Solaris code after POSIX-draft code. Fix comments regarding
58064         Solaris 10, HP-UX. Mention Cygwin.
58065         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58066
58067 2008-06-03  Eric Blake  <ebb9@byu.net>
58068
58069         Provide fallback for older kernels.
58070         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58071         Provide runtime fallback if kernel lacks support.
58072         Reported by Mike Frysinger.
58073
58074 2008-06-02  Bruno Haible  <bruno@clisp.org>
58075
58076         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58077         it exists.
58078
58079 2008-06-02  Bruno Haible  <bruno@clisp.org>
58080
58081         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58082         * lib/copy-acl.c (qcopy_acl): Update comment.
58083
58084 2008-06-02  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58087         like ACL APIs.
58088
58089 2008-06-02  Bruno Haible  <bruno@clisp.org>
58090
58091         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58092         * tests/test-set-mode-acl.sh: Likewise.
58093         * tests/test-copy-acl.sh: Likewise.
58094         * tests/test-copy-file.sh: Likewise.
58095
58096 2008-06-02  Bruno Haible  <bruno@clisp.org>
58097
58098         * tests/test-file-has-acl.sh: Remove unused code.
58099
58100 2008-06-01  Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58103         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58104         messages.
58105         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58106
58107 2008-06-01  Bruno Haible  <bruno@clisp.org>
58108
58109         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58110         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58111         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58112         APIs.
58113         * modules/acl-tests (configure.ac): Remove tests now contained in
58114         m4/acl.m4.
58115
58116 2008-06-02  Jim Meyering  <meyering@redhat.com>
58117
58118         announce-gen: use a better key-server host name
58119         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58120         it may be more consistently reliable.  Suggested by Werner Koch
58121         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58122
58123 2008-06-01  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58126         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58127
58128 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58129
58130         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58131
58132 2008-06-01  Bruno Haible  <bruno@clisp.org>
58133
58134         New ACL tests.
58135         * tests/test-file-has-acl.sh: New file.
58136         * tests/test-file-has-acl.c: New file.
58137         * tests/test-set-mode-acl.sh: New file.
58138         * tests/test-set-mode-acl.c: New file.
58139         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58140         * tests/test-copy-acl.c: New file.
58141         * modules/acl-tests: New file, based on modules/copy-file-tests.
58142         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58143         (Depends-on): Add acl-tests.
58144         (configure.ac): Remove checks.
58145         (Makefile.am): Don't create test-sameacls program here any more.
58146
58147 2008-06-01  Bruno Haible  <bruno@clisp.org>
58148
58149         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58150         * tests/test-sameacls.c: Include progname.h.
58151         (main): Invoke set_program_name. Portability fixes for MacOS X,
58152         Solaris, HP-UX.
58153
58154 2008-06-01  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58157         function.
58158         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58159
58160 2008-06-01  Bruno Haible  <bruno@clisp.org>
58161
58162         * modules/rpmatch (Depends-on): Add strdup.
58163
58164 2008-06-01  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/pipe.c: Include unistd-safer.h.
58167         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58168         * modules/pipe (Depends-on): Add unistd-safer.
58169
58170 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58171
58172         * modules/autobuild (configure.ac): Call AB_INIT.
58173
58174 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58175
58176         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58177         Suggested by Bruno Haible <bruno@clisp.org>.
58178
58179 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58180
58181         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58182         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58183         <bruno@clisp.org>.
58184
58185 2008-05-29  Eric Blake  <ebb9@byu.net>
58186
58187         Prefer new POSIX 200x interfaces over futimesat.
58188         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58189         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58190         when available.
58191         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58192
58193 2008-05-28  Bruno Haible  <bruno@clisp.org>
58194
58195         * modules/stpcpy (License): Change to LGPLv2+.
58196         Requested by David Lutterkort <dlutter@redhat.com>.
58197
58198 2008-05-27  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58201         current mingw.
58202         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58203
58204 2008-05-27  Bruno Haible  <bruno@clisp.org>
58205
58206         * modules/iconv_open (Link): New section, from module 'iconv'.
58207         * modules/striconv (Link): Likewise.
58208         * modules/striconveh (Link): Likewise.
58209         * modules/xstriconv (Link): Likewise.
58210         * modules/unicodeio (Link): Likewise.
58211         * modules/propername (Link): Likewise.
58212         Reported by Jim Meyering.
58213
58214 2008-05-26  Jim Meyering  <meyering@redhat.com>
58215
58216         sha256: do not artificially restrict buffer length to be < 2^32
58217         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58218         uint32_t to size_t.
58219         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58220         to match.
58221
58222         avoid unaligned access errors, e.g., on sparc
58223         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58224         direct access through a possibly-unaligned uint64* pointer.
58225         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58226         direct access through a possibly-unaligned uint32* pointer.
58227         Prompted by this patch from Tom "spot" Callaway:
58228         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58229
58230         sha512.c: fix typo in comment
58231         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58232
58233 2008-05-25  Bruno Haible  <bruno@clisp.org>
58234
58235         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58236         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58237         (Makefile.am): Update lib_SOURCES.
58238
58239 2008-05-25  Bruno Haible  <bruno@clisp.org>
58240
58241         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58242
58243 2008-05-25  Jim Meyering  <meyering@redhat.com>
58244
58245         useless-if-before-free: freed expr may have white-space differences
58246         * build-aux/useless-if-before-free: Recognize cases in which the
58247         freed expression differs from the tested one in embedded white
58248         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58249         $1 was used, so we can't make any regexp shy.  Improved tests now
58250         detect this.
58251
58252         useless-if-before-free: accept white space in the expression.
58253         * build-aux/useless-if-before-free: For now, any white space
58254         in the expression must be identical in the free argument.
58255
58256         useless-if-before-free: efficiency tweak
58257         * build-aux/useless-if-before-free: Make the expression-matching
58258         regexp "shy".
58259         Make the *outer* regexp shy, not the expr-matching one.
58260
58261         update code-in-comment to accept cast of free arg
58262         * build-aux/useless-if-before-free: Update regexp.
58263
58264 2008-05-25  Bruno Haible  <bruno@clisp.org>
58265
58266         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58267         * modules/copy-file-tests (Files, Makefile.am): Update.
58268         * tests/test-copy-file.c (func_test_copy): Update.
58269
58270 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58271
58272         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58273
58274 2008-05-23  Bruno Haible  <bruno@clisp.org>
58275
58276         Improve support for ACLs on OSF/1.
58277         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58278         Remove fallback for unknown flavors of ACLs.
58279
58280 2008-05-22  Bruno Haible  <bruno@clisp.org>
58281
58282         Add support for ACLs on OSF/1.
58283         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58284         replacements.
58285         (acl_free_text): New macro fallback.
58286         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58287         acl_free.
58288         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58289         acl_free_text function. Require AC_C_INLINE.
58290
58291 2008-05-22  Bruno Haible  <bruno@clisp.org>
58292
58293         Make copy_acl work on MacOS X 10.5.
58294         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58295         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58296         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58297         If MODE_INSIDE_ACL, don't assume that every system has the same text
58298         representation for ACLs as FreeBSD.
58299         * lib/copy-acl.c (copy_acl): Add support for platforms with
58300         !MODE_INSIDE_ACL.
58301         * lib/file-has-acl.c (file_has_acl): Likewise.
58302         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58303         FreeBSD, MacOS X, or IRIX, respectively.
58304
58305 2008-05-22  Bruno Haible  <bruno@clisp.org>
58306
58307         * lib/acl.h: Don't include <sys/acl.h>.
58308         (GETACLCNT): Move fallback to lib/acl-internal.h.
58309         * lib/acl-internal.h: Include <sys/acl.h> here.
58310         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58311
58312 2008-05-22  Bruno Haible  <bruno@clisp.org>
58313
58314         Split off copy_acl function to separate file.
58315         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58316         * lib/acl.c (copy_acl): Moved function to separate file.
58317         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58318         * modules/acl (Files): Add lib/copy-acl.c.
58319         (Makefiles.am): Augment lib_SOURCES.
58320
58321 2008-05-22  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/copy-file-tests: New file.
58324         * tests/test-copy-file.sh: New file.
58325         * tests/test-copy-file.c: New file.
58326         * tests/test-copy-file-sameacls.c: New file.
58327
58328 2008-05-22  Eric Blake  <ebb9@byu.net>
58329
58330         Avoid gcc warning.
58331         * tests/test-memcmp.c (main): Pass NULL indirectly.
58332
58333 2008-05-21  Bruno Haible  <bruno@clisp.org>
58334
58335         Add reference doc about ACLs.
58336         * doc/acl-resources.txt: New file.
58337         * doc/acl-cygwin.txt: New file.
58338
58339 2008-05-21  Bruno Haible  <bruno@clisp.org>
58340
58341         Avoid one more warning from gcc.
58342         * lib/vasnprintf.c (IF_LINT): Update comments.
58343         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58344
58345 2008-05-21  Jim Meyering  <meyering@redhat.com>
58346
58347         avoid a warning from gcc
58348         * lib/vasnprintf.c (IF_LINT): Define.
58349         (scale10_round_decimal_long_double):
58350         Use it to avoid a "may be used uninitialized" warning.
58351         (scale10_round_decimal_double): Likewise.
58352
58353 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58354
58355         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58356         declared.
58357
58358 2008-05-20  Bruno Haible  <bruno@clisp.org>
58359
58360         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58361         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58362
58363 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58364
58365         * modules/memcmp-tests: New file.
58366         * tests/test-memcmp.c: New file.
58367
58368 2008-05-19  Bruno Haible  <bruno@clisp.org>
58369
58370         * modules/propername (Notice, configure.ac): Put quoted "..." into
58371         --keyword option.
58372         * lib/propername.h: Update comments accordingly.
58373         Reported by Eric Blake.
58374
58375 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58376
58377         * modules/getpass-gnu (Depends-on): Add fseeko.
58378
58379 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58380
58381         * modules/base64-tests: New file.
58382
58383 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58384
58385         * lib/base64.c (base64_decode_ctx): If a decode context structure
58386         was passed in use it to ignore newlines.  If a context structure
58387         was _not_ passed in, continue to treat newlines as garbage (this
58388         is the historical behavior).  Formerly base64_decode.
58389         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58390         takes a decode context structure.
58391         * lib/base64.h (base64_decode): Macro for four-argument calls.
58392         (base64_decode_alloc): Likewise.
58393         * lib/base64.c (base64_decode_ctx): If a decode context structure
58394         was passed in use it to ignore newlines.  If a context structure
58395         was _not_ passed in, continue to treat newlines as garbage (this
58396         is the historical behavior).  Formerly base64_decode.
58397         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58398         takes a decode context structure.
58399         * lib/base64.h (base64_decode): Macro for four-argument calls.
58400         (base64_decode_alloc): Likewise.
58401
58402 2008-05-19  Jim Meyering  <meyering@redhat.com>
58403
58404         avoid a warning from gcc
58405         * lib/trim.c (IF_LINT): Define.
58406         (trim2): Use it to avoid a "may be used uninitialized" warning.
58407
58408         Fix doc typo.
58409         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58410
58411 2008-05-19  Bruno Haible  <bruno@clisp.org>
58412
58413         * doc/glibc-functions/getpass.texi: Document limits of other
58414         implementations.
58415
58416 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58417             Bruno Haible <bruno@clisp.org>
58418
58419         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58420
58421 2008-05-18  Bruno Haible  <bruno@clisp.org>
58422
58423         * modules/propername: New file, from GNU gettext.
58424         * lib/propername.h: New file, from GNU gettext.
58425         * lib/propername.c: New file, from GNU gettext.
58426         * MODULES.html.sh (Internationalization functions): Add propername.
58427
58428 2008-05-16  Jim Meyering  <meyering@redhat.com>
58429             Bruno Haible  <bruno@clisp.org>
58430
58431         Avoid some warnings from "gcc -Wshadow".
58432         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58433
58434 2008-05-15  Eric Blake  <ebb9@byu.net>
58435
58436         Extend previous patch to cygwin 1.7.0.
58437         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58438         fast implementation in cygwin >= 1.7.0.
58439         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58441
58442 2008-05-15  Bruno Haible  <bruno@clisp.org>
58443
58444         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58445         implementation in glibc >= 2.9.
58446         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58448
58449 2008-05-15  Bruno Haible  <bruno@clisp.org>
58450
58451         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58452         (Unicode string functions): Add unilbrk/*.
58453         Reported by Karl Berry.
58454
58455 2008-05-15  Eric Blake  <ebb9@byu.net>
58456
58457         Fix violation of <stdbool.h> replacement in regex.
58458         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58459         * lib/regexec.c (re_search_internal): Likewise.
58460         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58461
58462 2008-05-15  Jim Meyering  <meyering@redhat.com>
58463
58464         avoid distracting test output when git or cvs is not found
58465         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58466         * tests/test-vc-list-files-git.sh: Likewise.
58467
58468 2008-05-15  Eric Blake  <ebb9@byu.net>
58469
58470         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58471         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58472         glibc version.
58473         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58474         * doc/posix-functions/strstr.texi (strstr): Likewise.
58475         * lib/str-two-way.h (MAX): Sychronize with glibc.
58476
58477 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58478
58479         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58480         opr.ctx_type.
58481         (calc_first): Initialize constraint field.
58482         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58483         Fix grammar.
58484         (duplicate_node): Merge constraint field for all node types.
58485         (calc_eclosure_iter): Look at constraint field for all node types.
58486         * lib/regex_internal.c (create_cd_newstate): Don't look at
58487         opr.ctx_type.
58488
58489 2008-05-14  Bruno Haible  <bruno@clisp.org>
58490
58491         Help GCC to do better code generation.
58492         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58493         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58494         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58495         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58496         Declare with attribute 'malloc' if supported.
58497
58498 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58499
58500         use "echo STR|wc -c" rather than unportable "expr length STR"
58501         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58502         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58503
58504 2008-05-14  Jim Meyering  <meyering@redhat.com>
58505
58506         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58507         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58508         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58509         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58510         via Collin Lasse.
58511
58512 2008-05-14  Eric Blake  <ebb9@byu.net>
58513
58514         Avoid quadratic growth in gl_LIBSOURCES.
58515         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58516         Suggested by Bruno Haible.
58517
58518         Test xmemdup0.
58519         * modules/xmemdup0-tests: New file.
58520         * tests/test-xmemdup0.c: Likewise.
58521
58522 2008-05-13  Eric Blake  <ebb9@byu.net>
58523
58524         Split xmemdup0 into its own module.
58525         * modules/xmemdup0: New file.
58526         * lib/xmemdup0.h: Likewise.
58527         * lib/xmemdup0.c: Likewise.
58528         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58529         * lib/xalloc.h (xmemdup0): Remove.
58530         * lib/xmalloc.c (xmemdup0): Likewise.
58531
58532 2008-05-13  Eric Blake  <ebb9@byu.net>
58533             Bruno Haible  <bruno@clisp.org>
58534
58535         Reduce number of forks required during autoconf.
58536         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58537         and gl_LIBSOURCES_DIR.
58538         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58539         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58540         m4_syscmd per file.
58541         <m4_foreach_w>: Move...
58542         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58543
58544 2008-05-13  Eric Blake  <ebb9@byu.net>
58545
58546         * gnulib-tool: Fix various comment typos.
58547
58548 2008-05-12  Bruno Haible  <bruno@clisp.org>
58549
58550         Tailor the linebreaking algorithm.
58551         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58552
58553 2008-05-12  Bruno Haible  <bruno@clisp.org>
58554
58555         Update to Unicode 5.0.0.
58556         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58557         LBP_JV, LBP_JT. Redistribute values.
58558         (unilbrk_table): Change size.
58559         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58560         Unicode TR#14 rev. 22.
58561         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58562         LBP_JV, LBP_JT. Redistribute values.
58563         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58564         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58565         Update.
58566         * lib/unilbrk/lbrkprop1.h: Regenerated.
58567         * lib/unilbrk/lbrkprop2.h: Regenerated.
58568         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58569         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58570         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58571         Likewise.
58572         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58573         Likewise.
58574         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58575         result.
58576         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58577         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58578         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58579         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58580         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58581         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58582
58583 2008-05-11  Bruno Haible  <bruno@clisp.org>
58584
58585         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58586
58587 2008-05-11  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58590         * modules/unilbrk/gen-lbrk: New file.
58591
58592 2008-05-11  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58595         * m4/sha512.m4 (gl_SHA512): Likewise.
58596
58597 2008-05-11  Jim Meyering  <meyering@redhat.com>
58598
58599         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58600         * modules/crypto/sha256: New file.
58601         * modules/crypto/sha512: Likewise.
58602         * lib/sha256.c: Likewise.
58603         * lib/sha256.h: Likewise.
58604         * lib/sha512.c: Likewise.
58605         * lib/sha512.h: Likewise.
58606         * lib/u64.h: Likewise.
58607         * m4/sha256.m4: Likewise.
58608         * m4/sha512.m4: Likewise.
58609         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58610
58611 2008-05-10  Bruno Haible  <bruno@clisp.org>
58612
58613         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58614         (Input/Output <stdio.h>): Add xprintf.
58615         (Signal handling <signal.h>): Add strsignal.
58616         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58617         (Core language properties): Add func.
58618         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58619         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58620         strings.
58621         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58622         (Input/output): New section.
58623         (File system functions): Add openat-die, stat-macros.
58624         (Networking functions): Add sockets.
58625         (Unicode string functions): Add unictype/*.
58626         (Support for building libraries and executables): Add gperf.
58627         (Support for building documentation): Add agpl-3.0.
58628         (Misc): Add nocrash.
58629
58630 2008-05-10  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/unictype/gen-ctype: New file.
58633
58634 2008-05-10  Jim Meyering  <meyering@redhat.com>
58635
58636         Make chdir-safer.c more efficient on a system with no symlinks.
58637         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58638         also if ELOOP is zero.  Suggested by Bruno Haible.
58639
58640         Make chdir-safer.c slightly safer.
58641         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58642         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58643
58644         Avoid compile failure on systems without ELOOP (like mingw).
58645         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58646         Reported by Bruno Haible.
58647
58648 2008-05-10  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58651         (is_utf8_encoding): Use a case-insensitive comparison.
58652         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58653         streq.
58654
58655 2008-05-10  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58658         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58659         * lib/unilbrk/ulc-common.h (iconv_string_length,
58660         iconv_string_keeping_offsets): Remove declarations.
58661         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58662         Don't include <iconv.h>, streq.h, xsize.h.
58663         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58664         conversion.
58665         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58666         <iconv.h>, streq.h, xsize.h.
58667         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58668         conversion.
58669         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58670         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58671         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58672         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58673
58674 2008-05-10  Bruno Haible  <bruno@clisp.org>
58675
58676         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58677         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58678
58679         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58680         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58681
58682         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58683         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58684
58685         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58686         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58687
58688         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58689         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58690
58691         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58692         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58693
58694         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58695         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58696
58697         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58698         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58699
58700 2008-05-10  Bruno Haible  <bruno@clisp.org>
58701
58702         Split up 'linebreak' module.
58703         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58704         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58705         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58706         modifications.
58707         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58708         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58709         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58710         lib/linebreak.c.
58711         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58712         lib/linebreak.c.
58713         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58714         lib/linebreak.c.
58715         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58716         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58717         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58718         lib/linebreak.c.
58719         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58720         lib/linebreak.c.
58721         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58722         lib/linebreak.c.
58723         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58724         lib/linebreak.c.
58725         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58726         lib/linebreak.c.
58727         * modules/unilbrk/base: New file.
58728         * modules/unilbrk/tables: New file.
58729         * modules/unilbrk/u8-possible-linebreaks: New file.
58730         * modules/unilbrk/u16-possible-linebreaks: New file.
58731         * modules/unilbrk/u32-possible-linebreaks: New file.
58732         * modules/unilbrk/ulc-common: New file.
58733         * modules/unilbrk/ulc-possible-linebreaks: New file.
58734         * modules/unilbrk/u8-width-linebreaks: New file.
58735         * modules/unilbrk/u16-width-linebreaks: New file.
58736         * modules/unilbrk/u32-width-linebreaks: New file.
58737         * modules/unilbrk/ulc-width-linebreaks: New file.
58738         * lib/linebreak.h: Remove file.
58739         * lib/linebreak.c: Remove file.
58740         * m4/linebreak.m4: Remove file.
58741         * modules/linebreak: Remove file.
58742         * NEWS: Mention the changes.
58743
58744 2008-05-09  Eric Blake  <ebb9@byu.net>
58745
58746         Add xmemdup0.
58747         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58748         implementation.
58749         * lib/xmalloc.c (xmemdup0): New C implementation.
58750
58751 2008-05-08  Bruno Haible  <bruno@clisp.org>
58752
58753         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58754
58755 2008-05-07  Eric Blake  <ebb9@byu.net>
58756
58757         Support cross-compilation of <wctype.h>.
58758         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58759         AC_CACHE_CHECK.
58760
58761 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58762
58763         * build-aux/vc-list-files: Add support for bzr.
58764
58765 2008-05-03  Jim Meyering  <meyering@redhat.com>
58766
58767         avoid failed assertion with tight malloc
58768         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58769
58770 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58771
58772         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58773         are needed from arpa/inet.h.
58774         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58775         Reported by Bruno Haible.
58776
58777 2008-05-02  Jim Meyering  <meyering@redhat.com>
58778
58779         avoid compilation error on FreeBSD 6
58780         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58781
58782 2008-05-01  Jim Meyering  <meyering@redhat.com>
58783
58784         useless-if-before-free: correct --help's exit status description
58785         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58786         for one or more matches, etc.  Reported by Bruno Haible.
58787
58788         vc-list-files: make the stand-alone gnulib test work
58789         * modules/vc-list-files-tests (configure.ac):
58790         Define and AC_SUBST abs_aux_dir.
58791         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58792         $(abs_top_srcdir) to each script and having each of them
58793         duplicate the work of setting PATH, set PATH here, using
58794         the new variable, abs_aux_dir instead.
58795         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58796         * tests/test-vc-list-files-git.sh: Likewise.
58797         Reported by Bruno Haible.
58798
58799 2008-05-01  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58802         reallocation. Rename 'done' to 'found_delimiter'.
58803
58804 2008-05-01  Jim Meyering  <meyering@redhat.com>
58805
58806         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58807         * build-aux/vc-list-files: Use `...`, not $(...).
58808
58809 2008-04-30  Jim Meyering  <meyering@redhat.com>
58810
58811         add tests for vc-list-files
58812         * modules/vc-list-files-tests: New module.
58813         * tests/test-vc-list-files-cvs.sh: New file.
58814         * tests/test-vc-list-files-git.sh: New file.
58815
58816         avoid a warning from gcc
58817         * lib/getndelim2.c (IF_LINT): Define.
58818         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58819
58820         vc-list-files: work properly with build-aux/cvsu, too
58821         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58822         to all cvs-based clauses.
58823
58824         vc-list-files: work properly in the CVS+awk case, too
58825         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58826
58827         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58828         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58829         take more than one file argument, so .  Add quotes, just in case $dir
58830         ever contains a shell meta-character.  Prompted by Soren Hansen in
58831         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58832
58833 2008-04-29  Eric Blake  <ebb9@byu.net>
58834
58835         Optimize getndelim2 to use block operations when possible.
58836         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58837         freadseek, and memchr2.
58838         * lib/getndelim2.c (getndelim2): Use them for block reads.
58839
58840 2008-04-29  Bruno Haible  <bruno@clisp.org>
58841
58842         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58843         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58844         * modules/inet_ntop (Depends-on): Add extensions.
58845         * modules/inet_pton (Depends-on): Likewise.
58846         Reported by Simon Josefsson.
58847
58848 2008-04-29  Jim Meyering  <meyering@redhat.com>
58849
58850         When the is more than one match in a block, match all of them.
58851         * build-aux/useless-if-before-free: Iterate through each block
58852         until there are no more matches.
58853
58854         Fix broken useless-if-before-free script.
58855         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58856         the expression to match cast of argument to free-like function.
58857
58858 2008-04-29  Eric Blake  <ebb9@byu.net>
58859
58860         Use new header.
58861         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58862
58863 2008-04-29  Jim Meyering  <meyering@redhat.com>
58864
58865         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58866         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58867         by gnulib to exist and to declare e.g., inet_ntop.
58868         Don't include "inet_ntop.h", now removed.
58869
58870         * m4/arpa_inet_h.m4: Remove trailing blanks.
58871
58872 2008-04-29  Eric Blake  <ebb9@byu.net>
58873
58874         Silence valgrind on safe reads beyond potential array bounds.
58875         * lib/rawmemchr.valgrind: New file.
58876         * lib/strchrnul.valgrind: Likewise.
58877         * modules/rawmemchr (Files): Distribute new file.
58878         * modules/strchrnul (Files): Likewise.
58879         Suggested by Bruno Haible.
58880
58881 2008-04-29  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58884         (inet_ntop, inet_pton): Change portability warning's wording.
58885         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58886         Invoke gl_CHECK_NEXT_HEADERS.
58887         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58888         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58889         set ARPA_INET_H.
58890         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58891         * modules/arpa_inet (Description): No longer only for systems that
58892         lack it.
58893         (Depends-on): Add include_next.
58894         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58895         HAVE_ARPA_INET_H.
58896
58897 2008-04-29  Jim Meyering  <meyering@redhat.com>
58898
58899         * modules/mkdir (License): Re-license as LGPLv2+.
58900
58901 2008-04-29  Bruno Haible  <bruno@clisp.org>
58902
58903         * modules/rawmemchr (Maintainer): Set to Eric.
58904         * modules/strchrnul (Maintainer): Likewise.
58905
58906 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58907
58908         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58909         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58910
58911         * modules/arpa_inet (arpa/inet.h): Use them.
58912
58913 2008-04-28  Eric Blake  <ebb9@byu.net>
58914
58915         Test getndelim2.
58916         * modules/getndelim2-tests: New file.
58917         * tests/test-getndelim2.c: Likewise.
58918         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58919         stream.
58920         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58921
58922         * MODULES.html.sh: Document new module.
58923
58924 2008-04-20  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/c-stack.c (die): Use raise.
58927         * modules/c-stack (Depends-on): Add raise.
58928
58929 2008-04-28  Bruno Haible  <bruno@clisp.org>
58930
58931         Expect rpmatch to be declared.
58932         * lib/yesno.c (rpmatch): Remove declaration.
58933
58934         Declare rpmatch.
58935         * lib/stdlib.in.h (rpmatch): New declaration.
58936         * lib/rpmatch.c: Include <stdlib.h> first.
58937         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58938         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58940         HAVE_RPMATCH.
58941         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58943         (Include): Set to <stdlib.h>.
58944         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58945         HAVE_RPMATCH.
58946         * NEWS: Document the change.
58947
58948 2008-04-28  Bruno Haible  <bruno@clisp.org>
58949
58950         Change rpmatch to use nl_langinfo when appropriate.
58951         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58952         (N_): New macro.
58953         (localized_pattern): New function/macro.
58954         (try): Remove match, nomatch arguments. Copy the pattern into safe
58955         memory before caching it.
58956         (rpmatch): Use localized_pattern. Add translator comments.
58957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58958         Suggested by Eric Blake.
58959         * modules/rpmatch (Depends-on): Add stdbool.
58960
58961 2008-04-28  Eric Blake  <ebb9@byu.net>
58962
58963         Add rawmemchr module, matching glibc.
58964         * modules/string (Makefile.am): New indicator.
58965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58966         * lib/string.in.h (rawmemchr): Declare when appropriate.
58967         * modules/rawmemchr: New file.
58968         * m4/rawmemchr.m4: Likewise.
58969         * lib/rawmemchr.c: Likewise.
58970         * modules/rawmemchr-tests: Likewise.
58971         * tests/test-rawmemchr.c: Likewise.
58972         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58973         module.
58974         * modules/strchrnul (Depends-on): Add rawmemchr.
58975         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58976
58977         Whitespace cleanup.
58978         * tests/test-strchrnul.c: Reindent.
58979         * lib/strchrnul.c: Likewise.
58980
58981         Optimize and test strchrnul.
58982         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58983         * modules/strchrnul-tests: New file.
58984         * tests/test-strchrnul.c: Likewise.
58985
58986         Remove intprops dependency.
58987         * modules/memchr (Depends-on): Remove intprops.
58988         * modules/memrchr (Depends-on): Likewise.
58989         * modules/memchr2 (Depends-on): Likewise.
58990         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58991         * lib/memrchr.c (__memrchr): Likewise.
58992         * lib/memrchr2.c (memchr2): Likewise.
58993         Reported by Simon Josefsson.
58994
58995 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58996
58997         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58998         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58999
59000 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59001
59002         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59003
59004         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59005
59006         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59007
59008         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59009         declarations.
59010         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59011
59012         * m4/inet_pton.m4: Don't check for header files.
59013
59014         * m4/inet_ntop.m4: Don't check for header files.
59015
59016 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59017
59018         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59019         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59020         trigger for cygwin).
59021         Reported by Bruno Haible  <bruno@clisp.org>.
59022
59023 2008-04-28  Bruno Haible  <bruno@clisp.org>
59024
59025         * doc/posix-functions/strdup.texi: Mention mingw problem.
59026
59027 2008-04-27  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/stat-time-tests (Depends-on): Add sleep.
59030         * tests/test-stat-time.c (force_unlink): New function.
59031         (cleanup): Use it.
59032         (test_mtime): Remove the ctime related tests.
59033         (test_ctime): New function, containing the ctime related tests.
59034         (main): Call test_ctime, except on native Windows platforms.
59035
59036 2008-04-27  Bruno Haible  <bruno@clisp.org>
59037
59038         * lib/rpmatch.c (rpmatch): Add some comments.
59039         Reported by James Youngman <jay@gnu.org>.
59040
59041 2008-04-27  Bruno Haible  <bruno@clisp.org>
59042
59043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59044         quiet NaNs.
59045
59046 2008-04-27  Bruno Haible  <bruno@clisp.org>
59047
59048         Make test-yesno.sh work on mingw.
59049         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59050         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59051         (main): Set stdin to binary mode.
59052         * modules/yesno-tests (Depends-on): Add binary-io.
59053
59054 2008-04-27  Bruno Haible  <bruno@clisp.org>
59055
59056         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59057         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59058         argument that lie outside the IEEE 854 domain.
59059         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59060         (gl_ISFINITE): Use it.
59061         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59062
59063 2008-04-27  Bruno Haible  <bruno@clisp.org>
59064
59065         Allow local renaming in config.h.
59066         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59067
59068 2008-04-27  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/memchr.c (__memchr): Change type of 'i'.
59071         * lib/memchr2.c (memchr2): Likewise.
59072
59073 2008-04-26  Eric Blake  <ebb9@byu.net>
59074         and Bruno Haible  <bruno@clisp.org>
59075
59076         Optimize and test memrchr.
59077         * modules/memrchr (Depends-on): Add intprops.
59078         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59079         * modules/memrchr-tests: New file.
59080         * tests/test-memrchr.c: New file.
59081
59082 2008-04-26  Bruno Haible  <bruno@clisp.org>
59083
59084         Add tentative support for DragonFly BSD.
59085         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59086         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59087         fp.
59088         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59089         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59090         * lib/fpurge.c (fpurge): Likewise.
59091         * lib/freadable.c (freaadable): Likewise.
59092         * lib/freadahead.c (freadahead): Likewise.
59093         * lib/freading.c (freading): Likewise.
59094         * lib/freadptr.c (freadptr): Likewise.
59095         * lib/freadseek.c (freadptrinc): Likewise.
59096         * lib/fseeko.c (fseeko): Likewise.
59097         * lib/fseterr.c (fseterr): Likewise.
59098         * lib/fwritable.c (fwritable): Likewise.
59099         * lib/fwriting.c (fwriting): Likewise.
59100
59101 2008-04-26  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/stdio-impl.h: New file.
59104         * lib/fbufmode.c: Include stdio-impl.h.
59105         (fbufmode): Use fp_, remove redundant #defines.
59106         * lib/fflush.c: Include stdio-impl.h.
59107         (clear_ungetc_buffer): Remove redundant #defines.
59108         * lib/fpurge.c: Include stdio-impl.h.
59109         (fpurge): Remove redundant #defines.
59110         * lib/freadable.c: Include stdio-impl.h.
59111         (freadable): Remove redundant #defines.
59112         * lib/freadahead.c: Include stdio-impl.h.
59113         (freadahead): Remove redundant #defines.
59114         * lib/freading.c: Include stdio-impl.h.
59115         (freading): Remove redundant #defines.
59116         * lib/freadptr.c: Include stdio-impl.h.
59117         (freadptr): Remove redundant #defines.
59118         * lib/freadseek.c: Include stdio-impl.h.
59119         (freadptrinc): Remove redundant #defines.
59120         * lib/fseeko.c: Include stdio-impl.h.
59121         (rpl_fseeko): Remove redundant #defines.
59122         * lib/fseterr.c: Include stdio-impl.h.
59123         (fseterr): Remove redundant #defines.
59124         * lib/fwritable.c: Include stdio-impl.h.
59125         (fwritable: Remove redundant #defines.
59126         * lib/fwriting.c: Include stdio-impl.h.
59127         (fwriting): Remove redundant #defines.
59128         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59129         * modules/fflush (Files): Likewise.
59130         * modules/fpurge (Files): Likewise.
59131         * modules/freadable (Files): Likewise.
59132         * modules/freadahead (Files): Likewise.
59133         * modules/freading (Files): Likewise.
59134         * modules/freadptr (Files): Likewise.
59135         * modules/freadseek (Files): Likewise.
59136         * modules/fseeko (Files): Likewise.
59137         * modules/fseterr (Files): Likewise.
59138         * modules/fwritable (Files): Likewise.
59139         * modules/fwriting (Files): Likewise.
59140
59141 2008-04-26  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59144         restore_seek_optimization, update_fpos_cache): New functions, extracted
59145         from rpl_fflush.
59146         (rpl_fflush): Use them.
59147         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59148         (gl_REPLACE_FFLUSH): Use it.
59149
59150 2008-04-26  Bruno Haible  <bruno@clisp.org>
59151
59152         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59153         on Solaris.
59154         * tests/test-xstrtoimax.sh: Likewise.
59155         * tests/test-xstrtoumax.sh: Likewise.
59156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59157
59158 2008-04-26  Bruno Haible  <bruno@clisp.org>
59159
59160         * modules/memchr-tests: New file.
59161         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59162
59163 2008-04-26  Eric Blake  <ebb9@byu.net>
59164             Bruno Haible  <bruno@clisp.org>
59165
59166         * lib/memchr.c: Include intprops.h.
59167         (__memchr): Optimize parallel detection of matching bytes. Rename local
59168         variables. Add explanatory comments.
59169
59170 2008-04-26  Bruno Haible  <bruno@clisp.org>
59171
59172         Fix module 'memchr', broken since 2000-10-28.
59173         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59174
59175 2008-04-26  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59178         comments.
59179
59180 2008-04-25  Eric Blake  <ebb9@byu.net>
59181
59182         Use native fstatat on cygwin 1.7.0.
59183         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59184         first.
59185
59186 2008-04-23  Eric Blake  <ebb9@byu.net>
59187
59188         Improve memchr2 performance.
59189         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59190         NUL bytes.
59191         * modules/memchr2 (Depends-on): Use intprops.h.
59192
59193 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59194
59195         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59196         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59197         <blp@cs.stanford.edu>.
59198
59199 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59200
59201         * lib/arpa_inet.in.h: New file.
59202
59203         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59204         (Makefile.am): Sed in substitute header file.
59205
59206         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59207         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59208
59209         * modules/inet_ntop (configure.ac): Use
59210         gl_ARPA_INET_MODULE_INDICATOR.
59211
59212         * modules/inet_pton (configure.ac): Use
59213         gl_ARPA_INET_MODULE_INDICATOR.
59214
59215 2008-04-22  Jim Meyering  <meyering@redhat.com>
59216
59217         * modules/verify (License): Re-license as LGPLv2+.
59218
59219 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59220
59221         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59222         parameter to void* as per POSIX standard (MinGW uses char*).
59223
59224 2008-04-21  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59227         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59228         Define to replacements if REPLACE_ISWCNTRL is 1.
59229         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59230         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59231         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59232         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59233         what it fixes.
59234         * doc/posix-functions/iswalpha.texi: Likewise.
59235         * doc/posix-functions/iswblank.texi: Likewise.
59236         * doc/posix-functions/iswcntrl.texi: Likewise.
59237         * doc/posix-functions/iswdigit.texi: Likewise.
59238         * doc/posix-functions/iswgraph.texi: Likewise.
59239         * doc/posix-functions/iswlower.texi: Likewise.
59240         * doc/posix-functions/iswprint.texi: Likewise.
59241         * doc/posix-functions/iswpunct.texi: Likewise.
59242         * doc/posix-functions/iswspace.texi: Likewise.
59243         * doc/posix-functions/iswupper.texi: Likewise.
59244         * doc/posix-functions/iswxdigit.texi: Likewise.
59245         Reported by Alain Guibert.
59246
59247 2008-04-21  Bruno Haible  <bruno@clisp.org>
59248
59249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59250         Patch by Alain Guibert.
59251
59252 2008-04-21  Bruno Haible  <bruno@clisp.org>
59253
59254         Fix test failures on mingw.
59255         * tests/test-xstrtol.c (print_no_progname): New function.
59256         (main): Install it in error_print_progname hook.
59257         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59258         * tests/test-xstrtoimax.sh: Likewise.
59259         * tests/test-xstrtoumax.sh: Likewise.
59260
59261 2008-04-21  Bruno Haible  <bruno@clisp.org>
59262
59263         Fix test failure on mingw.
59264         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59265
59266 2008-04-21  Bruno Haible  <bruno@clisp.org>
59267
59268         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59269         Actually assign a value.
59270
59271 2008-04-20  Bruno Haible  <bruno@clisp.org>
59272
59273         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59274         take 2.
59275         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59276         'canonicalize-lgpl' module is also used.
59277         * lib/canonicalize-lgpl.c: Undo last change.
59278         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59279
59280 2008-04-20  Bruno Haible  <bruno@clisp.org>
59281
59282         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59283         config.h. Provide _mkdir based fallback for mingw.
59284         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59285         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59286         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59287         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59288         rather than defining mkdir in config.h.
59289         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59290         (gl_SYS_STAT_H_DEFAULTS): New macro.
59291         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59292         HAVE_IO_H any more.
59293         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59294         HAVE_DECL_MKDIR and HAVE_IO_H.
59295
59296 2008-04-20  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/isapipe.c: Port to native Windows platforms.
59299
59300 2008-04-20  Bruno Haible  <bruno@clisp.org>
59301
59302         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59303
59304 2008-04-21  Eric Blake  <ebb9@byu.net>
59305
59306         Work around preprocessors that don't handle UINTMAX_MAX.
59307         * lib/memchr2.c (memchr2): Avoid embedded #if.
59308         Reported by Alain Guibert, fix suggested by Bruno Haible.
59309
59310 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59311
59312         * doc/posix-functions/strftime.texi (strftime): Explain better
59313         Windows incompatibility.  Suggested by Micah Cowan
59314         <micah@cowan.name>.
59315
59316 2008-04-20  Bruno Haible  <bruno@clisp.org>
59317
59318         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59319         unistr/u8-mblen.
59320
59321 2008-04-20  Bruno Haible  <bruno@clisp.org>
59322
59323         Fix test failure on platforms with non-GNU iconv.
59324         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59325         (U_TO_U8): Use it, rather than u16_to_u8.
59326         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59327         units at the end of the input string.
59328         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59329
59330 2008-04-20  Bruno Haible  <bruno@clisp.org>
59331
59332         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59333         when the resulting length is 0.
59334         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59335
59336 2008-04-20  Bruno Haible  <bruno@clisp.org>
59337
59338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59339         works.
59340         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59341
59342 2008-04-20  Bruno Haible  <bruno@clisp.org>
59343
59344         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59345         * modules/tsearch-tests (configure.ac): Test for initstate function.
59346
59347 2008-04-20  Bruno Haible  <bruno@clisp.org>
59348
59349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59350         for nlink_t if missing.
59351         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59352
59353 2008-04-19  Bruno Haible  <bruno@clisp.org>
59354
59355         Work around snprintf bug on Linux libc5.
59356         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59358         gl_SNPRINTF_SIZE1.
59359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59360         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59361         that test failed.
59362         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59363         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59364         * modules/snprintf (Files): Add m4/printf.m4.
59365         * modules/vsnprintf (Files): Likewise.
59366         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59367         * doc/posix-functions/vsnprintf.texi: Likewise.
59368
59369 2008-04-19  Bruno Haible  <bruno@clisp.org>
59370
59371         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59372         from 0.0058 to less than 10^-7.
59373
59374 2008-04-19  Bruno Haible  <bruno@clisp.org>
59375
59376         Fix rounding when a precision is given.
59377         * lib/vasnprintf.c (is_borderline): New function.
59378         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59379         9...9x.
59380         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59381         %e, %g.
59382         * tests/test-vasprintf-posix.c (test_function): Likewise.
59383         * tests/test-snprintf-posix.h (test_function): Likewise.
59384         * tests/test-sprintf-posix.h (test_function): Likewise.
59385         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59386         * tests/test-printf-posix.h (test_function): Likewise.
59387         * tests/test-printf-posix.output: Update.
59388         Reported by John Darrington <john@darrington.wattle.id.au> via
59389         Ben Pfaff <blp@cs.stanford.edu>.
59390
59391 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59392
59393         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59394         Suggested by Bruno Haible <bruno@clisp.org>.
59395
59396 2008-04-17  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59399         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59400         implementation.
59401         Patch by Bruce Merry <bmerry@gmail.com>.
59402
59403 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59404
59405         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59406         doesn't work under Windows.
59407
59408 2008-04-16  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59411         New macros.
59412         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59413         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59414         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59415         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59416         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59417         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59418         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59419         macros.
59420         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59421         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59422         Northern Sotho, Uighur.
59423
59424 2008-04-16  Bruno Haible  <bruno@clisp.org>
59425
59426         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59427         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59428         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59429         Reported by Daniel Bergström <daniel@octocode.com>.
59430
59431 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59432             Bruno Haible  <bruno@clisp.org>
59433
59434         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59435         function.
59436         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59437         New functions, mostly extracted from gl_locale_name_default.
59438         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59439
59440 2008-04-16  Eric Blake  <ebb9@byu.net>
59441
59442         Adjust strtod detection to catch glibc 2.7 bug.
59443         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59444         Reported by John Gatewood Ham.
59445
59446 2008-04-16  Bruno Haible  <bruno@clisp.org>
59447
59448         Add tentative support for Linux libc5.
59449         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59450         * lib/fpurge.c (fpurge): Likewise.
59451         * lib/freadable.c (freadable): Likewise.
59452         * lib/freadahead.c (freadahead): Likewise.
59453         * lib/freading.c (freading): Likewise.
59454         * lib/freadptr.c (freadptr): Likewise.
59455         * lib/freadseek.c (freadptrinc): Likewise.
59456         * lib/fseeko.c (rpl_fseeko): Likewise.
59457         * lib/fseterr.c (fseterr): Likewise.
59458         * lib/fwritable.c (fwritable): Likewise.
59459         * lib/fwriting.c (fwriting): Likewise.
59460         Reported by Alain Guibert <alguibert+bts@free.fr>.
59461
59462 2008-04-15  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/mathl (configure.ac): Define module indicator.
59465
59466 2008-04-15  Bruno Haible  <bruno@clisp.org>
59467
59468         * lib/logl.c (logl): Remove unused variables.
59469
59470 2008-04-15  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59473         fails.
59474
59475 2008-04-15  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/trim.c (trim2): Fix argument of isspace() macro.
59478
59479 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59480
59481         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59482         to 0.
59483         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59484
59485 2008-04-14  Bruno Haible  <bruno@clisp.org>
59486
59487         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59488         AC_LANG_PROGRAM argument.
59489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59490         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59492         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59493         * m4/math_h.m4 (gl_MATH_H): Likewise.
59494         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59496         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59497         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59498         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59499         * m4/regex.m4 (gl_REGEX): Likewise.
59500         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59501         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59504         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59505         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59508
59509 2008-04-14  Jim Meyering  <meyering@redhat.com>
59510
59511         test-strtod: fix typos: s/abs/fabs/
59512         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59513
59514 2008-04-13  Bruno Haible  <bruno@clisp.org>
59515
59516         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59517         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59518         module is also used and while not building the reloc-wrapper.
59519
59520 2008-04-13  Bruno Haible  <bruno@clisp.org>
59521
59522         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59523
59524 2008-04-13  Bruno Haible  <bruno@clisp.org>
59525
59526         Fix AIX compilation failure introduced on 2008-04-02.
59527         * tests/test-frexp.c (exp): Undefine before redefining.
59528         * tests/test-frexpl.c (exp): Likewise.
59529
59530 2008-04-13  Bruno Haible  <bruno@clisp.org>
59531
59532         Work around a HP-UX stdio bug.
59533         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59534         * tests/test-ftello.c (main): Likewise.
59535         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59536         * doc/posix-functions/ftello.texi: Likewise.
59537
59538 2008-04-13  Bruno Haible  <bruno@clisp.org>
59539
59540         Make test-signbit pass on HP-UX/hppa.
59541         * tests/test-signbit.c (minus_zerol): New variable.
59542         (test_signbitl): Use it.
59543
59544 2008-04-13  Bruno Haible  <bruno@clisp.org>
59545
59546         Make truncl work on OSF/1 4.0.
59547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59548         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59549         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59551         HAVE_DECL_TRUNCL.
59552         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59553         HAVE_DECL_TRUNCL.
59554         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59555
59556 2008-04-13  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59559
59560 2008-04-13  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59563         expression, so as to avoid HP-UX 11 cc compiler bug.
59564
59565 2008-04-13  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59568
59569 2008-04-13  Bruno Haible  <bruno@clisp.org>
59570
59571         * lib/git-merge-changelog.c: Remove empty declaration outside of
59572         functions.
59573
59574 2008-04-13  Bruno Haible  <bruno@clisp.org>
59575
59576         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59577
59578 2008-04-13  Bruno Haible  <bruno@clisp.org>
59579
59580         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59581         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59583         also if it exists but lacks definitions of the SHUT_* macros.
59584         * modules/sys_socket (Description): Update.
59585         Reported by Elbert Pol <e.pol@chello.nl>.
59586
59587 2008-04-13  Bruno Haible  <bruno@clisp.org>
59588
59589         * lib/localcharset.c (OS2): Don't redefine if already defined.
59590         Reported by Elbert Pol <e.pol@chello.nl>.
59591
59592 2008-04-13  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/binary-io.h [__EMX__]: Include <io.h>.
59595         Reported by Elbert Pol <e.pol@chello.nl>.
59596
59597 2008-04-12  Bruno Haible  <bruno@clisp.org>
59598
59599         * lib/fpucw.h: Enable the definitions also for x86_64.
59600         Needed for NetBSD/x86_64.
59601         Reported by Thomas Klausner <tk@giga.or.at>.
59602
59603 2008-04-12  Bruno Haible  <bruno@clisp.org>
59604
59605         * tests/test-strtod.c: Include isnand.h.
59606         (main): Use isnand instead of isnan.
59607         Reported by Jim Meyering.
59608
59609 2008-04-12  Bruno Haible  <bruno@clisp.org>
59610
59611         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59612         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59613
59614 2008-04-12  Jim Meyering  <meyering@redhat.com>
59615
59616         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59617
59618 2008-04-12  Bruno Haible  <bruno@clisp.org>
59619
59620         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59621         Reported by Elbert Pol <e.pol@chello.nl>.
59622
59623 2008-04-12  Eric Blake  <ebb9@byu.net>
59624
59625         Work around Solaris 10 math.h bug.
59626         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59627         (gl_MATH_H_DEFAULTS): Set up default.
59628         * modules/math (Makefile.am): Replace new indicators.
59629         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59630         * tests/test-math.c (main): Test this.
59631         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59632         * doc/posix-headers/math.texi (math.h): Mention bug.
59633         Reported by Nelson H. F. Beebe and Jim Meyering.
59634
59635 2008-04-11  Bruno Haible  <bruno@clisp.org>
59636
59637         Adapt to future versions of Apple GCC.
59638         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59639         Reported by Peter O'Gorman <peter@pogma.com>.
59640
59641 2008-04-11  Bruno Haible  <bruno@clisp.org>
59642
59643         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59644
59645 2008-04-11  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59648
59649         * modules/getaddrinfo-tests (Makefile.am): Define
59650         test_getaddrinfo_LDADD.
59651
59652 2008-04-11  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59655         (init): Fix syntax error.
59656         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59657         is declared.
59658
59659 2008-04-11  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59662         * modules/glob (Depends-on): Add stdbool.
59663
59664 2008-04-11  Bruno Haible  <bruno@clisp.org>
59665
59666         * lib/trim.c: Include <string.h>.
59667
59668 2008-04-11  Eric Blake  <ebb9@byu.net>
59669
59670         Avoid compile failure on OS/2.
59671         * lib/regex_internal.h (internal_function): Disable optimization
59672         on OS/2 (__EMX__), where it caused compiler error.
59673         Reported by Elbert Pol.
59674
59675 2008-04-11  Bruno Haible  <bruno@clisp.org>
59676
59677         Flush the standard error stream before aborting. Needed on mingw.
59678         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59679         * tests/test-array_list.c (ASSERT): Likewise.
59680         * tests/test-array_oset.c (ASSERT): Likewise.
59681         * tests/test-avltree_list.c (ASSERT): Likewise.
59682         * tests/test-avltree_oset.c (ASSERT): Likewise.
59683         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59684         * tests/test-binary-io.c (ASSERT): Likewise.
59685         * tests/test-byteswap.c (ASSERT): Likewise.
59686         * tests/test-c-ctype.c (ASSERT): Likewise.
59687         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59688         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59689         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59690         * tests/test-c-strstr.c (ASSERT): Likewise.
59691         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59692         * tests/test-canonicalize.c (ASSERT): Likewise.
59693         * tests/test-carray_list.c (ASSERT): Likewise.
59694         * tests/test-ceilf1.c (ASSERT): Likewise.
59695         * tests/test-ceilf2.c (ASSERT): Likewise.
59696         * tests/test-ceill.c (ASSERT): Likewise.
59697         * tests/test-count-one-bits.c (ASSERT): Likewise.
59698         * tests/test-fbufmode.c (ASSERT): Likewise.
59699         * tests/test-fflush2.c (ASSERT): Likewise.
59700         * tests/test-floorf1.c (ASSERT): Likewise.
59701         * tests/test-floorf2.c (ASSERT): Likewise.
59702         * tests/test-floorl.c (ASSERT): Likewise.
59703         * tests/test-fopen.c (ASSERT): Likewise.
59704         * tests/test-fpending.c (ASSERT): Likewise.
59705         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59706         * tests/test-fpurge.c (ASSERT): Likewise.
59707         * tests/test-freadable.c (ASSERT): Likewise.
59708         * tests/test-freadahead.c (ASSERT): Likewise.
59709         * tests/test-freading.c (ASSERT): Likewise.
59710         * tests/test-freadptr.c (ASSERT): Likewise.
59711         * tests/test-freadptr2.c (ASSERT): Likewise.
59712         * tests/test-freadseek.c (ASSERT): Likewise.
59713         * tests/test-freopen.c (ASSERT): Likewise.
59714         * tests/test-frexp.c (ASSERT): Likewise.
59715         * tests/test-frexpl.c (ASSERT): Likewise.
59716         * tests/test-fseek.c (ASSERT): Likewise.
59717         * tests/test-fseeko.c (ASSERT): Likewise.
59718         * tests/test-fstrcmp.c (ASSERT): Likewise.
59719         * tests/test-ftell.c (ASSERT): Likewise.
59720         * tests/test-ftello.c (ASSERT): Likewise.
59721         * tests/test-func.c (ASSERT): Likewise.
59722         * tests/test-fwritable.c (ASSERT): Likewise.
59723         * tests/test-fwriting.c (ASSERT): Likewise.
59724         * tests/test-getdelim.c (ASSERT): Likewise.
59725         * tests/test-getline.c (ASSERT): Likewise.
59726         * tests/test-i-ring.c (ASSERT): Likewise.
59727         * tests/test-iconv-utf.c (ASSERT): Likewise.
59728         * tests/test-iconv.c (ASSERT): Likewise.
59729         * tests/test-isfinite.c (ASSERT): Likewise.
59730         * tests/test-isnand.c (ASSERT): Likewise.
59731         * tests/test-isnanf.c (ASSERT): Likewise.
59732         * tests/test-isnanl.h (ASSERT): Likewise.
59733         * tests/test-ldexpl.c (ASSERT): Likewise.
59734         * tests/test-linked_list.c (ASSERT): Likewise.
59735         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59736         * tests/test-localename.c (ASSERT): Likewise.
59737         * tests/test-lseek.c (ASSERT): Likewise.
59738         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59739         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59740         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59741         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59742         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59743         * tests/test-mbschr.c (ASSERT): Likewise.
59744         * tests/test-mbscspn.c (ASSERT): Likewise.
59745         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59746         * tests/test-mbspbrk.c (ASSERT): Likewise.
59747         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59748         * tests/test-mbsrchr.c (ASSERT): Likewise.
59749         * tests/test-mbsspn.c (ASSERT): Likewise.
59750         * tests/test-mbsstr1.c (ASSERT): Likewise.
59751         * tests/test-mbsstr2.c (ASSERT): Likewise.
59752         * tests/test-mbsstr3.c (ASSERT): Likewise.
59753         * tests/test-memchr2.c (ASSERT): Likewise.
59754         * tests/test-memmem.c (ASSERT): Likewise.
59755         * tests/test-open.c (ASSERT): Likewise.
59756         * tests/test-printf-frexp.c (ASSERT): Likewise.
59757         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59758         * tests/test-printf-posix.c (ASSERT): Likewise.
59759         * tests/test-quotearg.c (ASSERT): Likewise.
59760         * tests/test-rbtree_list.c (ASSERT): Likewise.
59761         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59762         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59763         * tests/test-round1.c (ASSERT): Likewise.
59764         * tests/test-roundf1.c (ASSERT): Likewise.
59765         * tests/test-roundl.c (ASSERT): Likewise.
59766         * tests/test-signbit.c (ASSERT): Likewise.
59767         * tests/test-sleep.c (ASSERT): Likewise.
59768         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59769         * tests/test-snprintf.c (ASSERT): Likewise.
59770         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59771         * tests/test-stat-time.c (ASSERT): Likewise.
59772         * tests/test-strcasestr.c (ASSERT): Likewise.
59773         * tests/test-strerror.c (ASSERT): Likewise.
59774         * tests/test-striconv.c (ASSERT): Likewise.
59775         * tests/test-striconveh.c (ASSERT): Likewise.
59776         * tests/test-striconveha.c (ASSERT): Likewise.
59777         * tests/test-strsignal.c (ASSERT): Likewise.
59778         * tests/test-strstr.c (ASSERT): Likewise.
59779         * tests/test-strtod.c (ASSERT): Likewise.
59780         * tests/test-trunc1.c (ASSERT): Likewise.
59781         * tests/test-trunc2.c (ASSERT): Likewise.
59782         * tests/test-truncf1.c (ASSERT): Likewise.
59783         * tests/test-truncf2.c (ASSERT): Likewise.
59784         * tests/test-truncl.c (ASSERT): Likewise.
59785         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59786         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59787         * tests/test-vasnprintf.c (ASSERT): Likewise.
59788         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59789         * tests/test-vasprintf.c (ASSERT): Likewise.
59790         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59791         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59792         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59793         * tests/test-vsnprintf.c (ASSERT): Likewise.
59794         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59795         * tests/test-wcwidth.c (ASSERT): Likewise.
59796         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59797         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59798         * tests/test-xvasprintf.c (ASSERT): Likewise.
59799         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59800         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59801         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59802         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59803         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59804         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59805         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59806         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59807         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59808         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59809         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59810         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59811         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59812         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59813         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59814         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59815         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59816         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59817         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59818         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59819         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59820         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59821         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59822         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59823         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59824         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59825         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59826         * tests/unictype/test-combining.c (ASSERT): Likewise.
59827         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59828         * tests/unictype/test-digit.c (ASSERT): Likewise.
59829         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59830         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59831         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59832         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59833         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59834         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59835         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59836         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59837         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59838         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59839         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59840         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59841         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59842         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59843         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59844         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59845         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59846         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59847         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59848         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59849         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59850         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59851         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59852         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59853         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59854         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59855         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59856         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59857         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59858         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59859         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59860         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59861         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59862         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59863         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59864         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59865         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59866         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59867         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59868         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59869         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59870         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59871         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59872         Reported by Eric Blake.
59873
59874 2008-04-11  Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/wchar.in.h: Tweak comment.
59877
59878 2008-04-11  Bruno Haible  <bruno@clisp.org>
59879
59880         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59881         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59882         gl_COMMON.
59883         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59884
59885 2008-04-11  Bruno Haible  <bruno@clisp.org>
59886
59887         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59888
59889 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59890
59891         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59892         of attempting to use non-existing /dev/*random.  Based on patch
59893         from Adam Strzelecki <ono@java.pl> in
59894         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59895
59896 2008-04-08  Bruno Haible  <bruno@clisp.org>
59897
59898         Add tentative support for emx+gcc.
59899         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59900         * lib/fpurge.c (fpurge): Likewise.
59901         * lib/freadable.c (freadable): Likewise.
59902         * lib/freadahead.c (freadahead): Likewise.
59903         * lib/freading.c (freading): Likewise.
59904         * lib/freadptr.c (freadptr): Likewise.
59905         * lib/freadseek.c (freadptrinc): Likewise.
59906         * lib/fseeko.c (rpl_fseeko): Likewise.
59907         * lib/fseterr.c (fseterr): Likewise.
59908         * lib/fwritable.c (fwritable): Likewise.
59909         * lib/fwriting.c (fwriting): Likewise.
59910         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59911
59912 2008-04-09  Eric Blake  <ebb9@byu.net>
59913
59914         Avoid some autoconf warnings.
59915         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59916         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59917         * m4/afs.m4 (gl_AFS): Likewise.
59918         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59919         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59921         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59922         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59923         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59924         (AC_CHECK_DECLS_ONCE): Likewise.
59925         Rename file...
59926         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59927         gnulib-tool requires autoconf 2.59 or better.
59928         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59929
59930 2008-04-08  Eric Blake  <ebb9@byu.net>
59931
59932         Use 'git describe --match' if present (added in git 1.5.5).
59933         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59934         if possible.
59935
59936 2008-04-08  Bruno Haible  <bruno@clisp.org>
59937
59938         Add tentative support for OpenServer.
59939         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59940         _ptr, _cnt.
59941         * lib/fpurge.c (fpurge): Likewise.
59942         * lib/freadable.c (freadable): Likewise.
59943         * lib/freadahead.c (freadahead): Likewise.
59944         * lib/freading.c (freading): Likewise.
59945         * lib/freadptr.c (freadptr): Likewise.
59946         * lib/freadseek.c (freadptrinc): Likewise.
59947         * lib/fseeko.c (rpl_fseeko): Likewise.
59948         * lib/fseterr.c (fseterr): Likewise.
59949         * lib/fwritable.c (fwritable): Likewise.
59950         * lib/fwriting.c (fwriting): Likewise.
59951         Reported by Roger Cornelius <rac@tenzing.org> and
59952         Brian K. White <brian@aljex.com>.
59953
59954 2008-04-06  Jim Meyering  <meyering@redhat.com>
59955
59956         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59957
59958 2008-04-06  Bruno Haible  <bruno@clisp.org>
59959
59960         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59961         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59962         * tests/test-printf-posix.sh: Likewise.
59963         * tests/test-vfprintf-posix.sh: Likewise.
59964         * tests/test-vprintf-posix.sh: Likewise.
59965         * tests/test-xprintf-posix.sh: Likewise.
59966
59967 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59968
59969         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59970         hide error from 'ls', needed on OS/2.
59971         Report by Elbert Pol <elbert.pol@gmail.com>.
59972
59973 2008-04-04  Eric Blake  <ebb9@byu.net>
59974
59975         Make test-fseeko.c failures meaningful.
59976         * tests/test-fseeko.c: Print line number on failure.
59977         * tests/test-fseek.c: Likewise.
59978         Reported by Nelson H. F. Beebe.
59979
59980         Improve strtod bug detection check.
59981         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59982         required for Solaris 10.
59983         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59984
59985 2008-04-04  Bruno Haible  <bruno@clisp.org>
59986
59987         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59988         by m4/setenv.m4.
59989
59990 2008-04-03  Eric Blake  <ebb9@byu.net>
59991
59992         Ensure sane .version contents.
59993         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59994         version string.
59995         * build-aux/git-version-gen: Improve documentation.
59996
59997         Make GNU make output nicer.
59998         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59999         MAKECMDGOALS to enforce message for all command line targets.  Set
60000         srcdir for use in maint.mk.
60001
60002         Another maintainer tweak.
60003         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60004         a target that regenerates version.
60005
60006 2008-04-03  Jim Meyering  <meyering@redhat.com>
60007
60008         vc-list-files: don't cause coreutils "make po-check" failure
60009         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60010
60011 2008-04-03  Eric Blake  <ebb9@byu.net>
60012
60013         Allow VPATH usage of vc-list-files.
60014         * build-aux/vc-list-files (scriptversion): Add timestamp.
60015         (options): Add --help, --version, -C.
60016         (CVS): Support installed cvsu.
60017
60018 2008-04-02  Bruno Haible  <bruno@clisp.org>
60019
60020         Avoid some "statement with no effect" warnings from gcc.
60021         * tests/test-wctype.c (main): Explicitly ignore unused values.
60022         Reported by Jim Meyering.
60023
60024 2008-04-02  Jim Meyering  <meyering@redhat.com>
60025
60026         Avoid some warnings from "gcc -Wshadow".
60027         * tests/test-frexp.c (exp): Define to a different identifier.
60028         * tests/test-frexpl.c (exp): Likewise.
60029
60030 2008-04-03  Jim Meyering  <meyering@redhat.com>
60031
60032         bootstrap: remove dangling *.[ch] symlinks from lib
60033         * build-aux/bootstrap [dangling symlink removal]: Move find's
60034         -depth option to precede all others, to avoid a warning.
60035         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60036
60037 2008-04-02  Bruno Haible  <bruno@clisp.org>
60038
60039         Avoid some warnings from "gcc -Wshadow".
60040         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60041         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60042         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60043         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60044         Reported by Jim Meyering.
60045
60046 2008-04-01  Bruno Haible  <bruno@clisp.org>
60047
60048         Fix test to work on IRIX 6.5 with cc.
60049         * tests/test-math.c (numeric_equal): New function.
60050         (main): Use it.
60051
60052 2008-04-01  Bruno Haible  <bruno@clisp.org>
60053
60054         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60055
60056 2008-04-01  Bruno Haible  <bruno@clisp.org>
60057
60058         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60059         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60060         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60061         (Depends-on): Remove math.
60062
60063         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60064         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60065         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60066         (Depends-on): Remove math.
60067
60068         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60069         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60070         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60071         (Depends-on): Remove math.
60072         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60073         (Depends-on): Remove math.
60074
60075         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60076         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60077         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60078         (Depends-on): Remove math.
60079         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60080         (Depends-on): Remove math.
60081
60082         * tests/test-round1.c: Include nan.h.
60083         (main): Use NaNd instead of NAN.
60084         * modules/round-tests (Files): Add tests/nan.h.
60085
60086         * tests/test-trunc1.c: Include nan.h.
60087         (main): Use NaNd instead of NAN.
60088         * modules/trunc-tests (Files): Add tests/nan.h.
60089
60090         * tests/test-roundf1.c: Include nan.h.
60091         (main): Use NaNf instead of NAN.
60092         * modules/roundf-tests (Files): Add tests/nan.h.
60093
60094         * tests/test-truncf1.c: Include nan.h.
60095         (main): Use NaNf instead of NAN.
60096         * modules/truncf-tests (Files): Add tests/nan.h.
60097
60098         * tests/test-ceilf1.c: Include nan.h.
60099         (main): Use NaNf instead of NAN.
60100         * modules/ceilf-tests (Files): Add tests/nan.h.
60101
60102         * tests/test-floorf1.c: Include nan.h.
60103         (main): Use NaNf instead of NAN.
60104         * modules/floorf-tests (Files): Add tests/nan.h.
60105
60106         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60107         (main): Use NaNf instead of NAN.
60108         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60109
60110         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60111         (main): Use NaNd instead of NAN.
60112         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60113
60114         * tests/test-frexp.c: Include nan.h.
60115         (main): Use NaNd instead of NAN.
60116         * modules/frexp-tests (Files): Add tests/nan.h.
60117
60118         * lib/isnan.c: Don't include <math.h>.
60119         (FUNC): Don't use NAN macro.
60120         * modules/isnand-nolibm (Depends-on): Remove math.
60121         * modules/isnanf-nolibm (Depends-on): Remove math.
60122         * modules/isnanl (Depends-on): Remove math.
60123         * modules/isnanl-nolibm (Depends-on): Remove math.
60124
60125         * tests/nan.h: New file.
60126
60127 2008-04-01  Eric Blake  <ebb9@byu.net>
60128
60129         Fix typos.
60130         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60131         values to be the right type.
60132
60133         For now, cater to gnulib strtod inaccuracies.
60134         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60135         fractional results.  While not as nice from a QoI perspective, it
60136         is a quicker patch than correctly implementing decimal to binary
60137         rounding.
60138
60139 2008-03-31  Eric Blake  <ebb9@byu.net>
60140
60141         Guarantee a definition of NAN.
60142         * lib/math.in.h (NAN): Define if missing.
60143         * tests/test-math.c (main): Test it.
60144         * doc/posix-headers/math.texi (math.h): Document this.
60145         * lib/isnan.c (rpl_isnand): Use it.
60146         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60147         * tests/test-floorf1.c (NaN): Likewise.
60148         * tests/test-frexp.c (NaN): Likewise.
60149         * tests/test-isnand.c (NaN): Likewise.
60150         * tests/test-isnanf.c (NaN): Likewise.
60151         * tests/test-round1.c (NaN): Likewise.
60152         * tests/test-roundf1.c (NaN): Likewise.
60153         * tests/test-snprintf-posix.h (NaN): Likewise.
60154         * tests/test-sprintf-posix.h (NaN): Likewise.
60155         * tests/test-trunc1.c (NaN): Likewise.
60156         * tests/test-truncf1.c (NaN): Likewise.
60157         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60158         * tests/test-vasprintf-posix.c (NaN): Likewise.
60159         * modules/isnand-nolibm (Depends-on): Add math.
60160         * modules/isnanf-nolibm (Depends-on): Likewise.
60161         * modules/isnanl (Depends-on): Likewise.
60162         * modules/isnanl-nolibm (Depends-on): Likewise.
60163         * modules/snprintf-posix-tests (Depends-on): Likewise.
60164         * modules/sprintf-posix-tests (Depends-on): Likewise.
60165         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60166         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60167         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60168         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60169
60170 2008-03-31  Bruno Haible  <bruno@clisp.org>
60171
60172         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60173         * doc/posix-functions/strtod.texi: Likewise.
60174
60175 2008-03-31  Bruno Haible  <bruno@clisp.org>
60176
60177         * tests/test-strtod.c (main): Don't use C99 syntax.
60178
60179 2008-03-31  Bruno Haible  <bruno@clisp.org>
60180
60181         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60182         Reported by Eric Blake.
60183
60184 2008-03-31  Jim Meyering  <meyering@redhat.com>
60185
60186         Don't compare actual signbit return values.
60187         * tests/test-strtod.c (main): Rather, compare only their
60188         zero/non-zero nature.
60189
60190 2008-03-31  Eric Blake  <ebb9@byu.net>
60191
60192         More strtod documentation.
60193         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60194         failures as distinct bugs.
60195
60196 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60197
60198         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60199         Problem reported by Erik Benada in
60200         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60201
60202 2008-03-30  Bruno Haible  <bruno@clisp.org>
60203
60204         * tests/test-strtod.c: Add comments about which assertion fails on which
60205         platform.
60206         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60207
60208 2008-03-30  Eric Blake  <ebb9@byu.net>
60209
60210         Test signbit behavior on zeros.
60211         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60212         (test_signbitd, test_signbitl): Likewise.
60213
60214         More strtod touchups.
60215         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60216         sign of negative underflow, for now.  Use .5, not .1.
60217         * doc/posix-functions/strtod.texi (strtod): Mention these
60218         limitations.
60219         Reported by Jim Meyering.
60220
60221 2008-03-30  Bruno Haible  <bruno@clisp.org>
60222
60223         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60224         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60225
60226 2008-03-30  Bruno Haible  <bruno@clisp.org>
60227
60228         Avoid failure when attempting to return empty iconv results on some
60229         platforms.
60230         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60231         allocation, don't report ENOMEM when the resulting string is empty.
60232
60233 2008-03-30  Bruno Haible  <bruno@clisp.org>
60234
60235         Fix buffer overrun.
60236         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60237         Don't consider the width for tmp_length. Check count against tmp_length
60238         before doing the padding. Ensure enough allocation during padding.
60239
60240 2008-03-30  Eric Blake  <ebb9@byu.net>
60241
60242         strtod touchups.
60243         * lib/strtod.c (strtod): Avoid compiler warnings.
60244         Reported by Jim Meyering.
60245
60246 2008-03-30  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60249         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60250         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60251         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60252         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60253         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60254         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60255         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60256
60257         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60258         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60259         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60260         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60261         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60262         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60263         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60264         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60265
60266         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60267         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60268         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60269         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60270         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60271         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60272         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60273         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60274
60275         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60276         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60277
60278         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60279         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60280
60281         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60282         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60283
60284         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60286         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60287
60288         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60290         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60291
60292         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60294         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60295
60296         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60298         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60299
60300         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60301         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60303         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60304         (Depends-on): Add EOVERFLOW.
60305         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60306         (Depends-on): Add EOVERFLOW.
60307         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60308         (Depends-on): Add EOVERFLOW.
60309         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60310         (Depends-on): Add EOVERFLOW.
60311         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60312         (Depends-on): Add EOVERFLOW.
60313         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60314         (Depends-on): Add EOVERFLOW.
60315         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60316         (Depends-on): Add EOVERFLOW.
60317         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60318         (Depends-on): Add EOVERFLOW.
60319
60320         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60322         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60323
60324         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60326         * modules/snprintf (Depends-on): Add EOVERFLOW.
60327
60328         * lib/poll.c (EOVERFLOW): Remove fallback.
60329         * modules/poll (Depends-on): Add EOVERFLOW.
60330
60331         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60332         * modules/getugroups (Depends-on): Add EOVERFLOW.
60333
60334         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60335         * modules/getdelim (Depends-on): Add EOVERFLOW.
60336
60337         * lib/ftell.c (EOVERFLOW): Remove fallback.
60338         * modules/ftell (Depends-on): Add EOVERFLOW.
60339
60340         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60341         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60342         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60343
60344         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60345
60346         * modules/EOVERFLOW-tests: New file.
60347         * tests/test-EOVERFLOW.c: New file.
60348
60349         * modules/EOVERFLOW: New file.
60350         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60351
60352 2008-03-30  Bruno Haible  <bruno@clisp.org>
60353
60354         Fix bug introduced on 2007-06-10.
60355         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60356         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60357
60358 2008-03-30  Bruno Haible  <bruno@clisp.org>
60359
60360         Improve freadseek's efficiency after ungetc.
60361         * lib/freadseek.c: Include freadahead.h.
60362         (freadptrinc): New function, extracted from freadseek.
60363         (freadseek): Use it in a loop. Use freadahead to determine the number
60364         of loop iterations.
60365         * modules/freadseek (Depends-on): Add freadahead.
60366         (configure.ac): Require AC_C_INLINE.
60367
60368 2008-03-30  Bruno Haible  <bruno@clisp.org>
60369
60370         * lib/freadseek.c (freadseek): Don't ignore the return value of
60371         freadptr.
60372
60373 2008-03-29  Eric Blake  <ebb9@byu.net>
60374
60375         Add hex float support.
60376         * modules/strtod (Depends-on): Add c-ctype.
60377         (Link): Mention POW_LIB.
60378         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60379         whitespace between 'e' and exponent.
60380         * tests/test-strtod.c (main): Enable hex float tests.
60381         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60382         now provides.
60383
60384         Document various strtod bugs, with some fixes.
60385         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60386         "-0x", "inf", "nan", and hex constants.
60387         * doc/posix-functions/atof.texi (atof): Likewise.
60388         * modules/stdlib (Makefile.am): Support strtod.
60389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60390         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60391         detect additional strtod bugs.
60392         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60393         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60394         bool where appropriate.  Parse 'inf' and 'nan'.
60395         * tests/test-strtod.c: New file.
60396         * modules/strtod (Depends-on): Add stdbool, stdlib.
60397         (configure.ac): Turn on module indicator.
60398         * modules/strtod-tests: New module.
60399
60400 2008-03-29  Eric Blake  <ebb9@byu.net>
60401
60402         Fix ftell on mingw.
60403         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60404         * modules/ftell-tests (Depends-on): Add binary-io.
60405         * modules/ftello-tests (Depends-on): Likewise.
60406         * tests/test-ftell.c (main): Enhance test to cover behavior after
60407         ungetc.  Enforce binary mode.
60408         * tests/test-ftello.c (main): Likewise.
60409
60410         Pass test-freadseek on cygwin.
60411         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60412         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60413         ungetc buffer.
60414
60415         * tests/test-fflush2.c (main): Fix typo.
60416
60417 2008-03-29  Bruno Haible  <bruno@clisp.org>
60418
60419         * tests/test-fflush2.c (main): Temporarily disable the contents of
60420         this test.
60421         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60422         Reported by Eric Blake.
60423
60424 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60425
60426         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60427         (GC_SHA224_DIGEST_SIZE): Add.
60428
60429         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60430         (gc_hash_digest_length): Likewise.
60431         (gc_hash_buffer): Likewise.
60432
60433 2008-03-25  Bruno Haible  <bruno@clisp.org>
60434
60435         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60436         detail which gettext release to use.
60437         Reported by Simon Josefsson.
60438
60439 2008-03-26  Jim Meyering  <meyering@redhat.com>
60440
60441         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60442         * modules/gnumakefile (clean-GNUmakefile): Also, use
60443         test ... && ... || : syntax rather than if-then ... fi.
60444
60445         gnumakefile: Don't double-quote-expand $(VPATH) value.
60446         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60447
60448 2008-03-24  Eric Blake  <ebb9@byu.net>
60449
60450         Alter GNUmakefile to install into top directory.
60451         * modules/maintainer-makefile: Split, and add dependency...
60452         * modules/gnumakefile: to this new module.
60453         * build-aux/GNUmakefile: Move...
60454         * top/GNUmakefile: ...here.
60455         * build-aux/maint.mk: Move...
60456         * top/maint.mk: ...here.
60457         * MODULES.html.sh (Support for maintaining...): Document new
60458         module.
60459
60460 2008-03-23  Bruno Haible  <bruno@clisp.org>
60461
60462         * gnulib-tool: New options --vc-files, --no-vc-files.
60463         (func_usage): Document them.
60464         (vc_files): New variable.
60465         (func_import): Consider vc_files.
60466         (func_create_testdir): Set vc_files to empty.
60467         Suggested by Jim Meyering and Karl Berry.
60468
60469 2008-03-23  Bruno Haible  <bruno@clisp.org>
60470
60471         Fix regex compilation error on HP-UX 11.
60472         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60473         * modules/regex (Files): Add m4/mbstate_t.m4.
60474         Reported by Ton Voon <ton.voon@altinity.com>.
60475
60476 2008-03-23  Bruno Haible  <bruno@clisp.org>
60477
60478         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60479
60480 2008-03-23  Eric Blake  <ebb9@byu.net>
60481             Bruno Haible  <bruno@clisp.org>
60482
60483         Install files from top/ in the destination directory.
60484         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60485         augmentation also for the files from top/.
60486         (func_import, func_create_testdir): Rewrite file names:
60487         top/filename -> filename.
60488
60489 2008-03-23  Bruno Haible  <bruno@clisp.org>
60490
60491         Tweak "gnulib --version" output.
60492         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60493
60494 2008-03-23  Bruno Haible  <bruno@clisp.org>
60495
60496         Tweak "gnulib --version" output.
60497         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60498         rather than contents of ChangeLog, when possible.
60499
60500 2008-03-21  Eric Blake  <ebb9@byu.net>
60501
60502         More --version tweaks.
60503         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60504         date of last ChangeLog entry.
60505
60506 2008-03-21  Jim Meyering  <meyering@redhat.com>
60507
60508         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60509
60510 2008-03-20  Eric Blake  <ebb9@byu.net>
60511
60512         VPATH fix.
60513         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60514
60515 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60516
60517         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60518         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60519
60520 2008-03-20  Eric Blake  <ebb9@byu.net>
60521
60522         Sync GNUmakefile with coreutils.
60523         * build-aux/GNUmakefile (have-Makefile): Rename...
60524         (_have-Makefile): ...to this, for namespace consideration.
60525         (GNUmakefile.cfg): Include, if present.
60526         (_autoreconf): Define a default.
60527         (_is-dist-target): New rule for rebuilds to pick up intra-release
60528         version.
60529         (maint-cfg.mk): Rename...
60530         (cfg.mk): ...to this.
60531
60532 2008-03-18  Jim Meyering  <meyering@redhat.com>
60533
60534         New script and module: mktempd
60535         * MODULES.html.sh (maint+release support): Add mktempd.
60536         * build-aux/mktempd: New file.
60537         * modules/mktempd: New file.
60538
60539 2008-03-15  Jim Meyering  <meyering@redhat.com>
60540
60541         Undo last change.
60542         * lib/sha1.c, lib/md5.c: 63 != ~63.
60543         Reported by Andreas Schwab.
60544
60545         sha1.c, md5.c: Hoist a redundant expression.
60546         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60547         "ctx->buflen" only once, before calling *_process_block.
60548         * lib/md5.c (md5_process_bytes): Likewise.
60549
60550 2008-03-14  Eric Blake  <ebb9@byu.net>
60551
60552         Bump copyright year in files generated by gnulib-tool.
60553         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60554         gnulib-tool, rather than hard-coding it.
60555
60556         Fix 'gnulib-tool --version' output to work with git.
60557         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60558         (startup): ...here.
60559         (func_version): Use it to invoke git-version-gen, rather than
60560         relying on CVS keyword expansion.  Modernize wording.
60561         (cvsdatestamp, last_checkin_date, version): Kill unused
60562         variables.
60563
60564 2008-03-12  Jim Meyering  <meyering@redhat.com>
60565
60566         Recognize optional cast of the argument to free.
60567         * build-aux/useless-if-before-free: Update regexps.
60568
60569         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60570
60571 2008-03-11  Bruno Haible  <bruno@clisp.org>
60572
60573         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60574         by a single package.
60575         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60576         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60577         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60578         Reported by Sam Steingold <sds@gnu.org>.
60579
60580 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60581
60582         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60583         repositories.
60584
60585 2008-03-11  Bruno Haible  <bruno@clisp.org>
60586
60587         Avoid conflicts between local macro definitions.
60588         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60589         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60590
60591 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60592             Bruno Haible  <bruno@clisp.org>
60593
60594         Make va_copy work with some version of xlc on AIX 5.1.
60595         * lib/stdarg.in.h: New file.
60596         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60597         On AIX, use a <stdarg.h> file substitute.
60598         * modules/stdarg (Files): Add lib/stdarg.in.h.
60599         (Depends-on): Add include_next.
60600         (Makefile.am): Build a stdarg.h substitute if requested.
60601         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60602
60603 2008-03-10  Bruno Haible  <bruno@clisp.org>
60604
60605         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60607         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60608
60609 2008-03-10  Bruno Haible  <bruno@clisp.org>
60610
60611         * modules/stdlib (Depends-on): Add include_next, remove
60612         absolute-header.
60613
60614 2008-03-09  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/freadahead.h (freadahead): Document more precisely.
60617         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60618         the sum of both buffer sizes.
60619         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60620         * NEWS: Document the change.
60621
60622 2008-03-09  Bruno Haible  <bruno@clisp.org>
60623
60624         Extend freadptr to return also the buffer size.
60625         * lib/freadptr.h (freadptr): Add sizep argument.
60626         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60627         (freadptr): Add sizep argument. Determine buffer size like freadahead
60628         does.
60629         * tests/test-freadptr.c: Don't include freadahead.h.
60630         (main): Adapt for new calling convention of freadptr.
60631         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60632         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60633         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60634         tests/test-freadptr2.sh.
60635         (Depends): Remove freadahead.
60636         (TESTS): Add test-freadptr2.sh.
60637         (check_PROGRAMS): Add test-freadptr2.
60638
60639 2008-03-09  Bruno Haible  <bruno@clisp.org>
60640
60641         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60642         Report and solution by Simon Josefsson.
60643
60644 2008-03-06  Bruno Haible  <bruno@clisp.org>
60645
60646         Make fflush after ungetc work on BSD platforms.
60647         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60648         * tests/test-fflush2.c: New file.
60649         * tests/test-fflush2.sh: New file.
60650         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60651         tests/test-fflush2.c.
60652         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60653         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60654
60655 2008-03-06  Eric Blake  <ebb9@byu.net>
60656
60657         Likewise for ftello.
60658         * modules/ftello (Dependencies): Add extensions.
60659         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60660
60661 2008-03-06  Bruno Haible  <bruno@clisp.org>
60662
60663         * modules/fseeko (Dependencies): Add extensions.
60664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60665         Needed on glibc systems.
60666
60667 2008-03-06  Bruno Haible  <bruno@clisp.org>
60668
60669         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60670         email address.
60671         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60672
60673 2008-03-06  Bruno Haible  <bruno@clisp.org>
60674
60675         * users.txt: Add libgnupdf.
60676
60677 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60678
60679         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60680         (Header File Substitutes, Function Substitutes,
60681         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60682         (Build robot for gnulib): Fix typo.
60683
60684 2008-03-06  Bruno Haible  <bruno@clisp.org>
60685
60686         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60687         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60688
60689 2008-03-06  Bruno Haible  <bruno@clisp.org>
60690
60691         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60692         * doc/gnulib.texi: Include it.
60693
60694 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60695
60696         * modules/func (License): Change license to unlimited; there was
60697         no LGPL parts in the module anyway.
60698
60699 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60700
60701         * modules/__func__: Renamed to modules/func.
60702         * modules/__func__-tests: Renamed to modules/func-tests.
60703         * tests/test-__func__.c: Renamed to tests/test-func.c.
60704         * m4/__func__.m4: Renamed to m4/func.m4.
60705         * doc/gnulib.texi (__func__): Section renamed to func.
60706         Suggested by Eric Blake <ebb9@byu.net>.
60707
60708 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60709
60710         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60711         about __func__.  Make example self-contained.  Suggested by Eric
60712         Blake <ebb9@byu.net>.
60713
60714         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60715         Suggested by Eric Blake <ebb9@byu.net>.
60716
60717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60718
60719         * modules/__func__: New file.
60720         * modules/__func__-tests: New file.
60721         * tests/test-__func__.c: New file.
60722         * m4/__func__.m4: New file.
60723         * doc/gnulib.texi (__func__): Document __func__ module.
60724
60725 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60726
60727         * modules/byteswap (License): Re-license as LGPLv2+.
60728
60729 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60730
60731         * doc/Makefile: Add pdf target.
60732
60733 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60734
60735         * modules/inline (License): Use 'unlimited', since there are only
60736         *.m4 files in this module.
60737
60738 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60739             Bruno Haible  <bruno@clisp.org>
60740
60741         Add support for HP C 7.1 on OpenVMS 8.3.
60742         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60743
60744 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60745
60746         Update VMS specifics.
60747         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60748
60749 2008-03-02  Jim Meyering  <meyering@redhat.com>
60750
60751         Remove the last dependency on the "free" module.
60752         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60753         Reported by Bob Proulx.
60754
60755         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60756
60757         Remove useless "if" tests before free.  Deprecate "free" module.
60758         * doc/posix-functions/free.texi: Mention that this
60759         module is no longer useful.
60760         * modules/free (Notice): Say this module is obsolete.
60761         * modules/readutmp (Depends-on): Remove free.
60762         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60763         * lib/putenv.c (putenv): Likewise.
60764         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60765         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60766         * tests/test-c-strcasestr.c (main): Likewise.
60767         * tests/test-c-strstr.c (main): Likewise.
60768         * tests/test-mbscasestr1.c (main): Likewise.
60769         * tests/test-mbscasestr2.c (main): Likewise.
60770         * tests/test-mbsstr1.c (main): Likewise.
60771         * tests/test-mbsstr2.c (main): Likewise.
60772         * tests/test-memmem.c (main): Likewise.
60773         * tests/test-strcasestr.c (main): Likewise.
60774         * tests/test-striconv.c (main): Likewise.
60775         * tests/test-striconveh.c (main): Likewise.
60776         * tests/test-striconveha.c (main): Likewise.
60777         * tests/test-strstr.c (main): Likewise.
60778
60779         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60780
60781         bootstrap: sync from coreutils again
60782         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60783
60784 2008-03-01  Jim Meyering  <meyering@redhat.com>
60785
60786         bootstrap: sync from coreutils
60787         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60788         also when the target doesn't exist.
60789
60790 2008-03-01  Eric Blake  <ebb9@byu.net>
60791
60792         Fix bugs in last patch.
60793         * lib/memchr2.c (memchr2): Fix typo.
60794         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60795         extension.
60796         Reported by Bruce Korb.
60797
60798         New module 'memchr2'.
60799         * modules/memchr2: New file.
60800         * modules/memchr2-tests: Likewise.
60801         * lib/memchr2.h: Likewise.
60802         * lib/memchr2.c: Likewise, based on memchr.c.
60803         * tests/test-memchr2.c: New test.
60804         * MODULES.html.sh (String handling): Add memchr2.
60805
60806 2008-02-29  Bruno Haible  <bruno@clisp.org>
60807
60808         * modules/freadseek-tests: New file.
60809         * tests/test-freadseek.sh: New file.
60810         * tests/test-freadseek.c: New file.
60811
60812         New module 'freadseek'.
60813         * modules/freadseek: New file.
60814         * lib/freadseek.h: New file.
60815         * lib/freadseek.c: New file.
60816         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60817
60818 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60819
60820         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60821         wydawca.
60822
60823         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60824         program_invocation_name and program_invocation_short_name are
60825         present.
60826
60827 2008-02-28  Bruno Haible  <bruno@clisp.org>
60828
60829         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60830         * tests/test-freadptr.sh: Also test non-seekable stdin.
60831
60832 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60833
60834         * build-aux/bootstrap (source_base, m4_base)
60835         (doc_base, tests_base): New variables.
60836         (gnulib_tool_options): Do not hardcode base directories, use
60837         the above variables instead.
60838
60839 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60840
60841         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60842
60843 2008-02-28  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/freadptr-tests: New file.
60846         * tests/test-freadptr.sh: New file.
60847         * tests/test-freadptr.c: New file.
60848
60849         New module 'freadptr'.
60850         * modules/freadptr: New file.
60851         * lib/freadptr.h: New file.
60852         * lib/freadptr.c: New file.
60853         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60854
60855 2008-02-26  Karl Berry  <karl@freefriends.org>
60856
60857         Sync from Libtool:
60858         * libltdl/argz.c (argz_add, argz_count): New functions.
60859         * libltdl/argz.in.h: Declare them.
60860         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60861
60862 2008-02-22  Bruno Haible  <bruno@clisp.org>
60863
60864         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60865         is a pointer type.  Needed for HP-UX 10.
60866         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60867         * doc/posix-functions/gmtime_r.texi: Likewise.
60868         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60869
60870 2008-02-24  Bruno Haible  <bruno@clisp.org>
60871
60872         * modules/environ-tests: New file.
60873         * tests/test-environ.c: New file.
60874
60875         New module 'environ'.
60876         * modules/environ: New file.
60877         * lib/unistd.in.h (environ): New declaration.
60878         * m4/environ.m4: New file.
60879         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60880         after use.
60881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60882         HAVE_DECL_ENVIRON.
60883         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60884         HAVE_DECL_ENVIRON.
60885         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60886         wrong claim that 'environ' is missing on some systems.
60887         * modules/execute (Depends-on): Add environ.
60888         * lib/execute.c (environ): Remove fallback declaration.
60889         * modules/pipe (Depends-on): Add environ.
60890         * lib/pipe.c (environ): Remove fallback declaration.
60891         * modules/setenv (Depends-on): Add environ.
60892         * lib/setenv.c (environ): Remove fallback declaration.
60893         * modules/unsetenv (Depends-on): Add environ.
60894         * lib/unsetenv.c (environ): Remove fallback declaration.
60895         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60896         m4/environ.m4.
60897         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60898         (gl_PREREQ_UNSETENV): Likewise.
60899
60900 2008-02-24  Bruno Haible  <bruno@clisp.org>
60901
60902         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60903
60904 2008-02-20  Bob Proulx  <bob@proulx.com>
60905
60906         Enable use of older two part flavor 'git describe'.
60907         * build-aux/git-version-gen: If using the older two part flavor of
60908         git version then recreate the third part now present in the
60909         newer three part flavor of git describe.
60910
60911 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60912
60913         * lib/fts.c (fts_build): Typo correction to comment.
60914
60915 2008-02-17  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60918         generating no-op conflicts.
60919
60920 2008-02-17  Bruno Haible  <bruno@clisp.org>
60921
60922         Speed up by 10%.
60923         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60924         result_entries, rather than an index-based loop.
60925
60926 2008-02-17  Bruno Haible  <bruno@clisp.org>
60927
60928         Speed up by 25%.
60929         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60930         'hashcode_cached'.
60931         (entry_create): New function.
60932         (entry_hashcode): Use the cached hashcode if possible.
60933         (read_changelog_file, try_split_merged_entry): Use entry_create.
60934
60935 2008-02-17  Bruno Haible  <bruno@clisp.org>
60936
60937         Speed up from O(n^2) to O(n) for long ChangeLog files.
60938         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60939         (read_changelog_file): Change implementation of entries_reversed list
60940         to rbtreehash.
60941         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60942
60943 2008-02-17  Bruno Haible  <bruno@clisp.org>
60944
60945         New option --split-merged-entry.
60946         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60947         (find_paragraph_end, try_split_merged_entry): New functions.
60948         (long_options): Add option --split-merged-entry.
60949         (usage): Document option --split-merged-entry.
60950         (main): Implement option --split-merged-entry.
60951         Reported by Eric Blake.
60952
60953 2008-02-17  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/git-merge-changelog.c: Include c-strstr.h.
60956         (main): Support the "git pull --rebase" situation.
60957         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60958         Reported by Eric Blake.
60959
60960 2008-02-16  Eric Blake  <ebb9@byu.net>
60961
60962         Avoid doubling \ in common case of "c-maybe" quoting style.
60963         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60964         eliding outer quotes.
60965         * lib/quotearg.h: Document this.
60966         * tests/test-quotearg.c (result_strings, inputs, results_g)
60967         (flag_results, locale_results): Test it by adding a new string to
60968         each test group.
60969         (compare_strings): Test new string.
60970
60971 2008-02-13  Eric Blake  <ebb9@byu.net>
60972
60973         Avoid trigraph quoting in default output.
60974         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60975         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60976         unless explicitly requested.
60977         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60978
60979 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60980
60981         Don't rely on signed integer overflowing to negative value.
60982         * lib/getugroups.c (getugroups): Include <limits.h>.
60983         Instead, compare against INT_MAX, and increment only if the test passes.
60984
60985 2008-02-13  Jim Meyering  <meyering@redhat.com>
60986         and Eric Blake  <ebb9@byu.net>
60987
60988         Avoid shadowing warning and compile errors on Linux.
60989         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60990         forwarding macros on Linux.
60991         (dcgettext): Define a stub, for Linux.
60992         (results_g, main): Avoid warnings.
60993
60994 2008-02-12  Eric Blake  <ebb9@byu.net>
60995
60996         Silence warning in last patch.
60997         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60998
60999         Quotearg part 4: add tests, fix c-maybe colon quoting.
61000         * lib/quotearg.h: Improve documentation.
61001         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61002         escapes when adding outer quotes.  When quoting trigraphs, use
61003         valid C notation.  When quoting NUL, omit extra characters if next
61004         character is not digit.  Alter prototype.
61005         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61006         callers.
61007         * modules/quotearg-tests: New module.
61008         * tests/test-quotearg.c: New test.
61009
61010 2008-02-07  Eric Blake  <ebb9@byu.net>
61011
61012         Quotearg part 3: add flag to control outer quote elision.
61013         * lib/quotearg.h (c_maybe_quoting_style): New style.
61014         (enum quoting_flags): Better documentation of flags.
61015         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61016         c-maybe style.
61017         (quotearg_buffer_restyled): Handle new flag to elide outer
61018         quotes.
61019
61020         Quotearg part 2: add flag that can control NUL elision.
61021         * lib/quotearg.h (set_quoting_flags): New prototype.
61022         * lib/quotearg.c (struct quoting_options): Add flag field.
61023         (set_quoting_flags): New function.
61024         (quotearg_buffer_restyled): Add flags parameter.
61025         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61026         (quotearg_n_options): Set the flag, since length cannot be
61027         returned.
61028         (quoting_options_from_style): Default flags correctly.
61029
61030         Quotearg part 1: more wrappers, restore quotearg_char state.
61031         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61032         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61033         (quotearg_colon_mem): New wrappers.
61034         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61035         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61036         functions.
61037         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61038         (quotearg_colon_mem): New functions.
61039
61040 2008-02-11  Bruno Haible  <bruno@clisp.org>
61041
61042         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61043         library in the current directory: it does not work with parallel make.
61044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61045
61046 2008-02-11  Bruno Haible  <bruno@clisp.org>
61047
61048         * .gitattributes: New file.
61049
61050 2008-02-11  Jim Meyering  <meyering@redhat.com>
61051
61052         useless-if-before-free: Fix reversed exit values.
61053         * build-aux/useless-if-before-free: Use correct values
61054         for EXIT_MATCH and EXIT_NO_MATCH.
61055
61056         * build-aux/useless-if-before-free: Close stdout carefully.
61057
61058 2008-02-10  Bruno Haible  <bruno@clisp.org>
61059
61060         New module 'git-merge-changelog'.
61061         * modules/git-merge-changelog: New file.
61062         * lib/git-merge-changelog.c: New file.
61063
61064 2008-02-10  Jim Meyering  <meyering@redhat.com>
61065
61066         useless-if-before-free: New option: --list (-l).
61067
61068         useless-if-before-free: Don't exit immediately upon open failure.
61069         * build-aux/useless-if-before-free: Exit 2 for errors.
61070         Upon failure to open a file, don't exit immediately.
61071         Rather, just warn and continue with any remaining files.
61072
61073 2008-02-10  Bruno Haible  <bruno@clisp.org>
61074
61075         New abstract list operation 'node_set_value'.
61076         * lib/gl_list.h (gl_list_node_set_value): New function.
61077         (struct gl_list_implementation): New field node_set_value.
61078         * lib/gl_list.c (gl_list_node_set_value): New function.
61079         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61080         (gl_array_list_implementation): Update.
61081         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61082         (gl_carray_list_implementation): Update.
61083         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61084         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61085         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61086         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61088         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61089         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61090         Update.
61091         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61092         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61093         (gl_sublist_list_implementation): Update.
61094
61095 2008-02-10  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61098         Needed when ELEMENT is #defined to 'some_type *'.
61099
61100 2008-02-10  Jim Meyering  <meyering@redhat.com>
61101
61102         New script and module: useless-if-before-free
61103         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61104         * build-aux/useless-if-before-free: New file.
61105         * modules/useless-if-before-free: New file.
61106
61107         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61108
61109         xstrtol_error: Fix typo.
61110         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61111         s/exit_failure/exit_status/.
61112
61113 2008-02-09  Jim Meyering  <meyering@redhat.com>
61114
61115         New script and module: gitlog-to-changelog
61116         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61117         * modules/gitlog-to-changelog: New file.
61118         * build-aux/gitlog-to-changelog: New file.
61119
61120 2008-02-08  Jim Meyering  <meyering@redhat.com>
61121
61122         Avoid two "parameter unused" warnings.
61123         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61124         Mark "st" as used.
61125
61126         Use "git COMMAND", not "git-COMMAND".
61127         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61128         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61129         * build-aux/git-version-gen: Use "git status", not "git-status".
61130
61131 2008-02-07  Bruno Haible  <bruno@clisp.org>
61132
61133         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61134         Avoids a crash on Windows Vista.
61135         Reported by Adam Strzelecki <ono@java.pl> via
61136         Simon Josefsson <simon@josefsson.org>.
61137
61138 2008-02-06  Bruno Haible  <bruno@clisp.org>
61139
61140         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61141         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61142         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61144         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61146         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61147         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61154         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61155         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61156         left-adjust flag.
61157         * tests/test-snprintf-posix.h (test_function): Likewise.
61158         * tests/test-sprintf-posix.h (test_function): Likewise.
61159         * tests/test-vasprintf-posix.c (test_function): Likewise.
61160         * doc/posix-functions/fprintf.texi: Update.
61161         * doc/posix-functions/printf.texi: Update.
61162         * doc/posix-functions/snprintf.texi: Update.
61163         * doc/posix-functions/sprintf.texi: Update.
61164         * doc/posix-functions/vfprintf.texi: Update.
61165         * doc/posix-functions/vprintf.texi: Update.
61166         * doc/posix-functions/vsnprintf.texi: Update.
61167         * doc/posix-functions/vsprintf.texi: Update.
61168         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61169
61170 2008-02-06  Bruno Haible  <bruno@clisp.org>
61171
61172         Fix bug introduced on 2008-01-26.
61173         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61174
61175 2008-02-06  Bruno Haible  <bruno@clisp.org>
61176
61177         Fix bug introduced on 2007-06-10.
61178         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61179         !NEED_PRINTF_FLAG_ZERO.
61180
61181 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61182
61183         getloadavg: use libperfstat on AIX5
61184         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61185
61186 2008-02-03  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/diffseq.h: Add comments about required #includes.
61189         Reported by Michael Biggs <gnulib@doubleplum.net>.
61190
61191 2008-02-01  Bruno Haible  <bruno@clisp.org>
61192
61193         * users.txt: Add gnuit.
61194
61195 2008-01-31  Bruno Haible  <bruno@clisp.org>
61196
61197         * lib/md4.c (set_uint32): Mark as inline.
61198         * lib/md5.c (set_uint32): Likewise.
61199         * lib/sha1.c (set_uint32): Likewise.
61200         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61201         * m4/md5.m4 (gl_MD5): Likewise.
61202         * m4/sha1.m4 (gl_SHA1): Likewise.
61203
61204 2008-01-31  Jim Meyering  <meyering@redhat.com>
61205
61206         Use "sizeof VAR", rather than a literal "4".
61207         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61208         * lib/md4.c (md4_read_ctx): Likewise.
61209         * lib/sha1.c (sha1_read_ctx): Likewise.
61210
61211 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61212
61213         * tests/test-sha1.c: New file, based on test-md5.c.
61214
61215         * modules/crypto/sha1-tests: New file.
61216
61217 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61218
61219         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61220
61221 2008-01-31  Jim Meyering  <meyering@redhat.com>
61222
61223         Prefer "sizeof v" over the equivalent "4".
61224         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61225         * lib/md5.c (set_uint32): Likewise.
61226         * lib/sha1.c (set_uint32): Likewise.
61227
61228 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61229
61230         * lib/sha1.c (set_uint32): Mark function as static.
61231
61232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61233
61234         md2: clarify comments to say that alignment is not required.
61235         * lib/md2.h: Remove warning about alignment in comment.
61236         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61237         never been required.
61238
61239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61240
61241         md4: adapt alignment constraint fix from sha1.
61242         * lib/md4.c (set_uint32): New function, from sha1.c
61243         (md4_read_ctx): Use it.
61244         (md4_finish_ctx): Doc fix.
61245         * lib/md4.h: Doc fix.
61246
61247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61248
61249         md5: adapt alignment constraint fix from sha1.
61250         * lib/md5.c (set_uint32): New function, from sha1.c
61251         (md5_read_ctx): Use it.
61252         (md5_finish_ctx): Doc fix.
61253         * lib/md5.h: Doc fix.
61254
61255 2008-01-30  Peter Palfrader  <weasel@debian.org>
61256
61257         sha1: remove the result buffer alignment constraint
61258         * lib/sha1.c (set_uint32): New function.
61259         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61260         constraint.
61261         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61262         * lib/sha1.h: Likewise.
61263
61264 2008-01-30  Andreas Schwab  <schwab@suse.de>
61265             Bruno Haible  <bruno@clisp.org>
61266
61267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61268         correct definition of LDBL_MIN_EXP.
61269
61270 2008-01-30  Karl Berry  <karl@gnu.org>
61271
61272         * config/srclist-update: try to preserve x bit on updates.
61273         * config/srclistvars.sh: update for karl.
61274
61275 2008-01-29  Jim Meyering  <meyering@redhat.com>
61276
61277         vasnprintf.c: Avoid warning about unused label
61278         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61279         "overflow" label definition and associated code with the
61280         same cpp condition that guards the sole use of that label.
61281
61282 2008-01-26  Bruno Haible  <bruno@clisp.org>
61283
61284         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61285         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61286         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61287         * lib/isnanl-nolibm.h (isnanl): Likewise.
61288         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61289
61290 2008-01-26  Bruno Haible  <bruno@clisp.org>
61291
61292         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61293         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61294
61295 2008-01-26  Bruno Haible  <bruno@clisp.org>
61296
61297         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61298         GCC >= 4.0 built-in.
61299         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61300
61301 2008-01-26  Bruno Haible  <bruno@clisp.org>
61302
61303         Rename isnan, applicable to 'double' only, to isnand.
61304         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61305         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61306         (configure.ac): Update.
61307         (Include): Replace "isnan.h" with "isnand.h".
61308         * m4/isnand.m4: Renamed from m4/isnan.m4.
61309         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61310         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61311         instead of isnan.c.
61312         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61313         instead of HAVE_ISNAN_IN_LIBC.
61314         (isnand): Renamed from isnan.
61315         * lib/isnand.c: New file.
61316         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61317         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61318         (Makefile.am): Update.
61319         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61320         Include isnand.h instead of isnan.h.
61321         (main): Test isnand instead of isnan.
61322         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61323         isnan-nolibm.
61324         * modules/frexp (Depends-on): Likewise.
61325         * modules/frexp-tests (Depends-on): Likewise.
61326         * modules/frexp-nolibm (Depends-on): Likewise.
61327         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61328         * modules/isfinite (Depends-on): Likewise.
61329         * modules/round-tests (Depends-on): Likewise.
61330         * modules/signbit (Depends-on): Likewise.
61331         * modules/signbit-tests (Depends-on): Likewise.
61332         * modules/snprintf-posix (Depends-on): Likewise.
61333         * modules/sprintf-posix (Depends-on): Likewise.
61334         * modules/trunc-tests (Depends-on): Likewise.
61335         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61336         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61337         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61338         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61339         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61340         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61341         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61342         * modules/vasnprintf-posix (Depends-on): Likewise.
61343         * modules/vasprintf-posix (Depends-on): Likewise.
61344         * modules/vfprintf-posix (Depends-on): Likewise.
61345         * modules/vsnprintf-posix (Depends-on): Likewise.
61346         * modules/vsprintf-posix (Depends-on): Likewise.
61347         * lib/frexp.c: Include isnand.h instead of isnan.h.
61348         (ISNAN): Set to isnand instead of isnan.
61349         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61350         (gl_isfinited): Use isnand instead of isnan.
61351         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61352         (gl_signbitd): Use isnand instead of isnan.
61353         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61354         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61355         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61356         (main): Use isnand instead of isnan.
61357         * tests/test-round1.c: Include isnand.h.
61358         (main): Use isnand instead of isnan.
61359         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61360         (ISNAN): Set to isnand instead of isnan.
61361         * tests/test-trunc1.c: Include isnand.h.
61362         (main): Use isnand instead of isnan.
61363         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61364         (equal): Use isnand instead of isnan.
61365         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61366         isnand-nolibm.
61367         * NEWS: Mention the change.
61368
61369 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61370             Bruno Haible  <bruno@clisp.org>
61371
61372         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61373         the GCC builtins for signbits are present and set
61374         REPLACE_SIGNBIT_USING_GCC if so.
61375         * lib/math.in.h (signbit): Define using GCC builtins if
61376         REPLACE_SIGNBIT_USING_GCC is set.
61377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61378         REPLACE_SIGNBIT_USING_GCC.
61379         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61380
61381 2008-01-25  Jim Meyering  <meyering@redhat.com>
61382
61383         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61384         * lib/poll.c: Include <config.h>, not "config.h".
61385         * tests/test-getaddrinfo.c: Likewise.
61386
61387 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61388
61389         * modules/sockets-tests: New file.
61390
61391 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61392
61393         * modules/sockets: New module, can be used to call WSA_Startup and
61394         WSA_Cleanup when needed.
61395
61396         * lib/sockets.h, lib/sockets.c: New files.
61397
61398         * m4/sockets.m4: New file.
61399
61400         * tests/test-sockets.c: New file.
61401
61402 2008-01-19  Bruno Haible  <bruno@clisp.org>
61403
61404         * doc/posix-headers: Renamed from doc/headers.
61405         * doc/posix-functions: Renamed from doc/functions.
61406         * doc/gnulib.texi: Update.
61407
61408 2008-01-19  Bruno Haible  <bruno@clisp.org>
61409
61410         * doc/glibc-functions/strcasestr.texi: Include contents of
61411         doc/functions/strcasestr.texi, fixing the list of platforms.
61412         * doc/functions/strcasestr.texi: Remove file.
61413
61414 2008-01-19  Bruno Haible  <bruno@clisp.org>
61415
61416         * doc/glibc-functions/memmem.texi: Include contents of
61417         doc/functions/memmem.texi.
61418         * doc/functions/memmem.texi: Remove file.
61419
61420 2008-01-18  Bruno Haible  <bruno@clisp.org>
61421
61422         * doc/glibc-functions/*.texi: New files.
61423         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61424         to use the new files.
61425
61426 2008-01-17  Bruno Haible  <bruno@clisp.org>
61427
61428         * tests/test-gethostname.c (main): Fix printf statement.
61429
61430 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61431
61432         * modules/gethostname-tests: New file.
61433
61434         * tests/test-gethostname.c: New file.
61435
61436 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61437
61438         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61439         used by the UNAME case.  Reported by Bruno Haible
61440         <bruno@clisp.org>.
61441
61442 2008-01-17  Eric Blake  <ebb9@byu.net>
61443
61444         Convert c-strcasestr to be more efficient.
61445         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61446         (Depends-on): Add c-strcase, remove malloca, strnlen.
61447         * tests/test-c-strcasestr.c (main): Enhance test.
61448         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61449
61450 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61451
61452         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61453         Use it in creating po/Makevars.
61454
61455 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61456
61457         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61458         Applications that requires it should initialize libgcrypt
61459         manually.
61460
61461 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61462
61463         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61464
61465 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         Fix problem with getdate on mingw32 reported by Simon Josefsson
61468         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61469         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61470         tzname", when deciding whether to declare tzname.
61471         * lib/strftime.c (tzname): Likewise.
61472
61473 2008-01-15  Bruno Haible  <bruno@clisp.org>
61474
61475         Work around a MacOS X 10.5 bug in frexpl().
61476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61477         * doc/functions/frexpl.texi: Document the bug.
61478         Reported by Elias Pipping <pipping@gentoo.org>.
61479
61480 2008-01-14  Eric Blake  <ebb9@byu.net>
61481
61482         Touch up previous patch.
61483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61484         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61485
61486         Convert strcasestr module to use Two-Way algorithm.
61487         * modules/strcasestr-simple: New module, based on the old
61488         strcasestr, but with Two-Way rather than KMP.
61489         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61490         * lib/string.in.h (rpl_strcasestr): Declare.
61491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61492         performance.
61493         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61494         * modules/string (Makefile.am): Support strcasestr.
61495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61496         * modules/strcasestr-tests (Depends-on): Check for alarm.
61497         * tests/test-strcasestr.c: Augment test.
61498         * lib/str-two-way.h: Clean up stray macro.
61499         * NEWS: Document new module.
61500         * MODULES.html.sh (string handling): Likewise.
61501         * doc/functions/strcasestr.texi: New file.
61502         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61503         here, since it is not a POSIX function.
61504
61505 2008-01-14  Colin Watson  <cjwatson@debian.org>
61506             Bruno Haible  <bruno@clisp.org>
61507
61508         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61509         works fine; if not, set REPLACE_STRSIGNAL.
61510         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61512         REPLACE_STRSIGNAL.
61513         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61514         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61515         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61516
61517 2008-01-14  Bruno Haible  <bruno@clisp.org>
61518
61519         * modules/strsignal (Include): Change to <string.h>.
61520
61521 2008-01-14  Colin Watson  <cjwatson@debian.org>
61522
61523         * modules/argp (Notice): Add a notice recommending to change
61524         XGETTEXT_OPTIONS.
61525         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61526
61527 2008-01-13  Colin Watson  <cjwatson@debian.org>
61528
61529         * modules/strsignal-tests: New file.
61530         * tests/test-strsignal.c: New file.
61531
61532         * lib/strsignal.c: New file, from glibc with modifications.
61533         * lib/siglist.h: New file, from glibc with modifications.
61534         * lib/string.in.h (strsignal): New declaration.
61535         * m4/strsignal.m4: New file.
61536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61537         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61538         * modules/strsignal: New file.
61539         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61540         HAVE_DECL_STRSIGNAL.
61541
61542 2008-01-13  Bruno Haible  <bruno@clisp.org>
61543
61544         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61545         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61546         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61547         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61548
61549 2008-01-13  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61552         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61553         * lib/argp.h (__attribute__): Likewise.
61554         * lib/c-stack.c (__attribute__): Likewise.
61555         * lib/error.h (__attribute__): Likewise.
61556         * lib/fts.c (__attribute__): Likewise.
61557         * lib/openat.h (__attribute__): Likewise.
61558         * lib/stdio.in.h (__attribute__): Likewise.
61559         * lib/string.in.h (__attribute__): Likewise.
61560         * lib/utimens.c (__attribute__): Likewise.
61561         * lib/vasnprintf.h (__attribute__): Likewise.
61562         * lib/xalloc.h (__attribute__): Likewise.
61563         * lib/xprintf.h (__attribute__): Likewise.
61564         * lib/xstrtol.h (__attribute__): Likewise.
61565         * lib/xvasprintf.h (__attribute__): Likewise.
61566
61567 2008-01-12  Bruno Haible  <bruno@clisp.org>
61568
61569         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61570         * doc/glibc-headers/a.out.texi: New file.
61571         * doc/glibc-headers/aliases.texi: New file.
61572         * doc/glibc-headers/alloca.texi: New file.
61573         * doc/glibc-headers/ar.texi: New file.
61574         * doc/glibc-headers/argp.texi: New file.
61575         * doc/glibc-headers/argz.texi: New file.
61576         * doc/glibc-headers/byteswap.texi: New file.
61577         * doc/glibc-headers/crypt.texi: New file.
61578         * doc/glibc-headers/endian.texi: New file.
61579         * doc/glibc-headers/envz.texi: New file.
61580         * doc/glibc-headers/err.texi: New file.
61581         * doc/glibc-headers/error.texi: New file.
61582         * doc/glibc-headers/execinfo.texi: New file.
61583         * doc/glibc-headers/fpu_control.texi: New file.
61584         * doc/glibc-headers/fstab.texi: New file.
61585         * doc/glibc-headers/fts.texi: New file.
61586         * doc/glibc-headers/getopt.texi: New file.
61587         * doc/glibc-headers/ieee754.texi: New file.
61588         * doc/glibc-headers/ifaddrs.texi: New file.
61589         * doc/glibc-headers/libintl.texi: New file.
61590         * doc/glibc-headers/mcheck.texi: New file.
61591         * doc/glibc-headers/mntent.texi: New file.
61592         * doc/glibc-headers/obstack.texi: New file.
61593         * doc/glibc-headers/paths.texi: New file.
61594         * doc/glibc-headers/printf.texi: New file.
61595         * doc/glibc-headers/pty.texi: New file.
61596         * doc/glibc-headers/resolv.texi: New file.
61597         * doc/glibc-headers/shadow.texi: New file.
61598         * doc/glibc-headers/sysexits.texi: New file.
61599         * doc/glibc-headers/ttyent.texi: New file.
61600
61601 2008-01-12  Jim Meyering  <meyering@redhat.com>
61602
61603         announce-gen: emit Gnulib's git-based version string.
61604         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61605         New option --gnulib-version=V, where V is expected to be
61606         the output of running git describe in the gnulib directory.
61607         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61608         not useful, and plan to stop publishing an xdelta file with each
61609         coreutils release.
61610
61611         * build-aux/announce-gen: Also check for lzma-compressed files.
61612
61613 2008-01-11  Bruno Haible  <bruno@clisp.org>
61614
61615         * tests/test-memmem.c (main): Increase maximum allowed time.
61616         * tests/test-strstr.c (main): Likewise.
61617
61618 2008-01-11  Bruno Haible  <bruno@clisp.org>
61619
61620         * doc/functions/memmem.texi: Add more precisions about platforms.
61621         * doc/functions/strstr.texi: Likewise.
61622
61623 2008-01-10  Eric Blake  <ebb9@byu.net>
61624
61625         * m4/strstr.m4: Delete cruft from copy-n-paste.
61626         Reported by Bruno Haible.
61627
61628 2008-01-10  Bruno Haible  <bruno@clisp.org>
61629
61630         Make c-strstr rely on strstr.
61631         * lib/c-strstr.c: Don't include str-kmp.h.
61632         (c_strstr): Define in terms of strstr.
61633         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61634         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61635
61636 2008-01-10  Bruno Haible  <bruno@clisp.org>
61637
61638         * doc/gnulib.texi (String Functions in C Locale): New section.
61639         * doc/c-ctype.texi: New file.
61640         * doc/c-strcase.texi: New file.
61641         * doc/c-strcaseeq.texi: New file.
61642         * doc/c-strcasestr.texi: New file.
61643         * doc/c-strstr.texi: New file.
61644         * doc/c-strtod.texi: New file.
61645         * doc/c-strtold.texi: New file.
61646
61647 2008-01-10  Eric Blake  <ebb9@byu.net>
61648
61649         * lib/relocatable.h: Fix a comment.
61650
61651 2008-01-10  Eric Blake  <ebb9@byu.net>
61652
61653         Share two-way algorithm.
61654         * lib/str-two-way.h: New file, merged from...
61655         * lib/memmem.c: ...here...
61656         * lib/strstr.c: ...and here.
61657         * modules/memmem (Files): Use it.
61658         * modules/strstr (Files): Likewise.
61659
61660         Avoid quadratic strstr implementations.
61661         * lib/strstr.c: New file.
61662         * m4/strstr.m4: Likewise.
61663         * modules/strstr: Likewise.
61664         * modules/strstr-tests: Likewise.
61665         * tests/test-strstr.c: Likewise.
61666         * lib/string.in.h (rpl_strstr): Declare.
61667         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61669         * modules/string (Makefile.am): Likewise.
61670         * MODULES.html.sh (string handling): Mention new module.
61671         * doc/functions/strstr.texi (strstr): Document the bug.
61672
61673 2008-01-10  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/relocatable.h (relocate): State whether result is freshly
61676         allocated or not.
61677         * lib/relocatable.c (relocate): Return a freshly allocated string
61678         instead of a pointer to a privately held string.
61679         Reported by Sylvain Beucler <beuc@gnu.org>.
61680
61681 2008-01-10  Colin Watson  <cjwatson@debian.org>
61682
61683         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61684         s/S_ISNLK/S_ISLNK/.
61685
61686 2008-01-09  Bruno Haible  <bruno@clisp.org>
61687
61688         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61689         and other files.
61690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61691         if it's only a guess.
61692         * modules/memmem: Simplify by depending on memmem-simple.
61693
61694 2008-01-09  Bruno Haible  <bruno@clisp.org>
61695
61696         Work around OpenBSD 4.0 tdelete() bug.
61697         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61698         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61699         macros and don't redefine the enum values.
61700         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61701         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61702         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61703
61704 2008-01-09  Bruno Haible  <bruno@clisp.org>
61705
61706         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61707         (main): Don't perform the tests if setlocale did not install a UTF-8
61708         locale. Needed on OpenBSD 4.0.
61709         * modules/wcwidth-tests (Depends-on): Add localcharset.
61710
61711 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61714         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61715         * NEWS: announce this.
61716         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61717
61718 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61719         and Eric Blake  <ebb9@byu.net>
61720
61721         Add memmem-simple module.
61722         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61723         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61724         * modules/memmem-simple: New file.
61725         * modules/memmem (Description): Tweak.
61726         * MODULES.html.sh (string handling): Mention new module.
61727         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61728         addressed by memmem-simple.
61729         * NEWS: Document the difference.
61730
61731 2008-01-09  Eric Blake  <ebb9@byu.net>
61732
61733         Give gcc some memmem optimization hints.
61734         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61735         (strcasestr): Declare as pure.
61736         * modules/memmem (Maintainer): Claim my implementation.
61737
61738 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61739
61740         Support AIX 6.1 and higher.
61741         * build-aux/config.libpath: Likewise.
61742         * build-aux/config.rpath: Likewise.
61743
61744 2008-01-08  Jim Meyering  <meyering@redhat.com>
61745             Bruno Haible  <bruno@clisp.org>
61746
61747         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61748         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61749         Reported by Peter Fales in
61750         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61751
61752 2008-01-08  Bruno Haible  <bruno@clisp.org>
61753
61754         * modules/unictype/category-of (Depends-on): Add
61755         unictype/category-none.
61756         * modules/unictype/category-and-tests (Depends-on): Add
61757         unictype/category-{L,N,Lu,Nd}.
61758         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61759         * modules/unictype/category-or-tests (Depends-on): Add
61760         unictype/category-{L,N}.
61761         * modules/unictype/category-name-tests (Depends-on): Add
61762         unictype/category-{Z,Nl}.
61763         Reported by Simon Josefsson.
61764
61765 2008-01-08  Bruno Haible  <bruno@clisp.org>
61766
61767         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61768         convention better.
61769         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61770         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61771         Reported by Peter Miller <millerp@canb.auug.org.au>.
61772
61773 2008-01-08  Eric Blake  <ebb9@byu.net>
61774
61775         Rewrite memmem to guarantee linear complexity without malloc.
61776         * lib/memmem.c (memmem): Use Two-Way rather than
61777         Knuth-Morris-Pratt, to allow O(1) space usage.
61778         (critical_factorization, two_way_short_needle)
61779         (two_way_long_needle): New functions.
61780         (knuth_morris_pratt): Delete.
61781         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61782         Add stdint.
61783         * tests/test-memmem.c (main): Add tests for periodic needle and
61784         sublinear performance.
61785         * doc/functions/memmem.texi (memmem): Document other deficiencies
61786         in cygwin and older glibc.
61787
61788 2008-01-08  Bruno Haible  <bruno@clisp.org>
61789
61790         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61791         augmentation.
61792
61793 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61794
61795         Add a configure time option: --disable-acl.
61796         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61797         AC_ARG_ENABLE(acl).
61798
61799 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61800
61801         * tests/test-localename.c: Don't include obsolete "setenv.h".
61802
61803         * modules/localename-tests (Depends-on): Need unsetenv.
61804
61805 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61806
61807         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61808
61809 2008-01-06  Colin Watson  <cjwatson@debian.org>
61810
61811         * users.txt: Add man-db.
61812
61813 2008-01-07  Bruno Haible  <bruno@clisp.org>
61814
61815         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61816         previous section name.
61817
61818 2008-01-07  Bruno Haible  <bruno@clisp.org>
61819
61820         * lib/progname.c (set_program_name): Don't strip off a leading
61821         "lt-" prefix outside a .libs directory.
61822         Suggested by Paul Eggert.
61823
61824 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61825             Bruno Haible  <bruno@clisp.org>
61826
61827         Improve memory cleanup in 'relocatable' module.
61828         * lib/relocatable.h (compute_curr_prefix): Change return type to
61829         'char *'.
61830         * lib/relocatable.c (compute_curr_prefix): Change return type to
61831         'char *'. Free curr_installdir after use.
61832         (relocate): Free curr_prefix_better after use.
61833         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61834
61835 2008-01-01  Bruno Haible  <bruno@clisp.org>
61836
61837         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61838         failure on older glibc systems.
61839         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61840
61841 2008-01-05  Eric Blake  <ebb9@byu.net>
61842
61843         Avoid quadratic system memmem.
61844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61845         Reported by Ralf Wildenhues.
61846
61847         Fix memmem test for mingw.
61848         * modules/memmem-tests (configure.ac): Check for alarm.
61849         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61850         it.
61851         * doc/functions/memmem.texi: New file.
61852         * doc/gnulib.texi (Function Substitutes): Add memmem.
61853         Reported by Bruno Haible.
61854
61855 2008-01-04  Bruno Haible  <bruno@clisp.org>
61856
61857         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61858         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61859         gl_HEADER_STRING_H_DEFAULTS.
61860
61861 2008-01-04  Eric Blake  <ebb9@byu.net>
61862
61863         Shorten duration of memmem test.
61864         * tests/test-memmem.c (main): Use alarm to declare failure if test
61865         is taking too long.
61866         Reported by Ralf Wildenhues.
61867
61868 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61869
61870         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61871         string, needed by strerror.
61872
61873 2008-01-03  Colin Watson  <cjwatson@debian.org>
61874             Bruno Haible  <bruno@clisp.org>
61875
61876         * doc/gnulib-tool.texi (Localization): New section.
61877
61878 2008-01-02  Bruno Haible  <bruno@clisp.org>
61879
61880         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61881         variables to 'unsigned char *' type.
61882         Reported by Paul Eggert.
61883
61884 2008-01-02  Jim Meyering  <jim@meyering.net>
61885
61886         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61887
61888 2007-12-31  Jim Meyering  <jim@meyering.net>
61889
61890         Avoid use of private FTS type name.
61891         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61892
61893 2007-12-30  Karl Berry  <karl@gnu.org>
61894
61895         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61896         work around defect in Texinfo and/or the standalone Info browser.
61897
61898 2007-12-30  Bruno Haible  <bruno@clisp.org>
61899
61900         Unify 5 copies of the KMP code.
61901         * lib/str-kmp.h: New file.
61902         * lib/c-strcasestr.c: Include str-kmp.h.
61903         (knuth_morris_pratt): Remove function.
61904         (c_strcasestr): Update.
61905         * lib/c-strstr.c: Include str-kmp.h.
61906         (knuth_morris_pratt): Remove function.
61907         (c_strcasestr): Update.
61908         * lib/mbscasestr.c: Include str-kmp.h.
61909         (knuth_morris_pratt_unibyte): Remove function.
61910         * lib/mbsstr.c: Include str-kmp.h.
61911         (knuth_morris_pratt_unibyte): Remove function.
61912         * lib/strcasestr.c: Include str-kmp.h.
61913         (knuth_morris_pratt): Remove function.
61914         (strcasestr): Update.
61915         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61916         * modules/c-strstr (Files): Likewise.
61917         * modules/mbscasestr (Files): Likewise.
61918         * modules/mbsstr (Files): Likewise.
61919         * modules/strcasestr (Files): Likewise.
61920         Suggested by Paul Eggert.
61921
61922 2007-12-30  Bruno Haible  <bruno@clisp.org>
61923
61924         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61925         defined.
61926
61927 2007-12-30  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/xmalloca.h: Include xalloc.h.
61930         (xnmalloca): New macro.
61931
61932 2007-12-30  Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/malloca.h (nmalloca): New macro.
61935         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61936         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61937         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61938         knuth_morris_pratt_multibyte): Likewise.
61939         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61940         knuth_morris_pratt_multibyte): Likewise.
61941         * lib/memmem.c (knuth_morris_pratt): Likewise.
61942         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61943
61944 2007-12-25  Bruno Haible  <bruno@clisp.org>
61945
61946         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61947         * lib/glob.c: Don't include openat.h.
61948         (link_exists2_p): Add back the code that deals with the
61949         !GLOB_ALTDIRFUNC case.
61950         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61951         let it do the filename concatenation.
61952         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61953         * modules/glob (Depends-on): Remove openat.
61954
61955 2007-12-31  Bruno Haible  <bruno@clisp.org>
61956
61957         * modules/dirfd (License): Change to LGPLv2+.
61958         Approved by Jim Meyering.
61959
61960 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61961
61962         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61963         when multiplying M by sizeof (size_t).
61964
61965 2007-12-10  Martin Lambers  <marlam@marlam.de>
61966
61967         Override getpagesize on mingw.
61968         * lib/getpagesize.c: New file.
61969         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61970         * modules/getpagesize (Files): Add lib/getpagesize.c.
61971         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61973         REPLACE_GETPAGESIZE.
61974         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61975
61976 2007-12-25  Bruno Haible  <bruno@clisp.org>
61977
61978         * modules/localcharset (Notice): New field.
61979         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61980         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61981
61982 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61983             Bruno Haible  <bruno@clisp.org>
61984
61985         Avoid using the syntax symbol() in formatted documentation.
61986         * MODULES.html.sh (func_module): When replacing symbol() with a
61987         hyperlink, remove the parentheses. Show an error if some remain.
61988         Recognize and render the '...' syntax.
61989         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61990         Rework. Add paragraph about GCC's inlining.
61991         * doc/alloca.texi: Likewise.
61992         * doc/error.texi: Remove parentheses from symbol reference.
61993         * doc/gnulib-intro.texi: Likewise.
61994         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61995         * modules/fnmatch (Description): Reword to say "the ... function".
61996         * modules/full-read (Description): Likewise.
61997         * modules/full-write (Description): Likewise.
61998         * modules/safe-read (Description): Likewise.
61999         * modules/safe-write (Description): Likewise.
62000         * modules/strchrnul (Description): Likewise.
62001         * modules/trim (Description): Likewise.
62002         * modules/error (Description): Remove parentheses from symbol
62003         references.
62004         * modules/verror (Description): Likewise.
62005         Reported by Karl Berry.
62006
62007 2007-12-25  Bruno Haible  <bruno@clisp.org>
62008
62009         Fixup after 2007-10-16 commit.
62010         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62011
62012 2007-12-24  Bruno Haible  <bruno@clisp.org>
62013
62014         Make --enable-relocatable work with DESTDIR.
62015         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62016         to compute installdir from destprog.
62017         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62018         also set the RELOC_DESTDIR variable.
62019         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62020
62021 2007-12-24  Bruno Haible  <bruno@clisp.org>
62022
62023         Fix link error due to xalloc_die().
62024         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62025         of xreadlink.
62026         * lib/relocwrapper.c: Update comments.
62027         * build-aux/install-reloc: Remove xreadlink.c from file list.
62028         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62029         xreadlink.c.
62030         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62031
62032 2007-12-24  Bruno Haible  <bruno@clisp.org>
62033
62034         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62035         * lib/setenv.h: Remove file.
62036         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62037         lib/setenv.h.
62038         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62039         (Depends-on): Add stdlib.
62040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62041         gl_FUNC_UNSETENV.
62042         (Include): Replace setenv.h with <stdlib.h>.
62043         * modules/unsetenv: New file.
62044         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62045         * lib/unsetenv.c: Include <stdlib.h> first.
62046         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62047         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62048         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62049         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62050         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62051         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62053         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62054         * doc/functions/unsetenv.texi: Update.
62055         * modules/xsetenv (Depends-on): Add unsetenv.
62056         * modules/getdate (Depends-on): Likewise.
62057         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62058         * lib/xsetenv.c: Don't include setenv.h.
62059         * lib/getdate.y: Likewise.
62060         * lib/relocwrapper.c: Likewise.
62061         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62062         (Depends-on): Add stdlib.
62063         * NEWS: Mention the changes.
62064         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62065
62066 2007-12-23  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62069         indentation.
62070
62071 2007-12-23  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/c-strcasestr.c: Add more comments.
62074         * lib/c-strstr.c: Likewise.
62075         * lib/mbscasestr.c: Likewise.
62076         * lib/mbsstr.c: Likewise.
62077         * lib/strcasestr.c: Likewise.
62078         * lib/memmem.c: Likewise.
62079
62080 2007-12-23  Bruno Haible  <bruno@clisp.org>
62081
62082         * tests/test-memmem.c: Include <string.h> first.
62083
62084 2007-12-22  Bruno Haible  <bruno@clisp.org>
62085
62086         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62087         the contents of $testsbase.
62088         Reported by Ralf Wildenhues.
62089
62090 2007-12-22  Bruno Haible  <bruno@clisp.org>
62091
62092         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62093         two variables local_ldadd_before, local_ldadd_last.
62094
62095 2007-12-20  Eric Blake  <ebb9@byu.net>
62096
62097         Work around circular library issue when cross-compiling.
62098         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62099         that progname.o does not need to pull in rpl_memcmp.
62100
62101 2007-12-19  Eric Blake  <ebb9@byu.net>
62102
62103         Fix memmem to avoid O(n^2) worst-case complexity.
62104         * lib/memmem.c (knuth_morris_pratt): New function.
62105         (memmem): Use it if first few naive iterations fail.
62106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62107         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62108         * modules/memchr (License): Likewise.
62109         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62110         malloca.
62111         * tests/test-memmem.c: Rewrite, borrowing ideas from
62112         test-mbsstr1.c; the old version wouldn't even compile!
62113         * modules/memmem-tests: New file.
62114         * lib/string.in.h (rpl_memmem): Add declaration.
62115         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62117         REPLACE_MEMMEM.
62118
62119 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62120
62121         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62122         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62123         before any system include files, and undef after them all.  This
62124         should fix a problem on VMS reported by John E. Malmberg in
62125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62126
62127 2007-12-17  Eric Blake  <ebb9@byu.net>
62128
62129         Revert addition of verify, for BSD/OS.
62130         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62131         can't handle large files, for the sake of obsolete platforms.
62132         * modules/fseeko (Depends-on): Remove verify.
62133         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62134         * doc/functions/ftello.texi (ftello): Likewise.
62135         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62136         Reported by Larry Jones.
62137
62138 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62139
62140         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62141         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62142
62143 2007-12-17  Jim Meyering  <meyering@redhat.com>
62144
62145         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62146         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62147         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62148         * modules/getcwd (Depends-on): Add openat.
62149         Reported by Petr Salinger.
62150
62151 2007-12-17  Bruno Haible  <bruno@clisp.org>
62152
62153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62154         avoid a segmentation fault of the configure test on x86_64 systems.
62155
62156 2007-12-15  Jim Meyering  <meyering@redhat.com>
62157
62158         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62159
62160 2007-12-13  Eric Blake  <ebb9@byu.net>
62161
62162         Another fseek test.
62163         * tests/test-fseek.c (main): Also test ungetc handling.
62164         * tests/test-fseeko.c (main): Likewise.
62165         * modules/fseeko (Depends-on): Add verify.
62166         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62167         large.
62168         Reported by Larry Jones.
62169
62170         Fix fseeko on mingw.
62171         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62172         seek.
62173
62174         Beef up fseek tests.
62175         * tests/test-fseek.c (main): Also test eof handling.
62176         * tests/test-fseeko.c (main): Likewise.
62177         Reported by Larry Jones.
62178
62179 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62180
62181         Fix fseeko on BSD-based platforms.
62182         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62183         successful seek.
62184
62185 2007-12-12  Eric Blake  <ebb9@byu.net>
62186
62187         Allow circular dependency of separate libtests.a
62188         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62189         when use_libtests.
62190
62191 2007-12-11  Eric Blake  <ebb9@byu.net>
62192
62193         Fix bug with -0.0L in previous patch.
62194         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62195         * tests/test-isnan.c (main): Also test on zeroes.
62196         * tests/test-isnanf.c (main): Likewise.
62197         * tests/test-isnanl.h (main): Likewise.
62198
62199         Detect pseudo-denormals on x86 even when cross-compiling.
62200         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62201         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62202         invalid bit patterns that happen to satisfy ==.
62203
62204         Avoid link failures with separate libtests.a.
62205         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62206         last, to satisfy circular dependencies.
62207
62208 2007-12-11  Eric Blake  <ebb9@byu.net>
62209         and Bruno Haible  <bruno@clisp.org>
62210
62211         Fix OpenBSD 4.0 <float.h> handling of long double.
62212         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62213         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62214         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62215
62216 2007-12-11  Jim Meyering  <meyering@redhat.com>
62217
62218         * users.txt: Add libvirt.
62219
62220         Support versions of autoconf prior to 2.59c.
62221         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62222         if it is not already defined.
62223
62224 2007-12-09  Bruno Haible  <bruno@clisp.org>
62225
62226         Let 'gnulib-tool --import' collect sources needed for the tests in
62227         tests/ rather than in lib/.
62228         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62229         argument. If true, add rules to generate libtests.a, and put libtests.a
62230         into $(LDADD). Consider source files in subdirectories and set
62231         uses_subdirs.
62232         (func_emit_initmacro_start, func_emit_initmacro_end,
62233         func_emit_initmacro_done): Pass all arguments explicitly.
62234         (func_import): Determine two module lists main_modules,
62235         testsrelated_modules. Determine use_libtests. Determine two variables
62236         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62237         instead of just sed_transform_lib_file. Determine two variables
62238         main_files and testsrelated_files. Compute 'files' as the union of
62239         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62240         func_add_or_update. In the generated gnulib-comp.m4, collect the
62241         object files for tests/ in different variables than those for lib/.
62242         Substitute LIBTESTS_LIBDEPS.
62243         (func_create_testdir): Combine the uses_subdirs results from
62244         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62245
62246 2007-12-09  Bruno Haible  <bruno@clisp.org>
62247
62248         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62249         the build-aux directory.
62250
62251 2007-12-09  Bruno Haible  <bruno@clisp.org>
62252
62253         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62254         introduced on 2006-09-09.
62255
62256 2007-12-07  Jim Meyering  <meyering@redhat.com>
62257
62258         Let these macros work also with autoconf-2.59.
62259         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62260         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62262
62263 2007-12-06  Jim Meyering  <meyering@redhat.com>
62264
62265         Avoid a configure-time syntax error in gl_FUNC_ACL.
62266         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62267         function in each branch, before testing the cache variable.
62268
62269 2007-12-04  Eric Blake  <ebb9@byu.net>
62270
62271         Make scripts executable.
62272         * build-aux/config.guess: Add execute permissions.
62273         * build-aux/config.sub: Likewise.
62274         * build-aux/gendocs.sh: Likewise.
62275
62276         Fix frexp on mingw.
62277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62278         cross-compiling.
62279         * doc/functions/frexp.texi (frexp): Document the bug.
62280
62281         Make cygwin fseeko check more reliable.
62282         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62283         version numbers, rather than unrelated feature check.
62284         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62285         * doc/functions/ftello.texi (ftello): Likewise.
62286         Reported by Bruno Haible.
62287
62288         * m4/strerror.m4: Bump version number.
62289
62290 2007-12-03  Bruno Haible  <bruno@clisp.org>
62291
62292         * doc/functions/mprotect.texi: Mention the mingw problem.
62293
62294 2007-12-03  Eric Blake  <ebb9@byu.net>
62295
62296         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62297         REPLACE_STRERROR is initialized before this macro.
62298
62299 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62300
62301         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62302         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62303         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62304         put -lsec in even for programs other than 'ls'.  This fixes a problem
62305         for gettext reported by Bruno Haible in
62306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62307         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62308         Add support for Solaris 10.  This isn't efficient, but should get the
62309         job done for now.
62310
62311 2007-12-03  James Youngman  <jay@gnu.org>
62312
62313         * doc/regexprops-generic.texi: change "an close-group" to "a
62314         close-group" and "illegal" to "not allowed".
62315
62316 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62317
62318         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62319         pr_byname.h. Needed for the rare case when the maintainer has done
62320         "make maintainer-clean" in the source directory and then attempts a
62321         build outside the source directory.
62322         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62323         scripts_byname.h.
62324
62325 2007-12-02  Martin Lambers <marlam@marlam.de>
62326             Bruno Haible  <bruno@clisp.org>
62327
62328         * lib/getpagesize.h: Remove file.
62329         * lib/unistd.in.h: Include declaration of getpagesize here.
62330         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62331         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62332         HAVE_SYS_PARAM_H.
62333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62334         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62335         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62336         (Depends-on): Add unistd.
62337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62338         (Include): Use <unistd.h> instead of getpagesize.h.
62339         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62340         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62341         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62342         gl_GETPAGESIZE invocation, already handled by module dependency.
62343         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62344
62345 2007-12-02  Bruno Haible  <bruno@clisp.org>
62346
62347         * modules/strings-tests: New file.
62348         * tests/test-strings.c: New file.
62349
62350         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62351         * lib/strings.in.h: New file.
62352         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62353         * m4/strings_h.m4: New file.
62354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62355         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62356         * modules/strings: New file.
62357         * modules/string (Makefile.am): Update.
62358         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62359         Reported by Karl Berry.
62360
62361 2007-12-01  Eric Blake  <ebb9@byu.net>
62362
62363         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62364         accommodate fix in cygwin 1.5.25.
62365
62366 2007-12-01  Jim Meyering  <meyering@redhat.com>
62367
62368         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62369         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62370         that would inhibit utf8-optimization of a regexp containing line-
62371         or buffer-anchors, e.g., `^', `$'.
62372
62373 2007-11-30  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62376         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62377         glthread_recursive_lock_init.
62378         * lib/lock.c (glthread_recursive_lock_init)
62379         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62380         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62381
62382 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         New function qset_acl, like set_acl but with syscall semantics.
62385         * lib/acl.h (qset_acl): New decl.
62386         * lib/acl.c (qset_acl): New function.
62387         (set_acl): Use new function.  Use more-consistent diagnostics.
62388
62389 2007-11-28  Jim Meyering  <meyering@redhat.com>
62390
62391         * modules/physmem (License): Change from GPL to LGPLv2+.
62392
62393 2007-11-26  Bruno Haible  <bruno@clisp.org>
62394
62395         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62396         'long double' type has excess precision.
62397         Reported by Jim Meyering in
62398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62399
62400 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62401
62402         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62403         Sync from <http://gnu.org/licenses>.
62404         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62405         with license text from same location.
62406         * doc/maintain.texi, doc/standards.texi:  Sync from
62407         <http://savannah.gnu.org/projects/gnustandards>.
62408
62409 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62410         and Jim Meyering  <meyering@redhat.com>
62411
62412         Adjust getdate' grammar to accept a slightly more regular language.
62413         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62414         Before, the former was rejected.
62415         * lib/getdate.y (digits_to_date_time): New function, factored
62416         out of ...
62417         (number): ...here.  Just call digits_to_date_time.
62418         (hybrid): New non-terminal to handle an <unsigned number,
62419         signed relative offset> sequence consistently.
62420
62421 2007-11-18  Jim Meyering  <meyering@redhat.com>
62422
62423         Pull my changes from coreutils:
62424         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62425         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62426         use of $gnulib_tool_option_extras, so that it's separated from the
62427         preceding argument.
62428
62429         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62430         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62431         parent destination directories before copying a file into place.
62432
62433 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62434
62435         bootstrap: work also with 4-argument variant of AC_INIT
62436         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62437
62438 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62439
62440         Port test-getaddrinfo to Solaris.
62441         Problem reported by Bruno Haible in
62442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62443         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62444         explanation of setting 'hints'.
62445         Don't reject an implementation merely because it returns EAI_SERVICE.
62446         (EAI_SERVICE): Define to 0 if not defined.
62447
62448 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         The license of gnu-make and posix-shell is now "GPLed build tool".
62451         * modules/gnu-make (License): Likewise.
62452         * modules/posix-shell (License): Likewise.
62453
62454         New module posix-shell, for determining a POSIX shell
62455         or perhaps something that is close enough to a POSIX shell.
62456         * m4/posix-shell.m4: New file.
62457         * modules/posix-shell: New file.
62458
62459         * MODULES.html.sh: Mention new module.
62460
62461         New module gnu-make, for determining whether we're using GNU Make.
62462         * m4/gnu-make.m4: New file.
62463         * modules/gnu-make: New file.
62464         * MODULES.html.sh: Mention new module.
62465
62466 2007-11-14  Jim Meyering  <meyering@redhat.com>
62467
62468         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62469         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62470         use this macro to create a function _definition_.
62471         Remove useless "#undef ARGMATCH_DIE".
62472
62473 2007-11-14  Bruno Haible  <bruno@clisp.org>
62474
62475         * lib/config.charset: Update for OpenBSD 4.1.
62476         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62477
62478 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62479
62480         Document 64-bit #if problems in stdint.texi.
62481         * doc/headers/stdint.texi (stdint.h): Mention problems with
62482         64-bit-#if, and how to work around them.
62483
62484         Don't insist on 'long long int' support in the preprocessor.  It
62485         breaks too many things.  For example, PRIdMAX still uses a 'long
62486         long int' format with the latest Sun compiler, even though
62487         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62488         preprocessor problem.  This causes the latest coreutils to dump
62489         core on Solaris 10 sparc with the Sun C compiler.
62490         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62491         the troublesome expressions at configure-time, not at #if-time.
62492         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62493         preprocessor.
62494         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62495         compile-time C checks, done at 'configure'-time.
62496         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62497         * modules/inttypes (Makefile): Substitute the new symbols that
62498         gl_INTTYPES_H now generates.
62499         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62500
62501 2007-11-12  Bruno Haible  <bruno@clisp.org>
62502
62503         Tests for Unicode character classification functions.
62504
62505         * modules/unictype/bidicategory-byname-tests: New file.
62506         * modules/unictype/bidicategory-name-tests: New file.
62507         * modules/unictype/bidicategory-of-tests: New file.
62508         * modules/unictype/bidicategory-test-tests: New file.
62509         * modules/unictype/block-list-tests: New file.
62510         * modules/unictype/block-of-tests: New file.
62511         * modules/unictype/block-test-tests: New file.
62512         * modules/unictype/category-C-tests: New file.
62513         * modules/unictype/category-Cc-tests: New file.
62514         * modules/unictype/category-Cf-tests: New file.
62515         * modules/unictype/category-Cn-tests: New file.
62516         * modules/unictype/category-Co-tests: New file.
62517         * modules/unictype/category-Cs-tests: New file.
62518         * modules/unictype/category-L-tests: New file.
62519         * modules/unictype/category-Ll-tests: New file.
62520         * modules/unictype/category-Lm-tests: New file.
62521         * modules/unictype/category-Lo-tests: New file.
62522         * modules/unictype/category-Lt-tests: New file.
62523         * modules/unictype/category-Lu-tests: New file.
62524         * modules/unictype/category-M-tests: New file.
62525         * modules/unictype/category-Mc-tests: New file.
62526         * modules/unictype/category-Me-tests: New file.
62527         * modules/unictype/category-Mn-tests: New file.
62528         * modules/unictype/category-N-tests: New file.
62529         * modules/unictype/category-Nd-tests: New file.
62530         * modules/unictype/category-Nl-tests: New file.
62531         * modules/unictype/category-No-tests: New file.
62532         * modules/unictype/category-P-tests: New file.
62533         * modules/unictype/category-Pc-tests: New file.
62534         * modules/unictype/category-Pd-tests: New file.
62535         * modules/unictype/category-Pe-tests: New file.
62536         * modules/unictype/category-Pf-tests: New file.
62537         * modules/unictype/category-Pi-tests: New file.
62538         * modules/unictype/category-Po-tests: New file.
62539         * modules/unictype/category-Ps-tests: New file.
62540         * modules/unictype/category-S-tests: New file.
62541         * modules/unictype/category-Sc-tests: New file.
62542         * modules/unictype/category-Sk-tests: New file.
62543         * modules/unictype/category-Sm-tests: New file.
62544         * modules/unictype/category-So-tests: New file.
62545         * modules/unictype/category-Z-tests: New file.
62546         * modules/unictype/category-Zl-tests: New file.
62547         * modules/unictype/category-Zp-tests: New file.
62548         * modules/unictype/category-Zs-tests: New file.
62549         * modules/unictype/category-and-not-tests: New file.
62550         * modules/unictype/category-and-tests: New file.
62551         * modules/unictype/category-byname-tests: New file.
62552         * modules/unictype/category-name-tests: New file.
62553         * modules/unictype/category-none-tests: New file.
62554         * modules/unictype/category-of-tests: New file.
62555         * modules/unictype/category-or-tests: New file.
62556         * modules/unictype/category-test-withtable-tests: New file.
62557         * modules/unictype/combining-class-tests: New file.
62558         * modules/unictype/ctype-alnum-tests: New file.
62559         * modules/unictype/ctype-alpha-tests: New file.
62560         * modules/unictype/ctype-blank-tests: New file.
62561         * modules/unictype/ctype-cntrl-tests: New file.
62562         * modules/unictype/ctype-digit-tests: New file.
62563         * modules/unictype/ctype-graph-tests: New file.
62564         * modules/unictype/ctype-lower-tests: New file.
62565         * modules/unictype/ctype-print-tests: New file.
62566         * modules/unictype/ctype-punct-tests: New file.
62567         * modules/unictype/ctype-space-tests: New file.
62568         * modules/unictype/ctype-upper-tests: New file.
62569         * modules/unictype/ctype-xdigit-tests: New file.
62570         * modules/unictype/decimal-digit-tests: New file.
62571         * modules/unictype/digit-tests: New file.
62572         * modules/unictype/mirror-tests: New file.
62573         * modules/unictype/numeric-tests: New file.
62574         * modules/unictype/property-alphabetic-tests: New file.
62575         * modules/unictype/property-ascii-hex-digit-tests: New file.
62576         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62577         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62578         * modules/unictype/property-bidi-block-separator-tests: New file.
62579         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62580         * modules/unictype/property-bidi-common-separator-tests: New file.
62581         * modules/unictype/property-bidi-control-tests: New file.
62582         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62583         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62584         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62585         * modules/unictype/property-bidi-european-digit-tests: New file.
62586         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62587         * modules/unictype/property-bidi-left-to-right-tests: New file.
62588         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62589         * modules/unictype/property-bidi-other-neutral-tests: New file.
62590         * modules/unictype/property-bidi-pdf-tests: New file.
62591         * modules/unictype/property-bidi-segment-separator-tests: New file.
62592         * modules/unictype/property-bidi-whitespace-tests: New file.
62593         * modules/unictype/property-byname-tests: New file.
62594         * modules/unictype/property-combining-tests: New file.
62595         * modules/unictype/property-composite-tests: New file.
62596         * modules/unictype/property-currency-symbol-tests: New file.
62597         * modules/unictype/property-dash-tests: New file.
62598         * modules/unictype/property-decimal-digit-tests: New file.
62599         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62600         * modules/unictype/property-deprecated-tests: New file.
62601         * modules/unictype/property-diacritic-tests: New file.
62602         * modules/unictype/property-extender-tests: New file.
62603         * modules/unictype/property-format-control-tests: New file.
62604         * modules/unictype/property-grapheme-base-tests: New file.
62605         * modules/unictype/property-grapheme-extend-tests: New file.
62606         * modules/unictype/property-grapheme-link-tests: New file.
62607         * modules/unictype/property-hex-digit-tests: New file.
62608         * modules/unictype/property-hyphen-tests: New file.
62609         * modules/unictype/property-id-continue-tests: New file.
62610         * modules/unictype/property-id-start-tests: New file.
62611         * modules/unictype/property-ideographic-tests: New file.
62612         * modules/unictype/property-ids-binary-operator-tests: New file.
62613         * modules/unictype/property-ids-trinary-operator-tests: New file.
62614         * modules/unictype/property-ignorable-control-tests: New file.
62615         * modules/unictype/property-iso-control-tests: New file.
62616         * modules/unictype/property-join-control-tests: New file.
62617         * modules/unictype/property-left-of-pair-tests: New file.
62618         * modules/unictype/property-line-separator-tests: New file.
62619         * modules/unictype/property-logical-order-exception-tests: New file.
62620         * modules/unictype/property-lowercase-tests: New file.
62621         * modules/unictype/property-math-tests: New file.
62622         * modules/unictype/property-non-break-tests: New file.
62623         * modules/unictype/property-not-a-character-tests: New file.
62624         * modules/unictype/property-numeric-tests: New file.
62625         * modules/unictype/property-other-alphabetic-tests: New file.
62626         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62627         * modules/unictype/property-other-grapheme-extend-tests: New file.
62628         * modules/unictype/property-other-id-continue-tests: New file.
62629         * modules/unictype/property-other-id-start-tests: New file.
62630         * modules/unictype/property-other-lowercase-tests: New file.
62631         * modules/unictype/property-other-math-tests: New file.
62632         * modules/unictype/property-other-uppercase-tests: New file.
62633         * modules/unictype/property-paired-punctuation-tests: New file.
62634         * modules/unictype/property-paragraph-separator-tests: New file.
62635         * modules/unictype/property-pattern-syntax-tests: New file.
62636         * modules/unictype/property-pattern-white-space-tests: New file.
62637         * modules/unictype/property-private-use-tests: New file.
62638         * modules/unictype/property-punctuation-tests: New file.
62639         * modules/unictype/property-quotation-mark-tests: New file.
62640         * modules/unictype/property-radical-tests: New file.
62641         * modules/unictype/property-sentence-terminal-tests: New file.
62642         * modules/unictype/property-soft-dotted-tests: New file.
62643         * modules/unictype/property-space-tests: New file.
62644         * modules/unictype/property-terminal-punctuation-tests: New file.
62645         * modules/unictype/property-test-tests: New file.
62646         * modules/unictype/property-titlecase-tests: New file.
62647         * modules/unictype/property-unassigned-code-value-tests: New file.
62648         * modules/unictype/property-unified-ideograph-tests: New file.
62649         * modules/unictype/property-uppercase-tests: New file.
62650         * modules/unictype/property-variation-selector-tests: New file.
62651         * modules/unictype/property-white-space-tests: New file.
62652         * modules/unictype/property-xid-continue-tests: New file.
62653         * modules/unictype/property-xid-start-tests: New file.
62654         * modules/unictype/property-zero-width-tests: New file.
62655         * modules/unictype/scripts-tests: New file.
62656         * modules/unictype/syntax-c-ident-tests: New file.
62657         * modules/unictype/syntax-c-whitespace-tests: New file.
62658         * modules/unictype/syntax-java-ident-tests: New file.
62659         * modules/unictype/syntax-java-whitespace-tests: New file.
62660         * tests/unictype/test-bidi_byname.c: New file.
62661         * tests/unictype/test-bidi_name.c: New file.
62662         * tests/unictype/test-bidi_of.c: New file.
62663         * tests/unictype/test-bidi_test.c: New file.
62664         * tests/unictype/test-block_list.c: New file.
62665         * tests/unictype/test-block_of.c: New file.
62666         * tests/unictype/test-block_test.c: New file.
62667         * tests/unictype/test-categ_and.c: New file.
62668         * tests/unictype/test-categ_and_not.c: New file.
62669         * tests/unictype/test-categ_byname.c: New file.
62670         * tests/unictype/test-categ_name.c: New file.
62671         * tests/unictype/test-categ_none.c: New file.
62672         * tests/unictype/test-categ_of.c: New file.
62673         * tests/unictype/test-categ_or.c: New file.
62674         * tests/unictype/test-categ_test_withtable.c: New file.
62675         * tests/unictype/test-combining.c: New file.
62676         * tests/unictype/test-decdigit.c: New file.
62677         * tests/unictype/test-digit.c: New file.
62678         * tests/unictype/test-mirror.c: New file.
62679         * tests/unictype/test-numeric.c: New file.
62680         * tests/unictype/test-pr_byname.c: New file.
62681         * tests/unictype/test-pr_test.c: New file.
62682         * tests/unictype/test-predicate-part1.h: New file.
62683         * tests/unictype/test-predicate-part2.h: New file.
62684         * tests/unictype/test-scripts.c: New file.
62685         * tests/unictype/test-sy_c_ident.c: New file.
62686         * tests/unictype/test-sy_java_ident.c: New file.
62687
62688         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62689         for Unicode 5.0.0.
62690         * tests/unictype/test-categ_Cc.c: Likewise.
62691         * tests/unictype/test-categ_Cf.c: Likewise.
62692         * tests/unictype/test-categ_Cn.c: Likewise.
62693         * tests/unictype/test-categ_Co.c: Likewise.
62694         * tests/unictype/test-categ_Cs.c: Likewise.
62695         * tests/unictype/test-categ_L.c: Likewise.
62696         * tests/unictype/test-categ_Ll.c: Likewise.
62697         * tests/unictype/test-categ_Lm.c: Likewise.
62698         * tests/unictype/test-categ_Lo.c: Likewise.
62699         * tests/unictype/test-categ_Lt.c: Likewise.
62700         * tests/unictype/test-categ_Lu.c: Likewise.
62701         * tests/unictype/test-categ_M.c: Likewise.
62702         * tests/unictype/test-categ_Mc.c: Likewise.
62703         * tests/unictype/test-categ_Me.c: Likewise.
62704         * tests/unictype/test-categ_Mn.c: Likewise.
62705         * tests/unictype/test-categ_N.c: Likewise.
62706         * tests/unictype/test-categ_Nd.c: Likewise.
62707         * tests/unictype/test-categ_Nl.c: Likewise.
62708         * tests/unictype/test-categ_No.c: Likewise.
62709         * tests/unictype/test-categ_P.c: Likewise.
62710         * tests/unictype/test-categ_Pc.c: Likewise.
62711         * tests/unictype/test-categ_Pd.c: Likewise.
62712         * tests/unictype/test-categ_Pe.c: Likewise.
62713         * tests/unictype/test-categ_Pf.c: Likewise.
62714         * tests/unictype/test-categ_Pi.c: Likewise.
62715         * tests/unictype/test-categ_Po.c: Likewise.
62716         * tests/unictype/test-categ_Ps.c: Likewise.
62717         * tests/unictype/test-categ_S.c: Likewise.
62718         * tests/unictype/test-categ_Sc.c: Likewise.
62719         * tests/unictype/test-categ_Sk.c: Likewise.
62720         * tests/unictype/test-categ_Sm.c: Likewise.
62721         * tests/unictype/test-categ_So.c: Likewise.
62722         * tests/unictype/test-categ_Z.c: Likewise.
62723         * tests/unictype/test-categ_Zl.c: Likewise.
62724         * tests/unictype/test-categ_Zp.c: Likewise.
62725         * tests/unictype/test-categ_Zs.c: Likewise.
62726         * tests/unictype/test-ctype_alnum.c: Likewise.
62727         * tests/unictype/test-ctype_alpha.c: Likewise.
62728         * tests/unictype/test-ctype_blank.c: Likewise.
62729         * tests/unictype/test-ctype_cntrl.c: Likewise.
62730         * tests/unictype/test-ctype_digit.c: Likewise.
62731         * tests/unictype/test-ctype_graph.c: Likewise.
62732         * tests/unictype/test-ctype_lower.c: Likewise.
62733         * tests/unictype/test-ctype_print.c: Likewise.
62734         * tests/unictype/test-ctype_punct.c: Likewise.
62735         * tests/unictype/test-ctype_space.c: Likewise.
62736         * tests/unictype/test-ctype_upper.c: Likewise.
62737         * tests/unictype/test-ctype_xdigit.c: Likewise.
62738         * tests/unictype/test-decdigit.h: Likewise.
62739         * tests/unictype/test-digit.h: Likewise.
62740         * tests/unictype/test-numeric.h: Likewise.
62741         * tests/unictype/test-pr_alphabetic.c: Likewise.
62742         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62743         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62744         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62745         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62746         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62747         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62748         * tests/unictype/test-pr_bidi_control.c: Likewise.
62749         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62750         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62751         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62752         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62753         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62754         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62755         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62756         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62757         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62758         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62759         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62760         * tests/unictype/test-pr_combining.c: Likewise.
62761         * tests/unictype/test-pr_composite.c: Likewise.
62762         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62763         * tests/unictype/test-pr_dash.c: Likewise.
62764         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62765         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62766         * tests/unictype/test-pr_deprecated.c: Likewise.
62767         * tests/unictype/test-pr_diacritic.c: Likewise.
62768         * tests/unictype/test-pr_extender.c: Likewise.
62769         * tests/unictype/test-pr_format_control.c: Likewise.
62770         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62771         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62772         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62773         * tests/unictype/test-pr_hex_digit.c: Likewise.
62774         * tests/unictype/test-pr_hyphen.c: Likewise.
62775         * tests/unictype/test-pr_id_continue.c: Likewise.
62776         * tests/unictype/test-pr_id_start.c: Likewise.
62777         * tests/unictype/test-pr_ideographic.c: Likewise.
62778         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62779         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62780         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62781         * tests/unictype/test-pr_iso_control.c: Likewise.
62782         * tests/unictype/test-pr_join_control.c: Likewise.
62783         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62784         * tests/unictype/test-pr_line_separator.c: Likewise.
62785         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62786         * tests/unictype/test-pr_lowercase.c: Likewise.
62787         * tests/unictype/test-pr_math.c: Likewise.
62788         * tests/unictype/test-pr_non_break.c: Likewise.
62789         * tests/unictype/test-pr_not_a_character.c: Likewise.
62790         * tests/unictype/test-pr_numeric.c: Likewise.
62791         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62792         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62793         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62794         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62795         * tests/unictype/test-pr_other_id_start.c: Likewise.
62796         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62797         * tests/unictype/test-pr_other_math.c: Likewise.
62798         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62799         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62800         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62801         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62802         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62803         * tests/unictype/test-pr_private_use.c: Likewise.
62804         * tests/unictype/test-pr_punctuation.c: Likewise.
62805         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62806         * tests/unictype/test-pr_radical.c: Likewise.
62807         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62808         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62809         * tests/unictype/test-pr_space.c: Likewise.
62810         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62811         * tests/unictype/test-pr_titlecase.c: Likewise.
62812         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62813         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62814         * tests/unictype/test-pr_uppercase.c: Likewise.
62815         * tests/unictype/test-pr_variation_selector.c: Likewise.
62816         * tests/unictype/test-pr_white_space.c: Likewise.
62817         * tests/unictype/test-pr_xid_continue.c: Likewise.
62818         * tests/unictype/test-pr_xid_start.c: Likewise.
62819         * tests/unictype/test-pr_zero_width.c: Likewise.
62820         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62821         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62822
62823 2007-11-12  Bruno Haible  <bruno@clisp.org>
62824
62825         Unicode character classification functions.
62826         * lib/unictype.h: New file.
62827         * modules/unictype/base: New file.
62828         * modules/unictype/category-L: New file.
62829         * modules/unictype/category-Lu: New file.
62830         * modules/unictype/category-Ll: New file.
62831         * modules/unictype/category-Lt: New file.
62832         * modules/unictype/category-Lm: New file.
62833         * modules/unictype/category-Lo: New file.
62834         * modules/unictype/category-M: New file.
62835         * modules/unictype/category-Mn: New file.
62836         * modules/unictype/category-Mc: New file.
62837         * modules/unictype/category-Me: New file.
62838         * modules/unictype/category-N: New file.
62839         * modules/unictype/category-Nd: New file.
62840         * modules/unictype/category-Nl: New file.
62841         * modules/unictype/category-No: New file.
62842         * modules/unictype/category-P: New file.
62843         * modules/unictype/category-Pc: New file.
62844         * modules/unictype/category-Pd: New file.
62845         * modules/unictype/category-Ps: New file.
62846         * modules/unictype/category-Pe: New file.
62847         * modules/unictype/category-Pi: New file.
62848         * modules/unictype/category-Pf: New file.
62849         * modules/unictype/category-Po: New file.
62850         * modules/unictype/category-S: New file.
62851         * modules/unictype/category-Sm: New file.
62852         * modules/unictype/category-Sc: New file.
62853         * modules/unictype/category-Sk: New file.
62854         * modules/unictype/category-So: New file.
62855         * modules/unictype/category-Z: New file.
62856         * modules/unictype/category-Zs: New file.
62857         * modules/unictype/category-Zl: New file.
62858         * modules/unictype/category-Zp: New file.
62859         * modules/unictype/category-C: New file.
62860         * modules/unictype/category-Cc: New file.
62861         * modules/unictype/category-Cf: New file.
62862         * modules/unictype/category-Cs: New file.
62863         * modules/unictype/category-Co: New file.
62864         * modules/unictype/category-Cn: New file.
62865         * modules/unictype/category-or: New file.
62866         * modules/unictype/category-of: New file.
62867         * modules/unictype/category-test: New file.
62868         * modules/unictype/category-test-withtable: New file.
62869         * modules/unictype/category-byname: New file.
62870         * modules/unictype/category-none: New file.
62871         * modules/unictype/category-and: New file.
62872         * modules/unictype/category-and-not: New file.
62873         * modules/unictype/category-name: New file.
62874         * modules/unictype/combining-class: New file.
62875         * modules/unictype/category-all: New file.
62876         * modules/unictype/bidicategory-all: New file.
62877         * modules/unictype/bidicategory-byname: New file.
62878         * modules/unictype/bidicategory-name: New file.
62879         * modules/unictype/bidicategory-of: New file.
62880         * modules/unictype/bidicategory-test: New file.
62881         * modules/unictype/decimal-digit: New file.
62882         * modules/unictype/digit: New file.
62883         * modules/unictype/numeric: New file.
62884         * modules/unictype/mirror: New file.
62885         * modules/unictype/property-white-space: New file.
62886         * modules/unictype/property-alphabetic: New file.
62887         * modules/unictype/property-other-alphabetic: New file.
62888         * modules/unictype/property-not-a-character: New file.
62889         * modules/unictype/property-default-ignorable-code-point: New file.
62890         * modules/unictype/property-other-default-ignorable-code-point: New
62891         file.
62892         * modules/unictype/property-deprecated: New file.
62893         * modules/unictype/property-logical-order-exception: New file.
62894         * modules/unictype/property-variation-selector: New file.
62895         * modules/unictype/property-private-use: New file.
62896         * modules/unictype/property-unassigned-code-value: New file.
62897         * modules/unictype/property-uppercase: New file.
62898         * modules/unictype/property-other-uppercase: New file.
62899         * modules/unictype/property-lowercase: New file.
62900         * modules/unictype/property-other-lowercase: New file.
62901         * modules/unictype/property-titlecase: New file.
62902         * modules/unictype/property-soft-dotted: New file.
62903         * modules/unictype/property-id-start: New file.
62904         * modules/unictype/property-other-id-start: New file.
62905         * modules/unictype/property-id-continue: New file.
62906         * modules/unictype/property-other-id-continue: New file.
62907         * modules/unictype/property-xid-start: New file.
62908         * modules/unictype/property-xid-continue: New file.
62909         * modules/unictype/property-pattern-white-space: New file.
62910         * modules/unictype/property-pattern-syntax: New file.
62911         * modules/unictype/property-join-control: New file.
62912         * modules/unictype/property-grapheme-base: New file.
62913         * modules/unictype/property-grapheme-extend: New file.
62914         * modules/unictype/property-other-grapheme-extend: New file.
62915         * modules/unictype/property-grapheme-link: New file.
62916         * modules/unictype/property-bidi-control: New file.
62917         * modules/unictype/property-bidi-left-to-right: New file.
62918         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62919         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62920         * modules/unictype/property-bidi-european-digit: New file.
62921         * modules/unictype/property-bidi-eur-num-separator: New file.
62922         * modules/unictype/property-bidi-eur-num-terminator: New file.
62923         * modules/unictype/property-bidi-arabic-digit: New file.
62924         * modules/unictype/property-bidi-common-separator: New file.
62925         * modules/unictype/property-bidi-block-separator: New file.
62926         * modules/unictype/property-bidi-segment-separator: New file.
62927         * modules/unictype/property-bidi-whitespace: New file.
62928         * modules/unictype/property-bidi-non-spacing-mark: New file.
62929         * modules/unictype/property-bidi-boundary-neutral: New file.
62930         * modules/unictype/property-bidi-pdf: New file.
62931         * modules/unictype/property-bidi-embedding-or-override: New file.
62932         * modules/unictype/property-bidi-other-neutral: New file.
62933         * modules/unictype/property-hex-digit: New file.
62934         * modules/unictype/property-ascii-hex-digit: New file.
62935         * modules/unictype/property-ideographic: New file.
62936         * modules/unictype/property-unified-ideograph: New file.
62937         * modules/unictype/property-radical: New file.
62938         * modules/unictype/property-ids-binary-operator: New file.
62939         * modules/unictype/property-ids-trinary-operator: New file.
62940         * modules/unictype/property-zero-width: New file.
62941         * modules/unictype/property-space: New file.
62942         * modules/unictype/property-non-break: New file.
62943         * modules/unictype/property-iso-control: New file.
62944         * modules/unictype/property-format-control: New file.
62945         * modules/unictype/property-dash: New file.
62946         * modules/unictype/property-hyphen: New file.
62947         * modules/unictype/property-punctuation: New file.
62948         * modules/unictype/property-line-separator: New file.
62949         * modules/unictype/property-paragraph-separator: New file.
62950         * modules/unictype/property-quotation-mark: New file.
62951         * modules/unictype/property-sentence-terminal: New file.
62952         * modules/unictype/property-terminal-punctuation: New file.
62953         * modules/unictype/property-currency-symbol: New file.
62954         * modules/unictype/property-math: New file.
62955         * modules/unictype/property-other-math: New file.
62956         * modules/unictype/property-paired-punctuation: New file.
62957         * modules/unictype/property-left-of-pair: New file.
62958         * modules/unictype/property-combining: New file.
62959         * modules/unictype/property-composite: New file.
62960         * modules/unictype/property-decimal-digit: New file.
62961         * modules/unictype/property-numeric: New file.
62962         * modules/unictype/property-diacritic: New file.
62963         * modules/unictype/property-extender: New file.
62964         * modules/unictype/property-ignorable-control: New file.
62965         * modules/unictype/property-test: New file.
62966         * modules/unictype/property-byname: New file.
62967         * modules/unictype/property-all: New file.
62968         * modules/unictype/scripts: New file.
62969         * modules/unictype/scripts-all: New file.
62970         * modules/unictype/block-of: New file.
62971         * modules/unictype/block-test: New file.
62972         * modules/unictype/block-list: New file.
62973         * modules/unictype/block-all: New file.
62974         * modules/unictype/syntax-c-whitespace: New file.
62975         * modules/unictype/syntax-java-whitespace: New file.
62976         * modules/unictype/syntax-c-ident: New file.
62977         * modules/unictype/syntax-java-ident: New file.
62978         * modules/unictype/ctype-alnum: New file.
62979         * modules/unictype/ctype-alpha: New file.
62980         * modules/unictype/ctype-cntrl: New file.
62981         * modules/unictype/ctype-digit: New file.
62982         * modules/unictype/ctype-graph: New file.
62983         * modules/unictype/ctype-lower: New file.
62984         * modules/unictype/ctype-print: New file.
62985         * modules/unictype/ctype-punct: New file.
62986         * modules/unictype/ctype-space: New file.
62987         * modules/unictype/ctype-upper: New file.
62988         * modules/unictype/ctype-xdigit: New file.
62989         * modules/unictype/ctype-blank: New file.
62990         * lib/unictype/bidi_byname.c: New file.
62991         * lib/unictype/bidi_name.c: New file.
62992         * lib/unictype/bidi_of.c: New file.
62993         * lib/unictype/bidi_test.c: New file.
62994         * lib/unictype/bitmap.h: New file.
62995         * lib/unictype/block_test.c: New file.
62996         * lib/unictype/blocks.c: New file.
62997         * lib/unictype/categ_C.c: New file.
62998         * lib/unictype/categ_Cc.c: New file.
62999         * lib/unictype/categ_Cf.c: New file.
63000         * lib/unictype/categ_Cn.c: New file.
63001         * lib/unictype/categ_Co.c: New file.
63002         * lib/unictype/categ_Cs.c: New file.
63003         * lib/unictype/categ_L.c: New file.
63004         * lib/unictype/categ_Ll.c: New file.
63005         * lib/unictype/categ_Lm.c: New file.
63006         * lib/unictype/categ_Lo.c: New file.
63007         * lib/unictype/categ_Lt.c: New file.
63008         * lib/unictype/categ_Lu.c: New file.
63009         * lib/unictype/categ_M.c: New file.
63010         * lib/unictype/categ_Mc.c: New file.
63011         * lib/unictype/categ_Me.c: New file.
63012         * lib/unictype/categ_Mn.c: New file.
63013         * lib/unictype/categ_N.c: New file.
63014         * lib/unictype/categ_Nd.c: New file.
63015         * lib/unictype/categ_Nl.c: New file.
63016         * lib/unictype/categ_No.c: New file.
63017         * lib/unictype/categ_P.c: New file.
63018         * lib/unictype/categ_Pc.c: New file.
63019         * lib/unictype/categ_Pd.c: New file.
63020         * lib/unictype/categ_Pe.c: New file.
63021         * lib/unictype/categ_Pf.c: New file.
63022         * lib/unictype/categ_Pi.c: New file.
63023         * lib/unictype/categ_Po.c: New file.
63024         * lib/unictype/categ_Ps.c: New file.
63025         * lib/unictype/categ_S.c: New file.
63026         * lib/unictype/categ_Sc.c: New file.
63027         * lib/unictype/categ_Sk.c: New file.
63028         * lib/unictype/categ_Sm.c: New file.
63029         * lib/unictype/categ_So.c: New file.
63030         * lib/unictype/categ_Z.c: New file.
63031         * lib/unictype/categ_Zl.c: New file.
63032         * lib/unictype/categ_Zp.c: New file.
63033         * lib/unictype/categ_Zs.c: New file.
63034         * lib/unictype/categ_and.c: New file.
63035         * lib/unictype/categ_and_not.c: New file.
63036         * lib/unictype/categ_byname.c: New file.
63037         * lib/unictype/categ_name.c: New file.
63038         * lib/unictype/categ_none.c: New file.
63039         * lib/unictype/categ_of.c: New file.
63040         * lib/unictype/categ_or.c: New file.
63041         * lib/unictype/categ_test.c: New file.
63042         * lib/unictype/combining.c: New file.
63043         * lib/unictype/ctype_alnum.c: New file.
63044         * lib/unictype/ctype_alpha.c: New file.
63045         * lib/unictype/ctype_blank.c: New file.
63046         * lib/unictype/ctype_cntrl.c: New file.
63047         * lib/unictype/ctype_digit.c: New file.
63048         * lib/unictype/ctype_graph.c: New file.
63049         * lib/unictype/ctype_lower.c: New file.
63050         * lib/unictype/ctype_print.c: New file.
63051         * lib/unictype/ctype_punct.c: New file.
63052         * lib/unictype/ctype_space.c: New file.
63053         * lib/unictype/ctype_upper.c: New file.
63054         * lib/unictype/ctype_xdigit.c: New file.
63055         * lib/unictype/decdigit.c: New file.
63056         * lib/unictype/digit.c: New file.
63057         * lib/unictype/identsyntaxmap.h: New file.
63058         * lib/unictype/mirror.c: New file.
63059         * lib/unictype/numeric.c: New file.
63060         * lib/unictype/pr_alphabetic.c: New file.
63061         * lib/unictype/pr_ascii_hex_digit.c: New file.
63062         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63063         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63064         * lib/unictype/pr_bidi_block_separator.c: New file.
63065         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63066         * lib/unictype/pr_bidi_common_separator.c: New file.
63067         * lib/unictype/pr_bidi_control.c: New file.
63068         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63069         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63070         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63071         * lib/unictype/pr_bidi_european_digit.c: New file.
63072         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63073         * lib/unictype/pr_bidi_left_to_right.c: New file.
63074         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63075         * lib/unictype/pr_bidi_other_neutral.c: New file.
63076         * lib/unictype/pr_bidi_pdf.c: New file.
63077         * lib/unictype/pr_bidi_segment_separator.c: New file.
63078         * lib/unictype/pr_bidi_whitespace.c: New file.
63079         * lib/unictype/pr_byname.c: New file.
63080         * lib/unictype/pr_byname.gperf: New file.
63081         * lib/unictype/pr_combining.c: New file.
63082         * lib/unictype/pr_composite.c: New file.
63083         * lib/unictype/pr_currency_symbol.c: New file.
63084         * lib/unictype/pr_dash.c: New file.
63085         * lib/unictype/pr_decimal_digit.c: New file.
63086         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63087         * lib/unictype/pr_deprecated.c: New file.
63088         * lib/unictype/pr_diacritic.c: New file.
63089         * lib/unictype/pr_extender.c: New file.
63090         * lib/unictype/pr_format_control.c: New file.
63091         * lib/unictype/pr_grapheme_base.c: New file.
63092         * lib/unictype/pr_grapheme_extend.c: New file.
63093         * lib/unictype/pr_grapheme_link.c: New file.
63094         * lib/unictype/pr_hex_digit.c: New file.
63095         * lib/unictype/pr_hyphen.c: New file.
63096         * lib/unictype/pr_id_continue.c: New file.
63097         * lib/unictype/pr_id_start.c: New file.
63098         * lib/unictype/pr_ideographic.c: New file.
63099         * lib/unictype/pr_ids_binary_operator.c: New file.
63100         * lib/unictype/pr_ids_trinary_operator.c: New file.
63101         * lib/unictype/pr_ignorable_control.c: New file.
63102         * lib/unictype/pr_iso_control.c: New file.
63103         * lib/unictype/pr_join_control.c: New file.
63104         * lib/unictype/pr_left_of_pair.c: New file.
63105         * lib/unictype/pr_line_separator.c: New file.
63106         * lib/unictype/pr_logical_order_exception.c: New file.
63107         * lib/unictype/pr_lowercase.c: New file.
63108         * lib/unictype/pr_math.c: New file.
63109         * lib/unictype/pr_non_break.c: New file.
63110         * lib/unictype/pr_not_a_character.c: New file.
63111         * lib/unictype/pr_numeric.c: New file.
63112         * lib/unictype/pr_other_alphabetic.c: New file.
63113         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63114         * lib/unictype/pr_other_grapheme_extend.c: New file.
63115         * lib/unictype/pr_other_id_continue.c: New file.
63116         * lib/unictype/pr_other_id_start.c: New file.
63117         * lib/unictype/pr_other_lowercase.c: New file.
63118         * lib/unictype/pr_other_math.c: New file.
63119         * lib/unictype/pr_other_uppercase.c: New file.
63120         * lib/unictype/pr_paired_punctuation.c: New file.
63121         * lib/unictype/pr_paragraph_separator.c: New file.
63122         * lib/unictype/pr_pattern_syntax.c: New file.
63123         * lib/unictype/pr_pattern_white_space.c: New file.
63124         * lib/unictype/pr_private_use.c: New file.
63125         * lib/unictype/pr_punctuation.c: New file.
63126         * lib/unictype/pr_quotation_mark.c: New file.
63127         * lib/unictype/pr_radical.c: New file.
63128         * lib/unictype/pr_sentence_terminal.c: New file.
63129         * lib/unictype/pr_soft_dotted.c: New file.
63130         * lib/unictype/pr_space.c: New file.
63131         * lib/unictype/pr_terminal_punctuation.c: New file.
63132         * lib/unictype/pr_test.c: New file.
63133         * lib/unictype/pr_titlecase.c: New file.
63134         * lib/unictype/pr_unassigned_code_value.c: New file.
63135         * lib/unictype/pr_unified_ideograph.c: New file.
63136         * lib/unictype/pr_uppercase.c: New file.
63137         * lib/unictype/pr_variation_selector.c: New file.
63138         * lib/unictype/pr_white_space.c: New file.
63139         * lib/unictype/pr_xid_continue.c: New file.
63140         * lib/unictype/pr_xid_start.c: New file.
63141         * lib/unictype/pr_zero_width.c: New file.
63142         * lib/unictype/scripts.c: New file.
63143         * lib/unictype/sy_c_ident.c: New file.
63144         * lib/unictype/sy_c_whitespace.c: New file.
63145         * lib/unictype/sy_java_ident.c: New file.
63146         * lib/unictype/sy_java_whitespace.c: New file.
63147
63148         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63149         Unicode 5.0.0.
63150         * lib/unictype/blocks.h: Likewise.
63151         * lib/unictype/categ_C.h: Likewise.
63152         * lib/unictype/categ_Cc.h: Likewise.
63153         * lib/unictype/categ_Cf.h: Likewise.
63154         * lib/unictype/categ_Cn.h: Likewise.
63155         * lib/unictype/categ_Co.h: Likewise.
63156         * lib/unictype/categ_Cs.h: Likewise.
63157         * lib/unictype/categ_L.h: Likewise.
63158         * lib/unictype/categ_Ll.h: Likewise.
63159         * lib/unictype/categ_Lm.h: Likewise.
63160         * lib/unictype/categ_Lo.h: Likewise.
63161         * lib/unictype/categ_Lt.h: Likewise.
63162         * lib/unictype/categ_Lu.h: Likewise.
63163         * lib/unictype/categ_M.h: Likewise.
63164         * lib/unictype/categ_Mc.h: Likewise.
63165         * lib/unictype/categ_Me.h: Likewise.
63166         * lib/unictype/categ_Mn.h: Likewise.
63167         * lib/unictype/categ_N.h: Likewise.
63168         * lib/unictype/categ_Nd.h: Likewise.
63169         * lib/unictype/categ_Nl.h: Likewise.
63170         * lib/unictype/categ_No.h: Likewise.
63171         * lib/unictype/categ_P.h: Likewise.
63172         * lib/unictype/categ_Pc.h: Likewise.
63173         * lib/unictype/categ_Pd.h: Likewise.
63174         * lib/unictype/categ_Pe.h: Likewise.
63175         * lib/unictype/categ_Pf.h: Likewise.
63176         * lib/unictype/categ_Pi.h: Likewise.
63177         * lib/unictype/categ_Po.h: Likewise.
63178         * lib/unictype/categ_Ps.h: Likewise.
63179         * lib/unictype/categ_S.h: Likewise.
63180         * lib/unictype/categ_Sc.h: Likewise.
63181         * lib/unictype/categ_Sk.h: Likewise.
63182         * lib/unictype/categ_Sm.h: Likewise.
63183         * lib/unictype/categ_So.h: Likewise.
63184         * lib/unictype/categ_Z.h: Likewise.
63185         * lib/unictype/categ_Zl.h: Likewise.
63186         * lib/unictype/categ_Zp.h: Likewise.
63187         * lib/unictype/categ_Zs.h: Likewise.
63188         * lib/unictype/categ_of.h: Likewise.
63189         * lib/unictype/combining.h: Likewise.
63190         * lib/unictype/ctype_alnum.h: Likewise.
63191         * lib/unictype/ctype_alpha.h: Likewise.
63192         * lib/unictype/ctype_blank.h: Likewise.
63193         * lib/unictype/ctype_cntrl.h: Likewise.
63194         * lib/unictype/ctype_digit.h: Likewise.
63195         * lib/unictype/ctype_graph.h: Likewise.
63196         * lib/unictype/ctype_lower.h: Likewise.
63197         * lib/unictype/ctype_print.h: Likewise.
63198         * lib/unictype/ctype_punct.h: Likewise.
63199         * lib/unictype/ctype_space.h: Likewise.
63200         * lib/unictype/ctype_upper.h: Likewise.
63201         * lib/unictype/ctype_xdigit.h: Likewise.
63202         * lib/unictype/decdigit.h: Likewise.
63203         * lib/unictype/digit.h: Likewise.
63204         * lib/unictype/mirror.h: Likewise.
63205         * lib/unictype/numeric.h: Likewise.
63206         * lib/unictype/pr_alphabetic.h: Likewise.
63207         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63208         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63209         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63210         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63211         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63212         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63213         * lib/unictype/pr_bidi_control.h: Likewise.
63214         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63215         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63216         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63218         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63219         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63220         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63221         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63222         * lib/unictype/pr_bidi_pdf.h: Likewise.
63223         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63224         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63225         * lib/unictype/pr_combining.h: Likewise.
63226         * lib/unictype/pr_composite.h: Likewise.
63227         * lib/unictype/pr_currency_symbol.h: Likewise.
63228         * lib/unictype/pr_dash.h: Likewise.
63229         * lib/unictype/pr_decimal_digit.h: Likewise.
63230         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63231         * lib/unictype/pr_deprecated.h: Likewise.
63232         * lib/unictype/pr_diacritic.h: Likewise.
63233         * lib/unictype/pr_extender.h: Likewise.
63234         * lib/unictype/pr_format_control.h: Likewise.
63235         * lib/unictype/pr_grapheme_base.h: Likewise.
63236         * lib/unictype/pr_grapheme_extend.h: Likewise.
63237         * lib/unictype/pr_grapheme_link.h: Likewise.
63238         * lib/unictype/pr_hex_digit.h: Likewise.
63239         * lib/unictype/pr_hyphen.h: Likewise.
63240         * lib/unictype/pr_id_continue.h: Likewise.
63241         * lib/unictype/pr_id_start.h: Likewise.
63242         * lib/unictype/pr_ideographic.h: Likewise.
63243         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63244         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63245         * lib/unictype/pr_ignorable_control.h: Likewise.
63246         * lib/unictype/pr_iso_control.h: Likewise.
63247         * lib/unictype/pr_join_control.h: Likewise.
63248         * lib/unictype/pr_left_of_pair.h: Likewise.
63249         * lib/unictype/pr_line_separator.h: Likewise.
63250         * lib/unictype/pr_logical_order_exception.h: Likewise.
63251         * lib/unictype/pr_lowercase.h: Likewise.
63252         * lib/unictype/pr_math.h: Likewise.
63253         * lib/unictype/pr_non_break.h: Likewise.
63254         * lib/unictype/pr_not_a_character.h: Likewise.
63255         * lib/unictype/pr_numeric.h: Likewise.
63256         * lib/unictype/pr_other_alphabetic.h: Likewise.
63257         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63258         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63259         * lib/unictype/pr_other_id_continue.h: Likewise.
63260         * lib/unictype/pr_other_id_start.h: Likewise.
63261         * lib/unictype/pr_other_lowercase.h: Likewise.
63262         * lib/unictype/pr_other_math.h: Likewise.
63263         * lib/unictype/pr_other_uppercase.h: Likewise.
63264         * lib/unictype/pr_paired_punctuation.h: Likewise.
63265         * lib/unictype/pr_paragraph_separator.h: Likewise.
63266         * lib/unictype/pr_pattern_syntax.h: Likewise.
63267         * lib/unictype/pr_pattern_white_space.h: Likewise.
63268         * lib/unictype/pr_private_use.h: Likewise.
63269         * lib/unictype/pr_punctuation.h: Likewise.
63270         * lib/unictype/pr_quotation_mark.h: Likewise.
63271         * lib/unictype/pr_radical.h: Likewise.
63272         * lib/unictype/pr_sentence_terminal.h: Likewise.
63273         * lib/unictype/pr_soft_dotted.h: Likewise.
63274         * lib/unictype/pr_space.h: Likewise.
63275         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63276         * lib/unictype/pr_titlecase.h: Likewise.
63277         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63278         * lib/unictype/pr_unified_ideograph.h: Likewise.
63279         * lib/unictype/pr_uppercase.h: Likewise.
63280         * lib/unictype/pr_variation_selector.h: Likewise.
63281         * lib/unictype/pr_white_space.h: Likewise.
63282         * lib/unictype/pr_xid_continue.h: Likewise.
63283         * lib/unictype/pr_xid_start.h: Likewise.
63284         * lib/unictype/pr_zero_width.h: Likewise.
63285         * lib/unictype/scripts.h: Likewise.
63286         * lib/unictype/scripts_byname.gperf: Likewise.
63287         * lib/unictype/sy_c_ident.h: Likewise.
63288         * lib/unictype/sy_c_whitespace.h: Likewise.
63289         * lib/unictype/sy_java_ident.h: Likewise.
63290         * lib/unictype/sy_java_whitespace.h: Likewise.
63291
63292         * lib/unictype/Makefile: New file.
63293         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63294         glibc.
63295         * lib/unictype/3level.h: New file, copied from glibc.
63296         * lib/unictype/3levelbit.h: New file.
63297
63298 2007-11-11  Bruno Haible  <bruno@clisp.org>
63299
63300         * modules/gperf: New file.
63301         * modules/iconv_open (Depends-on): Add it.
63302         (Makefile.am): Remove the GPERF definition.
63303
63304 2007-11-11  Bruno Haible  <bruno@clisp.org>
63305
63306         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63307         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63308
63309 2007-11-11  Bruno Haible  <bruno@clisp.org>
63310
63311         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63312         (usage): Remove function.
63313
63314 2007-11-11  Bruno Haible  <bruno@clisp.org>
63315
63316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63317         gl_FUNC_CEILF_LIBS.
63318         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63319         gl_FUNC_CEIL_LIBS.
63320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63321         gl_FUNC_CEILL_LIBS.
63322         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63323         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63324         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63325
63326 2007-11-11  Bruno Haible  <bruno@clisp.org>
63327
63328         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63329         roundf were declared but do not exist on functions.
63330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63331         roundl were declared but do not exist on functions.
63332         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63333         HAVE_FLOORL_AND_CEILL, respectively.
63334         Needed for Sun C on Solaris 10.
63335
63336 2007-11-11  Bruno Haible  <bruno@clisp.org>
63337
63338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63339         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63340         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63341         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63342         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63343         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63344         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63345         HAVE_DECL_ROUNDF.
63346         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63347         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63349         of HAVE_DECL_ROUND*.
63350         * modules/math (Makefile.am): Update.
63351
63352 2007-11-10  Bruno Haible  <bruno@clisp.org>
63353
63354         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63355         ptrdiff_t as m4/intl.m4.
63356
63357 2007-11-10  Jim Meyering  <meyering@redhat.com>
63358
63359         Avoid link failure for the argmatch test.
63360         * tests/test-argmatch.c (usage): Define function to avoid a link
63361         failure: argmatch_die requires a usage function.
63362
63363 2007-11-09  Bruno Haible  <bruno@clisp.org>
63364
63365         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63366         * doc/functions/vsnprintf.texi: Likewise.
63367         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63368         with a size argument < 2.
63369
63370 2007-11-09  Bruno Haible  <bruno@clisp.org>
63371
63372         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63373         buffer. Fixes an inefficiency introduced on 2007-11-03.
63374
63375 2007-11-09  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63378         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63379
63380 2007-11-08  Jim Meyering  <meyering@redhat.com>
63381
63382         Change cache variable name prefix "jm_" to "gl_" everywhere.
63383         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63384         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63385         * m4/uptime.m4: s/gl_/jm_/
63386
63387 2007-11-07  Bruno Haible  <bruno@clisp.org>
63388
63389         Update to GNU gettext 0.17.
63390         * m4/intl.m4: Update to GNU gettext 0.17.
63391         * m4/po.m4: Likewise.
63392         * modules/gettext (Files): Remove m4/ulonglong.m4.
63393         (configure.ac): Require gettext infrastructure from version 0.17.
63394
63395 2007-11-06  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63398         symbolic values are not defined in a public header.
63399         * lib/freadable.c (freadable) [QNX]: Likewise.
63400         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63401         * lib/freading.c (freading) [QNX]: Likewise.
63402         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63403         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63404         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63405         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63406         Reported by Alain Magloire.
63407
63408         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63409
63410 2007-11-05  Bruno Haible  <bruno@clisp.org>
63411
63412         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63413         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63414         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63415         Reported by Eric Blake.
63416
63417 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63418             Bruno Haible  <bruno@clisp.org>
63419
63420         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63421         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63422         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63423         (malloc): Undefine also before including <stdlib.h>.
63424         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63425         Needed on OSF/1 4.0.
63426
63427 2007-11-05  Jim Meyering  <meyering@redhat.com>
63428
63429         git-version-gen: sync from coreutils.
63430         * build-aux/git-version-gen: Add comments.
63431         Change the first '-' to '.' in the snapshot version string,
63432         e.g., 6.9-377-08144 -> 6.9.377-08144
63433         Remove first parameter.
63434         Don't declare a version "-dirty" merely because a time
63435         stamp has changed.
63436
63437 2007-11-04  Bruno Haible  <bruno@clisp.org>
63438
63439         * lib/lock.h: Protect all macro definitions containing an 'if'
63440         statement through a "do { ... } while (0)".
63441         * lib/tls.h: Likewise.
63442
63443 2007-11-04  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63446
63447 2007-11-04  Bruno Haible  <bruno@clisp.org>
63448
63449         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63450         * modules/fprintf-posix (Depends-on): Add nocrash.
63451         * modules/snprintf-posix (Depends-on): Likewise.
63452         * modules/sprintf-posix (Depends-on): Likewise.
63453         * modules/vasnprintf-posix (Depends-on): Likewise.
63454         * modules/vasprintf-posix (Depends-on): Likewise.
63455         * modules/vfprintf-posix (Depends-on): Likewise.
63456         * modules/vsnprintf-posix (Depends-on): Likewise.
63457         * modules/vsprintf-posix (Depends-on): Likewise.
63458         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63459         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63460         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63461         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63462         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63463         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63464         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63465
63466 2007-11-04  Bruno Haible  <bruno@clisp.org>
63467
63468         * modules/nocrash: New file.
63469         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63470         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63471
63472 2007-11-04  Bruno Haible  <bruno@clisp.org>
63473
63474         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63475         precision handling.
63476         * tests/test-vasprintf-posix.c (test_function): Likewise.
63477         * tests/test-snprintf-posix.h (test_function): Likewise.
63478         * tests/test-sprintf-posix.h (test_function): Likewise.
63479
63480         Fix *printf behaviour for large precisions on mingw and BeOS.
63481         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63482         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63484         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63486         gl_PRINTF_PRECISION and test its result. Invoke
63487         gl_PREREQ_VASNPRINTF_PRECISION.
63488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63495         * doc/functions/fprintf.texi: Update.
63496         * doc/functions/printf.texi: Update.
63497         * doc/functions/snprintf.texi: Update.
63498         * doc/functions/sprintf.texi: Update.
63499         * doc/functions/vfprintf.texi: Update.
63500         * doc/functions/vprintf.texi: Update.
63501         * doc/functions/vsnprintf.texi: Update.
63502         * doc/functions/vsprintf.texi: Update.
63503
63504 2007-11-04  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63507
63508 2007-11-04  Bruno Haible  <bruno@clisp.org>
63509
63510         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63511         Reported by Sylvain Beucler <beuc@gnu.org>.
63512
63513 2007-11-03  Bruno Haible  <bruno@clisp.org>
63514
63515         * tests/test-fprintf-posix2.sh: New file.
63516         * tests/test-fprintf-posix2.c: New file.
63517         * modules/fprintf-posix-tests (Files): Add them.
63518         (TESTS): Add test-fprintf-posix2.sh.
63519         (configure.ac): Check for getrlimit and setrlimit.
63520         (check_PROGRAMS): Add test-fprintf-posix2.
63521
63522         * tests/test-printf-posix2.sh: New file.
63523         * tests/test-printf-posix2.c: New file.
63524         * modules/printf-posix-tests (Files): Add them.
63525         (TESTS): Add test-printf-posix2.sh.
63526         (configure.ac): Check for getrlimit and setrlimit.
63527         (check_PROGRAMS): Add test-printf-posix2.
63528
63529         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63530         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63531         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63532         (decode_double): New function, copied from decode_long_double.
63533         (scale10_round_decimal_decoded): New function, extracted from
63534         scale10_round_decimal_long_double.
63535         (scale10_round_decimal_long_double): Use it.
63536         (scale10_round_decimal_double): New function.
63537         (floorlog10): New function.
63538         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63540         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63542         gl_PRINTF_ENOMEM and test its result. Invoke
63543         gl_PREREQ_VASNPRINTF_ENOMEM.
63544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63551         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63552         * modules/snprintf-posix (Depends-on): Likewise.
63553         * modules/sprintf-posix (Depends-on): Likewise.
63554         * modules/vasnprintf-posix (Depends-on): Likewise.
63555         * modules/vasprintf-posix (Depends-on): Likewise.
63556         * modules/vfprintf-posix (Depends-on): Likewise.
63557         * modules/vsnprintf-posix (Depends-on): Likewise.
63558         * modules/vsprintf-posix (Depends-on): Likewise.
63559         * doc/functions/fprintf.texi: Update.
63560         * doc/functions/printf.texi: Update.
63561         * doc/functions/snprintf.texi: Update.
63562         * doc/functions/sprintf.texi: Update.
63563         * doc/functions/vfprintf.texi: Update.
63564         * doc/functions/vprintf.texi: Update.
63565         * doc/functions/vsnprintf.texi: Update.
63566         * doc/functions/vsprintf.texi: Update.
63567
63568 2007-11-03  Bruno Haible  <bruno@clisp.org>
63569
63570         * modules/frexp-nolibm-tests: New file.
63571
63572         * modules/frexp-nolibm: New file.
63573         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63574
63575 2007-11-03  Bruno Haible  <bruno@clisp.org>
63576
63577         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63578         value is C99 compliant.
63579         Needed for OSF/1 5.1.
63580
63581 2007-11-03  Bruno Haible  <bruno@clisp.org>
63582
63583         Fix out-of-memory handling of vasnprintf.
63584         * lib/printf-parse.c: Include <errno.h>.
63585         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63586         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63587         is already set.
63588
63589 2007-11-02  Eric Blake  <ebb9@byu.net>
63590
63591         Fix tests on cygwin.
63592         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63593
63594 2007-11-01  Bruno Haible  <bruno@clisp.org>
63595
63596         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63597         warning.
63598         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63599         needed for POSIX compatibility.
63600
63601 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63604         for compatibility with GNU.
63605
63606 2007-11-01  Bruno Haible  <bruno@clisp.org>
63607
63608         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63609         (putenv): Renamed from rpl_putenv. Change argument type from
63610         'const char *' to 'char *'.
63611         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63612         of defining putenv in config.h, just set REPLACE_PUTENV.
63613         * modules/putenv (Depends-on): Add stdlib.
63614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63615         (Include): Use <stdlib.h>.
63616         * lib/stdlib.in.h (putenv): New declaration.
63617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63618         REPLACE_PUTENV.
63619         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63620         REPLACE_PUTENV.
63621         Needed for MacOS X 10.5.0.
63622         Reported by Peter O'Gorman <peter@pogma.com>.
63623
63624 2007-11-01  Jim Meyering  <meyering@redhat.com>
63625
63626         Treat an empty date string exactly like "0".
63627         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63628         if the remaining date string (to be parsed) is empty, use "0".
63629         Reported by Mischa Molhoek and discussed in this thread:
63630         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63631
63632 2007-10-31  Bruno Haible  <bruno@clisp.org>
63633
63634         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63635         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63636         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63637         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63638         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63639         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63640
63641 2007-10-31  Bruno Haible  <bruno@clisp.org>
63642
63643         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63644         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63645         (AC_TYPE_LONG_LONG_INT): Use it.
63646         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63647         it as well.
63648         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63649         to m4/longlong.m4.
63650         * modules/stdint (Files): Remove m4/ulonglong.m4.
63651         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63652         m4/ulonglong.m4.
63653         * modules/strtoumax (Files): Likewise.
63654
63655 2007-10-30  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/xvasprintf-posix: New file.
63658         Suggested by Eric Blake.
63659
63660 2007-10-30  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/xprintf-posix-tests: New file.
63663         * tests/test-xprintf-posix.sh: New file.
63664         * tests/test-xprintf-posix.c: New file.
63665         * tests/test-xfprintf-posix.c: New file.
63666
63667         * modules/xprintf-posix: New file.
63668
63669 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63670
63671         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63672         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63673         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63674
63675 2007-10-29  Bruno Haible  <bruno@clisp.org>
63676
63677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63678         contain the special marker '_cv_'.
63679         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63680         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63681         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63682         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63683         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63684         Reported by Ralf Wildenhues.
63685
63686 2007-10-29  Bruno Haible  <bruno@clisp.org>
63687
63688         * gnulib-tool (func_import): When --lgpl is not specified, set
63689         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63690         GPLv3.
63691         Reported by Simon Josefsson.
63692
63693 2007-10-28  Bruno Haible  <bruno@clisp.org>
63694
63695         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63696         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63697         HAVE_DECL_ISFINITE.
63698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63699         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63700         HAVE_DECL_ISFINITE.
63701
63702 2007-10-28  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63705         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63706
63707 2007-10-28  Bruno Haible  <bruno@clisp.org>
63708
63709         Fix link errors with Sun C 5.0 on Solaris 10.
63710         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63711         function is declared but not present in the compiler's libm.
63712         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63713         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63714         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63715         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63716         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63717         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63718         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63720         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63721         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63722         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63723         HAVE_DECL_FLOORL.
63724
63725 2007-10-28  Bruno Haible  <bruno@clisp.org>
63726
63727         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63728         gl_FUNC_FLOORL. Cache the result.
63729         (gl_FUNC_FLOORL): Use it.
63730         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63731         gl_FUNC_CEILL. Cache the result.
63732         (gl_FUNC_CEILL): Use it.
63733
63734         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63735         gl_FUNC_FLOOR. Cache the result.
63736         (gl_FUNC_FLOOR): Use it.
63737         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63738         gl_FUNC_CEIL. Cache the result.
63739         (gl_FUNC_CEIL): Use it.
63740
63741         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63742         gl_FUNC_FLOORF. Cache the result.
63743         (gl_FUNC_FLOORF): Use it.
63744         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63745         gl_FUNC_CEILF. Cache the result.
63746         (gl_FUNC_CEILF): Use it.
63747
63748 2007-10-28  Bruno Haible  <bruno@clisp.org>
63749
63750         * gnulib-tool: Allow specifying the LGPL version number through
63751         --lgpl=2 or --lgpl=3.
63752         (func_usage): Document --lgpl with argument.
63753         Handle --lgpl=... arguments.
63754         (func_import): Recognize also gl_LGPL calls with an argument. When
63755         --lgpl=2 is used and the module's license is just LGPL, report an
63756         error. Set sed_transform_lib_file according to the lgpl variable. In
63757         the generated files, use --lgpl or gl_LGPL invocations with argument,
63758         if necessary.
63759         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63760         an LGPv2+ license.
63761         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63762         gl_LGPL macro.
63763
63764 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63765             Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63768         (u16_uctomb_aux): Likewise.
63769         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63770         !HAVE_INLINE.
63771         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63772
63773 2007-10-28  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63776         Invoke AM_GETTEXT_OPTION if it exists.
63777         * modules/vasprintf: Likewise.
63778         * modules/verror: Likewise.
63779         * modules/xprintf: Likewise.
63780         * modules/xvasprintf: Likewise.
63781
63782 2007-10-27  Ben Pfaff  <blp@gnu.org>
63783
63784         * lib/math.in.h: Define isfinite macro and prototypes for
63785         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63786         implementations.
63787         * m4/math_h.m4: New substitutions for isfinite module.
63788         * lib/isfinite.c: New file.
63789         * m4/isfinite.m4: New file.
63790         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63791         * modules/isfinite: New file.
63792         * modules/isfinite-tests: New file.
63793         * tests/tests-isfinite.c: New file.
63794         * doc/functions/isfinite.texi: Mention isfinite module.
63795         * MODULES.html.sh: Mention new module.
63796
63797 2007-10-27  Ben Pfaff  <blp@gnu.org>
63798
63799         Ralf Wildenhues reported that Tru64 4.0D declares the round
63800         functions but does not have definitions.
63801         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63802         cannot be found in any library, set the output variable to
63803         "missing" instead of "".
63804         * m4/round.m4: Also use our substitute if we cannot find round in
63805         any library, even if it is declared.
63806         * m4/roundf.m4: Likewise for roundf.
63807         * m4/roundl.m4: Likewise for roundl.
63808         * lib/math.in.h: Undefine roundf, round, roundl before defining
63809         their replacements, to allow for hypothetical systems where these
63810         may be defined as macros but not available in libraries.
63811
63812 2007-10-27  Bruno Haible  <bruno@clisp.org>
63813
63814         * doc/gnulib.texi: Invoke @firstparagraphindent.
63815         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63816         changes in gnulib.
63817         (Source changes): New section.
63818
63819 2007-10-26  Bruno Haible  <bruno@clisp.org>
63820
63821         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63822         borrowed from autoconf.
63823
63824 2007-10-26  Bruno Haible  <bruno@clisp.org>
63825
63826         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63827         strerror returned the empty string. Needed on HP-UX 11.00.
63828
63829 2007-10-24  Micah Cowan  <micah@cowan.name>
63830
63831         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63832         * build-aux/bootstrap: Remove support for now-unnecessary option,
63833         --cvs-user, and envvars CVS_USER, CVS_RSH.
63834
63835 2007-10-24  Jim Meyering  <meyering@redhat.com>
63836
63837         Avoid diagnostics from sha1sum when there is no cached checksum.
63838         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63839         if the po.s1 file hasn't been created yet.
63840
63841         * build-aux/bootstrap: Sync from coreutils:
63842         2007-10-24  Jim Meyering  <meyering@redhat.com>
63843         Get gnulib from the git repository, not from an obsolete cvs one.
63844         * build-aux/bootstrap: Suggestion from Micah Cowan.
63845         2007-10-04  Jim Meyering  <jim@meyering.net>
63846         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63847         (update_po_files): Work also when there are no .po files in po/.
63848
63849 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         * README: Append ".git" to git and cg examples.
63852         Problem reported by Benoit Sigoure.
63853
63854 2007-10-23  Micah Cowan  <micah@cowan.name>
63855
63856         * users.txt: Add wget.
63857
63858 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63859
63860         Fix linking of some unistdio tests on FreeBSD.
63861         * modules/unistdio/u16-vsnprintf-tests
63862         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63863         * modules/unistdio/u16-vsprintf-tests
63864         (test_u16_vsnprintf1_LDADD): Likewise.
63865         * modules/unistdio/u32-vsnprintf-tests
63866         (test_u32_vsnprintf1_LDADD): Likewise.
63867         * modules/unistdio/u32-vsprintf-tests
63868         (test_u32_vsprintf1_LDADD): Likewise.
63869         * modules/unistdio/u8-vsnprintf-tests
63870         (test_u8_vsnprintf1_LDADD): Likewise.
63871         * modules/unistdio/u8-vsprintf-tests
63872         (test_u8_vsprintf1_LDADD): Likewise.
63873         * modules/unistdio/ulc-vsnprintf-tests
63874         (test_ulc_vsnprintf1_LDADD): Likewise.
63875         * modules/unistdio/ulc-vsprintf-tests
63876         (test_ulc_vsprintf1_LDADD): Likewise.
63877
63878         Fix linking of some uniconv tests on FreeBSD.
63879         * modules/uniconv/u16-conv-from-enc-tests
63880         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63881         * modules/uniconv/u16-conv-to-enc-tests
63882         (test_u16_conv_to_enc_LDADD): Likewise.
63883         * modules/uniconv/u16-strconv-from-enc-tests
63884         (test_u16_strconv_from_enc_LDADD): Likewise.
63885         * modules/uniconv/u16-strconv-to-enc-tests
63886         (test_u16_strconv_to_enc_LDADD): Likewise.
63887         * modules/uniconv/u32-conv-from-enc-tests
63888         (test_u32_conv_from_enc_LDADD): Likewise.
63889         * modules/uniconv/u32-conv-to-enc-tests
63890         (test_u32_conv_to_enc_LDADD): Likewise.
63891         * modules/uniconv/u32-strconv-from-enc-tests
63892         (test_u32_strconv_from_enc_LDADD): Likewise.
63893         * modules/uniconv/u32-strconv-to-enc-tests
63894         (test_u32_strconv_to_enc_LDADD): Likewise.
63895         * modules/uniconv/u8-conv-from-enc-tests
63896         (test_u8_conv_from_enc_LDADD): Likewise.
63897         * modules/uniconv/u8-conv-to-enc-tests
63898         (test_u8_conv_to_enc_LDADD): Likewise.
63899         * modules/uniconv/u8-strconv-from-enc-tests
63900         (test_u8_strconv_from_enc_LDADD): Likewise.
63901         * modules/uniconv/u8-strconv-to-enc-tests
63902         (test_u8_strconv_to_enc_LDADD): Likewise.
63903
63904 2007-10-22  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63907         size.
63908
63909 2007-10-22  Eric Blake  <ebb9@byu.net>
63910
63911         Tweak x*printf documentation.
63912         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63913         variable name and comments.
63914         Suggested by Bruno Haible.
63915
63916 2007-10-22  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/acl.c (copy_acl): Fix file name in comment.
63919
63920 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         Fix Tru64 problem with stdbool.h.
63923         * lib/stdbool.in.h (false, true):
63924         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63925         Don't declare as an enum in this situation; it runs afoul of Tru64.
63926         Problem reported by Steven M. Schweda in
63927         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63928
63929 2007-10-22  Eric Blake  <ebb9@byu.net>
63930
63931         Also wrap vf?printf.
63932         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63933         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63934         (xvprintf, xvfprintf): New functions.
63935
63936 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63937
63938         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63939         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63940
63941         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63942         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63943
63944 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63947         by Bruno Haible.
63948
63949 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63950
63951         * lib/getloadavg.c
63952         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63953         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63954
63955         * tests/test-i-ring.c: Work for C89.
63956
63957 2007-10-22  Bruno Haible  <bruno@clisp.org>
63958
63959         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63960         -1u, in preprocessor expression, so that we don't test for the bug
63961         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63963
63964 2007-10-22  Eric Blake  <ebb9@byu.net>
63965
63966         * tests/test-yesno.sh: Silence stderr during test.
63967
63968 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63969
63970         * modules/crypto/gc-camellia: New file.
63971
63972         * m4/gc-camellia.m4: New file.
63973
63974         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63975
63976         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63977
63978 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63979
63980         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63981         --help to stdout.  Reported by sms@antinode.org (Steven
63982         M. Schweda).
63983
63984 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63985
63986         * users.txt: Fix link to libksba.
63987
63988 2007-10-21  Ben Pfaff  <blp@gnu.org>
63989
63990         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63991         round.c roundf implementation that depends on floorf and ceilf to
63992         be tested unconditionally.
63993
63994 2007-10-21  Ben Pfaff  <blp@gnu.org>
63995
63996         * m4/check-libm-func.m4: Removed.
63997         * m4/check-math-lib.m4: New file.
63998         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63999         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64000         definition and lack of AC_LIBOBJ([roundf]).
64001         * m4/roundl.m4: Ditto, and similarly for roundl.
64002         * modules/round: Reference new m4 file.
64003         * modules/roundf: Ditto.
64004         * modules/roundl: Ditto.
64005         * tests/test-round2.c (main): Use ROUND instead of round.
64006         Bug report from Bruno Haible.
64007
64008 2007-10-21  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64011         context.
64012
64013 2007-10-21  Bruno Haible  <bruno@clisp.org>
64014
64015         * tests/test-wcwidth.c (main): Allow negative result for some control
64016         characters.
64017
64018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64019         Needed on OSF/1 5.1.
64020
64021 2007-10-21  Bruno Haible  <bruno@clisp.org>
64022
64023         * tests/test-floorf1.c: Include isnanf.h.
64024         (main): Use isnanf() instead of isnan().
64025         * tests/test-ceilf1.c: Include isnanf.h.
64026         (main): Use isnanf() instead of isnan().
64027         * tests/test-truncf1.c: Include isnanf.h.
64028         (main): Use isnanf() instead of isnan().
64029         * tests/test-roundf1.c: Include isnanf.h.
64030         (main): Use isnanf() instead of isnan().
64031
64032 2007-10-21  Eric Blake  <ebb9@byu.net>
64033
64034         * users.txt: Update URL for m4.
64035
64036 2007-10-21  Bruno Haible  <bruno@clisp.org>
64037
64038         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64039
64040 2007-10-21  Bruno Haible  <bruno@clisp.org>
64041
64042         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64043         Git's management files if the CVS files are not present.
64044
64045 2007-10-20  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64048         gcc-3.4.x.
64049
64050 2007-10-20  Ben Pfaff  <blp@gnu.org>
64051
64052         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64053         implementations.
64054         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64055         * lib/round.c: New file.
64056         * lib/roundf.c: New file.
64057         * lib/roundl.c: New file.
64058         * m4/round.m4: New file.
64059         * m4/roundf.m4: New file.
64060         * m4/roundl.m4: New file.
64061         * m4/check-libm-func-m4: New file.
64062         * modules/math: Replace round, roundf, roundl related @VARS@ in
64063         math.in.h.
64064         * modules/round: New file.
64065         * modules/round-tests: New file.
64066         * modules/roundf: New file.
64067         * modules/roundf-tests: New file.
64068         * modules/roundl: New file.
64069         * modules/roundl-tests: New file.
64070         * tests/test-round1.c: New file.
64071         * tests/test-round2.c: New file.
64072         * tests/test-roundf1.c: New file.
64073         * tests/test-roundf2.c: New file.
64074         * tests/test-roundl.c: New file.
64075         * doc/functions/round.texi: Mention round module.
64076         * doc/functions/roundf.texi: Mention roundf module.
64077         * doc/functions/roundl.texi: Mention roundl module.
64078         * MODULES.html.sh: Mention new modules.
64079         Thanks to Bruno Haible for suggestions.
64080
64081 2007-10-20  Jim Meyering  <meyering@redhat.com>
64082
64083         * lib/xprintf.c: Include <config.h> unconditionally.
64084
64085         Change xprintf's license to GPL.
64086         * modules/xprintf (License): s/LGPL/GPL/, since this module
64087         depends on modules (exit and exitfail) which are GPL.
64088         Suggestion from Bruno Haible.
64089
64090         xprintf fixes.
64091         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64092         Use a clearer diagnostic.
64093         Patch from Bruno Haible.
64094
64095 2007-10-20  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64098         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64100
64101 2007-10-20  Bruno Haible  <bruno@clisp.org>
64102
64103         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64104         precision in the comparison result > x - 1 or similar.
64105         * tests/test-ceilf2.c (correct_result_p): Likewise.
64106         * tests/test-truncf2.c (correct_result_p): Likewise.
64107         * tests/test-trunc2.c (correct_result_p): Likewise.
64108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64109
64110 2007-10-20  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/ceil: New file.
64113         * m4/ceil.m4: New file.
64114         * doc/functions/ceil.texi: Mention the 'ceil' module.
64115
64116 2007-10-20  Bruno Haible  <bruno@clisp.org>
64117
64118         * modules/floor: New file.
64119         * m4/floor.m4: New file.
64120         * doc/functions/floor.texi: Mention the 'floor' module.
64121
64122 2007-10-20  Bruno Haible  <bruno@clisp.org>
64123
64124         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64125         of %a.
64126         * modules/floorf-tests (Depends-on): Likewise.
64127         * modules/truncf-tests (Depends-on): Likewise.
64128         * modules/trunc-tests (Depends-on): Likewise.
64129         Reported by Ben Pfaff.
64130
64131 2007-10-19  Jim Meyering  <meyering@redhat.com>
64132
64133         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64134         Don't bother testing specific errno values.  Just test ferror.
64135
64136         New module: xprintf
64137         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64138
64139 2007-10-19  Bruno Haible  <bruno@clisp.org>
64140
64141         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64142         syntax.
64143         * modules/javaexec (Makefile.am): Likewise.
64144         * modules/relocatable-prog (Makefile.am): Likewise.
64145         Suggested by Jim Meyering.
64146
64147 2007-10-18  Bruno Haible  <bruno@clisp.org>
64148
64149         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64150         Reported by Jim Meyering.
64151
64152 2007-10-18  Eric Blake  <ebb9@byu.net>
64153
64154         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64155
64156 2007-10-18  Bruno Haible  <bruno@clisp.org>
64157
64158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64159         the format string into writable memory. Needed in Fortify conditions.
64160
64161 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64162             Bruno Haible  <bruno@clisp.org>
64163
64164         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64165         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64166         * modules/trim (Depends-on): Add mbchar.
64167         (configure.ac): Add gl_FUNC_MBRTOWC.
64168         (Makefile.am): Augment lib_SOURCES.
64169
64170 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         Modify glob.c to use fstatat and dirfd, to simplify it.
64173         Suggested by Eric Blake.
64174         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64175         Don't include <stdbool.h>; not used.
64176         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64177         (link_exists_p): Simplify implementation, since we can now assume
64178         dirfd and fstatat.
64179         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64180
64181 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64182
64183         * gnulib-tool (func_get_dependencies): Fix sed script to
64184         match only tests.
64185
64186 2007-10-17  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64189         allow locale names without encoding suffix.
64190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64192
64193 2007-10-16  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64196         * lib/getgroups.c (getgroups): Likewise.
64197         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64198
64199 2007-10-16  Bruno Haible  <bruno@clisp.org>
64200
64201         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64202         * modules/malloc-posix (License): Likewise.
64203         * modules/realloc-posix (License): Likewise.
64204         * modules/calloc-posix (License): Likewise.
64205         * modules/intprops (License): Change from GPL to LGPL, with
64206         Paul Eggert's approval.
64207
64208 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64209
64210         Merge glibc changes into lib/glob.c.
64211
64212         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64213         2007-10-15 04:59:03 UTC.  Here are the changes:
64214
64215         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64216
64217         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64218
64219         * lib/glob.c: Add some branch prediction throughout.
64220
64221         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64222
64223         [BZ #5103]
64224         * lib/glob.c (glob): Recognize patterns starting \/.
64225
64226         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64227
64228         [BZ #3996]
64229         * lib/glob.c (attribute_hidden): Define if not defined.
64230         (glob): Unescape dirname, filename or username when needed and not
64231         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64232         is NULL.  Handle unescaped [ in pattern without closing ].
64233         Don't pass GLOB_CHECK down to recursive glob for directories.
64234         (__glob_pattern_type): New function.
64235         (__glob_pattern_p): Implement using __glob_pattern_type.
64236         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64237         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64238         Remove unreachable code.
64239
64240         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64241
64242         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64243         explain why there are no leaks.
64244
64245         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64246
64247         [BZ #3253]
64248         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64249         time, rather allocate increasingly bigger arrays of pointers, if
64250         possible with alloca, if too large with malloc.
64251
64252 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64255         Problem reported by H.Merijn Brand in
64256         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64258         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64259
64260 2007-10-15  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64263         with explicit rpl_ prefix.
64264         * lib/fopen.c (fopen): Likewise.
64265         * lib/freopen.c (freopen): Likewise.
64266         * lib/iconv.c (iconv): Likewise.
64267         * lib/iconv_close.c (iconv_close): Likewise.
64268
64269 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64270
64271         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64272
64273 2007-10-15  Bruno Haible  <bruno@clisp.org>
64274
64275         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64276         <stddef.h> instead of <stdlib.h> since we only need NULL.
64277         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64278
64279 2007-10-15  Bruno Haible  <bruno@clisp.org>
64280
64281         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64282         Replace paragraph talking about LIBOBJS.
64283         Reported by Colin Watson <cjwatson@debian.org>.
64284
64285 2007-10-15  Bruno Haible  <bruno@clisp.org>
64286
64287         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64288         <stdlib.h> before using NULL.
64289
64290 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64291
64292         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64293         Reported by Albert Chin <china@thewrittenword.com>.
64294
64295 2007-10-14  Bruno Haible  <bruno@clisp.org>
64296
64297         * modules/iconv_open-utf-tests: New file.
64298         * tests/test-iconv-utf.c: New file.
64299
64300         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64301         * modules/iconv_open-utf: New file.
64302         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64303         (iconv, iconv_close): New declarations.
64304         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64305         be defined.
64306         (iconv_open): Add special handling of conversion between UTF-8 and
64307         UTF-{16,32}{BE,LE}.
64308         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64309         * lib/iconv_close.c: New file.
64310         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64311         gl_FUNC_ICONV_OPEN.
64312         (gl_FUNC_ICONV_OPEN): Use it.
64313         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64314         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64315         and REPLACE_ICONV_UTF.
64316         * modules/iconv_open (Depends-on): Add c-strcase.
64317         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64318         ICONV_CONST.
64319         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64320
64321 2007-10-13  Albert Chin  <china@thewrittenword.com>
64322             Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64325         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64326
64327 2007-10-13  Bruno Haible  <bruno@clisp.org>
64328
64329         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64330         defined, use the ISO C99 inline semantics.
64331         * lib/argp.h (ARGP_EI): Likewise.
64332
64333 2007-10-13  Bruno Haible  <bruno@clisp.org>
64334
64335         Handle 'inline' change in gcc 4.3.0.
64336         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64337         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64338         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64339         argp_fmtstream_point): Disable 'extern' declaration if the function
64340         definition is going to be provided inline.
64341         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64342         semantics, not the ISO C99 inline semantics.
64343         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64344         'extern' declaration if the function definition is going to be provided
64345         inline.
64346         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64347         the GNU C inline semantics, not the ISO C99 inline semantics. With
64348         GCC 4.2, avoid a warning.
64349
64350 2007-10-13  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/freading.h (freading): Enable the use of __freading for
64353         glibc >= 2.7.
64354         * lib/freading.c (freading): Likewise.
64355
64356 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64359         "warning: C99 inline functions are not supported; using GNU89".
64360
64361 2007-10-12  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64364         of 2.
64365         * tests/test-ceilf2.c: New file.
64366         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64367
64368         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64369         * modules/ceilf-tests: Update.
64370
64371 2007-10-12  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64374         of 2.
64375         * tests/test-floorf2.c: New file.
64376         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64377
64378         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64379         * modules/floorf-tests: Update.
64380
64381 2007-10-12  Bruno Haible  <bruno@clisp.org>
64382
64383         * tests/test-trunc2.c: New file.
64384         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64385
64386         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64387         * modules/trunc-tests: Update.
64388
64389 2007-10-12  Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64392         of 2.
64393         * tests/test-truncf2.c: New file.
64394         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64395
64396         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64397         * modules/truncf-tests: Update.
64398
64399 2007-10-11  Eric Blake  <ebb9@byu.net>
64400
64401         Don't claim strerror is broken on Interix.
64402         * doc/functions/strerror.texi (strerror): Known broken systems are
64403         now Solaris 8, and not Interix.
64404         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64405         Interix on cross-compile.
64406         Reported by Martin Koeppe in
64407         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64408
64409 2007-10-11  Bruno Haible  <bruno@clisp.org>
64410
64411         * modules/i-ring-tests: New file.
64412         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64413         instead of assert.
64414
64415 2007-10-11  Bruno Haible  <bruno@clisp.org>
64416
64417         * modules/filenamecat-tests: New file.
64418         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64419         * lib/filenamecat.c: Remove test code.
64420
64421 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64424
64425         * lib/strerror.c: Include <string.h> always, to test interface,
64426         and to remove the need for the dummy.
64427         Include intprops.h to compute width instead of doing it ourselves
64428         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64429         (strerror): Define it to return NULL if there's no system strerror.
64430         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64431         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64432         ancient pre-strerror Unix systems well any more.  Saying "unknown
64433         system error" is enough.
64434         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64435         simpler strerror.c implementation.
64436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64437         Simplify the tests to reflect the simpler strerror implementation.
64438         * modules/strerror (Depends-on): Add intprops.
64439
64440 2007-10-09  Eric Blake  <ebb9@byu.net>
64441
64442         Silence test-fpending.
64443         * modules/fpending-tests (Files): Add wrapper script.
64444         * tests/test-fpending.sh: New file.
64445
64446 2007-10-09  Bruno Haible  <bruno@clisp.org>
64447
64448         * MODULES.html.sh (func_module): Don't create a hyperlink for
64449         function names like 'printf_frexp'.
64450         (Misc): Add crc, memxor.
64451         (Characteristics of floating types): New section.
64452         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64453         isnanf-nolibm, signbit, trunc, truncf, truncl.
64454         (Enhancements for ISO C 99 functions): New subsection Input/output.
64455         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64456         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64457         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64458         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64459         (Enhancements for POSIX:2001 functions): Add chdir-long.
64460         (File system functions): Add areadlink, chdir-safer, read-file.
64461         Remove cycle-check.
64462         (File system as inode set): New section.
64463         (Date and time): Add gethrxtime.
64464         (Multithreading): Add openmp.
64465         (Internationalization functions): Add localename.
64466         (Unicode string functions): Add unistr/u*-mbsnlen.
64467         (Support for maintaining and releasing projects): Add git-version-gen.
64468         (Lone files): Remove directories.
64469
64470 2007-10-08  Ben Pfaff  <blp@gnu.org>
64471
64472         * lib/xmalloca.h: Fix typo in comment.
64473
64474 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64475
64476         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64477         when avoiding problems with integer overflow.  Use a portable test
64478         instead.
64479
64480 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64481
64482         * modules/dummy (License): Change to LGPLv2+.
64483         * modules/float (License): Likewise
64484         * modules/realloc (License): Likewise
64485         * modules/stdlib (License): Likewise
64486
64487 2007-10-07  Bruno Haible  <bruno@clisp.org>
64488
64489         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64490         * floor.c (TWO_MANT_DIG): Likewise.
64491         * ceil.c (TWO_MANT_DIG): Likewise.
64492         Reported by Ben Pfaff.
64493
64494 2007-10-07  Bruno Haible  <bruno@clisp.org>
64495
64496         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64497         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64498         * lib/frexp.c (FUNC): Likewise.
64499         * lib/printf-frexp.h (printf_frexp): Likewise.
64500         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64501         * lib/printf-frexp.c (FUNC): Likewise.
64502         Suggested by Jim Meyering.
64503
64504 2007-10-07  Jim Meyering  <meyering@redhat.com>
64505
64506         Make xnanosleep's integer overflow test more robust.
64507         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64508         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64509
64510 2007-10-07  Bruno Haible  <bruno@clisp.org>
64511
64512         * NEWS: Mention the license change.
64513
64514         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64515         abbreviations in the modules files.
64516
64517         Change copyright notice from GPLv2+ to GPLv3+.
64518         * README: Change copyright notice.
64519         * MODULES.html.sh: Likewise.
64520         * build-aux/bootstrap.conf: Likewise.
64521         * build-aux/config.libpath: Likewise.
64522         * build-aux/csharpcomp.sh.in: Likewise.
64523         * build-aux/csharpexec.sh.in: Likewise.
64524         * build-aux/install-reloc: Likewise.
64525         * build-aux/javacomp.sh.in: Likewise.
64526         * build-aux/javaexec.sh.in: Likewise.
64527         * build-aux/ldd.sh.in: Likewise.
64528         * build-aux/reloc-ldflags: Likewise.
64529         * build-aux/relocatable.sh.in: Likewise.
64530         * build-aux/x-to-1.in: Likewise.
64531         * check-module: Likewise.
64532         * config/srclistvars.sh: Likewise.
64533         * gnulib-tool: Likewise.
64534         * lib/acl-internal.h: Likewise.
64535         * lib/acl.c: Likewise.
64536         * lib/acl.h: Likewise.
64537         * lib/acl_entries.c: Likewise.
64538         * lib/areadlink-with-size.c: Likewise.
64539         * lib/areadlink.c: Likewise.
64540         * lib/areadlink.h: Likewise.
64541         * lib/argmatch.c: Likewise.
64542         * lib/argmatch.h: Likewise.
64543         * lib/argp-ba.c: Likewise.
64544         * lib/argp-eexst.c: Likewise.
64545         * lib/argp-fmtstream.c: Likewise.
64546         * lib/argp-fmtstream.h: Likewise.
64547         * lib/argp-fs-xinl.c: Likewise.
64548         * lib/argp-help.c: Likewise.
64549         * lib/argp-namefrob.h: Likewise.
64550         * lib/argp-parse.c: Likewise.
64551         * lib/argp-pin.c: Likewise.
64552         * lib/argp-pv.c: Likewise.
64553         * lib/argp-pvh.c: Likewise.
64554         * lib/argp-xinl.c: Likewise.
64555         * lib/argp.h: Likewise.
64556         * lib/at-func.c: Likewise.
64557         * lib/atanl.c: Likewise.
64558         * lib/backupfile.c: Likewise.
64559         * lib/backupfile.h: Likewise.
64560         * lib/basename.c: Likewise.
64561         * lib/binary-io.h: Likewise.
64562         * lib/byteswap.in.h: Likewise.
64563         * lib/c-stack.c: Likewise.
64564         * lib/c-stack.h: Likewise.
64565         * lib/c-strcasestr.c: Likewise.
64566         * lib/c-strcasestr.h: Likewise.
64567         * lib/c-strstr.c: Likewise.
64568         * lib/c-strstr.h: Likewise.
64569         * lib/c-strtod.c: Likewise.
64570         * lib/calloc.c: Likewise.
64571         * lib/canon-host.c: Likewise.
64572         * lib/canon-host.h: Likewise.
64573         * lib/canonicalize-lgpl.c: Likewise.
64574         * lib/canonicalize.c: Likewise.
64575         * lib/canonicalize.h: Likewise.
64576         * lib/ceil.c: Likewise.
64577         * lib/ceilf.c: Likewise.
64578         * lib/ceill.c: Likewise.
64579         * lib/chdir-long.c: Likewise.
64580         * lib/chdir-long.h: Likewise.
64581         * lib/chdir-safer.c: Likewise.
64582         * lib/chdir-safer.h: Likewise.
64583         * lib/chown.c: Likewise.
64584         * lib/classpath.c: Likewise.
64585         * lib/classpath.h: Likewise.
64586         * lib/clean-temp.c: Likewise.
64587         * lib/clean-temp.h: Likewise.
64588         * lib/cloexec.c: Likewise.
64589         * lib/close-stream.c: Likewise.
64590         * lib/closein.c: Likewise.
64591         * lib/closein.h: Likewise.
64592         * lib/closeout.c: Likewise.
64593         * lib/closeout.h: Likewise.
64594         * lib/concat-filename.c: Likewise.
64595         * lib/copy-file.c: Likewise.
64596         * lib/copy-file.h: Likewise.
64597         * lib/count-one-bits.h: Likewise.
64598         * lib/crc.c: Likewise.
64599         * lib/crc.h: Likewise.
64600         * lib/creat-safer.c: Likewise.
64601         * lib/csharpcomp.c: Likewise.
64602         * lib/csharpcomp.h: Likewise.
64603         * lib/csharpexec.c: Likewise.
64604         * lib/csharpexec.h: Likewise.
64605         * lib/cycle-check.c: Likewise.
64606         * lib/cycle-check.h: Likewise.
64607         * lib/diacrit.c: Likewise.
64608         * lib/diacrit.h: Likewise.
64609         * lib/diffseq.h: Likewise.
64610         * lib/dirchownmod.c: Likewise.
64611         * lib/dirent.in.h: Likewise.
64612         * lib/dirfd.c: Likewise.
64613         * lib/dirfd.h: Likewise.
64614         * lib/dirname.c: Likewise.
64615         * lib/dirname.h: Likewise.
64616         * lib/dummy.c: Likewise.
64617         * lib/dup-safer.c: Likewise.
64618         * lib/dup2.c: Likewise.
64619         * lib/eealloc.h: Likewise.
64620         * lib/error.c: Likewise.
64621         * lib/error.h: Likewise.
64622         * lib/euidaccess.c: Likewise.
64623         * lib/exclude.c: Likewise.
64624         * lib/exclude.h: Likewise.
64625         * lib/execute.c: Likewise.
64626         * lib/execute.h: Likewise.
64627         * lib/exitfail.c: Likewise.
64628         * lib/exitfail.h: Likewise.
64629         * lib/expl.c: Likewise.
64630         * lib/fatal-signal.c: Likewise.
64631         * lib/fatal-signal.h: Likewise.
64632         * lib/fbufmode.c: Likewise.
64633         * lib/fbufmode.h: Likewise.
64634         * lib/fchdir.c: Likewise.
64635         * lib/fchmodat.c: Likewise.
64636         * lib/fchownat.c: Likewise.
64637         * lib/fcntl--.h: Likewise.
64638         * lib/fcntl-safer.h: Likewise.
64639         * lib/fcntl.in.h: Likewise.
64640         * lib/fd-safer.c: Likewise.
64641         * lib/fflush.c: Likewise.
64642         * lib/file-has-acl.c: Likewise.
64643         * lib/file-set.c: Likewise.
64644         * lib/file-type.c: Likewise.
64645         * lib/file-type.h: Likewise.
64646         * lib/fileblocks.c: Likewise.
64647         * lib/filemode.c: Likewise.
64648         * lib/filemode.h: Likewise.
64649         * lib/filename.h: Likewise.
64650         * lib/filenamecat.c: Likewise.
64651         * lib/filenamecat.h: Likewise.
64652         * lib/findprog.c: Likewise.
64653         * lib/findprog.h: Likewise.
64654         * lib/float.in.h: Likewise.
64655         * lib/floor.c: Likewise.
64656         * lib/floorf.c: Likewise.
64657         * lib/floorl.c: Likewise.
64658         * lib/fopen-safer.c: Likewise.
64659         * lib/fopen.c: Likewise.
64660         * lib/fpending.c: Likewise.
64661         * lib/fpending.h: Likewise.
64662         * lib/fprintf.c: Likewise.
64663         * lib/fprintftime.h: Likewise.
64664         * lib/fpucw.h: Likewise.
64665         * lib/fpurge.c: Likewise.
64666         * lib/fpurge.h: Likewise.
64667         * lib/freadable.c: Likewise.
64668         * lib/freadable.h: Likewise.
64669         * lib/freadahead.c: Likewise.
64670         * lib/freadahead.h: Likewise.
64671         * lib/freading.c: Likewise.
64672         * lib/freading.h: Likewise.
64673         * lib/free.c: Likewise.
64674         * lib/freopen.c: Likewise.
64675         * lib/frexp.c: Likewise.
64676         * lib/frexpl.c: Likewise.
64677         * lib/fseek.c: Likewise.
64678         * lib/fseterr.c: Likewise.
64679         * lib/fseterr.h: Likewise.
64680         * lib/fstatat.c: Likewise.
64681         * lib/fstrcmp.c: Likewise.
64682         * lib/fstrcmp.h: Likewise.
64683         * lib/fsusage.c: Likewise.
64684         * lib/fsusage.h: Likewise.
64685         * lib/ftell.c: Likewise.
64686         * lib/ftello.c: Likewise.
64687         * lib/fts-cycle.c: Likewise.
64688         * lib/fts.c: Likewise.
64689         * lib/fts_.h: Likewise.
64690         * lib/full-read.c: Likewise.
64691         * lib/full-read.h: Likewise.
64692         * lib/full-write.c: Likewise.
64693         * lib/full-write.h: Likewise.
64694         * lib/fwritable.c: Likewise.
64695         * lib/fwritable.h: Likewise.
64696         * lib/fwriteerror.c: Likewise.
64697         * lib/fwriteerror.h: Likewise.
64698         * lib/fwriting.c: Likewise.
64699         * lib/fwriting.h: Likewise.
64700         * lib/gcd.c: Likewise.
64701         * lib/gcd.h: Likewise.
64702         * lib/getcwd.c: Likewise.
64703         * lib/getdate.h: Likewise.
64704         * lib/getdate.y: Likewise.
64705         * lib/getdomainname.c: Likewise.
64706         * lib/getdomainname.h: Likewise.
64707         * lib/getgroups.c: Likewise.
64708         * lib/gethostname.c: Likewise.
64709         * lib/gethrxtime.c: Likewise.
64710         * lib/gethrxtime.h: Likewise.
64711         * lib/getloadavg.c: Likewise.
64712         * lib/getndelim2.c: Likewise.
64713         * lib/getndelim2.h: Likewise.
64714         * lib/getnline.c: Likewise.
64715         * lib/getnline.h: Likewise.
64716         * lib/getopt.c: Likewise.
64717         * lib/getopt.in.h: Likewise.
64718         * lib/getopt1.c: Likewise.
64719         * lib/getopt_int.h: Likewise.
64720         * lib/getpagesize.h: Likewise.
64721         * lib/getsubopt.c: Likewise.
64722         * lib/gettime.c: Likewise.
64723         * lib/getugroups.c: Likewise.
64724         * lib/getugroups.h: Likewise.
64725         * lib/getusershell.c: Likewise.
64726         * lib/gl_anyavltree_list1.h: Likewise.
64727         * lib/gl_anyavltree_list2.h: Likewise.
64728         * lib/gl_anyhash_list1.h: Likewise.
64729         * lib/gl_anyhash_list2.h: Likewise.
64730         * lib/gl_anylinked_list1.h: Likewise.
64731         * lib/gl_anylinked_list2.h: Likewise.
64732         * lib/gl_anyrbtree_list1.h: Likewise.
64733         * lib/gl_anyrbtree_list2.h: Likewise.
64734         * lib/gl_anytree_list1.h: Likewise.
64735         * lib/gl_anytree_list2.h: Likewise.
64736         * lib/gl_anytree_oset.h: Likewise.
64737         * lib/gl_anytreehash_list1.h: Likewise.
64738         * lib/gl_anytreehash_list2.h: Likewise.
64739         * lib/gl_array_list.c: Likewise.
64740         * lib/gl_array_list.h: Likewise.
64741         * lib/gl_array_oset.c: Likewise.
64742         * lib/gl_array_oset.h: Likewise.
64743         * lib/gl_avltree_list.c: Likewise.
64744         * lib/gl_avltree_list.h: Likewise.
64745         * lib/gl_avltree_oset.c: Likewise.
64746         * lib/gl_avltree_oset.h: Likewise.
64747         * lib/gl_avltreehash_list.c: Likewise.
64748         * lib/gl_avltreehash_list.h: Likewise.
64749         * lib/gl_carray_list.c: Likewise.
64750         * lib/gl_carray_list.h: Likewise.
64751         * lib/gl_linked_list.c: Likewise.
64752         * lib/gl_linked_list.h: Likewise.
64753         * lib/gl_linkedhash_list.c: Likewise.
64754         * lib/gl_linkedhash_list.h: Likewise.
64755         * lib/gl_list.c: Likewise.
64756         * lib/gl_list.h: Likewise.
64757         * lib/gl_oset.c: Likewise.
64758         * lib/gl_oset.h: Likewise.
64759         * lib/gl_rbtree_list.c: Likewise.
64760         * lib/gl_rbtree_list.h: Likewise.
64761         * lib/gl_rbtree_oset.c: Likewise.
64762         * lib/gl_rbtree_oset.h: Likewise.
64763         * lib/gl_rbtreehash_list.c: Likewise.
64764         * lib/gl_rbtreehash_list.h: Likewise.
64765         * lib/gl_sublist.c: Likewise.
64766         * lib/gl_sublist.h: Likewise.
64767         * lib/group-member.c: Likewise.
64768         * lib/group-member.h: Likewise.
64769         * lib/hard-locale.c: Likewise.
64770         * lib/hard-locale.h: Likewise.
64771         * lib/hash-pjw.c: Likewise.
64772         * lib/hash-pjw.h: Likewise.
64773         * lib/hash-triple.c: Likewise.
64774         * lib/hash.c: Likewise.
64775         * lib/hash.h: Likewise.
64776         * lib/human.c: Likewise.
64777         * lib/human.h: Likewise.
64778         * lib/i-ring.c: Likewise.
64779         * lib/i-ring.h: Likewise.
64780         * lib/idcache.c: Likewise.
64781         * lib/imaxabs.c: Likewise.
64782         * lib/imaxdiv.c: Likewise.
64783         * lib/inet_pton.c: Likewise.
64784         * lib/inet_pton.h: Likewise.
64785         * lib/intprops.h: Likewise.
64786         * lib/inttostr.c: Likewise.
64787         * lib/inttostr.h: Likewise.
64788         * lib/inttypes.in.h: Likewise.
64789         * lib/isapipe.c: Likewise.
64790         * lib/isdir.c: Likewise.
64791         * lib/isnan.c: Likewise.
64792         * lib/isnan.h: Likewise.
64793         * lib/isnanf.c: Likewise.
64794         * lib/isnanf.h: Likewise.
64795         * lib/isnanl-nolibm.h: Likewise.
64796         * lib/isnanl.c: Likewise.
64797         * lib/isnanl.h: Likewise.
64798         * lib/javacomp.c: Likewise.
64799         * lib/javacomp.h: Likewise.
64800         * lib/javaexec.c: Likewise.
64801         * lib/javaexec.h: Likewise.
64802         * lib/javaversion.c: Likewise.
64803         * lib/javaversion.h: Likewise.
64804         * lib/javaversion.java: Likewise.
64805         * lib/lbrkprop.h: Likewise.
64806         * lib/lchmod.h: Likewise.
64807         * lib/lchown.c: Likewise.
64808         * lib/ldexpl.c: Likewise.
64809         * lib/linebreak.c: Likewise.
64810         * lib/linebreak.h: Likewise.
64811         * lib/linebuffer.c: Likewise.
64812         * lib/linebuffer.h: Likewise.
64813         * lib/locale.in.h: Likewise.
64814         * lib/logl.c: Likewise.
64815         * lib/long-options.c: Likewise.
64816         * lib/long-options.h: Likewise.
64817         * lib/lstat.c: Likewise.
64818         * lib/lstat.h: Likewise.
64819         * lib/math.in.h: Likewise.
64820         * lib/mbchar.c: Likewise.
64821         * lib/mbchar.h: Likewise.
64822         * lib/mbfile.h: Likewise.
64823         * lib/mbiter.h: Likewise.
64824         * lib/mbscasecmp.c: Likewise.
64825         * lib/mbscasestr.c: Likewise.
64826         * lib/mbschr.c: Likewise.
64827         * lib/mbscspn.c: Likewise.
64828         * lib/mbslen.c: Likewise.
64829         * lib/mbsncasecmp.c: Likewise.
64830         * lib/mbsnlen.c: Likewise.
64831         * lib/mbspbrk.c: Likewise.
64832         * lib/mbspcasecmp.c: Likewise.
64833         * lib/mbsrchr.c: Likewise.
64834         * lib/mbssep.c: Likewise.
64835         * lib/mbsspn.c: Likewise.
64836         * lib/mbsstr.c: Likewise.
64837         * lib/mbstok_r.c: Likewise.
64838         * lib/mbswidth.c: Likewise.
64839         * lib/mbswidth.h: Likewise.
64840         * lib/mbuiter.h: Likewise.
64841         * lib/memcasecmp.c: Likewise.
64842         * lib/memcasecmp.h: Likewise.
64843         * lib/memchr.c: Likewise.
64844         * lib/memcmp.c: Likewise.
64845         * lib/memcoll.c: Likewise.
64846         * lib/memcoll.h: Likewise.
64847         * lib/memcpy.c: Likewise.
64848         * lib/memrchr.c: Likewise.
64849         * lib/mkancesdirs.c: Likewise.
64850         * lib/mkdir-p.c: Likewise.
64851         * lib/mkdir-p.h: Likewise.
64852         * lib/mkdir.c: Likewise.
64853         * lib/mkdirat.c: Likewise.
64854         * lib/mkdtemp.c: Likewise.
64855         * lib/mkstemp-safer.c: Likewise.
64856         * lib/mkstemp.c: Likewise.
64857         * lib/modechange.c: Likewise.
64858         * lib/modechange.h: Likewise.
64859         * lib/mountlist.c: Likewise.
64860         * lib/mountlist.h: Likewise.
64861         * lib/mpsort.c: Likewise.
64862         * lib/nanosleep.c: Likewise.
64863         * lib/obstack.c: Likewise.
64864         * lib/obstack.h: Likewise.
64865         * lib/open-safer.c: Likewise.
64866         * lib/open.c: Likewise.
64867         * lib/openat-die.c: Likewise.
64868         * lib/openat-priv.h: Likewise.
64869         * lib/openat-proc.c: Likewise.
64870         * lib/openat.c: Likewise.
64871         * lib/openat.h: Likewise.
64872         * lib/pagealign_alloc.c: Likewise.
64873         * lib/pagealign_alloc.h: Likewise.
64874         * lib/physmem.c: Likewise.
64875         * lib/physmem.h: Likewise.
64876         * lib/pipe-safer.c: Likewise.
64877         * lib/pipe.c: Likewise.
64878         * lib/pipe.h: Likewise.
64879         * lib/posixtm.c: Likewise.
64880         * lib/posixtm.h: Likewise.
64881         * lib/posixver.c: Likewise.
64882         * lib/printf-frexp.c: Likewise.
64883         * lib/printf-frexp.h: Likewise.
64884         * lib/printf-frexpl.c: Likewise.
64885         * lib/printf-frexpl.h: Likewise.
64886         * lib/printf.c: Likewise.
64887         * lib/progname.c: Likewise.
64888         * lib/progname.h: Likewise.
64889         * lib/progreloc.c: Likewise.
64890         * lib/putenv.c: Likewise.
64891         * lib/quote.c: Likewise.
64892         * lib/quote.h: Likewise.
64893         * lib/quotearg.c: Likewise.
64894         * lib/quotearg.h: Likewise.
64895         * lib/raise.c: Likewise.
64896         * lib/readline.c: Likewise.
64897         * lib/readline.h: Likewise.
64898         * lib/readlink.c: Likewise.
64899         * lib/readtokens.c: Likewise.
64900         * lib/readtokens.h: Likewise.
64901         * lib/readtokens0.c: Likewise.
64902         * lib/readtokens0.h: Likewise.
64903         * lib/readutmp.c: Likewise.
64904         * lib/readutmp.h: Likewise.
64905         * lib/realloc.c: Likewise.
64906         * lib/relocwrapper.c: Likewise.
64907         * lib/rename-dest-slash.c: Likewise.
64908         * lib/rename.c: Likewise.
64909         * lib/rmdir.c: Likewise.
64910         * lib/rpmatch.c: Likewise.
64911         * lib/safe-read.c: Likewise.
64912         * lib/safe-read.h: Likewise.
64913         * lib/safe-write.c: Likewise.
64914         * lib/safe-write.h: Likewise.
64915         * lib/same-inode.h: Likewise.
64916         * lib/same.c: Likewise.
64917         * lib/same.h: Likewise.
64918         * lib/save-cwd.c: Likewise.
64919         * lib/save-cwd.h: Likewise.
64920         * lib/savedir.c: Likewise.
64921         * lib/savedir.h: Likewise.
64922         * lib/savewd.c: Likewise.
64923         * lib/savewd.h: Likewise.
64924         * lib/search.in.h: Likewise.
64925         * lib/setenv.c: Likewise.
64926         * lib/setenv.h: Likewise.
64927         * lib/settime.c: Likewise.
64928         * lib/sh-quote.c: Likewise.
64929         * lib/sh-quote.h: Likewise.
64930         * lib/sig2str.c: Likewise.
64931         * lib/sig2str.h: Likewise.
64932         * lib/signal.in.h: Likewise.
64933         * lib/signbitd.c: Likewise.
64934         * lib/signbitf.c: Likewise.
64935         * lib/signbitl.c: Likewise.
64936         * lib/sigprocmask.c: Likewise.
64937         * lib/sincosl.c: Likewise.
64938         * lib/sleep.c: Likewise.
64939         * lib/sprintf.c: Likewise.
64940         * lib/sqrtl.c: Likewise.
64941         * lib/stat-time.h: Likewise.
64942         * lib/stdio--.h: Likewise.
64943         * lib/stdio-safer.h: Likewise.
64944         * lib/stdlib--.h: Likewise.
64945         * lib/stdlib-safer.h: Likewise.
64946         * lib/stdlib.in.h: Likewise.
64947         * lib/stpcpy.c: Likewise.
64948         * lib/stpncpy.c: Likewise.
64949         * lib/strchrnul.c: Likewise.
64950         * lib/strcspn.c: Likewise.
64951         * lib/strerror.c: Likewise.
64952         * lib/strftime.c: Likewise.
64953         * lib/strftime.h: Likewise.
64954         * lib/striconveh.c: Likewise.
64955         * lib/striconveh.h: Likewise.
64956         * lib/striconveha.c: Likewise.
64957         * lib/striconveha.h: Likewise.
64958         * lib/stripslash.c: Likewise.
64959         * lib/strnlen1.c: Likewise.
64960         * lib/strnlen1.h: Likewise.
64961         * lib/strtod.c: Likewise.
64962         * lib/strtoimax.c: Likewise.
64963         * lib/strtok_r.c: Likewise.
64964         * lib/strtol.c: Likewise.
64965         * lib/strtoll.c: Likewise.
64966         * lib/strtoul.c: Likewise.
64967         * lib/strtoull.c: Likewise.
64968         * lib/sysexits.in.h: Likewise.
64969         * lib/tempname.c: Likewise.
64970         * lib/tempname.h: Likewise.
64971         * lib/timespec.h: Likewise.
64972         * lib/tls.c: Likewise.
64973         * lib/tls.h: Likewise.
64974         * lib/tmpdir.c: Likewise.
64975         * lib/tmpdir.h: Likewise.
64976         * lib/tmpfile-safer.c: Likewise.
64977         * lib/tmpfile.c: Likewise.
64978         * lib/trigl.c: Likewise.
64979         * lib/trigl.h: Likewise.
64980         * lib/trim.c: Likewise.
64981         * lib/trim.h: Likewise.
64982         * lib/trunc.c: Likewise.
64983         * lib/truncf.c: Likewise.
64984         * lib/truncl.c: Likewise.
64985         * lib/tsearch.c: Likewise.
64986         * lib/unicodeio.c: Likewise.
64987         * lib/unicodeio.h: Likewise.
64988         * lib/unistd--.h: Likewise.
64989         * lib/unistd-safer.h: Likewise.
64990         * lib/unistdio/ulc-fprintf.c: Likewise.
64991         * lib/unistdio/ulc-vfprintf.c: Likewise.
64992         * lib/unlinkdir.c: Likewise.
64993         * lib/unlinkdir.h: Likewise.
64994         * lib/unlocked-io.h: Likewise.
64995         * lib/unsetenv.c: Likewise.
64996         * lib/userspec.c: Likewise.
64997         * lib/utime.c: Likewise.
64998         * lib/utimecmp.c: Likewise.
64999         * lib/utimecmp.h: Likewise.
65000         * lib/utimens.c: Likewise.
65001         * lib/verify.h: Likewise.
65002         * lib/verror.c: Likewise.
65003         * lib/verror.h: Likewise.
65004         * lib/version-etc-fsf.c: Likewise.
65005         * lib/version-etc.c: Likewise.
65006         * lib/version-etc.h: Likewise.
65007         * lib/vfprintf.c: Likewise.
65008         * lib/vprintf.c: Likewise.
65009         * lib/vsprintf.c: Likewise.
65010         * lib/w32spawn.h: Likewise.
65011         * lib/wait-process.c: Likewise.
65012         * lib/wait-process.h: Likewise.
65013         * lib/wcwidth.c: Likewise.
65014         * lib/write-any-file.c: Likewise.
65015         * lib/xalloc-die.c: Likewise.
65016         * lib/xalloc.h: Likewise.
65017         * lib/xasprintf.c: Likewise.
65018         * lib/xgetcwd.c: Likewise.
65019         * lib/xgetcwd.h: Likewise.
65020         * lib/xgetdomainname.c: Likewise.
65021         * lib/xgetdomainname.h: Likewise.
65022         * lib/xgethostname.c: Likewise.
65023         * lib/xmalloc.c: Likewise.
65024         * lib/xmalloca.c: Likewise.
65025         * lib/xmalloca.h: Likewise.
65026         * lib/xmemcoll.c: Likewise.
65027         * lib/xnanosleep.c: Likewise.
65028         * lib/xreadlink.c: Likewise.
65029         * lib/xreadlink.h: Likewise.
65030         * lib/xsetenv.c: Likewise.
65031         * lib/xsetenv.h: Likewise.
65032         * lib/xstriconv.c: Likewise.
65033         * lib/xstriconv.h: Likewise.
65034         * lib/xstrndup.c: Likewise.
65035         * lib/xstrndup.h: Likewise.
65036         * lib/xstrtod.c: Likewise.
65037         * lib/xstrtod.h: Likewise.
65038         * lib/xstrtol-error.c: Likewise.
65039         * lib/xstrtol.c: Likewise.
65040         * lib/xstrtol.h: Likewise.
65041         * lib/xtime.h: Likewise.
65042         * lib/xvasprintf.c: Likewise.
65043         * lib/xvasprintf.h: Likewise.
65044         * lib/yesno.c: Likewise.
65045         * lib/yesno.h: Likewise.
65046         * posix-modules: Likewise.
65047         * tests/test-alloca-opt.c: Likewise.
65048         * tests/test-arcfour.c: Likewise.
65049         * tests/test-arctwo.c: Likewise.
65050         * tests/test-argmatch.c: Likewise.
65051         * tests/test-argp-2.sh: Likewise.
65052         * tests/test-argp.c: Likewise.
65053         * tests/test-arpa_inet.c: Likewise.
65054         * tests/test-array_list.c: Likewise.
65055         * tests/test-array_oset.c: Likewise.
65056         * tests/test-atexit.c: Likewise.
65057         * tests/test-avltree_list.c: Likewise.
65058         * tests/test-avltree_oset.c: Likewise.
65059         * tests/test-avltreehash_list.c: Likewise.
65060         * tests/test-base64.c: Likewise.
65061         * tests/test-binary-io.c: Likewise.
65062         * tests/test-byteswap.c: Likewise.
65063         * tests/test-c-ctype.c: Likewise.
65064         * tests/test-c-strcasecmp.c: Likewise.
65065         * tests/test-c-strcasestr.c: Likewise.
65066         * tests/test-c-strncasecmp.c: Likewise.
65067         * tests/test-c-strstr.c: Likewise.
65068         * tests/test-canonicalize-lgpl.c: Likewise.
65069         * tests/test-canonicalize.c: Likewise.
65070         * tests/test-carray_list.c: Likewise.
65071         * tests/test-ceilf.c: Likewise.
65072         * tests/test-ceill.c: Likewise.
65073         * tests/test-count-one-bits.c: Likewise.
65074         * tests/test-crc.c: Likewise.
65075         * tests/test-dirname.c: Likewise.
65076         * tests/test-fbufmode.c: Likewise.
65077         * tests/test-fcntl.c: Likewise.
65078         * tests/test-fflush.c: Likewise.
65079         * tests/test-floorf.c: Likewise.
65080         * tests/test-floorl.c: Likewise.
65081         * tests/test-fopen.c: Likewise.
65082         * tests/test-fprintf-posix.c: Likewise.
65083         * tests/test-fprintf-posix.h: Likewise.
65084         * tests/test-fpurge.c: Likewise.
65085         * tests/test-freadable.c: Likewise.
65086         * tests/test-freadahead.c: Likewise.
65087         * tests/test-freading.c: Likewise.
65088         * tests/test-freopen.c: Likewise.
65089         * tests/test-frexp.c: Likewise.
65090         * tests/test-frexpl.c: Likewise.
65091         * tests/test-fseek.c: Likewise.
65092         * tests/test-fseeko.c: Likewise.
65093         * tests/test-fseterr.c: Likewise.
65094         * tests/test-fstrcmp.c: Likewise.
65095         * tests/test-ftell.c: Likewise.
65096         * tests/test-ftello.c: Likewise.
65097         * tests/test-fwritable.c: Likewise.
65098         * tests/test-fwriting.c: Likewise.
65099         * tests/test-getaddrinfo.c: Likewise.
65100         * tests/test-getpass.c: Likewise.
65101         * tests/test-gettimeofday.c: Likewise.
65102         * tests/test-hmac-md5.c: Likewise.
65103         * tests/test-hmac-sha1.c: Likewise.
65104         * tests/test-iconv.c: Likewise.
65105         * tests/test-iconvme.c: Likewise.
65106         * tests/test-inttypes.c: Likewise.
65107         * tests/test-isnan.c: Likewise.
65108         * tests/test-isnanf.c: Likewise.
65109         * tests/test-isnanl-nolibm.c: Likewise.
65110         * tests/test-isnanl.c: Likewise.
65111         * tests/test-isnanl.h: Likewise.
65112         * tests/test-ldexpl.c: Likewise.
65113         * tests/test-linked_list.c: Likewise.
65114         * tests/test-linkedhash_list.c: Likewise.
65115         * tests/test-locale.c: Likewise.
65116         * tests/test-localename.c: Likewise.
65117         * tests/test-lock.c: Likewise.
65118         * tests/test-lseek.c: Likewise.
65119         * tests/test-malloca.c: Likewise.
65120         * tests/test-math.c: Likewise.
65121         * tests/test-mbscasecmp.c: Likewise.
65122         * tests/test-mbscasestr1.c: Likewise.
65123         * tests/test-mbscasestr2.c: Likewise.
65124         * tests/test-mbscasestr3.c: Likewise.
65125         * tests/test-mbscasestr4.c: Likewise.
65126         * tests/test-mbschr.c: Likewise.
65127         * tests/test-mbscspn.c: Likewise.
65128         * tests/test-mbsncasecmp.c: Likewise.
65129         * tests/test-mbspbrk.c: Likewise.
65130         * tests/test-mbspcasecmp.c: Likewise.
65131         * tests/test-mbsrchr.c: Likewise.
65132         * tests/test-mbsspn.c: Likewise.
65133         * tests/test-mbsstr1.c: Likewise.
65134         * tests/test-mbsstr2.c: Likewise.
65135         * tests/test-mbsstr3.c: Likewise.
65136         * tests/test-md5.c: Likewise.
65137         * tests/test-memmem.c: Likewise.
65138         * tests/test-netinet_in.c: Likewise.
65139         * tests/test-open.c: Likewise.
65140         * tests/test-printf-frexp.c: Likewise.
65141         * tests/test-printf-frexpl.c: Likewise.
65142         * tests/test-printf-posix.c: Likewise.
65143         * tests/test-printf-posix.h: Likewise.
65144         * tests/test-rbtree_list.c: Likewise.
65145         * tests/test-rbtree_oset.c: Likewise.
65146         * tests/test-rbtreehash_list.c: Likewise.
65147         * tests/test-read-file.c: Likewise.
65148         * tests/test-rijndael.c: Likewise.
65149         * tests/test-search.c: Likewise.
65150         * tests/test-signbit.c: Likewise.
65151         * tests/test-sleep.c: Likewise.
65152         * tests/test-snprintf-posix.c: Likewise.
65153         * tests/test-snprintf-posix.h: Likewise.
65154         * tests/test-snprintf.c: Likewise.
65155         * tests/test-sprintf-posix.c: Likewise.
65156         * tests/test-sprintf-posix.h: Likewise.
65157         * tests/test-stat-time.c: Likewise.
65158         * tests/test-stdbool.c: Likewise.
65159         * tests/test-stdint.c: Likewise.
65160         * tests/test-stdio.c: Likewise.
65161         * tests/test-stdlib.c: Likewise.
65162         * tests/test-stpncpy.c: Likewise.
65163         * tests/test-strcasestr.c: Likewise.
65164         * tests/test-striconv.c: Likewise.
65165         * tests/test-striconveh.c: Likewise.
65166         * tests/test-striconveha.c: Likewise.
65167         * tests/test-string.c: Likewise.
65168         * tests/test-sys_select.c: Likewise.
65169         * tests/test-sys_socket.c: Likewise.
65170         * tests/test-sys_stat.c: Likewise.
65171         * tests/test-sys_time.c: Likewise.
65172         * tests/test-sysexits.c: Likewise.
65173         * tests/test-time.c: Likewise.
65174         * tests/test-tls.c: Likewise.
65175         * tests/test-trunc.c: Likewise.
65176         * tests/test-truncf.c: Likewise.
65177         * tests/test-truncl.c: Likewise.
65178         * tests/test-unistd.c: Likewise.
65179         * tests/test-vasnprintf-posix.c: Likewise.
65180         * tests/test-vasnprintf-posix2.c: Likewise.
65181         * tests/test-vasnprintf.c: Likewise.
65182         * tests/test-vasprintf-posix.c: Likewise.
65183         * tests/test-vasprintf.c: Likewise.
65184         * tests/test-verify.c: Likewise.
65185         * tests/test-vfprintf-posix.c: Likewise.
65186         * tests/test-vprintf-posix.c: Likewise.
65187         * tests/test-vsnprintf-posix.c: Likewise.
65188         * tests/test-vsnprintf.c: Likewise.
65189         * tests/test-vsprintf-posix.c: Likewise.
65190         * tests/test-wchar.c: Likewise.
65191         * tests/test-wctype.c: Likewise.
65192         * tests/test-wcwidth.c: Likewise.
65193         * tests/test-xstrtol.c: Likewise.
65194         * tests/test-xvasprintf.c: Likewise.
65195         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65196         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65197         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65198         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65199         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65200         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65201         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65202         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65203         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65204         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65205         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65206         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65207         * tests/uniname/test-uninames.c: Likewise.
65208         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65209         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65210         * tests/unistdio/test-u16-printf1.h: Likewise.
65211         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65212         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65213         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65214         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65215         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65216         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65217         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65218         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65219         * tests/unistdio/test-u32-printf1.h: Likewise.
65220         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65221         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65222         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65223         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65224         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65225         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65226         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65227         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65228         * tests/unistdio/test-u8-printf1.h: Likewise.
65229         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65230         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65231         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65232         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65233         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65234         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65235         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65236         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65237         * tests/unistdio/test-ulc-printf1.h: Likewise.
65238         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65239         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65240         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65241         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65242         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65243         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65244         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65245         * tests/uniwidth/test-u16-width.c: Likewise.
65246         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65247         * tests/uniwidth/test-u32-width.c: Likewise.
65248         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65249         * tests/uniwidth/test-u8-width.c: Likewise.
65250         * tests/uniwidth/test-uc_width.c: Likewise.
65251         * config/srclist-update: Likewise.
65252         (fixlicense): Update to GPLv3+.
65253
65254         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65255         * tests/test-tsearch.c: Change copyright notice.
65256
65257         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65258         * lib/c-strcaseeq.h: Change copyright notice.
65259         * lib/streq.h: Likewise.
65260         * lib/uniconv.h: Likewise.
65261         * lib/uniconv/u-conv-from-enc.h: Likewise.
65262         * lib/uniconv/u-conv-to-enc.h: Likewise.
65263         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65264         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65265         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65266         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65267         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65268         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65269         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65270         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65271         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65272         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65273         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65274         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65275         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65276         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65277         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65278         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65279         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65280         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65281         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65282         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65283         * lib/uniname.h: Likewise.
65284         * lib/uniname/uniname.c: Likewise.
65285         * lib/unistdio.h: Likewise.
65286         * lib/unistdio/u-asnprintf.h: Likewise.
65287         * lib/unistdio/u-asprintf.h: Likewise.
65288         * lib/unistdio/u-printf-args.c: Likewise.
65289         * lib/unistdio/u-printf-args.h: Likewise.
65290         * lib/unistdio/u-printf-parse.h: Likewise.
65291         * lib/unistdio/u-snprintf.h: Likewise.
65292         * lib/unistdio/u-sprintf.h: Likewise.
65293         * lib/unistdio/u-vasprintf.h: Likewise.
65294         * lib/unistdio/u-vsnprintf.h: Likewise.
65295         * lib/unistdio/u-vsprintf.h: Likewise.
65296         * lib/unistdio/u16-asnprintf.c: Likewise.
65297         * lib/unistdio/u16-asprintf.c: Likewise.
65298         * lib/unistdio/u16-printf-parse.c: Likewise.
65299         * lib/unistdio/u16-snprintf.c: Likewise.
65300         * lib/unistdio/u16-sprintf.c: Likewise.
65301         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65302         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65303         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65304         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65305         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65306         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65307         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65308         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65309         * lib/unistdio/u16-vasnprintf.c: Likewise.
65310         * lib/unistdio/u16-vasprintf.c: Likewise.
65311         * lib/unistdio/u16-vsnprintf.c: Likewise.
65312         * lib/unistdio/u16-vsprintf.c: Likewise.
65313         * lib/unistdio/u32-asnprintf.c: Likewise.
65314         * lib/unistdio/u32-asprintf.c: Likewise.
65315         * lib/unistdio/u32-printf-parse.c: Likewise.
65316         * lib/unistdio/u32-snprintf.c: Likewise.
65317         * lib/unistdio/u32-sprintf.c: Likewise.
65318         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65319         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65320         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65321         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65322         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65323         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65324         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65325         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65326         * lib/unistdio/u32-vasnprintf.c: Likewise.
65327         * lib/unistdio/u32-vasprintf.c: Likewise.
65328         * lib/unistdio/u32-vsnprintf.c: Likewise.
65329         * lib/unistdio/u32-vsprintf.c: Likewise.
65330         * lib/unistdio/u8-asnprintf.c: Likewise.
65331         * lib/unistdio/u8-asprintf.c: Likewise.
65332         * lib/unistdio/u8-printf-parse.c: Likewise.
65333         * lib/unistdio/u8-snprintf.c: Likewise.
65334         * lib/unistdio/u8-sprintf.c: Likewise.
65335         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65336         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65337         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65338         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65339         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65340         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65341         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65342         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65343         * lib/unistdio/u8-vasnprintf.c: Likewise.
65344         * lib/unistdio/u8-vasprintf.c: Likewise.
65345         * lib/unistdio/u8-vsnprintf.c: Likewise.
65346         * lib/unistdio/u8-vsprintf.c: Likewise.
65347         * lib/unistdio/ulc-asnprintf.c: Likewise.
65348         * lib/unistdio/ulc-asprintf.c: Likewise.
65349         * lib/unistdio/ulc-printf-parse.c: Likewise.
65350         * lib/unistdio/ulc-snprintf.c: Likewise.
65351         * lib/unistdio/ulc-sprintf.c: Likewise.
65352         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65353         * lib/unistdio/ulc-vasprintf.c: Likewise.
65354         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65355         * lib/unistdio/ulc-vsprintf.c: Likewise.
65356         * lib/unistr.h: Likewise.
65357         * lib/unistr/u-cpy-alloc.h: Likewise.
65358         * lib/unistr/u-cpy.h: Likewise.
65359         * lib/unistr/u-endswith.h: Likewise.
65360         * lib/unistr/u-move.h: Likewise.
65361         * lib/unistr/u-set.h: Likewise.
65362         * lib/unistr/u-startswith.h: Likewise.
65363         * lib/unistr/u-stpcpy.h: Likewise.
65364         * lib/unistr/u-stpncpy.h: Likewise.
65365         * lib/unistr/u-strcat.h: Likewise.
65366         * lib/unistr/u-strcpy.h: Likewise.
65367         * lib/unistr/u-strcspn.h: Likewise.
65368         * lib/unistr/u-strdup.h: Likewise.
65369         * lib/unistr/u-strlen.h: Likewise.
65370         * lib/unistr/u-strncat.h: Likewise.
65371         * lib/unistr/u-strncpy.h: Likewise.
65372         * lib/unistr/u-strnlen.h: Likewise.
65373         * lib/unistr/u-strpbrk.h: Likewise.
65374         * lib/unistr/u-strspn.h: Likewise.
65375         * lib/unistr/u-strstr.h: Likewise.
65376         * lib/unistr/u-strtok.h: Likewise.
65377         * lib/unistr/u16-check.c: Likewise.
65378         * lib/unistr/u16-chr.c: Likewise.
65379         * lib/unistr/u16-cmp.c: Likewise.
65380         * lib/unistr/u16-cpy-alloc.c: Likewise.
65381         * lib/unistr/u16-cpy.c: Likewise.
65382         * lib/unistr/u16-endswith.c: Likewise.
65383         * lib/unistr/u16-mblen.c: Likewise.
65384         * lib/unistr/u16-mbsnlen.c: Likewise.
65385         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65386         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65387         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65388         * lib/unistr/u16-mbtouc.c: Likewise.
65389         * lib/unistr/u16-mbtoucr.c: Likewise.
65390         * lib/unistr/u16-move.c: Likewise.
65391         * lib/unistr/u16-next.c: Likewise.
65392         * lib/unistr/u16-prev.c: Likewise.
65393         * lib/unistr/u16-set.c: Likewise.
65394         * lib/unistr/u16-startswith.c: Likewise.
65395         * lib/unistr/u16-stpcpy.c: Likewise.
65396         * lib/unistr/u16-stpncpy.c: Likewise.
65397         * lib/unistr/u16-strcat.c: Likewise.
65398         * lib/unistr/u16-strchr.c: Likewise.
65399         * lib/unistr/u16-strcmp.c: Likewise.
65400         * lib/unistr/u16-strcpy.c: Likewise.
65401         * lib/unistr/u16-strcspn.c: Likewise.
65402         * lib/unistr/u16-strdup.c: Likewise.
65403         * lib/unistr/u16-strlen.c: Likewise.
65404         * lib/unistr/u16-strmblen.c: Likewise.
65405         * lib/unistr/u16-strmbtouc.c: Likewise.
65406         * lib/unistr/u16-strncat.c: Likewise.
65407         * lib/unistr/u16-strncmp.c: Likewise.
65408         * lib/unistr/u16-strncpy.c: Likewise.
65409         * lib/unistr/u16-strnlen.c: Likewise.
65410         * lib/unistr/u16-strpbrk.c: Likewise.
65411         * lib/unistr/u16-strrchr.c: Likewise.
65412         * lib/unistr/u16-strspn.c: Likewise.
65413         * lib/unistr/u16-strstr.c: Likewise.
65414         * lib/unistr/u16-strtok.c: Likewise.
65415         * lib/unistr/u16-to-u32.c: Likewise.
65416         * lib/unistr/u16-to-u8.c: Likewise.
65417         * lib/unistr/u16-uctomb-aux.c: Likewise.
65418         * lib/unistr/u16-uctomb.c: Likewise.
65419         * lib/unistr/u32-check.c: Likewise.
65420         * lib/unistr/u32-chr.c: Likewise.
65421         * lib/unistr/u32-cmp.c: Likewise.
65422         * lib/unistr/u32-cpy-alloc.c: Likewise.
65423         * lib/unistr/u32-cpy.c: Likewise.
65424         * lib/unistr/u32-endswith.c: Likewise.
65425         * lib/unistr/u32-mblen.c: Likewise.
65426         * lib/unistr/u32-mbsnlen.c: Likewise.
65427         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65428         * lib/unistr/u32-mbtouc.c: Likewise.
65429         * lib/unistr/u32-mbtoucr.c: Likewise.
65430         * lib/unistr/u32-move.c: Likewise.
65431         * lib/unistr/u32-next.c: Likewise.
65432         * lib/unistr/u32-prev.c: Likewise.
65433         * lib/unistr/u32-set.c: Likewise.
65434         * lib/unistr/u32-startswith.c: Likewise.
65435         * lib/unistr/u32-stpcpy.c: Likewise.
65436         * lib/unistr/u32-stpncpy.c: Likewise.
65437         * lib/unistr/u32-strcat.c: Likewise.
65438         * lib/unistr/u32-strchr.c: Likewise.
65439         * lib/unistr/u32-strcmp.c: Likewise.
65440         * lib/unistr/u32-strcpy.c: Likewise.
65441         * lib/unistr/u32-strcspn.c: Likewise.
65442         * lib/unistr/u32-strdup.c: Likewise.
65443         * lib/unistr/u32-strlen.c: Likewise.
65444         * lib/unistr/u32-strmblen.c: Likewise.
65445         * lib/unistr/u32-strmbtouc.c: Likewise.
65446         * lib/unistr/u32-strncat.c: Likewise.
65447         * lib/unistr/u32-strncmp.c: Likewise.
65448         * lib/unistr/u32-strncpy.c: Likewise.
65449         * lib/unistr/u32-strnlen.c: Likewise.
65450         * lib/unistr/u32-strpbrk.c: Likewise.
65451         * lib/unistr/u32-strrchr.c: Likewise.
65452         * lib/unistr/u32-strspn.c: Likewise.
65453         * lib/unistr/u32-strstr.c: Likewise.
65454         * lib/unistr/u32-strtok.c: Likewise.
65455         * lib/unistr/u32-to-u16.c: Likewise.
65456         * lib/unistr/u32-to-u8.c: Likewise.
65457         * lib/unistr/u32-uctomb.c: Likewise.
65458         * lib/unistr/u8-check.c: Likewise.
65459         * lib/unistr/u8-chr.c: Likewise.
65460         * lib/unistr/u8-cmp.c: Likewise.
65461         * lib/unistr/u8-cpy-alloc.c: Likewise.
65462         * lib/unistr/u8-cpy.c: Likewise.
65463         * lib/unistr/u8-endswith.c: Likewise.
65464         * lib/unistr/u8-mblen.c: Likewise.
65465         * lib/unistr/u8-mbsnlen.c: Likewise.
65466         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65467         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65468         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65469         * lib/unistr/u8-mbtouc.c: Likewise.
65470         * lib/unistr/u8-mbtoucr.c: Likewise.
65471         * lib/unistr/u8-move.c: Likewise.
65472         * lib/unistr/u8-next.c: Likewise.
65473         * lib/unistr/u8-prev.c: Likewise.
65474         * lib/unistr/u8-set.c: Likewise.
65475         * lib/unistr/u8-startswith.c: Likewise.
65476         * lib/unistr/u8-stpcpy.c: Likewise.
65477         * lib/unistr/u8-stpncpy.c: Likewise.
65478         * lib/unistr/u8-strcat.c: Likewise.
65479         * lib/unistr/u8-strchr.c: Likewise.
65480         * lib/unistr/u8-strcmp.c: Likewise.
65481         * lib/unistr/u8-strcpy.c: Likewise.
65482         * lib/unistr/u8-strcspn.c: Likewise.
65483         * lib/unistr/u8-strdup.c: Likewise.
65484         * lib/unistr/u8-strlen.c: Likewise.
65485         * lib/unistr/u8-strmblen.c: Likewise.
65486         * lib/unistr/u8-strmbtouc.c: Likewise.
65487         * lib/unistr/u8-strncat.c: Likewise.
65488         * lib/unistr/u8-strncmp.c: Likewise.
65489         * lib/unistr/u8-strncpy.c: Likewise.
65490         * lib/unistr/u8-strnlen.c: Likewise.
65491         * lib/unistr/u8-strpbrk.c: Likewise.
65492         * lib/unistr/u8-strrchr.c: Likewise.
65493         * lib/unistr/u8-strspn.c: Likewise.
65494         * lib/unistr/u8-strstr.c: Likewise.
65495         * lib/unistr/u8-strtok.c: Likewise.
65496         * lib/unistr/u8-to-u16.c: Likewise.
65497         * lib/unistr/u8-to-u32.c: Likewise.
65498         * lib/unistr/u8-uctomb-aux.c: Likewise.
65499         * lib/unistr/u8-uctomb.c: Likewise.
65500         * lib/unitypes.h: Likewise.
65501         * lib/uniwidth.h: Likewise.
65502         * lib/uniwidth/cjk.h: Likewise.
65503         * lib/uniwidth/u16-strwidth.c: Likewise.
65504         * lib/uniwidth/u16-width.c: Likewise.
65505         * lib/uniwidth/u32-strwidth.c: Likewise.
65506         * lib/uniwidth/u32-width.c: Likewise.
65507         * lib/uniwidth/u8-strwidth.c: Likewise.
65508         * lib/uniwidth/u8-width.c: Likewise.
65509         * lib/uniwidth/width.c: Likewise.
65510
65511 2007-10-07  Bruno Haible  <bruno@clisp.org>
65512
65513         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65514         The file is still under LGPL (see modules/inttypes).
65515
65516 2007-10-06  Bruno Haible  <bruno@clisp.org>
65517
65518         * modules/trunc (Dependencies): Add 'extensions'.
65519         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65520         Reported by Ben Pfaff <blp@gnu.org>.
65521
65522 2007-10-06  Bruno Haible  <bruno@clisp.org>
65523
65524         * modules/freopen-tests: New file.
65525         * tests/test-freopen.c: New file.
65526
65527         * modules/fopen-tests: New file.
65528         * tests/test-fopen.c: New file.
65529
65530         * modules/fopen: New file.
65531         * lib/fopen.c: New file.
65532         * m4/fopen.m4: New file.
65533         * modules/freopen: New file.
65534         * lib/freopen.c: New file.
65535         * m4/freopen.m4: New file.
65536         * lib/stdio.in.h (fopen, freopen): New declarations.
65537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65538         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65539         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65540         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65541         * doc/functions/fopen.texi: Mention the 'fopen' module.
65542         * doc/functions/freopen.texi: Mention the 'freopen' module.
65543
65544 2007-10-06  Bruno Haible  <bruno@clisp.org>
65545
65546         * modules/open-tests: New file.
65547         * tests/test-open.c: New file.
65548
65549         * modules/open: New file.
65550         * lib/open.c: New file.
65551         * m4/open.m4: New file.
65552         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65553         lib/open.c does.
65554         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65555         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65556         macros.
65557         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65558         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65559         REPLACE_OPEN.
65560         * doc/functions/open.texi: Mention the 'open' module.
65561
65562 2007-10-04  Bruno Haible  <bruno@clisp.org>
65563
65564         * modules/ceill-tests: New file.
65565         * tests/test-ceill.c: New file.
65566
65567         * modules/ceill: New file.
65568         * lib/ceill.c: Replace entire file.
65569         * m4/ceill.m4: New file.
65570         * lib/math.in.h (ceill): Replace declaration.
65571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65572         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65573         * doc/functions/ceill.texi: Mention the 'ceill' module.
65574         * modules/mathl (Files): Remove lib/ceill.c.
65575         (Depends-on): Add ceill.
65576
65577 2007-10-04  Bruno Haible  <bruno@clisp.org>
65578
65579         * modules/ceilf-tests: New file.
65580         * tests/test-ceilf.c: New file.
65581
65582         * modules/ceilf: New file.
65583         * lib/ceil.c: New file.
65584         * lib/ceilf.c: New file.
65585         * m4/ceilf.m4: New file.
65586         * lib/math.in.h (ceilf): New declaration.
65587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65588         HAVE_DECL_CEILF.
65589         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65590         HAVE_DECL_CEILF.
65591         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65592
65593 2007-10-04  Bruno Haible  <bruno@clisp.org>
65594
65595         * modules/floorl-tests: New file.
65596         * tests/test-floorl.c: New file.
65597
65598         * modules/floorl: New file.
65599         * lib/floorl.c: Replace entire file.
65600         * m4/floorl.m4: New file.
65601         * lib/math.in.h (floorl): Replace declaration.
65602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65603         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65604         * doc/functions/floorl.texi: Mention the 'floorl' module.
65605         * modules/mathl (Files): Remove lib/floorl.c.
65606         (Depends-on): Add floorl.
65607
65608 2007-10-04  Bruno Haible  <bruno@clisp.org>
65609
65610         * modules/floorf-tests: New file.
65611         * tests/test-floorf.c: New file.
65612
65613         * modules/floorf: New file.
65614         * lib/floor.c: New file.
65615         * lib/floorf.c: New file.
65616         * m4/floorf.m4: New file.
65617         * lib/math.in.h (floorf): New declaration.
65618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65619         HAVE_DECL_FLOORF.
65620         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65621         HAVE_DECL_FLOORF.
65622         * doc/functions/floorf.texi: Mention the 'floorf' module.
65623
65624 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65625             Bruno Haible  <bruno@clisp.org>
65626
65627         Advertise for the Git server instead of the CVS server.
65628         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65629         repository instead of the CVS one.
65630         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65631         about all VCS systems generically.
65632         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65633
65634 2007-10-04  Bruno Haible  <bruno@clisp.org>
65635
65636         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65637         means.
65638         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65639
65640 2007-10-04  Bruno Haible  <bruno@clisp.org>
65641
65642         * modules/truncl-tests: New file.
65643         * tests/test-truncl.c: New file.
65644
65645         * modules/truncl: New file.
65646         * lib/truncl.c: New file.
65647         * m4/truncl.m4: New file.
65648         * lib/math.in.h (truncl): New declaration.
65649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65650         HAVE_DECL_TRUNCL.
65651         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65652         HAVE_DECL_TRUNCL.
65653         * doc/functions/truncl.texi: Mention the 'truncl' module.
65654
65655 2007-10-04  Bruno Haible  <bruno@clisp.org>
65656
65657         * modules/truncf-tests: New file.
65658         * tests/test-truncf.c: New file.
65659
65660         * modules/truncf: New file.
65661         * lib/trunc.c: Make paramerizable through USE_* macros.
65662         * lib/truncf.c: New file.
65663         * m4/truncf.m4: New file.
65664         * lib/math.in.h (truncf): New declaration.
65665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65666         HAVE_DECL_TRUNCF.
65667         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65668         HAVE_DECL_TRUNCF.
65669         * doc/functions/truncf.texi: Mention the 'truncf' module.
65670
65671 2007-10-03  Bruno Haible  <bruno@clisp.org>
65672
65673         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65674         augmentation also for tests modules.
65675         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65676         * modules/atexit-tests (Makefile.am): Likewise.
65677         * modules/binary-io-tests (Makefile.am): Likewise.
65678         * modules/c-strcase-tests (Makefile.am): Likewise.
65679         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65680         * modules/canonicalize-tests (Makefile.am): Likewise.
65681         * modules/closein-tests (Makefile.am): Likewise.
65682         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65683         * modules/freadahead-tests (Makefile.am): Likewise.
65684         * modules/fseek-tests (Makefile.am): Likewise.
65685         * modules/fseeko-tests (Makefile.am): Likewise.
65686         * modules/ftell-tests (Makefile.am): Likewise.
65687         * modules/ftello-tests (Makefile.am): Likewise.
65688         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65689         * modules/isnanl-tests (Makefile.am): Likewise.
65690         * modules/lseek-tests (Makefile.am): Likewise.
65691         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65692         * modules/mbscasestr-tests (Makefile.am): Likewise.
65693         * modules/mbschr-tests (Makefile.am): Likewise.
65694         * modules/mbscspn-tests (Makefile.am): Likewise.
65695         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65696         * modules/mbspbrk-tests (Makefile.am): Likewise.
65697         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65698         * modules/mbsrchr-tests (Makefile.am): Likewise.
65699         * modules/mbsspn-tests (Makefile.am): Likewise.
65700         * modules/mbsstr-tests (Makefile.am): Likewise.
65701         * modules/printf-posix-tests (Makefile.am): Likewise.
65702         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65703         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65704         * modules/tsearch-tests (Makefile.am): Likewise.
65705         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65706         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65707         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65708         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65709         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65710         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65711         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65712         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65713         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65714         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65715         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65716         * modules/xstrtol-tests (Makefile.am): Likewise.
65717         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65718         * modules/yesno-tests (Makefile.am): Likewise.
65719
65720 2007-10-03  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/trunc-tests: New file.
65723         * tests/test-trunc.c: New file.
65724
65725         * modules/trunc: New file.
65726         * lib/trunc.c: New file.
65727         * m4/trunc.m4: New file.
65728         * lib/math.in.h (trunc): New declaration.
65729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65730         HAVE_DECL_TRUNC.
65731         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65732         HAVE_DECL_TRUNC.
65733         * doc/functions/trunc.texi: Mention the 'trunc' module.
65734
65735 2007-10-03  Bruno Haible  <bruno@clisp.org>
65736
65737         * tests/test-fpending.c: New file, mostly copied
65738         from coreutils/lib/t-fpending.c.
65739         * modules/fpending-tests: New file.
65740
65741 2007-10-03  Bruno Haible  <bruno@clisp.org>
65742
65743         Port the stdio extensions to QNX (untested).
65744         * lib/fseterr.c (fseterr): Add support for QNX.
65745         * lib/fbufmode.c (fbufmode): Likewise.
65746         * lib/freadable.c (freadable): Likewise.
65747         * lib/fwritable.c (fwritable): Likewise.
65748         * lib/freading.c (freading): Likewise.
65749         * lib/fwriting.c (fwriting): Likewise.
65750         * lib/freadahead.c (freadahed): Likewise.
65751         * lib/fpurge.c (fpurge): Likewise.
65752         * lib/fseeko.c (rpl_fseeko): Likewise.
65753
65754 2007-10-03  Bruno Haible  <bruno@clisp.org>
65755             Jim Meyering  <jim@meyering.net>
65756             Eric Blake  <ebb9@byu.net>
65757
65758         * doc/relocatable.texi: Use @command instead of @program.
65759
65760 2007-10-02  Jim Meyering  <jim@meyering.net>
65761
65762         Perform one more "_.h" -> ".in.h" substitution.
65763         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65764         instead of unistd_.h here, too.
65765
65766 2007-10-01  Bruno Haible  <bruno@clisp.org>
65767
65768         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65769         Needed for the alloca-opt module.
65770
65771 2007-09-30  Bruno Haible  <bruno@clisp.org>
65772
65773         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65774         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65775         alloca_.h.
65776         * lib/argz.in.h: Renamed from lib/argz_.h.
65777         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65778         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65779         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65780         byteswap_.h.
65781         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65782         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65783         dirent_.h.
65784         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65785         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65786         fcntl_.h.
65787         * lib/float.in.h: Renamed from lib/float_.h.
65788         * modules/float (Files, Makefile.am): Use float.in.h instead of
65789         float_.h.
65790         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65791         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65792         fnmatch_.h.
65793         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65794         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65795         getopt_.h.
65796         * lib/glob.in.h: Renamed from lib/glob_.h.
65797         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65798         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65799         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65800         iconv_.h.
65801         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65802         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65803         inttypes_.h.
65804         * lib/locale.in.h: Renamed from lib/locale_.h.
65805         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65806         locale_.h.
65807         * lib/math.in.h: Renamed from lib/math_.h.
65808         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65809         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65810         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65811         of netinet_in_.h. Add dependency.
65812         * lib/poll.in.h: Renamed from lib/poll_.h.
65813         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65814         * lib/search.in.h: Renamed from lib/search_.h.
65815         * modules/search (Files, Makefile.am): Use search.in.h instead of
65816         search_.h.
65817         * lib/signal.in.h: Renamed from lib/signal_.h.
65818         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65819         _signal.h.
65820         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65821         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65822         stdbool_.h.
65823         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65824         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65825         stdint_.h.
65826         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65827         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65828         stdio_.h.
65829         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65830         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65831         stdlib_.h.
65832         * lib/string.in.h: Renamed from lib/string_.h.
65833         * modules/string (Files, Makefile.am): Use string.in.h instead of
65834         string_.h.
65835         * doc/gnulib-tool.texi (Initial import): Update.
65836         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65837         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65838         of sys_select_.h. Add dependency.
65839         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65840         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65841         of sys_socket_.h.
65842         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65843         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65844         sys_stat_.h.
65845         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65846         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65847         sys_time_.h.
65848         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65849         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65850         sysexits_.h.
65851         * lib/time.in.h: Renamed from lib/time_.h.
65852         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65853         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65854         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65855         unistd_.h.
65856         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65857         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65858         wchar_.h.
65859         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65860         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65861         wctype_.h.
65862         * build-aux/bootstrap (slurp): Update.
65863         * lib/.cppi-disable: Update.
65864
65865 2007-09-30  Bruno Haible  <bruno@clisp.org>
65866
65867         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65868         Needed on BeOS.
65869
65870 2007-09-30  Bruno Haible  <bruno@clisp.org>
65871
65872         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65873
65874 2007-09-29  Bruno Haible  <bruno@clisp.org>
65875
65876         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65877
65878 2007-09-29  Bruno Haible  <bruno@clisp.org>
65879
65880         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65881         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65882         * build-aux/install-reloc: Compile also areadlink.c.
65883         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65884
65885 2007-09-29  Bruno Haible  <bruno@clisp.org>
65886
65887         * gnulib-tool (func_emit_initmacro_done): Indentation.
65888
65889 2007-09-29  Bruno Haible  <bruno@clisp.org>
65890
65891         * README: Add CVS checkout update instructions.
65892         Info from Bob Proulx <bob@proulx.com>.
65893
65894 2007-09-28  Eric Blake  <ebb9@byu.net>
65895
65896         Provide move-if-change.
65897         * build-aux/move-if-change: New file, based on best practice
65898         rather than any canonical upstream location.
65899
65900 2007-09-28  Jim Meyering  <jim@meyering.net>
65901
65902         Fix canonicalize loop-detection corner case.
65903         Do not attempt to stat the symlink values stored via seen_triple.
65904         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65905         on linux-2.6.18, (but not 2.6.22).
65906         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65907         triple_compare.  The former compares dev,ino,filename, while the latter
65908         would actually stat dirname(filename) when dev and ino were equal.
65909         * lib/hash-triple.c: Install <string.h>.
65910         (STREQ): Define.
65911         (triple_compare_ino_str): New function.
65912         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65913
65914 2007-09-28  Eric Blake  <ebb9@byu.net>
65915
65916         Enforce that AC_REPLACE_FUNCS files exist.
65917         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65918         override check for typos.
65919
65920         Fix test-closein on Solaris 10.
65921         * tests/test-closein.c (main): Don't assume stdin can be inherited
65922         closed on all systems.
65923         * tests/test-closein.sh: Likewise.
65924         Reported by Piotr Tarnowski.
65925
65926 2007-09-28  Jim Meyering  <jim@meyering.net>
65927
65928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65929
65930 2007-09-27  Jim Meyering  <jim@meyering.net>
65931
65932         canonicalize: Avoid a false-positive cycle failure.
65933         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65934         Sort.  Remove cycle-check.
65935         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65936         not cycle-check.h.
65937         (seen_triple): New function.
65938         (canonicalize_filename_mode): Use it instead of cycle-check.
65939         * tests/test-canonicalize.c: Add a test for this bug.
65940         * tests/test-canonicalize.sh: Set up and run the test.
65941
65942         New module, file-set, from coreutils.
65943         * modules/file-set: Define it.
65944         * lib/file-set.c, lib/file-set.h: Implement.
65945
65946         New module, hash-triple, from coreutils.
65947         * modules/hash-triple: Define it.
65948         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65949
65950 2007-09-25  Eric Blake  <ebb9@byu.net>
65951
65952         Fix strerror on Interix.
65953         * lib/string_.h (strerror): Declare replacement.
65954         * doc/functions/strerror.texi (strerror): Document the Interix
65955         shortcoming.
65956         * modules/string (Makefile.am): Support new hooks.
65957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65958         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65959         gl_FUNC_STRERROR_SEPARATE.
65960         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65961         * lib/strerror.c (rpl_strerror): Provide replacement.
65962         * modules/strerror (Depends-on): Add string.
65963         (configure.ac): Detect use of module.
65964         * tests/test-strerror.c: New file.
65965         * modules/strerror-tests: New test module.
65966         * modules/argp (Depends-on): Add strerror.
65967         * modules/error (Depends-on): Likewise.
65968         Reported by Martin Koeppe.
65969
65970 2007-09-24  Bruno Haible  <bruno@clisp.org>
65971
65972         * README: Update git instructions.
65973
65974 2007-09-24  Eric Blake  <ebb9@byu.net>
65975
65976         Revert fpending breakage from 2007-09-08.
65977         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65978         __fpending.c.
65979
65980 2007-09-24  Jim Meyering  <jim@meyering.net>
65981
65982         filenamecat.c: Add a test.
65983         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65984         showing how the function works when DIR is the empty string.
65985
65986 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65987
65988         * tests/test-canonicalize.sh: Turn on executable bit.
65989
65990 2007-09-19  Eric Blake  <ebb9@byu.net>
65991
65992         * README: Update CVS instructions.
65993
65994 2007-09-18  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/areadlink: New file.
65997         * lib/areadlink.h (areadlink): New declaration.
65998         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65999
66000 2007-09-17  Jim Meyering  <jim@meyering.net>
66001
66002         * lib/savewd.c (ESTALE) [!defined]: Define.
66003         Reported to be required on Interix by Martin Koeppe.
66004
66005 2007-09-17  Bruno Haible  <bruno@clisp.org>
66006
66007         * gnulib-tool (func_version): Use $version.
66008
66009 2007-09-16  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66012         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66013         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66014         Reported by Greg Schafer <gschafer@zip.com.au>.
66015
66016 2007-09-15  Bruno Haible  <bruno@clisp.org>
66017
66018         * gnulib-tool (sed): Try a little harder to make bash understand the
66019         alias.
66020         Reported by Bruce Korb <bruce.korb@gmail.com>.
66021
66022 2007-09-13  Eric Blake  <ebb9@byu.net>
66023
66024         * ChangeLog: Remove conflict markers.
66025
66026 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66027
66028         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66029         Reported by Bruno Haible <bruno@clisp.org>.
66030
66031 2007-09-12  Bruno Haible  <bruno@clisp.org>
66032
66033         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66034         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66035         is not defined.
66036
66037 2007-09-12  Eric Blake  <ebb9@byu.net>
66038
66039         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66040         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66041         Autoconf definition.
66042         * modules/euidaccess (Depends-on): Add extensions, for
66043         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66044         * modules/fnmatch (Depends-on): Likewise.
66045         * modules/getaddrinfo (Depends-on): Likewise.
66046         * modules/getdelim (Depends-on): Likewise.
66047         * modules/getline (Depends-on): Likewise.
66048         * modules/getsubopt (Depends-on): Likewise.
66049         * modules/gettext (Depends-on): Likewise.
66050         * modules/group-member (Depends-on): Likewise.
66051         * modules/mbchar (Depends-on): Likewise.
66052         * modules/memmem (Depends-on): Likewise.
66053         * modules/mempcpy (Depends-on): Likewise.
66054         * modules/memrchr (Depends-on): Likewise.
66055         * modules/pagealign_alloc (Depends-on): Likewise.
66056         * modules/readutmp (Depends-on): Likewise.
66057         * modules/stpcpy (Depends-on): Likewise.
66058         * modules/stpncpy (Depends-on): Likewise.
66059         * modules/strchrnul (Depends-on): Likewise.
66060         * modules/strndup (Depends-on): Likewise.
66061         * modules/strsep (Depends-on): Likewise.
66062         * modules/strverscmp (Depends-on): Likewise.
66063         * modules/vasprintf (Depends-on): Likewise.
66064         * modules/wcwidth (Depends-on): Likewise.
66065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66066         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66067         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66070         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66071         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66072         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66074         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66078         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66079         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66080         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66081         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66082         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66087         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66088         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66089         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66091         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66092         so that lock.m4 can be used in gettext without extensions module.
66093
66094 2007-09-11  Bruno Haible  <bruno@clisp.org>
66095
66096         * m4/isc-posix.m4: Remove file.
66097         Suggested by Eric Blake.
66098
66099 2007-09-11  Eric Blake  <ebb9@byu.net>
66100
66101         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66102
66103 2007-09-10  Bruno Haible  <bruno@clisp.org>
66104
66105         * posix-modules: Fix typo in error message.
66106         Reported by Matt <mkraai@beckman.com>.
66107
66108 2007-09-09  Bruno Haible  <bruno@clisp.org>
66109
66110         * doc/functions/getdelim.texi: Update list of platforms lacking the
66111         function.
66112         * doc/functions/getline.texi: Likewise.
66113
66114 2007-09-09  Jim Meyering  <jim@meyering.net>
66115
66116         * lib/hash.c (hash_initialize): Detect calloc failure.
66117         Reported by Bruno Haible.
66118
66119 2007-09-09  Bruno Haible  <bruno@clisp.org>
66120
66121         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66122         malloc or realloc fails.
66123
66124 2007-09-09  Bruno Haible  <bruno@clisp.org>
66125
66126         * modules/getcwd (Depends-on): Add malloc-posix.
66127         * modules/glob (Depends-on): Likewise.
66128         * modules/putenv (Depends-on): Likewise.
66129         * modules/strdup (Depends-on): Likewise.
66130         * modules/getdelim (Depends-on): Add realloc-posix.
66131         * modules/read-file (Depends-on): Likewise.
66132
66133 2007-09-09  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66136         (gl_FUNC_MALLOC_POSIX): Require it.
66137         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66138         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66139         * modules/realloc (Files): Add m4/malloc.m4.
66140         * modules/calloc (Files): Likewise.
66141
66142 2007-09-09  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/malloc-posix: New file.
66145         * modules/malloc (Depends-on): Add malloc-posix.
66146         * lib/malloc.c: Include errno.h.
66147         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66148         and a POSIX-compatible malloc into a single function. Set ENOMEM
66149         when returning NULL.
66150         * m4/malloc.m4: New file.
66151         * doc/functions/malloc.texi: Mention the malloc-posix module.
66152         * lib/stdlib_.h (malloc): New declaration.
66153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66154         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66155         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66156         and HAVE_MALLOC_POSIX.
66157
66158 2007-09-09  Bruno Haible  <bruno@clisp.org>
66159
66160         * modules/realloc-posix: New file.
66161         * modules/realloc (Depends-on): Add realloc-posix.
66162         * lib/realloc.c: Include errno.h.
66163         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66164         and a POSIX-compatible realloc into a single function. Set ENOMEM
66165         when returning NULL.
66166         * m4/realloc.m4: New file.
66167         * doc/functions/realloc.texi: Mention the realloc-posix module.
66168         * lib/stdlib_.h (realloc): New declaration.
66169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66170         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66171         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66172         and HAVE_REALLOC_POSIX.
66173
66174 2007-09-09  Bruno Haible  <bruno@clisp.org>
66175
66176         * modules/calloc-posix: New file.
66177         * modules/calloc (Depends-on): Add calloc-posix.
66178         * lib/calloc.c: Include errno.h.
66179         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66180         and a POSIX-compatible calloc into a single function. Set ENOMEM
66181         when returning NULL.
66182         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66183         * doc/functions/calloc.texi: Mention the calloc-posix module.
66184         * lib/stdlib_.h (calloc): New declaration.
66185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66186         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66187         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66188         and HAVE_CALLOC_POSIX.
66189
66190 2007-09-09  Bruno Haible  <bruno@clisp.org>
66191
66192         Allow for modules to show an arbitrary notice.
66193         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66194         * gnulib-tool: New option --extract-notice.
66195         (func_usage): Document it.
66196         (sed_extract_prog): Update.
66197         (func_get_notice): New function.
66198         (func_modules_notice): New function.
66199         (func_import, func_create_testdir): Invoke it.
66200         Suggested by Jim Meyering.
66201
66202 2007-09-09  Bruno Haible  <bruno@clisp.org>
66203
66204         * gnulib-tool: New options --verbose, --quiet.
66205         (func_usage): Document them.
66206         (verbose): New variable.
66207         (func_execute_command): New function.
66208         (func_import): Don't show the module list and the file list if
66209         $verbose < 0.
66210         (func_create_testdir): Likewise. Use func_execute_command.
66211         (func_create_megatestdir): Use func_execute_command.
66212
66213 2007-09-08  Bruno Haible  <bruno@clisp.org>
66214
66215         * gnulib-tool (func_import): Prefer rsync over wget when available,
66216         for fetching the PO files.
66217
66218 2007-09-08  Bruno Haible  <bruno@clisp.org>
66219
66220         * posix-modules: New file. Portions copied from gnulib-tool.
66221         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66222
66223 2007-09-08  Jim Meyering  <jim@meyering.net>
66224
66225         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66226         * lib/fpending.h: Rename from __fpending.h.
66227         * lib/fpending.c: Rename from __fpending.c.
66228         Include "fpending.h", not "__fpending.h".
66229         * lib/__fpending.h, lib/__fpending.c: Remove files.
66230         * modules/fpending (Files): Reflect new file names.
66231         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66232
66233 2007-09-08  Bruno Haible  <bruno@clisp.org>
66234
66235         * m4/inttypes-h.m4: Remove stub file.
66236
66237 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66238
66239         * doc/headers/stdint.texi: Discuss #include_next issue.
66240
66241 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66244
66245 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66246
66247         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66248         in variable name.
66249
66250 2007-09-03  Jim Meyering  <jim@meyering.net>
66251
66252         New module: git-version-gen.
66253         * modules/git-version-gen: New file.
66254
66255         Import changes from coreutils for bootstrap script.
66256
66257         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66258
66259         bootstrap: uses rsync to download the .po files
66260         * build-aux/bootstrap (po_download_command_format): New global.
66261         (download_po_files): Use rsync.
66262         (update_po_files): Don't remove .po files after download,
66263         so future rsync runs can take advantage of the copies.
66264
66265         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66266
66267         Solve the unnecessary-.po-file-regeneration problem once and for all.
66268         * build-aux/bootstrap (download_po_files): New function, renamed from
66269         get_translations.  Now, downloads, but doesn't update LINGUAS.
66270         (update_po_files): New function.
66271
66272         bootstrap: Ignore more.
66273         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66274         uniwidth to e.g., lib/.gitignore.
66275         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66276
66277         * build-aux/bootstrap: New setting: vc_ignore.
66278         (insert_sorted_if_absent): Create $file if absent.
66279         Adapt to new, possibly empty, list: $vc_ignore.
66280
66281         bootstrap: generate more ignorable names
66282         * build-aux/bootstrap (slurp): When generating ignorable names,
66283         also map .sin to .sed, .gperf to .c, and .y to .c.
66284
66285 2007-09-03  Jim Meyering  <jim@meyering.net>
66286
66287         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66288         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66289
66290 2007-09-02  Bruno Haible  <bruno@clisp.org>
66291
66292         Fix mis-recognition of 'mcs' on QNX 6.
66293         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66294         output contains the string "Mono".
66295         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66296         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66297
66298 2007-09-01  Bruno Haible  <bruno@clisp.org>
66299
66300         Fix collision between uniwidth/* and linebreak modules.
66301         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66302         u32_width): Remove declarations.
66303         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66304         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66305         streq3, streq2, streq1, streq0): Remove functions.
66306         (STREQ): Remove macro.
66307         (is_cjk_encoding): Remove function.
66308         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66309         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66310         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66311         * NEWS: Document the change.
66312
66313 2007-09-01  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/streq.h: Add double-inclusion guard.
66316
66317 2007-09-01  Karl Berry  <karl@gnu.org>
66318
66319         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66320
66321 2007-08-28  Jim Meyering  <jim@meyering.net>
66322
66323         Rename mreadlink_with_size to areadlink_with_size.
66324         * NEWS: Document the change.
66325         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66326         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66327         * lib/mreadlink.h: Rename this to...
66328         * lib/areadlink.h: ...this.
66329         * modules/mreadlink-with-size: Rename this to...
66330         * modules/areadlink-with-size: ...this.
66331         * lib/canonicalize.c: Reflect the renaming.
66332         * modules/canonicalize: Likewise.
66333
66334 2007-08-26  Bruno Haible  <bruno@clisp.org>
66335
66336         * gnulib-tool (func_import): When deciding which files to remove,
66337         consider also dangling symbolic links.
66338         Reported by Eric Blake.
66339
66340 2007-08-26  Bruno Haible  <bruno@clisp.org>
66341
66342         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66343
66344 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66345
66346         * lib/readline.c: Don't include getline.h, the prototype is now
66347         found in stdio.h.
66348
66349 2007-08-23  Jim Meyering  <jim@meyering.net>
66350
66351         Getdelim touchup.
66352         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66353         around the funlockfile call, since funlockfile never sets errno.
66354         Don't set errno upon failed realloc.
66355
66356 2007-08-22  Eric Blake  <ebb9@byu.net>
66357
66358         Getline touchups.
66359         * lib/getdelim.c (getdelim): Revert regression that required *n to
66360         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66362         getdelim, rather than whether implementation is missing.
66363         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66364         * lib/stdio_.h (getline): Also declare if replacement is
66365         required.
66366         * doc/functions/getdelim.texi: New file.
66367         * doc/functions/getline.texi: Likewise.
66368         * doc/gnulib.texi (Function Substitutes): Add new files.
66369         Reported by Bruno Haible.
66370
66371 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66372
66373         * users.txt: Add Guile.
66374
66375 2007-08-22  Eric Blake  <ebb9@byu.net>
66376
66377         * tests/test-getdelim.c (main): Use remove, not unlink.
66378         * tests/test-getline.c (main): Likewise.
66379
66380         Move getline and getdelim into stdio.h, per POSIX 200x.
66381         * modules/getline (Files): Remove getline.h.
66382         (Depends-on): Add stdio.
66383         (configure.ac): Add module indicator.
66384         * modules/getdelim (Files): Remove getdelim.h.
66385         (Depends-on): Add stdio.
66386         (configure.ac): Add module indicator.
66387         * modules/stdio (Makefile.am): Work with new indicators.
66388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66390         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66391         * lib/getdelim.h: Delete.
66392         * lib/getline.h: Delete.
66393         * lib/stdio_.h (getdelim, getline): Declare.
66394         * modules/getdelim-tests: New module.
66395         * modules/getline-tests: Likewise.
66396         * tests/test-getdelim.c: New file.
66397         * tests/test-getline.c: Likewise.
66398         * NEWS: Document the change.
66399         * lib/getline.c: Update choice of header.
66400         * lib/csharpcomp.c: Likewise.
66401         * lib/getpass.c: Likewise.
66402         * lib/javacomp.c: Likewise.
66403         * lib/javaversion.c: Likewise.
66404         * lib/yesno.c: Likewise.
66405         * lib/getdelim.c: Likewise.
66406         (getdelim): Set errno on failure, and avoid memory leak.
66407
66408 2007-08-19  Bruno Haible  <bruno@clisp.org>
66409
66410         * modules/closein (Depends-on): Add freadahead.
66411         * lib/closein.c: Include freadahead.h.
66412         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66413         is zero.
66414
66415 2007-08-19  Bruno Haible  <bruno@clisp.org>
66416
66417         * modules/freadahead-tests: New file.
66418         * tests/test-freadahead.sh: New file.
66419         * tests/test-freadahead.c: New file.
66420
66421         * modules/freadahead: New file.
66422         * lib/freadahead.h: New file.
66423         * lib/freadahead.c: New file.
66424         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66425         fbufmode, fpurge, freadable, fwritable.
66426
66427 2007-08-19  Eric Blake  <ebb9@byu.net>
66428
66429         Test yesno in combination with closein.
66430         * lib/yesno.c (yesno): Document use of stdin.
66431         * modules/yesno-tests (Files): New module.
66432         * tests/test-yesno.c (main): New file.
66433         * tests/test-yesno.sh: Likewise.
66434
66435 2007-08-19  Bruno Haible  <bruno@clisp.org>
66436
66437         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66438         * lib/fseeko.c (rpl_fseeko): Likewise.
66439         * lib/fseterr.c (fseterr): Likewise.
66440
66441 2007-08-19  Bruno Haible  <bruno@clisp.org>
66442
66443         * tests/test-lseek.c (main): Disable a test for BeOS.
66444         * doc/functions/lseek.texi: Document the BeOS bug.
66445
66446 2007-08-19  Bruno Haible  <bruno@clisp.org>
66447             Eric Blake  <ebb9@byu.net>
66448
66449         * lib/lseek.c: Include <sys/stat.h>.
66450         (rpl_lseek): Add workaround code also for Unix platforms.
66451         Needed for BeOS.
66452         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66453         * doc/functions/lseek.texi: Document BeOS definiency.
66454
66455 2007-08-18  Bruno Haible  <bruno@clisp.org>
66456
66457         * modules/fstrcmp-tests: New file.
66458         * tests/test-fstrcmp.c: New file.
66459
66460 2007-08-18  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/fstrcmp: New file, from GNU gettext with modifications.
66463         * lib/fstrcmp.h: New file, from GNU gettext.
66464         * lib/fstrcmp.c: New file, from GNU gettext.
66465         * MODULES.html.sh (String handling): Add fstrcmp.
66466
66467 2007-08-18  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66470         'bool'.
66471         (diag, compareseq): Remove const from the ctxt argument.
66472         (USE_HEURISTIC): Undefine at the end.
66473
66474 2007-08-18  Jim Meyering  <jim@meyering.net>
66475
66476         New file: lib/idcache.h
66477         * NEWS: Mention the addition.
66478         * modules/idcache (Files): Add lib/idcache.h
66479         * lib/idcache.c: Include "idcache.h".
66480         Don't include <sys/types.h>.
66481         Add a FIXME comment.
66482         Move file-scoped "static" declarations to the top.
66483         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66484
66485 2007-08-17  Bruno Haible  <bruno@clisp.org>
66486         and Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         * MODULES.html.sh: Add diffseq.
66489         * modules/diffseq: New file.
66490         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66491         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66492
66493 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66494
66495         Import changes from coreutils for bootstrap script.
66496
66497         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * build-aux/bootstrap (slurp): Work even in environments where
66500         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66501         current code does not slurp files whose names start with ".", and
66502         this looks like it might be a troublesome area.
66503
66504         2007-07-11  Jim Meyering  <jim@meyering.net>
66505
66506         If there's a GPL vN copyright comment, require that N == 3.
66507
66508         2007-07-08  Jim Meyering  <jim@meyering.net>
66509
66510         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66511         * build-aux/bootstrap (mam_template): Move definition out of loop.
66512
66513         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66514
66515         * build-aux/bootstrap (symlink_to_dir): Rename function from
66516         symlink_to_gnulib.  Add a directory parameter.  Update all
66517         callers.
66518         (cp_mark_as_generated): Also check for -- and link to -- files in
66519         gl/.
66520
66521         2007-07-08  Jim Meyering  <jim@meyering.net>
66522
66523         Adapt to deeper hierarchy in gnulib.
66524         * build-aux/bootstrap (symlink_to_dir): If the destination
66525         directory doesn't exist, create it. This is required at least for
66526         "lib/uniwidth/cjk.h".
66527
66528         2007-05-15  Jim Meyering  <jim@meyering.net>
66529
66530         * build-aux/bootstrap: Now that generated Makefile.am files
66531         are no longer under version control, they must be created at
66532         bootstrap time.
66533
66534 2007-08-14  Ben Pfaff  <blp@gnu.org>
66535
66536         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66537
66538 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66541         given the changes below.
66542         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66543         even on hosts that have padding bits beyond the supported 64.
66544
66545 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66546
66547         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66548         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66549         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66550         depends on it.
66551         (xstrtol_error): Remove.
66552         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66553         but with a different signature.
66554         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66555         * lib/xstrtol-error.c: Include exitfail.h.
66556         (xstrtol_fatal): New function, with a different signature from the
66557         old xstrtol_error, so that the caller need not worry about passing
66558         in an exit status, or about storage management of the option argument.
66559         (xstrtol_error): Now a static function.  Redo signature to
66560         implement xstrtol_fatal.  Output the correct number of hyphens in
66561         front of the option so that the caller need not worry about
66562         storage management.
66563         (N_): New macro.
66564         (_): Remove; not used now.
66565         * modules/xstrtol: Depend on getopt.
66566         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66567         of old STRTOL_FATAL_ERROR macro.
66568         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66569         of test program.
66570         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66571         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66572
66573 2007-08-08  Eric Blake  <ebb9@byu.net>
66574
66575         * lib/xstrtol-error.c: Add missing include.
66576
66577         Move xstrtol messages into gnulib domain, when --pobase is used.
66578         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66579         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66580         * modules/xstrtol (Files): Distribute new file.
66581         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66582         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66583         * tests/test-xstrtol.c: ...into new file.
66584         * tests/test-xstrtoul.c: Also test xstrtoul.
66585         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66586         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66587         * tests/test-xstrtol.sh: Drive the tests.
66588         * tests/test-xstrtoimax.sh: Likewise.
66589         * tests/test-xstrtoumax.sh: Likewise.
66590         * modules/xstrtol-tests: New module.
66591         * modules/xstrtoimax-tests: Likewise.
66592         * modules/xstrtoumax-tests: Likewise.
66593
66594 2007-08-08  Jim Meyering  <jim@meyering.net>
66595
66596         New function: mfile_name_concat.
66597         * lib/filenamecat.c (mfile_name_concat): New function, just like
66598         file_name_concat, but return NULL upon failure rather than exiting
66599         with a diagnostic.
66600         * lib/filenamecat.h: Declare it.
66601
66602 2007-08-07  Bruno Haible  <bruno@clisp.org>
66603
66604         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66605         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66606         warning from gcc.
66607         Reported by Eric Blake.
66608
66609 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66610
66611         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66612         * modules/crypto/arcfour (License): Likewise.
66613         * modules/crypto/des-tests (License): Likewise.
66614         * modules/crypto/gc-arctwo-tests (License): Likewise.
66615         * modules/crypto/gc-des-tests (License): Likewise.
66616         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66617         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66618         * modules/crypto/gc-md2-tests (License): Likewise.
66619         * modules/crypto/gc-md4-tests (License): Likewise.
66620         * modules/crypto/gc-md5-tests (License): Likewise.
66621         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66622         * modules/crypto/gc-rijndael-tests (License): Likewise.
66623         * modules/crypto/gc-sha1-tests (License): Likewise.
66624         * modules/crypto/gc-tests (License): Likewise.
66625         * modules/crypto/hmac-md5 (License): Likewise.
66626         * modules/crypto/hmac-sha1 (License): Likewise.
66627         * modules/crypto/md2-tests (License): Likewise.
66628         * modules/crypto/md4-tests (License): Likewise.
66629         * modules/crypto/md5 (License): Likewise.
66630         * modules/crypto/rijndael (License): Likewise.
66631         * modules/crypto/sha1 (License): Likewise.
66632         * modules/memxor (License): Likewise.
66633
66634 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66635         and Bruno Haible  <bruno@clisp.org>
66636
66637         * NEWS: Describe interface changes to human, xstrtol.
66638         * lib/human.h: Include <xstrtol.h>.
66639         (human_options): Return enum strtol_error, not int.  Remove
66640         bool arg; take int * instead.
66641         * lib/human.c: Don't include "gettext.h".
66642         (_): Remove; no longer used.
66643         Don't include <xstrtol.h>, since human.h does it.
66644         (human_options): Adjust to abovementioned interface changes.
66645         Do not report error to stderr; that's now the caller's
66646         responsibility.
66647         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66648         interface change.
66649         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66650         Str, Argument_type_string.  All uses changed.  Put " argument"
66651         in diagnostics to make them clearer.  Change wording of suffix
66652         message for clarity.
66653         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66654         Argument_type_string.
66655         (STRTOL_FATAL_WARN): Remove; no longer used.
66656         * modules/human (Depends-on): Remove gettext-h.
66657
66658 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66659
66660         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66661
66662 2007-07-31  Bruno Haible  <bruno@clisp.org>
66663
66664         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66665         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66666         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66667
66668 2007-07-31  Bruno Haible  <bruno@clisp.org>
66669
66670         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66671         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66672
66673 2007-07-30  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66676         * modules/c-ctype (License): Likewise.
66677         * modules/c-strcase (License): Likewise.
66678         * modules/check-version (License): Likewise.
66679         * modules/iconv (License): Likewise.
66680         * modules/iconv_open (License): Likewise.
66681         * modules/read-file (License): Likewise.
66682         * modules/striconv (License): Likewise.
66683         * modules/strverscmp (License): Likewise.
66684         * modules/vasprintf (License): Likewise.
66685         * modules/crypto/des (License): Likewise.
66686         * modules/crypto/gc (License): Likewise.
66687         * modules/crypto/gc-arcfour (License): Likewise.
66688         * modules/crypto/gc-arctwo (License): Likewise.
66689         * modules/crypto/gc-des (License): Likewise.
66690         * modules/crypto/gc-hmac-md5 (License): Likewise.
66691         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66692         * modules/crypto/gc-md2 (License): Likewise.
66693         * modules/crypto/gc-md4 (License): Likewise.
66694         * modules/crypto/gc-md5 (License): Likewise.
66695         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66696         * modules/crypto/gc-random (License): Likewise.
66697         * modules/crypto/gc-rijndael (License): Likewise.
66698         * modules/crypto/gc-sha1 (License): Likewise.
66699         * modules/crypto/md2 (License): Likewise.
66700         * modules/crypto/md4 (License): Likewise.
66701
66702 2007-07-30  Jim Meyering  <jim@meyering.net>
66703
66704         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66705         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66706         it has valid stat data.  This bug would cause du not to count the
66707         sizes of inaccessible directories.
66708         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66709         in <http://bugzilla.redhat.com/250077>.
66710
66711 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66712             Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66715         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66716         #include_next, gives a diagnostic about it, but reports no error in
66717         the exit code.
66718         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66719
66720 2007-07-24  Ben Pfaff  <blp@gnu.org>
66721
66722         Improve name: "count-one-bits" is better than "popcount".
66723         * MODULES.html.sh: Update name.
66724         * lib/popcount.h: Renamed lib/count-one-bits.h.
66725         (popcount): Renamed count_one_bits.
66726         (popcountl): Renamed count_one_bits_l.
66727         (popcountll): Renamed count_one_bits_ll.
66728         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66729         * modules/popcount: Renamed module/count-one-bits.
66730         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66731         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66732
66733 2007-07-23  Ben Pfaff  <blp@gnu.org>
66734
66735         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66736         better code generation, and add U to large constants to avoid
66737         warnings, in non-GCC case.
66738         Suggested by Bruno Haible.
66739
66740 2007-07-23  Ben Pfaff  <blp@gnu.org>
66741
66742         * lib/popcount.h: Use verify_true instead of if...abort.
66743         * modules/popcount: Depend on verify module.
66744         Suggested by Jim Meyering.
66745
66746 2007-07-23  Bruno Haible  <bruno@clisp.org>
66747
66748         * gnulib-tool (func_import): Create a .cvsignore file also when the
66749         directory is not yet in CVS but the toplevel directory is. When
66750         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66751         Reported by Karl Berry.
66752
66753 2007-07-22  Ben Pfaff  <blp@gnu.org>
66754
66755         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66756         case.
66757         Suggested by Eric Blake.
66758
66759 2007-07-22  Ben Pfaff  <blp@gnu.org>
66760
66761         New module: popcount.
66762         * MODULES.html.sh: Add popcount.
66763         * modules/popcount: New file.
66764         * modules/popcount-tests: New file.
66765         * tests/test-popcount.c: New file.
66766         * lib/popcount.h: New file.
66767         * m4/popcount.m4: New file.
66768
66769 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * build-aux/announce-gen: Update to GPLv3.
66772
66773         * build-aux/config.guess: Update from config.
66774
66775 2007-07-21  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66778         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66779
66780 2007-07-20  Jim Meyering  <jim@meyering.net>
66781
66782         * check-module: Diagnose a self-dependency.
66783
66784 2007-07-19  Bruno Haible  <bruno@clisp.org>
66785
66786         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66787         empty.
66788         Reported by Eric Blake.
66789
66790 2007-07-18  Bruno Haible  <bruno@clisp.org>
66791
66792         * gnulib-tool: New options --po-base, --po-domain.
66793         (func_usage): Document them.
66794         (pobase, po_domain): New variables.
66795         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66796         DEFAULT_TEXT_DOMAIN.
66797         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66798         (func_import): Consider pobase and po_domain. Create a po/ directory.
66799         (func_create_testdir): Set pobase and po_domain to empty.
66800         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66801         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66802
66803 2007-07-18  Bruno Haible  <bruno@clisp.org>
66804
66805         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66806         EXTRA_DIST augmentation for files in build-aux/.
66807
66808 2007-07-16  Bruno Haible  <bruno@clisp.org>
66809
66810         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66811         * modules/getdelim (License): Likewise.
66812
66813 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66814
66815         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66816         * modules/d-type (License): Likewise.
66817         * modules/extensions (License): Likewise.
66818         * modules/fnmatch (License): Likewise.
66819         * modules/fseeko (License): Likewise.
66820         * modules/getaddrinfo (License): Likewise.
66821         * modules/getline (License): Likewise.
66822         * modules/getlogin_r (License): Likewise.
66823         * modules/getpass (License): Likewise.
66824         * modules/gettimeofday (License): Likewise.
66825         * modules/glob (License): Likewise.
66826         * modules/inet_ntop (License): Likewise.
66827         * modules/malloc (License): Likewise.
66828         * modules/malloca (License): Likewise.
66829         * modules/memmem (License): Likewise.
66830         * modules/mempcpy (License): Likewise.
66831         * modules/memset (License): Likewise.
66832         * modules/minmax (License): Likewise.
66833         * modules/mktime (License): Likewise.
66834         * modules/netinet_in (License): Likewise.
66835         * modules/pathmax (License): Likewise.
66836         * modules/poll (License): Likewise.
66837         * modules/regex (License): Likewise.
66838         * modules/snprintf (License): Likewise.
66839         * modules/stdbool (License): Likewise.
66840         * modules/stdint (License): Likewise.
66841         * modules/stdio (License): Likewise.
66842         * modules/strcase (License): Likewise.
66843         * modules/strcasestr (License): Likewise.
66844         * modules/strdup (License): Likewise.
66845         * modules/string (License): Likewise.
66846         * modules/strndup (License): Likewise.
66847         * modules/strnlen (License): Likewise.
66848         * modules/strpbrk (License): Likewise.
66849         * modules/strptime (License): Likewise.
66850         * modules/strsep (License): Likewise.
66851         * modules/sys_select (License): Likewise.
66852         * modules/sys_socket (License): Likewise.
66853         * modules/sys_stat (License): Likewise.
66854         * modules/sys_time (License): Likewise.
66855         * modules/time (License): Likewise.
66856         * modules/time_r (License): Likewise.
66857         * modules/timegm (License): Likewise.
66858         * modules/unistd (License): Likewise.
66859         * modules/vsnprintf (License): Likewise.
66860         * modules/wctype (License): Likewise.
66861
66862 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66863
66864         * modules/argz (License): LGPLv2+.
66865
66866 2007-07-15  Karl Berry  <karl@gnu.org>
66867
66868         * doc/gnulib.texi: revise node structure per new fdl.texi.
66869
66870 2007-07-14  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66873         the output file.
66874         * lib/uniname/uninames.h: Regenerated.
66875
66876 2007-07-14  Karl Berry  <karl@gnu.org>
66877
66878         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66879         omitting sectioning and index commands.
66880
66881 2007-07-13  Bruno Haible  <bruno@clisp.org>
66882
66883         New gnulib-tool option --more-symlinks.
66884         * gnulib-tool (func_usage): Document --more-symlinks.
66885         (do_copyrights): New variable.
66886         Recognize option --more-symlinks.
66887         (func_import): Don't add a copyright notice transform to
66888         sed_transform_lib_file if do_copyrights is empty.
66889
66890 2007-07-13  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/vasnprintf.c (decimal_point_char): Define also if
66893         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66894         && !NEED_PRINTF_DIRECTIVE_A.
66895         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66896         Gary V. Vaughan <gary@gnu.org>.
66897
66898 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/inttypes_.h: Undo previous change, since it was fixed
66901         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66902
66903 2007-07-13  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66906         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66907
66908 2007-07-13  Jim Meyering  <jim@meyering.net>
66909
66910         df: Don't fail for Tru64's "file-on-file mount".
66911         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66912         so we fall through and use statfs instead.  Details here:
66913         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66914         Reported by Albert Chin.
66915
66916 2007-07-13  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66919         * modules/configmake (License): Likewise.
66920         * modules/gettext (License): Likewise.
66921         * modules/gettext-h (License): Likewise.
66922         * modules/include_next (License): Likewise.
66923         * modules/link-warning (License): Likewise.
66924         * modules/localcharset (License): Likewise.
66925         * modules/localename (License): Likewise.
66926         * modules/lock (License): Likewise.
66927         * modules/relocatable-lib-lgpl (License): Likewise.
66928         * modules/size_max (License): Likewise.
66929         * modules/vasnprintf (License): Likewise.
66930         * modules/wchar (License): Likewise.
66931         * modules/xsize (License): Likewise.
66932
66933 2007-07-13  Bruno Haible  <bruno@clisp.org>
66934
66935         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66936         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66937
66938 2007-07-12  Bruno Haible  <bruno@clisp.org>
66939
66940         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66941         in the modules files.
66942
66943 2007-07-11  Karl Berry  <karl@gnu.org>
66944
66945         * MODULES.html.sh (func_module): use
66946          sed -e '\|^'"${includefile}"'$|d'
66947          instead of /.../d, to avoid errors on $includefile's containing /.
66948
66949 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66950
66951         * gnulib-tool (func_import): Avoid duplication of --avoid
66952         statements
66953         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66954         names to `_' in variable names.
66955
66956 2007-07-10  Eric Blake  <ebb9@byu.net>
66957
66958         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66959         * NEWS: Document this change.
66960
66961 2007-07-08  Bruno Haible  <bruno@clisp.org>
66962
66963         Update to Unicode 5.0.
66964         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66965         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66966         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66967         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66968         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66969         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66970         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66971         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66972         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66973         U+10A3F, U+1D242..U+1D244.
66974         (nonspacing_table_ind): Update.
66975         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66976         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66977
66978 2007-07-08  Bruno Haible  <bruno@clisp.org>
66979
66980         Update to Unicode 5.0.
66981         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66982         code transform. Extend the name index field of unicode_name_to_code and
66983         unicode_code_to_name from 16 to 24 bits.
66984         * lib/uniname/uniname.c (unicode_character_name,
66985         unicode_name_character): Add the range 0x12xxx to the code transform.
66986         * lib/uniname/uninames.h: Regenerated.
66987         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66988
66989 2007-07-07  Bruno Haible  <bruno@clisp.org>
66990
66991         * modules/wcwidth-tests: New file.
66992         * tests/test-wcwidth.c: New file.
66993
66994         Work around MacOS X wcwidth() bug.
66995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66996         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66997         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66998         original wcwidth in non-UTF-8 locales.
66999         * modules/wcwidth (Depends-on): Add localcharset, streq,
67000         uniwidth/width.
67001         * doc/functions/wcwidth.texi: Update.
67002
67003 2007-07-07  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67006         (wcwidth): New declaration.
67007         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67008         macros.
67009         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67010         here. Prepare for creating <wchar.h> unconditionally.
67011         * modules/wchar (Depends-on): Add link-warning.
67012         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67013         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67014         * lib/wcwidth.h: Remove file.
67015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67016         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67017         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67018         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67019         (Include): Replace wcwidth.h with <wchar.h>.
67020         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67021         * lib/mbchar.h: Don't include wcwidth.h.
67022         * lib/mbswidth.c: Likewise.
67023         * NEWS: Mention the change.
67024
67025 2007-07-07  Bruno Haible  <bruno@clisp.org>
67026
67027         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67028         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67029         definition with an external declaration.
67030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67031         defined as a function. Remove AC_C_INLINE requirement.
67032         * modules/wcwidth (Files): Add lib/wcwidth.c.
67033         (Makefile.am): Remove redundant statement.
67034
67035 2007-07-07  Bruno Haible  <bruno@clisp.org>
67036
67037         * MODULES.html.sh (Unicode string functions): Add the new modules.
67038
67039         * tests/uniwidth/test-u32-strwidth.c: New file.
67040         * modules/uniwidth/u32-strwidth-tests: New file.
67041
67042         * lib/uniwidth/u32-strwidth.c: New file.
67043         * modules/uniwidth/u32-strwidth: New file.
67044
67045         * tests/uniwidth/test-u16-strwidth.c: New file.
67046         * modules/uniwidth/u16-strwidth-tests: New file.
67047
67048         * lib/uniwidth/u16-strwidth.c: New file.
67049         * modules/uniwidth/u16-strwidth: New file.
67050
67051         * tests/uniwidth/test-u8-strwidth.c: New file.
67052         * modules/uniwidth/u8-strwidth-tests: New file.
67053
67054         * lib/uniwidth/u8-strwidth.c: New file.
67055         * modules/uniwidth/u8-strwidth: New file.
67056
67057         * tests/uniwidth/test-u32-width.c: New file.
67058         * modules/uniwidth/u32-width-tests: New file.
67059
67060         * lib/uniwidth/u32-width.c: New file.
67061         * modules/uniwidth/u32-width: New file.
67062
67063         * tests/uniwidth/test-u16-width.c: New file.
67064         * modules/uniwidth/u16-width-tests: New file.
67065
67066         * lib/uniwidth/u16-width.c: New file.
67067         * modules/uniwidth/u16-width: New file.
67068
67069         * tests/uniwidth/test-u8-width.c: New file.
67070         * modules/uniwidth/u8-width-tests: New file.
67071
67072         * lib/uniwidth/u8-width.c: New file.
67073         * modules/uniwidth/u8-width: New file.
67074
67075         * tests/uniwidth/test-uc_width.c: New file.
67076         * modules/uniwidth/width-tests: New file.
67077
67078         * lib/uniwidth/width.c: New file, from GNU libiconv.
67079         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67080         * modules/uniwidth/width: New file.
67081
67082         * lib/uniwidth.h: New file, from GNU libiconv.
67083         * modules/uniwidth/base: New file.
67084
67085 2007-07-07  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/uniname.h: New file, from GNU gettext.
67088         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67089         * lib/uniname/uninames.h: New file, from GNU gettext.
67090         * lib/uniname/uniname.c: New file, from GNU gettext.
67091         * tests/uniname/test-uninames.sh: New file.
67092         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67093         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67094         * modules/uniname/base: New file.
67095         * modules/uniname/uniname: New file.
67096         * modules/uniname/uniname-tests: New file.
67097         * MODULES.html.sh (Unicode string functions): Add the new modules.
67098
67099 2007-07-06  Bruno Haible  <bruno@clisp.org>
67100
67101         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67102
67103 2007-07-06  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67106         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67107         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67108         include <sys/time.h>.
67109         Reported by Eric Blake.
67110
67111 2007-07-06  Eric Blake  <ebb9@byu.net>
67112
67113         Fix testing canonicalize on cygwin.
67114         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67115         Revert patch from 2007-06-19.
67116         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67117         canonicalize module is also in use.
67118         * tests/test-canonicalize.c: New file.
67119         * tests/test-canonicalize.sh: Likewise.
67120         * modules/canonicalize-tests: Likewise.
67121
67122 2007-07-06  Jim Meyering  <jim@meyering.net>
67123
67124         * lib/getugroups.c (getugroups): Detect getgrent failure.
67125         Adjust comment to reflect reality: this function may return -1.
67126
67127 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67128
67129         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67130         the new TP address.
67131         (usage): Fix typo
67132         (gnulib_mk): New variable.
67133
67134 2007-07-05  Jim Meyering  <jim@meyering.net>
67135
67136         Don't let endgrent clobber errno, no matter how improbable.
67137         * lib/getugroups.c (getugroups): Save and restore errno around
67138         endgrent call.
67139
67140         Close the group DB even when failing with 2^31 or more members.
67141         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67142
67143 2007-07-04  Jim Meyering  <jim@meyering.net>
67144
67145         * lib/getugroups.h: New file.
67146         * lib/getugroups.c: Include "getugroups.h".
67147         Remove uses of "register" keyword.
67148         Move local variable, "cp", down into scope where used.
67149         Give "username" parameter the "const" attribute.
67150         * modules/getugroups (Files): Add lib/getugroups.h
67151
67152 2007-07-04  Karl Berry  <karl@gnu.org>
67153
67154         * MODULES.html.sh (func_all_modules): Complete rename of
67155         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67156
67157 2007-07-02  Bruno Haible  <bruno@clisp.org>
67158
67159         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67160         mode, when inttypes.h comes from gnulib.
67161         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67162
67163 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67164
67165         * NEWS: Mention lgpl module name change.
67166
67167         * modules/lgpl-2.1: Renamed from lgpl.
67168
67169         * NEWS: Mention gpl module name change.
67170
67171         * modules/gpl-3.0: New file, based on gpl-2.0.
67172
67173         * modules/gpl-2.0: Renamed from gpl.
67174
67175         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67176         doc/gpl-2.0.texi.
67177
67178 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67181         #define __STDC_LIMIT_MACROS temporarily while including
67182         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67183         Problem reported by Joel E. Denny in
67184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67185
67186 2007-07-01  Bruno Haible  <bruno@clisp.org>
67187
67188         * lib/unistdio.h: New file.
67189         * lib/unistdio/u-asnprintf.h: New file.
67190         * lib/unistdio/u-asprintf.h: New file.
67191         * lib/unistdio/u-printf-args.c: New file.
67192         * lib/unistdio/u-printf-args.h: New file.
67193         * lib/unistdio/u-printf-parse.h: New file.
67194         * lib/unistdio/u-snprintf.h: New file.
67195         * lib/unistdio/u-sprintf.h: New file.
67196         * lib/unistdio/u-vasprintf.h: New file.
67197         * lib/unistdio/u-vsnprintf.h: New file.
67198         * lib/unistdio/u-vsprintf.h: New file.
67199         * lib/unistdio/ulc-asnprintf.c: New file.
67200         * lib/unistdio/ulc-asprintf.c: New file.
67201         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67202         * lib/unistdio/ulc-printf-parse.c: New file.
67203         * lib/unistdio/ulc-snprintf.c: New file.
67204         * lib/unistdio/ulc-sprintf.c: New file.
67205         * lib/unistdio/ulc-vasnprintf.c: New file.
67206         * lib/unistdio/ulc-vasprintf.c: New file.
67207         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67208         * lib/unistdio/ulc-vsnprintf.c: New file.
67209         * lib/unistdio/ulc-vsprintf.c: New file.
67210         * lib/unistdio/u8-asnprintf.c: New file.
67211         * lib/unistdio/u8-asprintf.c: New file.
67212         * lib/unistdio/u8-printf-parse.c: New file.
67213         * lib/unistdio/u8-snprintf.c: New file.
67214         * lib/unistdio/u8-sprintf.c: New file.
67215         * lib/unistdio/u8-vasnprintf.c: New file.
67216         * lib/unistdio/u8-vasprintf.c: New file.
67217         * lib/unistdio/u8-vsnprintf.c: New file.
67218         * lib/unistdio/u8-vsprintf.c: New file.
67219         * lib/unistdio/u8-u8-asnprintf.c: New file.
67220         * lib/unistdio/u8-u8-asprintf.c: New file.
67221         * lib/unistdio/u8-u8-snprintf.c: New file.
67222         * lib/unistdio/u8-u8-sprintf.c: New file.
67223         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67224         * lib/unistdio/u8-u8-vasprintf.c: New file.
67225         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67226         * lib/unistdio/u8-u8-vsprintf.c: New file.
67227         * lib/unistdio/u16-asnprintf.c: New file.
67228         * lib/unistdio/u16-asprintf.c: New file.
67229         * lib/unistdio/u16-printf-parse.c: New file.
67230         * lib/unistdio/u16-snprintf.c: New file.
67231         * lib/unistdio/u16-sprintf.c: New file.
67232         * lib/unistdio/u16-vasnprintf.c: New file.
67233         * lib/unistdio/u16-vasprintf.c: New file.
67234         * lib/unistdio/u16-vsnprintf.c: New file.
67235         * lib/unistdio/u16-vsprintf.c: New file.
67236         * lib/unistdio/u16-u16-asnprintf.c: New file.
67237         * lib/unistdio/u16-u16-asprintf.c: New file.
67238         * lib/unistdio/u16-u16-snprintf.c: New file.
67239         * lib/unistdio/u16-u16-sprintf.c: New file.
67240         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67241         * lib/unistdio/u16-u16-vasprintf.c: New file.
67242         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67243         * lib/unistdio/u16-u16-vsprintf.c: New file.
67244         * lib/unistdio/u32-asnprintf.c: New file.
67245         * lib/unistdio/u32-asprintf.c: New file.
67246         * lib/unistdio/u32-printf-parse.c: New file.
67247         * lib/unistdio/u32-snprintf.c: New file.
67248         * lib/unistdio/u32-sprintf.c: New file.
67249         * lib/unistdio/u32-vasnprintf.c: New file.
67250         * lib/unistdio/u32-vasprintf.c: New file.
67251         * lib/unistdio/u32-vsnprintf.c: New file.
67252         * lib/unistdio/u32-vsprintf.c: New file.
67253         * lib/unistdio/u32-u32-asnprintf.c: New file.
67254         * lib/unistdio/u32-u32-asprintf.c: New file.
67255         * lib/unistdio/u32-u32-snprintf.c: New file.
67256         * lib/unistdio/u32-u32-sprintf.c: New file.
67257         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67258         * lib/unistdio/u32-u32-vasprintf.c: New file.
67259         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67260         * lib/unistdio/u32-u32-vsprintf.c: New file.
67261         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67262         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67263         * tests/unistdio/test-ulc-printf1.h: New file.
67264         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67265         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67266         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67267         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67268         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67269         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67270         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67271         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67272         * tests/unistdio/test-u8-asnprintf1.c: New file.
67273         * tests/unistdio/test-u8-asnprintf1.h: New file.
67274         * tests/unistdio/test-u8-printf1.h: New file.
67275         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67276         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67277         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67278         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67279         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67280         * tests/unistdio/test-u8-vasprintf1.c: New file.
67281         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67282         * tests/unistdio/test-u8-vsprintf1.c: New file.
67283         * tests/unistdio/test-u16-asnprintf1.c: New file.
67284         * tests/unistdio/test-u16-asnprintf1.h: New file.
67285         * tests/unistdio/test-u16-printf1.h: New file.
67286         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67287         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67288         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67289         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67290         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67291         * tests/unistdio/test-u16-vasprintf1.c: New file.
67292         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67293         * tests/unistdio/test-u16-vsprintf1.c: New file.
67294         * tests/unistdio/test-u32-asnprintf1.c: New file.
67295         * tests/unistdio/test-u32-asnprintf1.h: New file.
67296         * tests/unistdio/test-u32-printf1.h: New file.
67297         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67298         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67299         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67300         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67301         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67302         * tests/unistdio/test-u32-vasprintf1.c: New file.
67303         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67304         * tests/unistdio/test-u32-vsprintf1.c: New file.
67305         * modules/unistdio/base: New file.
67306         * modules/unistdio/u-printf-args: New file.
67307         * modules/unistdio/ulc-asnprintf: New file.
67308         * modules/unistdio/ulc-asprintf: New file.
67309         * modules/unistdio/ulc-fprintf: New file.
67310         * modules/unistdio/ulc-printf-parse: New file.
67311         * modules/unistdio/ulc-snprintf: New file.
67312         * modules/unistdio/ulc-sprintf: New file.
67313         * modules/unistdio/ulc-vasnprintf: New file.
67314         * modules/unistdio/ulc-vasprintf: New file.
67315         * modules/unistdio/ulc-vfprintf: New file.
67316         * modules/unistdio/ulc-vsnprintf: New file.
67317         * modules/unistdio/ulc-vsprintf: New file.
67318         * modules/unistdio/u8-asnprintf: New file.
67319         * modules/unistdio/u8-asprintf: New file.
67320         * modules/unistdio/u8-printf-parse: New file.
67321         * modules/unistdio/u8-snprintf: New file.
67322         * modules/unistdio/u8-sprintf: New file.
67323         * modules/unistdio/u8-vasnprintf: New file.
67324         * modules/unistdio/u8-vasprintf: New file.
67325         * modules/unistdio/u8-vsnprintf: New file.
67326         * modules/unistdio/u8-vsprintf: New file.
67327         * modules/unistdio/u8-u8-asnprintf: New file.
67328         * modules/unistdio/u8-u8-asprintf: New file.
67329         * modules/unistdio/u8-u8-snprintf: New file.
67330         * modules/unistdio/u8-u8-sprintf: New file.
67331         * modules/unistdio/u8-u8-vasnprintf: New file.
67332         * modules/unistdio/u8-u8-vasprintf: New file.
67333         * modules/unistdio/u8-u8-vsnprintf: New file.
67334         * modules/unistdio/u8-u8-vsprintf: New file.
67335         * modules/unistdio/u16-asnprintf: New file.
67336         * modules/unistdio/u16-asprintf: New file.
67337         * modules/unistdio/u16-printf-parse: New file.
67338         * modules/unistdio/u16-snprintf: New file.
67339         * modules/unistdio/u16-sprintf: New file.
67340         * modules/unistdio/u16-vasnprintf: New file.
67341         * modules/unistdio/u16-vasprintf: New file.
67342         * modules/unistdio/u16-vsnprintf: New file.
67343         * modules/unistdio/u16-vsprintf: New file.
67344         * modules/unistdio/u16-u16-asnprintf: New file.
67345         * modules/unistdio/u16-u16-asprintf: New file.
67346         * modules/unistdio/u16-u16-snprintf: New file.
67347         * modules/unistdio/u16-u16-sprintf: New file.
67348         * modules/unistdio/u16-u16-vasnprintf: New file.
67349         * modules/unistdio/u16-u16-vasprintf: New file.
67350         * modules/unistdio/u16-u16-vsnprintf: New file.
67351         * modules/unistdio/u16-u16-vsprintf: New file.
67352         * modules/unistdio/u32-asnprintf: New file.
67353         * modules/unistdio/u32-asprintf: New file.
67354         * modules/unistdio/u32-printf-parse: New file.
67355         * modules/unistdio/u32-snprintf: New file.
67356         * modules/unistdio/u32-sprintf: New file.
67357         * modules/unistdio/u32-vasnprintf: New file.
67358         * modules/unistdio/u32-vasprintf: New file.
67359         * modules/unistdio/u32-vsnprintf: New file.
67360         * modules/unistdio/u32-vsprintf: New file.
67361         * modules/unistdio/u32-u32-asnprintf: New file.
67362         * modules/unistdio/u32-u32-asprintf: New file.
67363         * modules/unistdio/u32-u32-snprintf: New file.
67364         * modules/unistdio/u32-u32-sprintf: New file.
67365         * modules/unistdio/u32-u32-vasnprintf: New file.
67366         * modules/unistdio/u32-u32-vasprintf: New file.
67367         * modules/unistdio/u32-u32-vsnprintf: New file.
67368         * modules/unistdio/u32-u32-vsprintf: New file.
67369         * modules/unistdio/ulc-asnprintf-tests: New file.
67370         * modules/unistdio/ulc-vasnprintf-tests: New file.
67371         * modules/unistdio/ulc-vasprintf-tests: New file.
67372         * modules/unistdio/ulc-vsnprintf-tests: New file.
67373         * modules/unistdio/ulc-vsprintf-tests: New file.
67374         * modules/unistdio/u8-asnprintf-tests: New file.
67375         * modules/unistdio/u8-vasnprintf-tests: New file.
67376         * modules/unistdio/u8-vasprintf-tests: New file.
67377         * modules/unistdio/u8-vsnprintf-tests: New file.
67378         * modules/unistdio/u8-vsprintf-tests: New file.
67379         * modules/unistdio/u16-asnprintf-tests: New file.
67380         * modules/unistdio/u16-vasnprintf-tests: New file.
67381         * modules/unistdio/u16-vasprintf-tests: New file.
67382         * modules/unistdio/u16-vsnprintf-tests: New file.
67383         * modules/unistdio/u16-vsprintf-tests: New file.
67384         * modules/unistdio/u32-asnprintf-tests: New file.
67385         * modules/unistdio/u32-vasnprintf-tests: New file.
67386         * modules/unistdio/u32-vasprintf-tests: New file.
67387         * modules/unistdio/u32-vsnprintf-tests: New file.
67388         * modules/unistdio/u32-vsprintf-tests: New file.
67389         * MODULES.html.sh (Unicode string functions): Add the new modules.
67390
67391 2007-07-01  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/sprintf.c (sprintf): Limit the available length estimation,
67394         to avoid address wraparound.
67395         * lib/vsprintf.c (vsprintf): Likewise.
67396         * modules/sprintf-posix (Dependencies): Add stdint.
67397         * modules/vsprintf-posix (Dependencies): Likewise.
67398
67399 2007-07-01  Bruno Haible  <bruno@clisp.org>
67400
67401         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67402         Windows PATH as well. Conservative double-quoting. Comments.
67403
67404 2007-07-01  Bruno Haible  <bruno@clisp.org>
67405             Eric Blake  <ebb9@byu.net>
67406             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67407
67408         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67409         empty components in $PATH, denoting '.'.
67410
67411 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67412
67413         * gnulib-tool: Fix indentation.
67414         (func_create_megatestdir): Likewise.
67415         Report by Bruno Haible.
67416
67417 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67418
67419         Sync from Automake.
67420         * build-aux/gnupload: Fix shell portability issues with for loops.
67421         Report by Karl Berry.
67422
67423 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67424
67425         * build-aux/maint.mk (POURL): Use translationproject.org.
67426
67427 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67428             Bruno Haible  <bruno@clisp.org>
67429
67430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67431         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67432         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67433         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67434         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67435
67436 2007-06-27  Bruno Haible  <bruno@clisp.org>
67437
67438         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67439         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67440
67441 2007-06-26  Karl Berry  <karl@gnu.org>
67442
67443         * MODULES.html.sh: remove xreadlink-with-size.
67444
67445 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67448         method that I hope also handles the double-include problem noted
67449         by Bruno Haible in
67450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67451
67452 2007-06-23  Bruno Haible  <bruno@clisp.org>
67453
67454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67455         Don't let the 'mostlyclean' target fail if the last subdirectory could
67456         not be removed.
67457         Reported by Karl Berry.
67458
67459 2007-06-23  Bruno Haible  <bruno@clisp.org>
67460
67461         * gnulib-tool (echo): Add a speedier workaround for ksh.
67462         * tests/test-echo.sh: Likewise.
67463
67464 2007-06-23  Bruno Haible  <bruno@clisp.org>
67465
67466         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67467         * tests/test-echo.sh: Likewise.
67468
67469 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67470
67471         * gnulib-tool (IFS): Initialize early, so we don't set it to
67472         empty later.
67473         (self_abspathname): Rewrite algorithm to set it, reindent.
67474         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67475         (func_create_megatestdir): Merge some sed scripts.
67476
67477 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67480         exposed by Sun Studio 11 cc on Solaris 8.
67481
67482 2007-06-22  Bruno Haible  <bruno@clisp.org>
67483
67484         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67485         backslashes.
67486         * tests/test-echo.sh: New file.
67487
67488 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67489
67490         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67491         simplify `sed_replace_build_aux' scripts, they are portable but
67492         echoing them with `echo' is not.
67493         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67494
67495 2007-06-21  Karl Berry  <karl@gnu.org>
67496
67497         * config/srclist.txt: guess we can't handle the licenses via
67498         srclist at the moment.
67499
67500 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * MODULES.html.sh: Add include_next.
67503         * modules/include_next: New file.
67504
67505 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67508         INCLUDE_NEXT.
67509         (gl_CHECK_NEXT_HEADERS): New macro.
67510         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67511         the obsolescent gl_ABSOLUTE_HEADER.
67512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67513         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67514         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67515         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67516         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67517         * m4/math_h.m4 (gl_MATH_H): Likewise.
67518         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67519         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67520         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67521         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67522         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67523         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67524         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67529         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67530         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67532         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67533         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67534         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67535         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67536         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67537         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67538         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67539         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67540         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67541         * lib/float_.h: Likewise.
67542         * lib/inttypes_.h: Likewise.
67543         * lib/math_.h: Likewise.
67544         * lib/search_.h: Likewise.
67545         * lib/signal_.h: Likewise.
67546         * lib/stdint_.h: Likewise.
67547         * lib/stdio_.h: Likewise.
67548         * lib/stdlib_.h: Likewise.
67549         * lib/string_.h: Likewise.
67550         * lib/sys_stat_.h: Likewise.
67551         * lib/sys_time_.h: Likewise.
67552         * lib/time_.h: Likewise.
67553         * lib/unistd_.h: Likewise.
67554         * lib/wchar_.h: Likewise.
67555         * lib/wctype_.h: Likewise.
67556         * lib/dirent_.h: Likewise.
67557         * lib/iconv_.h: Likewise.
67558         * lib/locale_.h: Likewise.
67559         * lib/netinet_in_.h: Likewise.
67560         * lib/sys_select_.h: Likewise.
67561         * lib/sys_socket_.h: Likewise.
67562         * lib/sysexits_.h: Likewise.
67563         * modules/fcntl (Depends-on): Depend on include_next, not
67564         absolute_header.
67565         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67566         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67567         * modules/fchdir: Likewise.
67568         * modules/float: Likewise.
67569         * modules/iconv_open: Likewise.
67570         * modules/inttypes: Likewise.
67571         * modules/locale: Likewise.
67572         * modules/math: Likewise.
67573         * modules/netinet_in: Likewise.
67574         * modules/search: Likewise.
67575         * modules/signal: Likewise.
67576         * modules/stdint: Likewise.
67577         * modules/stdio: Likewise.
67578         * modules/stdlib: Likewise.
67579         * modules/string: Likewise.
67580         * modules/sys_select: Likewise.
67581         * modules/sys_socket: Likewise.
67582         * modules/sys_stat: Likewise.
67583         * modules/sys_time: Likewise.
67584         * modules/sysexits: Likewise.
67585         * modules/time: Likewise.
67586         * modules/unistd: Likewise.
67587         * modules/wchar: Likewise.
67588         * modules/wctype: Likewise.
67589         * modules/sys_stat: Change maintainer to "all".
67590         * modules/unistd: Likewise.
67591
67592 2007-06-20  Karl Berry  <karl@gnu.org>
67593
67594         * config/srclist.txt: track www changes in license files.
67595
67596 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67597
67598         * build-aux/bootstrap: Remove stray dot.
67599         Make sure build_aux settings are honored when linking
67600         gnulib_extra_files.
67601
67602 2007-06-19  Eric Blake  <ebb9@byu.net>
67603
67604         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67605         Allow compilation on cygwin.
67606
67607 2007-06-19  Jim Meyering  <jim@meyering.net>
67608
67609         xreadlink-with-size: Remove module.  No longer used.
67610         Ex-callers now use xreadlink or mreadlink-with-size.
67611         * modules/xreadlink-with-size: Remove module.
67612         * lib/xreadlink-with-size.c: Remove file.
67613         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67614         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67615         just before the function definition *is* accurate.
67616
67617         Eliminate one way canonicalize_filename_mode could exit.
67618         * lib/canonicalize.c (canonicalize_filename_mode):
67619         Use mreadlink_with_size, not xreadlink_with_size.
67620
67621 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67622
67623         Detect porting problems to FreeBSD/arm, which has time_t wider than
67624         long int.  Original problem reported for GNU diff by Xin Li in
67625         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67626         * modules/getdate (Depends-on): Add intprops, verify.
67627         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67628         is an integer type no wider than long int.
67629
67630 2007-06-18  Jim Meyering  <jim@meyering.net>
67631
67632         New module: mreadlink-with-size.
67633         * MODULES.html.sh: Add mreadlink-with-size.
67634         * modules/mreadlink-with-size: New module
67635         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67636         not xreadlink-with-size.
67637         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67638
67639 2007-06-16  Bruno Haible  <bruno@clisp.org>
67640
67641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67642         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67643         Reported by Gary V. Vaughan <gary@gnu.org>.
67644
67645 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         Revamp lchown so that it lives in unistd.h where it belongs.
67648         * lib/lchown.h: Remove.
67649         * lib/dirchownmod.c: Don't include lib/lchown.h.
67650         * lib/fchownat.c: Likewise.
67651         * lib/openat.c: Likewise.
67652         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67653         does not follow symlinks.
67654         (EOPNOTSUPP): Define if not defined.
67655         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67656         is defined to 0.
67657         (lchown): New decl.
67658         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67659         Do not check for lchown decl.
67660         Set REPLACE_LCHOWN.
67661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67662         REPLACE_LCHOWN.
67663         * modules/chown: Make it clear it follows symlinks.
67664         * modules/lchown: Make it clear it doesn't follow symlinks.
67665         (Files): Remove lib/lchown.h
67666         (Depends-on): Add unistd.
67667         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67668         (Include): Include <unistd.h>, not "lchown.h".
67669         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67670         REPLACE_LCHOWN.
67671
67672 2007-06-15  Jim Meyering  <jim@meyering.net>
67673
67674         Change license (GPL to LGPL) of fsusage and dependents.
67675         * modules/fsusage (License): Change to LGPL.
67676         * modules/full-read (License): Likewise.
67677         * modules/full-write (License): Likewise.
67678         * modules/safe-read (License): Likewise.
67679         * modules/safe-write (License): Likewise.
67680
67681 2007-06-14  Ben Pfaff  <blp@gnu.org>
67682
67683         Missing part of allocsa -> malloca transition.
67684         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67685         gl_MALLOCA.
67686
67687 2007-06-12  Bruno Haible  <bruno@clisp.org>
67688
67689         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67690         to ia64, x86_64, i386.
67691         Reported by Eric Blake.
67692
67693 2007-06-12  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67696         cross-compiling to x86_64.
67697
67698 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67701         glitch reported by Ralf Wildenhues in
67702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67703
67704         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67705         Vin Shelton.
67706
67707 2007-06-11  Bruno Haible  <bruno@clisp.org>
67708
67709         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67710         replacement string.
67711         Reported by Eric Blake.
67712
67713 2007-06-10  Bruno Haible  <bruno@clisp.org>
67714
67715         Prepare vasnprintf code for use with Unicode strings.
67716         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67717         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67718         TYPE_U32_STRING.
67719         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67720         a_u32_string variants.
67721         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67722         * lib/printf-args.c: Don't include config.h and the specification
67723         header if PRINTF_FETCHARGS is already defined.
67724         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67725         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67726         TYPE_U16_STRING, TYPE_U32_STRING.
67727         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67728         u16_directive, u16_directives, u32_directive, u32_directives): New
67729         types.
67730         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67731         New declarations.
67732         * lib/printf-parse.c: Don't include config.h and the specification
67733         header if PRINTF_PARSE is already defined. Eliminate the set of
67734         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67735         them now. Include c-ctype.h.
67736         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67737         directive and CHAR_T_ONLY_ASCII.
67738         * lib/vasnprintf.c: Don't include config.h and the specification header
67739         if VASNPRINTF is already defined.
67740         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67741         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67742         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67743         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67744         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67745         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67746         code accordingly.
67747         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67748         pad_ourselves also in this case, with the 'c' and 's' directives, and
67749         with a different notion of "width".
67750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67751
67752 2007-06-10  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/unistr/u32-mbsnlen: New file.
67755         * lib/unistr/u32-mbsnlen.c: New file.
67756
67757         * modules/unistr/u16-mbsnlen: New file.
67758         * lib/unistr/u16-mbsnlen.c: New file.
67759
67760         * modules/unistr/u8-mbsnlen: New file.
67761         * lib/unistr/u8-mbsnlen.c: New file.
67762
67763         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67764         declarations.
67765
67766 2007-06-10  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/string_.h (mbsnlen): New declaration.
67769         * lib/mbsnlen.c: New file.
67770         * m4/mbsnlen.m4: New file.
67771         * modules/mbsnlen: New file.
67772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67773         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67774         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67775
67776 2007-06-10  Bruno Haible  <bruno@clisp.org>
67777
67778         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67779
67780 2007-06-10  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67783         * lib/mbuiter.h: Likewise.
67784
67785 2007-06-10  Bruno Haible  <bruno@clisp.org>
67786
67787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67788         declaration.
67789
67790 2007-06-10  Karl Berry  <karl@gnu.org>
67791
67792         * config/srclist.txt: remove gettext entries, Bruno prefers
67793         to update individually.
67794
67795 2007-06-10  Bruno Haible  <bruno@clisp.org>
67796
67797         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67798         'maxlen'. Ensure only length + width bytes are allocated, not
67799         length + 1 + width.
67800
67801 2007-06-09  Bruno Haible  <bruno@clisp.org>
67802
67803         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67804         (CHAR_T): Remove macro.
67805         (VASNPRINTF): Update.
67806
67807 2007-06-09  Bruno Haible  <bruno@clisp.org>
67808
67809         * MODULES.html.sh (Unicode string functions): Add the new modules.
67810
67811         * modules/uniconv/u32-conv-to-enc: New file.
67812         * lib/uniconv/u32-conv-to-enc.c: New file.
67813         * modules/uniconv/u32-conv-to-enc-tests: New file.
67814         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67815
67816         * modules/uniconv/u16-conv-to-enc: New file.
67817         * lib/uniconv/u16-conv-to-enc.c: New file.
67818         * lib/uniconv/u-conv-to-enc.h: New file.
67819         * modules/uniconv/u16-conv-to-enc-tests: New file.
67820         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67821
67822         * modules/uniconv/u8-conv-to-enc: New file.
67823         * lib/uniconv/u8-conv-to-enc.c: New file.
67824         * modules/uniconv/u8-conv-to-enc-tests: New file.
67825         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67826
67827         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67828         u32_conv_to_encoding): New declarations.
67829
67830 2007-06-09  Bruno Haible  <bruno@clisp.org>
67831
67832         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67833
67834 2007-06-09  Bruno Haible  <bruno@clisp.org>
67835
67836         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67837         * modules/malloca: Renamed from modules/allocsa, updated.
67838         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67839         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67840         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67841         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67842         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67843         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67844         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67845         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67846         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67847         * modules/c-strcasestr (Depends-on): Update.
67848         * lib/c-strcasestr.c: Update.
67849         * modules/c-strstr (Depends-on): Update.
67850         * lib/c-strstr.c: Update.
67851         * modules/canonicalize-lgpl (Depends-on): Update.
67852         * lib/canonicalize-lgpl.c: Update.
67853         * modules/clean-temp (Depends-on): Update.
67854         * lib/clean-temp.c: Update.
67855         * modules/csharpcomp (Depends-on): Update.
67856         * lib/csharpcomp.c: Update.
67857         * modules/csharpexec (Depends-on): Update.
67858         * lib/csharpexec.c: Update.
67859         * modules/javacomp (Depends-on): Update.
67860         * lib/javacomp.c: Update.
67861         * modules/javaexec (Depends-on): Update.
67862         * lib/javaexec.c: Update.
67863         * modules/mbscasestr (Depends-on): Update.
67864         * lib/mbscasestr.c: Update.
67865         * modules/mbsstr (Depends-on): Update.
67866         * lib/mbsstr.c: Update.
67867         * modules/setenv (Depends-on): Update.
67868         * lib/setenv.c: Update.
67869         * modules/strcasestr (Depends-on): Update.
67870         * lib/strcasestr.c: Update.
67871         * modules/striconveha (Depends-on): Update.
67872         * lib/striconveha.c: Update.
67873         * modules/relocatable-prog-wrapper (Files): Update.
67874         * lib/relocwrapper.c: Update.
67875         * build-aux/install-reloc: Update.
67876         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67877
67878 2007-06-08  Bruno Haible  <bruno@clisp.org>
67879
67880         Port to uClibc.
67881         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67882         * lib/fpurge.c (fpurge): Likewise.
67883         * lib/freading.c (freading): Likewise.
67884         * lib/fseeko.c (rpl_fseeko): Likewise.
67885         * lib/fseterr.c (fseterr): Likewise.
67886         * lib/fwriting.c (fwriting): Likewise.
67887         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67888
67889 2007-06-08  Bruno Haible  <bruno@clisp.org>
67890
67891         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67892         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67893         * modules/gettext (Files): Add m4/intlmacosx.m4.
67894
67895 2007-06-07  Bruno Haible  <bruno@clisp.org>
67896
67897         * modules/localename-tests: New file.
67898         * tests/test-localename.c: New file.
67899
67900         New module 'localename'.
67901         * lib/localename.h: New file.
67902         * lib/localename.c: New file, from GNU gettext.
67903         * m4/localename.m4: New file.
67904         * modules/localename: New file.
67905
67906 2007-06-07  Bruno Haible  <bruno@clisp.org>
67907
67908         Work around the lack of <wchar.h> on some builds of uClibc.
67909         * doc/headers/wchar.texi: Update.
67910         * lib/wchar_.h: Include <wchar.h> only if it exists.
67911         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67912         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67913         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67914         doesn't exist.
67915         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67916         * modules/mbfile (Depends-on): Add wchar.
67917         * modules/mbiter (Depends-on): Likewise.
67918         * modules/mbuiter (Depends-on): Likewise.
67919         Reported by Simon Josefsson.
67920
67921 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         Work around problem reported by Steven M. Schweda in
67924         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67925         Tru64 5.1B with the Compaq compiler environment installed declares
67926         an 'isblank' function but does not define it in the C library.
67927         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67928         * lib/regex_internal.h (isblank): Likewise.
67929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67930         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67931
67932 2007-06-05  Bruno Haible  <bruno@clisp.org>
67933
67934         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67935         ia64.
67936         * modules/printf-safe: New file.
67937         * modules/fprintf-posix (Depends-on): Add printf-safe.
67938         * modules/printf-posix (Depends-on): Likewise.
67939         * modules/snprintf-posix (Depends-on): Likewise.
67940         * modules/sprintf-posix (Depends-on): Likewise.
67941         * modules/vasnprintf-posix (Depends-on): Likewise.
67942         * modules/vasprintf-posix (Depends-on): Likewise.
67943         * modules/vfprintf-posix (Depends-on): Likewise.
67944         * modules/vprintf-posix (Depends-on): Likewise.
67945         * modules/vsnprintf-posix (Depends-on): Likewise.
67946         * modules/vsprintf-posix (Depends-on): Likewise.
67947         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67948         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67949         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67950         "no" on i386, x86_64, ia64.
67951         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67952         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67953         on i386, x86_64, ia64.
67954         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67955         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67956         on i386, x86_64, ia64.
67957         * tests/test-vasnprintf-posix.c: Include float.h.
67958         (LDBL80_WORDS): New macro.
67959         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67960         on i386, x86_64, ia64.
67961         * tests/test-vasprintf-posix.c: Include float.h.
67962         (LDBL80_WORDS): New macro.
67963         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67964         on i386, x86_64, ia64.
67965         * tests/test-snprintf-posix.c: Include float.h.
67966         * tests/test-sprintf-posix.c: Likewise.
67967         * tests/test-vsnprintf-posix.c: Likewise.
67968         * tests/test-vsprintf-posix.c: Likewise.
67969
67970 2007-06-05  Bruno Haible  <bruno@clisp.org>
67971
67972         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67974         non-IEEE numbers on i386, x86_64, ia64.
67975         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67976         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67977         * tests/test-isnanl.h: Include float.h.
67978         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67979
67980 2007-06-05  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67983         also the %a / %A. Handle the %a / %A code before this extra handling.
67984
67985 2007-06-05  Bruno Haible  <bruno@clisp.org>
67986
67987         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67988         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67989
67990 2007-06-05  Bruno Haible  <bruno@clisp.org>
67991
67992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67993         typo in variable name.
67994
67995 2007-06-05  Eric Blake  <ebb9@byu.net>
67996
67997         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67998         Reported by Simon Josefsson.
67999
68000 2007-06-04  Bruno Haible  <bruno@clisp.org>
68001
68002         Avoid test failures on some PowerPC platforms.
68003         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68004         Define differently for PowerPC.
68005         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68006         Reported by Gary V. Vaughan <gary@gnu.org>.
68007
68008 2007-06-02  Bruno Haible  <bruno@clisp.org>
68009
68010         Fix test-stdint failure on FreeBSD/ia64.
68011         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68012         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68013         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68014         * doc/headers/stdint.texi: Update.
68015
68016 2007-06-01  Bruno Haible  <bruno@clisp.org>
68017
68018         * tests/test-binary-io.c (main): Pass a third argument to open().
68019         Reported by Gary V. Vaughan <gary@gnu.org>.
68020
68021 2007-06-01  Bruno Haible  <bruno@clisp.org>
68022
68023         * doc/functions/frexpl.texi: Update for mingw.
68024
68025 2007-06-01  Bruno Haible  <bruno@clisp.org>
68026
68027         * tests/test-lseek.c (main): Disable test of errno for invalid third
68028         argument.
68029         * doc/functions/lseek.texi: Update.
68030         Reported by Gary V. Vaughan <gary@gnu.org>.
68031
68032 2007-05-28  Bruno Haible  <bruno@clisp.org>
68033
68034         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68035
68036 2007-05-31  Eric Blake  <ebb9@byu.net>
68037
68038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68039         cross compiling.
68040
68041 2007-05-30  Eric Blake  <ebb9@byu.net>
68042         and Bruno Haible  <bruno@clisp.org>
68043
68044         Work around mingw test failures exposed by m4-1.4.9b.
68045         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68046         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68047         moment.
68048
68049 2007-05-30  Bruno Haible  <bruno@clisp.org>
68050
68051         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68052         assuming that they are closed. Needed on HP-UX 11.
68053
68054 2007-05-29  Bruno Haible  <bruno@clisp.org>
68055
68056         Fix a problem with #include_next.
68057         * lib/dirent_.h: Split the double-inclusion guard.
68058         * lib/fcntl_.h: Likewise.
68059         * lib/float_.h: Likewise.
68060         * lib/iconv_.h: Likewise.
68061         * lib/inttypes_.h: Likewise.
68062         * lib/locale_.h: Likewise.
68063         * lib/math_.h: Likewise.
68064         * lib/netinet_in_.h: Likewise.
68065         * lib/search_.h: Likewise.
68066         * lib/signal_.h: Likewise.
68067         * lib/stdint_.h: Likewise.
68068         * lib/stdio_.h: Likewise.
68069         * lib/stdlib_.h: Likewise.
68070         * lib/string_.h: Likewise.
68071         * lib/sys_select_.h: Likewise.
68072         * lib/sys_socket_.h: Likewise.
68073         * lib/sys_stat_.h: Likewise.
68074         * lib/sys_time_.h: Likewise.
68075         * lib/sysexits_.h: Likewise.
68076         * lib/time_.h: Likewise.
68077         * lib/unistd_.h: Likewise.
68078         * lib/wchar_.h: Likewise.
68079         * lib/wctype_.h: Likewise.
68080
68081 2007-05-29  Bruno Haible  <bruno@clisp.org>
68082
68083         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68084         for the moment.
68085
68086 2007-05-29  Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68089         invocation.
68090         Reported by Eric Blake.
68091
68092 2007-05-29  Bruno Haible  <bruno@clisp.org>
68093
68094         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68095         compiling case.
68096
68097 2007-05-29  Eric Blake  <ebb9@byu.net>
68098             Bruno Haible  <bruno@clisp.org>
68099
68100         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68101         cross compiles.
68102
68103 2007-05-28  Eric Blake  <ebb9@byu.net>
68104
68105         * modules/closein-tests (test_closein_LDADD): Support test on
68106         cygwin with libtool.
68107
68108 2007-05-28  Bruno Haible  <bruno@clisp.org>
68109
68110         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68111         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68112         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68113         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68114         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68115         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68116         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68117         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68118         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68119
68120 2007-05-28  Eric Blake  <ebb9@byu.net>
68121
68122         Unconditionally include <config.h> in unit tests.
68123         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68124         * tests/test-allocsa.c, tests/test-arcfour.c,
68125         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68126         tests/test-array_list.c, tests/test-array_oset.c,
68127         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68128         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68129         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68130         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68131         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68132         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68133         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68134         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68135         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68136         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68137         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68138         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68139         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68140         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68141         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68142         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68143         test-md5.c, test-memmem.c, test-printf-posix.c,
68144         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68145         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68146         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68147         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68148         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68149         test-vasnprintf-posix2.c, test-vasnprintf.c,
68150         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68151         test-vfprintf-posix.c, test-vprintf-posix.c,
68152         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68153         test-xvasprintf.c: Likewise.
68154
68155 2007-05-28  Bruno Haible  <bruno@clisp.org>
68156
68157         * gnulib-tool (func_import): Remember the --with-tests command-line
68158         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68159         Reported by Eric Blake.
68160
68161 2007-05-28  Bruno Haible  <bruno@clisp.org>
68162
68163         * modules/ftell-tests: New file.
68164         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68165         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68166
68167         * lib/ftell.c: New file.
68168         * modules/ftell: New file.
68169         * m4/ftell.m4: New file.
68170         * doc/functions/ftell.texi: Update.
68171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68172         REPLACE_FTELL.
68173         * lib/stdio_.h (rpl_ftell): New declaration.
68174         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68175         REPLACE_FTELL.
68176
68177 2007-05-28  Eric Blake  <ebb9@byu.net>
68178
68179         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68180
68181 2007-05-28  Bruno Haible  <bruno@clisp.org>
68182
68183         * modules/fseek-tests: New file.
68184         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68185         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68186
68187         * lib/fseek.c: New file.
68188         * modules/fseek: New file.
68189         * m4/fseek.m4: New file.
68190         * doc/functions/fseek.texi: Update.
68191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68192         REPLACE_FSEEK.
68193         * lib/stdio_.h (rpl_fseek): New declaration.
68194         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68195         REPLACE_FSEEK.
68196
68197 2007-05-28  Bruno Haible  <bruno@clisp.org>
68198
68199         * lib/stdio_.h (fflush): More comments.
68200
68201 2007-05-28  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68204         runtime test.
68205
68206 2007-05-28  Eric Blake  <ebb9@byu.net>
68207
68208         Improve lseek module.
68209         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68210         * lib/unistd_.h (lseek): Scale back link warning message.
68211         * tests/test-lseek.c: Beef up test.
68212         * tests/test-lseek.sh: Exercise more facets of lseek.
68213         Reported by Bruno Haible.
68214
68215 2007-05-28  Bruno Haible  <bruno@clisp.org>
68216
68217         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68218         to define.
68219
68220 2007-05-27  Bruno Haible  <bruno@clisp.org>
68221
68222         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68223
68224 2007-05-27  Bruno Haible  <bruno@clisp.org>
68225
68226         * modules/openmp: New file.
68227         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68228         Noah Misch.
68229
68230 2007-05-26  Bruno Haible  <bruno@clisp.org>
68231
68232         * modules/chdir-long (Depends-on): Add fchdir.
68233         * modules/chdir-safer (Depends-on): Likewise.
68234         * modules/fts (Depends-on): Likewise.
68235         * modules/fts-lgpl (Depends-on): Likewise.
68236         * modules/openat (Depends-on): Likewise.
68237         * modules/savewd (Depends-on): Likewise.
68238
68239 2007-05-24  Eric Blake  <ebb9@byu.net>
68240
68241         Fix lseek on mingw.
68242         * modules/lseek: New module.
68243         * m4/lseek.m4: New file.
68244         * lib/lseek.c: New file.
68245         * modules/lseek-tests: New file.
68246         * tests/test-lseek.c: New file.
68247         * tests/test-lseek.sh: New file.
68248         * MODULES.html.sh: Document lseek module.
68249         * modules/fflush (Depends-on): Add lseek, fseeko.
68250         * modules/fseeko (Depends-on): Likewise.
68251         * modules/ftello (Depends-on): Likewise.
68252         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68253         broken.
68254         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68255         broken.
68256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68257         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68258         * lib/ftello.c (rpl_ftello): Likewise.
68259         * tests/test-fseeko.c (main): Test this.
68260         * tests/test-fseeko.sh: Likewise.
68261         * tests/test-ftello.c (main): Likewise.
68262         * tests/test-ftello.sh: Likewise.
68263         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68264         implies replacing fseek.
68265         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68266         HAVE_FTELLO.
68267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68268         * modules/unistd (Makefile.am): Likewise.
68269         * lib/unistd_.h (lseek): Declare a replacement.
68270         * doc/functions/lseek.texi (lseek): Document this fix.
68271         * doc/functions/fseek.texi (fseek): Likewise.
68272         * doc/functions/ftell.texi (ftell): Likewise.
68273
68274 2007-05-24  Bruno Haible  <bruno@clisp.org>
68275
68276         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68277         in the printed representation of a NaN.
68278         * tests/test-vasprintf-posix.c (test_function): Likewise.
68279         * tests/test-snprintf-posix.h (test_function): Likewise.
68280         * tests/test-sprintf-posix.h (test_function): Likewise.
68281         Reported by Eric Blake.
68282
68283 2007-05-23  Eric Blake  <ebb9@byu.net>
68284
68285         Fix fseeko/ftello on cygwin 1.5.24.
68286         * doc/functions/fseeko.texi (fseeko): Document the fix.
68287         * doc/functions/ftello.texi (ftello): Document the fix.
68288         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68289         * doc/functions/stdout.text (stdout): New file.
68290         * doc/functions/stderr.text (stderr): New file.
68291         * doc/gnulib.texi (Function Substitutes): Use new files.
68292         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68293         prior to 1.7.0.
68294         * tests/test-ftello.c (main): Likewise for ftello.
68295         * tests/test-fseeko.sh: New file.
68296         * tests/test-ftello.sh: New file.
68297         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68298         with seekable stdin.
68299         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68301         (gl_REPLACE_FSEEKO): New macro.
68302         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68303         * modules/fseeko (Files): Distribute fseeko.c.
68304         * modules/ftello (Files): Distribute ftello.c.
68305         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68306         mode.
68307         * lib/ftello.c (rpl_ftello): New file.
68308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68309         fseeko, ftello.
68310         (gl_STDIN_LARGE_OFFSET): New macro.
68311         * modules/stdio (Makefile.am): Perform the replacement.
68312         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68313
68314 2007-05-23  Bruno Haible  <bruno@clisp.org>
68315
68316         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68317         GNULIB_POSIXCHECK is defined.
68318
68319 2007-05-21  Bruno Haible  <bruno@clisp.org>
68320
68321         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68322         Check also the output for NaN arguments. When cross-compiling, guess
68323         no on IRIX.
68324         * lib/vasnprintf.c: Update comments.
68325         * tests/test-vasnprintf-posix.c (strisnan): New function.
68326         (test_function): Use it.
68327         * tests/test-vasprintf-posix.c (strisnan): New function.
68328         (test_function): Use it.
68329         * tests/test-snprintf-posix.h (strisnan): New function.
68330         (test_function): Use it.
68331         * tests/test-sprintf-posix.h (strisnan): New function.
68332         (test_function): Use it.
68333         Reported by Eric Blake.
68334
68335 2007-05-20  Bruno Haible  <bruno@clisp.org>
68336
68337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68338         numbers that fails on BeOS.
68339         * doc/functions/frexpl.texi: Update.
68340
68341 2007-05-20  Jim Meyering  <jim@meyering.net>
68342
68343         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68344         forced upon us by glibc-2.6.
68345
68346 2007-05-20  Bruno Haible  <bruno@clisp.org>
68347
68348         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68349         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68350         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68351         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68352         NEED_PRINTF_INFINITE.
68353         (is_infinitel): New function.
68354         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68356         gl_PREREQ_VASNPRINTF_INFINITE.
68357         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68358         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68359         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68360         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68361         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68362         gl_PREREQ_VASNPRINTF_INFINITE.
68363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68370         * doc/functions/fprintf.texi: Update.
68371         * doc/functions/printf.texi: Update.
68372         * doc/functions/snprintf.texi: Update.
68373         * doc/functions/sprintf.texi: Update.
68374         * doc/functions/vfprintf.texi: Update.
68375         * doc/functions/vprintf.texi: Update.
68376         * doc/functions/vsnprintf.texi: Update.
68377         * doc/functions/vsprintf.texi: Update.
68378
68379 2007-05-20  Bruno Haible  <bruno@clisp.org>
68380
68381         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68382         was not found in libc.
68383         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68384
68385 2007-05-20  Bruno Haible  <bruno@clisp.org>
68386
68387         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68388         printed as "-nan" instead of "nan".
68389         * tests/test-vasprintf-posix.c (test_function): Likewise.
68390         * tests/test-snprintf-posix.h (test_function): Likewise.
68391         * tests/test-sprintf-posix.h (test_function): Likewise.
68392         Needed for HP-UX 11.
68393
68394 2007-05-20  Jim Meyering  <jim@meyering.net>
68395
68396         Fix buggy test for the fchownat-deref bug.
68397         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68398         symlink required for the run-test.  Without it, this test would
68399         always declare that fchownat doesn't work, and client code would
68400         unnecessarily use the replacement function with fixed libc.
68401         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68402         Reported by Greg Schafer.
68403
68404 2007-05-19  Bruno Haible  <bruno@clisp.org>
68405
68406         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68407         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68408         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68409         Needed for IRIX 6.5 and Solaris 2.5.1.
68410
68411 2007-05-19  Bruno Haible  <bruno@clisp.org>
68412
68413         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68414         (test_function): Skip tests involving -0.0 on platforms where
68415         -0.0 = 0.0.
68416         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68417         (test_function): Skip tests involving -0.0 on platforms where
68418         -0.0 = 0.0.
68419         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68420         (test_function): Skip tests involving -0.0 on platforms where
68421         -0.0 = 0.0.
68422         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68423         (test_function): Skip tests involving -0.0 on platforms where
68424         -0.0 = 0.0.
68425         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68426         tests.
68427         * tests/test-printf-posix.h (test_function): Likewise.
68428         * tests/test-printf-posix.output: Remove all -0.0 related results.
68429         Needed for IRIX 6.5.
68430
68431 2007-05-19  Bruno Haible  <bruno@clisp.org>
68432
68433         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68434         printed as "nan0x7fffffff" instead of "nan".
68435         * tests/test-vasprintf-posix.c (test_function): Likewise.
68436         * tests/test-snprintf-posix.h (test_function): Likewise.
68437         * tests/test-sprintf-posix.h (test_function): Likewise.
68438         * tests/test-fprintf-posix.h (NaN): Remove macro.
68439         (test_function): Remove all NaN related tests.
68440         * tests/test-printf-posix.h (NaN): Remove macro.
68441         (test_function): Remove all NaN related tests.
68442         * tests/test-printf-posix.output: Remove all NaN related results.
68443         Needed for IRIX 6.5.
68444
68445 2007-05-19  Bruno Haible  <bruno@clisp.org>
68446
68447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68449
68450 2007-05-19  Bruno Haible  <bruno@clisp.org>
68451
68452         * lib/float_.h: New file.
68453         * m4/float_h.m4: New file.
68454         * modules/float: New file.
68455         * modules/isnanl (Dependencies): Add float.
68456         * modules/isnanl-nolibm (Dependencies): Likewise.
68457         * modules/mathl (Dependencies): Likewise.
68458         * modules/printf-frexpl (Dependencies): Likewise.
68459         * modules/signbit (Dependencies): Likewise.
68460         * modules/vasnprintf (Dependencies): Likewise.
68461         * doc/headers/float.texi: Update.
68462
68463 2007-05-19  Jim Meyering  <jim@meyering.net>
68464
68465         * lib/utimens.c (gl_futimens): Rename from futimens,
68466         now that glibc-2.6 declares futimens.
68467         * lib/utimens.h: Likewise.
68468
68469 2007-05-19  Bruno Haible  <bruno@clisp.org>
68470
68471         Avoid test failures on mingw.
68472         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68473         * tests/test-printf-posix.sh: Likewise.
68474         * tests/test-vfprintf-posix.sh: Likewise.
68475         * tests/test-vprintf-posix.sh: Likewise.
68476
68477 2007-05-19  Bruno Haible  <bruno@clisp.org>
68478
68479         Fix *printf result for NaN, Inf, -0.0 on mingw.
68480         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68481         * lib/vasnprintf.c: Include math.h and isnan.h.
68482         (is_infinite_or_zero): New function.
68483         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68484         values in the %f, %F, %e, %E, %g, %G directives.
68485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68487         gl_PRINTF_INFINITE and test its result. Invoke
68488         gl_PREREQ_VASNPRINTF_INFINITE.
68489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68492         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68493         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68496         * doc/functions/fprintf.texi: Update.
68497         * doc/functions/printf.texi: Update.
68498         * doc/functions/snprintf.texi: Update.
68499         * doc/functions/sprintf.texi: Update.
68500         * doc/functions/vfprintf.texi: Update.
68501         * doc/functions/vprintf.texi: Update.
68502         * doc/functions/vsnprintf.texi: Update.
68503         * doc/functions/vsprintf.texi: Update.
68504
68505 2007-05-19  Bruno Haible  <bruno@clisp.org>
68506
68507         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68508         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68509         Instead of multiplying with 10^k, set extra_zeroes to k.
68510         (scale10_round_long_double): Remove function.
68511
68512 2007-05-18  Bruno Haible  <bruno@clisp.org>
68513
68514         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68515         introduced on 2007-05-06.
68516
68517 2007-05-18  Bruno Haible  <bruno@clisp.org>
68518
68519         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68520         %g directives.
68521         * tests/test-vasprintf-posix.c (test_function): Likewise.
68522         * tests/test-snprintf-posix.h (test_function): Likewise.
68523         * tests/test-sprintf-posix.h (test_function): Likewise.
68524
68525 2007-05-18  Bruno Haible  <bruno@clisp.org>
68526
68527         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68528         (strmatch): New function.
68529         (test_function): Test the %f directive on numbers of various exponents.
68530         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68531         (strmatch): New function.
68532         (test_function): Test the %f directive on numbers of various exponents.
68533         * tests/test-snprintf-posix.h (strmatch): New function.
68534         (test_function): Test the %f directive on numbers of various exponents.
68535         * tests/test-sprintf-posix.h (strmatch): New function.
68536         (test_function): Test the %f directive on numbers of various exponents.
68537         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68538         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68539         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68540         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68541
68542 2007-05-18  Bruno Haible  <bruno@clisp.org>
68543
68544         Add support for 'long double' number output.
68545         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68546         * lib/vasnprintf.c: Include math.h and float+.h.
68547         (mp_limb_t): New type.
68548         (GMP_LIMB_BITS): New macro.
68549         (mp_twolimb_t): New type.
68550         (GMP_TWOLIMB_BITS): New macro.
68551         (mpn_t): New type.
68552         (multiply, divide, convert_to_decimal, decode_long_double,
68553         scale10_round_long_double, scale10_round_decimal_long_double,
68554         floorlog10l): New functions.
68555         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68556         for the %f, %F, %e, %E, %g, %G directives.
68557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68559         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68560         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68568         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68569         * modules/snprintf-posix (Depends-on): Likewise.
68570         * modules/sprintf-posix (Depends-on): Likewise.
68571         * modules/vasnprintf-posix (Depends-on): Likewise.
68572         * modules/vasprintf-posix (Depends-on): Likewise.
68573         * modules/vfprintf-posix (Depends-on): Likewise.
68574         * modules/vsnprintf-posix (Depends-on): Likewise.
68575         * modules/vsprintf-posix (Depends-on): Likewise.
68576         * modules/vasnprintf (Files): Add lib/float+.h.
68577         * doc/functions/fprintf.texi: Update.
68578         * doc/functions/printf.texi: Update.
68579         * doc/functions/snprintf.texi: Update.
68580         * doc/functions/sprintf.texi: Update.
68581         * doc/functions/vfprintf.texi: Update.
68582         * doc/functions/vprintf.texi: Update.
68583         * doc/functions/vsnprintf.texi: Update.
68584         * doc/functions/vsprintf.texi: Update.
68585
68586 2007-05-18  Bruno Haible  <bruno@clisp.org>
68587
68588         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68589
68590 2007-05-18  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68593         for printing 64-bit integers. Needed for mingw.
68594
68595 2007-05-18  Bruno Haible  <bruno@clisp.org>
68596
68597         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68598         gl_FUNC_FREXPL_WORKS.
68599         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68600
68601 2007-05-18  Bruno Haible  <bruno@clisp.org>
68602
68603         * modules/frexpl-nolibm-tests: New file.
68604
68605         * modules/frexpl-nolibm: New file.
68606         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68607
68608 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68611         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68612         GCC 4.2, which otherwise issues a lot of warnings.
68613         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68614         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68615         Likewise.
68616         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68617         * modules/iconv_open (iconv.h): Likewise.
68618         * modules/locale (locale.h): Likewise.
68619         * modules/netinet_in (netinet/in.h): Likewise.
68620         * modules/sys_select (sys_select.h): Likewise.
68621         * modules/sys_socket (sys/socket.h): Likewise.
68622         * modules/sys_stat (sys/stat.h): Likewise.
68623         * modules/sysexits (sysexits.h): Likewise.
68624         * modules/unistd (unistd.h): Likewise.
68625
68626 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68627
68628         * modules/closein-tests (Makefile.am): Distribute
68629         `test-closein.sh'.
68630
68631 2007-05-17  Bruno Haible  <bruno@clisp.org>
68632
68633         * tests/test-printf-posix.output: Renamed from
68634         tests/test-fprintf-posix.out.
68635         * modules/fprintf-posix-tests: Update.
68636         * modules/printf-posix-tests: Update.
68637         * modules/vfprintf-posix-tests: Update.
68638         * modules/vprintf-posix-tests: Update.
68639         * tests/test-fprintf-posix.sh: Update.
68640         * tests/test-printf-posix.sh: Update.
68641         * tests/test-vfprintf-posix.sh: Update.
68642         * tests/test-vprintf-posix.sh: Update.
68643         Reported by Ralf Wildenhues.
68644
68645 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68648         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68649         GCC 4.2, which otherwise issues a lot of warnings.
68650         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68651         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68652         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68653         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68654         it should no longer be needed.
68655         * lib/string_.h: Likewise.
68656         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68657         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68658         * modules/inttypes (inttypes.h): Likewise.
68659         * modules/math (math.h): Likewise.
68660         * modules/search (search.h): Likewise.
68661         * modules/signal (signal.h): Likewise.
68662         * modules/stdint (stdint.h): Likewise.
68663         * modules/stdio (stdio.h): Likewise.
68664         * modules/stdlib (stdlib.h): Likewise.
68665         * modules/string (string.h): Likewise.
68666         * modules/sys_time (sys/time.h): Likewise.
68667         * modules/time (time.h): Likewise.
68668         * modules/wchar (wchar.h): Likewise.
68669         * modules/wctype (wtype.h): Likewise.
68670
68671 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68672
68673         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68674
68675 2007-05-13  Bruno Haible  <bruno@clisp.org>
68676
68677         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68678         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68679         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68680         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68681         (gl_PREREQ_STRTOK_R): Don't require it here.
68682
68683 2007-05-13  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68686         when used in C++ mode.
68687
68688 2007-05-12  Bruno Haible  <bruno@clisp.org>
68689
68690         * lib/linebuffer.h: Tweak doc.
68691         * lib/linebuffer.c: Likewise.
68692
68693 2007-05-12  James Youngman  <jay@gnu.org>
68694
68695         * lib/linebuffer.c (readlinebuffer_delim): New function,
68696         like readlinebuffer, but use a caller-specified delimiter.
68697         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68698         as the delimiter.
68699         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68700
68701 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68702
68703         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68704         * modules/openat (Files): Remove openat-die.c.
68705         (Depends-on): Add openat-die.
68706         * modules/openat-die: New module.
68707
68708 2007-05-06  Bruno Haible  <bruno@clisp.org>
68709
68710         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68711         Update with info about Cygwin.
68712         * doc/functions/fprintf.texi: Update.
68713         * doc/functions/printf.texi: Update.
68714         * doc/functions/snprintf.texi: Update.
68715         * doc/functions/sprintf.texi: Update.
68716         * doc/functions/vfprintf.texi: Update.
68717         * doc/functions/vprintf.texi: Update.
68718         * doc/functions/vsnprintf.texi: Update.
68719         * doc/functions/vsprintf.texi: Update.
68720         Reported by Eric Blake.
68721
68722 2007-05-06  Bruno Haible  <bruno@clisp.org>
68723
68724         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68725         padding ourselves for the floating-point directives.
68726         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68729         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68730         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68738         * tests/test-snprintf-posix.h (test_function): Also check the width
68739         and some flags in the %f directive.
68740         * tests/test-sprintf-posix.h (test_function): Likewise.
68741         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68742         * tests/test-vasprintf-posix.c (test_function): Likewise.
68743         * doc/functions/fprintf.texi: Update.
68744         * doc/functions/printf.texi: Update.
68745         * doc/functions/snprintf.texi: Update.
68746         * doc/functions/sprintf.texi: Update.
68747         * doc/functions/vfprintf.texi: Update.
68748         * doc/functions/vprintf.texi: Update.
68749         * doc/functions/vsnprintf.texi: Update.
68750         * doc/functions/vsprintf.texi: Update.
68751
68752 2007-05-06  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68755         pass the ' flag character to sprintf or snprintf.
68756         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68759         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68760         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68768         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68769         flag.
68770         * tests/test-sprintf-posix.h (test_function): Likewise.
68771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68772         * tests/test-vasprintf-posix.c (test_function): Likewise.
68773         * doc/functions/fprintf.texi: Update.
68774         * doc/functions/printf.texi: Update.
68775         * doc/functions/snprintf.texi: Update.
68776         * doc/functions/sprintf.texi: Update.
68777         * doc/functions/vfprintf.texi: Update.
68778         * doc/functions/vprintf.texi: Update.
68779         * doc/functions/vsnprintf.texi: Update.
68780         * doc/functions/vsprintf.texi: Update.
68781
68782 2007-05-01  Bruno Haible  <bruno@clisp.org>
68783
68784         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68785
68786 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68789         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68790
68791 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68792
68793         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68794         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68796
68797 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68798
68799         * lib/argp-help.c (struct hol_entry): New member `ord'.
68800         (HOL_ENTRY_PTRCMP): Use ord for comparison
68801         (hol_sort): Initialize ord.
68802
68803 2007-05-01  Bruno Haible  <bruno@clisp.org>
68804
68805         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68806         Reported by Eric Blake.
68807         * doc/gnulib.texi (Function Substitutes): Update.
68808
68809 2007-05-01  Bruno Haible  <bruno@clisp.org>
68810
68811         * doc/functions.texi: Remove file, now redundant through
68812         doc/functions/*.texi.
68813
68814 2007-05-01  Bruno Haible  <bruno@clisp.org>
68815
68816         * modules/argp (Depends-on): Add sleep.
68817
68818 2007-05-01  Bruno Haible  <bruno@clisp.org>
68819
68820         * modules/sleep-tests: New file.
68821         * tests/test-sleep.c: New file.
68822
68823         * modules/sleep: New file.
68824         * lib/sleep.c: New file.
68825         * m4/sleep.m4: New file.
68826         * lib/unistd_.h (sleep): New declaration.
68827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68828         HAVE_SLEEP.
68829         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68830         * doc/functions/sleep.texi: Document the sleep module.
68831
68832 2007-05-01  Bruno Haible  <bruno@clisp.org>
68833
68834         * lib/sigprocmask.h: Remove file.
68835         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68836         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68837         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68838         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68839         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68840         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68841         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68842         HAVE_SIGSET_T as a shell variable.
68843         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68844         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68845         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68846         (Depends-on): Add signal. Remove verify.
68847         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68848         (Include): Mention <signal.h> instead of sigprocmask.h.
68849         * NEWS: Mention the change.
68850         * lib/fatal-signal.c: Don't include sigprocmask.h.
68851
68852 2007-05-01  Bruno Haible  <bruno@clisp.org>
68853
68854         * modules/signal: New file.
68855         * lib/signal_.h: New file.
68856         * m4/signal_h.m4: New file.
68857
68858 2007-05-01  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68861         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68862         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68863         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68864
68865 2007-05-01  Bruno Haible  <bruno@clisp.org>
68866
68867         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68868         configure time.
68869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68870         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68871         * modules/sys_stat (Makefile.am): Substitute their values into
68872         sys/stat.h.
68873
68874 2007-05-01  Bruno Haible  <bruno@clisp.org>
68875
68876         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68877         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68878         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68879
68880 2007-05-01  Bruno Haible  <bruno@clisp.org>
68881
68882         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68883         'assert' module here.
68884
68885 2007-05-01  Bruno Haible  <bruno@clisp.org>
68886
68887         * doc/functions/*.texi: New files.
68888         * doc/functions/google-ranking.txt: New file.
68889         * doc/gnulib.texi (Function Substitutes): New chapter.
68890         (ctime, inet_ntoa): Remove sections.
68891         * doc/ctime.texi: Remove file.
68892         * doc/inet_ntoa.texi: Remove file.
68893         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68894         dependencies.
68895         (%.info): New rule, specifying a --reference-limit.
68896
68897 2007-05-01  Bruno Haible  <bruno@clisp.org>
68898
68899         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68900
68901 2007-05-01  Bruno Haible  <bruno@clisp.org>
68902
68903         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68904         the portability of 'mkdir' to mingw systems.
68905
68906 2007-05-01  Bruno Haible  <bruno@clisp.org>
68907
68908         * doc/headers/google-ranking.txt: New file.
68909
68910 2007-04-30  Eric Blake  <ebb9@byu.net>
68911
68912         Prefer fseeko to fseek.
68913         * modules/getpass (Depends-on): Add fseeko.
68914         * lib/getpass.c (getpass): Use fseeko, not fseek.
68915
68916 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68917
68918         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68919         assumes the sorting is stable, while most qsort implementations
68920         are not.  Use argument addresses to ensure they never compare as
68921         equal.
68922
68923         * tests/test-argp-2.sh (usage-indent test): Fix output
68924         (func_compare): Restore diff options
68925         * tests/test-argp.c: Restore #include "progname.h"
68926
68927 2007-04-29  Bruno Haible  <bruno@clisp.org>
68928
68929         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68931         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68933         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68934         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68935         (TESTS, check_PROGRAMS): Add test-snprintf.
68936         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68937         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68938         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68939         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68940         assertions that fail on HP-UX, OSF/1, or IRIX.
68941         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68942
68943 2007-04-29  Bruno Haible  <bruno@clisp.org>
68944
68945         * MODULES.html.sh (posix_functions): Remove 'contents'.
68946
68947 2007-04-29  Karl Berry  <karl@gnu.org>
68948
68949         * config/srclist.txt (gendocs_template_min): new entry.
68950
68951 2007-04-29  Bruno Haible  <bruno@clisp.org>
68952
68953         Work around fpurge bug on BSD systems.
68954         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68955         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68956         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68957         fpurge to rpl_fpurge if the system already has this function.
68958         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68959         the case where the system already has this function. Correct invariants
68960         on BSD systems.
68961         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68962         BSD systems.
68963
68964 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68965
68966         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68967         proposed by Sven Verdoolaege.
68968
68969         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68970         options.
68971         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68972         (usage and help tests): Update
68973
68974 2007-04-29  Bruno Haible  <bruno@clisp.org>
68975
68976         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68977         Print more information in case of failure. Disable a test on BeOS.
68978
68979 2007-04-29  Bruno Haible  <bruno@clisp.org>
68980
68981         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68982         This helps debugging on systems on which no gdb is available.
68983
68984 2007-04-29  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/freading.h: Improve comments.
68987         * lib/fwriting.h: Likewise.
68988         * tests/test-freading.c (main): Don't check freading immediately after
68989         repositioning. Needed for glibc.
68990
68991 2007-04-29  Bruno Haible  <bruno@clisp.org>
68992
68993         * lib/freading.c (freading): Trivial simplification.
68994
68995 2007-04-28  Bruno Haible  <bruno@clisp.org>
68996
68997         * tests/test-fwriting.c (main): Also test the interaction between
68998         fflush and fwriting.
68999         * modules/fwriting-tests (Depends-on): Add fflush.
69000
69001         * tests/test-freading.c (main): Also test the interaction between
69002         fflush and freading.
69003         * modules/freading-tests (Depends-on): Add fflush.
69004
69005 2007-04-28  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69008         fseeko and ftello.
69009         Suggested by Eric Blake.
69010
69011 2007-04-28  Jim Meyering  <jim@meyering.net>
69012
69013         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69014         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69015         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69016
69017 2007-04-27  Eric Blake  <ebb9@byu.net>
69018
69019         * doc/headers/assert.texi (assert.h): Document assert module use.
69020
69021 2007-04-27  Bruno Haible  <bruno@clisp.org>
69022
69023         * doc/headers/*.texi: New files.
69024         * doc/gnulib.texi (Header File Substitutes): New chapter.
69025         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69026         dependencies.
69027         (standards.info ,standards.html, standards.dvi): Update dependencies.
69028         (mostlyclean, clean): New targets.
69029
69030 2007-04-27  Bruno Haible  <bruno@clisp.org>
69031
69032         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69033         * modules/sysexits (Files, Makefile.am): Update.
69034
69035         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69036         * modules/sys_socket (Files, Makefile.am): Update.
69037
69038         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69039         * modules/sys_stat (Files, Makefile.am): Update.
69040
69041 2007-04-27  Eric Blake  <ebb9@byu.net>
69042
69043         * lib/freading.h: Improve comments.
69044         * lib/fwriting.h: Likewise.
69045         * lib/fflush.c: Likewise.
69046
69047         Fix closein for mingw.
69048         * modules/closein-tests: Add tests for closein.
69049         * tests/test-closein.c: New file.
69050         * tests/test-closein.sh: Likewise.
69051         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69052         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69053
69054 2007-04-27  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69057         version is < 6.
69058         * lib/math_.h [__DECC]: Likewise.
69059         * lib/stdio_.h [__DECC]: Likewise.
69060         * lib/stdlib_.h [__DECC]: Likewise.
69061         * lib/string_.h [__DECC]: Likewise.
69062         * lib/time_.h [__DECC]: Likewise.
69063         * lib/wchar_.h [__DECC]: Likewise.
69064         * lib/wctype_.h [__DECC]: Likewise.
69065
69066 2007-04-27  Bruno Haible  <bruno@clisp.org>
69067
69068         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69069
69070 2007-04-27  Bruno Haible  <bruno@clisp.org>
69071
69072         * lib/fflush.c: Add comments.
69073         * modules/fpurge-tests (Depends-on): Add fflush.
69074         * modules/freadable-tests (Depends-on): Likewise.
69075         * modules/fwritable-tests (Depends-on): Likewise.
69076
69077 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69078
69079         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69080         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69081         Report by Bruno Haible <bruno@clisp.org>.
69082
69083 2007-04-26  Eric Blake  <ebb9@byu.net>
69084
69085         Fix fflush on mingw.
69086         * modules/fflush (Depends-on): Add freading.
69087         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69088         but unread data.
69089
69090 2007-04-26  Eric Blake  <ebb9@byu.net>
69091         and Bruno Haible  <bruno@clisp.org>
69092
69093         Implement freading and fwriting.
69094         * lib/freading.c: New file.
69095         * lib/freading.h: Likewise.
69096         * m4/freading.m4: Likewise.
69097         * modules/freading: Likewise.
69098         * modules/freading-tests: Likewise.
69099         * tests/test-freading.c: Likewise.
69100         * lib/fwriting.c: New file.
69101         * lib/fwriting.h: Likewise.
69102         * m4/fwriting.m4: Likewise.
69103         * modules/fwriting: Likewise.
69104         * modules/fwriting-tests: Likewise.
69105         * tests/test-fwriting.c: Likewise.
69106         * MODULES.html.sh (File stream based Input/Output): Mention them.
69107
69108 2007-04-26  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69111         'long' when we assume it.
69112         Suggested by Eric Blake.
69113
69114 2007-04-26  Bruno Haible  <bruno@clisp.org>
69115
69116         Ensure fseeko, ftello are declared on glibc systems.
69117         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69118         * modules/fseeko (configure.ac-early): Likewise.
69119         * modules/ftello (configure.ac-early): Likewise.
69120         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69121         AC_FUNC_FSEEKO for this.
69122         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69123         (gl_CHECK_FSEEKO): Remove macro.
69124
69125 2007-04-26  Bruno Haible  <bruno@clisp.org>
69126
69127         * tests/test-fflush.c (main): Also check the ftell result after
69128         fflush and fseek/fseeko.
69129         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69130         file descriptor position cache in the stream.
69131         * lib/fseeko.c (rpl_fseeko): Likewise.
69132
69133 2007-04-26  Bruno Haible  <bruno@clisp.org>
69134
69135         * modules/fflush-tests (Depends-on): Add fseeko.
69136
69137 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69138             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69139
69140         * lib/argz_.h: ensure error_t definition is obtained in same
69141         mechanism system argz.h would have.
69142         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69143         argz facilities are known bad.  Err on the side of caution if
69144         cross-compiling.
69145
69146 2007-04-25  Eric Blake  <ebb9@byu.net>
69147
69148         * lib/fpurge.c (includes): Use stdlib.h for free.
69149         * tests/test-fflush.c (main): Also test fflush-fseeko.
69150
69151 2007-04-25  Bruno Haible  <bruno@clisp.org>
69152
69153         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69154         * lib/fseeko.c: New file.
69155         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69156         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69157         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69158         gl_FUNC_FSEEKO.
69159         (gl_FUNC_FSEEKO): Invoke it.
69160         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69161         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69162         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69163
69164 2007-04-25  Bruno Haible  <bruno@clisp.org>
69165
69166         * modules/fflush (Depends-on): Add ftello.
69167
69168 2007-04-25  Bruno Haible  <bruno@clisp.org>
69169
69170         * modules/ftello-tests: New file.
69171         * tests/test-ftello.c: New file.
69172
69173         * modules/ftello: New file.
69174         * m4/ftello.m4: New file.
69175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69176         HAVE_FTELLO.
69177         * lib/stdio_.h (ftello): New declaration.
69178         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69179         HAVE_FTELLO.
69180
69181 2007-04-25  Bruno Haible  <bruno@clisp.org>
69182
69183         * modules/fseeko-tests: New file.
69184         * tests/test-fseeko.c: New file.
69185
69186         * modules/fseeko: New file.
69187         * m4/fseeko.m4: New file.
69188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69189         HAVE_FSEEKO.
69190         * lib/stdio_.h (fseeko): New declaration.
69191         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69192         HAVE_FSEEKO.
69193
69194 2007-04-25  Bruno Haible  <bruno@clisp.org>
69195
69196         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69197
69198 2007-04-25  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69201         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69202         * tests/test-unistd.c: Likewise.
69203         * tests/test-fcntl.c: Likewise.
69204
69205 2007-04-23  Eric Blake  <ebb9@byu.net>
69206
69207         * lib/fflush.c: Fix missing include.
69208         Reported by Bruno Haible.
69209
69210 2007-04-23  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69213         Reported by Eric Blake.
69214
69215 2007-04-23  Bruno Haible  <bruno@clisp.org>
69216
69217         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69218
69219 2007-04-23  Bruno Haible  <bruno@clisp.org>
69220
69221         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69222
69223 2007-04-23  Bruno Haible  <bruno@clisp.org>
69224
69225         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69226         Needed on HP-UX 11.
69227
69228 2007-04-16  Eric Blake  <ebb9@byu.net>
69229
69230         Make fflush rely on fpurge.
69231         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69232         open coding all variants.
69233         * modules/fflush (Depends-on): Add fpurge and unistd.
69234         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69235         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69236
69237         Fix --with-tests compilation on cygwin.
69238         * modules/argmatch-tests (Makefile.am): List gnulib library first
69239         in LDADD.
69240         * modules/argp-tests (Makefile.am): Likewise.
69241         * modules/array-list-tests (Makefile.am): Likewise.
69242         * modules/array-oset-tests (Makefile.am): Likewise.
69243         * modules/avltree-list-tests (Makefile.am): Likewise.
69244         * modules/avltree-oset-tests (Makefile.am): Likewise.
69245         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69246         * modules/carray-list-tests (Makefile.am): Likewise.
69247         * modules/dirname-tests (Makefile.am): Likewise.
69248         * modules/frexp-tests (Makefile.am): Likewise.
69249         * modules/isnanl-tests (Makefile.am): Likewise.
69250         * modules/linked-list-tests (Makefile.am): Likewise.
69251         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69252         * modules/lock-tests (Makefile.am): Likewise.
69253         * modules/rbtree-list-tests (Makefile.am): Likewise.
69254         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69255         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69256         * modules/tls-tests (Makefile.am): Likewise.
69257         * modules/tsearch-tests (Makefile.am): Likewise.
69258         * modules/xvasprintf-tests (Makefile.am): Likewise.
69259
69260         Fix fpurge for cygwin.
69261         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69262         value.
69263         * modules/fpurge-tests (Depends-on): Clean up trash.
69264
69265 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69266
69267         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69268
69269         * m4/autobuild.m4: Re-indent.
69270
69271 2007-04-13  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/fpurge-tests: New file.
69274         * tests/test-fpurge.c: New file.
69275
69276         * modules/fpurge: New file.
69277         * lib/fpurge.h: New file.
69278         * lib/fpurge.c: New file.
69279         * m4/fpurge.m4: New file.
69280
69281 2007-04-13  Bruno Haible  <bruno@clisp.org>
69282
69283         * modules/fbufmode-tests: New file.
69284         * tests/test-fbufmode.c: New file.
69285
69286         * modules/fbufmode: New file.
69287         * lib/fbufmode.h: New file.
69288         * lib/fbufmode.c: New file.
69289         * m4/fbufmode.m4: New file.
69290
69291 2007-04-13  Bruno Haible  <bruno@clisp.org>
69292
69293         * modules/fwritable-tests: New file.
69294         * tests/test-fwritable.c: New file.
69295
69296         * modules/fwritable: New file.
69297         * lib/fwritable.h: New file.
69298         * lib/fwritable.c: New file.
69299         * m4/fwritable.m4: New file.
69300
69301 2007-04-13  Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/freadable-tests: New file.
69304         * tests/test-freadable.c: New file.
69305
69306         * modules/freadable: New file.
69307         * lib/freadable.h: New file.
69308         * lib/freadable.c: New file.
69309         * m4/freadable.m4: New file.
69310
69311 2007-04-13  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69314         MOSTLYCLEANFILES.
69315
69316 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69317
69318         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69319         gzip bootstrap.conf to avoid dragging in i18n machinery.
69320         (gnulib_tool_option): Use it.
69321
69322 2007-04-13  Bruno Haible  <bruno@clisp.org>
69323
69324         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69325         %F directives.
69326         * tests/test-vasprintf-posix.c (test_function): Likewise.
69327         * tests/test-snprintf-posix.h (test_function): Likewise.
69328         * tests/test-sprintf-posix.h (test_function): Likewise.
69329         * tests/test-fprintf-posix.h (test_function): Likewise.
69330         * tests/test-printf-posix.h (test_function): Likewise.
69331         * tests/test-fprintf-posix.out: Likewise.
69332
69333 2007-04-13  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69336         * modules/tls-tests (configure.ac): Likewise.
69337         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69338
69339 2007-04-13  Bruno Haible  <bruno@clisp.org>
69340
69341         * lib/tls.c (glthread_tls_get): Fix return type.
69342         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69343
69344 2007-04-12  Eric Blake  <ebb9@byu.net>
69345
69346         * modules/gettime (Depends-on): Remove gettime.
69347         Reported by Dmitry V. Levin.
69348
69349 2007-04-12  Bruno Haible  <bruno@clisp.org>
69350
69351         * modules/fflush (Include): Mention <stdio.h>.
69352         * modules/strtoimax (Include): Mention <inttypes.h>.
69353         * modules/strtoumax (Include): Likewise.
69354
69355 2007-04-12  Eric Blake  <ebb9@byu.net>
69356
69357         * .cvsignore: New file.
69358         * .gitignore: Likewise.
69359
69360 2007-04-12  Bruno Haible  <bruno@clisp.org>
69361
69362         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69363         not before, since $(LDADD) often contains libgnu.a.
69364         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69365         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69366         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69367         Needed on Cygwin.
69368
69369 2007-04-12  Eric Blake  <ebb9@byu.net>
69370
69371         Work around glibc's failure to flush stdin on fclose.
69372         * lib/closein.c (close_stdin): Flush stdin before closing.
69373
69374         Work around glibc's failure to reset seekable stdin on exit.
69375         * modules/closein: New module.
69376         * lib/closein.c: New file.
69377         * lib/closein.h: Likewise.
69378         * m4/closein.m4: Likewise.
69379         * MODULES.html.sh (File stream based Input/Output): Document it.
69380
69381 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69382
69383         * gnulib-tool: Rename generated 'autobuild' script to
69384         'do-autobuild' in --create-megatestdir output.
69385
69386         * doc/gnulib.texi (Build robot for gnulib): Fix.
69387
69388 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69389
69390         * modules/sysexits (Depends-on): Add absolute-header.
69391
69392 2007-04-12  Eric Blake  <ebb9@byu.net>
69393
69394         No need to preserve errno on success.
69395         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69396         Reported by Bruno Haible.
69397
69398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69399
69400         * MODULES.html.sh (Support for maintaining and releasing
69401         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69402
69403 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69404
69405         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69406
69407 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69408
69409         * modules/autobuild: New module.
69410
69411         * m4/autobuild.m4: New file.
69412
69413 2007-04-11  Bruno Haible  <bruno@clisp.org>
69414
69415         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69416         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69417         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69419         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69420         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69421         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69423         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69424         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69426         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69427         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69429         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69430         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69432         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69433         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69443         Reported by Eric Blake.
69444
69445 2007-04-11  Bruno Haible  <bruno@clisp.org>
69446
69447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69448
69449 2007-04-10  Bruno Haible  <bruno@clisp.org>
69450
69451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69452         for NaN and Infinity. Needed on FreeBSD 6.1.
69453         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69454         regarding results for "%010a" of Infinity and NaN.
69455         * tests/test-vasprintf-posix.c (test_function): Likewise.
69456         * tests/test-snprintf-posix.h (test_function): Likewise.
69457         * tests/test-sprintf-posix.h (test_function): Likewise.
69458         * tests/test-fprintf-posix.h (test_function): Likewise.
69459         * tests/test-printf-posix.h (test_function): Likewise.
69460         * tests/test-fprintf-posix.out: Likewise.
69461
69462 2007-04-10  Bruno Haible  <bruno@clisp.org>
69463
69464         * modules/locale-tests: New file.
69465         * tests/test-locale.c: New file.
69466
69467         * modules/locale: New file.
69468         * lib/locale_.h: New file.
69469         * m4/locale_h.m4: New file.
69470
69471 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69472             Bruno Haible  <bruno@clisp.org>
69473
69474         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69475         be determined, test for availability of the copysignf, copysign,
69476         copysignl functions.
69477         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69478         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69479         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69480
69481 2007-04-09  Eric Blake  <ebb9@byu.net>
69482
69483         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69484         * modules/stdio (Makefile.am): Support fflush.
69485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69486         * modules/fflush: New file.
69487         * lib/fflush.c: Likewise.
69488         * m4/fflush.m4: Likewise.
69489         * modules/fflush-tests: New test.
69490         * tests/test-fflush.c: Likewise.
69491         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69492
69493 2007-04-06  Bruno Haible  <bruno@clisp.org>
69494
69495         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69496         (VASNPRINTF): Use signbit for faster determination whether to print a
69497         minus sign.
69498         * modules/vasnprintf (Files): Remove lib/float+.h.
69499         * modules/fprintf-posix (Depends-on): Add signbit.
69500         * modules/snprintf-posix (Depends-on): Likewise.
69501         * modules/sprintf-posix (Depends-on): Likewise.
69502         * modules/vasnprintf-posix (Depends-on): Likewise.
69503         * modules/vasprintf-posix (Depends-on): Likewise.
69504         * modules/vfprintf-posix (Depends-on): Likewise.
69505         * modules/vsnprintf-posix (Depends-on): Likewise.
69506         * modules/vsprintf-posix (Depends-on): Likewise.
69507
69508 2007-04-06  Bruno Haible  <bruno@clisp.org>
69509
69510         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69511         * tests/test-frexpl.c (main): Likewise.
69512         * tests/test-ldexpl.c (main): Likewise.
69513         * modules/frexp-tests (Depends-on): Add signbit.
69514         * modules/frexpl-tests (Depdends-on): Likewise.
69515         * modules/ldexpl-tests (Depdends-on): Likewise.
69516
69517 2007-04-06  Bruno Haible  <bruno@clisp.org>
69518
69519         * modules/signbit-tests: New file.
69520         * tests/test-signbit.c: New file.
69521
69522         * modules/signbit: New file.
69523         * lib/signbitf.c: New file.
69524         * lib/signbitd.c: New file.
69525         * lib/signbitl.c: New file.
69526         * m4/signbit.m4: New file.
69527         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69528         (signbit): New macro.
69529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69530         REPLACE_SIGNBIT.
69531         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69532         REPLACE_FREXPL into math.h.
69533
69534 2007-04-06  Bruno Haible  <bruno@clisp.org>
69535
69536         * modules/isnanf-nolibm-tests: New file.
69537         * tests/test-isnanf.c: New file.
69538
69539         * modules/isnanf-nolibm: New file.
69540         * lib/isnanf.h: New file.
69541         * lib/isnanf.c: New file.
69542         * lib/isnan.c: Consider the USE_FLOAT macro.
69543         * m4/isnanf.m4: New file.
69544
69545 2007-04-06  Bruno Haible  <bruno@clisp.org>
69546
69547         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69548         (Link): New section.
69549
69550         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69551
69552 2007-04-06  Bruno Haible  <bruno@clisp.org>
69553
69554         Assume the 'long double' type.
69555         * m4/longdouble.m4: Remove file.
69556         * config/srclist.txt: Don't mention longdouble.m4.
69557         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69558         * lib/float+.h: Likewise.
69559         * lib/frexp.c: Likewise.
69560         * lib/printf-args.h: Likewise.
69561         * lib/printf-args.c: Likewise.
69562         * lib/printf-frexp.c: Likewise.
69563         * lib/printf-parse.c: Likewise.
69564         * lib/vasnprintf.c: Likewise.
69565         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69566         * m4/intl.m4: Likewise.
69567         * m4/isnanl.m4: Likewise.
69568         * m4/printf.m4: Likewise.
69569         * m4/printf-frexpl.m4: Likewise.
69570         * m4/vasnprintf.m4: Likewise.
69571         * modules/allocsa (Files): Remove m4/longdouble.m4.
69572         * modules/gettext (Files): Likewise.
69573         * modules/relocatable-prog-wrapper (Files): Likewise.
69574         * modules/vasnprintf (Files): Likewise.
69575         * modules/isnanl (Files): Likewise.
69576         (Include): Simplify.
69577         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69578         (Include): Simplify.
69579         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69580         (Include): Simplify.
69581         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69582         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69583         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69584         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69585         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69587         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69589         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69591         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69593         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69594         * tests/test-isnanl.c: Likewise.
69595         * tests/test-snprintf-posix.h: Likewise.
69596         * tests/test-sprintf-posix.h: Likewise.
69597         * tests/test-vasnprintf-posix.c: Likewise.
69598         * tests/test-vasnprintf-posix2.c: Likewise.
69599         * tests/test-vasprintf-posix.c: Likewise.
69600
69601 2007-04-06  Bruno Haible  <bruno@clisp.org>
69602
69603         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69604         * lib/math_.h [__DECC]: Include the overridden include file through
69605         #include_next, outside the double-inclusion guard.
69606         * lib/stdio_.h [__DECC]: Likewise.
69607         * lib/stdlib_.h [__DECC]: Likewise.
69608         * lib/string_.h [__DECC]: Likewise.
69609         * lib/time_.h [__DECC]: Likewise.
69610         * lib/wchar_.h [__DECC]: Likewise.
69611         * lib/wctype_.h [__DECC]: Likewise.
69612         * lib/inttypes_.h [__DECC]: Likewise.
69613         Reported by Albert Chin <china@thewrittenword.com> in
69614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69615
69616 2007-04-04  Eric Blake  <ebb9@byu.net>
69617
69618         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69619         1.5.x.
69620
69621 2007-04-04  Bruno Haible  <bruno@clisp.org>
69622
69623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69624         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69625
69626 2007-04-04  Bruno Haible  <bruno@clisp.org>
69627
69628         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69629         results for "%010a" of Infinity and NaN.
69630         * tests/test-vasprintf-posix.c (test_function): Likewise.
69631         * tests/test-snprintf-posix.h (test_function): Likewise.
69632         * tests/test-sprintf-posix.h (test_function): Likewise.
69633         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69634         * tests/test-printf-posix.h (test_function): Likewise.
69635         * tests/test-fprintf-posix.out: Update.
69636         Needed for FreeBSD 6.1.
69637
69638 2007-04-04  Bruno Haible  <bruno@clisp.org>
69639
69640         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69641         directly used by the gnulib modules nor by gnulib-tool.
69642
69643 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * DEPENDENCIES: Give overall description of version dependency
69646         desirability.  Use more-typical names for apps.
69647         Add shell, coreutils, diffutils, grep, tar, gzip.
69648
69649 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69650
69651         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69652
69653 2007-04-04  Karl Berry  <karl@gnu.org>
69654
69655         * MODULES.html.sh (func_module): missing '.
69656
69657 2007-04-03  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/argmatch-tests (Makefile.am): New variable
69660         test_argmatch_LDADD.
69661         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69662         * modules/array-list-tests (Makefile.am): New variable
69663         test_array_list_LDADD.
69664         * modules/array-oset-tests (Makefile.am): New variable
69665         test_array_oset_LDADD.
69666         * modules/avltree-list-tests (Makefile.am): New variable
69667         test_avltree_list_LDADD.
69668         * modules/avltree-oset-tests (Makefile.am): New variable
69669         test_avltree_oset_LDADD.
69670         * modules/avltreehash-list-tests (Makefile.am): New variable
69671         test_avltreehash_list_LDADD.
69672         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69673         test_canonicalize_lgpl_LDADD.
69674         * modules/carray-list-tests (Makefile.am): New variable
69675         test_carray_list_LDADD.
69676         * modules/dirname-tests (Makefile.am): New variable
69677         test_dirname_LDADD.
69678         * modules/linked-list-tests (Makefile.am): New variable
69679         test_linked_list_LDADD.
69680         * modules/linkedhash-list-tests (Makefile.am): New variable
69681         test_linkedhash_list_LDADD.
69682         * modules/rbtree-list-tests (Makefile.am): New variable
69683         test_rbtree_list_LDADD.
69684         * modules/rbtree-oset-tests (Makefile.am): New variable
69685         test_rbtree_oset_LDADD.
69686         * modules/rbtreehash-list-tests (Makefile.am): New variable
69687         test_rbtreehash_list_LDADD.
69688         * modules/xvasprintf-tests (Makefile.am): New variable
69689         test_xvasprintf_LDADD.
69690         Reported by Eric Blake.
69691
69692 2007-04-03  Eric Blake  <ebb9@byu.net>
69693
69694         * DEPENDENCIES: Weaken m4 requirements.
69695
69696 2007-04-03  Bruno Haible  <bruno@clisp.org>
69697
69698         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69699         * modules/isnanl-tests (configure.ac): Likewise.
69700
69701 2007-04-03  Ben Pfaff  <blp@gnu.org>
69702
69703         * modules/iconv_open: Add $(srcdir)/ to source directory
69704         references in Makefile fragments that call gperf, to fix VPATH
69705         builds.
69706
69707 2007-04-03  Bruno Haible  <bruno@clisp.org>
69708
69709         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69710         * lib/ldexpl.c: Undo last change.
69711
69712 2007-04-03  Bruno Haible  <bruno@clisp.org>
69713
69714         * modules/printf-frexpl (Depends-on): Undo last change.
69715         (Files): Add m4/ldexpl.m4.
69716
69717 2007-04-03  Bruno Haible  <bruno@clisp.org>
69718
69719         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69720         * modules/isnanl (Link): New section.
69721
69722         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69723         * modules/frexp (Link): New section.
69724
69725         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69726         * modules/frexpl (Link): New section.
69727
69728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69729         * modules/ldexpl (Link): New section.
69730
69731 2007-04-03  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/TEMPLATE-EXTENDED: New file.
69734         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69735
69736 2007-04-03  Bruno Haible  <bruno@clisp.org>
69737
69738         * DEPENDENCIES: New file.
69739         Suggested by Simon Josefsson.
69740
69741 2007-04-03  Bruno Haible  <bruno@clisp.org>
69742
69743         * doc/gnulib.texi: Escape @.
69744
69745 2007-04-03  James Youngman  <jay@gnu.org>
69746         and Paul Eggert  <eggert@cs.ucla.edu>
69747
69748         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69749         birthtime on all systems that have birthtime, not just those which
69750         use st_birthtimensec rather than st_birthtim.  Putting zero in
69751         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69752         that the birth time is not available for files on an NFS mount.
69753
69754 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69755
69756         * modules/memxor: Move back from crypto/, suggested by Bruno.
69757         * modules/crypto/hmac-sha1: Fix memxor dependency.
69758
69759         * modules/crypto/gc: Moved from ../.
69760
69761 2007-04-02  Eric Blake  <ebb9@byu.net>
69762
69763         * lib/ldexpl.c (includes): Avoid libm.
69764
69765         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69766
69767 2007-04-02  Bruno Haible  <bruno@clisp.org>
69768
69769         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69770         on IRIX.
69771
69772 2007-04-02  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69775         x86 or x86_64 platforms running MacOS X.
69776         Reported by Ryan Schmidt <@ryandesign.com>.
69777
69778 2007-04-02  Bruno Haible  <bruno@clisp.org>
69779
69780         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69781         i386.
69782
69783 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69784
69785         * modules/crypto/arcfour: Moved from ../.
69786         * modules/crypto/arcfour-tests: Moved from ../.
69787         * modules/crypto/arctwo: Moved from ../.
69788         * modules/crypto/arctwo-tests: Moved from ../.
69789         * modules/crypto/des: Moved from ../.
69790         * modules/crypto/des-tests: Moved from ../.
69791         * modules/crypto/gc-arcfour: Moved from ../.
69792         * modules/crypto/gc-arcfour-tests: Moved from ../.
69793         * modules/crypto/gc-arctwo: Moved from ../.
69794         * modules/crypto/gc-arctwo-tests: Moved from ../.
69795         * modules/crypto/gc-des: Moved from ../.
69796         * modules/crypto/gc-des-tests: Moved from ../.
69797         * modules/crypto/gc-hmac-md5: Moved from ../.
69798         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69799         * modules/crypto/gc-hmac-sha1: Moved from ../.
69800         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69801         * modules/crypto/gc-md2: Moved from ../.
69802         * modules/crypto/gc-md2-tests: Moved from ../.
69803         * modules/crypto/gc-md4: Moved from ../.
69804         * modules/crypto/gc-md4-tests: Moved from ../.
69805         * modules/crypto/gc-md5: Moved from ../.
69806         * modules/crypto/gc-md5-tests: Moved from ../.
69807         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69808         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69809         * modules/crypto/gc-random: Moved from ../.
69810         * modules/crypto/gc-rijndael: Moved from ../.
69811         * modules/crypto/gc-rijndael-tests: Moved from ../.
69812         * modules/crypto/gc-sha1: Moved from ../.
69813         * modules/crypto/gc-sha1-tests: Moved from ../.
69814         * modules/crypto/gc-tests: Moved from ../.
69815         * modules/crypto/hmac-md5: Moved from ../.
69816         * modules/crypto/hmac-md5-tests: Moved from ../.
69817         * modules/crypto/hmac-sha1: Moved from ../.
69818         * modules/crypto/hmac-sha1-tests: Moved from ../.
69819         * modules/crypto/md2: Moved from ../.
69820         * modules/crypto/md2-tests: Moved from ../.
69821         * modules/crypto/md4: Moved from ../.
69822         * modules/crypto/md4-tests: Moved from ../.
69823         * modules/crypto/md5: Moved from ../.
69824         * modules/crypto/md5-tests: Moved from ../.
69825         * modules/crypto/memxor: Moved from ../.
69826         * modules/crypto/rijndael: Moved from ../.
69827         * modules/crypto/rijndael-tests: Moved from ../.
69828         * modules/crypto/sha1: Moved from ../.
69829
69830 2007-03-30  James Youngman  <jay@gnu.org>
69831
69832         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69833         rename() to change the ctime of a file (because ctime is unaffected
69834         by rename on jfs2 on AIX 5.1).
69835         (main): Start by doing cleanup, in case a previous run failed leaving
69836         test files behind.
69837
69838 2007-03-31  Bruno Haible  <bruno@clisp.org>
69839
69840         Support old proprietary implementations of iconv.
69841         * modules/iconv_open: New file.
69842         * lib/iconv_.h: New file.
69843         * m4/iconv_h.m4: New file.
69844         * lib/iconv_open.c: New file.
69845         * lib/iconv_open-aix.gperf: New file.
69846         * lib/iconv_open-hpux.gperf: New file.
69847         * lib/iconv_open-irix.gperf: New file.
69848         * lib/iconv_open-osf.gperf: New file.
69849         * m4/iconv_open.m4: New file.
69850         * modules/linebreak (Depends-on): Add iconv_open.
69851         * modules/striconv (Depends-on): Likewise.
69852         * modules/striconveh (Depends-on): Likewise.
69853         * modules/unicodeio (Depends-on): Likewise.
69854         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69855         (iconv_t)(-1).
69856         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69857         conversion if cd is (iconv_t)(-1).
69858         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69859         is not possible.
69860
69861 2007-03-31  Bruno Haible  <bruno@clisp.org>
69862
69863         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69864         work on Solaris either. Protect also second use of "autodetect_jp".
69865
69866 2007-03-31  Bruno Haible  <bruno@clisp.org>
69867
69868         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69869         the function is not present.
69870
69871 2007-03-31  Bruno Haible  <bruno@clisp.org>
69872
69873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69874         the function is not present.
69875
69876 2007-03-31  Bruno Haible  <bruno@clisp.org>
69877
69878         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69879         a bug in HP-UX iconv_open().
69880
69881 2007-03-31  Bruno Haible  <bruno@clisp.org>
69882
69883         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69884         (Mathematics <math.h>): New section, add fpieee.
69885         (Input/output <stdio.h>): Add fseterr.
69886         (Mathematics <math.h>): New section, add printf-frexp.
69887         (Container data structures): Add sublist.
69888         (Core language properties): Add fpucw, inline.
69889         (Functions for greatest-width integer types <inttypes.h>): Add
69890         imaxabs, imaxdiv, inttypes.
69891         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69892         isnanl-nolibm, ldexp.
69893         (Mathematics <math.h>): New section, add printf-frexpl.
69894         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69895         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69896         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69897         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69898         (Unicode string functions): Add unistr/u*-mbtoucr.
69899         (Java): Add javacomp-script, javaexec-script.
69900         (C#): Add csharpcomp-script, csharpexec-script.
69901         (Support for building libraries and executables): Add havelib,
69902         relocatable-*.
69903         (Support for maintaining and releasing projects): Renamed from
69904         'Support for maintaining and release projects'. Add announce-gen.
69905
69906 2007-03-31  Bruno Haible  <bruno@clisp.org>
69907
69908         * README: Talk primarily about git.
69909         (git and CVS): Renamed from CVS.
69910         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69911         gnulib is available through git.
69912         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69913
69914 2007-03-30  Bruno Haible  <bruno@clisp.org>
69915
69916         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69917         * lib/poll_.h: Likewise.
69918         * lib/stat_.h: Likewise.
69919         * lib/sys_time_.h: Likewise.
69920         * lib/sysexit_.h: Likewise.
69921         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69922         * lib/stdbool_.h: Likewise.
69923         * lib/byteswap_.h: Add double-inclusion guard.
69924
69925 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69926
69927         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69928
69929 2007-03-30  Karl Berry  <karl@gnu.org>
69930
69931         * config/srclist-update: double space after USA in the license
69932         substitution, since that's how it's usually (?) written.
69933
69934 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69937         reported by Bruno Haible.
69938
69939 2007-03-29  Bruno Haible  <bruno@clisp.org>
69940
69941         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69942         a bug in AIX iconv().
69943
69944 2007-03-29  Bruno Haible  <bruno@clisp.org>
69945
69946         * modules/ldexpl-tests: New file.
69947         * tests/test-ldexpl.c: New file.
69948
69949 2007-03-29  Bruno Haible  <bruno@clisp.org>
69950
69951         * lib/ldexpl.c: Include fpucw.h.
69952         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69953         multiplication.
69954         * modules/ldexpl (Depends-on): Add fpucw.
69955
69956 2007-03-29  Bruno Haible  <bruno@clisp.org>
69957
69958         * modules/ldexpl: New file.
69959         * m4/ldexpl.m4: New file.
69960         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69961         set.
69962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69963         REPLACE_LDEXPL.
69964         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69965         REPLACE_LDEXPL.
69966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69967         gl_FUNC_LDEXPL_WORKS.
69968         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69969         * modules/mathl (Files): Remove lib/ldexpl.c.
69970         (Depends-on): Add ldexpl.
69971
69972 2007-03-29  Bruno Haible  <bruno@clisp.org>
69973
69974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69975
69976 2007-03-29  Bruno Haible  <bruno@clisp.org>
69977
69978         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69979         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69980         and possibly also HP-UX.
69981         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69982         work on AIX, IRIX, HP-UX, OSF/1.
69983         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69984         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69985         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69986         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69987         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69988         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69989
69990 2007-03-29  Bruno Haible  <bruno@clisp.org>
69991
69992         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69993
69994 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69997         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69998
69999 2007-03-29  Eric Blake  <ebb9@byu.net>
70000
70001         * lib/acl-internal.h: Remove redundant include.
70002         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70003         Cygwin when a file is locked.
70004
70005 2007-03-29  Bruno Haible  <bruno@clisp.org>
70006
70007         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70008         file.
70009         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70010
70011 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70012
70013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70014         try to remove a parent directory if the child couldn't be removed
70015         (except for the first rmdir, which could fail because the child
70016         doesn't exist).  Problem reported by Jeff Blaine in
70017         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70018
70019 2007-03-28  Bruno Haible  <bruno@clisp.org>
70020
70021         * lib/striconveh.c (utf8conv_carefully): New function.
70022         (mem_cd_iconveh_internal): Invoke it.
70023
70024 2007-03-28  Bruno Haible  <bruno@clisp.org>
70025
70026         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70027         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70028         input.
70029         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70030         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70031         unistr/u8-uctomb.
70032
70033 2007-03-28  Bruno Haible  <bruno@clisp.org>
70034
70035         * modules/unistr/u8-mbtoucr: New file.
70036         * lib/unistr/u8-mbtoucr.c: New file.
70037         * modules/unistr/u16-mbtoucr: New file.
70038         * lib/unistr/u16-mbtoucr.c: New file.
70039         * modules/unistr/u16-mbtoucr: New file.
70040         * lib/unistr/u16-mbtoucr.c: New file.
70041         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70042
70043 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70044             Bruno Haible  <bruno@clisp.org>
70045
70046         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70047         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70048         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70049
70050         * m4/stdio_h.m4: Add stubs for vasprintf too.
70051
70052         * modules/stdio: Support vasprintf in sed command.
70053
70054         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70055         vasprintf.h.  Add stdio module indicator.
70056
70057         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70058         vasprintf.h.
70059
70060         * lib/vasprintf.h: File removed.
70061
70062         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70063         * lib/vasprintf.c: Ditto.
70064         * lib/xvasprintf.c: Ditto.
70065         * tests/test-vasprintf-posix.c: Ditto.
70066         * tests/test-vasprintf.c: Ditto.
70067
70068 2007-03-27  Bruno Haible  <bruno@clisp.org>
70069
70070         Make vasnprintf multithread-safe.
70071         * lib/vasnprintf.c (decimal_point_char): New function.
70072         (VASNPRINTF): Use it.
70073         Suggested by Simon Josefsson.
70074
70075 2007-03-27  Eric Blake  <ebb9@byu.net>
70076
70077         Support sub-second birthtime on cygwin.
70078         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70079         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70080         (get_stat_birthtime): Also work with st_birthtim.
70081
70082 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70085         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70086         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70087         (get_stat_birthtime_ns): Simplify compile-time tests.
70088         (get_stat_birthtime): Change the API to look like
70089         get_stat_mtime etc., except return a negative tv_nsec on error.
70090         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70091         Don't check for "spare" fields.
70092         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70093         or for struct stat.st_birthtime, as these tests aren't used.
70094         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70095
70096 2007-03-27  Bruno Haible  <bruno@clisp.org>
70097
70098         * lib/stat-time.h: Include <sys/stat.h>.
70099
70100 2007-03-27  James Youngman  <jay@gnu.org>
70101
70102         * lib/stat-time.h (get_stat_birthtime): New function for
70103           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70104         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70105           and its variants.
70106         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70107         * modules/stat-time-test: New file.
70108         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70109
70110 2007-03-26  Bruno Haible  <bruno@clisp.org>
70111
70112         Better support of signalling NaNs.
70113         * lib/atanl.c: Include isnanl.h.
70114         (atanl): Perform test for NaN at the beginning of the function and
70115         through a call to isnanl.
70116         * lib/cosl.c: Include isnanl.h.
70117         (cosl): Perform test for NaN at the beginning of the function and
70118         through a call to isnanl.
70119         * lib/ldexpl.c: Include isnanl.h.
70120         (ldexpl): Perform test for NaN through a call to isnanl.
70121         * lib/logl.c: Include isnanl.h.
70122         (logl): Perform test for NaN at the beginning of the function and
70123         through a call to isnanl.
70124         * lib/sinl.c: Include isnanl.h.
70125         (sinl): Perform test for NaN at the beginning of the function and
70126         through a call to isnanl.
70127         * lib/sqrtl.c: Include isnanl.h.
70128         (sqrtl): Perform test for NaN at the beginning of the function and
70129         through a call to isnanl.
70130         * lib/tanl.c: Include isnanl.h.
70131         (tanl): Perform test for NaN at the beginning of the function and
70132         through a call to isnanl.
70133         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70134         * modules/mathl (Depends-on): Add isnanl.
70135
70136 2007-03-26  Eric Blake  <ebb9@byu.net>
70137
70138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70139         regression in logic sense of previous patch.
70140
70141 2007-03-26  Bruno Haible  <bruno@clisp.org>
70142
70143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70144         unportable shell command "if ! ...".
70145         Reported by Ralf Wildenhues.
70146
70147 2007-03-25  Bruno Haible  <bruno@clisp.org>
70148
70149         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70150         <sysexits.h> file, and only add EX_CONFIG.
70151         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70152         absolute file name and whether it is sufficient. Substitute also
70153         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70154         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70155         ABSOLUTE_SYSEXITS_H into sysexits.h.
70156
70157 2007-03-25  Bruno Haible  <bruno@clisp.org>
70158
70159         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70160         hints is NULL.
70161
70162 2007-03-25  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70165         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70166
70167 2007-03-25  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/vasnprintf.c: Include langinfo.h.
70170         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70171         multithread-safe.
70172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70174         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70175         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70176         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70178         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70180         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70181         Reported by Simon Josefsson.
70182
70183 2007-03-25  Bruno Haible  <bruno@clisp.org>
70184
70185         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70186         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70187         * modules/vasnprintf (Depends-on): Add stdint.
70188
70189 2007-03-25  Bruno Haible  <bruno@clisp.org>
70190
70191         * modules/fpieee: New file.
70192         * m4/fpieee.m4: New file.
70193         * modules/isnan-nolibm (Depends-on): Add fpieee.
70194         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70195         * modules/isnanl (Depends-on): Add fpieee.
70196
70197 2007-03-25  Bruno Haible  <bruno@clisp.org>
70198
70199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70200
70201 2007-03-25  Bruno Haible  <bruno@clisp.org>
70202
70203         Avoid test failures on IRIX 6.5.
70204         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70205         (main): Use it.
70206         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70207         macros.
70208         (main): Use them.
70209
70210 2007-03-25  Bruno Haible  <bruno@clisp.org>
70211
70212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70213         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70214         exists but doesn't work.
70215         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70216         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70218         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70219         math.h.
70220
70221 2007-03-25  Bruno Haible  <bruno@clisp.org>
70222
70223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70224         returns inf. Needed on IRIX 6.5.
70225
70226 2007-03-25  Bruno Haible  <bruno@clisp.org>
70227
70228         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70229         (main): Use isnanl instead of x != x idiom.
70230         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70231
70232         * tests/test-frexp.c: Include isnan.h.
70233         (main): Use isnan instead of x != x idiom.
70234         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70235
70236 2007-03-25  Bruno Haible  <bruno@clisp.org>
70237
70238         * tests/test-frexp.c (NaN): New function/macro.
70239         (main): Use it instead of 0.0 / 0.0.
70240         * tests/test-isnan.c (NaN): New function/macro.
70241         (main): Use it instead of 0.0 / 0.0.
70242         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70243         (test_function): Use it instead of 0.0 / 0.0.
70244         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70245         (test_function): Use it instead of 0.0 / 0.0.
70246         * tests/test-snprintf-posix.h (NaN): New function/macro.
70247         (test_function): Use it instead of 0.0 / 0.0.
70248         * tests/test-sprintf-posix.h (NaN): New function/macro.
70249         (test_function): Use it instead of 0.0 / 0.0.
70250         * tests/test-fprintf-posix.h (NaN): New function/macro.
70251         (test_function): Use it instead of 0.0 / 0.0.
70252         * tests/test-printf-posix.h (NaN): New function/macro.
70253         (test_function): Use it instead of 0.0 / 0.0.
70254
70255         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70256
70257 2007-03-25  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70260
70261 2007-03-25  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/regexec.c (merge_state_with_log): Make static.
70264
70265 2007-03-25  Bruno Haible  <bruno@clisp.org>
70266
70267         * lib/trigl.c (kernel_rem_pio2): Make static.
70268
70269 2007-03-25  Bruno Haible  <bruno@clisp.org>
70270
70271         * lib/sincosl.c (sincosl_table): Make static.
70272
70273 2007-03-25  Bruno Haible  <bruno@clisp.org>
70274
70275         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70276         if the compiler does not support C99.
70277
70278 2007-03-25  Bruno Haible  <bruno@clisp.org>
70279
70280         * modules/time (Makefile.am): Ensure all rule action lines start with a
70281         tab.
70282
70283 2007-03-24  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/tsearch-tests: New file.
70286         * tests/test-tsearch.sh: New file.
70287         * tests/test-tsearch.c: New file, mostly copied from glibc.
70288
70289         * modules/search-tests: New file.
70290         * tests/test-search.c: New file.
70291
70292         * modules/search: New file.
70293         * lib/search_.h: New file, incorporating lib/tsearch.h.
70294         * m4/search_h.m4: New file.
70295         * lib/tsearch.h: Remove file.
70296         * lib/tsearch.c: Include search.h instead of tsearch.h.
70297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70298         HAVE_TSEARCH.
70299         * modules/tsearch (Files): Remove lib/tsearch.h.
70300         (Depends-on): Add search.
70301         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70302         (Include): Change tsearch.h into search.h.
70303
70304 2007-03-24  Bruno Haible  <bruno@clisp.org>
70305
70306         * modules/fpucw: New file.
70307         * lib/fpucw.h: New file.
70308         * lib/frexp.c: Include fpucw.h.
70309         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70310         (FUNC): Use them.
70311         * lib/printf-frexp.c: Include fpucw.h.
70312         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70313         (FUNC): Use them.
70314         * lib/vasnprintf.c: Include fpucw.h.
70315         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70316         'long double' calculations.
70317         * tests/test-frexpl.c: Include fpucw.h.
70318         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70319         * tests/test-printf-frexpl.c: Include fpucw.h.
70320         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70321         * modules/frexpl (Depends-on): Add fpucw.
70322         * modules/printf-frexpl (Depends-on): Likewise.
70323         * modules/fprintf-posix (Depends-on): Likewise.
70324         * modules/snprintf-posix (Depends-on): Likewise.
70325         * modules/sprintf-posix (Depends-on): Likewise.
70326         * modules/vasnprintf-posix (Depends-on): Likewise.
70327         * modules/vasprintf-posix (Depends-on): Likewise.
70328         * modules/vfprintf-posix (Depends-on): Likewise.
70329         * modules/vsnprintf-posix (Depends-on): Likewise.
70330         * modules/vsprintf-posix (Depends-on): Likewise.
70331         * modules/frexpl-tests (Depends-on): Likewise.
70332         * modules/printf-frexpl-tests (Depends-on): Likewise.
70333
70334 2007-03-24  Bruno Haible  <bruno@clisp.org>
70335
70336         * lib/float+.h: New file.
70337         * lib/isnan.c: Include float+.h.
70338         (SIZE): New macro.
70339         (FUNC): Compare only SIZE bytes of the value.
70340         * lib/vasnprintf.c: Include float+.h.
70341         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70342         SIZEOF_LDBL or SIZEOF_DBL bytes.
70343         * modules/isnan-nolibm (Files): Add lib/float+.h.
70344         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70345         * modules/isnanl (Files): Add lib/float+.h.
70346         * modules/vasnprintf (Files): Add lib/float+.h.
70347
70348 2007-03-24  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70351         include isnanl-nolibm.h.
70352
70353 2007-03-24  Bruno Haible  <bruno@clisp.org>
70354
70355         * tests/test-read-file.c (main): Don't produce spurious output for
70356         expected situations. Make the test fail if it encountered unexpected
70357         results.
70358
70359 2007-03-24  Bruno Haible  <bruno@clisp.org>
70360
70361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70362         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70363
70364 2007-03-24  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70367
70368 2007-03-24  Bruno Haible  <bruno@clisp.org>
70369
70370         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70371         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70372
70373         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70374         * modules/utf8-ucs4: Turn into a symbolic link to module
70375         unistr/u8-mbtouc.
70376
70377         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70378         utf8-ucs4-unsafe.
70379         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70380         unistr/u8-mbtouc-unsafe.
70381
70382         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70383         * modules/utf16-ucs4: Turn into a symbolic link to module
70384         unistr/u16-mbtouc.
70385
70386         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70387         utf16-ucs4-unsafe.
70388         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70389         unistr/u16-mbtouc-unsafe.
70390
70391         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70392         * modules/ucs4-utf8: Turn into a symbolic link to module
70393         unistr/u8-ubtomb.
70394
70395         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70396         * modules/ucs4-utf16: Turn into a symbolic link to module
70397         unistr/u16-ubtomb.
70398
70399 2007-03-24  Bruno Haible  <bruno@clisp.org>
70400
70401         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70402         Enable the function only if HAVE_INLINE.
70403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70404         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70405         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70406         Enable the function only if HAVE_INLINE.
70407         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70408         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70409         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70410         Enable the function only if HAVE_INLINE.
70411         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70412         Enable the function only if HAVE_INLINE.
70413         * modules/utf8-ucs4: Update.
70414         * modules/utf8-ucs4-unsafe: Update.
70415         * modules/utf16-ucs4: Update.
70416         * modules/utf16-ucs4-unsafe: Update.
70417         * modules/ucs4-utf8: Update.
70418         * modules/ucs4-utf16: Update.
70419
70420 2007-03-24  Bruno Haible  <bruno@clisp.org>
70421
70422         * lib/utf8-ucs4.h: Remove file.
70423         * lib/utf8-ucs4-unsafe.h: Remove file.
70424         * lib/utf16-ucs4.h: Remove file.
70425         * lib/utf16-ucs4-unsafe.h: Remove file.
70426         * lib/ucs4-utf8.h: Remove file.
70427         * lib/ucs4-utf16.h: Remove file.
70428         * lib/unistr.h: Include their previous contents.
70429         * m4/utf-ucs4.m4: Remove file.
70430         * m4/ucs4-utf.m4: Remove file.
70431         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70432         (Depends-on): Add unistr/base.
70433         (configure.ac): Remove gl_UTF_UCS4.
70434         (Makefile.am): Update.
70435         (Include): Change to unistr.h.
70436         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70437         (Depends-on): Add unistr/base.
70438         (configure.ac): Remove gl_UTF_UCS4.
70439         (Makefile.am): Update.
70440         (Include): Change to unistr.h.
70441         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70442         (Depends-on): Add unistr/base.
70443         (configure.ac): Remove gl_UTF_UCS4.
70444         (Makefile.am): Update.
70445         (Include): Change to unistr.h.
70446         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70447         (Depends-on): Add unistr/base.
70448         (configure.ac): Remove gl_UTF_UCS4.
70449         (Makefile.am): Update.
70450         (Include): Change to unistr.h.
70451         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70452         (Depends-on): Add unistr/base.
70453         (configure.ac): Remove gl_UCS4_UTF.
70454         (Makefile.am): Update.
70455         (Include): Change to unistr.h.
70456         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70457         (Depends-on): Add unistr/base.
70458         (configure.ac): Remove gl_UCS4_UTF.
70459         (Makefile.am): Update.
70460         (Include): Change to unistr.h.
70461         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70462         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70463         utf8-ucs4-unsafe.h.
70464         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70465         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70466         utf16-ucs4-unsafe.h.
70467         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70468         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70469         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70470         * lib/unistr/u8-strchr.c: Likewise.
70471         * lib/unistr/u8-strrchr.c: Likewise.
70472         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70473         * lib/unistr/u16-strchr.c: Likewise.
70474         * lib/unistr/u16-strrchr.c: Likewise.
70475         * lib/striconveh.c: Update.
70476         * lib/linebreak.c: Update.
70477
70478 2007-03-24  Bruno Haible  <bruno@clisp.org>
70479
70480         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70481         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70482
70483 2007-03-22  Bruno Haible  <bruno@clisp.org>
70484
70485         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70486
70487 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70488
70489         * MODULES.html.sh (File system functions): New module write-any-file.
70490         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70491         * m4/write-any-file.m4: New files.
70492
70493 2007-03-23  Eric Blake  <ebb9@byu.net>
70494
70495         * gnulib-tool: Rearrange space-tab sequences, since some editors
70496         like to eat them.
70497
70498 2007-03-23  Eric Blake  <ebb9@byu.net>
70499
70500         * lib/version-etc.c (version_etc_va): Update license wording to
70501         be more concise.  Recommended by Richard Stallman.
70502
70503 2007-03-22  Bruno Haible  <bruno@clisp.org>
70504
70505         * lib/poll.c (MSG_PEEK): New fallback definition.
70506
70507 2007-03-22  Bruno Haible  <bruno@clisp.org>
70508
70509         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70510         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70511         (main): Update.
70512         Fixes a compilation error on BeOS.
70513
70514 2007-03-22  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/frexpl-tests: New file.
70517         * tests/test-frexpl.c: New file.
70518
70519         * modules/frexpl: New file.
70520         * m4/frexpl.m4: New file.
70521         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70522         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70524         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70525         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70527
70528 2007-03-22  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/frexpl.c: Share code with lib/frexp.c.
70531         * modules/mathl (Files): Add lib/frexp.c.
70532         (Depends-on): Add isnanl-nolibm.
70533
70534 2007-03-22  Bruno Haible  <bruno@clisp.org>
70535
70536         * modules/printf-frexp (Files): Add m4/frexp.m4.
70537         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70538         only if the found frexp function actually works.
70539
70540 2007-03-22  Bruno Haible  <bruno@clisp.org>
70541
70542         * lib/frexp.c: Remove older implementation that uses divisions.
70543
70544 2007-03-21  Bruno Haible  <bruno@clisp.org>
70545
70546         * modules/frexp-tests: New file.
70547         * tests/test-frexp.c: New file.
70548
70549         * modules/frexp: New file.
70550         * lib/frexp.c: New file.
70551         * m4/frexp.m4: New file.
70552         * lib/math_.h (frexp): New declaration.
70553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70554         REPLACE_FREXP.
70555         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70556
70557 2007-03-21  Bruno Haible  <bruno@clisp.org>
70558
70559         * modules/isnanl-tests: New file.
70560         * tests/test-isnanl.c: New file.
70561
70562         * modules/isnanl: New file.
70563         * lib/isnanl.h: New file.
70564         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70565         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70566         gl_FUNC_ISNANL_WORKS.
70567         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70568         New macros.
70569
70570 2007-03-21  Bruno Haible  <bruno@clisp.org>
70571
70572         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70573         lib/isnanl.h.
70574         (Include): Update.
70575         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70576         * lib/vasnprintf.c: Update.
70577         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70578         tests/test-isnanl.h, remove tests/test-isnanl.c.
70579         (Makefile.am): Update.
70580         * tests/test-isnanl-nolibm.c: New file.
70581         * tests/test-isnanl.h: New file.
70582         * tests/test-isnanl.c: Remove file.
70583
70584 2007-03-21  Jim Meyering  <jim@meyering.net>
70585
70586         When trying to open ".", treat ESTALE like EACCES.
70587         * lib/savewd.c (savewd_save): Resort to forking not just upon
70588         failure with EACCES, but also when errno is ESTALE.
70589
70590 2007-03-20  Bruno Haible  <bruno@clisp.org>
70591
70592         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70593         Needed on AIX 5.1. Reported by Matthew Woehlke.
70594
70595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         Suggestions by Bruno Haible:
70598         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70599         our own.
70600         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70601         * modules/acl (Depends-on): Add gettext.
70602
70603 2007-03-19  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/iconvme: Remove file.
70606         * lib/iconvme.h: Remove file.
70607         * lib/iconvme.c: Remove file.
70608         * m4/iconvme.m4: Remove file.
70609
70610 2007-03-19  Bruno Haible  <bruno@clisp.org>
70611
70612         * doc/relocatable-maint.texi: Break long shell script line.
70613         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70614
70615 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70618         handle file_has_acl.
70619         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70620         * lib/acl.c: Move header inclusions and related macro defns into
70621         lib/acl-internal.h.
70622         (S_ISLNK): Remove defn, since that's now done for us.
70623         (file_has_acl): Move to lib/file-has-acl.c.
70624         Call acl_trivial if available.  This is the crucial part of the fix.
70625         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70626         shared within the library.  Rewrite a bit, partly to make it compatible
70627         with the GNU coding style.
70628         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70629         Remove unnecessary double-quotes.
70630         Don't test for acl_to_text; the build will catch that.
70631         Replace acl_entries if it doesn't exist and it is needed.
70632         Check for -lsec and acl_trivial (as used on Solaris 10).
70633         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70634         lib/file-has-acl.c.
70635         (Depends-on): Add sys_stat, for S_ISLNK.
70636
70637 2007-03-19  Ben Pfaff  <blp@gnu.org>
70638
70639         * doc/gnulib.texi: Fix typos.
70640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70641
70642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70645         If size is zero here, buf must be zero.
70646
70647 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70648
70649         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70650         <bruno@clisp.org>.
70651
70652 2007-03-18  Bruno Haible  <bruno@clisp.org>
70653
70654         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70655         Suggested by Eric Blake.
70656
70657 2007-03-18  Ben Pfaff  <blp@gnu.org>
70658
70659         * doc/relocatable.texi: Recommend using as prefix a directory
70660         that does not exist and will never be created.  Based on
70661         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70662         and others.
70663
70664 2007-03-17  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/fchownat.c: Include lchown.h.
70667
70668 2007-03-17  Bruno Haible  <bruno@clisp.org>
70669
70670         Fix endless loop when the given allocated size was > INT_MAX.
70671         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70672         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70673         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70674         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70675         * lib/sprintf.c (sprintf): Likewise.
70676
70677 2007-03-17  Bruno Haible  <bruno@clisp.org>
70678
70679         * tests/test-argp-2.sh (func_compare): Output a context diff.
70680
70681 2007-03-17  Bruno Haible  <bruno@clisp.org>
70682
70683         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70684         locale's decimal-point character.
70685
70686 2007-03-17  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70689         before comparing it. Needed because on some platforms (e.g. x86) a
70690         'long double' occupies less bytes than sizeof (long double).
70691
70692 2007-03-17  Bruno Haible  <bruno@clisp.org>
70693
70694         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70695         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70696         * tests/test-getaddrinfo.c (simple): Likewise.
70697         * tests/test-read-file.c (main): Likewise.
70698
70699 2007-03-17  Bruno Haible  <bruno@clisp.org>
70700
70701         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70702
70703 2007-03-17  Bruno Haible  <bruno@clisp.org>
70704
70705         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70706         unused variable.
70707
70708 2007-03-17  Bruno Haible  <bruno@clisp.org>
70709
70710         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70711         * tests/test-c-strncasecmp.c: Likewise.
70712
70713 2007-03-17  Bruno Haible  <bruno@clisp.org>
70714
70715         * modules/stdlib (Depends-on): Add unistd.
70716         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70717         Needed for MacOS X 10.3.
70718
70719 2007-03-17  Bruno Haible  <bruno@clisp.org>
70720
70721         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70722
70723 2007-03-17  Bruno Haible  <bruno@clisp.org>
70724
70725         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70726
70727 2007-03-17  Bruno Haible  <bruno@clisp.org>
70728
70729         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70730         to reflect files copied from gnulib (with or without modifications).
70731         Suggested by Jim Meyering.
70732
70733 2007-03-17  Eric Blake  <ebb9@byu.net>
70734
70735         * NEWS: Document stdlib change from 2007-02-18.
70736
70737 2007-03-17  Jim Meyering  <jim@meyering.net>
70738
70739         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70740         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70741         someone uses a name containing shell meta-characters.
70742         Reported by Alfred M. Szmidt.
70743
70744         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70745
70746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70747
70748         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70749         and copy gettext configuration files only if configure.ac contains
70750         a use of AM_GNU_GETTEXT_VERSION.
70751
70752 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70753
70754         * build-aux/bootstrap (gnulib_name): New variable.
70755         (gnulib_tool_options): Use it.
70756
70757 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70758
70759         * tests/test-des.c: Use new namespace.
70760
70761 2007-03-15  Bruno Haible  <bruno@clisp.org>
70762
70763         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70764         Reported by James Youngman <jay@gnu.org>.
70765
70766 2007-03-15  Bruno Haible  <bruno@clisp.org>
70767
70768         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70769         declared prototype. Needed with cc on OSF/1 5.1.
70770
70771 2007-03-15  Bruno Haible  <bruno@clisp.org>
70772
70773         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70774         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70775         (struct gl_list_implementation): Add dispose_fn argument to the
70776         'create_empty', 'create' methods.
70777         (struct gl_list_impl_base): Add field 'dispose_fn'.
70778         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70779         argument.
70780         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70781         dispose_fn argument.
70782         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70783         dispose_fn on the dropped values.
70784         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70785         dispose_fn argument.
70786         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70787         dropped values.
70788         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70789         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70790         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70791         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70792         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70793         argument.
70794         (gl_tree_list_free): Call dispose_fn on the dropped values.
70795         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70796         the dropped values.
70797         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70798         Add dispose_fn argument.
70799         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70800         Call dispose_fn on the dropped values.
70801         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70802         Add dispose_fn argument.
70803         (gl_sublist_create): Initialize the 'dispose_fn' field.
70804         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70805         * tests/test-array_list.c (main): Update.
70806         * tests/test-carray_list.c (main): Update.
70807         * tests/test-avltree_list.c (main): Update.
70808         * tests/test-rbtree_list.c (main): Update.
70809         * tests/test-avltreehash_list.c (main): Update.
70810         * tests/test-rbtreehash_list.c (main): Update.
70811         * tests/test-linked_list.c (main): Update.
70812         * tests/test-linkedhash_list.c (main): Update.
70813         * tests/test-array_oset.c (main): Update.
70814
70815 2007-03-15  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70818         (gl_oset_create_empty): Add dispose_fn argument.
70819         (struct gl_oset_implementation): Add dispose_fn argument to
70820         'create_empty' method.
70821         (struct gl_oset_impl_base): Add dispose_fn field.
70822         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70823         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70824         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70825         values.
70826         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70827         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70828         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70829         dropped value.
70830         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70831         dropped value.
70832         * tests/test-array_oset.c (main): Update.
70833         * tests/test-avltree_oset.c (main): Update.
70834         * tests/test-rbtree_oset.c (main): Update.
70835         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70836
70837 2007-03-13  Bruno Haible  <bruno@clisp.org>
70838
70839         * tests/test-stdbool.c (i): Update after last patch.
70840
70841 2007-03-12  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70844         the iswprint macro. Needed on Solaris 2.5.1.
70845
70846 2007-03-12  Bruno Haible  <bruno@clisp.org>
70847
70848         * tests/test-printf-frexp.c (main): Declare x as volatile.
70849
70850 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70851
70852         * doc/gnulib.texi (Build robot for gnulib): New section.
70853
70854 2007-03-12  Jim Meyering  <jim@meyering.net>
70855
70856         * build-aux/bootstrap: New file.
70857         * build-aux/bootstrap.conf: New file, from coreutils.
70858
70859 2007-03-11  Bruno Haible  <bruno@clisp.org>
70860
70861         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70862
70863 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70864
70865         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70866         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70867         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70868
70869 2007-03-11  Bruno Haible  <bruno@clisp.org>
70870
70871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70872         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70873
70874 2007-03-11  Bruno Haible  <bruno@clisp.org>
70875
70876         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70877         formula. Needed for SunPRO C 5.0.
70878
70879 2007-03-11  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/long-options (Depends-on): Add getopt.
70882
70883 2007-03-11  Bruno Haible  <bruno@clisp.org>
70884
70885         * modules/modechange (Depends-on): Add stdbool.
70886
70887 2007-03-11  Bruno Haible  <bruno@clisp.org>
70888
70889         * modules/i-ring (Depends-on): Add stdbool.
70890
70891 2007-03-11  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/gc-des (Depends-on): Add stdbool.
70894
70895 2007-03-11  Bruno Haible  <bruno@clisp.org>
70896
70897         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70898
70899 2007-03-11  Bruno Haible  <bruno@clisp.org>
70900
70901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70902
70903 2007-03-11  Bruno Haible  <bruno@clisp.org>
70904
70905         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70906
70907 2007-03-11  Bruno Haible  <bruno@clisp.org>
70908
70909         * lib/vasnprintf.c (sprintf): Undefine.
70910
70911 2007-03-11  Bruno Haible  <bruno@clisp.org>
70912
70913         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70914         initializers in SunPRO C and Compaq C compilers.
70915
70916 2007-03-11  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70919         decrementing code ANSI C compliant.
70920
70921 2007-03-11  Bruno Haible  <bruno@clisp.org>
70922
70923         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70924         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70925
70926 2007-03-11  Bruno Haible  <bruno@clisp.org>
70927
70928         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70929         <stdbool.h> substitute doesn't pass.
70930
70931 2007-03-11  Bruno Haible  <bruno@clisp.org>
70932
70933         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70934
70935 2007-03-11  Bruno Haible  <bruno@clisp.org>
70936
70937         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70938         script, for submission to autobuild.josefsson.org.
70939
70940 2007-03-10  Bruno Haible  <bruno@clisp.org>
70941
70942         * modules/canonicalize-lgpl-tests: New file.
70943         * tests/test-canonicalize-lgpl.sh: New file.
70944         * tests/test-canonicalize-lgpl.c: New file.
70945
70946         * modules/c-strcase-tests: New file.
70947         * tests/test-c-strcase.sh: New file.
70948         * tests/test-c-strcasecmp.c: New file.
70949         * tests/test-c-strncasecmp.c: New file.
70950
70951         * modules/atexit-tests: New file.
70952         * tests/test-atexit.sh: New file.
70953         * tests/test-atexit.c: New file.
70954
70955 2007-03-10  Bruno Haible  <bruno@clisp.org>
70956
70957         * tests/test-binary-io.sh: Use temporary filenames that are not so
70958         likely to clash with those of other tests (in a parallel make).
70959         * tests/test-binary-io.c: Likewise.
70960
70961 2007-03-10  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70964         fallback; use #error instead.
70965         Suggested by Simon Josefsson.
70966
70967 2007-03-10  Bruno Haible  <bruno@clisp.org>
70968
70969         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70970         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70971         first and the last.
70972
70973 2007-03-10  Bruno Haible  <bruno@clisp.org>
70974
70975         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70976
70977 2007-03-10  Bruno Haible  <bruno@clisp.org>
70978
70979         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70980         "make distcheck".
70981         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70982         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70983         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70984
70985 2007-03-10  Bruno Haible  <bruno@clisp.org>
70986
70987         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70988         variable.
70989         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70990         variable.
70991
70992 2007-03-09  Eric Blake  <ebb9@byu.net>
70993         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70994
70995         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70996         types are not being provided by gnulib.
70997         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70998         types are supported.
70999
71000 2007-03-10  Bruno Haible  <bruno@clisp.org>
71001
71002         * lib/stdio_.h (__attribute__): New macro.
71003         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71004         vsprintf): Specify __attribute__ __format__ for GCC.
71005         Suggested by Eric Blake.
71006
71007 2007-03-09  Bruno Haible  <bruno@clisp.org>
71008
71009         * modules/printf-posix-tests: New file.
71010         * tests/test-printf-posix.sh: New file.
71011         * tests/test-printf-posix.c: New file.
71012
71013         * modules/printf-posix: New file.
71014         * lib/printf.c: New file.
71015         * m4/printf-posix-rpl.m4: New file.
71016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71017         REPLACE_PRINTF.
71018         * lib/stdio_.h (printf): New declaration.
71019         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71020         ____strfmon____): New macros.
71021         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71022         REPLACE_PRINTF.
71023
71024 2007-03-09  Bruno Haible  <bruno@clisp.org>
71025
71026         * tests/test-vasnprintf-posix2.sh: New file.
71027         * tests/test-vasnprintf-posix2.c: New file.
71028         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71029         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71030         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71031
71032         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71033         a locale dependent decimal point, rather than always '.'.
71034
71035 2007-03-09  Eric Blake  <ebb9@byu.net>
71036
71037         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71038         spite of platforms like Tandem/NSK that define it to -1.
71039
71040 2007-03-08  Bruno Haible  <bruno@clisp.org>
71041
71042         * modules/vprintf-posix-tests: New file.
71043         * tests/test-vprintf-posix.sh: New file.
71044         * tests/test-vprintf-posix.c: New file.
71045         * tests/test-printf-posix.h: New file.
71046
71047         * modules/vprintf-posix: New file.
71048         * lib/vprintf.c: New file.
71049         * m4/vprintf-posix.m4: New file.
71050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71051         REPLACE_VPRINTF.
71052         * lib/stdio_.h (vprintf): New declaration.
71053         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71054         REPLACE_VPRINTF.
71055
71056 2007-03-08  Bruno Haible  <bruno@clisp.org>
71057
71058         * modules/fprintf-posix-tests: New file.
71059         * tests/test-fprintf-posix.sh: New file.
71060         * tests/test-fprintf-posix.c: New file.
71061
71062         * modules/fprintf-posix: New file.
71063         * lib/fprintf.c: New file.
71064         * m4/fprintf-posix.m4: New file.
71065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71066         REPLACE_FPRINTF.
71067         * lib/stdio_.h (fprintf): New declaration.
71068         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71069         REPLACE_FPRINTF.
71070
71071 2007-03-08  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/vfprintf-posix-tests: New file.
71074         * tests/test-vfprintf-posix.sh: New file.
71075         * tests/test-vfprintf-posix.c: New file.
71076         * tests/test-fprintf-posix.h: New file.
71077         * tests/test-fprintf-posix.out: New file.
71078
71079         * modules/vfprintf-posix: New file.
71080         * lib/vfprintf.c: New file.
71081         * m4/vfprintf-posix.m4: New file.
71082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71083         REPLACE_VFPRINTF.
71084         * lib/stdio_.h (vfprintf): New declaration.
71085         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71086         REPLACE_VFPRINTF.
71087
71088 2007-03-08  Bruno Haible  <bruno@clisp.org>
71089
71090         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71091
71092 2007-03-08  Bruno Haible  <bruno@clisp.org>
71093
71094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71095         instead of 'expr' invocations.
71096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71098         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71101         Suggested by Paul Eggert.
71102
71103 2007-03-08  Bruno Haible  <bruno@clisp.org>
71104
71105         * modules/fseterr-tests: New file.
71106         * tests/test-fseterr.c: New file.
71107
71108         * modules/fseterr: New file.
71109         * lib/fseterr.h: New file.
71110         * lib/fseterr.c: New file.
71111
71112 2007-03-08  Bruno Haible  <bruno@clisp.org>
71113
71114         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71115         * lib/getopt_.h: Likewise.
71116         * lib/mbswidth.h: Likewise.
71117         * lib/setenv.h: Likewise.
71118         * lib/vasnprintf.h: Likewise.
71119         * lib/vasprintf.h: Likewise.
71120         * lib/verror.h: Likewise.
71121         * lib/xsetenv.h: Likewise.
71122         * lib/xvasprintf.h: Likewise.
71123
71124 2007-03-08  Jim Meyering  <jim@meyering.net>
71125
71126         * users.txt: Add parted.
71127
71128         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71129
71130 2007-03-07  Bruno Haible  <bruno@clisp.org>
71131
71132         * m4/printf.m4: Make the shell script snippets copy&pastable.
71133
71134 2007-03-02  Bruno Haible  <bruno@clisp.org>
71135
71136         * lib/netinet_in_.h: New file.
71137         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71138         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71139         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71140         (Depends-on): Add absolute-header.
71141         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71142         into netinet/in.h.
71143
71144 2007-03-03  Bruno Haible  <bruno@clisp.org>
71145
71146         * lib/sys_select_.h: New file.
71147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71148         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71149         * modules/sys_select (Files): Add lib/sys_select_.h.
71150         (Depends-on): Add absolute-header.
71151         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71152         into sys/select.h.
71153
71154 2007-03-02  Bruno Haible  <bruno@clisp.org>
71155
71156         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71157         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71158         values.
71159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71160         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71161         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71162         * modules/sys_socket (Depends-on): Add absolute-header.
71163         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71164         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71165         (Include): Remove requirement of inclusion of <sys/types.h>.
71166
71167 2007-03-02  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/byteswap_.h (bswap_32): Fix formula.
71170
71171 2007-03-06  Bruno Haible  <bruno@clisp.org>
71172
71173         * modules/sprintf-posix-tests: New file.
71174         * tests/test-sprintf-posix.c: New file.
71175
71176         * modules/sprintf-posix: New file.
71177         * lib/sprintf.c: New file.
71178         * m4/sprintf-posix.m4: New file.
71179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71180         REPLACE_SPRINTF.
71181         * lib/stdio_.h (sprintf): New declaration.
71182         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71183         REPLACE_SPRINTF.
71184
71185 2007-03-06  Bruno Haible  <bruno@clisp.org>
71186
71187         * modules/vsprintf-posix-tests: New file.
71188         * tests/test-vsprintf-posix.c: New file.
71189         * tests/test-sprintf-posix.h: New file.
71190
71191         * modules/vsprintf-posix: New file.
71192         * lib/vsprintf.c: New file.
71193         * m4/vsprintf-posix.m4: New file.
71194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71195         REPLACE_VSPRINTF.
71196         * lib/stdio_.h (vsprintf): New declaration.
71197         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71198         REPLACE_VSPRINTF.
71199
71200 2007-03-06  Bruno Haible  <bruno@clisp.org>
71201
71202         * modules/vsnprintf (Depend-on): Remove minmax.
71203
71204 2007-03-06  Bruno Haible  <bruno@clisp.org>
71205
71206         * modules/snprintf-posix-tests: New file.
71207         * tests/test-snprintf-posix.c: New file.
71208
71209         * modules/snprintf-posix: New file.
71210         * m4/snprintf-posix.m4: New file.
71211         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71212         gl_FUNC_SNPRINTF.
71213         (gl_FUNC_SNPRINTF): Invoke it.
71214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71215         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71216         is set.
71217         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71218
71219 2007-03-06  Bruno Haible  <bruno@clisp.org>
71220
71221         * modules/vsnprintf-posix-tests: New file.
71222         * tests/test-vsnprintf-posix.c: New file.
71223         * tests/test-snprintf-posix.h: New file.
71224
71225         * modules/vsnprintf-posix: New file.
71226         * m4/vsnprintf-posix.m4: New file.
71227         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71228         gl_FUNC_VSNPRINTF.
71229         (gl_FUNC_VSNPRINTF): Invoke it.
71230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71231         * lib/stdio_.h (vsnprintf): Define as a replacement if
71232         REPLACE_VSNPRINTF is set.
71233         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71234
71235 2007-03-06  Bruno Haible  <bruno@clisp.org>
71236
71237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71239
71240 2007-03-06  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71243         (asinl): Declare also if HAVE_DECL_ASINL is set.
71244         (atanl): Declare also if HAVE_DECL_ATANL is set.
71245         (ceill): Declare also if HAVE_DECL_CEILL is set.
71246         (cosl): Declare also if HAVE_DECL_COSL is set.
71247         (expl): Declare also if HAVE_DECL_EXPL is set.
71248         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71249         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71250         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71251         (logl): Declare also if HAVE_DECL_LOGL is set.
71252         (sinl): Declare also if HAVE_DECL_SINL is set.
71253         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71254         (tanl): Declare also if HAVE_DECL_TANL is set.
71255         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71257         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71258         declaration of frexpl, ldexpl.
71259         * modules/printf-frexpl (Depends-on): Add math.
71260         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71261
71262 2007-03-05  Bruno Haible  <bruno@clisp.org>
71263
71264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71265         frexpl and ldexpl are declared.
71266         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71267
71268 2007-03-05  Bruno Haible  <bruno@clisp.org>
71269
71270         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71271         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71272
71273 2007-03-05  Bruno Haible  <bruno@clisp.org>
71274
71275         * lib/stdio_.h: Include <stddef.h>.
71276
71277 2007-03-05  Bruno Haible  <bruno@clisp.org>
71278
71279         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71280
71281 2007-03-05  Bruno Haible  <bruno@clisp.org>
71282
71283         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71284         NetBSD 4, from Ralf Wildenhues.
71285
71286 2007-03-04  Bruno Haible  <bruno@clisp.org>
71287
71288         * lib/vasprintf.h: Update #if logic for the case when the functions
71289         exist but are overridden.
71290
71291 2007-03-04  Bruno Haible  <bruno@clisp.org>
71292
71293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71294         implementations: glibc-2.4 and MacOS X 10.3.
71295         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71296         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71297         * tests/test-vasprintf-posix.c (test_function): Likewise.
71298
71299 2007-03-04  Bruno Haible  <bruno@clisp.org>
71300
71301         * modules/vasprintf-posix-tests: New file.
71302         * tests/test-vasprintf-posix.c: New file.
71303
71304         * modules/vasprintf-posix: New file.
71305         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71306         defined.
71307         * m4/vasprintf-posix.m4: New file.
71308         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71309         gl_FUNC_VASPRINTF.
71310         (gl_FUNC_VASPRINTF): Invoke it.
71311         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71312         here.
71313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71314
71315 2007-03-04  Bruno Haible  <bruno@clisp.org>
71316
71317         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71318         REPLACE_GETTIMEOFDAY.
71319         * modules/sys_time (Makefile.am): Likewise.
71320         * m4/sys_time_h.m4: Likewise.
71321         * m4/gettimeofday.m4: Likewise.
71322
71323 2007-03-04  Bruno Haible  <bruno@clisp.org>
71324
71325         * modules/vasnprintf-posix-tests: New file.
71326         * tests/test-vasnprintf-posix.c: New file.
71327
71328         * modules/vasnprintf-posix: New file.
71329         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71330         printf-frexpl.h.
71331         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71332         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71333         REPLACE_VASNPRINTF is defined.
71334         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71335         gl_FUNC_VASNPRINTF.
71336         (gl_FUNC_VASNPRINTF): Invoke it.
71337         * m4/vasnprintf-posix.m4: New file.
71338         * m4/printf.m4: New file.
71339
71340 2007-03-04  Bruno Haible  <bruno@clisp.org>
71341
71342         Compile progreloc.c only if --enable-relocatable is specified.
71343         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71344         if --enable-relocatable was specified.
71345         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71346         lib_SOURCES.
71347
71348 2007-03-04  Jim Meyering  <jim@meyering.net>
71349
71350         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71351         Use it consistently, rather than enumerating errno constants.
71352
71353 2007-03-04  Bruno Haible  <bruno@clisp.org>
71354
71355         * modules/xvasprintf-tests: New file.
71356         * tests/test-xvasprintf.c: New file.
71357
71358         * modules/vasprintf-tests: New file.
71359         * tests/test-vasprintf.c: New file.
71360
71361         * modules/vasnprintf-tests: New file.
71362         * tests/test-vasnprintf.c: New file.
71363
71364         * modules/vsnprintf-tests: New file.
71365         * tests/test-vsnprintf.c: New file.
71366
71367         * modules/snprintf-tests: New file.
71368         * tests/test-snprintf.c: New file.
71369
71370 2007-03-04  Bruno Haible  <bruno@clisp.org>
71371
71372         Compile relocatable.c only if --enable-relocatable is specified.
71373         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71374         gl_RELOCATABLE_LIBRARY.
71375         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71376         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71377         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71378         gl_RELOCATABLE_LIBRARY.
71379         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71380         (Makefile.am): Remove lib_SOURCES.
71381         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71382         gl_RELOCATABLE_LIBRARY.
71383         (Makefile.am): Remove lib_SOURCES.
71384         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71385         always.
71386         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71387         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71388
71389 2007-03-04  Bruno Haible  <bruno@clisp.org>
71390
71391         * modules/argmatch-tests: New file.
71392         * tests/test-argmatch.c: New file.
71393
71394         * tests/test-allocsa.c (main): Halve the number of loop runs.
71395
71396         * modules/alloca-opt-tests: New file.
71397         * tests/test-alloca-opt.c: New file.
71398
71399 2007-03-04  Jim Meyering  <jim@meyering.net>
71400
71401         Work around difference between Linux ACLs and Solaris 10 ZFS.
71402         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71403         for EINVAL.
71404
71405 2007-03-03  Bruno Haible  <bruno@clisp.org>
71406
71407         * modules/relocatable-prog (Depends-on): Add back progreloc's
71408         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71409
71410 2007-03-03  Bruno Haible  <bruno@clisp.org>
71411
71412         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71413         * modules/relocatable-lib: New file.
71414
71415 2007-03-03  Bruno Haible  <bruno@clisp.org>
71416
71417         * modules/relocatable-prog: Renamed from modules/relocatable.
71418         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71419
71420 2007-03-03  Bruno Haible  <bruno@clisp.org>
71421
71422         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71423         m4/relocatable-lib.m4.
71424         (Depends-on): Remove 'relocatable'.
71425         (configure.ac): Add gl_RELOCATABLE_NOP.
71426
71427 2007-03-03  Bruno Haible  <bruno@clisp.org>
71428
71429         * modules/relocatable-prog-wrapper: New file.
71430         * modules/relocatable (Depends-on): Add it. Remove all other
71431         dependencies except progname.
71432         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71433
71434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71435         (gl_FUNC_STRERROR): Nop.
71436         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71437
71438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71439         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71440
71441         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71442         (gl_FUNC_READLINK): Update.
71443
71444         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71445
71446 2007-03-03  Bruno Haible  <bruno@clisp.org>
71447
71448         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71449         * modules/xreadlink (Depends-on): Add unistd.
71450         * modules/xreadlink-with-size (Depends-on): Likewise.
71451
71452 2007-03-03  Bruno Haible  <bruno@clisp.org>
71453
71454         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71455         extracted from gt_FUNC_SETENV.
71456         (gt_FUNC_SETENV): Remove macro.
71457         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71458         remove gt_FUNC_SETENV.
71459
71460 2007-03-03  Bruno Haible  <bruno@clisp.org>
71461
71462         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71463         ENABLE_RELOCATABLE here.
71464         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71465
71466 2007-03-03  Bruno Haible  <bruno@clisp.org>
71467
71468         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71469         * tests/test-rbtreehash_list.c: Include progname.h.
71470         (main): Call set_program_name.
71471
71472         * modules/rbtree-oset-tests (Depends-on): Add progname.
71473         * tests/test-rbtree_oset.c: Include progname.h.
71474         (main): Call set_program_name.
71475
71476         * modules/rbtree-list-tests (Depends-on): Add progname.
71477         * tests/test-rbtree_list.c: Include progname.h.
71478         (main): Call set_program_name.
71479
71480         * modules/linked-list-tests (Depends-on): Add progname.
71481         * tests/test-linked_list.c: Include progname.h.
71482         (main): Call set_program_name.
71483
71484 2007-03-03  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71487         All uses of __restrict changed to _Restrict_.
71488         * lib/glob_.h (__restrict): Remove macro.
71489
71490 2007-03-02  Bruno Haible  <bruno@clisp.org>
71491
71492         * modules/gettext (configure.ac): Require gettext infrastructure
71493         from version 0.16.1.
71494
71495 2007-03-02  Bruno Haible  <bruno@clisp.org>
71496
71497         * modules/linkedhash-list-tests (Depends-on): Add progname.
71498         * tests/test-linkedhash_list.c: Include progname.h.
71499         (main): Call set_program_name.
71500
71501         * modules/carray-list-tests (Depends-on): Add progname.
71502         * tests/test-carray_list.c: Include progname.h.
71503         (main): Call set_program_name.
71504
71505         * modules/avltreehash-list-tests (Depends-on): Add progname.
71506         * tests/test-avltreehash_list.c: Include progname.h.
71507         (main): Call set_program_name.
71508
71509         * modules/avltree-oset-tests (Depends-on): Add progname.
71510         * tests/test-avltree_oset.c: Include progname.h.
71511         (main): Call set_program_name.
71512
71513         * modules/avltree-list-tests (Depends-on): Add progname.
71514         * tests/test-avltree_list.c: Include progname.h.
71515         (main): Call set_program_name.
71516
71517         * modules/array-oset-tests (Depends-on): Add progname.
71518         * tests/test-array_oset.c: Include progname.h.
71519         (main): Call set_program_name.
71520
71521         * modules/array-list-tests (Depends-on): Add progname.
71522         * tests/test-array_list.c: Include progname.h.
71523         (main): Call set_program_name.
71524
71525         * modules/argp-tests (Depends-on): Add progname.
71526         * tests/test-argp.c: Include argp.h first. Include progname.h.
71527         (main): Call set_program_name.
71528
71529 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * doc/gnulib-tool.texi (Initial import): Reword description of
71532         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71533         limited effect even if defined after the first system include.
71534
71535 2007-03-01  Bruno Haible  <bruno@clisp.org>
71536
71537         * build-aux/config.libpath: Update to libtool-1.5.22.
71538         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71539
71540 2007-03-01  Bruno Haible  <bruno@clisp.org>
71541
71542         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71543         foo_CFLAGS.
71544         Reported by Ralf Wildenhues.
71545
71546 2007-03-01  Bruno Haible  <bruno@clisp.org>
71547
71548         * build-aux/install-reloc: Remove object files left over by some
71549         compilers.
71550         Reported by Ralf Wildenhues.
71551
71552 2007-03-01  Bruno Haible  <bruno@clisp.org>
71553
71554         * build-aux/install-reloc: Break long lines.
71555
71556 2007-03-01  Bruno Haible  <bruno@clisp.org>
71557
71558         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71559         Reported by Ralf Wildenhues.
71560
71561 2007-03-01  Bruno Haible  <bruno@clisp.org>
71562
71563         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71564         include ordering constraints.
71565
71566 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71570         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71571         as another example.
71572         * lib/time_.h: Fix misspelling.
71573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71574         Require gl_HEADER_TIME_H_DEFAULTS.
71575         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71576         * m4/time_r.m4 (gl_TIME_R): Likewise.
71577         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71578
71579 2007-03-01  Bruno Haible  <bruno@clisp.org>
71580
71581         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71582         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71583
71584 2007-03-01  Jim Meyering  <jim@meyering.net>
71585
71586         * modules/xreadlink (Maintainer): Add my name.
71587         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71588
71589 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71590             Bruno Haible  <bruno@clisp.org>
71591
71592         * build-aux/install-reloc: Compile also c-ctype.c.
71593         * build-aux/relocatable.sh.in: New file.
71594         * doc/relocatable.texi: New file.
71595         * doc/relocatable-maint.texi: New file.
71596         * doc/gnulib.texi: Include relocatable-maint.texi.
71597         * lib/progreloc.c: Include unistd.h unconditionally.
71598         * lib/relocwrapper.c: Include unistd.h unconditionally.
71599         Include c-ctype.h.
71600         (add_dotbin): Use c_tolower.
71601         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71602         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71603         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71604         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71605         to m4/relocatable-lib.m4.
71606         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71607         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71608         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71609         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71610         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71611         * modules/relocatable: New file.
71612         * modules/relocatable-lib: New file.
71613         * modules/relocatable-script: New file.
71614
71615 2007-02-28  Bruno Haible  <bruno@clisp.org>
71616
71617         Import --enable-relocatable infrastructure.
71618         * build-aux/config.libpath: New file, from GNU gettext.
71619         * build-aux/install-reloc: New file, from GNU gettext.
71620         * build-aux/reloc-ldflags: New file, from GNU gettext.
71621         * lib/relocatable.h: New file, from GNU gettext.
71622         * lib/relocatable.c: New file, from GNU gettext.
71623         * lib/relocwrapper.c: New file, from GNU gettext.
71624         * m4/relocatable.m4: New file, from GNU gettext.
71625
71626 2007-02-28  Bruno Haible  <bruno@clisp.org>
71627
71628         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71629
71630         * modules/xreadlink: New file, from GNU gettext with modifications.
71631         * lib/xreadlink.c: New file, from GNU gettext.
71632         * lib/xreadlink.h: Add comments.
71633         (xreadlink): New declaration.
71634
71635         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71636         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71637         lib/xreadlink-with-size.c.
71638         (configure.ac): Remove gl_XREADLINK invocation.
71639         (Makefile.am): Augment lib_SOURCES.
71640         * m4/xreadlink.m4: Remove file.
71641         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71642         (xreadlink_with_size): Renamed from xreadink.
71643         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71644         * modules/canonicalize (Depends-on): Replace xreadlink with
71645         xreadlink-with-size.
71646         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71647
71648 2007-02-25  Jim Meyering  <jim@meyering.net>
71649
71650         * build-aux/announce-gen: When complaining about excess arguments,
71651         list them.
71652
71653 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71654
71655         * README: Document signed integer overflow situation more
71656         accurately.
71657
71658 2007-02-25  Bruno Haible  <bruno@clisp.org>
71659
71660         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71661         'a' or 'A' conversion.
71662
71663 2007-02-25  Bruno Haible  <bruno@clisp.org>
71664
71665         * modules/filename: Renamed from modules/pathname.
71666         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71667         lib/concatpath.c with lib/concat-filename.c.
71668         (Makefile.am): Update.
71669         (Include): Replace pathname.h with filename.h.
71670         * lib/filename.h: Renamed from lib/pathname.h.
71671         (concatenated_filename): Renamed from concatenated_pathname.
71672         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71673         (concatenated_filename): Renamed from concatenated_pathname.
71674         * lib/findprog.c: Include filename.h instead of pathname.h.
71675         (find_in_path): Update.
71676         * lib/javacomp.c: Include filename.h instead of pathname.h.
71677         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71678         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71679         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71680         is_oldgcj_14_13_usable, is_javac_usable): Update.
71681         * lib/javaexec.c: Include filename.h instead of pathname.h.
71682         (execute_java_class): Update.
71683         * modules/findprog: Update.
71684         * modules/javacomp: Update.
71685         * modules/javaexec: Update.
71686         * MODULES.html.sh (File system functions): Add 'filename', remove
71687         'pathname'.
71688
71689 2007-02-25  Bruno Haible  <bruno@clisp.org>
71690
71691         * modules/printf-frexpl-tests: New file.
71692         * tests/test-printf-frexpl.c: New file.
71693
71694         * modules/printf-frexpl: New file.
71695         * lib/printf-frexpl.h: New file.
71696         * lib/printf-frexpl.c: New file.
71697         * m4/printf-frexpl.m4: New file.
71698
71699 2007-02-25  Bruno Haible  <bruno@clisp.org>
71700
71701         * modules/printf-frexp-tests: New file.
71702         * tests/test-printf-frexp.c: New file.
71703
71704         * modules/printf-frexp: New file.
71705         * lib/printf-frexp.h: New file.
71706         * lib/printf-frexp.c: New file.
71707         * m4/printf-frexp.m4: New file.
71708
71709 2007-02-25  Bruno Haible  <bruno@clisp.org>
71710
71711         Assume automake >= 1.10 for the tests.
71712         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71713         * modules/arctwo-tests: Likewise.
71714         * modules/argp-tests: Likewise.
71715         * modules/avltree-list-tests: Likewise.
71716         * modules/avltree-oset-tests: Likewise.
71717         * modules/avltreehash-list-tests: Likewise.
71718         * modules/carray-list-tests: Likewise.
71719         * modules/crc-tests: Likewise.
71720         * modules/des-tests: Likewise.
71721         * modules/gc-arcfour-tests: Likewise.
71722         * modules/gc-arctwo-tests: Likewise.
71723         * modules/gc-des-tests: Likewise.
71724         * modules/gc-hmac-md5-tests: Likewise.
71725         * modules/gc-hmac-sha1-tests: Likewise.
71726         * modules/gc-md2-tests: Likewise.
71727         * modules/gc-md4-tests: Likewise.
71728         * modules/gc-md5-tests: Likewise.
71729         * modules/gc-pbkdf2-sha1-tests: Likewise.
71730         * modules/gc-rijndael-tests: Likewise.
71731         * modules/gc-sha1-tests: Likewise.
71732         * modules/gc-tests: Likewise.
71733         * modules/getaddrinfo-tests: Likewise.
71734         * modules/hmac-md5-tests: Likewise.
71735         * modules/hmac-sha1-tests: Likewise.
71736         * modules/linked-list-tests: Likewise.
71737         * modules/linkedhash-list-tests: Likewise.
71738         * modules/lock-tests: Likewise.
71739         * modules/md2-tests: Likewise.
71740         * modules/md4-tests: Likewise.
71741         * modules/md5-tests: Likewise.
71742         * modules/rbtree-list-tests: Likewise.
71743         * modules/rbtree-oset-tests: Likewise.
71744         * modules/rbtreehash-list-tests: Likewise.
71745         * modules/read-file-tests: Likewise.
71746         * modules/rijndael-tests: Likewise.
71747         * modules/stdint-tests: Likewise.
71748         * modules/tls-tests: Likewise.
71749
71750 2007-02-24  Bruno Haible  <bruno@clisp.org>
71751
71752         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71753         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71754         function; instead check whether isnan with a double argument links.
71755         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71756         function; instead check whether isnan with a 'long double' argument
71757         links.
71758         Reported by Eric Blake <ebb9@byu.net>.
71759
71760 2007-02-24  Bruno Haible  <bruno@clisp.org>
71761
71762         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71763         defined.
71764         * lib/isnanl.c: Remove all code. Just include isnan.c.
71765         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71766
71767 2007-02-25  Jim Meyering  <jim@meyering.net>
71768
71769         Avoid conflicting types for 'unsetenv' on FreeBSD.
71770         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71771         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71772         in stdlib.h.
71773
71774 2007-02-24  Bruno Haible  <bruno@clisp.org>
71775
71776         * modules/isnanl-nolibm-tests: New file.
71777         * tests/test-isnanl.c: New file.
71778
71779         * modules/isnanl-nolibm: New file.
71780         * lib/isnanl.h: New file.
71781         * lib/isnanl.c: New file.
71782         * m4/isnanl.m4: New file.
71783
71784 2007-02-24  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/isnan-nolibm-tests: New file.
71787         * tests/test-isnan.c: New file.
71788
71789         * modules/isnan-nolibm: New file.
71790         * lib/isnan.h: New file.
71791         * lib/isnan.c: New file.
71792         * m4/isnan.m4: New file.
71793
71794 2007-02-24  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71797         assume that an exponent fits in 20 bits.
71798
71799 2007-02-24  Jim Meyering  <jim@meyering.net>
71800
71801         * m4/regex.m4: Update the description of the configure-time option,
71802         --without-included-regex, to state accurately what the defaults are,
71803         and perhaps to give people an idea why using this option is risky.
71804
71805 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71808         loops on small arguments.  This attempts to avoid the problem
71809         Bruno Haible reported for AIX 4.3.2 in
71810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71811
71812 2007-02-23  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71815         Needed for help2man.
71816
71817 2007-02-23  Karl Berry  <karl@gnu.org>
71818
71819         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71820         exists, foo.h should be cvs-ignored, not committed.
71821
71822 2007-02-23  Eric Blake  <ebb9@byu.net>
71823
71824         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71825         * lib/stat-time.h (includes): Likewise.
71826         * lib/utimecmp.c (includes): Likewise.
71827         * lib/utimens.h (includes): Likewise.
71828         * lib/getdate.y (includes): Also include "timespec.h" for use
71829         internal to the module.
71830         * modules/utimens (Depends-on): Revert yesterday's patch.
71831         * modules/nanosleep (Depends-on): Add missing dependency.
71832
71833 2007-02-22  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/glob.c: Don't include getlogin_r.h.
71836
71837 2007-02-22  Jim Meyering  <jim@meyering.net>
71838
71839         * modules/utimens (Depends-on): Add timespec, required for
71840         utimens.h's inclusion of timespec.h.
71841
71842 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71843
71844         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71845         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71846         Schwab in
71847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71848         I'll try to think of a better way to fix the Solaris problem.
71849
71850         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71851         like glibc; on Solaris 10, it fails with errno == EINVAL.
71852         POSIX says the behavior is unspecified if the first argument is NULL,
71853         so play it safe and never pass NULL to the system getcwd.
71854
71855 2007-02-21  Jim Meyering  <jim@meyering.net>
71856
71857         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71858         of gettimeofday.  It would conflict with the one now always
71859         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71860         an IRIX 6.5 build failure.
71861
71862 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         Minor fixups to port to Solaris 10 with Sun C 5.8.
71865         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71866         * modules/getcwd (Depends-on): Add dirfd.
71867         * lib/putenv.c (putenv): #undef it.
71868         (rpl_putenv): New decl.
71869         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71870
71871 2007-02-20  Bruno Haible  <bruno@clisp.org>
71872
71873         * modules/stdio-tests: New file.
71874         * tests/test-stdio.c: New file.
71875
71876         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71877         (Depends-on): Add stdio.
71878         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71879         (Include): Use <stdio.h> instead of vsnprintf.h.
71880         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71881         HAVE_DECL_VSNPRINTF.
71882         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71883
71884         * modules/snprintf (Files): Remove lib/snprintf.h.
71885         (Depends-on): Add stdio.
71886         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71887         (Include): Use <stdio.h> instead of snprintf.h.
71888         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71889         HAVE_DECL_SNPRINTF.
71890         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71891         * lib/getaddrinfo.c: Likewise.
71892
71893         * modules/stdio: New file.
71894         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71895         * lib/snprintf.h: Remove file.
71896         * lib/vsnprintf.h: Remove file.
71897         * lib/.cppi-disable: Remove snprintf.h.
71898         * m4/stdio_h.m4: New file.
71899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71900
71901 2007-02-20  Jim Meyering  <jim@meyering.net>
71902
71903         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71904         used by e.g., mingw.  From Bruno Haible.
71905
71906 2007-02-19  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71909         warnings.
71910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71911
71912 2007-02-19  Bruno Haible  <bruno@clisp.org>
71913
71914         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71915         from mingw users.
71916
71917 2007-02-19  Bruno Haible  <bruno@clisp.org>
71918
71919         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71920         warnings.
71921         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71922
71923 2007-02-19  Jim Meyering  <jim@meyering.net>
71924
71925         Don't use FD after a successful "fdopendir (fd)".
71926         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71927         Reset it by calling dirfd on the just-obtained DIR*.
71928
71929         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71930         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71931
71932 2007-02-18  Bruno Haible  <bruno@clisp.org>
71933
71934         * lib/readlink.c: Include <unistd.h>.
71935         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71936         HAVE_READLINK.
71937         * modules/readlink (Depends-on): Add unistd.
71938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71939         (Include): Add <unistd.h>.
71940
71941         * lib/getlogin_r.h: Remove file.
71942         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71943         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71944         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71945         HAVE_DECL_GETLOGIN_R.
71946         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71947         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71948         (Include): Use <unistd.h> instead of getlogin_r.h.
71949
71950         * lib/getcwd.h: Remove file.
71951         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71952         * lib/xgetcwd.c: Likewise.
71953         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71954         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71955         * modules/getcwd (Files): Remove lib/getcwd.h.
71956         (Depends-on): Add unistd.
71957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71958         (Include): Use <unistd.h> instad of getcwd.h.
71959
71960         * lib/ftruncate.c: Include <unistd.h> first.
71961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71962         Set HAVE_FTRUNCATE.
71963         * modules/ftruncate (Depends-on): Add unistd.
71964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71965
71966         * lib/fchdir.c: Include <unistd.h> first.
71967         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71969         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71970         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71971         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71972
71973         * lib/dup2.c: Include <unistd.h> first.
71974         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71975         HAVE_DUP2.
71976         * modules/dup2 (Depends-on): Add unistd.
71977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71978
71979         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71980         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71981         REPLACE_CHOWN. Don't define chown as a macro here.
71982         * modules/chown (Depends-on): Add unistd.
71983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71984
71985         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71986         Add definition for GL_LINK_WARNING.
71987         (chown, dup2): New declarations.
71988         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71989         link warning.
71990         (ftruncate): New declaration.
71991         (getcwd): New declaration, taken from old getcwd.h.
71992         (getlogin_r): New declaration, taken from old getlogin_r.h.
71993         (readlink): New declaration.
71994         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71995         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71996         (gl_PREREQ_UNISTD): Remove macro.
71997         (gl_UNISTD_MODULE_INDICATOR): New macro.
71998         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71999         many new variables. Don't set UNISTD_H.
72000         * modules/unistd (Description): Change.
72001         (Depends-on): Add link-warning.
72002         (configure.ac): Update.
72003         (Makefile.am): Create unistd.h always. Substitute many new variables
72004         into it.
72005
72006 2007-02-18  Bruno Haible  <bruno@clisp.org>
72007
72008         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72009         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72010         HAVE_GETSUBOPT.
72011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72012         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72013         * lib/getsubopt.h: Remove file.
72014         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72015         (Depends-on): Add stdlib.
72016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72017         (Includes): Use <stdlib.h> instead of getsubopt.h.
72018         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72019         Set HAVE_GETSUBOPT.
72020         * lib/getsubopt.c: Don't include getsubopt.h.
72021
72022 2007-02-18  Bruno Haible  <bruno@clisp.org>
72023
72024         * modules/fchdir (Depends-on): Add dup2.
72025
72026 2007-02-18  Bruno Haible  <bruno@clisp.org>
72027
72028         * lib/stdlib_.h: Handle glibc's special invocation convention
72029         specially.
72030
72031 2007-02-18  Bruno Haible  <bruno@clisp.org>
72032
72033         * modules/stdlib-tests: New file.
72034         * tests/test-stdlib.c: New file.
72035
72036         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72037         (Depends-on): Add stdlib.
72038         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72039         (Includes): Use <stdlib.h> instead of mkstemp.h.
72040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72041         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72042         * lib/mkstemp.c: Don't include mkstemp.h.
72043         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72044         * lib/stdlib--.h: Don't include mkstemp.h.
72045
72046         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72047         (Depends-on): Add stdlib.
72048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72049         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72050         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72051         HAVE_MKDTEMP.
72052         * lib/mkdtemp.c: Don't include mkdtemp.h.
72053         * lib/clean-temp.c: Don't include mkdtemp.h.
72054
72055         * modules/exit (Files): Remove lib/exit.h.
72056         (Depends-on): Add stdlib.
72057         (Makefile.am): Remove lib_SOURCES.
72058         (Include): Use <stdlib.h> instead of exit.h.
72059         * lib/argmatch.c: Don't include exit.h.
72060         * lib/execute.c: Likewise.
72061         * lib/pagealign_alloc.c: Likewise.
72062         * lib/pipe.c: Likewise.
72063         * lib/wait-process.c: Likewise.
72064         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72065         * lib/exitfail.c: Likewise.
72066         * lib/savewd.c: Likewise.
72067         * lib/xsetenv.c: Likewise.
72068
72069         * modules/stdlib: New file.
72070         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72071         and extra comments about mkstemp().
72072         * lib/exit.h: Remove file.
72073         * lib/mkdtemp.h: Remove file.
72074         * lib/mkstemp.h: Remove file.
72075         * m4/stdlib_h.m4: New file.
72076         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72077
72078 2007-02-18  Bruno Haible  <bruno@clisp.org>
72079
72080         * modules/math-tests: New file.
72081         * tests/test-math.c: New file.
72082
72083         * modules/math: New file.
72084         * modules/mathl (Files): Remove lib/mathl.h.
72085         (Depends-on): Add math.
72086         (Makefile.am): Don't mention mathl.h.
72087         (Include): Use <math.h> instead of mathl.h.
72088         * lib/math_.h: New file.
72089         * lib/mathl.h: Remove file.
72090         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72091         mathl.h.
72092         * lib/asinl.c: Likewise.
72093         * lib/atanl.c: Likewise.
72094         * lib/ceill.c: Likewise.
72095         * lib/cosl.c: Likewise.
72096         * lib/expl.c: Likewise.
72097         * lib/floorl.c: Likewise.
72098         * lib/frexpl.c: Likewise.
72099         * lib/ldexpl.c: Likewise.
72100         * lib/logl.c: Likewise.
72101         * lib/sincosl.c: Likewise.
72102         * lib/sinl.c: Likewise.
72103         * lib/sqrtl.c: Likewise.
72104         * lib/tanl.c: Likewise.
72105         * lib/trigl.c: Likewise.
72106         * m4/math_h.m4: New file.
72107         * MODULES.html.sh (Mathematics): Add math.
72108
72109 2007-02-17  Bruno Haible  <bruno@clisp.org>
72110
72111         * modules/wctype-tests: New file.
72112         * tests/test-wctype.c: New file.
72113
72114         * modules/wchar-tests: New file.
72115         * tests/test-wchar.c: New file.
72116
72117         * modules/unistd-tests: New file.
72118         * tests/test-unistd.c: New file.
72119
72120         * modules/time-tests: New file.
72121         * tests/test-time.c: New file.
72122
72123         * modules/sysexits-tests: New file.
72124         * tests/test-sysexits.c: New file.
72125
72126         * modules/sys_time-tests: New file.
72127         * tests/test-sys_time.c: New file.
72128
72129         * modules/sys_stat-tests: New file.
72130         * tests/test-sys_stat.c: New file.
72131
72132         * modules/sys_socket-tests: New file.
72133         * tests/test-sys_socket.c: New file.
72134
72135         * modules/sys_select-tests: New file.
72136         * tests/test-sys_select.c: New file.
72137
72138         * modules/string-tests: New file.
72139         * tests/test-string.c: New file.
72140
72141         * modules/stdbool-tests: New file.
72142         * tests/test-stdbool.c: New file.
72143
72144         * modules/netinet_in-tests: New file.
72145         * tests/test-netinet_in.c: New file.
72146
72147         * modules/inttypes-tests: New file.
72148         * tests/test-inttypes.c: New file.
72149
72150         * modules/fcntl-tests: New file.
72151         * tests/test-fcntl.c: New file.
72152
72153         * modules/byteswap-tests: New file.
72154         * tests/test-byteswap.c: New file.
72155
72156         * modules/arpa_inet-tests: New file.
72157         * tests/test-arpa_inet.c: New file.
72158
72159 2007-02-17  Bruno Haible  <bruno@clisp.org>
72160
72161         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72162         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72163         if the corresponding module is not enabled. Emit link warnings if
72164         the function is used nevertheless.
72165         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72166         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72167         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72168         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72169         * modules/inttypes (Depends-on): Add link-warning.
72170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72171         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72172         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72173         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72174         * modules/imaxdiv (configure.ac): Likewise.
72175         * modules/strtoimax (configure.ac): Likewise.
72176         * modules/strtoumax (configure.ac): Likewise.
72177
72178 2007-02-17  Bruno Haible  <bruno@clisp.org>
72179
72180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72181         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72182         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72183         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72184
72185 2007-02-17  Bruno Haible  <bruno@clisp.org>
72186
72187         * modules/link-warning: New file.
72188         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72189         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72190         * modules/string (Depends-on): Add link-warning.
72191         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72192         string.h.
72193         * MODULES.html.sh (Support for building libraries and executables): Add
72194         link-warning.
72195
72196 2007-02-17  Bruno Haible  <bruno@clisp.org>
72197
72198         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72199         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72200         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72201         long lines.
72202
72203 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72204             Bruno Haible  <bruno@clisp.org>
72205
72206         * modules/tmpfile: New file.
72207         * lib/tmpfile.c: New file.
72208         * m4/tmpfile.m4: New file.
72209         * MODULES.html.sh (func_all_modules): New section "Input/output".
72210
72211 2007-02-15  Bruno Haible  <bruno@clisp.org>
72212
72213         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72214         (supports_delete_on_close): New function.
72215         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72216
72217 2007-02-14  Bruno Haible  <bruno@clisp.org>
72218
72219         * modules/mbspcasecmp-tests: New file.
72220         * tests/test-mbspcasecmp.sh: New file.
72221         * tests/test-mbspcasecmp.c: New file.
72222
72223         New module mbspcasecmp.
72224         * modules/mbspcasecmp: New file.
72225         * lib/mbspcasecmp.c: New file.
72226         * lib/string_.h (strncasecmp): Change warning message.
72227         (mbspcasecmp): New declaration.
72228         * m4/mbspcasecmp.m4: New file.
72229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72230         GNULIB_MBSPCASECMP.
72231         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72232         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72233
72234 2007-02-14  Bruno Haible  <bruno@clisp.org>
72235
72236         * modules/mbsncasecmp-tests: New file.
72237         * tests/test-mbsncasecmp.sh: New file.
72238         * tests/test-mbsncasecmp.c: New file.
72239
72240         New module mbsncasecmp.
72241         * modules/mbsncasecmp: New file.
72242         * lib/mbsncasecmp.c: New file.
72243         * lib/string_.h (mbsncasecmp): New declaration.
72244         * m4/mbsncasecmp.m4: New file.
72245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72246         GNULIB_MBSNCASECMP.
72247         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72248         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72249
72250 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72253         Verify that it doesn't overlap with our flags.
72254         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72255         do not have the desired effect in multibyte locales; instead, use
72256         mbscasecmp.
72257         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72258         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72259         we don't require GNU fnmatch ourselves (if our users require it, they
72260         should do so explicitly).
72261
72262         Fix regex code so it doesn't rely on strcasecmp.
72263         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72264         Otherwise, include gnulib's langinfo.h.
72265         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72266         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72267         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72268         * modules/regex (FILES): Remove m4/codeset.m4.
72269         (Depends-on): Add localcharset.  Remove strcase.
72270
72271 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72272
72273         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72274         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72275
72276 2007-02-13  Bruno Haible  <bruno@clisp.org>
72277
72278         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72280
72281 2007-02-12  Bruno Haible  <bruno@clisp.org>
72282
72283         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72284         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72285         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72286         time warning rather than a link error.
72287
72288 2007-02-12  Bruno Haible  <bruno@clisp.org>
72289
72290         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72291         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72293
72294 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72295
72296         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72297         args, not 2.
72298
72299 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         New module 'time', so that apps can include <time.h> as per
72302         POSIX and GNU instead of separate include files like time_r.h
72303         and timegm.h.  This implementation tries out a simpler approach
72304         for replacing decls in standard include files (as compared to
72305         the string module), somewhat as an experiment.
72306
72307         * config/srclist.txt: Comment out mktime.c for now.
72308         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72309         since it doesn't apply any more.  Use generic wording instead.
72310         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72311         'time'.
72312         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72313         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72314         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72315         Don't include <sys/types.h>; no longer needed since we assume C89.
72316         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72317         * lib/strftime.c: Likewise.
72318         * lib/time_r.c: Likewise.
72319         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72320         * lib/nanosleep.c: Include <time.h> first, to check interface.
72321         * lib/strptime.c: Likewise.
72322         * lib/time_r.c: Likewise.
72323         * lib/timegm.c: Likewise.
72324         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72325         needed.
72326         * lib/timegm.c: Don't include timegm.h; no longer needed.
72327         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72328         time.h now handles any problems in that area.
72329         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72330         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72331         that time.h defines struct timespec.
72332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72333         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72334         handles that.
72335         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72336         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72337         needed.  Set REPLACE_LOCALTIME.
72338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72339         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72340         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72341         nanosleep; time_h.m4 now does that.  Don't require
72342         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72343         module handles this now.
72344         * modules/getdate (Depends-on): Remove timespec.  Add time.
72345         * modules/nanosleep (Depends-on): Likewise.
72346         * modules/stat-time (Depends-on): Likewise.
72347         * modules/nanosleep (Include): Include time.h, not timespec.h.
72348         * modules/strptime (Files): Remove lib/strptime.h.
72349         (Depends-on): Add extensions, time.
72350         (Include): Include time.h, not strptime.h.
72351         * modules/time_r (Files): Remove lib/time_r.h.
72352         (Depends-on): Add time.
72353         (Include): Include time.h, not time_r.h.
72354         * modules/timegm: Likewise.
72355         * modules/timespec (Description): Now does timespec-related decls
72356         of our own, instead of struct timespec itself.
72357         (Depends-on): Add time; remove extensions.
72358         (Maintainer): Add self.
72359         * modules/utimecmp (Depends-on): Add time; remove timespec.
72360         * modules/utimens (Depends-on): Likewise.
72361         * modules/xnanosleep (Depends-on): Likewise.
72362
72363 2007-02-11  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/c-strstr.c: Include allocsa.h.
72366         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72367         * lib/c-strcasestr.c: Include allocsa.h.
72368         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72369         * lib/strcasestr.c: Include allocsa.h.
72370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72371         * lib/mbsstr.c: Include allocsa.h.
72372         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72373         allocsa/freesa instead of malloc/free.
72374         * lib/mbscasestr.c: Include allocsa.h.
72375         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72376         allocsa/freesa instead of malloc/free.
72377         * modules/c-strstr (Depends-on): Add allocsa.
72378         * modules/c-strcasestr (Depends-on): Likewise.
72379         * modules/strcasestr (Depends-on): Likewise.
72380         * modules/mbsstr (Depends-on): Likewise.
72381         * modules/mbscasestr (Depends-on): Likewise.
72382
72383 2007-02-11  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72386
72387         * modules/mbsspn-tests: New file.
72388         * tests/test-mbsspn.sh: New file.
72389         * tests/test-mbsspn.c: New file.
72390
72391 2007-02-11  Bruno Haible  <bruno@clisp.org>
72392
72393         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72394
72395         * modules/mbspbrk-tests: New file.
72396         * tests/test-mbspbrk.sh: New file.
72397         * tests/test-mbspbrk.c: New file.
72398
72399 2007-02-11  Bruno Haible  <bruno@clisp.org>
72400
72401         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72402         unneeded cast.
72403
72404         * modules/mbscspn-tests: New file.
72405         * tests/test-mbscspn.sh: New file.
72406         * tests/test-mbscspn.c: New file.
72407
72408 2007-02-11  Bruno Haible  <bruno@clisp.org>
72409
72410         * modules/mbscasecmp-tests: New file.
72411         * tests/test-mbscasecmp.sh: New file.
72412         * tests/test-mbscasecmp.c: New file.
72413
72414 2007-02-11  Bruno Haible  <bruno@clisp.org>
72415
72416         Ensure O(n) worst-case complexity of mbscasestr.
72417         * lib/mbscasestr.c: Include stdbool.h.
72418         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72419         functions.
72420         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72421         the bookkeeping indicates that it's worth it.
72422         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72423
72424         * modules/mbscasestr-tests: New file.
72425         * tests/test-mbscasestr1.c: New file.
72426         * tests/test-mbscasestr2.sh: New file.
72427         * tests/test-mbscasestr2.c: New file.
72428         * tests/test-mbscasestr3.sh: New file.
72429         * tests/test-mbscasestr3.c: New file.
72430         * tests/test-mbscasestr4.sh: New file.
72431         * tests/test-mbscasestr4.c: New file.
72432         * m4/locale-tr.m4: New file.
72433
72434 2007-02-11  Bruno Haible  <bruno@clisp.org>
72435
72436         Ensure O(n) worst-case complexity of mbsstr.
72437         * lib/mbsstr.c: Include stdbool.h.
72438         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72439         functions.
72440         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72441         bookkeeping indicates that it's worth it.
72442         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72443
72444         * modules/mbsstr-tests: New file.
72445         * tests/test-mbsstr1.c: New file.
72446         * tests/test-mbsstr2.sh: New file.
72447         * tests/test-mbsstr2.c: New file.
72448         * tests/test-mbsstr3.sh: New file.
72449         * tests/test-mbsstr3.c: New file.
72450         * m4/locale-fr.m4: New file.
72451
72452 2007-02-11  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/mbsrchr.c (mbsrchr): Fix bug.
72455
72456         * modules/mbsrchr-tests: New file.
72457         * tests/test-mbsrchr.sh: New file.
72458         * tests/test-mbsrchr.c: New file.
72459
72460 2007-02-11  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/mbschr.c (mbschr): Fix bug.
72463
72464         * modules/mbschr-tests: New file.
72465         * tests/test-mbschr.sh: New file.
72466         * tests/test-mbschr.c: New file.
72467         * m4/locale-zh.m4: New file.
72468
72469 2007-02-11  Bruno Haible  <bruno@clisp.org>
72470
72471         Support for copying multibyte string iterators.
72472         * lib/mbiter.h: Include <string.h>.
72473         (mbiter_multi_copy): New function.
72474         (mbi_copy): New macro.
72475         * lib/mbuiter.h: Include <string.h>.
72476         (mbuiter_multi_copy): New function.
72477         (mbui_copy): New macro.
72478
72479 2007-02-11  Bruno Haible  <bruno@clisp.org>
72480
72481         New module mbslen.
72482         * modules/mbslen: New file.
72483         * lib/mbslen.c: New file.
72484         * lib/string_.h (mbslen): New declaration.
72485         * m4/mbslen.m4: New file.
72486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72487         GNULIB_MBSLEN.
72488         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72489         * MODULES.html.sh (Internationalization functions): Add mbslen.
72490
72491 2007-02-11  Bruno Haible  <bruno@clisp.org>
72492
72493         Ensure O(n) worst-case complexity of strcasestr substitute.
72494         * lib/strcasestr.c: Include stdbool.h.
72495         (knuth_morris_pratt): New function.
72496         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72497         bookkeeping indicates that it's worth it.
72498         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72499
72500         * modules/strcasestr-tests: New file.
72501         * tests/test-strcasestr.c: New file.
72502
72503 2007-02-11  Bruno Haible  <bruno@clisp.org>
72504
72505         Ensure O(n) worst-case complexity of c_strcasestr.
72506         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72507         (knuth_morris_pratt): New function.
72508         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72509         the bookkeeping indicates that it's worth it.
72510         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72511
72512         * modules/c-strcasestr-tests: New file.
72513         * tests/test-c-strcasestr.c: New file.
72514
72515 2007-02-11  Bruno Haible  <bruno@clisp.org>
72516
72517         Ensure O(n) worst-case complexity of c_strstr.
72518         * lib/c-strstr.c: Include stdbool.h, string.h.
72519         (knuth_morris_pratt): New function.
72520         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72521         bookkeeping indicates that it's worth it.
72522         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72523
72524         * lib/c-strstr.c: Complete rewrite for maintainability.
72525
72526         * modules/c-strstr-tests: New file.
72527         * tests/test-c-strstr.c: New file.
72528
72529 2007-02-11  Bruno Haible  <bruno@clisp.org>
72530
72531         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72532         5.2.1 and earlier, whereby \055 was treated just like the range
72533         delimiter '-'.
72534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72535
72536 2007-02-08  Bruno Haible  <bruno@clisp.org>
72537
72538         * modules/regex (Depends-on): Add stdbool.
72539         Reported by Dalibor Topic <robilad@kaffe.org>.
72540
72541 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72542
72543         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72544         Prefer returning from main to exiting from it.
72545         Remove unnecessary parens after sizeof.
72546
72547 2007-02-05  Bruno Haible  <bruno@clisp.org>
72548
72549         New module mbssep.
72550         * modules/mbssep: New file.
72551         * lib/mbssep.c: New file.
72552         * lib/string_.h (strsep): Add a conditional link warning.
72553         (mbssep): New declaration.
72554         * m4/mbssep.m4: New file.
72555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72556         GNULIB_MBSSEP.
72557         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72558         * MODULES.html.sh (Internationalization functions): Add mbssep.
72559
72560 2007-02-05  Bruno Haible  <bruno@clisp.org>
72561
72562         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72563         Optimize search in case of 1 delimiter.
72564
72565 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72566
72567         * lib/acl.h: Include sys/types.h before sys/acl.h.
72568
72569 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72570
72571         Merge upstream fix for glibc bugzilla #3957:
72572
72573         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72574
72575         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72576         bit for RE_HAT_LISTS_NOT_NEWLINE.
72577         (build_charclass_op): Remove bogus comment.
72578
72579 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72580
72581         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72582
72583 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72584
72585         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72586         * lib/memmem.c [!defined _LIBC]: Include config.h.
72587
72588 2007-02-04  Bruno Haible  <bruno@clisp.org>
72589
72590         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72591         warning message.
72592
72593 2007-02-04  Bruno Haible  <bruno@clisp.org>
72594
72595         New module mbstok_r.
72596         * modules/mbstok_r: New file.
72597         * lib/mbstok_r.c: New file.
72598         * lib/string_.h (strtok_r): Change argument names to match the
72599         comments. Add a conditional link warning.
72600         (mbstok_r): New declaration.
72601         * m4/mbstok_r.m4: New file.
72602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72603         GNULIB_MBSTOK_R.
72604         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72605         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72606
72607 2007-02-04  Bruno Haible  <bruno@clisp.org>
72608
72609         New module mbsspn.
72610         * modules/mbsspn: New file.
72611         * lib/mbsspn.c: New file.
72612         * lib/string_.h (strspn): Add a conditional link warning.
72613         (mbsspn): New declaration.
72614         * m4/mbsspn.m4: New file.
72615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72616         GNULIB_MBSSPN.
72617         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72618         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72619
72620 2007-02-04  Bruno Haible  <bruno@clisp.org>
72621
72622         New module mbspbrk.
72623         * modules/mbspbrk: New file.
72624         * lib/mbspbrk.c: New file.
72625         * lib/string_.h (strpbrk): Add a conditional link warning.
72626         (mbspbrk): New declaration.
72627         * m4/mbspbrk.m4: New file.
72628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72629         GNULIB_MBSPBRK.
72630         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72631         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72632
72633 2007-02-04  Bruno Haible  <bruno@clisp.org>
72634
72635         New module mbscspn.
72636         * modules/mbscspn: New file.
72637         * lib/mbscspn.c: New file.
72638         * lib/string_.h (strcspn): Add a conditional link warning.
72639         (mbscspn): New declaration.
72640         * m4/mbscspn.m4: New file.
72641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72642         GNULIB_MBSCSPN.
72643         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72644         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72645
72646 2007-02-04  Bruno Haible  <bruno@clisp.org>
72647
72648         New module mbscasestr, reduced goal of strcasestr.
72649         * modules/mbscasestr: New file.
72650         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72651         (mbscasestr): Renamed from strcasestr.
72652         * lib/strcasestr.c: Don't include mbuiter.h.
72653         (strcasestr): Remove support for multibyte locales.
72654         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72655         Change the conditional link warning.
72656         (mbscasestr): New declaration.
72657         * m4/mbscasestr.m4: New file.
72658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72659         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72660         REPLACE_STRCASESTR.
72661         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72663         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72665         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72666         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72667         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72668         (Depends-on): Remove mbuiter.
72669         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72670
72671 2007-02-04  Bruno Haible  <bruno@clisp.org>
72672
72673         Simplify handling of strncasecmp.
72674         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72675         the conditional link warning.
72676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72677         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72679         * modules/strcase (configure.ac): Don't invoke
72680         gl_STRING_MODULE_INDICATOR.
72681         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72682
72683 2007-02-04  Bruno Haible  <bruno@clisp.org>
72684
72685         New module mbscasecmp, reduced goal of strcasecmp.
72686         * modules/mbscasecmp: New file.
72687         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72688         (mbscasecmp): Renamed from strcasecmp.
72689         * lib/strcasecmp.c: Don't include mbuiter.h.
72690         (strcasecmp): Remove support for multibyte locales.
72691         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72692         Change the conditional link warning.
72693         (mbscasecmp): New declaration.
72694         * m4/mbscasecmp.m4: New file.
72695         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72696         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72697         REPLACE_STRCASECMP.
72698         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72700         GNULIB_MBSCASECMP.
72701         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72702         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72703         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72704         (Depends-on): Remove mbuiter.
72705         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72706
72707 2007-02-04  Bruno Haible  <bruno@clisp.org>
72708
72709         New module mbsstr. Remove module strstr.
72710         * modules/mbsstr: New file.
72711         * modules/strstr: Remove file.
72712         * lib/mbsstr.c: Renamed from lib/strstr.c.
72713         (mbsstr): Renamed from strstr.
72714         * lib/string_.h (strstr): Remove declaration. Change the conditional
72715         link warning.
72716         (mbsstr): New declaration.
72717         * m4/mbsstr.m4: New file.
72718         * m4/strstr.m4: Remove file.
72719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72720         REPLACE_STRSTR.
72721         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72722         Don't initialize GNULIB_STRSTR.
72723         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72724         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72725         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72726         (Support for systems lacking ANSI C 89): Remove strstr.
72727
72728 2007-02-04  Bruno Haible  <bruno@clisp.org>
72729
72730         New module mbsrchr.
72731         * modules/mbsrchr: New file.
72732         * lib/mbsrchr.c: New file.
72733         * lib/string_.h (strrchr): Add a conditional link warning.
72734         (mbsrchr): New declaration.
72735         * m4/mbsrchr.m4: New file.
72736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72737         GNULIB_MBSRCHR.
72738         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72739         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72740
72741 2007-02-04  Bruno Haible  <bruno@clisp.org>
72742
72743         New module mbschr.
72744         * modules/mbschr: New file.
72745         * lib/mbschr.c: New file.
72746         * lib/string_.h (strchr): Add a conditional link warning.
72747         (mbschr): New declaration.
72748         * m4/mbschr.m4: New file.
72749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72750         GNULIB_MBSCHR.
72751         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72752         * MODULES.html.sh (Internationalization functions): Add mbschr.
72753
72754 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72757
72758         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72759
72760 2007-02-04  Bruno Haible  <bruno@clisp.org>
72761
72762         New module description section 'configure.ac-early'.
72763         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72764         (func_get_autoconf_early_snippet): New function.
72765         (func_import, func_create_testdir): Use it. Remove special cases for
72766         modules 'extensions' and 'lock'.
72767         * modules/extensions (configure.ac-early): Require
72768         gl_USE_SYSTEM_EXTENSIONS.
72769         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72770
72771 2007-02-04  Bruno Haible  <bruno@clisp.org>
72772
72773         Make use of gcj-4.3's -fsource and -ftarget option.
72774         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72775         and if so try the options -fsource and -ftarget.
72776         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72777         source_version, ftarget_option, target_version arguments.
72778         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72779         (is_envjavac_oldgcj_14_14_usable): Renamed from
72780         is_envjavac_gcj_14_14_usable.
72781         (is_envjavac_oldgcj_14_13_usable): Renamed from
72782         is_envjavac_gcj_14_13_usable.
72783         (is_gcj_present): Update.
72784         (is_gcj_43, is_gcj43_usable): New functions.
72785         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72786         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72787         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72788         try the options -fsource and -ftarget.
72789
72790 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72791
72792         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72793         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72794         larger value.
72795
72796 2007-02-03  Jim Meyering  <jim@meyering.net>
72797
72798         Give tools a better chance to allocate space for very large buffers.
72799         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72800
72801         Make pwd and readlink work also when run with an unreadable parent dir
72802         on systems with openat support.
72803         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72804         provided getcwd function, even when we have openat support.
72805         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72806
72807 2007-02-02  Bruno Haible  <bruno@clisp.org>
72808
72809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72810         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72811         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72812         portability problems if one of these functions is only used on specific
72813         platforms.
72814         Reported by Paul Eggert.
72815
72816 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72819         is causing more trouble than it's curing.
72820         * lib/regex_internal.h (__mempcpy): Remove.
72821         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72822         (and make the code a tad smaller to boot).
72823         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72824
72825 2007-02-02  Jim Meyering  <jim@meyering.net>
72826
72827         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72828         section, not in the Makefile.am: one.
72829
72830 2007-02-02  Eric Blake  <ebb9@byu.net>
72831
72832         * lib/strchrnul.c: Always include config.h first.
72833
72834         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72835         gnulib strstr is not necessary here.
72836
72837 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72838
72839         * m4/socklen.m4: Fix typo.
72840
72841 2007-02-02  Eric Blake  <ebb9@byu.net>
72842
72843         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72844         * modules/netinet_in (Makefile.am): Likewise.
72845
72846 2007-02-01  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/string_.h (GL_LINK_WARNING): New macro.
72849         (strcasecmp, strstr, strcasestr): If provided by the system,
72850         conditionally define as a macro that leads to a warning instead of to
72851         an error.
72852         (strncasecmp): Conditionally define as a macro that leads to a warning.
72853
72854 2007-02-01  Karl Berry  <karl@gnu.org>
72855
72856         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72857
72858 2007-02-01  Bruno Haible  <bruno@clisp.org>
72859
72860         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72861         renamings.
72862
72863 2007-02-01  Eric Blake  <ebb9@byu.net>
72864
72865         * modules/regex (Depends-on): Revert dependence on mempcpy.
72866         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72867         module's definition of mempcpy.
72868         Reported by Paul Eggert.
72869
72870 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72873         the symbol XYZ before redefining it.  This fixes a problem with
72874         programs that don't use XYZ, when compiled on systems that define
72875         XYZ to something else.
72876
72877 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72880         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72881         writeable to group or other and (2) is intended to have a special
72882         mode bit that is set or cleared.  In such a case, the directory
72883         should be neither group- nor other-writeable until the special
72884         mode bits are right.
72885
72886 2007-01-31  Eric Blake  <ebb9@byu.net>
72887
72888         * modules/mountlist (Depends-on): Add strstr.
72889
72890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72891         bug.
72892         * modules/string (Makefile.am): Remove redundant replacement.
72893         * modules/regex (Depends-on): Add mempcpy.
72894
72895 2007-01-31  Bruno Haible  <bruno@clisp.org>
72896
72897         New module description field 'Link'.
72898         * gnulib-tool (func_usage): Document --extract-link-directive.
72899         (sed_extract_prog): Recognize 'Link' directive.
72900         (func_get_link_directive): New function.
72901         (func_import): Show summary of link directives.
72902         Handle --extract-link-directive option.
72903         * modules/acl (Link): New section.
72904         * modules/clock-time (Link): New section.
72905         * modules/euidaccess (Link): New section.
72906         * modules/gettext (Link): New section.
72907         * modules/iconv (Link): New section.
72908         * modules/lock (Link): New section.
72909         * modules/nanosleep (Link): New section.
72910         * modules/readline (Link): New section.
72911
72912 2007-01-27  Bruno Haible  <bruno@clisp.org>
72913
72914         Enforce the use of gnulib modules for unportable <string.h> functions.
72915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72916         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72917         (gl_HEADER_STRING_H_BODY): Require it.
72918         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72919         the symbol XYZ to one that gives a link error.
72920         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72921         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72922         * modules/mempcpy (configure.ac): Likewise.
72923         * modules/memrchr (configure.ac): Likewise.
72924         * modules/stpcpy (configure.ac): Likewise.
72925         * modules/stpncpy (configure.ac): Likewise.
72926         * modules/strcase (configure.ac): Likewise.
72927         * modules/strcasestr (configure.ac): Likewise.
72928         * modules/strchrnul (configure.ac): Likewise.
72929         * modules/strdup (configure.ac): Likewise.
72930         * modules/strndup (configure.ac): Likewise.
72931         * modules/strnlen (configure.ac): Likewise.
72932         * modules/strpbrk (configure.ac): Likewise.
72933         * modules/strsep (configure.ac): Likewise.
72934         * modules/strstr (configure.ac): Likewise.
72935         * modules/strtok_r (configure.ac): Likewise.
72936
72937 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72938
72939         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72940
72941 2007-01-30  Jim Meyering  <jim@meyering.net>
72942
72943         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72944
72945 2007-01-29  Bruno Haible  <bruno@clisp.org>
72946
72947         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72948         * lib/execute.c: Likewise.
72949         * lib/pipe.c: Likewise.
72950         * lib/printf-args.h: Likewise.
72951         * lib/printf-args.c: Likewise.
72952         * lib/printf-parse.c: Likewise.
72953         * lib/vasnprintf.c: Likewise.
72954
72955 2007-01-29  Eric Blake  <ebb9@byu.net>
72956
72957         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72958         declaration.
72959
72960 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * lib/strptime.h (strptime): Use 'restrict' for args where
72963         POSIX requires this.
72964         * lib/strptime.c (strptime): Likewise.
72965         Change license notice from LGPL to GPL, since gnulib-tool will
72966         change this as needed.
72967         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72968         defined.
72969         Include "strptime.h" first, to check interface.
72970         Do not #undef _LIBC and _NL_CURRENT.
72971         Do not include <stdlib.h>; no longer needed.
72972         Include "time_r.h" and declare ptime_locale_status
72973         only if _LIBC is not defined.
72974         (__P): Remove unused macro.
72975         (match_string): Bring back glibc version, but use it only if _LIBC
72976         is defined.
72977         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72978         Remove unnecessary assertion and abort() call.
72979         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72980         * m4/strptime.m4: Fix serial number comment.
72981         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72982         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72983         (Depends-on): Add time_r.
72984
72985 2007-01-29  Bruno Haible  <bruno@clisp.org>
72986
72987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72988         strptime.
72989         * modules/strptime (Depends-on): Add stdbool.
72990         * lib/strptime.h: Include <time.h> always. Add comments.
72991
72992 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72993
72994         * modules/strptime: New file.
72995         * lib/strptime.h: New file.
72996         * lib/strptime.c: New file.
72997         * m4/strptime.m4: New file.
72998
72999 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         * MODULES.html.sh: New module mpsort.
73002         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73003
73004         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73005         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73007         All uses changed.
73008         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73009         All uses changed.
73010         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73011         to _Restrict_.
73012         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73013         the parameter matches the prototype.
73014
73015 2007-01-28  Jim Meyering  <jim@meyering.net>
73016
73017         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73018         sys/time.h here, reverting that part of the previous patch:
73019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73020
73021 2007-01-28  Bruno Haible  <bruno@clisp.org>
73022
73023         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73024         value of $(SYS_TIME_H).
73025         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73026         remove it conditionally, too. [added by Jim Meyering]
73027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73030         GETTIMEOFDAY_REPLACEMENT to 1.
73031
73032 2007-01-28  Bruno Haible  <bruno@clisp.org>
73033
73034         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73035         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73037         Set UNISTD_H instead of UNISTD_H2.
73038         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73039
73040 2007-01-28  Bruno Haible  <bruno@clisp.org>
73041
73042         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73043         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73044
73045 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73046
73047         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73048         (func_create_testdir): Ensure C locale for `grep' and `tr'
73049         character ranges.
73050         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73051         ACLOCAL_AMFLAGS parsing state machine.
73052
73053 2007-01-27  Bruno Haible  <bruno@clisp.org>
73054
73055         * modules/unistr/base: Update.
73056
73057 2007-01-27  Bruno Haible  <bruno@clisp.org>
73058
73059         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73060         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73061         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73062         modules/unistr/u32-mbtouc.
73063         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73064         * lib/unistr.h: Update.
73065         * lib/linebreak.c: Update.
73066         * modules/unistr/u32-mbtouc: Renamed from
73067         modules/unistr/u32-mbtouc-safe.
73068         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73069         * lib/unistr.h: Update.
73070         * lib/unistr/u32-to-u8.c: Update.
73071         * lib/unistr/u32-to-u16.c: Update.
73072
73073 2007-01-27  Bruno Haible  <bruno@clisp.org>
73074
73075         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73076         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73077         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73078         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73079         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73080         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73081         modules/unistr/u16-mbtouc.
73082         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73083         * lib/unistr.h: Update.
73084         * lib/linebreak.c: Update.
73085         * modules/linebreak: Update.
73086         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73087         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73088         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73089         * modules/unistr/u16-mbtouc: Renamed from
73090         modules/unistr/u16-mbtouc-safe.
73091         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73092         * lib/unistr.h: Update.
73093         * lib/unistr/u16-to-u8.c: Update.
73094         * modules/unistr/u16-to-u8: Update.
73095         * lib/unistr/u16-to-u32.c: Update.
73096         * modules/unistr/u16-to-u32: Update.
73097
73098 2007-01-27  Bruno Haible  <bruno@clisp.org>
73099
73100         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73101         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73102         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73103         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73104         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73105         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73106         modules/unistr/u8-mbtouc.
73107         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73108         * lib/unistr.h: Update.
73109         * lib/striconveh.c: Update.
73110         * modules/striconveh: Update.
73111         * lib/linebreak.c: Update.
73112         * modules/linebreak: Update.
73113         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73114         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73115         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73116         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73117         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73118         * lib/unistr.h: Update.
73119         * lib/striconveh.c: Update.
73120         * modules/striconveh: Update.
73121         * lib/unistr/u8-to-u16.c: Update.
73122         * modules/unistr/u8-to-u16: Update.
73123         * lib/unistr/u8-to-u32.c: Update.
73124         * modules/unistr/u8-to-u32: Update.
73125
73126 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73127
73128         Sync from Libtool.
73129         * lib/argz.c: Do not include strings.h nor memory.h, include
73130         string.h unconditionally.  Patch by Simon Josefsson.
73131
73132 2007-01-27  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73135         from gl_HEADER_STRING_H_BODY.
73136         (gl_HEADER_STRING_H_BODY): Require it.
73137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73138         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73139         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73142         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73145         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73148         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73149         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73150         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73152
73153 2007-01-27  Bruno Haible  <bruno@clisp.org>
73154
73155         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73156         check_PROGRAMS into noinst_PROGRAMS.
73157         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73158         check_PROGRAMS in this case.
73159         (func_import): Set for_test to false.
73160         (func_create_testdir): Set for_test to true.
73161
73162 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73163             Bruno Haible  <bruno@clisp.org>
73164
73165         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73166         (Depends-on): Add string.
73167         (Includes): Use <string.h> instead of strcasestr.h.
73168         * modules/string (Makefile.am): Also substitute the value of
73169         REPLACE_STRCASESTR.
73170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73171         assume strcasestr is declared in <string.h> not <strings.h>. Also
73172         set REPLACE_STRCASESTR.
73173         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73174         REPLACE_STRCASESTR.
73175         * lib/strcasestr.h: Remove file.
73176         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73177         * lib/string_.h (strcasestr): New declaration.
73178
73179 2007-01-27  Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/string_.h: Use 'extern'.
73182
73183 2007-01-27  Jim Meyering  <jim@meyering.net>
73184
73185         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73186         of set-but-not-used local, "q".
73187
73188         * lib/mempcpy.c: Include <config.h> before <string.h>.
73189         This fixes a compilation error on HP-UX, due to the system's
73190         "restrict"-using mempcpy prototype.
73191
73192 2007-01-26  Bruno Haible  <bruno@clisp.org>
73193
73194         Small optimization.
73195         * lib/javacomp.c: Include c-strstr.h.
73196          (is_envjavac_gcj): Use c_strstr instead of strstr.
73197         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73198
73199 2007-01-26  Bruno Haible  <bruno@clisp.org>
73200
73201         * MODULES.html.sh (Unicode string functions): Add the new modules.
73202
73203         * modules/uniconv/u32-strconv-to-locale: New file.
73204         * lib/uniconv/u32-strconv-to-locale.c: New file.
73205
73206         * modules/uniconv/u16-strconv-to-locale: New file.
73207         * lib/uniconv/u16-strconv-to-locale.c: New file.
73208
73209         * modules/uniconv/u8-strconv-to-locale: New file.
73210         * lib/uniconv/u8-strconv-to-locale.c: New file.
73211
73212         * modules/uniconv/u32-strconv-from-locale: New file.
73213         * lib/uniconv/u32-strconv-from-locale.c: New file.
73214
73215         * modules/uniconv/u16-strconv-from-locale: New file.
73216         * lib/uniconv/u16-strconv-from-locale.c: New file.
73217
73218         * modules/uniconv/u8-strconv-from-locale: New file.
73219         * lib/uniconv/u8-strconv-from-locale.c: New file.
73220
73221         * modules/uniconv/u32-strconv-to-enc: New file.
73222         * lib/uniconv/u32-strconv-to-enc.c: New file.
73223         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73224         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73225
73226         * modules/uniconv/u16-strconv-to-enc: New file.
73227         * lib/uniconv/u16-strconv-to-enc.c: New file.
73228         * lib/uniconv/u-strconv-to-enc.h: New file.
73229         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73230         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73231
73232         * modules/uniconv/u8-strconv-to-enc: New file.
73233         * lib/uniconv/u8-strconv-to-enc.c: New file.
73234         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73235         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73236
73237         * modules/uniconv/u32-strconv-from-enc: New file.
73238         * lib/uniconv/u32-strconv-from-enc.c: New file.
73239         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73240         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73241
73242         * modules/uniconv/u16-strconv-from-enc: New file.
73243         * lib/uniconv/u16-strconv-from-enc.c: New file.
73244         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73245         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73246
73247         * modules/uniconv/u8-strconv-from-enc: New file.
73248         * lib/uniconv/u8-strconv-from-enc.c: New file.
73249         * lib/uniconv/u-strconv-from-enc.h: New file.
73250         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73251         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73252
73253         * modules/uniconv/u32-conv-from-enc: New file.
73254         * lib/uniconv/u32-conv-from-enc.c: New file.
73255         * modules/uniconv/u32-conv-from-enc-tests: New file.
73256         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73257
73258         * modules/uniconv/u16-conv-from-enc: New file.
73259         * lib/uniconv/u16-conv-from-enc.c: New file.
73260         * lib/uniconv/u-conv-from-enc.h: New file.
73261         * modules/uniconv/u16-conv-from-enc-tests: New file.
73262         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73263
73264         * modules/uniconv/u8-conv-from-enc: New file.
73265         * lib/uniconv/u8-conv-from-enc.c: New file.
73266         * modules/uniconv/u8-conv-from-enc-tests: New file.
73267         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73268
73269         * modules/uniconv/base: New file.
73270         * lib/uniconv.h: New file.
73271
73272 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * doc/gnulib-tool.texi (Initial import): Update to match current
73275         behavior with strdup module.
73276         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73277         * lib/memmem.h: Remove; all uses removed.  This is now done
73278         by <string.h>.
73279         * lib/mempcpy.h: Likewise.
73280         * lib/memrchr.h: Likewise.
73281         * lib/stpcpy.h: Likewise.
73282         * lib/stpncpy.h: Likewise.
73283         * lib/strcase.h: Likewise.
73284         * lib/strchrnul.h: Likewise.
73285         * lib/strdup.h: Likewise.
73286         * lib/strndup.h: Likewise.
73287         * lib/strnlen.h: Likewise.
73288         * lib/strpbrk.h: Likewise.
73289         * lib/strsep.h: Likewise.
73290         * lib/strstr.h: Likewise.
73291         * lib/strtok_r.h: Likewise.
73292         * lib/string_.h: New file.
73293         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73294         Rely on <string.h> instead.
73295         * lib/canon-host.c: Likewise.
73296         * lib/chdir-long.c: Likewise.
73297         * lib/concatpath.c: Likewise.
73298         * lib/exclude.c: Likewise.
73299         * lib/fchdir.c: Likewise.
73300         * lib/getaddrinfo.c: Likewise.
73301         * lib/getcwd.c: Likewise.
73302         * lib/getsubopt.c: Likewise.
73303         * lib/glob.c: Likewise.
73304         * lib/hard-locale.c: Likewise.
73305         * lib/iconvme.c: Likewise.
73306         * lib/javacomp.c: Likewise.
73307         * lib/mempcpy.c: Likewise.
73308         * lib/memrchr.c: Likewise.
73309         * lib/regex_internal.h: Likewise.
73310         * lib/stpncpy.c: Likewise.
73311         * lib/strcasecmp.c: Likewise.
73312         * lib/strchrnul.c: Likewise.
73313         * lib/strdup.c: Likewise.
73314         * lib/striconv.c: Likewise.
73315         * lib/striconveh.c: Likewise.
73316         * lib/striconveha.c: Likewise.
73317         * lib/strncasecmp.c: Likewise.
73318         * lib/strndup.c: Likewise.
73319         * lib/strnlen.c: Likewise.
73320         * lib/strsep.c: Likewise.
73321         * lib/strstr.c: Likewise.
73322         * lib/strtok_r.c: Likewise.
73323         * lib/userspec.c: Likewise.
73324         * lib/w32spawn.h: Likewise.
73325         * lib/xstrndup.c: Likewise.
73326         * lib/mountlist.c (strstr): Remove decl.
73327         * m4/string_h.m4: New file.
73328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73329         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73330         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73331         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73332         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73333         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73334         Set REPLACE_STRCASECMP if necessary.
73335         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73337         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73339         HAVE_DECL_STRDUP if necessary.
73340         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73341         since gl_FUNC_STRNDUP does that now.
73342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73343         Check for decl here...
73344         (gl_PREREQ_STRNLEN): ... not here.
73345         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73346         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73347         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73349         necessary.
73350         * modules/string: New file.
73351         * modules/memmem (Files): Remove special-purpose include file.
73352         (Depends-on): Add string.
73353         (Include): Include <string.h>, not the removed file.
73354         * modules/mempcpy: Likewise.
73355         * modules/memrchr: Likewise.
73356         * modules/stpcpy: Likewise.
73357         * modules/stpncpy: Likewise.
73358         * modules/strcase: Likewise.
73359         * modules/strchrnul: Likewise.
73360         * modules/strdup: Likewise.
73361         * modules/strndup: Likewise.
73362         * modules/strnlen: Likewise.
73363         * modules/strpbrk: Likewise.
73364         * modules/strsep: Likewise.
73365         * modules/strstr: Likewise.
73366         * modules/strtok_r: Likewise.
73367         * tests/test-dirname.c: Don't include "strdup.h", since
73368         <string.h> now suffices.
73369         * tests/test-memmem.c: Don't include "memmem.h", since
73370         <string.h> now suffices.
73371
73372 2007-01-25  Bruno Haible  <bruno@clisp.org>
73373
73374         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73375         *resultp is 0.
73376
73377         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73378         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73379         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73380         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73381
73382         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73383         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73384         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73385         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73386         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73387         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73388
73389 2007-01-24  Bruno Haible  <bruno@clisp.org>
73390
73391         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73393         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73394         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73395         gl_FUNC_FTS_CORE.
73396         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73397         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73399         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73400         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73401         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73402         gl_FUNC_FCHOWNAT.
73403         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73404         gl_FUNC_STRFTIME.
73405         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73406         Reported by Ralf Wildenhues.
73407
73408 2007-01-24  Bruno Haible  <bruno@clisp.org>
73409
73410         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73411         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73412         gl_GETADDRINFO.
73413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73414         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73415         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73416
73417 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73420         Don't use 'exit'; just return from 'main'.
73421         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73422
73423         * lib/fnmatch_.h: Readjust white space and comments to match
73424         glibc, to avoid spurious diffs.
73425
73426 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73427
73428         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73429         2004-12-01 change by Jakub Jelinek, since this code won't compile
73430         if !LIBC.  Problem reported by Bob Proulx.
73431
73432 2007-01-23  Bruno Haible  <bruno@clisp.org>
73433
73434         * lib/striconveh.c: Include c-strcaseeq.h.
73435         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73436         * modules/striconveh (Depends-on): Add c-strcaseeq.
73437
73438 2007-01-23  Bruno Haible  <bruno@clisp.org>
73439
73440         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73441
73442         * modules/c-strcaseeq: New file.
73443         * lib/c-strcaseeq.h: New file.
73444
73445         * modules/streq: New file.
73446         * lib/streq.h: New file.
73447
73448 2007-01-23  Bruno Haible  <bruno@clisp.org>
73449
73450         * modules/striconveha-tests: New file.
73451         * tests/test-striconveha.c: New file.
73452
73453         * lib/striconveha.h: Include <stdbool.h>.
73454         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73455         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73456         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73457         (mem_iconveha): New function.
73458         (str_iconveha_notranslit): Renamed from str_iconveha.
73459         (str_iconveha): New function.
73460         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73461         c-strcase.
73462
73463 2007-01-23  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73466         encodings without forgiving before trying any encoding with handler.
73467         (str_iconveha): Try all encodings without forgiving before trying any
73468         encoding with handler.
73469
73470 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73471
73472         Import the following changes from libc.
73473
73474         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73475
73476         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73477
73478         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73479
73480         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73481         normal_bracket label.
73482
73483         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73484
73485         [BZ #361]
73486         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73487         to normal_bracket after fetching the next character.
73488
73489 2007-01-22  Bruno Haible  <bruno@clisp.org>
73490
73491         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73492         argument.
73493         * lib/striconveh.c (iconv_carefully_1): New function.
73494         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73495         argument.
73496         (str_cd_iconveh): Update.
73497         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73498         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73499         * tests/test-striconveh.c (MAGIC): New macro.
73500         (new_offsets): New function.
73501         (main): Test call with and without offsets.
73502
73503 2007-01-22  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73506         * modules/sys_select (Makefile.am): Likewise.
73507         * modules/sys_socket (Makefile.am): Likewise.
73508         * modules/sys_time (Makefile.am): Likewise.
73509
73510 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73511
73512         * modules/gettimeofday (License): Change from GPL to LGPL, since
73513         gettimeofday is a library function.
73514
73515 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73516
73517         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73518
73519 2007-01-21  Bruno Haible  <bruno@clisp.org>
73520
73521         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73522
73523 2007-01-21  Bruno Haible  <bruno@clisp.org>
73524
73525         * modules/striconveha: New file.
73526         * lib/striconveha.h: New file.
73527         * lib/striconveha.c: New file.
73528         * MODULES.html.sh (Internationalization functions): Add striconveha.
73529         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73530         string.
73531         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73532
73533 2007-01-21  Bruno Haible  <bruno@clisp.org>
73534
73535         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73536         * lib/striconveh.c (str_iconveh): Likewise.
73537
73538 2007-01-21  Bruno Haible  <bruno@clisp.org>
73539
73540         * lib/striconveh.h (mem_iconveh): New declaration.
73541         * lib/striconveh.c (mem_iconveh): New function.
73542         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73543
73544 2007-01-21  Bruno Haible  <bruno@clisp.org>
73545
73546         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73547
73548         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73549         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73550         original result buffer.
73551         (str_cd_iconveh): Update.
73552         * tests/test-striconveh.c (main): Update.
73553
73554         * lib/striconv.h (mem_cd_iconv): Change specification.
73555         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73556         result buffer.
73557         (str_cd_iconv): Update.
73558         * tests/test-striconv.c (main): Update.
73559
73560 2007-01-21  Bruno Haible  <bruno@clisp.org>
73561
73562         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73563
73564 2007-01-20  Jim Meyering  <jim@meyering.net>
73565
73566         * lib/userspec.c (parse_with_separator): If a user or group string
73567         starts with "+", skip the corresponding name-to-ID look-up, since
73568         such a look-up must fail: user and group names may not include "+".
73569
73570 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73573         since we now assume the sys_time module.
73574         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73575         check for sys/time.h; no longer needed.
73576         * modules/poll (Depends-on): Depend on sys_time.
73577
73578 2007-01-18  Bruno Haible  <bruno@clisp.org>
73579
73580         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73582
73583         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73584         gettimeofday.
73585
73586         * tests/test-gettimeofday.c: Include <time.h>.
73587         (dummy): Remove variable.
73588
73589         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73590         gl_HEADER_SYS_TIME_H.
73591         (gl_HEADER_SYS_TIME_H): New macro.
73592
73593         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73594         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73596         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73597         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73599         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73600         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73601         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73602         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73603         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73604
73605         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73606         last change; it caused a compilation error when cross-compiling to
73607         Cygwin.
73608
73609 2007-01-18  Jim Meyering  <jim@meyering.net>
73610
73611         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73612         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73613         than the race-prone "test -d sys || mkdir sys".
73614         (configure.ac): Use AC_PROG_MKDIR_P.
73615         * modules/sys_select: Likewise.
73616         * modules/sys_socket: Likewise.
73617         * modules/sys_time: Likewise.
73618
73619 2007-01-18  Eric Blake  <ebb9@byu.net>
73620
73621         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73622         replace gettimeofday.
73623         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73624         name, to avoid infinite recursion.
73625
73626 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73629         module sys_time.
73630         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73631         assume timespec.h defines struct timeval.
73632         * lib/settime.c: Likewise.
73633         * lib/utimens.c: Likewise.
73634         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73635         since we now assume the gettimeofday module.
73636         * lib/tempname.c (__gen_tempname): Likewise.
73637         * lib/gettimeofday.h: Remove.
73638         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73639         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73640         Include <time.h>, for 'time()'.
73641         (localtime_buffer_addr): Also use this workaround if
73642         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73643         to simplify the uses.  All uses changed.
73644         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73645         that #undef is inside {}, and 'const' follows type name consistently.
73646         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73647         (gettimeofday): Do not use the maximum possible value for
73648         tv->tv_usec, since that might break usages other than ls.c.
73649         Instead, we'll leave ls.c alone.  This undoes today's patch
73650         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73651         we've never observed the problem but might as well keep the
73652         canary.
73653         * lib/nanosleep.c: Include timespec.h first, for interface check.
73654         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73655         now assume the sys_time module.
73656         * lib/tempname.c: Likewise.
73657         * lib/timespec.h: Likewise.
73658         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73659         needed.
73660         * lib/strftime.c: Likewise.
73661         * lib/timespec.h: Likewise.
73662         * lib/posixtm.c: Include posixtm.h first, for interface check.
73663         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73664         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73665         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73666         * lib/sys_time_.h: New file.
73667         * lib/timespec.h (struct timespec): Use long int, not long.
73668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73669         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73670         Remove obsolescent call to AC_HEADER_TIME.
73671         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73674         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73675         Likewise.
73676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73677         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73679         into the sys_time module.  Check for gettimeofday just once.
73680         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73681         for gettimeofday signature to just check the signature.  Merely
73682         compile it, since linking doesn't test signature.  Improve test for
73683         whether gettimeofday.o is actually needed.
73684         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73685         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73686         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73687         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73688         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73689         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73690         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73691         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73692         than worrying about sys/time.h.
73693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73694         Don't bother worrying about TIME_WITH_SYS_TIME.
73695         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73696         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73697         * m4/sys_time_h.m4: New file.
73698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73699         Don't include sys/time.h.  Return from main rather than exiting.
73700         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73701         all uses changed.
73702         * modules/gethrxtime (Depends-on): Add sys_time.
73703         * modules/gettime (Depends-on): Likewise.
73704         * modules/gettimeofday (Depends-on): Likewise.
73705         * modules/nanosleep (Depends-on): Likewise.
73706         * modules/settime (Depends-on): Likewise.
73707         * modules/tempname (Depends-on): Likewise.
73708         * modules/utimens (Depends-on): Likewise.
73709         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73710         (Include): Change back to <sys/time.h>.
73711         (Maintainer): Add self.
73712         * modules/sys_time: New file.
73713         * modules/tempname (Depends-on): Add gettimeofday.
73714         * tests/test-gettimeofday.c: Include <sys/time.h>
73715         rather than gettimeofday.h.
73716
73717 2007-01-17  Bruno Haible  <bruno@clisp.org>
73718
73719         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73720         the license default to GPL.
73721         (func_create_testdir): Don't complain if a module is LGPL and its
73722         tests module depends on GPLed modules.
73723
73724 2007-01-17  Bruno Haible  <bruno@clisp.org>
73725
73726         * lib/gettimeofday.c (gettimeofday): Add code for the case
73727         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73728         maximum possible value for tv->tv_usec, rather than the minimum one.
73729
73730 2005-10-08  Martin Lambers  <marlam@marlam.de>
73731 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73732 2007-01-16  Bruno Haible  <bruno@clisp.org>
73733
73734         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73735         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73736         gl_FUNC_GETTIMEOFDAY.
73737         (Include): Add gettimeofday.h.
73738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73739         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73740         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73741         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73742         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73743         * lib/gettimeofday.h: New file.
73744         * lib/gettimeofday.c: Include <sys/timeb.h>.
73745         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73746         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73747         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73748         fall back on time().
73749
73750         * tests/test-gettimeofday.c: New file.
73751         * modules/gettimeofday-tests: New file.
73752
73753 2007-01-16  Eric Blake  <ebb9@byu.net>
73754
73755         * modules/fnmatch (Depends-on): Depend on wchar.
73756         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73757         * m4/fnmatch.m4: Likewise.
73758         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73759         * m4/mbchar.m4: Likewise.
73760         * modules/mbswidth (Depends-on): Depend on wchar.
73761         * lib/mbswidth.c: Assume <wchar.h>.
73762         * m4/mbswidth.m4: Likewise.
73763         * modules/quotearg (Depends-on): Depend on wchar.
73764         * lib/quotearg.c: Assume <wchar.h>.
73765         * m4/quotearg.m4: Likewise.
73766         * modules/regex (Depends-on): Depend on wchar.
73767         * lib/regex_internal.h: Assume <wchar.h>.
73768         * m4/regex.m4: Likewise.
73769         * modules/stdint (Depends-on): Depend on wchar.
73770         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73771         * m4/stdint.m4: Likewise.
73772         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73773         * modules/strftime (Depends-on): Depend on wchar.
73774         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73775         * modules/strtol (Depends-on): Depend on wchar.
73776         * lib/strtol.c: Assume <wchar.h>.
73777         * modules/wcwidth (Depends-on): Depend on wchar.
73778         * lib/wcwidth.h: Assume <wchar.h>.
73779         * m4/wcwidth.m4: Likewise.
73780
73781 2007-01-16  Bruno Haible  <bruno@clisp.org>
73782
73783         * modules/csharpexec-script: New, created from...
73784         * modules/csharpexec: ... this.
73785
73786 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73787
73788         * modules/javaexec-script: New, created from...
73789         * modules/javaexec: ... this.
73790
73791 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73792
73793         * modules/poll (Dependencies): Add sys_select.
73794
73795 2007-01-15  Jim Meyering  <jim@meyering.net>
73796
73797         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73798         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73799         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73800         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73801
73802 2007-01-15  Bruno Haible  <bruno@clisp.org>
73803
73804         * modules/striconveh: New file.
73805         * lib/striconveh.h: New file.
73806         * lib/striconveh.c: New file.
73807         * MODULES.html.sh (Internationalization functions): Add striconveh.
73808
73809         * modules/striconveh-tests: New file.
73810         * tests/test-striconveh.c: New file.
73811
73812 2007-01-15  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73815         not from GNU libiconv or GNU libc.
73816
73817 2007-01-15  Bruno Haible  <bruno@clisp.org>
73818
73819         * doc/gnulib-intro.texi (Copyright): Explain the different license
73820         terms for module descriptions, autoconf macros, tests, documentation.
73821
73822 2007-01-14  Bruno Haible  <bruno@clisp.org>
73823
73824         * modules/striconv-tests: New file.
73825         * tests/test-striconv.c: New file.
73826
73827 2007-01-14  Bruno Haible  <bruno@clisp.org>
73828
73829         * modules/iconv-tests: New file.
73830         * tests/test-iconv.c: New file.
73831
73832 2007-01-14  Bruno Haible  <bruno@clisp.org>
73833
73834         * gnulib-tool (func_get_license): For test modules, use the license of
73835         the main module.
73836
73837 2007-01-14  Bruno Haible  <bruno@clisp.org>
73838
73839         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73840         if iconv is found to exist.
73841
73842 2007-01-14  Bruno Haible  <bruno@clisp.org>
73843
73844         * modules/c-ctype-tests: New file.
73845         * tests/test-c-ctype.c: New file.
73846
73847 2007-01-14  Bruno Haible  <bruno@clisp.org>
73848
73849         * modules/binary-io-tests: New file.
73850         * tests/test-binary-io.sh: New file.
73851         * tests/test-binary-io.c: New file.
73852
73853 2007-01-14  Bruno Haible  <bruno@clisp.org>
73854
73855         * modules/array-oset-tests: New file.
73856         * tests/test-array_oset.c: New file.
73857
73858 2007-01-14  Bruno Haible  <bruno@clisp.org>
73859
73860         * modules/array-list-tests: New file.
73861         * tests/test-array_list.c: New file.
73862
73863 2007-01-14  Bruno Haible  <bruno@clisp.org>
73864
73865         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73866         and make.
73867         Reported by Simon Josefsson in
73868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73869
73870 2007-01-14  Bruno Haible  <bruno@clisp.org>
73871
73872         * modules/allocsa-tests: New file.
73873         * tests/test-allocsa.c: New file.
73874
73875 2007-01-14  Bruno Haible  <bruno@clisp.org>
73876
73877         * modules/fchdir (Depends-on): Add absolute-header.
73878         * modules/unistd (Depends-on): Likewise.
73879
73880 2006-12-30  Bruno Haible  <bruno@clisp.org>
73881
73882         * modules/fchdir: New file.
73883         * modules/unistd (Files): Add lib/unistd_.h.
73884         (Makefile.am): Generate unistd.h from unistd_.h.
73885         * lib/fchdir.c: New file.
73886         * lib/dirent_.h: New file.
73887         * lib/unistd_.h: New file.
73888         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73889         * m4/fchdir.m4: New file.
73890         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73891         (gl_HEADER_UNISTD): Invoke it.
73892         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73893         function.
73894         * lib/backupfile.c (opendir, closedir): Undefine.
73895         * lib/chown.c (open, close): Undefine.
73896         * lib/clean-temp.c (open, close): Undefine.
73897         * lib/copy-file.c (open, close): Undefine.
73898         * lib/execute.c (open, close): Undefine.
73899         * lib/fsusage.c (open, close): Undefine.
73900         * lib/gc-gnulib.c (open, close): Undefine.
73901         * lib/getcwd.c (opendir, closedir): Undefine.
73902         * lib/glob.c (opendir, closedir): Undefine.
73903         * lib/javacomp.c (open, close): Undefine.
73904         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73905         * lib/openat-proc.c (open, close): Undefine.
73906         * lib/pagealign_alloc.c (open, close): Undefine.
73907         * lib/pipe.c (open, close): Undefine.
73908         * lib/progreloc.c (open, close): Undefine.
73909         * lib/savedir.c (opendir, closedir): Undefine.
73910         * lib/utime.c (open, close): Undefine.
73911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73912
73913 2007-01-10  Bruno Haible  <bruno@clisp.org>
73914
73915         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73916
73917 2007-01-12  Eric Blake  <ebb9@byu.net>
73918
73919         Provide a robust <wchar.h>.  Further simplifications are now
73920         possible in other modules, but not included here.
73921         * modules/wchar: New module.
73922         * m4/wchar.m4: New file.
73923         * lib/wchar_.h: Likewise.
73924         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73925         of the new module.
73926         * MODULES.html.sh (Extended multibyte and wide character utilities):
73927         New section.
73928
73929 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73932         to a reasonable default for memory allocation.
73933         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73934         file system that reports garbage st_size values for symlinks.
73935         Problem reported by Liyang Hu.
73936
73937 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73938
73939         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73940         Emacs .#* auto-save files).
73941
73942 2007-01-11  Bruno Haible  <bruno@clisp.org>
73943
73944         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73945         directory.
73946
73947 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         Use @...@ consistently in lib/wctype_.h.
73950         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73951         on it being set to 1 or 0.
73952         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73953         go back to AC_SUBSTing it.
73954         * modules/wctype (Makefile.am): Undo previous change.
73955
73956 2007-01-10  Eric Blake  <ebb9@byu.net>
73957
73958         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73959         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73960         * modules/wctype (Makefile.am): Likewise.
73961         Reported by Chris McGuire.
73962
73963 2007-01-10  Jim Meyering  <jim@meyering.net>
73964
73965         fts.c: a small readability/maintainability improvement
73966         * lib/fts.c (fts_read): Make this code slightly more readable and
73967         maintainable by hoisting the "sp->fts_cur = p" assignments to
73968         immediately follow the statements that set P.  Derived from
73969         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73970
73971 2007-01-10  Eric Blake  <ebb9@byu.net>
73972
73973         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73974         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73976         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73977         Reported by Chris McGuire.
73978
73979 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73980
73981         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73982         in sed script.
73983
73984 2007-01-09  Bruno Haible  <bruno@clisp.org>
73985
73986         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73987         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73988         variables.
73989         (func_module): Use them.
73990
73991 2007-01-09  Bruno Haible  <bruno@clisp.org>
73992
73993         * modules/unistr/base: New file.
73994         * lib/unistr.h: New file.
73995
73996         * modules/unistr/u8-to-u16: New file.
73997         * lib/unistr/u8-to-u16.c: New file.
73998
73999         * modules/unistr/u8-to-u32: New file.
74000         * lib/unistr/u8-to-u32.c: New file.
74001
74002         * modules/unistr/u16-to-u8: New file.
74003         * lib/unistr/u16-to-u8.c: New file.
74004
74005         * modules/unistr/u16-to-u32: New file.
74006         * lib/unistr/u16-to-u32.c: New file.
74007
74008         * modules/unistr/u32-to-u8: New file.
74009         * lib/unistr/u32-to-u8.c: New file.
74010
74011         * modules/unistr/u32-to-u16: New file.
74012         * lib/unistr/u32-to-u16.c: New file.
74013
74014         * modules/unistr/u8-check: New file.
74015         * modules/unistr/u16-check: New file.
74016         * modules/unistr/u32-check: New file.
74017         * lib/unistr/u8-check.c: New file.
74018         * lib/unistr/u16-check.c: New file.
74019         * lib/unistr/u32-check.c: New file.
74020
74021         * modules/unistr/u8-chr: New file.
74022         * modules/unistr/u16-chr: New file.
74023         * modules/unistr/u32-chr: New file.
74024         * lib/unistr/u8-chr.c: New file.
74025         * lib/unistr/u16-chr.c: New file.
74026         * lib/unistr/u32-chr.c: New file.
74027
74028         * modules/unistr/u8-cmp: New file.
74029         * modules/unistr/u16-cmp: New file.
74030         * modules/unistr/u32-cmp: New file.
74031         * lib/unistr/u8-cmp.c: New file.
74032         * lib/unistr/u16-cmp.c: New file.
74033         * lib/unistr/u32-cmp.c: New file.
74034
74035         * modules/unistr/u8-cpy: New file.
74036         * modules/unistr/u16-cpy: New file.
74037         * modules/unistr/u32-cpy: New file.
74038         * lib/unistr/u8-cpy.c: New file.
74039         * lib/unistr/u16-cpy.c: New file.
74040         * lib/unistr/u32-cpy.c: New file.
74041         * lib/unistr/u-cpy.h: New file.
74042
74043         * modules/unistr/u8-cpy-alloc: New file.
74044         * modules/unistr/u16-cpy-alloc: New file.
74045         * modules/unistr/u32-cpy-alloc: New file.
74046         * lib/unistr/u8-cpy-alloc.c: New file.
74047         * lib/unistr/u16-cpy-alloc.c: New file.
74048         * lib/unistr/u32-cpy-alloc.c: New file.
74049         * lib/unistr/u-cpy-alloc.h: New file.
74050
74051         * modules/unistr/u8-endswith: New file.
74052         * modules/unistr/u16-endswith: New file.
74053         * modules/unistr/u32-endswith: New file.
74054         * lib/unistr/u8-endswith.c: New file.
74055         * lib/unistr/u16-endswith.c: New file.
74056         * lib/unistr/u32-endswith.c: New file.
74057         * lib/unistr/u-endswith.h: New file.
74058
74059         * modules/unistr/u8-mblen: New file.
74060         * modules/unistr/u16-mblen: New file.
74061         * modules/unistr/u32-mblen: New file.
74062         * lib/unistr/u8-mblen.c: New file.
74063         * lib/unistr/u16-mblen.c: New file.
74064         * lib/unistr/u32-mblen.c: New file.
74065
74066         * modules/unistr/u8-mbtouc: New file.
74067         * modules/unistr/u16-mbtouc: New file.
74068         * modules/unistr/u32-mbtouc: New file.
74069         * lib/unistr/u8-mbtouc.c: New file.
74070         * lib/unistr/u16-mbtouc.c: New file.
74071         * lib/unistr/u32-mbtouc.c: New file.
74072
74073         * modules/unistr/u8-mbtouc-safe: New file.
74074         * modules/unistr/u16-mbtouc-safe: New file.
74075         * modules/unistr/u32-mbtouc-safe: New file.
74076         * lib/unistr/u8-mbtouc-safe.c: New file.
74077         * lib/unistr/u16-mbtouc-safe.c: New file.
74078         * lib/unistr/u32-mbtouc-safe.c: New file.
74079
74080         * modules/unistr/u8-move: New file.
74081         * modules/unistr/u16-move: New file.
74082         * modules/unistr/u32-move: New file.
74083         * lib/unistr/u8-move.c: New file.
74084         * lib/unistr/u16-move.c: New file.
74085         * lib/unistr/u32-move.c: New file.
74086         * lib/unistr/u-move.h: New file.
74087
74088         * modules/unistr/u8-next: New file.
74089         * modules/unistr/u16-next: New file.
74090         * modules/unistr/u32-next: New file.
74091         * lib/unistr/u8-next.c: New file.
74092         * lib/unistr/u16-next.c: New file.
74093         * lib/unistr/u32-next.c: New file.
74094
74095         * modules/unistr/u8-prev: New file.
74096         * modules/unistr/u16-prev: New file.
74097         * modules/unistr/u32-prev: New file.
74098         * lib/unistr/u8-prev.c: New file.
74099         * lib/unistr/u16-prev.c: New file.
74100         * lib/unistr/u32-prev.c: New file.
74101
74102         * modules/unistr/u8-set: New file.
74103         * modules/unistr/u16-set: New file.
74104         * modules/unistr/u32-set: New file.
74105         * lib/unistr/u8-set.c: New file.
74106         * lib/unistr/u16-set.c: New file.
74107         * lib/unistr/u32-set.c: New file.
74108         * lib/unistr/u-set.h: New file.
74109
74110         * modules/unistr/u8-startswith: New file.
74111         * modules/unistr/u16-startswith: New file.
74112         * modules/unistr/u32-startswith: New file.
74113         * lib/unistr/u8-startswith.c: New file.
74114         * lib/unistr/u16-startswith.c: New file.
74115         * lib/unistr/u32-startswith.c: New file.
74116         * lib/unistr/u-startswith.h: New file.
74117
74118         * modules/unistr/u8-stpcpy: New file.
74119         * modules/unistr/u16-stpcpy: New file.
74120         * modules/unistr/u32-stpcpy: New file.
74121         * lib/unistr/u8-stpcpy.c: New file.
74122         * lib/unistr/u16-stpcpy.c: New file.
74123         * lib/unistr/u32-stpcpy.c: New file.
74124         * lib/unistr/u-stpcpy.h: New file.
74125
74126         * modules/unistr/u8-stpncpy: New file.
74127         * modules/unistr/u16-stpncpy: New file.
74128         * modules/unistr/u32-stpncpy: New file.
74129         * lib/unistr/u8-stpncpy.c: New file.
74130         * lib/unistr/u16-stpncpy.c: New file.
74131         * lib/unistr/u32-stpncpy.c: New file.
74132         * lib/unistr/u-stpncpy.h: New file.
74133
74134         * modules/unistr/u8-strcat: New file.
74135         * modules/unistr/u16-strcat: New file.
74136         * modules/unistr/u32-strcat: New file.
74137         * lib/unistr/u8-strcat.c: New file.
74138         * lib/unistr/u16-strcat.c: New file.
74139         * lib/unistr/u32-strcat.c: New file.
74140         * lib/unistr/u-strcat.h: New file.
74141
74142         * modules/unistr/u8-strchr: New file.
74143         * modules/unistr/u16-strchr: New file.
74144         * modules/unistr/u32-strchr: New file.
74145         * lib/unistr/u8-strchr.c: New file.
74146         * lib/unistr/u16-strchr.c: New file.
74147         * lib/unistr/u32-strchr.c: New file.
74148
74149         * modules/unistr/u8-strcmp: New file.
74150         * modules/unistr/u16-strcmp: New file.
74151         * modules/unistr/u32-strcmp: New file.
74152         * lib/unistr/u8-strcmp.c: New file.
74153         * lib/unistr/u16-strcmp.c: New file.
74154         * lib/unistr/u32-strcmp.c: New file.
74155
74156         * modules/unistr/u8-strcpy: New file.
74157         * modules/unistr/u16-strcpy: New file.
74158         * modules/unistr/u32-strcpy: New file.
74159         * lib/unistr/u8-strcpy.c: New file.
74160         * lib/unistr/u16-strcpy.c: New file.
74161         * lib/unistr/u32-strcpy.c: New file.
74162         * lib/unistr/u-strcpy.h: New file.
74163
74164         * modules/unistr/u8-strcspn: New file.
74165         * modules/unistr/u16-strcspn: New file.
74166         * modules/unistr/u32-strcspn: New file.
74167         * lib/unistr/u8-strcspn.c: New file.
74168         * lib/unistr/u16-strcspn.c: New file.
74169         * lib/unistr/u32-strcspn.c: New file.
74170         * lib/unistr/u-strcspn.h: New file.
74171
74172         * modules/unistr/u8-strdup: New file.
74173         * modules/unistr/u16-strdup: New file.
74174         * modules/unistr/u32-strdup: New file.
74175         * lib/unistr/u8-strdup.c: New file.
74176         * lib/unistr/u16-strdup.c: New file.
74177         * lib/unistr/u32-strdup.c: New file.
74178         * lib/unistr/u-strdup.h: New file.
74179
74180         * modules/unistr/u8-strlen: New file.
74181         * modules/unistr/u16-strlen: New file.
74182         * modules/unistr/u32-strlen: New file.
74183         * lib/unistr/u8-strlen.c: New file.
74184         * lib/unistr/u16-strlen.c: New file.
74185         * lib/unistr/u32-strlen.c: New file.
74186         * lib/unistr/u-strlen.h: New file.
74187
74188         * modules/unistr/u8-strmblen: New file.
74189         * modules/unistr/u16-strmblen: New file.
74190         * modules/unistr/u32-strmblen: New file.
74191         * lib/unistr/u8-strmblen.c: New file.
74192         * lib/unistr/u16-strmblen.c: New file.
74193         * lib/unistr/u32-strmblen.c: New file.
74194
74195         * modules/unistr/u8-strmbtouc: New file.
74196         * modules/unistr/u16-strmbtouc: New file.
74197         * modules/unistr/u32-strmbtouc: New file.
74198         * lib/unistr/u8-strmbtouc.c: New file.
74199         * lib/unistr/u16-strmbtouc.c: New file.
74200         * lib/unistr/u32-strmbtouc.c: New file.
74201
74202         * modules/unistr/u8-strncat: New file.
74203         * modules/unistr/u16-strncat: New file.
74204         * modules/unistr/u32-strncat: New file.
74205         * lib/unistr/u8-strncat.c: New file.
74206         * lib/unistr/u16-strncat.c: New file.
74207         * lib/unistr/u32-strncat.c: New file.
74208         * lib/unistr/u-strncat.h: New file.
74209
74210         * modules/unistr/u8-strncmp: New file.
74211         * modules/unistr/u16-strncmp: New file.
74212         * modules/unistr/u32-strncmp: New file.
74213         * lib/unistr/u8-strncmp.c: New file.
74214         * lib/unistr/u16-strncmp.c: New file.
74215         * lib/unistr/u32-strncmp.c: New file.
74216
74217         * modules/unistr/u8-strncpy: New file.
74218         * modules/unistr/u16-strncpy: New file.
74219         * modules/unistr/u32-strncpy: New file.
74220         * lib/unistr/u8-strncpy.c: New file.
74221         * lib/unistr/u16-strncpy.c: New file.
74222         * lib/unistr/u32-strncpy.c: New file.
74223         * lib/unistr/u-strncpy.h: New file.
74224
74225         * modules/unistr/u8-strnlen: New file.
74226         * modules/unistr/u16-strnlen: New file.
74227         * modules/unistr/u32-strnlen: New file.
74228         * lib/unistr/u8-strnlen.c: New file.
74229         * lib/unistr/u16-strnlen.c: New file.
74230         * lib/unistr/u32-strnlen.c: New file.
74231         * lib/unistr/u-strnlen.h: New file.
74232
74233         * modules/unistr/u8-strpbrk: New file.
74234         * modules/unistr/u16-strpbrk: New file.
74235         * modules/unistr/u32-strpbrk: New file.
74236         * lib/unistr/u8-strpbrk.c: New file.
74237         * lib/unistr/u16-strpbrk.c: New file.
74238         * lib/unistr/u32-strpbrk.c: New file.
74239         * lib/unistr/u-strpbrk.h: New file.
74240
74241         * modules/unistr/u8-strrchr: New file.
74242         * modules/unistr/u16-strrchr: New file.
74243         * modules/unistr/u32-strrchr: New file.
74244         * lib/unistr/u8-strrchr.c: New file.
74245         * lib/unistr/u16-strrchr.c: New file.
74246         * lib/unistr/u32-strrchr.c: New file.
74247
74248         * modules/unistr/u8-strspn: New file.
74249         * modules/unistr/u16-strspn: New file.
74250         * modules/unistr/u32-strspn: New file.
74251         * lib/unistr/u8-strspn.c: New file.
74252         * lib/unistr/u16-strspn.c: New file.
74253         * lib/unistr/u32-strspn.c: New file.
74254         * lib/unistr/u-strspn.h: New file.
74255
74256         * modules/unistr/u8-strstr: New file.
74257         * modules/unistr/u16-strstr: New file.
74258         * modules/unistr/u32-strstr: New file.
74259         * lib/unistr/u8-strstr.c: New file.
74260         * lib/unistr/u16-strstr.c: New file.
74261         * lib/unistr/u32-strstr.c: New file.
74262         * lib/unistr/u-strstr.h: New file.
74263
74264         * modules/unistr/u8-strtok: New file.
74265         * modules/unistr/u16-strtok: New file.
74266         * modules/unistr/u32-strtok: New file.
74267         * lib/unistr/u8-strtok.c: New file.
74268         * lib/unistr/u16-strtok.c: New file.
74269         * lib/unistr/u32-strtok.c: New file.
74270         * lib/unistr/u-strtok.h: New file.
74271
74272         * modules/unistr/u8-uctomb: New file.
74273         * modules/unistr/u16-uctomb: New file.
74274         * modules/unistr/u32-uctomb: New file.
74275         * lib/unistr/u8-uctomb.c: New file.
74276         * lib/unistr/u16-uctomb.c: New file.
74277         * lib/unistr/u32-uctomb.c: New file.
74278
74279         * MODULES.html.sh (Unicode string functions): Add the new modules.
74280
74281 2007-01-08  Bruno Haible  <bruno@clisp.org>
74282
74283         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74284         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74285         subdirectories.
74286
74287 2007-01-08  Karl Berry  <karl@gnu.org>
74288
74289         * doc/error.texi: mention that main() fns must set program_name
74290         when progname is used.
74291
74292 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74293
74294         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74295         WCTYPE_H is empty, for the benefit of builds from non-distclean
74296         directories.  Problem reported by Eric Blake in
74297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74298
74299 2007-01-08  Bruno Haible  <bruno@clisp.org>
74300
74301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74302         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74303         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74304         PROVIDE_CANONICALIZE_FILENAME_MODE.
74305         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74306
74307 2007-01-08  Bruno Haible  <bruno@clisp.org>
74308
74309         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74310         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74311         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74312         * lib/fts.c: Likewise.
74313         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74314
74315 2006-12-25  Bruno Haible  <bruno@clisp.org>
74316
74317         * modules/utf8-ucs4-safe: New file.
74318         * lib/utf8-ucs4-safe.h: New file.
74319         * lib/unistr/utf8-ucs4-safe.c: New file.
74320
74321         * modules/utf16-ucs4-safe: New file.
74322         * lib/utf16-ucs4-safe.h: New file.
74323         * lib/unistr/utf16-ucs4-safe.c: New file.
74324
74325         * MODULES.html.sh (Unicode string functions): Add the new modules.
74326
74327 2007-01-08  Bruno Haible  <bruno@clisp.org>
74328
74329         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74330         (Depends-on): Add unitypes.
74331         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74332         (u8_mbtouc_aux): Move out to separate file.
74333         (u8_mbtouc): Use ucs4_t, uint8_t types.
74334         * lib/unistr/utf8-ucs4.c: New file.
74335
74336         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74337         (Depends-on): Add unitypes.
74338         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74339         (u16_mbtouc_aux): Move out to separate file.
74340         (u16_mbtouc): Use ucs4_t, uint16_t types.
74341         * lib/unistr/utf16-ucs4.c: New file.
74342
74343         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74344         (Depends-on): Add unitypes.
74345         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74346         (u8_uctomb_aux): Move out to separate file.
74347         (u8_uctomb): Use ucs4_t, uint8_t types.
74348         * lib/unistr/ucs4-utf8.c: New file.
74349
74350         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74351         (Depends-on): Add unitypes.
74352         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74353         (u16_uctomb_aux): Move out to separate file.
74354         (u16_uctomb): Use ucs4_t, uint16_t types.
74355         * lib/unistr/ucs4-utf16.c: New file.
74356
74357 2006-12-25  Bruno Haible  <bruno@clisp.org>
74358
74359         * modules/unitypes: New file.
74360         * lib/unitypes.h: New file.
74361         * MODULES.html.sh (func_all_modules): New section "Unicode string
74362         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74363         this section. Add unitypes.
74364
74365 2007-01-08  Bruno Haible  <bruno@clisp.org>
74366
74367         Avoid variable names that conflict with those from libtool.
74368         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74369         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74370         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74371         library_names_spec to acl_library_names_spec, hardcode_* to
74372         acl_hardcode_*.
74373         Reported by Ralf Wildenhues.
74374
74375 2007-01-08  Bruno Haible  <bruno@clisp.org>
74376
74377         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74378         definition.
74379         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74380         definition.
74381         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74382         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74383         definition.
74384         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74385         definition.
74386         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74387         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74388         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74389         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74390         definition.
74391         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74392         definition.
74393         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74394         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74395         GC_USE_<algorithm>.
74396         * lib/gc-libgcrypt.c: Likewise.
74397         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74398         * modules/gc-arctwo (configure.ac): Likewise.
74399         * modules/gc-des (configure.ac): Likewise.
74400         * modules/gc-hmac-md5 (configure.ac): Likewise.
74401         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74402         * modules/gc-md2 (configure.ac): Likewise.
74403         * modules/gc-md4 (configure.ac): Likewise.
74404         * modules/gc-md5 (configure.ac): Likewise.
74405         * modules/gc-random (configure.ac): Likewise.
74406         * modules/gc-rijndael (configure.ac): Likewise.
74407         * modules/gc-sha1 (configure.ac): Likewise.
74408
74409 2007-01-08  Bruno Haible  <bruno@clisp.org>
74410
74411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74412         macro definition.
74413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74414         definition.
74415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74416         definition.
74417         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74418         * modules/fcntl-safer (configure.ac): Likewise.
74419         * modules/fopen-safer (configure.ac): Likewise.
74420         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74421         GNULIB_FWRITEERROR macro definition.
74422
74423 2007-01-08  Bruno Haible  <bruno@clisp.org>
74424
74425         * m4/gnulib-common.m4: New file.
74426         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74427         (func_get_filelist): Add m4/gnulib-common.m4.
74428
74429 2007-01-08  Bruno Haible  <bruno@clisp.org>
74430
74431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74432         command.
74433
74434 2007-01-08  Jim Meyering  <jim@meyering.net>
74435
74436         Use a more robust test for a "can't happen" condition.
74437         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74438         narrowed the st_size value.  Presuming the "can't happen" condition
74439         is true, that narrowing could conceivably convert an invalid st_size
74440         value into a valid one.  Instead, use a change based on Matthew
74441         Woehlke's original patch.
74442
74443         Slight readability improvement: use an assert-like macro
74444         in place of literal "abort ()" uses.
74445         * lib/fts.c (fts_assert): Define.
74446         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74447         Use this macro instead of a bare 'abort'.
74448
74449 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74452         simply work around them.
74453         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74454         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74455         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74456         declaring.
74457         Don't bother to define as macros, since the standard doesn't require it.
74458         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74459         longer worry about IRIX 5.3.
74460         (HAVE_WCTYPE_CTMP_BUG): Remove.
74461
74462 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74463
74464         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74465         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74466         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74467         Problems reported by Georg Schwarz for IRIX 5.3.
74468
74469         * gnulib-tool (autoconf_minversion): Take the maximum version number
74470         found, not the minimum.  Problem reported by James Youngman.
74471
74472 2007-01-03  Karl Berry  <karl@gnu.org>
74473
74474         * doc/error.texi: new file, explaining interaction with progname.
74475         * doc/gnulib.texi: include it.  Update copyright.
74476
74477 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74478
74479         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74480         AC_CANONICAL_HOST, to improve autobuild outputs.
74481
74482 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74483             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74484
74485         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74486         sockets, server sockets, and other file descriptors.  Count errors
74487         to compute the return value.  Reorder the code a bit to be easier
74488         to follow.  Don't set event bits that were not requested (except
74489         POLLERR and POLLHUP).
74490
74491 2007-01-01  Bruno Haible  <bruno@clisp.org>
74492
74493         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74494
74495 2007-01-03  Jim Meyering  <jim@meyering.net>
74496
74497         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74498
74499 2007-01-02  Bruno Haible  <bruno@clisp.org>
74500
74501         * modules/settime (Include): Require timespec.h.
74502         * modules/nanosleep (Include): Likewise.
74503
74504 2007-01-01  Bruno Haible  <bruno@clisp.org>
74505
74506         * gnulib-tool (func_emit_copyright_notice): Bump year.
74507         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74508
74509 2007-01-01  Bruno Haible  <bruno@clisp.org>
74510
74511         Improve support for OpenBSD.
74512         * build-aux/config.rpath (libname_spec): Export.
74513         (library_names_spec): New variable. Export.
74514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74515         library_names_spec from the config.rpath output. Locate shared library
74516         through the name pattern in library_names_spec.
74517
74518 2007-01-01  Eric Blake  <ebb9@byu.net>
74519
74520         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74521
74522 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74523
74524         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74525         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74526         assume the C locale, and avoid an "eval" that could cause trouble.
74527         Problem with SORT reported by Bob Proulx.
74528
74529         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74530         Define.  Trivial patch from Henning Nielsen Lund, originally
74531         sent to bug-grep@gnu.org today.
74532
74533 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74536         struct stat.  Problem reported by Henning Nielsen Lund.
74537         * lib/acl.c: Include acl.h first, to check interface.  Don't
74538         bother to include sys/types.h and sys/stat.h again.
74539
74540 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         Import the following change from libc; problem reported by
74543         Sven Verdoolaege.
74544
74545         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74546
74547         [BZ #1373]
74548         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74549
74550 2006-12-28  Jim Meyering  <jim@meyering.net>
74551
74552         * build-aux/announce-gen: Do not assume that the package
74553         builds any of tar.gz, tar.bz2, and .xdelta files.
74554         Suggestion from Simon Josefsson.
74555
74556 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74557
74558         * modules/announce-gen: New file.
74559
74560 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74561
74562         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74563         handles its gotchas now.
74564         * lib/mbswidth.c: Likewise.
74565         * lib/wcwidth.h: Likewise.
74566         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74567         and iswcntrl; the wctype module does this stuff now.
74568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74570         * modules/mbchar (Depends-on): Add wctype.
74571         * modules/mbswidth (Depends-on): Likewise.
74572         * modules/wcwidth (Depends-on): Likewise.
74573
74574 2006-12-27  Eric Blake  <ebb9@byu.net>
74575
74576         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74577         module uses more than what <wctype.h> is required to provide.
74578
74579 2006-12-26  Eric Blake  <ebb9@byu.net>
74580
74581         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74582
74583 2006-12-26  Eric Blake  <ebb9@byu.net>
74584
74585         * modules/absolute-header: New module.
74586         * modules/fcntl (Depends-on): Depend on it.
74587         * modules/inttypes (Depends-on): Likewise.
74588         * modules/stdint (Depends-on): Likewise.
74589         * modules/sys_stat (Depends-on): Likewise.
74590         * modules/wctype (Depends-on): Likewise.
74591         * MODULES.html.sh (Support for building libraries and
74592         executables): Document it.
74593
74594 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * gnulib-tool (SED): Remove, undoing previous change.
74597         The problem was that it broke coreutils on Solaris, because
74598         "sed --posix" leaked into a makefile.
74599         (sed): New alias, if 'alias' and GNU sed.
74600
74601 2006-12-24  Jim Meyering  <jim@meyering.net>
74602
74603         Work around an fchownat bug in glibc-2.4:
74604         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74605         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74606         in spite of the -P option.
74607         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74608         New macros.
74609         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74610         * modules/openat (Files): Add lib/fchownat.c.
74611         * lib/openat.c (fchownat): Don't define here.  Move to...
74612         * lib/fchownat.c: ...this new file.
74613
74614 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         Fix bug reported by Bruno Haible in
74617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74618         where quotearg.c didn't compile on Mac OS X 10.2 because it
74619         lacks <wchar.h> and wint_t.
74620         * lib/wctype_.h (__wctype_wint_t): New type.
74621         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74622         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74623         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74624         Arg is now of type __wctype_wint_t, not wint_t.
74625         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74626         substitute HAVE_WINT_T.
74627         * modules/wctype (Files): Add m4/wint_t.m4.
74628         (wctype.h): Substitute HAVE_WINT_T.
74629
74630 2006-12-23  Bruno Haible  <bruno@clisp.org>
74631
74632         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74633
74634 2006-12-23  Bruno Haible  <bruno@clisp.org>
74635
74636         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74637         S_ISLNK.
74638         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74639         mingw.
74640
74641 2006-12-22  Bruno Haible  <bruno@clisp.org>
74642
74643         * lib/copy-file.c: Include acl.h.
74644         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74645         Close the file descriptors only after being done with copy_acl.
74646         * modules/copy-file (Depends-on): Add acl.
74647
74648 2006-12-22  Bruno Haible  <bruno@clisp.org>
74649
74650         * gnulib-tool (SED): New variable.
74651         Use $SED instead of sed everywhere.
74652
74653 2006-12-22  Bruno Haible  <bruno@clisp.org>
74654
74655         * modules/no-c++: New file.
74656         * m4/no-c++.m4: New file.
74657         * MODULES.html.sh (Support for building libraries and executables):
74658         Add no-c++.
74659
74660 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74663         Include <limits.h>, and use its INT_MAX to rewrite the
74664         j loop so that it does not overflow 'int'.  Problem reported by
74665         Ralf Wildenhues in
74666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74667         Play it safe by shifting left by 1 rather than multiplying by 2,
74668         as GCC is less likely to optimize this away when the value
74669         is signed (when it assumes overflow leads to undefined behavior).
74670         Also, don't assume time_t uses two's complement.
74671
74672 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         * MODULES.html.sh: New module wctype.
74675         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74676         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74677         <wctype.h>, since the new wctype module should fix this.
74678         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74679         the wctype module should arrange for it.
74680         * lib/regex_internal.h: Likewise.
74681         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74682         since the wctype module should handle this now.
74683         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74684         * modules/fnmatch (Depends-on): Add wctype.
74685         * modules/quotearg (Depends-on): Likewise.
74686         * modules/regex (Depends-on): Likewise.
74687
74688 2006-12-19  Bruno Haible  <bruno@clisp.org>
74689
74690         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74691         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74692
74693 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74694
74695         * modules/savewd (Depends-on): Fix dependency on fcntl.
74696
74697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74700         conforms to C99, rather than relying on the user's environment
74701         setting of STDINT_H.
74702
74703 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74704         and Eric Blake  <ebb9@byu.net>
74705
74706         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74707         This is more consistent with the other defines here.
74708         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74709         Port to z/OS.  Problem reported by Paul Gilmartin.
74710         Change local vars to use gl_ prefix rather than ac_.
74711         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74712         with other defines.
74713         * modules/double-slash-root: New module.
74714         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74715         (Depends-on): Add double-slash-root.
74716         * MODULES.html.sh (File system functions): Mention new module.
74717
74718 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74721         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74722         This is for the benefit of gzip, which doesn't do i18n.
74723
74724 2006-12-12  Jim Meyering  <jim@meyering.net>
74725
74726         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74727         Reported by Andreas Schwab <schwab@suse.de>.
74728
74729 2006-12-12  Bruno Haible  <bruno@clisp.org>
74730
74731         Merge these changes.
74732         2006-09-05  Bruno Haible  <bruno@clisp.org>
74733         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74734         iconv_alloc succeeded.
74735         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74736         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74737         test for " && dest " at the end - dest is always != NULL there. Call
74738         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74739         with 2xNULL arguments, also to flush the state storage. Handle the
74740         IRIX iconv behaviour. Realloc the final result, to throw away unused
74741         memory.
74742
74743 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74746         and fchmodat unconditionally, since glibc 2.4 has them.
74747         Problem reported by Arkadiusz Miskiewicz.
74748
74749 2006-12-10  Bruno Haible  <bruno@clisp.org>
74750
74751         * gnulib-tool (func_import): Show the include files only for those
74752         modules that are copied and specified.
74753         Reported by Karl Berry.
74754
74755 2006-12-08  Jim Meyering  <jim@meyering.net>
74756
74757         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74758         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74759
74760         * build-aux/announce-gen: Add two new options, both optional:
74761         --bootstrap-tools=TOOL_LIST
74762               a comma-separated list of tools, e.g.,
74763               autoconf,automake,bison,gnulib
74764         --gnulib-snapshot-date=DATE
74765               if gnulib is in the bootstrap tool list,
74766               then report this as the snapshot date.
74767               If not specified, use the current date/time.
74768               If you specify a date here, be sure it's UTC.
74769
74770 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74771
74772         * tests/test-argp-2.sh: Fix test to match actual output.
74773         (func_compare): Fix sed script to be portable.
74774
74775 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74778         workaround for this case.  It is not autoconfigured now; offhand
74779         it's hard to see how to autoconfigure it.
74780
74781 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74782
74783         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74784         a directory that is about to be chowned.  Such a directory's
74785         initial file permissions should permit the owner only and this
74786         should not be changed until after the chown, since the group and
74787         other bits would be incorrect if they granted permission before
74788         the chown.
74789
74790         Fix porting problem for iswctype reported by Georg Schwarz in:
74791         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74792         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74793         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74794         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74795         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74796
74797 2006-12-03  Jim Meyering  <jim@meyering.net>
74798
74799         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74800         p->fts_statp may not yet be defined.
74801         (fts_read): Instead, set it in the caller, once p->fts_statp is
74802         sure to be defined, and corresponds to a top-level directory.
74803         This bug made du -x fail.  Here's the coreutils test case:
74804         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74805         Reported by Mike Frysinger.
74806
74807 2006-12-01  Jim Meyering  <jim@meyering.net>
74808
74809         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74810         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74811         Reported by Simon Josefsson.
74812
74813 2006-11-30  Jim Meyering  <jim@meyering.net>
74814
74815         * m4/warning.m4: Use the all-permissive copyright notice
74816         recommended by RMS (rather than LGPL).
74817         * m4/vararrays.m4: Likewise.
74818         * m4/flexmember.m4: Likewise.
74819
74820 2006-11-29  Bruno Haible  <bruno@clisp.org>
74821
74822         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74823         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74824         using +=.
74825         Reported by Simon Josefsson <simon@josefsson.org>.
74826
74827 2006-11-28  James Youngman <jay@gnu.org>
74828
74829         * README: Advise users that they might find the bug-gnulib@gnu.org
74830         and autotools-announce@gnu.org mailing lists useful.
74831
74832 2006-11-28  Bruno Haible  <bruno@clisp.org>
74833
74834         * m4/ptrdiff_max.m4: Remove file.
74835
74836 2006-11-21  Bruno Haible  <bruno@clisp.org>
74837
74838         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74839         _AC_COMPUTE_INT.
74840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74841         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74842         _AC_COMPUTE_INT.
74843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74844         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74845         _AC_COMPUTE_INT.
74846         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74847
74848 2006-11-28  Jim Meyering  <jim@meyering.net>
74849
74850         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74851         warning from "gcc -Wshadow" about shadowing the builtin.
74852
74853 2006-11-27  Bruno Haible  <bruno@clisp.org>
74854
74855         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74856         _AC_COMPUTE_INT.
74857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74858
74859 2006-11-27  Bruno Haible  <bruno@clisp.org>
74860             Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74863
74864 2006-11-26  Bruno Haible  <bruno@clisp.org>
74865
74866         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74867         noinst_LTLIBRARIES.
74868
74869 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74870             Bruno Haible  <bruno@clisp.org>
74871
74872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74873         if compiling with "gcc -ansi".
74874
74875 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         Fix some incompatibilities with gcc -ansi -pedantic.
74878         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74879         if compiling pedantically with GCC, unless it's C99 or later.
74880         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74881         it mishandles gcc -ansi -pedantic as well.
74882         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74883         if gcc -pedantic.
74884         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74885         initializers for struct if -pedantic, unless it's C99 or later.
74886
74887 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74888
74889         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74890         Don't close an fd more than once. Identical atimes indicate
74891         success, not failure.
74892
74893 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74894
74895         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74896
74897 2006-11-23  Jim Meyering  <jim@meyering.net>
74898
74899         * build-aux/announce-gen: New file.  From coreutils.
74900
74901 2006-11-22  Jim Meyering  <jim@meyering.net>
74902
74903         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74904         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74905         (fts_read): Use a temporary to narrow the overused st_size member
74906         before using it in a switch statement.  Reported by Matthew Woehlke.
74907
74908         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74910
74911 2006-11-20  Bruno Haible  <bruno@clisp.org>
74912
74913         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74914         changequote instead of pairs of brackets.
74915         Reported by Andreas Schwab <schwab@suse.de>.
74916
74917 2006-11-21  Jim Meyering  <jim@meyering.net>
74918
74919         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74920         so as to remain compatible with older compilers.
74921         Patch from Michael Deutschmann.
74922
74923 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         * MODULES.html.sh (File system functions): Add openat.
74926
74927         * lib/openat.h (rpl_fstatat): New macro, if
74928         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74929         (fstatat): Define to rpl_fstatat under the same conditions,
74930         unless COMPILING_FSTATAT.
74931         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74932         seems to have the bug.
74933         * lib/fstatat.c: New file.
74934         * modules/openat (Files): Add it.
74935
74936 2006-11-20  Bruno Haible  <bruno@clisp.org>
74937
74938         * Makefile: New file.
74939
74940 2006-11-20  Jim Meyering  <jim@meyering.net>
74941
74942         The beginnings of syntax-related checks for gnulib.
74943         * lib/Makefile: New file.
74944         * lib/t-idcache: New script.  Ensure that the two halves of
74945         idcache.c stay in sync.
74946
74947         * lib/idcache.c: Adjust comments in user- and group- portions to
74948         be more accurate, and to be consistent with one another.
74949
74950 2006-11-20  Jim Meyering  <jim@meyering.net>
74951
74952         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74953         continue using the flexible array member (thus, this module performs
74954         half as many malloc calls), with the addition that...
74955         (getgroup, getuser): Consistently record a non-match via an empty
74956         "name" string, and map an empty string match to a NULL return value.
74957         * modules/idcache (Depends-on): Re-add flexmember.
74958
74959         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74960         (getuidbyname, getgroup, getgidbyname): Likewise.
74961
74962         Use cleaner syntax: NULL rather than 0.
74963         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74964
74965 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74968         It mishandled the case where the group was missing.
74969         Problem reported by Greg Schafer.
74970         * modules/idcache: Likewise.
74971
74972 2006-11-18  Jim Meyering  <jim@meyering.net>
74973
74974         * check-module (%exempt_header): Add exception for some
74975         conditionally-included headers.
74976
74977         * modules/i-ring (Depends-on): Add verify.
74978         (License): Change to LGPL.
74979
74980 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74983         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74984         and inttostr.h.  Use snprintf rather than uinttostr, so that
74985         LGPLed code doesn't depend on GPLed.
74986
74987 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         * modules/inline (License): Change from GPL to LGPL.
74990
74991 2006-11-17  Jim Meyering  <jim@meyering.net>
74992
74993         * modules/d-type (License): Switch to LGPL.
74994
74995 2006-11-15  Bruno Haible  <bruno@clisp.org>
74996
74997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74998
74999 2006-11-15  Eric Blake  <ebb9@byu.net>
75000
75001         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75002         the module dependency.
75003
75004 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75005             Bruno Haible  <bruno@clisp.org>
75006
75007         * gnulib-tool (func_create_testdir): Add license consistency check.
75008
75009 2006-11-15  Eric Blake  <ebb9@byu.net>
75010
75011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75012         random "(cached)" in configure output.
75013
75014 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75015
75016         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75017         test for conforming inttypes.h is both announced and cached.
75018
75019         * MODULES.html.sh (seen_modules, seen_files): New variables.
75020         (func_module): Rewrite to use a few less gnulib-tool and sed
75021         invocations.  Avoid a couple of quadratic algorithms for ...
75022         (missed_modules, missed_files): ... these, with ...
75023         (func_append, func_tmpdir): ... these new functions, from
75024         gnulib-tool.  Analogously, install traps for cleanup.
75025
75026         * tests/test-gc.c (main): Remove unused variables.
75027         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75028
75029 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75030
75031         * modules/inttostr (License): Change to LGPL.
75032
75033 2006-11-14  Eric Blake  <ebb9@byu.net>
75034
75035         * modules/tempname (License): Change to LGPL.
75036
75037 2006-11-14  Eric Blake  <ebb9@byu.net>
75038
75039         * doc/functions.texi (Function Portability): *printf functions on
75040         Cygwin now understand all POSIX size specifiers.
75041
75042 2006-11-14  Bruno Haible  <bruno@clisp.org>
75043
75044         * modules/c-ctype (License): Change to LGPL.
75045
75046 2006-11-12  Bruno Haible  <bruno@clisp.org>
75047
75048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75049         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75050         for GNOME libraries, for which the include files are installed in
75051         subdirectories of $prefix/include.
75052
75053 2006-11-12  Bruno Haible  <bruno@clisp.org>
75054
75055         * m4/lib-link.m4: Require at least autoconf-2.54.
75056         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75057         name to underscores for the --with option.
75058
75059 2006-11-13  Bruno Haible  <bruno@clisp.org>
75060
75061         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75062         the tests directory.
75063         Reported by Ralf Wildenhues.
75064
75065 2006-11-13  Bruno Haible  <bruno@clisp.org>
75066
75067         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75068         (func_emit_initmacro_end): Undo the override here.
75069         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75070         Works around the famous automake error in coreutils.
75071
75072 2006-11-13  Eric Blake  <ebb9@byu.net>
75073
75074         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75075         element, not its node.
75076
75077 2006-11-12  Bruno Haible  <bruno@clisp.org>
75078
75079         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75080         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75081
75082 2006-11-12  Bruno Haible  <bruno@clisp.org>
75083
75084         * gnulib-tool: New option --local-symlink.
75085         (func_usage): Document it.
75086         (lsymbolic): New variable.
75087         (func_import, func_create_testdir): If --symlink was not specified,
75088         test whether --local-symlink was specified and the file comes from
75089         the local_gnulib_dir.
75090
75091 2006-11-12  Bruno Haible  <bruno@clisp.org>
75092
75093         * gnulib-tool (func_ln): New function.
75094         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75095
75096 2006-11-12  Bruno Haible  <bruno@clisp.org>
75097
75098         Finish support for source files in subdirectories.
75099         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75100         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75101         AUTOMAKE_OPTIONS.
75102         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75103
75104 2006-11-12  Bruno Haible  <bruno@clisp.org>
75105
75106         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75107         EXTRA_lib_SOURCES augmentation.
75108         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75109
75110 2006-11-12  Jim Meyering  <jim@meyering.net>
75111
75112         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75113         file descriptors.  This also averts a failure on systems with
75114         native openat support when a traversed directory lacks "x" access.
75115         * lib/fts_.h: Include "i-ring.h"
75116         (struct FTS) [fts_fd_ring]: New member.
75117         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75118         (FCHDIR): Add parentheses.
75119         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75120         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75121         When descending, rather than simply closing the previous
75122         fts_cwd_fd value, push that file descriptor onto the ring.
75123         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75124         (fts_open): Initialize the new fd_ring member.
75125         (fts_close): Clear the ring.
75126         (fts_safe_changedir): When possible, use our new fd_ring to skip
75127         the diropen and fstat and dev/ino comparison that would normally
75128         accompany a virtual `chdir ("..")'.
75129
75130         * modules/fts (Depends-on): Add i-ring.
75131         * modules/i-ring: New module.
75132         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75133         * m4/i-ring.m4: New file.
75134
75135 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75136
75137         * gnulib-tool (func_create_testdir): Fix replacement of
75138         `build-aux' in configure.ac.  Run autotools in gltests
75139         subdirectory.
75140         (func_create_testdir, func_create_megatestdir, test): There is
75141         no need for '--force' in most autotool invocations in a new
75142         tree.  Actually fail the whole test if any of the tools, or the
75143         configure or make stages fail.
75144
75145         Sync from Automake.
75146         * build-aux/gnupload: Revert last change.  Add pointer to upload
75147         instructions of the GNU Maintenance Instructions.
75148         Suggestion by Karl Berry.
75149
75150 2006-11-10  Jim Meyering  <jim@meyering.net>
75151
75152         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75153
75154 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75155
75156         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75157         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75158         (bind_textdomain_codeset) [! ENABLE_NLS]:
75159         Evaluate all the arguments.  That way, callers get compatible behavior
75160         if the arguments have side effects.  Also, it avoids some GCC
75161         diagnostics in some cases; Joel E. Denny reported problems when Bison
75162         was configured with --enable-gcc-warnigs.
75163
75164 2006-11-10  Jim Meyering  <jim@meyering.net>
75165
75166         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75167         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75168         account.
75169
75170 2006-11-10  Jim Meyering  <jim@meyering.net>
75171
75172         * modules/inline: New file/module.
75173         * modules/xalloc (Files): Remove m4/inline.m4.
75174         (Depends-on): Add inline, instead.
75175         * modules/oset: Likewise.
75176         * modules/list: Likewise.
75177
75178 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75181         Problem reported by Matthew Woehlke.
75182
75183 2006-11-09  Bruno Haible  <bruno@clisp.org>
75184
75185         * lib/tempname.c (gen_tempname): Remove variant that invokes
75186         __gen_tempname.
75187         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75188         __gen_tempname.
75189
75190 2006-11-08  Bruno Haible  <bruno@clisp.org>
75191
75192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75193         to 'yes' instead of 'cross-compiling'.
75194
75195 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75196
75197         * lib/quotearg.h (quotearg_free): New decl.
75198         * lib/quotearg.c (quotearg_free): New function.
75199         (slot0, nslots, slotvec0, slotvec):
75200         Now file-scope so that quotearg_free can get at them.
75201
75202 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75203
75204         Sync from Automake.
75205         * build-aux/gnupload: Add missing 'gnu' to example URL.
75206         Report by Karl Berry.
75207
75208 2006-11-08  Bruno Haible  <bruno@clisp.org>
75209
75210         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75211         Suggested by Paul Eggert.
75212
75213 2006-11-08  Jim Meyering  <jim@meyering.net>
75214
75215         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75216         It's already included if !_LIBC.
75217         (fts_safe_changedir): Add a comment.
75218
75219 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75220
75221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75222         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75223         Matthew Woehlke.
75224
75225         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75226         definitions up, to avoid colliding with change below.
75227         (static_inline) [HAVE_INLINE]: New macro.
75228         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75229         Provide extern decls when !HAVE_INLINE.  Do not define unless
75230         static_inline is defined, either by us or by xmalloc.c.  Use
75231         static_inline rather than static inline.
75232         (XCALLOC): Optimize sizeof(T) = 1 case.
75233         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75234
75235 2006-11-07  Bruno Haible  <bruno@clisp.org>
75236
75237         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75238         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75239         AC_C_INLINE.
75240         * modules/xalloc (Files): Add m4/inline.m4.
75241
75242 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75243
75244         * README: Fix typo.
75245         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75246         (Miscellanous Notes): ...from this.
75247
75248 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75251         Mention that offsetof should be used instead of sizeof.
75252         From Bruno Haible.
75253
75254 2006-11-07  Bruno Haible  <bruno@clisp.org>
75255
75256         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75257
75258 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75259
75260         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75261         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75262         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75263         (gl_tree_add_before, gl_tree_add_after):
75264         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75265         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75266         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75268         (gl_linked_add_after, gl_linked_add_at): Likewise.
75269         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75270         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75271         (gl_tree_add_before, gl_tree_add_after): Likewise.
75272         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75273         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75274         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75275
75276 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75277
75278         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75279
75280 2006-11-06  Bruno Haible  <bruno@clisp.org>
75281
75282         * m4/inline.m4: New file.
75283         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75284         * modules/list (Files): Add m4/inline.m4.
75285         * modules/oset (Files): Likewise.
75286
75287 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/idcache.c: Include <stddef.h>, for offsetof.
75290         (struct userid.name): Change from char * to a flexible array member.
75291         All uses changed.
75292         * modules/idcache (Depends-on): Add flexmember.
75293
75294         * MODULES.html.sh (Core language properties): New module flexmember.
75295         * modules/flexmember, m4/flexmember.m4: New files.
75296
75297         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75298         inline functions that are identical with the old xnmalloc_inline,
75299         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75300         that we can avoid some unnecessary integer multiplications and
75301         divisions in the common case where the element size is known at
75302         compile time.
75303         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75304         needed.
75305         (xnboundedmalloc): Remove.
75306         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75307         arguments, for consistency with rest of this header.
75308         (xcharalloc): Rewrite using XNMALLOC.
75309         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75310         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75311         versions have been moved to lib/xalloc.h and renamed to be the
75312         non-*_inline versions.
75313         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75314         and xnrealloc functions, since those functions are now inline and
75315         now call us.
75316         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75317         renaming described above.
75318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75319         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75320         captures the dependency in AC_C_INLINE.
75321
75322         New module canonicalize-lgpl, proposed by Charles Wilson in
75323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75324         with a few small changes afterwards.
75325         * MODULES.html.sh (File system functions): New module
75326         canonicalize-lgpl.
75327         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75328         and canonicalize_file_name.
75329         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75330         * modules/canonicalize-lgpl: New files.
75331
75332 2006-11-05  Bruno Haible  <bruno@clisp.org>
75333
75334         * gnulib-tool (func_import, func_create_testdir): Create directories
75335         also for files in subdirectories of lib/.
75336
75337 2006-11-05  Bruno Haible  <bruno@clisp.org>
75338
75339         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75340         ANSI C compliant.
75341
75342 2006-11-03  Bruno Haible  <bruno@clisp.org>
75343
75344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75345         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75346         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75347         (xnboundedmalloc): New inline function.
75348         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75349         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75350         xmalloc.
75351         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75352         xmalloc.
75353         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75354         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75355         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75356         xmalloc.
75357         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75358         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75359         xmalloc.
75360         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75361         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75362         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75363         xmalloc.
75364         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75365         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75366         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75367         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75368         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75369         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75370         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75371
75372 2006-11-03  Bruno Haible  <bruno@clisp.org>
75373
75374         * lib/c-ctype.h [C++]: Define functions without name mangling.
75375         * lib/fwriteerror.h [C++]: Likewise.
75376         * lib/gcd.h [C++]: Likewise.
75377         * lib/linebreak.h [C++]: Likewise.
75378
75379 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75382         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75383         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75385         Check for functions and headers just once.
75386         Check for declaration of canonicalize_file_name.
75387         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75388
75389 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75390
75391         * gnulib-tool (func_import): Fix typo in actioncmd.
75392
75393 2006-11-02  Bruno Haible  <bruno@clisp.org>
75394
75395         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75396         newline sequence in the Makefile.am snippet as a space, like "make"
75397         does.
75398         Reported by Roger Persson <perrog@gmail.com>.
75399
75400 2006-11-01  Bruno Haible  <bruno@clisp.org>
75401
75402         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75403         already declared in <string.h>.
75404         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75405
75406 2006-11-01  Bruno Haible  <bruno@clisp.org>
75407
75408         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75409         * lib/strcase.h: Include <string.h>.
75410         (strcasecmp): Define to rpl_strcasecmp here.
75411
75412 2006-11-01  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75415
75416 2006-11-01  Eric Blake  <ebb9@byu.net>
75417
75418         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75419
75420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75421
75422 2006-10-29  Bruno Haible  <bruno@clisp.org>
75423
75424         Make it compile in C++ mode.
75425         * lib/full-write.c (full_rw): Add a cast.
75426
75427 2006-11-01  Bruno Haible  <bruno@clisp.org>
75428
75429         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75430         be POSIX compliant.
75431         Reported by Roger Persson <perrog@gmail.com>.
75432
75433 2006-11-01  Eric Blake  <ebb9@byu.net>
75434
75435         * lib/getopt_.h: Fix comments.
75436
75437 2006-10-31  Eric Blake  <ebb9@byu.net>
75438
75439         * modules/tmpdir (Depends-on): Add sys_stat.
75440         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75441         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75442         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75443         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75444         tempname.
75445
75446 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         Avoid some C++ diagnostics reported by Bruno Haible.
75449         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75450         xmalloc.
75451         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75452         (struct slotvec): Move to top level.
75453         (quotearg_n_options): Rewrite to avoid xmalloc.
75454         * lib/xalloc.h (xcharalloc): New function.
75455         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75456         [defined __cplusplus]: Add function template that provides result
75457         type propagation.  This part of the change is from Bruno Haible.
75458
75459 2006-10-29  Bruno Haible  <bruno@clisp.org>
75460
75461         Make it compile in C++ mode.
75462         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75463         * lib/strnlen1.c (strnlen1): Cast memchr result.
75464         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75465         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75466         (create_temp_dir): Rename local variable 'template'.
75467         (compile_csharp_using_sscli): Add cast.
75468         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75469         * lib/findprog.c (find_in_path): Likewise.
75470         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75471         * lib/wait-process.c (register_slave_subprocess): Likewise.
75472
75473 2006-10-22  Bruno Haible  <bruno@clisp.org>
75474
75475         * modules/tsearch: New file.
75476         * lib/tsearch.h: New file.
75477         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75478         * m4/tsearch.m4: New file.
75479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75480
75481 2006-10-29  Eric Blake  <ebb9@byu.net>
75482
75483         * lib/arcfour.c: Assume config.h.
75484         * lib/arctwo.c: Likewise.
75485         * lib/base64.c: Likewise.
75486         * lib/check-version.c: Likewise.
75487         * lib/crc.c: Likewise.
75488         * lib/des.c: Likewise.
75489         * lib/gc-gnulib.c: Likewise.
75490         * lib/gc-libgcrypt.c: Likewise.
75491         * lib/gc-pbkdf2-sha1.c: Likewise.
75492         * lib/getaddrinfo.c: Likewise.
75493         * lib/getdelim.c: Likewise.
75494         * lib/getline.c: Likewise.
75495         * lib/hmac-md5.c: Likewise.
75496         * lib/hmac-sha1.c: Likewise.
75497         * lib/iconvme.c: Likewise.
75498         * lib/md2.c: Likewise.
75499         * lib/md4.c: Likewise.
75500         * lib/memxor.c: Likewise.
75501         * lib/read-file.c: Likewise.
75502         * lib/readline.c: Likewise.
75503         * lib/rijndael-alg-fst.c: Likewise.
75504         * lib/rijndael-api-fst.c: Likewise.
75505         * lib/xgetdomainname.c: Likewise.
75506
75507 2006-10-28  Eric Blake  <ebb9@byu.net>
75508
75509         * lib/xstrndup.c: Assume config.h.
75510
75511 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75514         stat-macros.h is now for our own macros, whereas stat_h is for
75515         macros in the <sys/stat.h> name space.
75516         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75517         (STAT_MACROS_H): Remove.
75518         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75519         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75520         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75521         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75522         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75523         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75524         Move these macros to ...
75525         * lib/stat_.h: here.  Don't include stat-macros.h.
75526         * lib/canonicalize.c: Don't include stat-macros.h.
75527         * lib/chown.c: Likewise.
75528         * lib/euidaccess.c: Likewise.
75529         * lib/file-type.c: Likewise.
75530         * lib/filemode.c: Likewise.
75531         * lib/glob.c: Likewise.
75532         * lib/isapipe.c: Likewise.
75533         * lib/lchown.c: Likewise.
75534         * lib/lstat.c: Likewise.
75535         * lib/mkdir-p.c: Likewise.
75536         * lib/rmdir.c: Likewise.
75537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75539         unless mkdir isn't declared, to speed up 'configure'.
75540         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75541         would define all the S_* symbols.
75542         * modules/canonicalize (Depends-on):
75543         Depend on sys_stat, not stat-macros.
75544         * modules/chown: Likewise.
75545         * modules/euidaccess: Likewise.
75546         * modules/filemode: Likewise.
75547         * modules/file-type: Likewise.
75548         * modules/glob: Likewise.
75549         * modules/isapipe: Likewise.
75550         * modules/lchown: Likewise.
75551         * modules/lstat: Likewise.
75552         * modules/mkancesdirs: Likewise.
75553         * modules/rmdir: Likewise.
75554         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75555         * modules/modechange: Likewise.
75556         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75557         (configure.ac): Remove gl_STAT_MACROS.
75558         * modules/sys_stat (Depends-on): Remove stat-macros.
75559
75560 2006-10-27  Bruno Haible  <bruno@clisp.org>
75561
75562         * m4/signed.m4: Remove file.
75563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75564         invocation.
75565         * modules/vasnprintf (Files): Remove m4/signed.m4.
75566
75567 2006-10-27  Bruno Haible  <bruno@clisp.org>
75568
75569         Update to GNU gettext 0.16.
75570         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75571         m4/inttypes-h.m4, m4/signed.m4.
75572         * m4/gettext.m4: Update to GNU gettext 0.16.
75573         * m4/intl.m4: New file, from GNU gettext.
75574         * m4/intldir.m4: New file, from GNU gettext.
75575         * config/srclist.txt: Update
75576
75577 2006-10-27  Eric Blake  <ebb9@byu.net>
75578
75579         * MODULES.html.sh: Document tempname.
75580         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75581         dependencies.
75582         (Files): Move lib/tempname.c...
75583         * modules/tempname: ...to this new module.
75584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75585         (gl_PREREQ_TEMPNAME): Move...
75586         * m4/tempname.m4: ...to this new file.
75587         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75588         * modules/sys_stat (Depends-on): Add stat-macros.
75589         * lib/stat_.h (includes): Pick up stat macros.
75590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75591         if stat macros are broken.
75592         * lib/tempname.c (includes): No need to include "stat-macros.h".
75593         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75594         (direxists, __path_search) [!_LIBC]: Don't compile these in
75595         gnulib; the tmpdir module covers that.
75596         * lib/tempname.h: New file.
75597
75598 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * COPYING: Explain how gnulib-tool converts licence headers.
75601         Almost all wording by Eric Blake.
75602
75603 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75604
75605         * lib/mbchar.h (is_basic_table): Make read-only.
75606         * lib/mbchar.c (is_basic_table): Likewise.
75607         Reported by John Darrington.
75608
75609 2006-10-25  Bruno Haible  <bruno@clisp.org>
75610
75611         * lib/progname.h (set_program_name): Undefine before defining.
75612
75613 2006-10-25  Bruno Haible  <bruno@clisp.org>
75614
75615         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75616         false for non-gcc C++ compilers.
75617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75618
75619 2006-10-24  Bruno Haible  <bruno@clisp.org>
75620
75621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75622         iconv implementations like Irix iconv.
75623
75624 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         * modules/vararrays: New file.
75627         * m4/vararrays.m4: New file, taken from diffutils.
75628         * MODULES.html.sh: New module vararrays.
75629
75630 2006-10-24  Karl Berry  <karl@gnu.org>
75631
75632         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75633         Don't call GNU Unix.
75634
75635 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75636
75637         * users.txt: Add Libtool.
75638
75639         Sync from Libtool:
75640
75641         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75644         to gnulib's policy of including config.h unconditionally.
75645
75646 2006-10-24  Bruno Haible  <bruno@clisp.org>
75647
75648         * modules/wcwidth (Files): Add m4/wint_t.m4.
75649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75650         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75651
75652 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75653
75654         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75655         to pacify GCC with some -W flags enabled.  Problem reported by
75656         Bruno Haible.
75657
75658 2006-10-24  Jim Meyering  <jim@meyering.net>
75659
75660         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75661         Reported by Karl Berry.
75662
75663 2006-10-23  Bruno Haible  <bruno@clisp.org>
75664
75665         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75666
75667 2006-10-24  Bruno Haible  <bruno@clisp.org>
75668
75669         * lib/gl_list.h: Use C comment style, not C++ comment style.
75670
75671 2006-10-23  Eric Blake  <ebb9@byu.net>
75672
75673         * lib/getaddrinfo.c (includes): Add missing include.
75674
75675 2006-10-23  Bruno Haible  <bruno@clisp.org>
75676             Paul Eggert  <eggert@cs.ucla.edu>
75677
75678         Ability to rename obstack_free.
75679         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75680         obstack_free.
75681         (obstack_free): Invoke the __obstack_free macro.
75682         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75683
75684 2006-10-23  Bruno Haible  <bruno@clisp.org>
75685             Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75688         __argc, __argv from the declaration. (They are defined as macros on
75689         mingw.)
75690
75691 2006-10-22  Bruno Haible  <bruno@clisp.org>
75692
75693         * doc/gnulib-intro.texi: New file.
75694         * doc/gnulib.texi: Include it.
75695
75696 2006-10-21  Bruno Haible  <bruno@clisp.org>
75697
75698         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75699         "Introduction", "Miscellanous Notes", "Particular Modules".
75700
75701 2006-10-21  Bruno Haible  <bruno@clisp.org>
75702
75703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75704         Change mostlyclean-local rule to avoid sh syntax error from bash
75705         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75706
75707 2006-10-23  Jim Meyering  <jim@meyering.net>
75708
75709         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75710         in place of snprintf.
75711
75712         * modules/inttostr (Files): Add lib/uinttostr.c.
75713         * lib/uinttostr.c (inttostr): New file/function.
75714         * lib/inttostr.h (uinttostr): Declare.
75715         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75716         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75717         Add uinttostr.
75718         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75719
75720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * lib/canonicalize.c (ELOOP): Define if not already defined.
75723         Problem reported by Bruno Haible in
75724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75725
75726 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75729         Problem reported by Perry Smith and Ville Laurikari.
75730
75731         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75732         uses.
75733
75734 2006-10-19  Bruno Haible  <bruno@clisp.org>
75735
75736         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75737         for mingw.
75738
75739 2006-10-19  Bruno Haible  <bruno@clisp.org>
75740
75741         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75742         Needed for mingw.
75743
75744 2006-10-19  Bruno Haible  <bruno@clisp.org>
75745
75746         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75747
75748 2006-10-19  Bruno Haible  <bruno@clisp.org>
75749
75750         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75751         it.
75752
75753 2006-10-19  Bruno Haible  <bruno@clisp.org>
75754
75755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75756         invocation.
75757
75758 2006-10-19  Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75761         mountlist by default.
75762
75763 2006-10-16  Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/c-strstr.c: Include c-strstr.h.
75766
75767 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75768
75769         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75770         in a slash.
75771
75772 2006-10-18  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/lock.h [C++]: Wrap definitions in extern "C".
75775
75776 2006-10-18  Bruno Haible  <bruno@clisp.org>
75777
75778         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75779         gl_LIBOBJS list.
75780
75781 2006-10-18  Bruno Haible  <bruno@clisp.org>
75782
75783         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75784
75785 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * lib/xstrtol.h: Include gettext.h.
75788         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75789         Problem reported by Eric Blake.
75790         * modules/xstrtol (Depends-on): Add gettext-h.
75791
75792 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75793
75794         * lib/strftime.c (advance): New macro.
75795         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75796         incomplete type, so you can't add 0 to it.  Problem and patch
75797         reported by Eelco Dolstra for dietlibc.
75798
75799 2006-10-18  Jim Meyering  <jim@meyering.net>
75800
75801         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75802         type for a local, and rename it: s/up/user_proc/.
75803
75804 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75805
75806         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75807         READ_UTMP_USER_PROCESS.
75808         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75809
75810 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75813         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75814
75815 2006-10-17  Eric Blake  <ebb9@byu.net>
75816
75817         * lib/sigprocmask.c (sigprocmask): Fix typo.
75818
75819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75820
75821         * modules/clean-temp (Makefile.am): Don't add to make output...
75822         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75823         config.h.
75824
75825 2006-10-17  Bruno Haible  <bruno@clisp.org>
75826
75827         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75828         differently if DEFAULT_TEXT_DOMAIN is set.
75829
75830 2006-10-16  Bruno Haible  <bruno@clisp.org>
75831
75832         * lib/clean-temp.c: Include fwriteerror.h.
75833
75834 2006-10-16  Bruno Haible  <bruno@clisp.org>
75835
75836         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75837
75838 2006-10-16  Bruno Haible  <bruno@clisp.org>
75839
75840         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75841         * lib/sigprocmask.h: Include <sys/types.h>.
75842         (sigset_t): Use the system's definition if present.
75843
75844 2006-10-17  Eric Blake  <ebb9@byu.net>
75845
75846         * lib/xvasprintf.c (includes): Assume config.h.
75847         * lib/xasprintf.c (includes): Likewise.
75848
75849 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75852         at least as wide as intmax_t.
75853
75854 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75855
75856         (Imported from Automake.)
75857         * build-aux/gnupload: Update to version 1.1 of directive file.
75858
75859 2006-10-16  Eric Blake  <ebb9@byu.net>
75860
75861         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75862         match Automake 1.10a.
75863
75864 2006-10-14  Bruno Haible  <bruno@clisp.org>
75865
75866         * modules/sigprocmask: New file.
75867         * lib/sigprocmask.h: New file.
75868         * lib/sigprocmask.c: New file.
75869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75870         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75871         request sigprocmask.o.
75872         (gl_PREREQ_SIGPROCMASK): New macro.
75873         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75874         (Depends-on): Add sigprocmask.
75875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75876         gt_SIGNALBLOCKING. Test for 'raise' only once.
75877         * lib/fatal-signal.c: Include sigprocmask.h.
75878         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75879         unblock_fatal_signals): Define always.
75880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75881         sigprocmask.
75882
75883 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         Sync from Automake.
75886         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75887         which incorrectly sets the mode of an existing destination
75888         directory.  In some cases the unpatched install-sh could do the
75889         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75890         system.  We hope this is rare in practice, but it's clearly worth
75891         fixing.  Problem reported by Alex Unleashed in
75892         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75893         Also, don't bother to check for -m bugs unless we're using -m;
75894         suggested by Stepan Kasal.
75895
75896 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75897
75898         Sync from Automake.
75899         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75900         `-c' flag, so they appear at the same position as in %FASTDEP%
75901         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75902         which ignores unknown options only after the first non-option.
75903         Bug report against M4 by Nelson H. F. Beebe.
75904
75905 2006-10-13  Jim Meyering  <jim@meyering.net>
75906
75907         Fix a bug in yesterday's change.
75908         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75909         p->fts_statp->st_dev would be used uninitialized.
75910         Ensures that we always call fts_stat on the very first entry.
75911         Miklos Szeredi reported that find -xdev stopped working.
75912
75913 2006-10-12  Bruno Haible  <bruno@clisp.org>
75914
75915         * gnulib-tool (func_get_automake_snippet): Append an automatically
75916         computed EXTRA_DIST augmentation.
75917         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75918         * modules/alloca-opt (Makefile.am): Likewise.
75919         * modules/allocsa (Makefile.am): Likewise.
75920         * modules/arcfour (Makefile.am): Likewise.
75921         * modules/arctwo (Makefile.am): Likewise.
75922         * modules/argmatch (Makefile.am): Likewise.
75923         * modules/argz (Makefile.am): Likewise.
75924         * modules/atexit (Makefile.am): Likewise.
75925         * modules/backupfile (Makefile.am): Likewise.
75926         * modules/byteswap (Makefile.am): Likewise.
75927         * modules/c-strtod (Makefile.am): Likewise.
75928         * modules/c-strtold (Makefile.am): Likewise.
75929         * modules/calloc (Makefile.am): Likewise.
75930         * modules/canon-host (Makefile.am): Likewise.
75931         * modules/canonicalize (Makefile.am): Likewise.
75932         * modules/chdir-long (Makefile.am): Likewise.
75933         * modules/chdir-safer (Makefile.am): Likewise.
75934         * modules/check-version (Makefile.am): Likewise.
75935         * modules/chown (Makefile.am): Likewise.
75936         * modules/cloexec (Makefile.am): Likewise.
75937         * modules/close-stream (Makefile.am): Likewise.
75938         * modules/closeout (Makefile.am): Likewise.
75939         * modules/crc (Makefile.am): Likewise.
75940         * modules/csharpexec (Makefile.am): Likewise.
75941         * modules/cycle-check (Makefile.am): Likewise.
75942         * modules/des (Makefile.am): Likewise.
75943         * modules/dev-ino (Makefile.am): Likewise.
75944         * modules/dirfd (Makefile.am): Likewise.
75945         * modules/dirname (Makefile.am): Likewise.
75946         * modules/dup2 (Makefile.am): Likewise.
75947         * modules/eealloc (Makefile.am): Likewise.
75948         * modules/error (Makefile.am): Likewise.
75949         * modules/euidaccess (Makefile.am): Likewise.
75950         * modules/exclude (Makefile.am): Likewise.
75951         * modules/exitfail (Makefile.am): Likewise.
75952         * modules/fcntl-safer (Makefile.am): Likewise.
75953         * modules/fcntl (Makefile.am): Likewise.
75954         * modules/file-type (Makefile.am): Likewise.
75955         * modules/fileblocks (Makefile.am): Likewise.
75956         * modules/filemode (Makefile.am): Likewise.
75957         * modules/filenamecat (Makefile.am): Likewise.
75958         * modules/fnmatch (Makefile.am): Likewise.
75959         * modules/fopen-safer (Makefile.am): Likewise.
75960         * modules/fpending (Makefile.am): Likewise.
75961         * modules/fprintftime (Makefile.am): Likewise.
75962         * modules/free (Makefile.am): Likewise.
75963         * modules/fsusage (Makefile.am): Likewise.
75964         * modules/ftruncate (Makefile.am): Likewise.
75965         * modules/fts (Makefile.am): Likewise.
75966         * modules/gc-arcfour (Makefile.am): Likewise.
75967         * modules/gc-des (Makefile.am): Likewise.
75968         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75969         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75970         * modules/gc-md4 (Makefile.am): Likewise.
75971         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75972         * modules/gc-sha1 (Makefile.am): Likewise.
75973         * modules/gc (Makefile.am): Likewise.
75974         * modules/getaddrinfo (Makefile.am): Likewise.
75975         * modules/getcwd (Makefile.am): Likewise.
75976         * modules/getdelim (Makefile.am): Likewise.
75977         * modules/getdomainname (Makefile.am): Likewise.
75978         * modules/getgroups (Makefile.am): Likewise.
75979         * modules/gethostname (Makefile.am): Likewise.
75980         * modules/gethrxtime (Makefile.am): Likewise.
75981         * modules/getline (Makefile.am): Likewise.
75982         * modules/getloadavg (Makefile.am): Likewise.
75983         * modules/getlogin_r (Makefile.am): Likewise.
75984         * modules/getndelim2 (Makefile.am): Likewise.
75985         * modules/getopt (Makefile.am): Likewise.
75986         * modules/getpagesize (Makefile.am): Likewise.
75987         * modules/getpass-gnu (Makefile.am): Likewise.
75988         * modules/getpass (Makefile.am): Likewise.
75989         * modules/getsubopt (Makefile.am): Likewise.
75990         * modules/gettime (Makefile.am): Likewise.
75991         * modules/gettimeofday (Makefile.am): Likewise.
75992         * modules/getugroups (Makefile.am): Likewise.
75993         * modules/getusershell (Makefile.am): Likewise.
75994         * modules/glob (Makefile.am): Likewise.
75995         * modules/group-member (Makefile.am): Likewise.
75996         * modules/hard-locale (Makefile.am): Likewise.
75997         * modules/hash (Makefile.am): Likewise.
75998         * modules/hmac-md5 (Makefile.am): Likewise.
75999         * modules/hmac-sha1 (Makefile.am): Likewise.
76000         * modules/human (Makefile.am): Likewise.
76001         * modules/idcache (Makefile.am): Likewise.
76002         * modules/imaxabs (Makefile.am): Likewise.
76003         * modules/imaxdiv (Makefile.am): Likewise.
76004         * modules/inet_ntop (Makefile.am): Likewise.
76005         * modules/inet_pton (Makefile.am): Likewise.
76006         * modules/intprops (Makefile.am): Likewise.
76007         * modules/inttostr (Makefile.am): Likewise.
76008         * modules/inttypes (Makefile.am): Likewise.
76009         * modules/isapipe (Makefile.am): Likewise.
76010         * modules/javaversion (Makefile.am): Likewise.
76011         * modules/lchmod (Makefile.am): Likewise.
76012         * modules/lchown (Makefile.am): Likewise.
76013         * modules/localcharset (Makefile.am): Likewise.
76014         * modules/long-options (Makefile.am): Likewise.
76015         * modules/lstat (Makefile.am): Likewise.
76016         * modules/malloc (Makefile.am): Likewise.
76017         * modules/mathl (Makefile.am): Likewise.
76018         * modules/mbchar (Makefile.am): Likewise.
76019         * modules/md2 (Makefile.am): Likewise.
76020         * modules/md4 (Makefile.am): Likewise.
76021         * modules/md5 (Makefile.am): Likewise.
76022         * modules/memcasecmp (Makefile.am): Likewise.
76023         * modules/memchr (Makefile.am): Likewise.
76024         * modules/memcmp (Makefile.am): Likewise.
76025         * modules/memcoll (Makefile.am): Likewise.
76026         * modules/memcpy (Makefile.am): Likewise.
76027         * modules/memmem (Makefile.am): Likewise.
76028         * modules/memmove (Makefile.am): Likewise.
76029         * modules/mempcpy (Makefile.am): Likewise.
76030         * modules/memrchr (Makefile.am): Likewise.
76031         * modules/memset (Makefile.am): Likewise.
76032         * modules/memxor (Makefile.am): Likewise.
76033         * modules/mkancesdirs (Makefile.am): Likewise.
76034         * modules/mkdir-p (Makefile.am): Likewise.
76035         * modules/mkdir (Makefile.am): Likewise.
76036         * modules/mkdtemp (Makefile.am): Likewise.
76037         * modules/mkstemp (Makefile.am): Likewise.
76038         * modules/mktime (Makefile.am): Likewise.
76039         * modules/modechange (Makefile.am): Likewise.
76040         * modules/mountlist (Makefile.am): Likewise.
76041         * modules/nanosleep (Makefile.am): Likewise.
76042         * modules/obstack (Makefile.am): Likewise.
76043         * modules/openat (Makefile.am): Likewise.
76044         * modules/pagealign_alloc (Makefile.am): Likewise.
76045         * modules/pathmax (Makefile.am): Likewise.
76046         * modules/physmem (Makefile.am): Likewise.
76047         * modules/poll (Makefile.am): Likewise.
76048         * modules/posixtm (Makefile.am): Likewise.
76049         * modules/posixver (Makefile.am): Likewise.
76050         * modules/putenv (Makefile.am): Likewise.
76051         * modules/quote (Makefile.am): Likewise.
76052         * modules/quotearg (Makefile.am): Likewise.
76053         * modules/raise (Makefile.am): Likewise.
76054         * modules/read-file (Makefile.am): Likewise.
76055         * modules/readline (Makefile.am): Likewise.
76056         * modules/readlink (Makefile.am): Likewise.
76057         * modules/readtokens (Makefile.am): Likewise.
76058         * modules/readutmp (Makefile.am): Likewise.
76059         * modules/realloc (Makefile.am): Likewise.
76060         * modules/regex (Makefile.am): Likewise.
76061         * modules/rename-dest-slash (Makefile.am): Likewise.
76062         * modules/rename (Makefile.am): Likewise.
76063         * modules/rijndael (Makefile.am): Likewise.
76064         * modules/rmdir (Makefile.am): Likewise.
76065         * modules/rpmatch (Makefile.am): Likewise.
76066         * modules/safe-read (Makefile.am): Likewise.
76067         * modules/safe-write (Makefile.am): Likewise.
76068         * modules/same-inode (Makefile.am): Likewise.
76069         * modules/same (Makefile.am): Likewise.
76070         * modules/save-cwd (Makefile.am): Likewise.
76071         * modules/savedir (Makefile.am): Likewise.
76072         * modules/setenv (Makefile.am): Likewise.
76073         * modules/settime (Makefile.am): Likewise.
76074         * modules/sha1 (Makefile.am): Likewise.
76075         * modules/sig2str (Makefile.am): Likewise.
76076         * modules/snprintf (Makefile.am): Likewise.
76077         * modules/stat-macros (Makefile.am): Likewise.
76078         * modules/stat-time (Makefile.am): Likewise.
76079         * modules/stdbool (Makefile.am): Likewise.
76080         * modules/stdint (Makefile.am): Likewise.
76081         * modules/stdlib-safer (Makefile.am): Likewise.
76082         * modules/stpcpy (Makefile.am): Likewise.
76083         * modules/stpncpy (Makefile.am): Likewise.
76084         * modules/strcase (Makefile.am): Likewise.
76085         * modules/strcasestr (Makefile.am): Likewise.
76086         * modules/strchrnul (Makefile.am): Likewise.
76087         * modules/strcspn (Makefile.am): Likewise.
76088         * modules/strdup (Makefile.am): Likewise.
76089         * modules/strerror (Makefile.am): Likewise.
76090         * modules/strftime (Makefile.am): Likewise.
76091         * modules/strndup (Makefile.am): Likewise.
76092         * modules/strnlen (Makefile.am): Likewise.
76093         * modules/strpbrk (Makefile.am): Likewise.
76094         * modules/strsep (Makefile.am): Likewise.
76095         * modules/strstr (Makefile.am): Likewise.
76096         * modules/strtod (Makefile.am): Likewise.
76097         * modules/strtoimax (Makefile.am): Likewise.
76098         * modules/strtok_r (Makefile.am): Likewise.
76099         * modules/strtol (Makefile.am): Likewise.
76100         * modules/strtoll (Makefile.am): Likewise.
76101         * modules/strtoul (Makefile.am): Likewise.
76102         * modules/strtoull (Makefile.am): Likewise.
76103         * modules/strtoumax (Makefile.am): Likewise.
76104         * modules/strverscmp (Makefile.am): Likewise.
76105         * modules/sys_socket (Makefile.am): Likewise.
76106         * modules/sys_stat (Makefile.am): Likewise.
76107         * modules/sysexits (Makefile.am): Likewise.
76108         * modules/time_r (Makefile.am): Likewise.
76109         * modules/timegm (Makefile.am): Likewise.
76110         * modules/timespec (Makefile.am): Likewise.
76111         * modules/tmpfile-safer (Makefile.am): Likewise.
76112         * modules/trim (Makefile.am): Likewise.
76113         * modules/unistd-safer (Makefile.am): Likewise.
76114         * modules/unlinkdir (Makefile.am): Likewise.
76115         * modules/unlocked-io (Makefile.am): Likewise.
76116         * modules/userspec (Makefile.am): Likewise.
76117         * modules/utime (Makefile.am): Likewise.
76118         * modules/utimecmp (Makefile.am): Likewise.
76119         * modules/utimens (Makefile.am): Likewise.
76120         * modules/vasnprintf (Makefile.am): Likewise.
76121         * modules/vasprintf (Makefile.am): Likewise.
76122         * modules/vsnprintf (Makefile.am): Likewise.
76123         * modules/xalloc (Makefile.am): Likewise.
76124         * modules/xgetcwd (Makefile.am): Likewise.
76125         * modules/xnanosleep (Makefile.am): Likewise.
76126         * modules/xreadlink (Makefile.am): Likewise.
76127         * modules/xstrtod (Makefile.am): Likewise.
76128         * modules/xstrtol (Makefile.am): Likewise.
76129         * modules/xstrtold (Makefile.am): Likewise.
76130         * modules/yesno (Makefile.am): Likewise.
76131         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76132
76133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * modules/error (Makefile.am): Distribute files through
76136         EXTRA_DIST, not lib_SOURCES.
76137
76138 2006-10-12  Eric Blake  <ebb9@byu.net>
76139
76140         * modules/error (Makefile.am): Distribute files in /lib.
76141         * modules/obstack (Makefile.am): Likewise.
76142
76143 2006-10-12  Bruno Haible  <bruno@clisp.org>
76144
76145         * modules/acl (Makefile.am): Distribute all files in lib/ through
76146         EXTRA_DIST.
76147         * modules/arcfour (Makefile.am): Likewise.
76148         * modules/arctwo (Makefile.am): Likewise.
76149         * modules/argmatch (Makefile.am): Likewise.
76150         * modules/argz (Makefile.am): Likewise.
76151         * modules/atexit (Makefile.am): Likewise.
76152         * modules/backupfile (Makefile.am): Likewise.
76153         * modules/c-strtod (Makefile.am): Likewise.
76154         * modules/c-strtold (Makefile.am): Likewise.
76155         * modules/calloc (Makefile.am): Likewise.
76156         * modules/canon-host (Makefile.am): Likewise.
76157         * modules/canonicalize (Makefile.am): Likewise.
76158         * modules/chdir-long (Makefile.am): Likewise.
76159         * modules/chdir-safer (Makefile.am): Likewise.
76160         * modules/check-version (Makefile.am): Likewise.
76161         * modules/chown (Makefile.am): Likewise.
76162         * modules/cloexec (Makefile.am): Likewise.
76163         * modules/close-stream (Makefile.am): Likewise.
76164         * modules/closeout (Makefile.am): Likewise.
76165         * modules/crc (Makefile.am): Likewise.
76166         * modules/cycle-check (Makefile.am): Likewise.
76167         * modules/des (Makefile.am): Likewise.
76168         * modules/dirfd (Makefile.am): Likewise.
76169         * modules/dirname (Makefile.am): Likewise.
76170         * modules/dup2 (Makefile.am): Likewise.
76171         * modules/euidaccess (Makefile.am): Likewise.
76172         * modules/exclude (Makefile.am): Likewise.
76173         * modules/exitfail (Makefile.am): Likewise.
76174         * modules/fcntl-safer (Makefile.am): Likewise.
76175         * modules/file-type (Makefile.am): Likewise.
76176         * modules/fileblocks (Makefile.am): Likewise.
76177         * modules/filemode (Makefile.am): Likewise.
76178         * modules/filenamecat (Makefile.am): Likewise.
76179         * modules/fnmatch (Makefile.am): Likewise.
76180         * modules/fopen-safer (Makefile.am): Likewise.
76181         * modules/fpending (Makefile.am): Likewise.
76182         * modules/fprintftime (Makefile.am): Likewise.
76183         * modules/free (Makefile.am): Likewise.
76184         * modules/fsusage (Makefile.am): Likewise.
76185         * modules/ftruncate (Makefile.am): Likewise.
76186         * modules/fts (Makefile.am): Likewise.
76187         * modules/gc (Makefile.am): Likewise.
76188         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76189         * modules/getaddrinfo (Makefile.am): Likewise.
76190         * modules/getcwd (Makefile.am): Likewise.
76191         * modules/getdelim (Makefile.am): Likewise.
76192         * modules/getdomainname (Makefile.am): Likewise.
76193         * modules/getgroups (Makefile.am): Likewise.
76194         * modules/gethostname (Makefile.am): Likewise.
76195         * modules/gethrxtime (Makefile.am): Likewise.
76196         * modules/getline (Makefile.am): Likewise.
76197         * modules/getloadavg (Makefile.am): Likewise.
76198         * modules/getlogin_r (Makefile.am): Likewise.
76199         * modules/getopt (Makefile.am): Likewise.
76200         * modules/getpass (Makefile.am): Likewise.
76201         * modules/getpass-gnu (Makefile.am): Likewise.
76202         * modules/getsubopt (Makefile.am): Likewise.
76203         * modules/gettime (Makefile.am): Likewise.
76204         * modules/gettimeofday (Makefile.am): Likewise.
76205         * modules/getugroups (Makefile.am): Likewise.
76206         * modules/getusershell (Makefile.am): Likewise.
76207         * modules/glob (Makefile.am): Likewise.
76208         * modules/group-member (Makefile.am): Likewise.
76209         * modules/hard-locale (Makefile.am): Likewise.
76210         * modules/hash (Makefile.am): Likewise.
76211         * modules/hmac-md5 (Makefile.am): Likewise.
76212         * modules/hmac-sha1 (Makefile.am): Likewise.
76213         * modules/human (Makefile.am): Likewise.
76214         * modules/idcache (Makefile.am): Likewise.
76215         * modules/imaxabs (Makefile.am): Likewise.
76216         * modules/imaxdiv (Makefile.am): Likewise.
76217         * modules/inet_ntop (Makefile.am): Likewise.
76218         * modules/inet_pton (Makefile.am): Likewise.
76219         * modules/inttostr (Makefile.am): Likewise.
76220         * modules/isapipe (Makefile.am): Likewise.
76221         * modules/lchown (Makefile.am): Likewise.
76222         * modules/long-options (Makefile.am): Likewise.
76223         * modules/lstat (Makefile.am): Likewise.
76224         * modules/malloc (Makefile.am): Likewise.
76225         * modules/mathl (Makefile.am): Likewise.
76226         * modules/mbchar (Makefile.am): Likewise.
76227         * modules/md2 (Makefile.am): Likewise.
76228         * modules/md4 (Makefile.am): Likewise.
76229         * modules/md5 (Makefile.am): Likewise.
76230         * modules/memcasecmp (Makefile.am): Likewise.
76231         * modules/memchr (Makefile.am): Likewise.
76232         * modules/memcmp (Makefile.am): Likewise.
76233         * modules/memcoll (Makefile.am): Likewise.
76234         * modules/memcpy (Makefile.am): Likewise.
76235         * modules/memmem (Makefile.am): Likewise.
76236         * modules/memmove (Makefile.am): Likewise.
76237         * modules/mempcpy (Makefile.am): Likewise.
76238         * modules/memrchr (Makefile.am): Likewise.
76239         * modules/memset (Makefile.am): Likewise.
76240         * modules/memxor (Makefile.am): Likewise.
76241         * modules/mkancesdirs (Makefile.am): Likewise.
76242         * modules/mkdir (Makefile.am): Likewise.
76243         * modules/mkdir-p (Makefile.am): Likewise.
76244         * modules/mkdtemp (Makefile.am): Likewise.
76245         * modules/mkstemp (Makefile.am): Likewise.
76246         * modules/mktime (Makefile.am): Likewise.
76247         * modules/modechange (Makefile.am): Likewise.
76248         * modules/mountlist (Makefile.am): Likewise.
76249         * modules/nanosleep (Makefile.am): Likewise.
76250         * modules/openat (Makefile.am): Likewise.
76251         * modules/pagealign_alloc (Makefile.am): Likewise.
76252         * modules/physmem (Makefile.am): Likewise.
76253         * modules/poll (Makefile.am): Likewise.
76254         * modules/posixtm (Makefile.am): Likewise.
76255         * modules/posixver (Makefile.am): Likewise.
76256         * modules/putenv (Makefile.am): Likewise.
76257         * modules/quote (Makefile.am): Likewise.
76258         * modules/quotearg (Makefile.am): Likewise.
76259         * modules/raise (Makefile.am): Likewise.
76260         * modules/read-file (Makefile.am): Likewise.
76261         * modules/readline (Makefile.am): Likewise.
76262         * modules/readlink (Makefile.am): Likewise.
76263         * modules/readtokens (Makefile.am): Likewise.
76264         * modules/readutmp (Makefile.am): Likewise.
76265         * modules/realloc (Makefile.am): Likewise.
76266         * modules/regex (Makefile.am): Likewise.
76267         * modules/rename (Makefile.am): Likewise.
76268         * modules/rename-dest-slash (Makefile.am): Likewise.
76269         * modules/rijndael (Makefile.am): Likewise.
76270         * modules/rmdir (Makefile.am): Likewise.
76271         * modules/rpmatch (Makefile.am): Likewise.
76272         * modules/safe-read (Makefile.am): Likewise.
76273         * modules/safe-write (Makefile.am): Likewise.
76274         * modules/same (Makefile.am): Likewise.
76275         * modules/save-cwd (Makefile.am): Likewise.
76276         * modules/savedir (Makefile.am): Likewise.
76277         * modules/setenv (Makefile.am): Likewise.
76278         * modules/settime (Makefile.am): Likewise.
76279         * modules/sha1 (Makefile.am): Likewise.
76280         * modules/sig2str (Makefile.am): Likewise.
76281         * modules/snprintf (Makefile.am): Likewise.
76282         * modules/stdlib-safer (Makefile.am): Likewise.
76283         * modules/stpcpy (Makefile.am): Likewise.
76284         * modules/stpncpy (Makefile.am): Likewise.
76285         * modules/strcase (Makefile.am): Likewise.
76286         * modules/strcasestr (Makefile.am): Likewise.
76287         * modules/strchrnul (Makefile.am): Likewise.
76288         * modules/strcspn (Makefile.am): Likewise.
76289         * modules/strdup (Makefile.am): Likewise.
76290         * modules/strerror (Makefile.am): Likewise.
76291         * modules/strftime (Makefile.am): Likewise.
76292         * modules/strndup (Makefile.am): Likewise.
76293         * modules/strnlen (Makefile.am): Likewise.
76294         * modules/strpbrk (Makefile.am): Likewise.
76295         * modules/strsep (Makefile.am): Likewise.
76296         * modules/strstr (Makefile.am): Likewise.
76297         * modules/strtod (Makefile.am): Likewise.
76298         * modules/strtoimax (Makefile.am): Likewise.
76299         * modules/strtok_r (Makefile.am): Likewise.
76300         * modules/strtol (Makefile.am): Likewise.
76301         * modules/strtoll (Makefile.am): Likewise.
76302         * modules/strtoul (Makefile.am): Likewise.
76303         * modules/strtoull (Makefile.am): Likewise.
76304         * modules/strtoumax (Makefile.am): Likewise.
76305         * modules/strverscmp (Makefile.am): Likewise.
76306         * modules/time_r (Makefile.am): Likewise.
76307         * modules/timegm (Makefile.am): Likewise.
76308         * modules/tmpfile-safer (Makefile.am): Likewise.
76309         * modules/unistd-safer (Makefile.am): Likewise.
76310         * modules/unlinkdir (Makefile.am): Likewise.
76311         * modules/userspec (Makefile.am): Likewise.
76312         * modules/utime (Makefile.am): Likewise.
76313         * modules/utimecmp (Makefile.am): Likewise.
76314         * modules/utimens (Makefile.am): Likewise.
76315         * modules/vasnprintf (Makefile.am): Likewise.
76316         * modules/vasprintf (Makefile.am): Likewise.
76317         * modules/vsnprintf (Makefile.am): Likewise.
76318         * modules/xalloc (Makefile.am): Likewise.
76319         * modules/xgetcwd (Makefile.am): Likewise.
76320         * modules/xnanosleep (Makefile.am): Likewise.
76321         * modules/xreadlink (Makefile.am): Likewise.
76322         * modules/xstrtod (Makefile.am): Likewise.
76323         * modules/xstrtol (Makefile.am): Likewise.
76324         * modules/xstrtold (Makefile.am): Likewise.
76325         * modules/yesno (Makefile.am): Likewise.
76326
76327 2006-10-12  Jim Meyering  <jim@meyering.net>
76328
76329         * m4/getloadavg.m4: Revert the change below.
76330
76331         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76332         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76333         fail with a symlink, which is what coreutils' ./bootstrap now
76334         creates by default.
76335
76336 2006-10-12  Bruno Haible  <bruno@clisp.org>
76337
76338         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76339         mingw.
76340         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76341         MSVC and mingw explicitly.
76342
76343 2006-10-11  Simon Josefsson  <jas@extundo.com>
76344             Bruno Haible  <bruno@clisp.org>
76345
76346         Add support for multiple gnulib-tool invocations in the scope of a
76347         single configure.ac file.
76348         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76349         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76350         with the same contents as the _LIBADD variable.
76351         (func_emit_initmacro_start, func_emit_initmacro_end,
76352         func_emit_initmacro_done): New functions.
76353         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76354         gl_LIBOBJS and gl_LTLIBOBJS.
76355
76356 2006-10-11  Bruno Haible  <bruno@clisp.org>
76357
76358         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76359         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76360         autoreconf. Instead, invoke autopoint explicitly but move back the
76361         *.m4 files from gnulib.
76362
76363 2006-10-11  Bruno Haible  <bruno@clisp.org>
76364
76365         * gnulib-tool (func_usage): Make module names after --create-testdir
76366         optional.
76367         (func_create_testdir): If no module was specified, use nearly all
76368         modules.
76369
76370 2006-10-12  Jim Meyering  <jim@meyering.net>
76371
76372         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76373         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76374         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76375         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76376         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76377         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76378         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76379         (fts_set_stat_required): New function.
76380         (fts_open): Defer the calls to fts_stat, if possible or requested.
76381         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76382         into fts_stat itself.
76383         (fts_read): Perform any required (deferred) fts_stat call.
76384         (fts_build): Likewise, for the directory we're about to open and read.
76385         In the readdir loop, carefully decide whether each entry will require
76386         an eventual call to fts_stat, using dirent.d_type info if available.
76387         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76388         a command line argument into this function.  Update all callers.
76389         Map a return value of FTS_DOT to FTS_D for a command line argument.
76390         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76391         Thanks to Miklos Szeredi for his tenacity and for the initial
76392         bug report about "find" failing on a FUSE-based file system.
76393
76394         * lib/fts.c (fts_open): Use consistent indentation.
76395
76396 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76399         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76400         reported by Jim Meyering.  All uses of cache variables renamed
76401         to match Autoconf's.
76402         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76403         the other one.
76404
76405         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76406         Fix misspelling in diagnostic.
76407
76408 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76411         defined.  Problem reported by Matthew Woehlke.
76412
76413         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76414         Add support for Tandem NonStop R series.
76415         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76416         Use new macro.
76417
76418         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76419         (has_trailing_slash): Omit size arg; all callers changed.
76420         Omit 'inline', since it doesn't help performance and we'd
76421         need to configure it.
76422         Don't count //, ///, etc. as having a trailing slash.
76423         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76424         (rpl_rename_dest_slash): On failure, use rename's errno rather
76425         than (in some cases) an incorrect or junk errno.
76426         Simplify code by removing need to compute length; this does
76427         cause it to make two passes instead of one over the file name,
76428         but it's worth it.
76429
76430         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76431         change, since Autoconf's version may no longer be appropriate now
76432         that we are using CVS Autoconf's version.  Add support for Tandem.
76433
76434 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76435             Bruno Haible  <bruno@clisp.org>
76436
76437         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76438         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76439         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76440         gl_AC_TYPE_LONG_LONG.
76441
76442         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76443         instead of HAVE_LONG_LONG.
76444         * lib/printf-args.c (printf_fetchargs): Likewise.
76445         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76446         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76447         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76448         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76449         gl_AC_TYPE_LONG_LONG.
76450
76451 2006-10-11  Bruno Haible  <bruno@clisp.org>
76452
76453         * m4/longlong.m4: Add comments.
76454         * m4/ulonglong.m4: Likewise.
76455
76456 2006-10-10  Bruno Haible  <bruno@clisp.org>
76457
76458         Make it possible to #define stpcpy, strdup to aliases.
76459         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76460         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76461
76462 2006-10-10  Bruno Haible  <bruno@clisp.org>
76463
76464         Make it possible to #define gcd to an alias.
76465         * lib/gcd.c: Include config.h.
76466
76467 2006-10-10  Bruno Haible  <bruno@clisp.org>
76468
76469         Make it possible to #define c_isascii to an alias.
76470         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76471         defined. Undefine the macros before defining them, to avoid gcc
76472         warnings.
76473         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76474         define NO_C_CTYPE_MACROS early.
76475
76476 2006-10-10  Bruno Haible  <bruno@clisp.org>
76477
76478         Make it possible to #define set_program_name to an alias.
76479         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76480         ENABLE_RELOCATABLE early.
76481
76482 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76485         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76486         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76487         More generally, don't assume that 64-bit signed int is available
76488         if unsigned int is, and vice versa.
76489         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76490         unsigned symbols, not on their signed counterparts.
76491         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76492         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76493         (UINT64_C, UINTMAX_C):
76494         Likewise.
76495         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76496         unsigned counterparts.
76497         (Have_long_long, Unsigned): New macros.
76498         (Int): Renamed from INT.
76499         (strtoimax): Use the new macros.
76500         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76501         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76502         * modules/inttypes (inttypes.h): Substitute
76503         HAVE_UNSIGNED_LONG_LONG_INT.
76504         * modules/stdint (stdint.h): Likewise.
76505         (Files): Add m4/ulonglong.m4.
76506
76507 2006-10-10  Bruno Haible  <bruno@clisp.org>
76508
76509         Fix a gcc -Wshadow warning.
76510         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76511         to 'bucket'.
76512         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76513         gl_linked_indexof_from_to): Likewise.
76514         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76515         Likewise.
76516         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76517         Likewise.
76518         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76519         Reported by Eric Blake.
76520
76521 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76524         for NetBSD.  Problem reported by Bruno Haible.
76525
76526 2006-10-09  Jim Meyering  <jim@meyering.net>
76527
76528         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76529         Patch from Bruno Haible.
76530
76531 2006-10-09  Jim Meyering  <jim@meyering.net>
76532
76533         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76534         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76535         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76536
76537 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76538
76539         Don't include <config.h> twice; this doesn't work in some cases,
76540         e.g., when config.h has "#define intmax_t long long int" and
76541         we include <config.h>, <inttypes.h>, <config.h> in that order.
76542         Problem reported by Matthew Woehlke in:
76543         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76544         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76545         * lib/fts-cycle.c: Don't include config.h.
76546         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76547         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76548         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76549         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76550         inttypes.h.
76551         * lib/xstrtoumax.c: Likewise.
76552         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76553         __strtol and the like, so that this module is more like its siblings.
76554         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76555         Remove; no longer needed now that we assume gnulib inttypes.h.
76556
76557 2006-10-08  Bruno Haible  <bruno@clisp.org>
76558
76559         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76560         option.
76561
76562 2006-10-07  Jim Meyering  <jim@meyering.net>
76563
76564         * modules/inttypes (inttypes.h): Revert what seems to have been
76565         an inadvertent part of today's change: use "|", not "/" in the
76566         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76567
76568 2006-10-07  Bruno Haible  <bruno@clisp.org>
76569
76570         * modules/sublist: New file.
76571
76572 2006-10-07  Bruno Haible  <bruno@clisp.org>
76573
76574         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76575         * modules/argz (argz.h): Likewise.
76576         * modules/arpa_inet (arpa/inet.h): Likewise.
76577         * modules/byteswap (byteswap.h): Likewise.
76578         * modules/configmake (configmake.h): Likewise.
76579         * modules/fcntl (fcntl.h): Likewise.
76580         * modules/fnmatch (fnmatch.h): Likewise.
76581         * modules/getopt (getopt.h): Likewise.
76582         * modules/glob (glob.h): Likewise.
76583         * modules/inttypes (inttypes.h): Likewise.
76584         * modules/netinet_in (netinet/in.h): Likewise.
76585         * modules/poll (poll.h): Likewise.
76586         * modules/stdbool (stdbool.h): Likewise.
76587         * modules/stdint (stdint.h): Likewise.
76588         * modules/sys_select (sys/select.h): Likewise.
76589         * modules/sys_socket (sys/socket.h): Likewise.
76590         * modules/sys_stat (sys/stat.h): Likewise.
76591         * modules/sysexits (sysexits.h): Likewise.
76592         * modules/unistd (unistd.h): Likewise.
76593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76594         Add a "DO NOT EDIT" comment to the generated file.
76595         (func_import): Likewise for gnulib-comp.m4.
76596
76597 2006-10-07  Bruno Haible  <bruno@clisp.org>
76598
76599         * lib/gl_sublist.h: New file.
76600         * lib/gl_sublist.c: New file.
76601
76602 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76605         name (relative to the original working directory) and the file
76606         name component (relative to the temporary working directory).  All
76607         callers changed.
76608         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76609         * lib/mkdir-p.c (make_dir_parents): Likewise.
76610         * lib/mkdir-p.h (make_dir_parents): Likewise.
76611
76612 2006-10-06  Eric Blake  <ebb9@byu.net>
76613
76614         Define several macros for use by the clean-temp module.
76615         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76618
76619         * lib/clean-temp.h (close_stream_temp): New declaration.
76620         * lib/clean-temp.c (includes): Pull in headers according to what
76621         other modules are in use.
76622         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76623
76624 2006-10-06  Bruno Haible  <bruno@clisp.org>
76625
76626         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76627         instead of fopen, fwriteerror.
76628
76629 2006-10-06  Bruno Haible  <bruno@clisp.org>
76630
76631         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76632         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76633         int.
76634         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76635         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76636         Return an error indicator.
76637         Suggested by Eric Blake.
76638
76639 2006-10-06  Bruno Haible  <bruno@clisp.org>
76640
76641         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76642         Reported by Eric Blake.
76643
76644 2006-10-06  Bruno Haible  <bruno@clisp.org>
76645
76646         * modules/closeout (Description): Mention stderr too.
76647
76648 2006-10-06  Bruno Haible  <bruno@clisp.org>
76649         and Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         * lib/closeout.c (close_stdout): Also close stderr.
76652         * lib/closeout.h: Update comment.
76653
76654 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76657         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76658         * lib/dirchownmod.c: Include lchown.h.
76659         * lib/lchown.c: Don't include files that lchown.h now includes.
76660         Don't declare chown, since lchown.h now does that.
76661         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76662         (lchown): Define to rpl_chown if lchown is declared but
76663         does not exist.  Declare using a prototype if lchown is not
76664         declared.  Add a copyright notice.
76665         * lib/mkstemp.h: Include <unistd.h>.
76666         * lib/openat.c: Include lchown.h.
76667
76668         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76669         we now test for that separately.
76670         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76671         rather than O_NOFOLLOW, when testing whether it's possible to
76672         avoid a race condition reliably.
76673         * lib/savewd.c (savewd_chdir): Likewise.
76674
76675         Remove macros that are no longer needed now that stdint.h is
76676         reliable.
76677         * lib/fsusage.c (UINTMAX_MAX): Remove.
76678         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76679         * lib/utimecmp.c (SIZE_MAX): Remove.
76680
76681         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76682
76683         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76684         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76685         O_NOATIME works.
76686
76687 2006-10-05  Bruno Haible  <bruno@clisp.org>
76688
76689         * lib/gl_list.h (gl_sortedlist_search_from_to,
76690         gl_sortedlist_indexof_from_to): New declarations.
76691         (gl_list_implementation): New fields sortedlist_search_from_to,
76692         sortedlist_indexof_from_to.
76693         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76694         inline functions.
76695         * lib/gl_list.c (gl_sortedlist_search_from_to,
76696         gl_sortedlist_indexof_from_to): New functions.
76697         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76698         function.
76699         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76700         (gl_array_sortedlist_search_from_to): New function.
76701         (gl_array_list_implementation): Update.
76702         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76703         function.
76704         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76705         (gl_carray_sortedlist_search_from_to): New function.
76706         (gl_carray_list_implementation): Update.
76707         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76708         gl_linked_sortedlist_indexof_from_to): New functions.
76709         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76710         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76711         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76712         gl_tree_sortedlist_indexof_from_to): New functions.
76713         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76714         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76715         Update.
76716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76717         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76718         Update.
76719
76720 2006-10-05  Bruno Haible  <bruno@clisp.org>
76721
76722         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76723         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76724         (struct gl_list_implementation): Add fields search_from_to,
76725         indexof_from_to. Remove fields search, indexof.
76726         (gl_list_search): Use the search_from_to method.
76727         (gl_list_search_from, gl_list_search_from_to): New functions.
76728         (gl_list_indexof): Use the indexof_from_to method.
76729         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76730         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76731         (gl_list_search_from, gl_list_search_from_to): New functions.
76732         (gl_list_indexof): Use the indexof_from_to method.
76733         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76734         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76735         gl_array_indexof. Add start_index, end_index arguments.
76736         (gl_array_search_from_to): Renamed from gl_array_search. Add
76737         start_index, end_index arguments.
76738         (gl_array_remove, gl_array_list_implementation): Update.
76739         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76740         gl_carray_indexof. Add start_index, end_index arguments.
76741         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76742         start_index, end_index arguments.
76743         (gl_carray_remove, gl_carray_list_implementation): Update.
76744         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76745         gl_linked_search. Add start_index, end_index arguments.
76746         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76747         start_index, end_index arguments.
76748         (gl_linked_remove): Update.
76749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76751         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76752         field to 'size_t'.
76753         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76754         gl_tree_search. Add start_index, end_index arguments.
76755         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76756         start_index, end_index arguments.
76757         (gl_tree_remove): Update.
76758         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76759         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76760         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76761         function.
76762         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76763         gl_tree_search. Add start_index, end_index arguments.
76764         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76765         start_index, end_index arguments.
76766         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76767         Update.
76768         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76769
76770 2006-10-05  Bruno Haible  <bruno@clisp.org>
76771
76772         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76773
76774         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76775         fwriteerror_temp): New declarations.
76776         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76777         (descriptors): New variable.
76778         (cleanup): First, close the descriptors.
76779         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76780         fclose_temp, fwriteerror_temp): New functions.
76781
76782 2006-10-04  Jim Meyering  <jim@meyering.net>
76783
76784         * lib/fts.c (fts_open): Tiny comment change.
76785
76786 2006-10-04  Bruno Haible  <bruno@clisp.org>
76787
76788         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76789         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76790         gl_LOCK_BODY.
76791         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76792         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76793         gl_LOCK_EARLY_BODY.
76794         (gl_LOCK): Require gl_LOCK_BODY.
76795
76796 2006-10-04  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76799         (gl_oset_search_atleast): New declaration.
76800         (struct gl_oset_implementation): Add field 'search_atleast'.
76801         (gl_oset_search_atleast): New inline function.
76802         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76803         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76804         (gl_array_oset_implementation): Update.
76805         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76806         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76807         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76808
76809 2006-10-04  Bruno Haible  <bruno@clisp.org>
76810
76811         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76812
76813 2006-10-03  Bruno Haible  <bruno@clisp.org>
76814
76815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76816         from gl_avltreehash_list_implementation.
76817
76818 2006-10-03  Bruno Haible  <bruno@clisp.org>
76819
76820         * lib/gl_oset.c (gl_oset_add): Fix return type.
76821
76822 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76823
76824         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76825
76826 2006-10-02  Eric Blake  <ebb9@byu.net>
76827
76828         * modules/strnlen (Depends-on): Add extensions.
76829
76830 2006-10-02  Eric Blake  <ebb9@byu.net>
76831
76832         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76833         definition in 2.60+.
76834
76835 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76836
76837         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76838         checks.
76839
76840 2006-10-02  Bruno Haible  <bruno@clisp.org>
76841
76842         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76843         to the AUTOMAKE_OPTIONS.
76844         Reported by Jim Meyering.
76845
76846 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         Work around bug in Solaris 10 /proc file system:
76849         /proc/self/fd/NNN/.. isn't the parent directory of
76850         the directory whose file descriptor is NNN.  This needs to
76851         be worked around at run time, not compile time, since a
76852         program might be built on Solaris 8, where things work, and
76853         run on Solaris 10.
76854         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76855         to use the following interface instead:
76856         (OPENAT_BUFFER_SIZE): New macro.
76857         (openat_proc_name): New function.
76858         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76859         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76860         Likewise.
76861         * lib/openat-proc.c: New file.
76862         * modules/openat (Files): Add lib/openat-proc.c.
76863         (Depends-on): Add same-inode, stdbool.
76864         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76865
76866 2006-09-29  Bruno Haible  <bruno@clisp.org>
76867
76868         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76869         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76870         argument. Set stdout_closed before testing for ferror, not after.
76871         (fwriteerror, fwriteerror_no_ebadf): New functions.
76872
76873 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76874
76875         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76876
76877 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76878
76879         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76880         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76881
76882 2006-09-28  Jim Meyering  <jim@meyering.net>
76883
76884         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76885         Include <unistd.h>.
76886
76887 2006-09-28  Bruno Haible  <bruno@clisp.org>
76888
76889         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76890         * modules/linkedhash-list (Depends-on): Likewise.
76891         * modules/rbtreehash-list (Depends-on): Likewise.
76892
76893 2006-09-28  Bruno Haible  <bruno@clisp.org>
76894
76895         * lib/strndup.h: Simplify the redefinition of strndup.
76896         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76898
76899 2006-09-28  Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76902         * lib/gl_linkedhash_list.c: Likewise.
76903         * lib/gl_rbtreehash_list.c: Likewise.
76904
76905 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76908         getaddrinfo.
76909
76910         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76911         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76912         it causes <stdio_ext.h> to cause a compile-time error.
76913         Problem reported by Nelson H. F. Beebe.
76914         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76915         of HAVE_DECL___PENDING.
76916
76917         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76919         declaration.
76920
76921 2006-09-27  Jim Meyering  <jim@meyering.net>
76922
76923         This file could end up with a definition for a function
76924         named __strndup, rather than rpl_strndup on a system with
76925         incomplete weak_alias support.
76926         * lib/strndup.c (strndup): Rename from __strndup.
76927         Remove #defines that used to map __strndup to strndup.
76928         Don't use K&R prototypes.
76929         Remove LIBC-related code, since this file is not sync'd with glibc.
76930         * lib/strndup.h: Revamp, accordingly.
76931         * m4/strndup.m4: Modernize.
76932
76933 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * modules/savewd (Depends-on): Add 'raise'.
76936         * lib/savewd.c: Include <signal.h>, for 'raise'.
76937
76938 2006-09-26  Jim Meyering  <jim@meyering.net>
76939
76940         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76941         when we detect Darwin 8.7.0's acl_get_file bug.
76942         Rearrange to perform the new (below) run-test while $LIBS
76943         contains any acl-related library.  Set USE_ACL at the end.
76944         (gl_ACL_GET_FILE): New function.
76945
76946 2006-09-26  Eric Blake  <ebb9@byu.net>
76947
76948         * lib/verror.c: Include <config.h> unconditionally.
76949
76950 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * modules/clock-time (Maintainer): Add self.
76953         * modules/getlogin_r (Depends-on): Add extensions.
76954
76955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76956
76957         * modules/clock-time: New module.
76958         * modules/nanosleep (Depends-on): Add clock-time.
76959         * modules/gethrxtime (Depends-on): Likewise.
76960         * modules/gettime (Depends-on): Likewise.
76961         * modules/settime (Depends-on): Likewise.
76962
76963         * modules/fts-lgpl: Depend on openat.
76964         * modules/mkancesdirs: Depend on savewd.
76965         * modules/mkdir-p: Likewise.
76966
76967 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76968
76969         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76970
76971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76972         `gl_have_arbitrary_file_name_length_limit' to
76973         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76974         actually works between configure runs.
76975
76976 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76977             Bruno Haible  <bruno@clisp.org>
76978
76979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76980
76981 2006-09-25  Jim Meyering  <jim@meyering.net>
76982
76983         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76984         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76985
76986 2006-09-25  Eric Blake  <ebb9@byu.net>
76987
76988         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76989         exec's in 2006-09-18 patch when shuffling fds.
76990
76991 2006-09-25  Bruno Haible  <bruno@clisp.org>
76992
76993         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76994         Reported by Jim Meyering.
76995
76996 2006-09-24  Jim Meyering  <jim@meyering.net>
76997
76998         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76999         compare a pointer against a literal "0".  That caused failures with
77000         at least HP-UX's hpcc.
77001
77002 2006-09-22  Simon Josefsson  <jas@extundo.com>
77003
77004         * modules/gc-sha1:
77005         * modules/gc-md4:
77006         * modules/gc-hmac-sha1:
77007         * modules/gc-hmac-md5:
77008         * modules/gc-des:
77009         * modules/gc-arcfour: Distribute more files.
77010
77011 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77012
77013         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77014         (gl_linked_iterator_from_to): Initialize struct completely.
77015         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77016         (gl_tree_iterator_from_to): Likewise
77017         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77018         * lib/gl_array_list.c [lint] (gl_array_iterator)
77019         (gl_array_iterator_from_to): Likewise.
77020         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77021         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77022         (gl_carray_iterator_from_to): Likewise.
77023
77024         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77025         * lib/md4.c (md4_process_block): Remove unused variable.
77026         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77027         parentheses for clarity.
77028
77029 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77030
77031         * modules/bison-i18n (Depends-on): Add gettext.
77032
77033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77034
77035         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77036         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77037         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77038         also add missing comma that caused broken test.
77039         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77040         stdlib.h, for `abort'.
77041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77042         variables.
77043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77044         include unistd.h if present, for `rmdir'.
77045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77046         variables.
77047         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77048         in the process include standard headers for prototypes.
77049         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77050         gets declared on GNU/Linux.
77051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77052         unistd.h, for `rmdir'.
77053         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77054
77055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77056         always true.
77057         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77058
77059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77060
77061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77062
77063         * gnulib-tool (func_version): Create output all at once.  This
77064         may help avoid triggering unnecessary SIGPIPEs, and at any
77065         rate it doesn't hurt.
77066
77067 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77068             Bruno Haible  <bruno@clisp.org>
77069
77070         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77071         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77072         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77073
77074         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77075         (gl_FUNC_VASPRINTF): Invoke it.
77076
77077 2006-09-22  Bruno Haible  <bruno@clisp.org>
77078
77079         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77080         getloadavg.c as first argument.
77081
77082 2006-09-22  Bruno Haible  <bruno@clisp.org>
77083
77084         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77085         at the beginning of the gl_INIT macro.
77086         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77087         gl_GETLOADAVG.
77088
77089 2006-09-22  Bruno Haible  <bruno@clisp.org>
77090
77091         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77092         module.
77093         Suggested by Ralf Wildenhues.
77094
77095 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77096
77097         Import this patch from libc:
77098
77099         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77100
77101         * lib/regex_internal.c (re_string_reconstruct): Handle
77102         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77103         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77104         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77105         re_string_context_at.
77106
77107         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77108         now requires it.
77109         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77110         gl_REGEX now does it for us.
77111         (gl_REGEX): Add test taken from
77112         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77113
77114         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77115         Check that large offsets work.  Modernize Autoconf usages.
77116         Prefer "yes" to mean a good thing rather than a bad.
77117         Don't put "#define mkstemp" in config.h, as this might interfere
77118         with standard system headers that "#define mkstemp mkstemp64".
77119
77120         * modules/mkstemp (Depends-on): Add extensions, so that
77121         mkstemp is visible on some platforms.
77122         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77123         (Include): Change to "mkstemp.h" from <stdlib.h>.
77124         (Files): Add mkstemp.h.
77125
77126         * lib/mkstemp.h: New file, since some standard headers
77127         #define mkstemp.
77128         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77129         Include "mkstemp.h".
77130         Make the _LIBC code resemble glibc original more,
77131         e.g., use K&R style.
77132         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77133         (mkstemp): Remove, since mkstemp.h does this for us.
77134         * lib/stdlib--.h: Include mkstemp.h.
77135
77136         Import this patch from libc:
77137
77138         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77139
77140         * lib/tempname.c (__gen_tempname): Change attempts_min
77141         into a macro.  Use preprocessor to decide how to initialize
77142         attempts [Coverity CID 67].
77143
77144 2006-09-20  Bruno Haible  <bruno@clisp.org>
77145
77146         * lib/mkdtemp.c: Import from libc.
77147         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77148                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77149                 attempts_min into a macro.  Use preprocessor to decide how to
77150                 initialize attempts [Coverity CID 67].
77151         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77152                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77153                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77154
77155 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77156
77157         * gnulib-tool (func_exit): New function, to allow to pass the
77158         exit status portably through the trap.  Use everywhere.
77159         (--help, --version): Signal a write error.
77160         (trap): catch SIGPIPE, for write errors.
77161         Exit at the end of the trap, with the correct exit status.
77162
77163 2006-09-19  Karl Berry  <karl@gnu.org>
77164
77165         * doc/gnulib.texi: note about the license texinfo files.
77166
77167 2006-09-19  Eric Blake  <ebb9@byu.net>
77168
77169         * gnulib-tool: Avoid space-tab.
77170
77171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77174         that prevented coreutils 6.1 from building.  Problem reported
77175         by Petter Reinholdtsen.
77176
77177 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * gnulib-tool (avoidlist): Fix typo that broke options like
77180         --avoid=lock that are used by coreutils bootstrap.
77181
77182 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77183
77184         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77185         more systematically.
77186
77187 2006-09-18  Jim Meyering  <jim@meyering.net>
77188
77189         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77190
77191 2006-09-18  Bruno Haible  <bruno@clisp.org>
77192
77193         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77194
77195 2006-09-18  Bruno Haible  <bruno@clisp.org>
77196
77197         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77198         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77199         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77200         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77201         * m4/gettext.m4: Require autoconf >= 2.52.
77202         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77203         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77204         of gl_cv_header_inttypes_h.
77205
77206 2006-09-18  Bruno Haible  <bruno@clisp.org>
77207
77208         * lib/javaversion.c: Include configmake.h.
77209
77210 2006-09-18  Bruno Haible  <bruno@clisp.org>
77211
77212         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77213         avoid that the while loops be executed in a subshell.
77214
77215 2006-09-18  Bruno Haible  <bruno@clisp.org>
77216
77217         * MODULES.html.sh (func_module): Break long lines.
77218         Suggested by Bruce Korb <bkorb@gnu.org>.
77219
77220 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77221
77222         Speed up by a factor of 1.12.
77223         * gnulib-tool (nl): New variable.
77224         (func_import): Rewrite include directive extraction to only read each
77225         directive once.
77226
77227 2006-09-17  Bruno Haible  <bruno@clisp.org>
77228
77229         * modules/javaversion (Makefile.am): Remove DEFS setting.
77230         (Depends-on): Add configmake, for PKGDATADIR definition.
77231
77232 2006-09-17  Bruno Haible  <bruno@clisp.org>
77233
77234         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77235
77236 2006-09-17  Bruno Haible  <bruno@clisp.org>
77237
77238         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77239         (func_modules_transitive_closure, func_modules_add_dummy,
77240         func_modules_to_filelist, func_import, func_create_testdir,
77241         func_create_megatestdir, ...): Use it wherever possible.
77242         Suggested by Ralf Wildenhues.
77243
77244 2006-09-16  Karl Berry  <karl@gnu.org>
77245
77246         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77247         to avoid sectioning errors.
77248         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77249         [ifinfo]: blank line after @center-ed titles.
77250         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77251         Spell FSF address consistently with others.
77252         (These changes approved by rms.)
77253
77254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77255
77256         Speed up by a factor of 1.61.
77257         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77258         already checked module names again.
77259
77260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77261
77262         Speed up by a factor of 1.13.
77263         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77264         for new_files, and the input to func_add_or_update.
77265
77266 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77267
77268         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77269         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77270
77271 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         * modules/mkancesdirs (Depends-on): Add fcntl.
77274         * modules/savewd: New file.
77275         * MODULES.html.sh (File system functions): Add savewd.
77276
77277         * modules/configmake (Makefile.am): Add support for the
77278         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77279
77280 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         * m4/savewd.m4: New file.
77283
77284 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77287         (dirchownmod): New arg FD.  All callers changed.
77288         Use FD rather than opening the directory ourself, as opening is
77289         now the caller's responsibility.
77290         * lib/dirchownmod.h: Likewise.
77291         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77292         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77293         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77294         (test_dir): Remove.
77295         (mkancesdirs): Return length of prefix of FILE that has already
77296         been made, or -2 if there is a child doing the work.  Redo
77297         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77298         ".", and treat ".." specially since it might stray back into
77299         already-created areas.  Use a subprocess if necessary.  New arg
77300         WD; all users changed.  MAKE_DIR function should now return 1
77301         if it creates a directory that is not readable.  Return -2 if
77302         a child process is spun off.
77303         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77304         Adjust signature to match code.
77305         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77306         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77307         all users changed.
77308         * lib/savewd.c, lib/savewd.h: New files.
77309
77310 2006-09-15  Jim Meyering  <jim@meyering.net>
77311
77312         * modules/rename-dest-slash: New module.
77313         * MODULES.html.sh (posix_compat): Add it here.
77314
77315         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77316
77317 2006-09-15  Jim Meyering  <jim@meyering.net>
77318
77319         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77320         file.
77321
77322         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77323
77324 2006-09-15  Jim Meyering  <jim@meyering.net>
77325
77326         * lib/rename-dest-slash.c (has_trailing_slash): Use
77327         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77328         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77329         test before testing whether SRC is a directory.
77330         Suggestions from Bruno Haible.
77331
77332         Avoid a warning about an unused variable.
77333         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77334         into the #ifdef block where it's used.
77335
77336         * lib/rename-dest-slash.c: New file.
77337
77338 2006-09-14  Bruno Haible  <bruno@clisp.org>
77339
77340         * lib/allocsa.c: Include <config.h> unconditionally.
77341         * lib/asnprintf.c: Likewise.
77342         * lib/asprintf.c: Likewise.
77343         * lib/c-strcasecmp.c: Likewise.
77344         * lib/c-strcasestr.c: Likewise.
77345         * lib/c-strncasecmp.c: Likewise.
77346         * lib/c-strstr.c: Likewise.
77347         * lib/classpath.c: Likewise.
77348         * lib/clean-temp.c: Likewise.
77349         * lib/concatpath.c: Likewise.
77350         * lib/copy-file.c: Likewise.
77351         * lib/csharpcomp.c: Likewise.
77352         * lib/csharpexec.c: Likewise.
77353         * lib/execute.c: Likewise.
77354         * lib/fatal-signal.c: Likewise.
77355         * lib/findprog.c: Likewise.
77356         * lib/fwriteerror.c: Likewise.
77357         * lib/gl_array_list.c: Likewise.
77358         * lib/gl_array_oset.c: Likewise.
77359         * lib/gl_avltree_list.c: Likewise.
77360         * lib/gl_avltree_oset.c: Likewise.
77361         * lib/gl_avltreehash_list.c: Likewise.
77362         * lib/gl_carray_list.c: Likewise.
77363         * lib/gl_linked_list.c: Likewise.
77364         * lib/gl_linkedhash_list.c: Likewise.
77365         * lib/gl_list.c: Likewise.
77366         * lib/gl_oset.c: Likewise.
77367         * lib/gl_rbtree_list.c: Likewise.
77368         * lib/gl_rbtree_oset.c: Likewise.
77369         * lib/gl_rbtreehash_list.c: Likewise.
77370         * lib/imaxabs.c: Likewise.
77371         * lib/imaxdiv.c: Likewise.
77372         * lib/javacomp.c: Likewise.
77373         * lib/javaexec.c: Likewise.
77374         * lib/javaversion.c: Likewise.
77375         * lib/linebreak.c: Likewise.
77376         * lib/localcharset.c: Likewise.
77377         * lib/lock.c: Likewise.
77378         * lib/mbchar.c: Likewise.
77379         * lib/mbswidth.c: Likewise.
77380         * lib/mkdtemp.c: Likewise.
77381         * lib/pipe.c: Likewise.
77382         * lib/printf-args.c: Likewise.
77383         * lib/printf-parse.c: Likewise.
77384         * lib/progname.c: Likewise.
77385         * lib/progreloc.c: Likewise.
77386         * lib/readlink.c: Likewise.
77387         * lib/sh-quote.c: Likewise.
77388         * lib/stpcpy.c: Likewise.
77389         * lib/stpncpy.c: Likewise.
77390         * lib/strcasecmp.c: Likewise.
77391         * lib/strcasestr.c: Likewise.
77392         * lib/strcspn.c: Likewise.
77393         * lib/striconv.c: Likewise.
77394         * lib/strncasecmp.c: Likewise.
77395         * lib/strnlen1.c: Likewise.
77396         * lib/strstr.c: Likewise.
77397         * lib/strtok_r.c: Likewise.
77398         * lib/tls.c: Likewise.
77399         * lib/tmpdir.c: Likewise.
77400         * lib/unicodeio.c: Likewise.
77401         * lib/unsetenv.c: Likewise.
77402         * lib/vasnprintf.c: Likewise.
77403         * lib/vasprintf.c: Likewise.
77404         * lib/wait-process.c: Likewise.
77405         * lib/xallocsa.c: Likewise.
77406         * lib/xsetenv.c: Likewise.
77407         * lib/xstriconv.c: Likewise.
77408
77409 2006-09-13  Simon Josefsson  <jas@extundo.com>
77410
77411         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77412         that internally, suggested by Ralf Wildenhues
77413         <Ralf.Wildenhues@gmx.de>.
77414
77415 2006-09-13  Simon Josefsson  <jas@extundo.com>
77416
77417         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77418         @LIBOBJS@.
77419         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77420
77421 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77424         longer worry about uses that don't define HAVE_CONFIG_H.
77425         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77426         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77427         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77428         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77429         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77430         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77431         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77432         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77433         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77434         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77435         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77436         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77437         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77438         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77439         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77440         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77441         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77442         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77443         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77444         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77445         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77446         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77447         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77448         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77449         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77450         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77451         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77452         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77453         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77454         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77455         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77456         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77457         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77458         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77459         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77460         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77461         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77462         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77463         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77464         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77465         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77466         Likewise.
77467
77468 2006-09-13  Eric Blake  <ebb9@byu.net>
77469
77470         * lib/getopt.c: Fix typo in last commit.
77471
77472 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77473
77474         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77475         dgettext.
77476
77477 2006-09-12  Jim Meyering  <jim@meyering.net>
77478
77479         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77480         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77481         Reported by Nelson H. F. Beebe.
77482
77483 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77484
77485         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77486         program_invocation_name and program_invocation_short_name are
77487         initialized.
77488         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77489         and program_invocation_short_name to argp.h, so they are visible
77490         to user programs.
77491         * lib/argp.h: Likewise
77492
77493 2006-09-10  Bruno Haible  <bruno@clisp.org>
77494
77495         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77496         m4/inttypes_h.m4, m4/uintmax_t.m4.
77497
77498 2006-09-10  Bruno Haible  <bruno@clisp.org>
77499
77500         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77501         gl_AC_TYPE_UINTMAX_T.
77502
77503 2006-09-10  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77506
77507 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77508
77509         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77510         convention.  Text proposed by Bruno Haible.
77511         (struct argp_option): Document the use of N_() wrappers.
77512
77513         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77514         '\v', and translate the two parts separately, instead of feeding
77515         the whole string to gettext.  This allows to exclude
77516         '\v' from the strings visible to the translator by writing doc
77517         strings as N_("..") "\v" N_("..").
77518
77519 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * config/srclist.txt: Undo latest change; the bug was fixed.
77522
77523 2006-09-09  Bruno Haible  <bruno@clisp.org>
77524
77525         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77526         assignments if building a library without libtool.
77527         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77528         in func_emit_lib_Makefile_am.
77529         (func_import): When building a static library libfoo.a, arrange to
77530         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77531         (func_create_testdir): Likewise.
77532         * modules/gc (configure.ac, Makefile.am): If building statically,
77533         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77534         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77535         * modules/striconv (configure.ac, Makefile.am): Likewise.
77536         Based on a suggestion by Ralf Wildenhues.
77537
77538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77539
77540         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77541         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77542         Also:
77543
77544         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77545         Add year_2050_test to catch glibc bug 2821
77546         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77547
77548         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77549         Prefer #ifdef to #if.
77550
77551         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77552         Return from 'main' instead of calling 'exit'.
77553
77554 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77555
77556         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77557         returned the maximum time_t value rather than (time_t) -1.
77558         Problem originally reported by William Bardwell
77559         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77560
77561         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77562         Moved to here ...
77563         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77564         ... from here.
77565
77566 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77569         2821 is fixed.
77570
77571 2006-09-08  Jim Meyering  <jim@meyering.net>
77572
77573         Don't make generated files read-only.  That would bother too many
77574         people.  However, do retain the ability to work when targets are
77575         read-only: remove the destination and temporary files before writing
77576         them (when generated via sed or echo), or by using the -f option for
77577         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77578         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77579         * modules/byteswap, modules/configmake, modules/fcntl:
77580         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77581         * modules/localcharset, modules/netinet_in, modules/poll:
77582         * modules/stdbool, modules/stdint, modules/sys_select:
77583         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77584
77585 2006-09-08  Jim Meyering  <jim@meyering.net>
77586
77587         Avoid new build failure on FreeBSD 6.0.
77588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77589         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77590         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77591
77592 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77593
77594         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77595
77596 2006-09-07  Jim Meyering  <jim@meyering.net>
77597
77598         Fix global typo in last change: use chmod u-w, not chmod u-x.
77599         Spotted by Paul Eggert and Bruce Korb.
77600         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77601         * modules/byteswap, modules/configmake, modules/fcntl:
77602         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77603         * modules/localcharset, modules/netinet_in, modules/poll:
77604         * modules/stdbool, modules/stdint, modules/sys_select:
77605         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77606
77607 2006-09-06  Jim Meyering  <jim@meyering.net>
77608
77609         Make generated files be read-only.
77610         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77611         Ensure that each generated file is now read-only.
77612         * modules/argz: Likewise.
77613         * modules/arpa_inet: Likewise.
77614         * modules/byteswap: Likewise.
77615         * modules/configmake: Likewise.
77616         * modules/fcntl: Likewise.
77617         * modules/fnmatch: Likewise.
77618         * modules/getopt: Likewise.
77619         * modules/glob: Likewise.
77620         * modules/inttypes: Likewise.
77621         * modules/netinet_in: Likewise.
77622         * modules/poll: Likewise.
77623         * modules/stdbool: Likewise.
77624         * modules/stdint: Likewise.
77625         * modules/sys_select: Likewise.
77626         * modules/sys_socket: Likewise.
77627         * modules/sys_stat: Likewise.
77628         * modules/sysexits: Likewise.
77629         * modules/localcharset: Same as above, but continue using temporary
77630         file named "t-$@" (why different?) rather than the "$@-t" used
77631         everywhere else.
77632
77633         * modules/sysexits (Makefile.am): Replace literal occurrences
77634         of "sysexit.h" more readable, and more consistent, "$@".
77635
77636 2006-09-06  Bruno Haible  <bruno@clisp.org>
77637
77638         * modules/striconv: New file.
77639         * modules/xstriconv: New file.
77640         * MODULES.html.sh (Internationalization functions): Add striconv,
77641         xstriconv.
77642
77643 2006-09-06  Bruno Haible  <bruno@clisp.org>
77644
77645         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77646         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77647         not using libtool correctly.
77648
77649 2006-09-06  Bruno Haible  <bruno@clisp.org>
77650
77651         * lib/striconv.h: New file.
77652         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77653         iconvstring.c.
77654         * lib/xstriconv.h: New file.
77655         * lib/xstriconv.c: New file.
77656
77657 2006-09-06  Bruno Haible  <bruno@clisp.org>
77658
77659         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77660         lib_..._LDFLAGS.
77661
77662 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77663
77664         * lib/argz_.h: Sync from Libtool.
77665
77666         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77667                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77668
77669         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77670
77671 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77672
77673         * modules/trim: New file.
77674
77675 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77676
77677         * lib/trim.h: New file.
77678         * lib/trim.c: New file.
77679
77680 2006-09-05  Bruno Haible  <bruno@clisp.org>
77681
77682         * MODULES.html.sh (String handling): Add trim.
77683
77684 2006-09-04  Karl Berry  <karl@gnu.org>
77685
77686         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77687         until next release.
77688
77689 2006-09-03  Bruno Haible  <bruno@clisp.org>
77690
77691         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77692         correctly.
77693
77694 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77697         not gl_GETLOADAVG.  Omit unneeded semicolons.
77698         Problems reported by Ralf Wildenhues in
77699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77700         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77701         at the end, which is the usual gnulib style.
77702
77703         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77704         of doing all the work ourselves.
77705         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77706         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77707
77708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77711         Problem reported by Ralf Wildenhues in
77712         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77713
77714         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77715         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77716
77717 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77720         yesterday's patch by changing test -n to test -z.
77721
77722 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77725         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77726         the former is now obsolescent.
77727
77728         * modules/chdir-long (Depends-on): Add fcntl.
77729
77730 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77733         obsolescent, and programs should use gnulib instead.
77734         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77735         but with prefixes changed.
77736
77737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77740         or stdbool.h, because they might not exist while configuring.
77741
77742         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77743         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77744         does that for us.
77745         (O_DIRECTORY): Remove.
77746
77747 2006-08-31  Eric Blake  <ebb9@byu.net>
77748
77749         * gnulib-tool: Don't let emacs change spaces to TAB.
77750
77751 2006-08-31  Bruno Haible  <bruno@clisp.org>
77752
77753         * gnulib-tool: When calling func_import more than once, do it in a
77754         subshell.
77755         Reported by Eric Blake <ebb9@byu.net>.
77756
77757 2006-08-31  Bruno Haible  <bruno@clisp.org>
77758
77759         * gnulib-tool (nl): Remove variable.
77760         (sed_transform_lib_file): Use more robust test for config-h module.
77761         (func_import): Fix typo in 2006-08-25 patch.
77762
77763 2006-08-31  Bruno Haible  <bruno@clisp.org>
77764
77765         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77766         specified, augment Makefile.am variables instead of assigning them.
77767
77768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         Work around a bug in both the Linux and SunOS 64-bit kernels:
77771         nanosleep mishandles sleeps for longer than 2**31 seconds.
77772         Problem reported by Frank v Waveren in
77773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77775         Check for nanosleep bug.
77776         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77777
77778 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         Work around a bug in both the Linux and SunOS 64-bit kernels:
77781         nanosleep mishandles sleeps for longer than 2**31 seconds.
77782         Problem reported by Frank v Waveren in
77783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77784         * lib/nanosleep.c (BILLION): New constant.
77785         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77786         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77787         implementation.
77788
77789 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77790
77791         * modules/nanosleep (Depends-on): Add gettime.
77792
77793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77794         and Simon Josefsson  <jas@extundo.com>
77795         and Oskar Liljeblad  <oskar@osk.mine.nu>
77796
77797         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77798         * gnulib-tool (func_import): New license type 'unmodifiable license
77799         text'.
77800         * modules/fdl: Use it.  Longer description.
77801         * module/gpl, module/lgpl: New files.
77802
77803 2006-08-30  Jim Meyering  <jim@meyering.net>
77804
77805         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77806         shadowing the parameter.
77807
77808 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77809
77810         Sync from Libtool:
77811
77812         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77813
77814         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77815         sharing with gnulib.  Report by Eric Blake.
77816
77817 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * modules/isapipe: New file.
77820         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77821
77822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * modules/configmake (Makefile.am): Add a comment, and omit
77825         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77826         by Bruno Haible.
77827
77828 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * m4/isapipe.m4: New file.
77831
77832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * lib/isapipe.c, lib/isapipe.h: New files.
77835
77836 2006-08-29  Jim Meyering  <jim@meyering.net>
77837
77838         * modules/configmake (Makefile.am): Make configmake.h depend on
77839         Makefile.  Otherwise, a stale configmake.h could hang around.
77840
77841 2006-08-29  Eric Blake  <ebb9@byu.net>
77842
77843         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77844         resolution of upstream bug 3044.
77845
77846 2006-08-29  Bruno Haible  <bruno@clisp.org>
77847
77848         * modules/localcharset (Depends-on): Add configmake.
77849         (Makefile.am): Remove setting of LIBDIR through DEFS.
77850
77851 2006-08-29  Bruno Haible  <bruno@clisp.org>
77852
77853         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77854         defined.
77855
77856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * modules/fcntl: New file.
77859         * modules/chdir-safer (Depends-on): Add fcntl.
77860         * modules/fts: Likewise.
77861         * modules/mkdir-p: Likewise.
77862
77863         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77864         This undoes the most recent change, since we're now addressing the
77865         problem in a different way.
77866
77867         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77868         into output, since the output might be called Makefile.am even
77869         if $makefile_name is something different.
77870         (func_import): Use $makefile_am rather than
77871         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77872         empty.
77873
77874         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77875
77876 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77879         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77880         recent change to stdint.m4, since we're now addressing the problem in a
77881         different way.
77882
77883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         * m4/fcntl_h.m4: New file.
77886
77887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * lib/fcntl_.h: New file.
77890         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77891         the fcntl module.
77892         * lib/dirchownmod.c: Likewise.
77893         * lib/fts.c: Likewise.
77894
77895         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77896         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77897         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77898         just before including <inttypes.h>, to avoid circular inclusion.
77899
77900 2006-08-28  Jim Meyering  <jim@meyering.net>
77901
77902         * doc/visibility.texi: Actually read and correct the grammar of the
77903         sentence affected by yesterday's change.
77904
77905 2006-08-28  Eric Blake  <ebb9@byu.net>
77906
77907         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77908         needs wrapper.
77909
77910 2006-08-28  Eric Blake  <ebb9@byu.net>
77911
77912         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77913
77914 2006-08-28  Eric Blake  <ebb9@byu.net>
77915
77916         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77917
77918 2006-08-28  Bruno Haible  <bruno@clisp.org>
77919
77920         * modules/c-strstr: New file, from GNU gettext.
77921         * MODULES.html.sh (String handling): Add c-strstr.
77922
77923 2006-08-28  Bruno Haible  <bruno@clisp.org>
77924
77925         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77926         macros.
77927         Reported by Eric Blake.
77928
77929 2006-08-28  Bruno Haible  <bruno@clisp.org>
77930
77931         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77932         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77933         * lib/vasprintf.c: Include errno.h, limits.h.
77934         (EOVERFLOW): New fallback definition.
77935         (vasprintf): Test here whether the string length is > INT_MAX.
77936         * lib/vsnprintf.c: Include errno.h, limits.h.
77937         (EOVERFLOW): New fallback definition.
77938         (vsnprintf): Fix bug when generated string was too long for the buffer.
77939         Test here whether the string length is > INT_MAX.
77940
77941 2006-08-28  Bruno Haible  <bruno@clisp.org>
77942
77943         * lib/inttypes_.h (SCNX*): Remove definitions.
77944         Reported by Eric Blake.
77945
77946 2006-08-28  Bruno Haible  <bruno@clisp.org>
77947
77948         * lib/c-strstr.h: New file, from GNU gettext.
77949         * lib/c-strstr.c: New file, from GNU gettext.
77950
77951 2006-08-28  Bruno Haible  <bruno@clisp.org>
77952
77953         * gnulib-tool: Reorder some statements.
77954
77955 2006-08-28  Bruno Haible  <bruno@clisp.org>
77956
77957         * gnulib-tool: New option --makefile-name.
77958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77959         $makefile_name.
77960         (func_import): Write $makefile_name to the cache file, and read it from
77961         there unless explicitly specified. Use $makefile_name as file name
77962         instead of Makefile.am. Adjust the recommendations accordingly.
77963
77964 2006-08-28  Bruno Haible  <bruno@clisp.org>
77965
77966         * gnulib-tool (func_verify_module): Check against misapplying patch.
77967
77968 2006-08-28  Bruno Haible  <bruno@clisp.org>
77969
77970         * gnulib-tool (func_relativize, func_relconcat): New functions.
77971         Give an error if --local-dir is given with --update.
77972         Remove trailing slashes from $local_gnulib_dir.
77973         (func_import): Store the relativized $local_gnulib_dir in
77974         gnulib-cache.m4, and read it from there if not specified explicitly.
77975
77976 2006-08-28  Bruno Haible  <bruno@clisp.org>
77977
77978         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77979         is the current directory. Respect also $local_gnulib_dir.
77980
77981 2006-08-28  Bruno Haible  <bruno@clisp.org>
77982             Simon Josefsson  <jas@extundo.com>
77983
77984         BeOS portability.
77985         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77986
77987 2006-08-27  Jim Meyering  <jim@meyering.net>
77988
77989         * doc/visibility.texi: Remove duplicate word: "pointer".
77990
77991 2006-08-26  Bruno Haible  <bruno@clisp.org>
77992
77993         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77994         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77995         (Makefile.am): Create inttypes.h from inttypes_.h.
77996         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77997
77998         * modules/imaxabs: New file.
77999
78000         * modules/imaxdiv: New file.
78001
78002 2006-08-26  Bruno Haible  <bruno@clisp.org>
78003
78004         * m4/inttypes.m4: New file.
78005         * m4/_inttypes_h.m4: Remove file.
78006         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78007         PRI_MACROS_BROKEN.
78008         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78009
78010         * m4/imaxabs.m4: New file.
78011
78012         * m4/imaxdiv.m4: New file.
78013
78014 2006-08-26  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/inttypes_.h: New file.
78017         * lib/inttypes.h: Remove file.
78018         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78019
78020         * lib/imaxabs.c: New file.
78021
78022         * lib/imaxdiv.c: New file.
78023
78024 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         New config-h module, so that "make" output needn't be cluttered
78027         by -DHAVE_CONFIG_H.
78028         * MODULES.html.sh (Support for building libraries and executables):
78029         Add config-h.
78030         * modules/config-h: New file.
78031         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78032         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78033         the config-h module is used.
78034
78035         New configmake module, so that "make" output needn't be cluttered
78036         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78037         * MODULES.html.sh (Support for building libraries and executables):
78038         Add configmake.
78039         * modules/configmake: New file.
78040
78041 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * m4/config-h.m4: New file.
78044
78045 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * config/srclist.txt: Add elisp-comp.
78048
78049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * MODULES.html.sh (Support for building libraries and executables):
78052         Add elisp-comp.
78053         * build-aux/elisp-comp: New file.
78054         * modules/elisp-comp: New file.
78055
78056 2006-08-24  Bruno Haible  <bruno@clisp.org>
78057
78058         * gnulib-tool (func_create_testdir): Use non-default values of
78059         sourcebase and m4base.
78060
78061 2006-08-24  Bruno Haible  <bruno@clisp.org>
78062
78063         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78064         HTML structure.
78065
78066 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * modules/openat (Depends-on): Add lchown.
78069
78070 2006-08-23  Bruno Haible  <bruno@clisp.org>
78071
78072         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78073         of gl_LOCK_EARLY instead of gl_LOCK.
78074
78075 2006-08-23  Bruno Haible  <bruno@clisp.org>
78076
78077         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78078         on OSF/1 to no.
78079         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78080
78081 2006-08-23  Bruno Haible  <bruno@clisp.org>
78082
78083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78084         as unusable.
78085
78086         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78087         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78088         (gl_LOCK): New macro.
78089
78090 2006-08-22  Simon Josefsson  <jas@extundo.com>
78091
78092         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78093         to md5 module.
78094
78095 2006-08-22  Simon Josefsson  <jas@extundo.com>
78096
78097         * MODULES.html.sh: Add "Support for maintaining and release
78098         projects".
78099
78100         * build-aux/gnupload: New file, from coreutils.
78101
78102 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         Avoid the need for AC_LIBSOURCES in m4 macros.
78105         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78106         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78107         * modules/check-version (EXTRA_DIST): Add check-version.h.
78108         * modules/crc (EXTRA_DIST): Add crc.h.
78109         * modules/des (EXTRA_DIST): Add des.h.
78110         * modules/gc (EXTRA_DIST): Add gc.h.
78111         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78112         * modules/getline (EXTRA_DIST): Add getline.h.
78113         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78114         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78115         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78116         * modules/md2 (EXTRA_DIST): Add md2.h.
78117         * modules/md4 (EXTRA_DIST): Add md4.h.
78118         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78119         * modules/read-file (EXTRA_DIST): Add read-file.h.
78120         * modules/readline (EXTRA_DIST): Add readline.h.
78121         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78122         rijndael-api-fst.h.
78123
78124 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * m4/rijndael.m4 (gl_ARCFOUR):
78127         * m4/arctwo.m4 (gl_ARCTWO):
78128         * m4/check-version.m4 (gl_CHECK_VERSION):
78129         * m4/crc.m4 (gl_CRC):
78130         * m4/des.m4 (gl_DES):
78131         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78132         * m4/gc.m4 (gl_GC):
78133         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78134         * m4/getline.m4 (gl_FUNC_GETLINE):
78135         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78136         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78137         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78138         * m4/md2.m4 (gl_MD2):
78139         * m4/md4.m4 (gl_MD4):
78140         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78141         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78142         * m4/readline.m4 (gl_FUNC_READLINE):
78143         * m4/rijndael.m4 (gl_RIJNDAEL):
78144         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78145         to get the necessary .h files and whatnot.
78146
78147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78150         gnulib rather than the other way around.
78151         * config/srclistvars.sh (COREUTILS): Remove.
78152
78153 2006-08-22  Jim Meyering  <jim@meyering.net>
78154
78155         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78156
78157         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78158
78159 2006-08-22  Eric Blake  <ebb9@byu.net>
78160
78161         * modules/regexprops-generic: New file.
78162         * MODULES.html.sh (Support for building documentation): List it.
78163
78164 2006-08-22  Eric Blake  <ebb9@byu.net>
78165
78166         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78167         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78168         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78169         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78170
78171 2006-08-22  Bruno Haible  <bruno@clisp.org>
78172
78173         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78174         and lib_LTLIBRARIES like the other lib_* variables.
78175
78176 2006-08-22  Bruno Haible  <bruno@clisp.org>
78177
78178         * build-aux/x-to-1.in: New file, from GNU gettext.
78179
78180 2006-08-22  Bruno Haible  <bruno@clisp.org>
78181
78182         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78183         <utmpx.h> exists.
78184
78185 2006-08-22  Bruno Haible  <bruno@clisp.org>
78186
78187         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78188         <utmpx.h> exists.
78189
78190 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         BeOS portability.
78193         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78194         exist.
78195         Problem reported by Bruno Haible.
78196
78197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         Avoid the need for AC_LIBSOURCES in m4 macros.
78200         * modules/acl (EXTRA_DIST): Add acl.h.
78201         * modules/argmatch (Files): Add m4/argmatch.m4.
78202         (configure.ac): Add gl_ARGMATCH.
78203         (EXTRA_DIST): Renamed from lib_SOURCES, for
78204         consistency with the other modules.  Remove argmatch.c.
78205         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78206         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78207         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78208         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78209         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78210         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78211         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78212         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78213         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78214         * modules/closeout (EXTRA_DIST): Add closeout.h.
78215         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78216         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78217         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78218         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78219         dirname.h; remove basename.c and stripslash.c.
78220         * modules/exclude (EXTRA_DIST): Add exclude.h.
78221         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78222         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78223         * modules/file-type (EXTRA_DIST): Add file-type.h.
78224         * modules/filemode (EXTRA_DIST): Add filemode.h.
78225         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78226         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78227         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78228         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78229         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78230         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78231         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78232         * modules/getdate (EXTRA_DIST): Add getdate.c.
78233         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78234         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78235         * modules/getpass (EXTRA_DIST): Add getpass.h.
78236         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78237         * modules/group-member (EXTRA_DIST): Add group-member.h.
78238         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78239         * modules/hash (EXTRA_DIST): Add hash.h.
78240         * modules/human (EXTRA_DIST): Add human.h.
78241         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78242         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78243         * modules/lchown (EXTRA_DIST): Add lchown.h.
78244         * modules/long-options (EXTRA_DIST): Add long-options.h.
78245         * modules/lstat (EXTRA_DIST): Add lstat.h.
78246         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78247         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78248         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78249         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78250         * modules/memxor (EXTRA_DIST): Add memxor.h.
78251         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78252         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78253         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78254         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78255         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78256         * modules/physmem (EXTRA_DIST): Add physmem.h.
78257         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78258         * modules/posixver (EXTRA_DIST): Add posixver.h.
78259         * modules/quote (EXTRA_DIST): Add quote.h.
78260         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78261         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78262         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78263         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78264         regex_internal.h regexec.c.
78265         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78266         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78267         * modules/same (EXTRA_DIST): Add same.h.
78268         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78269         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78270         * modules/savedir (EXTRA_DIST): Add savedir.h.
78271         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78272         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78273         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78274         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78275         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78276         * modules/strdup (EXTRA_DIST): Add strdup.h.
78277         * modules/strftime (EXTRA_DIST): Add strftime.h.
78278         * modules/strndup (EXTRA_DIST): Add strndup.h.
78279         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78280         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78281         * modules/time_r (EXTRA_DIST): Add time_r.h.
78282         * modules/timespec (EXTRA_DIST): Add timespec.h.
78283         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78284         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78285         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78286         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78287         * modules/userspec (EXTRA_DIST): Add userspec.h.
78288         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78289         * modules/utimens (EXTRA_DIST): Add utimens.h.
78290         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78291         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78292         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78293         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78294         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78295         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78296         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78297         * modules/yesno (EXTRA_DIST): Add yesno.h.
78298
78299 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78302
78303         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78304         * m4/dev-ino.m4, same-inode.m4: Remove.
78305
78306         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78307         * m4/acl.m4 (AC_FUNC_ACL):
78308         * m4/backupfile.m4 (gl_BACKUPFILE):
78309         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78310         * m4/canon-host.m4 (gl_CANON_HOST):
78311         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78313         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78314         * m4/cloexec.m4 (gl_CLOEXEC):
78315         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78316         * m4/closeout.m4 (gl_CLOSEOUT):
78317         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78318         * m4/dirname.m4 (gl_DIRNAME):
78319         * m4/exclude.m4 (gl_EXCLUDE):
78320         * m4/exitfail.m4 (gl_EXITFAIL):
78321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78322         * m4/file-type.m4 (gl_FILE_TYPE):
78323         * m4/filemode.m4 (gl_FILEMODE):
78324         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78325         * m4/fpending.m4 (gl_FUNC_FPENDING):
78326         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78327         * m4/fts.m4 (gl_FUNC_FTS):
78328         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78329         * m4/getdate.m4 (gl_GETDATE):
78330         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78331         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78332         * m4/getpass.m4 (gl_FUNC_GETPASS):
78333         * m4/gettime.m4 (gl_GETTIME):
78334         * m4/getugroups.m4 (gl_GETUGROUPS):
78335         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78336         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78337         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78338         * m4/hash.m4 (gl_HASH):
78339         * m4/idcache.m4 (gl_IDCACHE):
78340         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78341         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78342         * m4/long-options.m4 (gl_LONG_OPTIONS):
78343         * m4/lstat.m4 (gl_FUNC_LSTAT):
78344         * m4/md5.m4 (gl_MD5):
78345         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78346         * m4/memcoll.m4 (gl_MEMCOLL):
78347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78349         * m4/memxor.m4 (gl_MEMXOR):
78350         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78351         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78352         * m4/modechange.m4 (gl_MODECHANGE):
78353         * m4/mountlist.m4 (gl_MOUNTLIST):
78354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78355         * m4/openat.m4 (gl_FUNC_OPENAT):
78356         * m4/pathmax.m4 (gl_PATHMAX):
78357         * m4/physmem.m4 (gl_PHYSMEM):
78358         * m4/posixtm.m4 (gl_POSIXTM):
78359         * m4/posixver.m4 (gl_POSIXVER):
78360         * m4/quote.m4 (gl_QUOTE):
78361         * m4/quotearg.m4 (gl_QUOTEARG):
78362         * m4/readtokens.m4 (gl_READTOKENS):
78363         * m4/readutmp.m4 (gl_READUTMP):
78364         * m4/regex.m4 (gl_REGEX):
78365         * m4/safe-read.m4 (gl_SAFE_READ):
78366         * m4/safe-write.m4 (gl_SAFE_WRITE):
78367         * m4/same.m4 (gl_SAME):
78368         * m4/save-cwd.m4 (gl_SAVE_CWD):
78369         * m4/savedir.m4 (gl_SAVEDIR):
78370         * m4/settime.m4 (gl_SETTIME):
78371         * m4/sha1.m4 (gl_SHA1):
78372         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78373         * m4/stat-macros.m4 (gl_STAT_MACROS):
78374         * m4/stat-time.m4 (gl_STAT_TIME):
78375         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78376         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78377         * m4/strdup.m4 (gl_FUNC_STRDUP):
78378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78379         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78380         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78382         * m4/time_r.m4 (gl_TIME_R):
78383         * m4/timespec.m4 (gl_TIMESPEC):
78384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78385         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78386         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78387         * m4/userspec.m4 (gl_USERSPEC):
78388         * m4/utimecmp.m4 (gl_UTIMECMP):
78389         * m4/utimens.m4 (gl_UTIMENS):
78390         * m4/xalloc.m4 (gl_XALLOC):
78391         * m4/xgetcwd.m4 (gl_XGETCWD):
78392         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78393         * m4/xreadlink.m4 (gl_XREADLINK):
78394         * m4/xstrtod.m4 (gl_XSTRTOD):
78395         * m4/yesno.m4 (gl_YESNO):
78396         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78397         to get the necessary .h files and whatnot.
78398
78399 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78400             Bruno Haible  <bruno@clisp.org>
78401
78402         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78403         /bin/sh understanding of '!' conditional negation.
78404
78405 2006-08-21  Jim Meyering  <jim@meyering.net>
78406
78407         * modules/openat (Depends-on): Really alphabetize.
78408
78409         * modules/acl (Depends-on): Add error and quote.
78410
78411         * check-module (find_included_lib_files): Add at-func.c to the
78412         ok-to-include-more-than-once white list.
78413
78414         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78415
78416 2006-08-21  Bruno Haible  <bruno@clisp.org>
78417
78418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78419         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78420         Reported by Martin Lambers <marlam@marlam.de>.
78421
78422 2006-08-21  Bruno Haible  <bruno@clisp.org>
78423
78424         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78425         specify an installation location, don't emit a noinst_LIBRARIES or
78426         noinst_LTLIBRARIES assignment.
78427
78428 2006-08-21  Bruno Haible  <bruno@clisp.org>
78429
78430         BeOS portability.
78431         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78432         BeOS has mbrtowc() but no <wctype.h>.
78433
78434 2006-08-21  Bruno Haible  <bruno@clisp.org>
78435
78436         BeOS portability.
78437         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78438         exist.
78439
78440 2006-08-21  Bruno Haible  <bruno@clisp.org>
78441
78442         BeOS portability.
78443         * lib/mbchar.h: Include <wctype.h> only if it exists.
78444
78445 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         Remove files that are no longer needed by their respective modules.
78448         * m4/obstack.m4: Remove.
78449         * m4/strerror_r.m4: Remove.
78450         * m4/uint32_t.m4: Remove.
78451         * m4/uintptr_t.m4: Remove.
78452         * m4/ullong_max.m4: Remove.
78453         * m4/xstrtoimax.m4: Remove.
78454         * m4/xstrtoumax.m4: Remove.
78455
78456         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78457         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78458         dependencies now capture this.
78459
78460         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78461         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78462         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78463         * m4/human.m4 (gl_HUMAN): Likewise.
78464         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78465         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78466
78467         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78468
78469         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78470         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78471         stdint.
78472         * m4/human.m4 (gl_HUMAN): Likewise.
78473         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78474         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78476         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78477         * m4/xstrtol (gl_XSTRTOL): Likewise.
78478
78479         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78480         AC_TYPE_LONG_LONG_INT.
78481         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78482         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78483         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78484         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78485
78486         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78487         on stdbool.
78488
78489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78490         (gl_PREREQ_XSTRTOUL): Remove.
78491
78492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78493
78494         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78495         mode.
78496
78497 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         Add and change modules to make it easier for coreutils to use
78500         gnulib-tool.
78501         * modules/backupfile (Files): Remove m4/d-ino.m4.
78502         (Depends-on): Add d-ino.
78503         * modules/cycle-check (Depends-on): Add stdint.
78504         (lib_SOURCES): Add cycle-check.h.
78505         * modules/d-ino: New module.
78506         * modules/d-type: New module.
78507         * modules/error (Files): Remove m4/strerror_r.m4.
78508         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78509         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78510         m4/inttypes_h.m4, m4/uintmax_t.m4.
78511         (Depends-on): Add stdint.
78512         (lib_SOURCES): Add fsusage.h.
78513         * modules/getcwd (Files): Remove d-ino.m4.
78514         (Depends-on): Add d-ino.
78515         * modules/getndelim2 (Depends-on): Add stdint.
78516         * modules/glob (Files): Remove m4/d-type.m4.
78517         (Depends-on): Add d-type.
78518         * modules/host-os: New module.
78519         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78520         m4/inttypes_h.m4, m4/uintmax_t.m4.
78521         * Depends-on: Add stdint.
78522         (lib_SOURCES): Add human.h.
78523         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78524         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78525         m4/uintmax_t.m4, m4/ulonglong.m4.
78526         (Depends-on): Add stdint.
78527         (EXTRA_DIST): Add inttostr.h.
78528         * modules/lchmod: New module.
78529         * modules/link-follow: New module.
78530         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78531         (Depends-on): Add lchmod.
78532         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78533         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78534         (Depends-on): Add stdint.
78535         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78536         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78537         (Depends-on): Add stdint.
78538         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78539         * modules/perl: New module.
78540         * modules/regex (Depends-on): Add stdint.
78541         * modules/rmdir-errno: New module.
78542         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78543         m4/intmax_t.m4.
78544         (Depends-on): Add stdint.
78545         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78546         m4/uintmax_t.m4.
78547         (Depends-on): Add stdint.
78548         * modules/unlink-busy: New module.
78549         * modules/utimecmp (Depends-on): Add stdint.
78550         * modules/uptime: New module.
78551         * modules/winsz-ioctl: New module.
78552         * modules/winsz-termios: New module.
78553         * modules/xnanosleep (Depends-on): Add nanosleep.
78554         * modules/ullong_max: Remove.
78555         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78556         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78557         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78558         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78559         (Depends-on): Add inttypes.
78560         (lib_SOURCES): Add xstrtol.h.
78561         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78562         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78563         * MODULES.html.sh: Move 'assert' into the assert section.
78564         Move 'dummy' into the linking section.
78565         Remove ullong_max.
78566         Add section for compatibility checks for POSIX:2001 functions,
78567         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78568         winsz-ioctl, and winsz-termios into it.
78569         Add lchmod.
78570         Add top-level Misc section and put host-os, perl, and uptime
78571         into it.
78572
78573 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78576         now assume the stdint module.  Do not include inttypes.h.
78577         * lib/fsusage.h: Likewise.
78578         * lib/getndelim2.c: Likewise.
78579         * lib/human.h: Likewise.
78580         * lib/inttostr.h: Likewise.
78581         * lib/obstack.c: Likewise.
78582         * lib/regex_internal.h: Likewise.
78583         * lib/tempname.c: Likewise.
78584         * lib/utimecmp.c: Likewise.
78585         * lib/xstrtol.h: Likewise.
78586
78587         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78588
78589         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78590         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78591         * lib/xtime.h: Likewise.
78592
78593 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * modules/openat (Files): Add lib/fchmodat.c.
78596         Fixes problem reported by Jay Youngman.
78597
78598 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78601         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78602
78603 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78604             Bruno Haible  <bruno@clisp.org>
78605
78606         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78607         and is a script that invokes bison. Tighten the code. Add comments.
78608
78609 2006-08-18  Jim Meyering  <jim@meyering.net>
78610
78611         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78612         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78613         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78614         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78615
78616 2006-08-18  Bruno Haible  <bruno@clisp.org>
78617
78618         * modules/bison-i18n: New file.
78619         * MODULES.html.sh (Internationalization functions): Add it.
78620
78621 2006-08-18  Bruno Haible  <bruno@clisp.org>
78622
78623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78624         sys/statvfs.h. When getmntinfo was found, check its declaration and
78625         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78626
78627 2006-08-18  Bruno Haible  <bruno@clisp.org>
78628
78629         * m4/bison-i18n.m4: New file, from bison.
78630
78631 2006-08-18  Bruno Haible  <bruno@clisp.org>
78632
78633         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78634         (ME_DUMMY): Treat "kernfs" as a dummy.
78635         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78636
78637 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         Update from coreutils.
78640
78641         2006-08-15  Jim Meyering  <jim@meyering.net>
78642
78643         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78644
78645         2006-01-17  Jim Meyering  <jim@meyering.net>
78646
78647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78648
78649         2006-01-11  Jim Meyering  <jim@meyering.net>
78650
78651         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78652         Check for the lchmod function.
78653
78654 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         Update from coreutils.
78657
78658         * lib/__fpending.h: Add copyright notice.
78659         * lib/fprintftime.h: Likewise.
78660         * lib/savedir.c: Use (C) in copyright notice.
78661         * lib/savedir.h: Likewise.
78662
78663         2006-08-15  Jim Meyering  <jim@meyering.net>
78664
78665         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78666         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78667         in support of the EXPECTED_ERRNO macro.
78668         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78669         definitions.  Instead, define the appropriate symbols and include
78670         "at-func.c".
78671         * lib/mkdirat.c (mkdirat): Likewise.
78672         * lib/fchmodat.c (fchmodat): Likewise.
78673         (ENOSYS): Remove definition.
78674         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78675         it.  Don't include "unistd--.h" -- it wasn't ever used.
78676
78677         2006-01-17  Jim Meyering  <jim@meyering.net>
78678
78679         Rewrite fts.c not to change the current working directory,
78680         by using openat, fstatat, fdopendir, etc..
78681
78682         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78683         (HAVE_OPENAT_SUPPORT): Define.
78684         [_LIBC] (fchdir): Don't undef or define; no longer used.
78685         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78686         Now, this `function' always succeeds, and consumes its file descriptor
78687         parameter -- so callers must not close such FDs.  Update callers.
78688         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78689         (diropen): Add parameter, SP.  Adjust all callers.
78690         Implement using diropen_fd, rather than open.
78691         (fts_open): Initialize new member, fts_cwd_fd.
78692         Remove fts_rft-setting code.
78693         (fts_close): Close fts_cwd_fd, if necessary.
78694         (__opendir2): Define in terms of opendir or opendirat,
78695         depending on whether the FST_NOCHDIR flag is set.
78696         (fts_build): Since fts_safe_changedir consumes its FD, and since
78697         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78698         and close the dup'd file descriptor upon failure.
78699         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78700         (fts_safe_changedir): Tweak semantics to reflect that this function
78701         now calls cwd_advance_fd and hence consumes its FD argument.
78702         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78703         [struct FTS] (fts_rft): Remove now-unused member.
78704         [struct FTS] (fts_cycle.state): Improve comment.
78705
78706         * lib/openat.c (openat_needs_fchdir): New function.
78707         * lib/openat.h (openat_needs_fchdir): Declare it.
78708
78709 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78712         Problem and fix reported by Pádraig Brady in
78713         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78714
78715 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78718
78719 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * lib/memcoll.c (memcoll): Optimize for the common case where the
78722         arguments are bytewise equal.
78723
78724 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * doc/regexprops-generic.texi: Add a copyright notice.
78727
78728 2006-08-15  Bruno Haible  <bruno@clisp.org>
78729
78730         * modules/tmpdir (License): Change to LGPL.
78731
78732 2006-08-15  Bruno Haible  <bruno@clisp.org>
78733
78734         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78735         module.
78736
78737 2006-08-14  Simon Josefsson  <jas@extundo.com>
78738
78739         * config/srclist.txt: Add gnupload.
78740
78741 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         Change copyright notice from LGPL 2 to GPL 2, since that's the
78744         standard form used in the gnulib repository.
78745         * tests/test-lock.c: Likewise.
78746         * tests/test-stdint.c: Likewise.
78747         * tests/test-tls.c: Likewise.
78748
78749         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78750         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78751         Add copyright notice.
78752
78753         * check-module: Add copyright notice.  Output a copyright
78754         notice if "--version" is specified.
78755         * modules/COPYING: New file.
78756         * tests/test-getaddrinfo.c: Add copyright notice.
78757         * tests/test-verify.c: Likewise.
78758
78759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         Change copyright notice from LGPL 2 to GPL 2, since that's the
78762         standard form used in the gnulib repository.
78763         * lib/lock.c: LGPL -> GPL.
78764         * lib/lock.h: Likewise.
78765         * lib/strnlen1.c: Likewise.
78766         * lib/strnlen1.h: Likewise.
78767         * lib/tls.c: Likewise.
78768         * lib/tls.h: Likewise.
78769         * lib/tmpdir.c: Likewise.
78770
78771         * lib/TODO: Remove; this belongs only in coreutils.
78772
78773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         Add copyright notices to long-enough files that lack them, since
78776         otherwise the files aren't clearly free.  Use the same notice that
78777         getdate.texi already uses.
78778         * doc/alloca-opt.texi: Add copyright notice.
78779         * doc/alloca.texi: Likewise.
78780         * doc/ctime.texi: Likewise.
78781         * doc/functions.texi: Likewise.
78782         * doc/gcd.texi: Likewise.
78783         * doc/gnulib-tool.texi: Likewise.
78784         * doc/inet_ntoa.texi: Likewise.
78785         * doc/visibility.texi: Likewise.
78786
78787         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78788         * doc/quote.texi: Add copyright notice.
78789
78790         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78791         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78792         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78793         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78794         is now obsolete, and give a pointer to the Sun list.
78795         Add copyright notice.
78796
78797 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * config/srclistvars.sh: Add copyright notice.
78800
78801 2006-08-14  Eric Blake  <ebb9@byu.net>
78802
78803         Import the following change from libc:
78804
78805         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78806
78807         Upstream bug 2997.
78808         * lib/misc/error.c: Add space between program name and message if file
78809         name is missing.
78810
78811 2006-08-12  Karl Berry  <karl@gnu.org>
78812
78813         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78814         remove, these originate in gnulib now.
78815
78816 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78817
78818         * doc/Makefile (standards.info standards.html standards.dvi):
78819         Also depend on make-stds.texi.
78820
78821 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78824         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78825
78826         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78827         in wchar_t.  Problem reported by Eric Blake.
78828
78829         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78830         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78831         Also, help the compiler to keep LEN in a register.
78832
78833 2006-08-11  Eric Blake  <ebb9@byu.net>
78834
78835         * users.txt: Sort.  Add tar.
78836
78837 2006-08-11  Bruno Haible  <bruno@clisp.org>
78838
78839         * users.txt: New file.
78840
78841 2006-08-11  Bruno Haible  <bruno@clisp.org>
78842
78843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78844         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78845
78846 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * modules/snprintf (Depends-on): Remove minmax.
78849         (Maintainer): Add self and Bruno.
78850
78851 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78854         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78855         (EOVERFLOW): Define if the system does not.
78856         Do not include "minmax.h"; it wasn't used.
78857         (snprintf): Don't assume size_t promotes to an unsigned type.
78858         Fix bug when generated string was too long for the buffer: the
78859         buffer's contents are supposed to be the initial prefix of the
78860         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78861         exceeds INT_MAX; do the check ourselves.
78862
78863         Import the following changes from libc:
78864
78865         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78866
78867         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78868         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78869         set wc to the byte which couldn't be converted.
78870         (re_string_reconstruct): Don't clear valid_raw_len before calling
78871         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78872         tip_context using re_string_context_at.
78873
78874         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78875
78876         * lib/posix/regex.h: g++ still cannot handled [restrict].
78877
78878         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78879
78880         * lib/posix/regex.h: Remove special handling for VMS.
78881
78882 2006-08-10  Jim Meyering  <jim@meyering.net>
78883
78884         * modules/same-inode: New module.
78885         * modules/dev-ino: New module.
78886         * modules/cycle-check: Depend on these modules, rather than simply
78887         including their .h files.
78888         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78889         required via m4/cycle-check.m4.
78890         * modules/same: Depend on new same-inode module, rather than
78891         including same-inode.h.
78892         * modules/chdir-safer: New file.
78893
78894         * modules/chown (Depends-on): Add stat-macros.
78895
78896 2006-08-10  Jim Meyering  <jim@meyering.net>
78897
78898         * m4/cycle-check.m4: New file.
78899         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78900         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78901
78902 2006-08-10  Eric Blake  <ebb9@byu.net>
78903
78904         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78905         in from original proposal.
78906
78907 2006-08-10  Eric Blake  <ebb9@byu.net>
78908         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78909
78910         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78911         namespace.
78912
78913 2006-08-10  Bruno Haible  <bruno@clisp.org>
78914
78915         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78916         as well.
78917
78918 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78919
78920         Sync from coreutils.
78921
78922         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78923
78924         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78925         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78926
78927 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * modules/restrict: Remove; no longer needed now that we assume
78930         Autoconf 2.59 or later.
78931         * MODULES.html.sh: Remove 'restrict'.
78932         * modules/argp (Depends-on): Remove 'restrict'.
78933         * modules/base64 (Depends-on): Likewise.
78934         * modules/gc (Depends-on): Likewise.
78935         * modules/getaddrinfo (Depends-on): Likewise.
78936         * modules/glob (Depends-on): Likewise.
78937         * modules/inet_ntop (Depends-on): Likewise.
78938         * modules/inet_pton (Depends-on): Likewise.
78939         * modules/memxor (Depends-on): Likewise.
78940         * modules/regex (Depends-on): Likewise.
78941         * modules/strtok_r (Depends-on): Likewise.
78942         * modules/time_r (Depends-on): Likewise.
78943
78944 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78945
78946         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78947         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78948         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78949         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78950         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78951         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78952         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78953         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78954
78955         Merge from coreutils.
78956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78957         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78959         * m4/time_r.m4 (gl_TIME_R): Likewise.
78960
78961 2006-08-09  Karl Berry  <karl@gnu.org>
78962
78963         * config/srclist.txt: no more gettext-tools, per Bruno.
78964
78965 2006-08-08  Eric Blake  <ebb9@byu.net>
78966
78967         * modules/verror: New module.
78968         * MODULES.html.sh: Document it.
78969
78970 2006-08-08  Eric Blake  <ebb9@byu.net>
78971
78972         * lib/verror.h, lib/verror.c: New files.
78973
78974 2006-08-08  Eric Blake  <ebb9@byu.net>
78975
78976         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78977         verror_at_line output complies with GNU Coding Standards even when
78978         file is NULL.
78979
78980 2006-08-07  Bruno Haible  <bruno@clisp.org>
78981
78982         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78983         versions of AIX.
78984         Reported by Ralf Wildenhues.
78985
78986 2006-08-07  Bruno Haible  <bruno@clisp.org>
78987
78988         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78989         in an AC_DEFUN. Needed so that the autoconf snippets can use
78990         AC_REQUIRE.
78991
78992 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78993
78994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78995         Initialize pkgdata_DATA.
78996         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78997         overriding it.
78998
78999 2006-08-06  Eric Blake  <ebb9@byu.net>
79000
79001         * lib/error.h: Fold in some upstream changes from glibc.
79002         * lib/error.c: Likewise.
79003
79004 2006-08-04  Bruno Haible  <bruno@clisp.org>
79005
79006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79007         Make the mostlyclean-local rule depend on mostlyclean-generic.
79008         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79009
79010 2006-07-31  Bruno Haible  <bruno@clisp.org>
79011
79012         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79013         <stdlib.h>, <string.h>.
79014
79015 2006-07-30  Bruno Haible  <bruno@clisp.org>
79016
79017         * modules/readlink (License): Change to LGPL.
79018
79019 2006-07-30  Bruno Haible  <bruno@clisp.org>
79020
79021         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79022         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79023         set PKGDATADIR to point to it.
79024
79025 2006-07-30  Bruno Haible  <bruno@clisp.org>
79026
79027         * modules/csharpexec (configure.ac): Comment out macro invocation.
79028         * modules/javaexec (configure.ac): Likewise.
79029         * modules/javacomp-script (configure.ac): Likewise.
79030
79031         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79032
79033 2006-07-30  Bruno Haible  <bruno@clisp.org>
79034
79035         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79036         linked-list.
79037
79038 2006-07-30  Bruno Haible  <bruno@clisp.org>
79039
79040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79041
79042 2006-07-30  Bruno Haible  <bruno@clisp.org>
79043
79044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79045         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79046         get removed.
79047
79048 2006-07-29  Bruno Haible  <bruno@clisp.org>
79049
79050         Make it possible for gnulib-tool to work with locally modified or
79051         augmented gnulib repositories.
79052         * gnulib-tool (func_usage): Document --local-dir option.
79053         (local_gnulib_dir): New variable.
79054         Handle --local-dir option.
79055         (func_lookup_file): New function.
79056         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79057         (func_get_description, func_get_filelist, func_get_description,
79058         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79059         func_get_automake_snippet, func_get_include_directive,
79060         func_get_license, func_get_maintainer): Use func_lookup_file.
79061         (func_import, func_create_testdir): Use func_lookup_file.
79062
79063 2006-07-29  Bruno Haible  <bruno@clisp.org>
79064
79065         * modules/setenv (Depends-on): Add unistd.
79066
79067 2006-07-29  Bruno Haible  <bruno@clisp.org>
79068
79069         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79070
79071 2006-07-29  Bruno Haible  <bruno@clisp.org>
79072
79073         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79074
79075 2006-07-29  Bruno Haible  <bruno@clisp.org>
79076
79077         * gnulib-tool (import, update): If there is no Makefile.am, look at
79078         aclocal.m4, instead of bailing out.
79079
79080 2006-07-29  Bruno Haible  <bruno@clisp.org>
79081
79082         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79083         Categorize the options by when they are useful.
79084
79085 2006-07-29  Bruno Haible  <bruno@clisp.org>
79086
79087         * gnulib-tool (func_usage): Document option --no-libtool.
79088         Handle option --no-libtool.
79089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79090         for changed semantics of $libtool variable.
79091         (func_import): Likewise. If libtool is not used, show this through
79092         an option --no-libtool.
79093         (func_create_testdir): Update.
79094
79095 2006-07-29  Bruno Haible  <bruno@clisp.org>
79096
79097         * gnulib-tool (func_import): Extend error message about missing
79098         --doc-base.
79099
79100 2006-07-29  Bruno Haible  <bruno@clisp.org>
79101
79102         * gnulib-tool (func_import): Don't create the $docbase directory if
79103         there is no file to store there.
79104
79105 2006-07-29  Bruno Haible  <bruno@clisp.org>
79106
79107         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79108         relevant, look for configure.ac there, not in the current directory.
79109         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79110
79111 2006-07-29  Bruno Haible  <bruno@clisp.org>
79112
79113         * gnulib-tool (SORT): New variable.
79114         (func_usage): Undocument --assume-autoconf option.
79115         Remove --assume-autoconf option handling.
79116         (autoconf_minversion): Determine from the contents of configure.ac.
79117         (func_import): Remove autoconf_minversion handling.
79118         Suggested by Eric Blake.
79119
79120 2006-07-29  Bruno Haible  <bruno@clisp.org>
79121
79122         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79123
79124 2006-07-29  Bruno Haible  <bruno@clisp.org>
79125
79126         * config/srclist.txt (*setenv.[ch]): Remove rules.
79127
79128 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79129
79130         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79131
79132 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79133
79134         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79135         arpa/inet.h.
79136
79137 2006-07-28  Simon Josefsson  <jas@extundo.com>
79138
79139         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79140         * modules/inet_pton (Depends-on): Likewise.
79141
79142 2006-07-28  Simon Josefsson  <jas@extundo.com>
79143
79144         * m4/netinet_in_h.m4: New file.
79145
79146 2006-07-28  Simon Josefsson  <jas@extundo.com>
79147
79148         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79149         #include's.
79150
79151 2006-07-28  Simon Josefsson  <jas@extundo.com>
79152
79153         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79154         #include's.
79155
79156 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79159         setgid on directories only if they set these bits.
79160         * lib/modechange.h: Remove obsolete comment about masks.
79161
79162 2006-07-28  Eric Blake  <ebb9@byu.net>
79163
79164         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79165         macro expansion.
79166
79167 2006-07-28  Bruno Haible  <bruno@clisp.org>
79168
79169         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79170
79171 2006-07-28  Bruno Haible  <bruno@clisp.org>
79172
79173         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79174
79175 2006-07-28  Bruno Haible  <bruno@clisp.org>
79176
79177         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79178         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79179         Define fallbacks.
79180         Avoids link error on FreeBSD 4.x.
79181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79182
79183         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79184         encoding.
79185         * lib/mbswidth.c (iswcntrl): Likewise.
79186
79187 2006-07-27  Bruno Haible  <bruno@clisp.org>
79188
79189         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79190         test.
79191
79192 2006-07-27  Bruno Haible  <bruno@clisp.org>
79193
79194         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79195         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79196         defined.
79197
79198 2006-07-26  Eric Blake  <ebb9@byu.net>
79199
79200         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79201
79202 2006-07-26  Eric Blake  <ebb9@byu.net>
79203
79204         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79205         like mingw that lack mkstemp.
79206         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79207         avoid compilation warning on mingw.
79208
79209 2006-07-26  Bruno Haible  <bruno@clisp.org>
79210
79211         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79212         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79213         INT_FAST*_MIN, INTPTR_MIN.
79214
79215 2006-07-25  Bruno Haible  <bruno@clisp.org>
79216
79217         * modules/version-etc (Depends-on): Add stdarg.
79218
79219 2006-07-25  Bruno Haible  <bruno@clisp.org>
79220
79221         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79222         complex commands.
79223
79224 2006-07-25  Bruno Haible  <bruno@clisp.org>
79225
79226         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79227         defined in <stdarg.h> or config.h.
79228
79229 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79232         (gl_STDIO_SAFER): Remove.
79233
79234 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * MODULES.html.sh (File stream based Input/Output):
79237         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79238         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79239         * modules/fopen-safer, modules/tmpfile-safer: New files.
79240         * modules/stdio-safer: Remove.
79241
79242 2006-07-24  Bruno Haible  <bruno@clisp.org>
79243
79244         * modules/tmpdir: New file.
79245         * MODULES.html.sh (File system functions): Add it.
79246
79247 2006-07-24  Bruno Haible  <bruno@clisp.org>
79248
79249         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79250         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79251
79252 2006-07-24  Bruno Haible  <bruno@clisp.org>
79253
79254         * modules/clean-temp: New file.
79255
79256 2006-07-24  Bruno Haible  <bruno@clisp.org>
79257
79258         * m4/tmpdir.m4: New file, from GNU gettext.
79259
79260 2006-07-24  Bruno Haible  <bruno@clisp.org>
79261
79262         * lib/tmpdir.h: New file, from GNU gettext.
79263         * lib/tmpdir.c: New file, from GNU gettext.
79264
79265 2006-07-24  Bruno Haible  <bruno@clisp.org>
79266
79267         * lib/clean-temp.h: New file, from GNU gettext.
79268         * lib/clean-temp.c: New file, from GNU gettext.
79269
79270 2006-07-23  Eric Blake  <ebb9@byu.net>
79271
79272         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79273         (Depends-on): Add binary-io.
79274
79275 2006-07-23  Eric Blake  <ebb9@byu.net>
79276
79277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79278
79279 2006-07-23  Eric Blake  <ebb9@byu.net>
79280
79281         * lib/tmpfile-safer.c: New file.
79282         * lib/stdio-safer.h (fopen_safer): Add prototype.
79283         * lib/stdio--.h (tmpfile): Make safer.
79284
79285 2006-07-23  Bruno Haible  <bruno@clisp.org>
79286
79287         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79288         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79289         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79290         gl_linked_remove_at): Use it.
79291
79292 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79293         and Simon Josefsson <jas@extundo.com>
79294
79295         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79296
79297         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79298
79299 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * modules/close-stream: New file.
79302         * modules/closeout (Description): Make it clear that it exits
79303         with a diagnostic on error.
79304         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79305         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79306
79307 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * m4/close-stream.m4: New file.
79310
79311 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * lib/close-stream.c, lib/close-stream.h: New files.
79314
79315 2006-07-22  Bruno Haible  <bruno@clisp.org>
79316
79317         Merge from GNU gettext 0.15.
79318
79319         2006-05-01  Bruno Haible  <bruno@clisp.org>
79320
79321                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79322
79323         2006-07-22  Bruno Haible  <bruno@clisp.org>
79324
79325                 * modules/javaversion: New file.
79326                 * MODULES.html.sh (Java): Add javaversion.
79327
79328         2006-03-12  Bruno Haible  <bruno@clisp.org>
79329
79330                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79331
79332         2005-12-04  Bruno Haible  <bruno@clisp.org>
79333
79334                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79335                 (untested).
79336
79337         2006-06-21  Bruno Haible  <bruno@clisp.org>
79338
79339                 Avoid warnings from recent versions of mcs.
79340                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79341                 -o, -L, -r any more. Use options documented since mcs-1.0
79342                 instead. Similarly for -g.
79343
79344         2005-12-04  Bruno Haible  <bruno@clisp.org>
79345
79346                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79347                 .resources, not .resource.
79348
79349         2005-07-09  Bruno Haible  <bruno@clisp.org>
79350
79351                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79352                 add a .dll suffix.
79353                 Reported by Mark Junker <mjscod@gmx.de>.
79354
79355         2006-07-22  Bruno Haible  <bruno@clisp.org>
79356
79357                 * modules/gettext: Upgrade to gettext-0.15.
79358                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79359                 m4/visibility.m4.
79360                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79361
79362 2006-07-22  Bruno Haible  <bruno@clisp.org>
79363
79364         Merge from GNU gettext 0.15.
79365
79366         2006-03-25  Bruno Haible  <bruno@clisp.org>
79367
79368                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79369
79370         2006-07-21  Bruno Haible  <bruno@clisp.org>
79371
79372                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79373                 "1.1".
79374
79375         2006-05-09  Bruno Haible  <bruno@clisp.org>
79376
79377                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79378                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79379                 for the conftestver execution.
79380
79381         2006-05-01  Bruno Haible  <bruno@clisp.org>
79382
79383                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79384                 optional target-version argument. Verify that the compiler
79385                 groks source of the specified source-version, or add -source
79386                 option as necessary. Verify that the compiler produces
79387                 bytecode in the specified target-version, or add -target and
79388                 -source options as necessary. Make the result of the test
79389                 available as variable CONF_JAVAC. Also log error output in
79390                 config.log.
79391
79392         2006-03-11  Bruno Haible  <bruno@clisp.org>
79393
79394                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79395
79396         2006-05-09  Bruno Haible  <bruno@clisp.org>
79397
79398                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79399                 CLASSPATH_SEPARATOR to a semicolon.
79400
79401         2006-03-12  Bruno Haible  <bruno@clisp.org>
79402
79403                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79404                 available as variable CONF_JAVA, for subsequent autoconf
79405                 tests. Also log error output in config.log.
79406
79407         2006-07-19  Bruno Haible  <bruno@clisp.org>
79408
79409                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79410                 that getline works on glibc2 systems. Needed to avoid trouble
79411                 in relocatable.c.
79412                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79413
79414         2005-12-04  Bruno Haible  <bruno@clisp.org>
79415
79416                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79417                 launcher (untested).
79418
79419         2005-12-04  Bruno Haible  <bruno@clisp.org>
79420
79421                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79422
79423         2006-07-22  Bruno Haible  <bruno@clisp.org>
79424
79425                 * gettext.m4: Update from GNU gettext-0.15.
79426                 * nls.m4: Likewise.
79427                 * po.m4: Likewise.
79428                 * inttypes-pri.m4: Likewise.
79429                 * inttypes-h.m4: Renamed from inttypes.m4.
79430                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79431
79432 2006-07-22  Bruno Haible  <bruno@clisp.org>
79433
79434         Merge from GNU gettext 0.15.
79435
79436         2005-07-05  Bruno Haible  <bruno@clisp.org>
79437
79438                 * printf-args.c (printf_fetchargs): Work around broken
79439                 definition of wint_t on mingw.
79440
79441         2005-02-12  Bruno Haible  <bruno@clisp.org>
79442
79443                 * xallocsa.h: Add extern "C" for C++.
79444
79445         2006-05-17  Bruno Haible  <bruno@clisp.org>
79446
79447                 Cygwin portability.
79448                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79449
79450         2006-04-30  Bruno Haible  <bruno@clisp.org>
79451
79452                 * progreloc.c: Include <mach-o/dyld.h> if available.
79453                 (find_executable): Use _NSGetExecutablePath when possible.
79454
79455         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79456
79457                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79458                 function.
79459
79460         2005-12-29  Bruno Haible  <bruno@clisp.org>
79461
79462                 * progreloc.c (set_program_name_and_installdir): Fix
79463                 compilation error.
79464
79465         2005-12-04  Bruno Haible  <bruno@clisp.org>
79466
79467                 Cygwin portability.
79468                 * progreloc.c: Include <windows.h> also on Cygwin.
79469                 (find_executable): Add support for Cygwin.
79470                 (set_program_name_and_installdir): Handle also platforms with
79471                 nonempty EXEEXT.
79472
79473         2006-07-11  Bruno Haible  <bruno@clisp.org>
79474
79475                 * javacomp.c: Fix a comment.
79476                 Reported by Jim Meyering.
79477
79478         2006-04-30  Bruno Haible  <bruno@clisp.org>
79479
79480                 * javacomp.h (compile_java_class): Add source_version,
79481                 target_version arguments.
79482                 * javacomp.c: Rewritten to choose only a compiler that
79483                 respects the specified source_version and target_version.
79484
79485         2006-06-27  Bruno Haible  <bruno@clisp.org>
79486
79487                 Assume correct S_ISDIR macro.
79488                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79489
79490         2006-07-22  Bruno Haible  <bruno@clisp.org>
79491
79492                 * javaversion.h: New file, from GNU gettext.
79493                 * javaversion.c: New file, from GNU gettext.
79494                 * javaversion.java: New file, from GNU gettext.
79495                 * javaversion.class: New file, from GNU gettext.
79496
79497         2006-05-17  Bruno Haible  <bruno@clisp.org>
79498
79499                 Cygwin portability.
79500                 * javaexec.c (execute_java_class): Test for jview program
79501                 also on Cygwin.
79502
79503         2006-04-09  Bruno Haible  <bruno@clisp.org>
79504
79505                 * fatal-signal.c: Don't include string.h.
79506                 (at_fatal_signal): Use a copying loop instead of memcpy.
79507
79508         2005-12-04  Bruno Haible  <bruno@clisp.org>
79509
79510                 * csharpexec.c: Add support for 'clix' launcher (untested).
79511                 (execute_csharp_using_sscli): New function.
79512                 (execute_csharp_program): Call it.
79513
79514         2006-06-21  Bruno Haible  <bruno@clisp.org>
79515
79516                 Avoid warnings from recent versions of mcs.
79517                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79518                 -o, -L, -r any more. Use options documented since mcs-1.0
79519                 instead. Similarly for -g.
79520
79521         2005-07-09  Bruno Haible  <bruno@clisp.org>
79522
79523                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79524                 add a .dll suffix.
79525                 Reported by Mark Junker <mjscod@gmx.de>.
79526
79527         2006-06-17  Bruno Haible  <bruno@clisp.org>
79528
79529                 * config.charset: Update for NetBSD 3.0.
79530
79531         2006-05-17  Bruno Haible  <bruno@clisp.org>
79532
79533                 Cygwin portability.
79534                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79535
79536         2006-05-16  Bruno Haible  <bruno@clisp.org>
79537
79538                 * localcharset.c [CYGWIN]: Include <windows.h>.
79539                 (get_charset_aliases): For Cygwin, return the same CPxxx
79540                 aliases list as under WIN32.
79541                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79542                 the environment variables. Fall back to GetACP().
79543
79544         2006-04-05  Bruno Haible  <bruno@clisp.org>
79545
79546                 * config.charset: Update Juan Manuel Guerrero's address.
79547
79548         2005-02-12  Bruno Haible  <bruno@clisp.org>
79549
79550                 * allocsa.h: Add extern "C" for C++.
79551
79552         2005-02-10  Bruno Haible  <bruno@clisp.org>
79553
79554                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79555                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79556
79557         2006-07-22  Bruno Haible  <bruno@clisp.org>
79558
79559                 * gettext.h: Update to GNU gettext-0.15.
79560
79561 2006-07-22  Bruno Haible  <bruno@clisp.org>
79562
79563         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79564         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79565         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79566
79567 2006-07-21  Eric Blake  <ebb9@byu.net>
79568
79569         * modules/stdlib-safer: New file.
79570         * MODULES.html.sh (File stream based Input/Output): Add
79571         stdlib-safer.
79572
79573 2006-07-21  Eric Blake  <ebb9@byu.net>
79574
79575         * lib/stdlib-safer.h: New file from coreutils, required by
79576         stdlib--.h.
79577
79578 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79581
79582 2006-07-20  Bruno Haible  <bruno@clisp.org>
79583
79584         * gnulib-tool: Recognize new option --assume-autoconf.
79585         (autoconf_minversion): New variable.
79586         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79587
79588 2006-07-20  Bruno Haible  <bruno@clisp.org>
79589
79590         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79591
79592 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79593
79594         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79595         Reindent and repaginate.
79596
79597 2006-07-19  Derek Price  <derek@ximbiot.com>
79598
79599         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79600         Correct grammar.
79601
79602 2006-07-17  Bruno Haible  <bruno@clisp.org>
79603
79604         * modules/list: New file.
79605         * modules/array-list: New file.
79606         * modules/carray-list, modules/carray-list-tests: New files.
79607         * modules/linked-list, modules/linked-list-tests: New files.
79608         * modules/avltree-list, modules/avltree-list-tests: New files.
79609         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79610         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79611         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79612         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79613         * modules/oset: New file.
79614         * modules/array-oset: New file.
79615         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79616         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79617         * tests/test-carray_list.c: New file.
79618         * tests/test-linked_list.c: New file.
79619         * tests/test-avltree_list.c: New file.
79620         * tests/test-rbtree_list.c: New file.
79621         * tests/test-linkedhash_list.c: New file.
79622         * tests/test-avltreehash_list.c: New file.
79623         * tests/test-rbtreehash_list.c: New file.
79624         * tests/test-avltree_oset.c: New file.
79625         * tests/test-rbtree_oset.c: New file.
79626         * MODULES.html.sh (Container data structures): New section.
79627
79628 2006-07-17  Bruno Haible  <bruno@clisp.org>
79629
79630         * m4/gl_list.m4: New file.
79631
79632 2006-07-17  Bruno Haible  <bruno@clisp.org>
79633
79634         * lib/gl_list.h: New file.
79635         * lib/gl_list.c: New file.
79636         * lib/gl_array_list.h: New file.
79637         * lib/gl_array_list.c: New file.
79638         * lib/gl_carray_list.h: New file.
79639         * lib/gl_carray_list.c: New file.
79640         * lib/gl_linked_list.h: New file.
79641         * lib/gl_linked_list.c: New file.
79642         * lib/gl_anylinked_list1.h: New file.
79643         * lib/gl_anylinked_list2.h: New file.
79644         * lib/gl_avltree_list.h: New file.
79645         * lib/gl_avltree_list.c: New file.
79646         * lib/gl_anyavltree_list1.h: New file.
79647         * lib/gl_anyavltree_list2.h: New file.
79648         * lib/gl_rbtree_list.h: New file.
79649         * lib/gl_rbtree_list.c: New file.
79650         * lib/gl_anyrbtree_list1.h: New file.
79651         * lib/gl_anyrbtree_list2.h: New file.
79652         * lib/gl_anytree_list1.h: New file.
79653         * lib/gl_anytree_list2.h: New file.
79654         * lib/gl_linkedhash_list.h: New file.
79655         * lib/gl_linkedhash_list.c: New file.
79656         * lib/gl_anyhash_list1.h: New file.
79657         * lib/gl_anyhash_list2.h: New file.
79658         * lib/gl_avltreehash_list.h: New file.
79659         * lib/gl_avltreehash_list.c: New file.
79660         * lib/gl_rbtreehash_list.h: New file.
79661         * lib/gl_rbtreehash_list.c: New file.
79662         * lib/gl_anytreehash_list1.h: New file.
79663         * lib/gl_anytreehash_list2.h: New file.
79664
79665         * lib/gl_oset.h: New file.
79666         * lib/gl_oset.c: New file.
79667         * lib/gl_array_oset.h: New file.
79668         * lib/gl_array_oset.c: New file.
79669         * lib/gl_avltree_oset.h: New file.
79670         * lib/gl_avltree_oset.c: New file.
79671         * lib/gl_rbtree_oset.h: New file.
79672         * lib/gl_rbtree_oset.c: New file.
79673         * lib/gl_anytree_oset.h: New file.
79674
79675 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * m4/mkancesdirs.m4: New file.
79678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79679         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79680         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79681         it.
79682
79683 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79684
79685         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79686         * lib/mkancesdirs.h: New files.
79687         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79688         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79689         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79690         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79691         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79692         callers changed.  Revamp internals significantly, by not
79693         attempting to create directories that are temporarily more
79694         permissive than the final results.  Do not attempt to use
79695         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79696         This removes some race conditions, fixes some bugs, and simplifies
79697         things.  Use new dirchownmod function to do owner and mode changes.
79698         * lib/mkdir-p.h: Likewise.
79699         * lib/modechange.c (octal_to_mode): New function.
79700         (struct mode_change): New member mentioned.
79701         (make_node_op_equals): New arg mentioned.  All callers changed.
79702         (mode_compile): Keep track of which mode bits the user has explicitly
79703         mentioned.
79704         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79705         New arg PMODE_BITS, to keep track of which mode bits the user
79706         mentioned; it treats S_ISUID and S_ISGID speciall.
79707         All callers changed.
79708         * lib/modechange.h: Likewise.
79709
79710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * MODULES.html.sh: Add mkancestors.
79713         * modules/mkancesdirs: New module.
79714         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79715         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79716         The chdir-safer and afs files are now orphans; I'll remove them
79717         unless someone speaks up.
79718         Add lib/dirchownmod.c, lib/dirchownmod.h.
79719         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79720         Add lchown, mkancesdirs.
79721         (Maintainer): Add self.
79722
79723 2006-07-15  Karl Berry  <karl@gnu.org>
79724
79725         * gnulib-tool: help message wording/arrangement.
79726
79727 2006-07-14  Simon Josefsson  <jas@extundo.com>
79728
79729         * doc/gnulib.texi (Libtool and Windows): New section.
79730
79731 2006-07-12  Simon Josefsson  <jas@extundo.com>
79732
79733         * modules/gendocs (License): Fix license, approved by Karl.
79734
79735 2006-07-12  Eric Blake  <ebb9@byu.net>
79736
79737         * MODULES.html.sh: Add gendocs.
79738
79739 2006-07-11  Eric Blake  <ebb9@byu.net>
79740
79741         * modules/fdl: New module, to install doc/fdl.texi.
79742         * MODULES.html.sh: Add new section for documentation modules.
79743         * gnulib-tool: Avoid space-tab.
79744         (--doc-base): New option, to manage files from doc.
79745
79746 2006-07-11  Eric Blake  <ebb9@byu.net>
79747
79748         * m4/absolute-header.m4: Fix comments to match recent change.
79749
79750 2006-07-11  Eric Blake  <ebb9@byu.net>
79751
79752         * gnulib-tool: List --doc-base before --tests-base.
79753
79754 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79755
79756         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79757
79758 2006-07-11  Bruno Haible  <bruno@clisp.org>
79759
79760         * README: Mention where to put documentation.
79761
79762 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79763
79764         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79765
79766 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79769         to stdint.m4.
79770
79771 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79772
79773         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79774         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79775         "no/such/file/stdint.h" when there is no such file, so that
79776         the resulting C code can be parsed by dodgy compilers.
79777         Problems reported by Bob Proulx.
79778
79779 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79780
79781         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79782         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79783         macros into the GNU _D_EXACT_NAMLEN.
79784         * lib/savedir.c:  Likewise.
79785         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79786
79787 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79788         and Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79791         * m4/savedir.m4:
79792         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79793         macros into the GNU _D_EXACT_NAMLEN.
79794
79795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79798         around the absolute name, to work around a problem with the HP-UX
79799         11.23 native C compiler, reported by Bob Proulx.
79800
79801 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * doc/maintain.texi, make-stds.texi: Sync from
79804         <http://savannah.gnu.org/projects/gnustandards>.
79805
79806 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79807
79808         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79809
79810 2006-07-09  Jim Meyering  <jim@meyering.net>
79811
79812         * m4/glob.m4: Remove a doubled word in a comment.
79813
79814 2006-07-09  Jim Meyering  <jim@meyering.net>
79815
79816         * lib/argp-pv.c: Remove a doubled word in a comment.
79817         * lib/check-version.c (check_version): Likewise.
79818         * lib/javacomp.c (compile_java_class): Likewise.
79819
79820 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79821
79822         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79823         for the benefit of people using Autoconf 2.60.  If you want to
79824         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79825         (or m4/onceonly.m4, if pre-2.57) manually.
79826
79827 2006-07-08  Jim Meyering  <jim@meyering.net>
79828
79829         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79830         comment.
79831         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79832         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79833         comment.
79834
79835 2006-07-08  Jim Meyering  <jim@meyering.net>
79836
79837         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79838
79839 2006-07-07  Simon Josefsson  <jas@extundo.com>
79840
79841         * tests/test-crc.c: Change expected crc value, the test vector
79842         were probably computed using the old broken crc.c?
79843
79844 2006-07-06  Simon Josefsson  <jas@extundo.com>
79845
79846         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79847         now the canonical place for the M4 file).
79848
79849         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79850         from the sys_socket dependency now.
79851
79852         * modules/inet_pton (Files): Ditto.
79853
79854         * modules/inet_ntop (Files): Ditto.
79855
79856 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79857
79858         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79859         not gl_PREREQ_GETUSERSHELL.
79860
79861 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79862
79863         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79864         with only one argument, for Autoconf 2.60.
79865         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79866         expand to nothing, so add a shell command to avoid syntax error.
79867         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79868
79869 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79870
79871         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79872
79873 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79874
79875         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79876         no longer needed.  Check for isblank decl.
79877         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79878         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79879         of existence.
79880
79881 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * lib/getloadavg.c: Use __VMS, not VMS.
79884         * lib/getopt.c: Likewise.
79885         * lib/getpagesize.h: Likewise.
79886         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79887         and probably does not work.
79888
79889 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * lib/.cppi-disable: Add wcwidth.
79892         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79893         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79894         (ISGRAPH): Remove.  All uses changed to isgraph.
79895         (FOLD) [!defined _LIBC]: Remove special case.
79896         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79897         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79898         HAVE_ISBLANK.
79899         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79900         case.
79901
79902 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79903
79904         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79905         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79906         brackets.  Other minor changes to suppress some compiler
79907         warnings.
79908
79909 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79910         and Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79913         of invoking obsolescent AC_HEADER_DIRENT macro.
79914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79915         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79918         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79919         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79920         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79921         * m4/readdir.m4: Remove; no longer needed.
79922
79923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79924         and Paul Eggert  <eggert@cs.ucla.edu>
79925
79926         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79927         Don't worry about this obsolete case any more.
79928         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79929         directories.
79930         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79931         worry about this obsolete case any more.
79932         * lib/fts.c: Likewise.
79933         * lib/getcwd.c: Likewise.
79934         * lib/glob.h: Likewise.
79935         * lib/savedir.c: Likewise.
79936
79937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79940         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79941         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79942         needed.
79943         All uses removed.
79944         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79945         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79946         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79947         needed.
79948         * m4/getdate.m4 (gl_GETDATE): Likewise.
79949         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79950         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79952         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79953         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79955         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79956         needed.
79957
79958 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79959
79960         * lib/memcasecmp.c: Include <limits.h>.
79961         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79962         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79963         Don't assume isdigit succeeds only on '0' through '9'.
79964
79965 2006-07-05  Eric Blake  <ebb9@byu.net>
79966
79967         * modules/getaddrinfo (Depends-on): Add snprintf.
79968
79969 2006-07-05  Eric Blake  <ebb9@byu.net>
79970
79971         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79972         to avoid 'header present but could not be compiled' on cygwin.
79973
79974 2006-07-05  Eric Blake  <ebb9@byu.net>
79975
79976         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79977         missing from netdb.h.
79978         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79979
79980 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79981
79982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79983         no longer needed.
79984         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79985         * m4/getdate.m4 (gl_GETDATE): Likewise.
79986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79991
79992 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79993
79994         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79995         All uses of is_space replaced by isspace.
79996         * lib/exit.h: Don't talk about STDC_HEADERS.
79997         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79998         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79999         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80000         replaced by isprint etc.
80001         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80002         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80003         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80004         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80005         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80006         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80007
80008 2006-07-05  Bruno Haible  <bruno@clisp.org>
80009
80010         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80011         the function exists, before testing against AIX.
80012         Reported by Martin Lambers <marlam@marlam.de>.
80013
80014 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80017         From Mark D. Baushke.
80018
80019 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80020
80021         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80022         to the absolute name, not just one, to bypass Sun C 5.8's
80023         "warning: #include of /usr/include/... may be non-portable".
80024
80025 2006-07-04  Eric Blake  <ebb9@byu.net>
80026
80027         * modules/dirname-tests: New test module.
80028         * tests/test-dirname.c: New file, replacing dirname.c
80029         TEST_DIRNAME section that was recently deleted.
80030
80031 2006-07-04  Bruno Haible  <bruno@clisp.org>
80032
80033         Assume ANSI C header files and <ctype.h> functions.
80034         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80035         (mbsnwidth): Use isprint, iscntrl instead.
80036
80037 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         Merge from coreutils.
80040         * MODULES.html.sh: Add xstrtold.
80041         * modules/xstrtold: New file.
80042         * modules/cycle-check (Files): Add lib/same-inode.h.
80043         * modules/dirname (Files): Add m4/double-slash-root.m4.
80044         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80045         * modules/mkdir-p (Files): Add lib/same-inode.h.
80046         * modules/same (Files): Add lib/same-inode.h.
80047
80048 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80051         This is to keep the terminology clean; POSIX talks about
80052         "absolute pathnames", not "full pathnames", but the GNU
80053         Coding Standards say to use "path" for something else;
80054         so use "absolute" to keep both sides happy.
80055         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80056         Set gl_absolute_header, not gl_full_header_path.
80057         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80058         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80059         All uses changed.
80060
80061         Merge from coreutils.
80062
80063         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80064
80065         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80066         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80067         want to require the building of c-strtod.o.
80068         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80069         needs -lm directly.
80070         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80071
80072         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80075         --as-needed option if available.  Problem reported by Albert Chin in
80076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80077         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80078         cc merely issues a bunch of annoying warnings for --as-needed
80079         (this problem was reported by Bob Proulx).  Also, try linking with
80080         -lm to detect a bug in binutils 2.16 (this problem was reported
80081         by Ralf Wildenhues).
80082
80083         2006-06-18  Jim Meyering  <jim@meyering.net>
80084
80085         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80087         macro.
80088         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80089         also check for glibc-2.4's abort-inducing bug.
80090
80091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80092         Low-probability clean-up should be to use rmdir to get rid of
80093         the just-created directory, not unlink.
80094
80095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80096         configure fail, and request a bug report to inform us about it.
80097         Add a comment that, barring reports to the contrary, in 2007 we'll
80098         assume ftruncate is universally available.
80099
80100         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80103
80104         2006-03-12  Jim Meyering  <jim@meyering.net>
80105
80106         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80107         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80108         * m4/same.m4 (gl_SAME): Likewise.
80109         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80110
80111         2006-03-11  Eric Blake  <ebb9@byu.net>
80112
80113         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80114         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80115         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80116         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80117
80118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80121         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80122         reported by Mark D. Baushke, one in
80123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80124
80125         Merge from coreutils.
80126
80127         * lib/.cppi-disable: Add stdint_.h.
80128         * lib/.cvsignore: Add stdint.h.
80129
80130         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80133         both double and long double versions.
80134         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80135         * lib/xstrtold.c: New file.
80136         * lib/xstrtod.h (xstrtold): New decl.
80137
80138         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80139
80140         * lib/filemode.c (setst): Remove.
80141         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80142         (arguably) clearer, and the generated code is a bit smaller on my
80143         Debian GNU/Linux stable x86 host.
80144
80145         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80148         Assume that filemode.h includes sys/types.h and sys/stat.h.
80149         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80150         (ftypelet): Reorder to put common cases first, for efficiency.
80151         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80152         to do 'M'.
80153         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80154         of 10, for compatibility with FreeBSD.  All callers changed.
80155         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80156         types that can't be deduced solely from st_mode.  First arg is now a
80157         const pointer.
80158         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80159         (strmode): Renamed from mode_string.
80160         (filemodestring): New decl.
80161         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80162         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80163         needed.
80164         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80165
80166         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80169         fsusage.h now does that.  Include fsusage.h first, to test interface.
80170         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80171         at most one method (the old code could have generated decls that
80172         didn't conform to C89, not that this was ever exercised).
80173         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80174
80175         2006-03-19  Jim Meyering  <jim@meyering.net>
80176
80177         Work even in a chroot where d_ino values for entries in "/"
80178         don't match the stat.st_ino values for the same names.
80179         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80180         number, iterate through all entries again, using lstat instead.
80181         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80182         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80183
80184         * lib/getcwd.c (__getcwd): Clarify a comment.
80185         Use memcpy in place of a call to strcpy.
80186
80187         2006-03-12  Jim Meyering  <jim@meyering.net>
80188
80189         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80190         matches that of the current directory (which we're about to chdir ".."
80191         out of), then save the dev-ino of the parent, instead.
80192
80193         * lib/same-inode.h (SAME_INODE): New file/macro.
80194         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80195         Include "same-inode.h", instead.
80196         * lib/same.c: Likewise.
80197         * lib/cycle-check.h: Include "same-inode.h".
80198         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80199         * lib/cycle-check.c (SAME_INODE): Remove definition.
80200         * lib/root-dev-ino.h: Include "same-inode.h".
80201
80202         2006-03-11  Eric Blake  <ebb9@byu.net>
80203
80204         * lib/same.c (same_name): s/base_name/last_component/
80205         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80206         * lib/filenamecat.c (file_name_concat): Likewise.
80207
80208         2006-03-11  Eric Blake  <ebb9@byu.net>,
80209                     Paul Eggert  <eggert@cs.ucla.edu>
80210
80211         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80212         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80213         drive prefix.
80214         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80215         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80216         (last_component): New method.
80217         * lib/dirname.c (dir_len): Determine when drive letters need a
80218         subsequent slash.  Preserve // when it is special.
80219         (dir_name): Don't append dot when drive letter is absolute.
80220         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80221         * lib/basename.c (base_name): New semantics - malloc the result.
80222         Preserve // when it is special.  Preserve relative files that look
80223         like drive letters.
80224         (base_len): Preserve // when it is special.
80225         (last_component): New method, similar to old base_name semantics.
80226         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80227         base_name.  Strip redundant slashes from ///.
80228
80229 2006-07-03  Jim Meyering  <jim@meyering.net>
80230
80231         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80232         macro is used before the first cycle_check call.
80233
80234 2006-07-03  Eric Blake  <ebb9@byu.net>
80235
80236         * modules/dirname (Depends-on): Add xstrndup.
80237
80238 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80241         test cases, so that config.log is a bit easier to follow.
80242
80243 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80246         both are 64 bits, since this seems to be the tradition, and this
80247         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80248         we ever run into a host that prefers long long to long in this
80249         case, we'll need another configure-time test.  Problem reported by
80250         Jim Meyering.
80251
80252 2006-07-02  Eric Blake  <ebb9@byu.net>
80253
80254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80255
80256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * modules/inttypes (Depends-on): No longer depends on stdint.
80259         * modules/stdint (Description): Say more about assumptions.
80260         Say that the fast types might differ.  Say macros are used.
80261         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80262         (Makefile.am): Revise list of substituted symbols to match
80263         new stdint.m4.
80264         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80265         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80266         * tests/test-stdint.c (verify_same_types)
80267         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80268         the code conforms to C99/C89.
80269         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80270         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80271
80272 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80275         but fix a bug, by requiring at least 64 bits.
80276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80277         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80278         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80279         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80280
80281         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80282         changes.  Make 2.59 a prerequisite.  Check and substitute for
80283         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80284         inttypes.h.  Do not use special include files; just use the
80285         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80286         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80287         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80288         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80289         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80290         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80291         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80292         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80293         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80294         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80295         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80296         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80297         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80298         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80299         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80300         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80301         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80302         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80303         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80304         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80305         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80306         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80307         not check for things that C99 does not require, e.g., int8_t.  If
80308         a test isn't needed unless <stdint.h> isn't working, and is
80309         unlikely to be needed for any other reason, then don't do it
80310         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80311         size_t, since we assume C89 freestanding at least.  Do not check
80312         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80313         the right thing even if the types are not defined.  Instead use:
80314         (gl_STDINT_TYPE_PROPERTIES): New macro.
80315         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80316         testing whether <sys/types.h> clashes, as Autoconf does this for
80317         us now.  All uses removed.
80318         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80319         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80320         (gl_CHECK_TYPE_SAME):
80321         Remove; no longer needed.
80322         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80323         exists, since we'll return 0 anyway in that case.
80324         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80325
80326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80327
80328         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80329         possible collision with system files.
80330         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80331         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80332         WCHAR_MIN and WCHAR_MAX in this case.
80333         (<stddef.h>): Do not include; no longer needed.
80334         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80335         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80336         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80337         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80338         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80339         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80340         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80341         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80342         !defined(__c99))]: Include in this case too, since it's harmless
80343         now.
80344         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80345         dangerous to do so.
80346         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80347         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80348         (_STDINT_MIN, _STDINT_MAX): New macros.
80349         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80350         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80351         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80352         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80353         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80354         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80355         macros, not typedefs; this simplifies things quite a bit.
80356         Use long int for all types narrower than int64_t.
80357         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80358         Define in terms of long long int or int64_t or long int,
80359         not int64_t or int32_t.  This saves some compile-time testing.
80360         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80361         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80362         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80363         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80364         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80365         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80366         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80367         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80368         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80369         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80370         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80371         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80372         undef any previous version and define our own version, for
80373         simplicity and consistency with the new macros for types.
80374         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80375         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80376         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80377         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80378         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80379         @WINT_T_SUFFIX@ to keep things simple here.
80380         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80381         Simplify by assuming typical 8/16/32/64 host, since we're
80382         already doing that elsewhere anyway.
80383         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80384         and assume long long int is 64 bits if available.  This
80385         speeds up 'configure'.
80386
80387 2006-07-01  Eric Blake  <ebb9@byu.net>
80388
80389         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80390         Reported by Andreas Buening.
80391
80392 2006-07-01  Eric Blake  <ebb9@byu.net>
80393
80394         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80395
80396 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80397
80398         * lib/getaddrinfo.c: fixed typo
80399
80400 2006-06-29  Jim Meyering  <jim@meyering.net>
80401
80402         * modules/strftime (Maintainer): Add my name, since with the
80403         FPRINTFTIME changes strftime.c has forked from glibc.
80404
80405 2006-06-29  Eric Blake  <ebb9@byu.net>
80406
80407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80408
80409 2006-06-29  Eric Blake  <ebb9@byu.net>
80410
80411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80412
80413 2006-06-29  Eric Blake  <ebb9@byu.net>
80414
80415         * lib/stat_.h: New file.
80416
80417 2006-06-29  Eric Blake  <ebb9@byu.net>
80418
80419         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80420         unused static function.
80421
80422 2006-06-29  Eric Blake  <ebb9@byu.net>
80423
80424         * doc/functions.texi (Function Portability): Document missing lstat
80425         on mingw.
80426
80427 2006-06-29  Eric Blake  <ebb9@byu.net>
80428
80429         * MODULES.html.sh: Add sys_stat.
80430         * modules/sys_stat: New module.
80431         * modules/mkstemp (Depends-on): Add sys_stat.
80432
80433 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80434
80435         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80436
80437 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80438
80439         * m4/c-bs-a.m4: Removed.
80440
80441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80442
80443         * lib/strftime.c: Assume strftime() exists.
80444
80445 2006-06-29  Derek Price  <derek@ximbiot.com>
80446
80447         * modules/c-bs-a: Removed - \a is C89.
80448         * MODULES.html.sh: Remove c-bs-a.
80449
80450 2006-06-29  Bruno Haible  <bruno@clisp.org>
80451
80452         * modules/wcwidth (License): Change to LGPL.
80453
80454 2006-06-28  Simon Josefsson  <jas@extundo.com>
80455
80456         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80457         on _WIN32.
80458
80459         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80460         getnameinfo.
80461
80462 2006-06-28  Simon Josefsson  <jas@extundo.com>
80463
80464         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80465
80466 2006-06-28  Simon Josefsson  <jas@extundo.com>
80467
80468         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80469         functions there.  It will succeed on Windows XP, but on Windows
80470         2000 and (presumably) earlier, it will fail, and use the internal
80471         re-implementation.
80472         (use_win32_p): New function.
80473         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80474         Support AI_NUMERICSERV to disable getservbyname.
80475         (getnameinfo): New function, only supports
80476         NI_NUMERICHOST|NI_NUMERICSERV for now.
80477
80478         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80479         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80480         getnameinfo.
80481
80482 2006-06-28  Eric Blake  <ebb9@byu.net>
80483
80484         * modules/wcwidth: New file.
80485         * modules/mbchar (Depends-on): Add wcwidth.
80486         * modules/mbswidth (Depends-on): Add wcwidth.
80487         * MODULES.html.sh: Add wcwidth.
80488
80489 2006-06-28  Eric Blake  <ebb9@byu.net>
80490
80491         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80493
80494 2006-06-28  Eric Blake  <ebb9@byu.net>
80495
80496         * lib/xvasprintf.h: Fix comments.
80497
80498 2006-06-28  Eric Blake  <ebb9@byu.net>
80499
80500         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80501         * lib/mbswidth.c (wcwidth): Move from here...
80502         * lib/wcwidth.h: ...to this new file.
80503
80504 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80505
80506         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80507
80508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80509         it's obsolete.
80510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80511
80512 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80513
80514         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80515         Autoconf 2.60 says this stuff was obsolete.
80516
80517 2006-06-28  Bruno Haible  <bruno@clisp.org>
80518
80519         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80520
80521 2006-06-28  Bruno Haible  <bruno@clisp.org>
80522
80523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80524         gt_TYPE_WCHAR_T.
80525
80526 2006-06-28  Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80529         declaration for wcwidth.
80530         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80531
80532 2006-06-28  Bruno Haible  <bruno@clisp.org>
80533
80534         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80535         (mkdir): Define using _mkdir.
80536
80537 2006-06-28  Bruno Haible  <bruno@clisp.org>
80538
80539         * lib/getaddrinfo.h: Fix POSIX URL.
80540         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80541         _WIN32.
80542         (use_win32_p): Make static.
80543         (getaddrinfo): Reject service name if it is empty or does not consist
80544         solely of decimal digits, or if its value is > 65535.
80545         (getnameinfo): Remove useless casts.
80546
80547 2006-06-27  Simon Josefsson  <jas@extundo.com>
80548
80549         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80550         Eggert and Martin Lambers.
80551
80552 2006-06-27  Simon Josefsson  <jas@extundo.com>
80553
80554         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80555         Eggert and Martin Lambers.
80556
80557 2006-06-27  Bruno Haible  <bruno@clisp.org>
80558
80559         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80560         result to 0, not to empty.
80561         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80562
80563 2006-06-27  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80566
80567 2006-06-26  Simon Josefsson  <jas@extundo.com>
80568
80569         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80570         present.
80571
80572 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80575         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80577
80578 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80579
80580         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80581
80582 2006-06-26  Bruno Haible  <bruno@clisp.org>
80583
80584         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80585
80586 2006-06-26  Bruno Haible  <bruno@clisp.org>
80587
80588         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80589
80590 2006-06-26  Bruno Haible  <bruno@clisp.org>
80591
80592         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80593         SGI C compiler in pre-C99 mode.
80594         Suggested by Mark D. Baushke and Larry Jones.
80595
80596 2006-06-26  Bruno Haible  <bruno@clisp.org>
80597
80598         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80599         WCHAR_MAX.
80600         Reported by Mark D. Baushke and Larry Jones.
80601
80602 2006-06-26  Bruno Haible  <bruno@clisp.org>
80603
80604         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80605         in pre-C99 mode.
80606         Suggested by Mark D. Baushke and Larry Jones.
80607
80608 2006-06-23  Simon Josefsson  <jas@extundo.com>
80609             Bruno Haible  <bruno@clisp.org>
80610
80611         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80612         Emit mostlyclean-local rule.
80613         (func_emit_tests_Makefile_am): Likewise.
80614         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80615
80616 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80617
80618         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80619
80620 2006-06-23  Bruno Haible  <bruno@clisp.org>
80621
80622         * tests/test-stdint.c: Update to match ISO C 99 Technical
80623         Corrigendum 1.
80624
80625 2006-06-23  Bruno Haible  <bruno@clisp.org>
80626
80627         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80628
80629 2006-06-23  Bruno Haible  <bruno@clisp.org>
80630
80631         * lib/stdint_.h: Treat IRIX like OpenBSD.
80632
80633 2006-06-23  Bruno Haible  <bruno@clisp.org>
80634
80635         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80636         ISO C 99 Technical Corrigendum 1.
80637
80638 2006-06-22  Simon Josefsson  <jas@extundo.com>
80639
80640         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80641         MinGW.
80642
80643 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80646         needed.  Some compiler complained about some of them.  Problem reported
80647         by Larry Jones in
80648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80649
80650 2006-06-21  Simon Josefsson  <jas@extundo.com>
80651
80652         * tests/test-getaddrinfo.c: New file.
80653
80654         * modules/getaddrinfo-tests: New file.
80655
80656         * MODULES.html.sh: Add inet_pton.
80657
80658         * modules/inet_pton: New file.
80659
80660 2006-06-21  Simon Josefsson  <jas@extundo.com>
80661
80662         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80663         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80664         of using the (limited) gnulib implementation on Windows XP.
80665
80666         * m4/inet_pton.m4: New file.
80667
80668 2006-06-21  Simon Josefsson  <jas@extundo.com>
80669
80670         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80671         variable.
80672
80673         * lib/socket_.h: Don't define WINVER.
80674
80675         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80676         slightly modified to work in gnulib.
80677
80678 2006-06-21  Simon Josefsson  <jas@extundo.com>
80679
80680         * doc/gnulib.texi (Windows sockets): Add.
80681
80682 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * lib/read-file.c (fread_file): Start with buffer allocation of
80685         0 bytes rather than 1 byte; this simplifies the code.
80686         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80687         code to free buffer and save/restore errno.
80688         (internal_read_file): Remove unused local.
80689
80690 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80693         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80694         Problem reported by Denis Excoffier in
80695         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80696
80697 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80698
80699         * modules/sys_socket, modules/socklen: Include sys/types since
80700         FreeBSD 4.x's sys/socket.h needs it.
80701
80702 2006-06-19  Simon Josefsson  <jas@extundo.com>
80703
80704         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80705
80706 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80709
80710 2006-06-19  Bruno Haible  <bruno@clisp.org>
80711
80712         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80713         and FULL_PATH_INTTYPES_H in angle brackets.
80714         Reported by Mark D. Baushke <mdb@gnu.org>.
80715
80716 2006-06-17  Eric Blake  <ebb9@byu.net>
80717
80718         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80719         errno.
80720
80721 2006-06-17  Bruno Haible  <bruno@clisp.org>
80722
80723         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80724         <sys/inttypes.h>.
80725
80726 2006-06-17  Bruno Haible  <bruno@clisp.org>
80727
80728         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80729         whether errno is declared. Assume <errno.h> declares errno.
80730
80731 2006-06-17  Bruno Haible  <bruno@clisp.org>
80732
80733         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80734
80735 2006-06-17  Bruno Haible  <bruno@clisp.org>
80736
80737         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80738         problem on Solaris 2.5.1.
80739
80740 2006-06-16  Eric Blake  <ebb9@byu.net>
80741
80742         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80743         * lib/unicodeio.c [!defined errno]: Likewise.
80744         * lib/strtol.c [!defined errno]: Likewise.
80745         * lib/strtod.c [!defined errno]: Likewise.
80746
80747 2006-06-15  Eric Blake  <ebb9@byu.net>
80748
80749         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80750
80751 2006-06-15  Eric Blake  <ebb9@byu.net>
80752
80753         * config/srclist.txt (ssize_t.m4): Lose sync.
80754
80755 2006-06-15  Bruno Haible  <bruno@clisp.org>
80756
80757         * modules/stdint (Files): Include m4/full-header-path.m4,
80758         m4/size_max.m4, m4/wchar_t.m4.
80759         (Makefile.am): Many more substitutions.
80760         * modules/stdint-tests: New file.
80761         * tests/test-stdint.c: New file.
80762
80763 2006-06-15  Bruno Haible  <bruno@clisp.org>
80764
80765         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80766         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80767         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80768         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80769         gl_CHECK_TYPE_SAME): New macros.
80770
80771 2006-06-15  Bruno Haible  <bruno@clisp.org>
80772
80773         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80774
80775 2006-06-15  Bruno Haible  <bruno@clisp.org>
80776
80777         * lib/stdint_.h: Rewritten to be fully auto-configured.
80778         Fixes bug on HP-UX/IA64.
80779
80780 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * lib/getdate.y (__attribute__): Don't define if already defined.
80783         Problem reported by Larry Jones.
80784         * lib/utimens.c (__attribute__): Likewise.
80785
80786 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80789         reported by Andreas Schwab.
80790
80791 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80792             Bruno Haible  <bruno@clisp.org>
80793
80794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80795         check for the declaration of strnlen and a run test that exposes the
80796         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80797         rpl_strndup.
80798
80799 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80800             Bruno Haible  <bruno@clisp.org>
80801
80802         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80803
80804 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80805
80806         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80807         compile test, for Tru64 4.0D.
80808
80809 2006-05-28  Karl Berry  <karl@gnu.org>
80810
80811         * config/srclist.txt (printf-args.c): lose sync.
80812
80813 2006-05-26  Martin Lambers  <marlam@marlam.de>
80814
80815         * lib/getpass.c: Updates the test for the native W32 API, and adds
80816         missing includes, thus fixing compilation warnings.
80817
80818 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80819
80820         * lib/exclude.c (exclude_fnmatch): New function.
80821         (excluded_file_name): Call exclude_fnmatch.
80822         * lib/exclude.h (excluded_file_name): New prototype
80823
80824 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * lib/tempname.c (small_open, large_open): New macros.
80827         (__open, __open64) [!_LIBC]: Remove.
80828         (__gen_tempname): Use small_open and large_open instead of __open
80829         and __open64.  This fixes a portability bug on HP-UX 11.11i
80830         reported by Simon Wing-Tang in
80831         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80832
80833 2006-05-24  Bruno Haible  <bruno@clisp.org>
80834
80835         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80836         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80837         Reported by Thorsten Maerz <torte@netztorte.de> via
80838         Aaron Stone <aaron@serendipity.cx>.
80839
80840 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80841
80842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80843         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80844         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80845         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80846         not really conditional on the cache.
80847         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80848
80849 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80852         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80853         (my_usleep): Don't mishandle maximum value.
80854
80855 2006-05-19  Jim Meyering  <jim@meyering.net>
80856
80857         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80858
80859 2006-05-17  Bruno Haible  <bruno@clisp.org>
80860
80861         Cygwin portability.
80862         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80863
80864 2006-05-17  Bruno Haible  <bruno@clisp.org>
80865
80866         * lib/stdint_.h: Fix recognition of Cygwin.
80867
80868 2006-05-15  Bruno Haible  <bruno@clisp.org>
80869
80870         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80871         on libtool patch by Ralf Wildenhues.
80872
80873 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80874
80875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80876         test for C99 conformance; (bool) 0.5 is an integer constant
80877         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80878         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80879
80880 2006-05-11  Simon Josefsson  <jas@extundo.com>
80881
80882         * m4/xvasprintf.m4: Fix obvious typo.
80883
80884 2006-05-11  Jim Meyering  <jim@meyering.net>
80885
80886         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80887         James Lemley.
80888
80889 2006-05-10  Simon Josefsson  <jas@extundo.com>
80890
80891         * lib/md4.c: Typo fix, update copyright years.
80892         (K1, K2): Don't use L because it turn computations into 64-bit on
80893         64-bit platforms.
80894
80895 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80898         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80899         unwanted sign propagation, e.g., on hosts with 64-bit int.
80900         There still are some problems with reeelly weird theoretical hosts
80901         (e.g., 33-bit int) but it's not worth worrying about now.
80902         * lib/sha1.c (rol): Likewise.
80903         (K1, K2, K3, K4): Remove unnecessary L suffix.
80904
80905 2006-05-10  Bruno Haible  <bruno@clisp.org>
80906
80907         * lib/des.c: Cast to avoid warnings.
80908
80909 2006-05-09  Bruno Haible  <bruno@clisp.org>
80910
80911         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80912         (Depends-on): Depend also on xsize, stdarg.
80913         (configure.ac): Add gl_XVASPRINTF.
80914
80915 2006-05-09  Bruno Haible  <bruno@clisp.org>
80916
80917         * m4/xvasprintf.m4: New file.
80918
80919 2006-05-09  Bruno Haible  <bruno@clisp.org>
80920
80921         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80922         (EOVERFLOW): Define fallback value.
80923         (xstrcat): New function.
80924         (xvasprintf): Recognize the special case of a string concatenation.
80925
80926 2006-05-08  Eric Blake  <ebb9@byu.net>
80927
80928         * gnulib-tool (func_version): Base copyright year on CVS date.
80929         (func_emit_copyright_notice): New function.
80930         (func_emit_lib_Makefile_am): Use it.
80931         (func_emit_tests_Makefile_am): Likewise.
80932         (func_import): Likewise.
80933
80934 2006-05-08  Bruno Haible  <bruno@clisp.org>
80935
80936         * modules/stdarg: New file.
80937         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80938
80939 2006-05-08  Bruno Haible  <bruno@clisp.org>
80940
80941         * m4/stdarg.m4: New file, from GNU gettext.
80942
80943 2006-05-08  Bruno Haible  <bruno@clisp.org>
80944
80945         * config/srclist.txt (build-aux/config.rpath): different from latest
80946         release.
80947
80948 2006-05-08  Bruno Haible  <bruno@clisp.org>
80949
80950         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80951
80952 2006-05-05  Jim Meyering  <jim@meyering.net>
80953
80954         * m4/warning.m4: New file, derived from bison's file by the same name.
80955
80956 2006-05-03  Bruno Haible  <bruno@clisp.org>
80957
80958         * lib/stdint_.h: Shorter URL.
80959         * lib/inttypes.h: Likewise.
80960
80961 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80962
80963         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80964
80965 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80966
80967         * lib/verify.h: Document the internals better.  Most of this change
80968         was written by Bruno Haible.
80969
80970 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * doc/verify.texi: New file, partly based on a proposal by
80973         Bruno Haible.
80974
80975 2006-05-02  Bruno Haible  <bruno@clisp.org>
80976
80977         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80978         test from here...
80979         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80980
80981 2006-04-29  Bruno Haible  <bruno@clisp.org>
80982
80983         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80984         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80985
80986 2006-04-29  Bruno Haible  <bruno@clisp.org>
80987
80988         * gnulib-tool: Make --update option actually work.
80989
80990 2006-04-29  Bruno Haible  <bruno@clisp.org>
80991
80992         * doc/gcd.texi: New file.
80993         * doc/gnulib.texi: Include it.
80994
80995 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * lib/getdate.y (get_date): When adding relative date, start with the
80998         initial time, not with the result of the first mktime call.
80999
81000 2006-04-25  Bruno Haible  <bruno@clisp.org>
81001
81002         * gnulib-tool (func_import): Output the include directives in three
81003         blocks, sorted separately.
81004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81005
81006 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81009         to define main with arguments, for C++.  Reported by Eric Blake.
81010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81011         Prefer 'int main ()' to 'int main (void)', for C++.
81012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81013         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81014         for 'main', for C99 and C++.
81015
81016 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81019         Don't assume that exit status -1 is valid.
81020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81021         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81022         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81023         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81024         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81025         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81026         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81027         functions can be used without declaring them, or that you can
81028         exit with status -1.
81029         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81030
81031 2006-04-24  Karl Berry  <karl@gnu.org>
81032
81033         * config/srclist.txt (longdouble.m4): sync lost.
81034
81035 2006-04-24  Eric Blake  <ebb9@byu.net>
81036
81037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81038
81039 2006-04-24  Bruno Haible  <bruno@clisp.org>
81040
81041         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81042         poll() implementation in AIX.
81043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81044
81045 2006-04-24  Bruno Haible  <bruno@clisp.org>
81046
81047         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81048         assigned exactly once.
81049
81050 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81051             Bruno Haible  <bruno@clisp.org>
81052
81053         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81054         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81055         for AM_CPPFLAGS.
81056
81057 2006-04-23  Bruno Haible  <bruno@clisp.org>
81058
81059         * modules/copy-file: Depend on unistd.
81060         * modules/execute: Likewise.
81061         * modules/fatal-signal: Likewise.
81062         * modules/findprog: Likewise.
81063         * modules/mkdtemp : Likewise.
81064         * modules/pipe: Likewise.
81065         * modules/wait-process: Likewise.
81066
81067 2006-04-23  Bruno Haible  <bruno@clisp.org>
81068
81069         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81070         condition was already detected.
81071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81072
81073 2006-04-23  Bruno Haible  <bruno@clisp.org>
81074
81075         * lib/copy-file.c: Include <unistd.h> unconditionally.
81076         * lib/execute.c: Likewise.
81077         * lib/fatal-signal.c: Likewise.
81078         * lib/findprog.c: Likewise.
81079         * lib/mkdtemp.c: Likewise.
81080         * lib/pipe.h: Likewise.
81081         * lib/pipe.c: Likewise.
81082         * lib/wait-process.h: Likewise.
81083
81084 2006-04-23  Bruno Haible  <bruno@clisp.org>
81085
81086         * gnulib-tool (func_usage): Fix --import description. Document
81087         --update.
81088         (func_import): Create temporary file in a temporary directory, if
81089         --dry-run is specified. Silence errors from 'grep' when there are no
81090         m4 files in $m4dir.
81091         (func_create_testdir): Silence errors from 'grep' when there are no
81092         m4 files in $m4dir.
81093         Reported by Karl Berry <karl@freefriends.org>.
81094
81095 2006-04-20  Bruno Haible  <bruno@clisp.org>
81096
81097         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81098         one argument, so that the code will be portable to Autoconf 2.60.
81099         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81101         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81102
81103 2006-04-19  Derek Price  <derek@ximbiot.com>
81104             Eric Blake  <ebb9@byu.net>
81105
81106         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81107         rather than "/full/path.h".  Update comment to match.  Shorten &
81108         generalize m4_translit call via AS_TR_CPP.
81109
81110 2006-04-19  Derek Price  <derek@ximbiot.com>
81111             Eric Blake  <ebb9@byu.net>
81112
81113         * lib/inttypes.h: Correct grammar in comment.
81114
81115 2006-04-18  Derek Price  <derek@ximbiot.com>
81116             Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         * modules/inttypes: New file.
81119         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81120
81121 2006-04-18  Derek Price  <derek@ximbiot.com>
81122             Paul Eggert  <eggert@cs.ucla.edu>
81123
81124         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81125         New files.
81126
81127 2006-04-18  Derek Price  <derek@ximbiot.com>
81128             Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * lib/inttypes.h: New file.
81131         * lib/strtoimax.c: Assume <inttypes.h>.
81132
81133 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81134
81135         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81136         isn't mounted.  Problem reported by Kir Kolyshkin.
81137
81138 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81139
81140         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81141         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81142         Derek R. Price.
81143         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81144         implementation.
81145
81146 2006-04-12  Eric Blake  <ebb9@byu.net>
81147
81148         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81149         is now done automatically by the corresponding Autoconf macro.
81150
81151 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81152
81153         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81154         time_r.h.
81155
81156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         Merge regex changes from libc, removing some of our
81159         POSIX-conformance changes that were rejected and redoing them in a
81160         less-intrusive way.
81161
81162         * lib/regcomp.c (re_compile_internal, init_dfa):
81163         Length arg is now size_t, not Idx.  All uses changed.
81164         (peek_token): Forward decl now says internal_function.
81165         (__re_error_msgid, __re_error_msgid_idx):
81166         Now static rather than extern with attribute_hidden.
81167         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81168         For some reason libc prefers K&R style defns for external functions.
81169         (regerror) [!defined _LIBC]: Likewise.
81170         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81171         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81172         (build_range_exp, build_collating_symbol):
81173         Use K&R-style defn.
81174         (re_compile_fastmap): Use '\0' to memset, not 0.
81175         (utf8_sb_map): Make the calculations more obvious.
81176         (init_dfa, parse_bracket_exp, build_charclass_op):
81177         Call calloc and cast result, as glibc does.
81178         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81179         (build_range_exp, build_collating_symbol):
81180         Now internal functions.
81181
81182         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81183
81184         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81185         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81186         Don't depend on VMS; depend on __VMS instead, for POSIX
81187         namespace cleanness.
81188         (regoff_t): Define to ssize_t, not long int.
81189
81190         Remove the REG_ macros named below.  Instead, make the old names
81191         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81192         __USE_GNU_REGEX.
81193         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81194         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81195         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81196         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81197         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81198         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81199         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81200         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81201         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81202         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81203         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81204         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81205         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81206         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81207         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81208         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81209         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81210         (REG_NREGS):
81211         Remove.  All uses replaced by the old RE_* names.
81212         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81213         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81214         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81215         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81216         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81217         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81218         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81219         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81220         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81221         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81222         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81223         Don't bother having these macros be independent of each others'
81224         values, since they no longer exist in the POSIX name space.
81225
81226         Rename the following member names back to their old names,
81227         unless !__USE_GNU_REGEX.  All uses changed back.
81228         (buffer): Renamed from re_buffer.
81229         (allocated): Renamed from re_allocated.
81230         (used): Renamed from re_used.
81231         (syntax): Renamed from re_syntax.
81232         (fastmap): Renamed from re_fastmap.
81233         (translate): Renamed from re_translate.
81234         (can_be_null): Renamed from re_can_be_null.
81235         (regs_allocated): Renamed from re_regs_allocated.
81236         (fastmap_accurate): Renamed from re_fastmap_accurate.
81237         (no_sub): Renamed from re_no_sub.
81238         (not_bol): Renamed from re_not_bol.
81239         (not_eol): Renamed from re_not_eol.
81240         (newline_anchor): Renamed from re_newline_anchor.
81241         (num_regs): Renamed from rm_num_regs.
81242         (start): Renamed from rm_start.
81243         (end): Renamed from rm_end.
81244
81245         (free_state): Move up a bit.
81246
81247         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81248         #define to be empty.
81249         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81250         when that is what is intended.
81251         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81252         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81253         (MAX): New macro.
81254         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81255         All uses changed back to re_malloc, etc.  It's now the caller's
81256         responsibility to check for overflow; all callers changed.
81257         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81258         (re_x2nrealloc): Remove.
81259         (free_state): Remove decl.
81260
81261         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81262         (re_set_registers, re_exec):
81263         Use K&R-style defn.
81264
81265         2006-01-31  Roland McGrath  <roland@redhat.com>
81266
81267         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81268         Reported by Mike Frysinger <vapier@gentoo.org>.
81269
81270         2006-01-15  Andreas Jaeger  <aj@suse.de>
81271
81272         [BZ #1950]
81273         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81274         build_wcs_upper_buffer change.
81275         (build_wcs_upper_buffer): Change return type.
81276
81277         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81278
81279         * lib/regex_internal.h: Include <stdint.h> if available.
81280
81281         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81282
81283         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81284
81285         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81286
81287         * lib/regcomp.c: Adjust for changed secondary hash function.
81288
81289         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81290
81291         * lib/regex.h: Pretty printing.
81292         Clean up namespace a bit.
81293
81294         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81295
81296         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81297         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81298
81299         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81300                     Ulrich Drepper  <drepper@redhat.com>
81301
81302         [BZ #1302]
81303         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81304         changed.
81305         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81306
81307         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81308
81309         [BZ #281]
81310         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81311         * lib/regcomp.c: Remove unnecessary uses of
81312         unsigned RE_TRANSLATE_TYPE.
81313         * lib/regex_internal.h: Likewise.
81314         * lib/regex_internal.c: Likewise.
81315         * lib/regexec.c: Likewise.
81316         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81317
81318         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81319
81320         * lib/regexec.c (find_recover_state): Remove unnecessary
81321         initialization.
81322         (transit_state_bkref): Make DFA a const pointer.
81323         (get_subexp): Likewise.
81324         (check_arrival): Likewise.
81325         (update_cur_sifted_state): Likewise.
81326         (re_search_internal): Likewise.
81327         (prune_impossible_nodes): Likewise.
81328         (acquire_init_state_context): Likewise.
81329         (proceed_next_node): Likewise.
81330         (set_regs): Likewise.
81331         (free_fail_stack_return): Likewise.
81332         (check_arrival_expand_ecl): Mark DFA parameter as const.
81333         (check_arrival_expand_ecl_sub): Likewise.
81334         (check_subexp_limits): Likewise.
81335         (sub_epsilon_src_nodes):  Likewise.
81336         (add_epsilon_src_nodes):  Likewise.
81337         (merge_state_array): Likewise.
81338         (update_regs): Likewise.
81339         (build_trtable): Likewise.
81340         (sift_states_backward): Mark MCTX parameter as const.
81341         (build_sifted_states): Likewise.
81342         (update_cur_sifted_state): Likewise.
81343         (sift_states_mkref): Likewise.
81344         (check_arrival_expand_ecl): Mark eclosure as const.
81345         (check_dst_limits_calc_pos_1): Likewise.
81346         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81347         pointer.
81348
81349         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81350
81351         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81352         (transit_state_sb): Likewise.
81353         (transit_state_mb): Likewise.
81354         (sift_states_iter_mb): Likewise.
81355         (check_arrival_add_next_nodes): Likewise.
81356         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81357         [_LIBC] (re_search_2_stub): Use mempcpy.
81358
81359         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81360         mbrtowc for very simple UTF-8 case.
81361
81362         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81363         a pointer-to-const.
81364         (re_acquire_state_context): Likewise.
81365         * lib/regex_internal.h: Adjust prototypes.
81366
81367         * lib/regex.c: Prevent using C++ compilers.
81368
81369         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81370         (re_acquire_state_context): Likewise.
81371
81372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81373
81374         * modules/regex (Depends-on): Add ssize_t.
81375
81376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81379         translation table.
81380
81381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81384
81385 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81386             Bruno Haible  <bruno@clisp.org>
81387
81388         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81389         <sys/types.h> and <inttypes.h>.
81390
81391 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81392
81393         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81394         `__error_t_defined', so argp.h will not typedef the former.
81395
81396 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81399         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81400         glibc names.  Even if glibc is changed to conform to POSIX, the
81401         traditional names will be available anyway, since regex depends on
81402         the extensions module.  Also, fix a longstanding typo in the
81403         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81404         reported by Emanuele Giaquinta.  Also, change sense of cached
81405         variable, so that the message makes sense.
81406
81407 2006-03-24  Simon Josefsson  <jas@extundo.com>
81408
81409         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81410         including some doc fixes.
81411         (base64_encode_alloc): Fix +1 bug on allocation failures.
81412
81413 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81414
81415         * lib/base64.c (base64_encode): Do not read past end of array with
81416         unsanitized input on systems with CHAR_BIT > 8.
81417
81418 2006-03-24  Eric Blake  <ebb9@byu.net>
81419
81420         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81421
81422 2006-03-22  Karl Berry  <karl@gnu.org>
81423
81424         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81425         * config/srclistvars.sh (COREUTILS): new var.
81426
81427 2006-03-17  Jim Meyering  <jim@meyering.net>
81428
81429         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81430         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81431
81432 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81433
81434         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81435         no longer needs it.  Instead, check that regoff_t is as least
81436         as wide as ptrdiff_t.
81437
81438         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81439         so that our regex.h stays compatible with the installed regex.
81440         This is helpful for installers who configure --without-included-regex.
81441         Problem reported by Emanuele Giaquinta.
81442
81443 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81446         Typedef to long int, not to off_, as POSIX will likely change
81447         in that direction.
81448
81449 2006-03-15  Eric Blake  <ebb9@byu.net>
81450
81451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81452
81453 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81454
81455         * lib/argp-help.c (validate_uparams): Fix typo
81456         * lib/argp-parse.c (argp_default_options): Consistently begin help
81457         messages with a lowercase letter.
81458
81459 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81460
81461         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81462         overrun buffers and shouldn't be used (much as gets shouldn't be
81463         used).
81464         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81465
81466 2006-03-08  Simon Josefsson  <jas@extundo.com>
81467
81468         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81469         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81470
81471 2006-03-08  Simon Josefsson  <jas@extundo.com>
81472
81473         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81474         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81475
81476 2006-03-08  Simon Josefsson  <jas@extundo.com>
81477
81478         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81479         signal that configure disabled the device.
81480
81481 2006-03-08  Simon Josefsson  <jas@extundo.com>
81482
81483         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81484         languages.
81485
81486 2006-03-07  Simon Josefsson  <jas@extundo.com>
81487
81488         * modules/getopt (Depends-on): Add unistd.
81489
81490         * modules/unistd: New file.
81491
81492 2006-03-07  Simon Josefsson  <jas@extundo.com>
81493
81494         * modules/gc-random: New file.
81495
81496 2006-03-07  Simon Josefsson  <jas@extundo.com>
81497
81498         * m4/unistd_h.m4: New file.
81499
81500 2006-03-07  Simon Josefsson  <jas@extundo.com>
81501
81502         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81503         test to be side-effect free by storing the result in the cache
81504         variable gl_cv_lib_readline, and moving the assignment of
81505         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81506         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81507
81508 2006-03-07  Simon Josefsson  <jas@extundo.com>
81509
81510         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81511         error on missing devices (the functions will return an error).
81512
81513         * m4/gc.m4: Move random stuff to gc-random.m4
81514
81515 2006-03-07  Simon Josefsson  <jas@extundo.com>
81516
81517         * lib/unistd_.h: New file.
81518
81519 2006-03-07  Simon Josefsson  <jas@extundo.com>
81520
81521         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81522
81523 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81526         Problem reported by Juan Manuel Guerrero.
81527
81528 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81531         the unistd module.
81532         * lib/getlogin_r.c: Likewise.
81533         * lib/getlogin_r.h: Likewise.
81534         * lib/glob.c: Likewise.
81535         * lib/pagealign_alloc.c: Likewise.
81536         * lib/unistd_.h: Remove; no longer needed.
81537
81538 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81539
81540         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81541         Add unistd.
81542         * modules/c-stack (Depends-on): Add unistd.
81543         * modules/getlogin_r: Likewise.
81544         * modules/glob: Likewise.
81545         * modules/pagealign_alloc: Likewise.
81546         * modules/unistd (Files): Remove lib/unistd_.h.
81547         (EXTRA_DIST): Remove.
81548         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81549         need unistd_.h.
81550         (MOSTLYCLEANFILES): Remove unistd.h-t.
81551
81552 2006-03-03  Simon Josefsson  <jas@extundo.com>
81553
81554         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81555
81556 2006-03-03  Simon Josefsson  <jas@extundo.com>
81557
81558         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81559         libidn and bison.
81560
81561 2006-03-03  Simon Josefsson  <jas@extundo.com>
81562
81563         * build-aux/maint.mk: Add indent target.
81564
81565 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81566
81567         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81568         our replacement poll.h in any case, to avoid a differing
81569         declaration from a system header.  Seen on AIX.
81570
81571 2006-03-01  Simon Josefsson  <jas@extundo.com>
81572
81573         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81574         <kasal@ucw.cz>.
81575
81576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * modules/gettime (Depends-on): Add extensions module.
81579         * modules/nanosleep (Depends-on): Likewise.
81580         * modules/settime (Depends-on): Likewise.
81581
81582 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81583
81584         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81585         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81586         pedantically.
81587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81588         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81589
81590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81591         not "==".  Reported by Ralf Wildenhues.
81592
81593 2006-03-01  Karl Berry  <karl@gnu.org>
81594
81595         * doc/Copyright/request-*: new files, synced from gnuorg.
81596
81597 2006-03-01  Karl Berry  <karl@gnu.org>
81598
81599         * config/srclist.txt (Copyright/*): new entries.
81600
81601 2006-02-28  Simon Josefsson  <jas@extundo.com>
81602
81603         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81604
81605 2006-02-27  Simon Josefsson  <jas@extundo.com>
81606
81607         * lib/base64.h: Indent #define's.  From Jim Meyering
81608         <jim@meyering.net>.
81609
81610 2006-02-27  Jim Meyering  <jim@meyering.net>
81611
81612         Revert the change of 2006-02-24, so these files can continue
81613         to be sync'd from gettext.
81614         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81615         of `config.h'.
81616
81617 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81618
81619         * modules/intprops: New file.
81620         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81621         Add intprops.
81622         * modules/getloadavg (Files): Remove lib/intprops.h.
81623         (Depends-on): Add intprops.
81624         * modules/human: Likewise.
81625         * modules/inttostr: Likewise.
81626         * modules/openat: Likewise.
81627         * modules/sig2str: Likewise.
81628         * modules/userspec: Likewise.
81629         * modules/utimecmp: Likewise.
81630         * modules/xnanosleep: Likewise.
81631         * modules/xstrtol: Likewise.
81632
81633 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81634
81635         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81636         * modules/lock-tests (TESTS): Use $(EXEEXT).
81637         * modules/tls-tests: Likewise.
81638         * modules/argp-tests: Likewise.
81639         (check_PROGRAMS): New var, replacing...
81640         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81641
81642 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81643
81644         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81645         `config.h'.
81646
81647 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81650
81651 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81652
81653         Sync from coreutils.
81654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81655         gl_CHDIR_SAFER.
81656
81657 2006-02-22  Jim Meyering  <jim@meyering.net>
81658
81659         Sync from coreutils.
81660         * m4/chdir-safer.m4: New file.
81661
81662 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81665         AT_FDCWD exceeds INT_MAX.
81666         * lib/openat.h (AT_FDCWD): Likewise.
81667
81668 2006-02-17  Eric Blake  <address@hidden>
81669
81670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81671
81672 2006-02-16  Simon Josefsson  <jas@extundo.com>
81673
81674         * modules/getaddrinfo (Depends-on): Add sys_socket.
81675
81676 2006-02-15  Simon Josefsson  <jas@extundo.com>
81677
81678         * build-aux/maint.mk: Add dsyntax-check rule.
81679
81680 2006-02-15  Eric Blake  <ebb9@byu.net>
81681
81682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81683         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81684         'present but cannot compile' warnings on cygwin.
81685         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81686         use ws2tcpip.h if sys/socket.h works.
81687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81688         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81689
81690 2006-02-14  Simon Josefsson  <jas@extundo.com>
81691
81692         * modules/maintainer-makefile (Files): Rename.
81693
81694         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81695         and (the local) Makefile.cfg to maint-cfg.mk.
81696
81697         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81698         to the latter.
81699
81700         * modules/maintainer-makefile: New module.
81701
81702         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81703         severaly stripped to make it possible to build it up from scratch
81704         with reliable tests.
81705
81706         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81707         fixes to permit overriding the default actions when configure and
81708         makefile are not available.
81709
81710 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81711
81712         Sync from coreutils.
81713         * modules/lstat (Depends-on): Don't depend on xalloc.
81714         (License): Change from GPL to LGPL, since this is now simply a
81715         replacement for a libc function.
81716
81717 2006-02-14  Jim Meyering  <jim@meyering.net>
81718
81719         Sync from coreutils.
81720
81721         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81722         failure on deficient systems, and simplify gnulib lgpl dependencies.
81723         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81724         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81725
81726         * lib/xalloc-die.c: Remove unused definition of N_.
81727
81728 2006-02-14  Jim Meyering  <jim@meyering.net>
81729
81730         Sync from coreutils.
81731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81732         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81733         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81734         double-quote uses of that variable, to accommodate the rare case in
81735         which getmntent is available in none of the libraries checked.  This
81736         happens at least on FreeBSD 5.0.
81737
81738 2006-02-13  Simon Josefsson  <jas@extundo.com>
81739
81740         * gnulib-tool (Usage): Fix --import, from
81741         karl@freefriends.org (Karl Berry).
81742
81743 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81744
81745         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81746
81747 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81748
81749         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81750         "autoupdate" on 2005-12-12.
81751
81752 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81753
81754         * modules/closeout (Depends-on): Remove atexit.
81755
81756 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81757
81758         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81759         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81760
81761 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81762
81763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81764         __EXTENSIONS__ if this causes compilation to fail.  Problem
81765         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81766         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81767
81768 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81769
81770         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81771         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81773         All uses changed.
81774
81775 2006-01-26  Simon Josefsson  <jas@extundo.com>
81776
81777         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81778         prototype is visible on mingw32.
81779
81780         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81781         for mingw32.
81782
81783         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81784         mingw32).
81785
81786 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81787
81788         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81789         attempt to open for write; this always fails, at least on POSIX
81790         hosts.  This reinstates the 2006-01-09 change, which was
81791         inadvertently removed.
81792
81793 2006-01-26  Bruno Haible  <bruno@clisp.org>
81794
81795         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81796         Reported by Paul Eggert.
81797
81798 2006-01-26  Bruno Haible  <bruno@clisp.org>
81799             Paul Eggert  <eggert@cs.ucla.edu>
81800
81801         * lib/stdbool_.h (_Bool)
81802         [(! (defined __cplusplus || defined __BEOS__)
81803           && !defined __GNUC__
81804           && !(defined __HP_cc || defined __xlc__
81805                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81806                || defined __sgi))]:
81807         #define to signed char in these cases too; this simplifies
81808         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81809         etc., separately) and makes it more conservative.
81810
81811 2006-01-25  Simon Josefsson  <jas@extundo.com>
81812
81813         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81814         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81815         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81816
81817 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81818
81819         * lib/argp-namefrob.h: Bugfix. Remove stray #
81820
81821 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81824         so that we test the test.
81825         Check for yet another HP-UX cc bug involving *bool |= bool.
81826
81827 2006-01-25  Karl Berry  <karl@gnu.org>
81828
81829         * config/srclist.txt (vasnprintf.c): sync lost.
81830
81831 2006-01-25  Jim Meyering  <jim@meyering.net>
81832
81833         Sync from the stable (b5) branch of coreutils:
81834
81835         * lib/fts.c (fts_children): Don't let close() clobber errno from
81836         failed fchdir().
81837
81838         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81839         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81840         a dangling symlink.  That can also happen at least for ELOOP.
81841         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81842         FYI, this bug predates the inclusion of fts.c in coreutils.
81843
81844         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81845         in their own block, so pre-c99 compilers don't object.
81846
81847         Avoid the double-free (first in fts_read, second in fts_close) that
81848         would occur when an `active' directory is made inaccessible (e.g.,
81849         via chmod a-x) during a traversal.
81850         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81851         before returning.  Reproduce this failure by
81852         mkdir -p a/b; cd a; chmod a-x . b
81853         Reported by Stavros Passas.
81854
81855 2006-01-25  Jim Meyering  <jim@meyering.net>
81856
81857         * lib/fileblocks.c: Remove more useless parentheses.
81858         * lib/readutmp.h: Likewise.
81859
81860 2006-01-25  Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81863         warnings.
81864         Reported by Paul Eggert.
81865
81866 2006-01-25  Bruno Haible  <bruno@clisp.org>
81867
81868         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81869         rid of a trap command. For Solaris sh.
81870         Reported by Mark D. Baushke <mdb@gnu.org>.
81871
81872 2006-01-24  Simon Josefsson  <jas@extundo.com>
81873
81874         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81875         Bruno.
81876
81877 2006-01-24  Karl Berry  <karl@gnu.org>
81878
81879         * config/srclist.txt (argp-namefrob.h): sync lost.
81880
81881 2006-01-24  Jim Meyering  <jim@meyering.net>
81882
81883         * modules/openat (Files): Add lib/intprops.h.
81884         From Mark D. Baushke.
81885
81886 2006-01-24  Jim Meyering  <jim@meyering.net>
81887
81888         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81889         Reported by Mark D. Baushke.
81890
81891 2006-01-24  Jim Meyering  <jim@meyering.net>
81892
81893         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81894
81895 2006-01-24  Bruno Haible  <bruno@clisp.org>
81896
81897         * modules/strnlen (Maintainer): Change from glibc to all.
81898
81899 2006-01-24  Bruno Haible  <bruno@clisp.org>
81900
81901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81902         Patch by Paul Eggert.
81903
81904 2006-01-24  Bruno Haible  <bruno@clisp.org>
81905
81906         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81907         already has it.
81908         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81909         2005-11-26.
81910
81911         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81912         'signed char' to avoid problems with the built-in _Bool type.
81913         Reported by Paul Eggert on 2005-11-26.
81914
81915 2006-01-24  Bruno Haible  <bruno@clisp.org>
81916
81917         * gnulib-tool (func_import): Avoid constructing complicated sed
81918         expressions inside backquote.
81919         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81920
81921 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81922
81923         These changes imported from libc.
81924         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81925         test and two separate function calls.
81926         * lib/strndup.c (__strndup): Add libc_hidden_def.
81927
81928 2006-01-23  Simon Josefsson  <jas@extundo.com>
81929
81930         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81931         Remove the test_*_SOURCES variable: automake infers it by default.
81932         * modules/tls-tests: Likewise.
81933
81934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         Work around porting bugs reported by Dieter in
81937         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81938         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81939         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81940         Include "getopt.h" first, to check interface.
81941         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81942         !HAVE_DECL_GETENV.
81943         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81944         (__strndup): Revert to K&R-style function dfns, the glibc style.
81945         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81946         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81947         Include strnlen.h first, to get prototype properly.
81948         (strnlen): Renamed from __strnlen.
81949         Remove weak alias.
81950
81951 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81952
81953         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81954
81955 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81956
81957         * config/srclist.txt: Adjust to reflect glibc reorganization.
81958         This affects only comments.
81959
81960 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81961
81962          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81963          Reported by Bruce Korb <bkorb@gnu.org>.
81964
81965 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81968         to pacify gcc -Wswitch-default.
81969
81970 2006-01-22  Bruno Haible  <bruno@clisp.org>
81971
81972         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81973         temporary buffer for sprintf, take into account the precision also
81974         for 'd', 'i', 'u', 'o', 'x', 'X'.
81975
81976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81977
81978         * modules/argp-tests: New module
81979         * tests/test-argp.c: New file
81980         * tests/test-argp-2.sh: New file
81981
81982 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81983
81984         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81985         (__argp_base_name): Removed
81986         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81987         typo.
81988         (__argp_base_name): Provide macro definition or extern declaration
81989         depending on the configuration
81990
81991 2006-01-20  Simon Josefsson  <jas@extundo.com>
81992
81993         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81994
81995 2006-01-20  Simon Josefsson  <jas@extundo.com>
81996
81997         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81998
81999 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82002         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82003         Suggested by Bruno Haible.
82004
82005 2006-01-20  Karl Berry  <karl@gnu.org>
82006
82007         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82008         until changes propagate, I guess.
82009
82010 2006-01-19  Simon Josefsson  <jas@extundo.com>
82011
82012         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82013
82014 2006-01-19  Simon Josefsson  <jas@extundo.com>
82015
82016         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82017
82018 2006-01-19  Simon Josefsson  <jas@extundo.com>
82019
82020         * gnulib-tool: Set check_PROGRAMS.
82021
82022         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82023         modules/des-tests, modules/gc-arcfour-tests,
82024         modules/gc-arctwo-tests, modules/gc-des-tests,
82025         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82026         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82027         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82028         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82029         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82030         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82031         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82032         test_*_SOURCES.
82033
82034 2006-01-18  Simon Josefsson  <jas@extundo.com>
82035
82036         * modules/socklen (Depends-on): Depend on sys_socket.
82037
82038 2006-01-18  Simon Josefsson  <jas@extundo.com>
82039
82040         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82041         modules/des-tests, modules/gc-arcfour-tests,
82042         modules/gc-arctwo-tests, modules/gc-des-tests,
82043         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82044         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82045         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82046         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82047         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82048         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82049         $(EXEEXT) to automake TESTS variable, for mingw32.
82050
82051 2006-01-17  Simon Josefsson  <jas@extundo.com>
82052
82053         * modules/socklen (Include): Need sys/socket.h.
82054
82055 2006-01-17  Bruno Haible  <bruno@clisp.org>
82056
82057         * modules/ssize_t (Include): Add <sys/types.h>.
82058
82059 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82060
82061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82062         it's not portable and it doesn't work with cross-compiles.
82063         Problem reported by Bruno Haible.  Fix missing-$ typo in
82064         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82065         -zignore from being used with Sun's C compiler.
82066
82067 2006-01-12  Simon Josefsson  <jas@extundo.com>
82068
82069         * lib/base64.c: Fix warning, reported by Bruno Haible
82070         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82071
82072 2006-01-12  Bruno Haible  <bruno@clisp.org>
82073
82074         * modules/ldd: New file.
82075         * build-aux/ldd.sh.in: New file.
82076         * MODULES.html.sh (Support for building libraries and executables): Add
82077         ldd.
82078
82079 2006-01-12  Bruno Haible  <bruno@clisp.org>
82080
82081         * m4/ldd.m4: New file.
82082
82083 2006-01-12  Bruno Haible  <bruno@clisp.org>
82084
82085         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82086         endless loop while replacing $auxdir with build-aux.
82087
82088 2006-01-11  Simon Josefsson  <jas@extundo.com>
82089
82090         * lib/stdint_.h (SIZE_MAX): Add missing (.
82091
82092 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82093
82094         Sync from coreutils.
82095         * lib/md5.c: Fix commentary typos.
82096         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82097         * lib/md5.h (__attribute__): Remove; unused.
82098         * lib/sha1.c: Fix commentary to match md5 better.
82099         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82100         so that we don't need to worry about alignment.  All uses changed.
82101         This merges the 2005-10-28 md5 change into sha1.
82102
82103 2006-01-11  Jim Meyering  <jim@meyering.net>
82104
82105         Sync from coreutils.
82106         * lib/md5.c (OP): Fix spacing.
82107
82108 2006-01-11  Bruno Haible  <bruno@clisp.org>
82109
82110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82111         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82112         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82113
82114 2006-01-11  Bruno Haible  <bruno@clisp.org>
82115
82116         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82117         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82118         the "early" section as well.
82119
82120 2006-01-11  Bruno Haible  <bruno@clisp.org>
82121
82122         Avoid "ar: no archive members specified" error on MacOS X.
82123         * gnulib-tool (func_modules_add_dummy): New function.
82124         (func_import, func_create_testdir): Invoke it.
82125
82126 2006-01-11  Bruno Haible  <bruno@clisp.org>
82127
82128         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82129         with $auxdir in AC_CONFIG_FILES statements.
82130
82131 2006-01-11  Bruno Haible  <bruno@clisp.org>
82132
82133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82134         Initialize also noinst_HEADERS to empty.
82135
82136 2006-01-11  Bruno Haible  <bruno@clisp.org>
82137
82138         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82139         variables.
82140         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82141         autoreconf.
82142
82143 2006-01-11  Bruno Haible  <bruno@clisp.org>
82144
82145         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82146         overridable by the user.
82147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82148
82149 2006-01-10  Simon Josefsson  <jas@extundo.com>
82150
82151         * modules/sys_socket: New file.
82152
82153 2006-01-10  Simon Josefsson  <jas@extundo.com>
82154
82155         * m4/sys_socket_h.m4: New file.
82156
82157 2006-01-10  Simon Josefsson  <jas@extundo.com>
82158
82159         * lib/socket_.h: New file.
82160
82161 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         * modules/readutmp (Maintainer): Add myself.
82164
82165 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82166
82167         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82168         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82169         People who are still concerned with buggy memcmp implementations
82170         can invoke gl_FUNC_MEMCMP themselves.
82171
82172 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         * lib/regex_internal.h (BITSET_WORD_BITS):
82175         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82176         preprocessor mishandles large unsigned values as if they were signed.
82177         Problem reported by Claudio Fontana in
82178         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82179
82180 2006-01-10  Jim Meyering  <jim@meyering.net>
82181
82182         Avoid the double-free (first in fts_read, second in fts_close) that
82183         would occur when an `active' directory is made inaccessible (e.g.,
82184         via chmod a-x) during a traversal.
82185         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82186         before returning.  Reproduce this failure by
82187         mkdir -p a/b; cd a; chmod a-x . b
82188         Reported by Stavros Passas.
82189
82190         Sync from coreutils.
82191         * lib/sha1.c: Tweak grammar in a comment.
82192
82193 2006-01-10  Jim Meyering  <jim@meyering.net>
82194
82195         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82196         Patch by Joerg Sonnenberger.
82197
82198 2006-01-10  Bruno Haible  <bruno@clisp.org>
82199
82200         * modules/readutmp: Depend on module free.
82201         * modules/strtok_r: Depend on module restrict.
82202
82203 2006-01-10  Bruno Haible  <bruno@clisp.org>
82204
82205         * modules/gettext (configure.ac): Add an invocation of
82206         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82207
82208 2006-01-10  Bruno Haible  <bruno@clisp.org>
82209
82210         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82211         Reported by Werner Lemberg <wl@gnu.org>.
82212
82213 2006-01-10  Bruno Haible  <bruno@clisp.org>
82214
82215         * lib/localcharset.c: Update from GNU gettext.
82216
82217 2006-01-10  Bruno Haible  <bruno@clisp.org>
82218
82219         * lib/argp.h (__const): Remove macro. Use const instead.
82220         * lib/argp-fmtstream.h (__const): Likewise.
82221         * lib/glob_.h (__const): Remove macro.
82222         * lib/glob-libc.h: Use const instead of __const.
82223
82224 2006-01-10  Bruno Haible  <bruno@clisp.org>
82225
82226         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82227         variable.
82228         Needed to avoid an automake error regarding the 'gettext' module.
82229
82230 2006-01-09  Simon Josefsson  <jas@extundo.com>
82231
82232         * modules/inet_ntop (Depends-on): Add restrict.
82233
82234 2006-01-09  Simon Josefsson  <jas@extundo.com>
82235
82236         * modules/gc-rijndael-tests (License): Put under LGPL.
82237
82238         * modules/gc-des-tests (License): Likewise.
82239
82240         * modules/gc-arcfour-tests (License): Likewise.
82241
82242         * modules/gc-arctwo-tests (License): Likewise.
82243
82244         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82245
82246         * modules/gc-hmac-sha1-tests (Files): Likewise.
82247
82248         * modules/gc-hmac-md5-tests (License): Likewise.
82249
82250         * modules/gc-sha1-tests (License): Likewise.
82251
82252         * modules/gc-md5-tests (License): Likewise.
82253
82254         * modules/gc-md4-tests (License): Likewise.
82255
82256         * modules/gc-md2-tests (License): Likewise.
82257
82258         * modules/gc-tests (License): Likewise.
82259
82260         * modules/des-tests (License): Likewise.
82261
82262         * modules/md4-tests (License): Likewise.
82263
82264         * modules/md2-tests (License): Likewise.
82265
82266 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82267
82268         Sync from coreutils:
82269
82270         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82271         * modules/lib-ignore: New file.
82272         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82273         chdir-safer.m4, lchmod.m4.
82274         * modules/openat: Add mkdirat.c, openat-priv.h.
82275
82276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         Sync from coreutils.
82279         * m4/lib-ignore.m4: New file.
82280         * m4/lchmod.m4: New file.
82281
82282 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         Sync from coreutils.
82285         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82286         for write access: POSIX says that must fail.
82287         * lib/fts.c (diropen): Likewise.
82288         * lib/save-cwd.c (save_cwd): Likewise.
82289         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82290         well, for minor improvements on hosts that lack O_DIRECTORY.
82291         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82292         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82293         Fall back on chown if open failed with EACCES.
82294
82295         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82296         Report an error at compile-time if only a 1-second nominal clock
82297         resolution is found.
82298
82299         * lib/lchmod.h: New file.
82300         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82301         (make_dir_parents): Use lchown rather than chown, and
82302         lchmod rather than chmod.
82303
82304         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82305         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82306         "proc" reported by n0dalus.
82307
82308         * lib/mountlist.c: Include <limits.h>.
82309         (dev_from_mount_options)
82310         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82311         New function.  It no longer assumes "dev=" has the System V meaning
82312         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82313         (read_file_system_list)
82314         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82315         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82316         dev= in that case.
82317
82318         * lib/posixtm.h (PDS_PRE_2000): New macro.
82319         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82320         allow_century.  All usages changed.  Reject dates outside the range
82321         1969-1999 if PDS_PRE_2000 is used.
82322
82323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         Sync from coreutils.
82326         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82327         (Time of day items): Mention the possibility of leap seconds.
82328         Problem reported by Dr. David Alan Gilbert.
82329
82330 2006-01-09  Jim Meyering  <jim@meyering.net>
82331
82332         Sync from coreutils.
82333
82334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82335
82336         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82337
82338         * lib/modechange.c (mode_compile): Reject an invalid mode string
82339         that starts with an octal digit.  From Andreas Gruenbacher.
82340
82341         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82342         and dup to open_safer and dup_safer, respectively.
82343         (openat_permissive): Fix typo in comment.
82344
82345         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82346         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82347         (_): Remove; no longer needed.
82348         (openat): Renamed from rpl_openat; no need for rpl_openat
82349         since openat.h renames openat for us.
82350         Replace most of the body with a call to openat_permissive,
82351         to avoid duplicate code.
82352         Port to (probably hypothetical) environments were mode_t is
82353         wider than int.
82354         (openat_permissive): Require mode arg, so that we can check
82355         types better.  Put it just after flags.  Change cwd failure
82356         indicator from pointer-to-bool to pointer-to-errno-value.
82357         All callers changed.
82358         Invoke openat_save_fail and/or openat_restore_fail if
82359         cwd_errno is null, so that openat can call us.
82360         (openat_permissive, fdopendir, fstatat, unlinkat):
82361         Simplify errno handling to avoid some duplicate code,
82362         as it's OK to set errno on success.
82363         * lib/openat.h: Revamp code so that function macros depend on
82364         __OPENAT_PREFIX only, not also on AT_FDCWD.
82365         (openat_ro): Remove.  Caller changed to use openat_permissive.
82366         (openat_permissive): Now a macro, if not a function.
82367         (openat_restore_fail, openat_save_fail): Now always functions,
82368         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82369
82370         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82371         and openat.c.
82372         * lib/mkdirat.c: Include openat-priv.h.
82373         Remove definitions of macros defined therein.
82374         * lib/openat.c: Likewise.
82375
82376         * lib/mkdirat.c (mkdirat): New file and function.
82377         * lib/openat.h (mkdirat): Declare.
82378
82379         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82380
82381         * lib/openat.h (openat_permissive): Declare.
82382         (openat_ro): Define.
82383
82384         * lib/openat.c (EXPECTED_ERRNO): New macro.
82385         (openat_permissive): New function -- used in remove.c rewrite.
82386         (all functions): Set errno just before returning, only if there
82387         was an actual failure.
82388         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82389
82390         Emulate openat-family functions using Linux's procfs, if possible.
82391         Idea and some code based on Ulrich Drepper's glibc changes.
82392
82393         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82394         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82395         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82396         before falling back on save_cwd and restore_cwd.
82397         (fdopendir, fstatat, unlinkat): Likewise.
82398
82399         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82400         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82401
82402         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82403         as second argument to va_arg.  Otherwise, some versions of gcc
82404         warn that `if this code is reached, the program will abort'.
82405
82406 2006-01-09  Jim Meyering  <jim@meyering.net>
82407
82408         Sync from coreutils.
82409         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82410         Require openat-priv.h.
82411
82412 2006-01-09  Bruno Haible  <bruno@clisp.org>
82413
82414         * modules/strnlen (Include): Use strnlen.h.
82415
82416 2006-01-09  Bruno Haible  <bruno@clisp.org>
82417
82418         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82419
82420 2006-01-09  Bruno Haible  <bruno@clisp.org>
82421
82422         * lib/sysexit_.h (EX_OK): New macro.
82423         Suggested by Martin Lambers <marlam@marlam.de>.
82424
82425 2006-01-09  Bruno Haible  <bruno@clisp.org>
82426
82427         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82428         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82429
82430 2006-01-09  Bruno Haible  <bruno@clisp.org>
82431
82432         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82433         numbers.
82434
82435 2006-01-09  Bruno Haible  <bruno@clisp.org>
82436
82437         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82438         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82439         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82440         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82441
82442 2006-01-09  Bruno Haible  <bruno@clisp.org>
82443
82444         * build-aux/javacomp.sh.in: New file, moved from lib/.
82445         * modules/javacomp-script (Files): Update.
82446         (configure.ac): Add AC_CONFIG_FILES invocation.
82447         (EXTRA_DIST): Remove variable.
82448
82449         * build-aux/javaexec.sh.in: New file, moved from lib/.
82450         * modules/javaexec (Files): Update.
82451         (configure.ac): Add AC_CONFIG_FILES invocation.
82452         (EXTRA_DIST): Remove javaexec.sh.in.
82453
82454         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82455         * modules/csharpcomp-script (Files): Update.
82456         (configure.ac): Add AC_CONFIG_FILES invocation.
82457         (EXTRA_DIST): Remove variable.
82458
82459         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82460         * modules/csharpexec (Files): Update.
82461         (configure.ac): Add AC_CONFIG_FILES invocation.
82462         (EXTRA_DIST): Remove csharpexec.sh.in.
82463
82464 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82465
82466         Sync from coreutils.
82467
82468         Add POSIX ACL support
82469         * lib/acl.h (copy_acl, set_acl): Add declarations.
82470         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82471         systems other than Linux.
82472         (chmod_or_fchmod): New function: use fchmod when possible,
82473         and chmod otherwise.
82474         (file_has_acl): Add a POSIX ACL implementation, with a
82475         Linux-specific subcase.
82476         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82477         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82478         acls are unsupported.
82479         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82480         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82481         are unsupported.
82482
82483 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82484
82485         Sync from coreutils.
82486         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82487
82488 2006-01-07  Bruno Haible  <bruno@clisp.org>
82489
82490         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82491         gl_EARLY.
82492
82493 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82496         Problem reported for Mingw by Mark Junker.
82497
82498 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         * README: Gnulib normally doesn't generate a tarball.
82501
82502 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82503
82504         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82505         long int, not int, for nanosecond counts, so that people who are
82506         used to POSIX struct timespec won't be surprised.  Reported by Jim
82507         Meyering.
82508
82509 2005-12-28  Bruno Haible  <bruno@clisp.org>
82510
82511         * build-aux/config.rpath: Update from GNU gettext.
82512
82513 2005-12-16  Jim Meyering  <jim@meyering.net>
82514
82515         * modules/fprintftime: New module.
82516         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82517
82518 2005-12-16  Jim Meyering  <jim@meyering.net>
82519
82520         * m4/fprintftime.m4: New file.
82521
82522 2005-12-16  Jim Meyering  <jim@meyering.net>
82523
82524         * lib/fprintftime.c, lib/fprintftime.h: New files.
82525
82526 2005-12-15  Simon Josefsson  <jas@extundo.com>
82527
82528         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82529         new m4/socklen.m4.
82530
82531 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82532
82533         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82534         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82535
82536 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82537
82538         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82539         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82540         struct uparams is valid. Fall back to the default values if it is
82541         not.
82542
82543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82544
82545         * modules/argp (Files): Add argp-pin.c
82546         (Depends-on): dirname
82547         (lib_SOURCES): Add argp-pin.c
82548
82549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82550
82551         * m4/argp.m4:  Check if program_invocation_name and
82552         program_invocation_short_name are declared and define appropriate
82553         macros if they are not.
82554
82555 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82556
82557         * lib/argp-help.c (__argp_base_name): New function
82558         (__argp_short_program_name): Rewrite using __argp_base_name
82559         * lib/argp-namefrob.h: Define program_invocation_name and
82560         program_invocation_short_name if requested
82561         (__argp_base_name): Add prototype
82562         * lib/argp-parse.c (argp_def): Use gettext wrappers
82563         (argp_default_parser): Use __argp_base_name
82564         * lib/argp-pin.c: New file. Defines program_invocation_name and
82565         program_invocation_short_name on systems that lack them.
82566
82567 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82570         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82571         porting problem reported by Georg Schwarz in
82572         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82573
82574 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82575
82576         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82577         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82578         porting problem reported by Georg Schwarz in
82579         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82580
82581 2005-12-05  Bruno Haible  <bruno@clisp.org>
82582
82583         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82584         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82585         Reported by Mark Junker <mjscod@gmx.de>.
82586
82587 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82588
82589         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82590         Use implementation from Albert Chin, with some
82591         comments/corrections by Stepan Kasal and myself.
82592
82593 2005-12-02  Bruno Haible  <bruno@clisp.org>
82594
82595         * gnulib-tool (func_import): Accept GPLed build tool modules when
82596         --lgpl is given.
82597         * modules/csharpcomp-script: New file.
82598         * modules/csharpcomp: Depend on it.
82599         * modules/javacomp-script: New file.
82600         * modules/javacomp: Depend on it.
82601         Suggested by Simon Josefsson.
82602
82603 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82604
82605         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82606         statement, to work around an HP-UX 10.20 compiler bug reported by
82607         Peter O'Gorman.
82608
82609 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * modules/savedir (Depends-on): Add openat.
82612
82613 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82614
82615         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82616         (uintmax_t) [defined uintmax_t]: Do not declare.
82617         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82618         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82619         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82620         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82621         sake of portability to weird hosts that C allows (though we don't
82622         know of any practical examples).
82623
82624         * lib/savedir.h (fdsavedir): New decl.
82625         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82626         contains most of the former guts of savedir.
82627         (savedir): Use savedirstream.
82628         Include "openat.h".
82629
82630 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82631
82632         * modules/obstack (Files): Add m4/ulonglong.m4.
82633         Problem reported by Davide Angelocola.
82634
82635 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82636
82637         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82638         coreutils no longer futzes with rounding modes.
82639
82640 2005-11-14  Jim Meyering  <jim@meyering.net>
82641
82642         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82643         replacement of mkstemp.
82644
82645 2005-11-10  Simon Josefsson  <jas@extundo.com>
82646
82647         * lib/readline.c: Remove EOL.
82648
82649 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82650
82651         * modules/gethrxtime (Depends-on): Add gettime.
82652
82653 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82656         or gettimeofday; no longer needed.
82657
82658 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82661         time business.
82662         (gethrxtime) [! (HAVE_NANOUPTIME
82663         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82664         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82665         our own approximation.
82666
82667 2005-11-08  Eric Blake  <ebb9@byu.net>
82668
82669         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82670
82671 2005-11-08  Eric Blake  <ebb9@byu.net>
82672
82673         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82674
82675 2005-11-04  Bruno Haible  <bruno@clisp.org>
82676
82677         * gnulib-tool: Implement --update mode.
82678
82679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82680
82681         Fix porting problem reported by Theodoros V. Kalamatianos.
82682         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82683         Don't assume that futimes failing means we must fail.
82684
82685 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82688         variables to suggest the intended function of the PATH_MAX check.
82689
82690 2005-10-30  Kean Johnston  <jkj@sco.com>
82691
82692         Trivial changes to support SCO systems.
82693         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82694         as PATH_MAX.
82695         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82696         where __ptr is null when no I/O is pending.
82697
82698 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82699
82700         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82701         leave errno alone.  Problem reported by Dmitry V. Levin.
82702
82703 2005-10-28  Simon Josefsson  <jas@extundo.com>
82704
82705         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82706         Test more.
82707
82708         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82709
82710         * modules/md2, modules/md2-tests: New files.
82711
82712 2005-10-28  Simon Josefsson  <jas@extundo.com>
82713
82714         * m4/inet_ntop.m4: More tests.
82715
82716         * m4/gc-md2.m4, md2.m4: New file.
82717
82718 2005-10-28  Simon Josefsson  <jas@extundo.com>
82719
82720         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82721         "restrict" keywords, as per POSIX.  Protect the function
82722         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82723         Don't use K&R prototypes.  Check the sprintf return values.
82724         Re-define EAFNOSUPPORT if not present.  Indent.
82725
82726         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82727         suggested by Bruno Haible <bruno@clisp.org>.
82728
82729         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82730
82731         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82732
82733         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82734         libgcrypt).
82735
82736         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82737
82738         * lib/md2.h, lib/md2.c: New files.
82739
82740 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82743         errno alone.  Problem reported by Frederic Jolliton.
82744
82745 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82746
82747         * modules/verify (License): Change from GPL to LGPL.  This is a
82748         tiny module and there are apparently near-equivalents that are
82749         under the BSD license.
82750
82751 2005-10-24  Simon Josefsson  <jas@extundo.com>
82752
82753         * modules/sha1: Relicense to LGPL.
82754
82755 2005-10-24  Simon Josefsson  <jas@extundo.com>
82756
82757         * lib/md4.h: Shrink buffer size, now that we changed the type.
82758
82759 2005-10-23  Simon Josefsson  <jas@extundo.com>
82760
82761         * gnulib-tool (func_import): Fix --tests-base.
82762
82763 2005-10-22  Simon Josefsson  <jas@extundo.com>
82764
82765         * modules/arcfour (Depends-on): Need stdint.
82766
82767 2005-10-22  Simon Josefsson  <jas@extundo.com>
82768
82769         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82770         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82771
82772 2005-10-22  Simon Josefsson  <jas@extundo.com>
82773
82774         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82775         suggested by Bruno Haible <bruno@clisp.org>.
82776
82777 2005-10-22  Simon Josefsson  <jas@extundo.com>
82778
82779         * lib/crc.h: Include stddef.h, for size_t.
82780
82781 2005-10-22  Simon Josefsson  <jas@extundo.com>
82782
82783         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82784         arcfour_context struct (simplify test vector testing in GNU
82785         Shishi).
82786
82787 2005-10-21  Simon Josefsson  <jas@extundo.com>
82788
82789         * modules/des, modules/des-tests: New files.
82790
82791         * modules/gc-des, modules/gc-des-tests: New files.
82792
82793         * tests/test-des.c, tests/test-gc-des.c: New file.
82794
82795 2005-10-21  Simon Josefsson  <jas@extundo.com>
82796
82797         * modules/arctwo, modules/arctwo-tests: New files.
82798
82799         * tests/test-arctwo.c: New file.
82800
82801         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82802
82803         * tests/test-gc-arctwo.c: New file.
82804
82805 2005-10-21  Simon Josefsson  <jas@extundo.com>
82806
82807         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82808         Bruno Haible <bruno@clisp.org>.
82809
82810         * m4/gc-des.m4: New file.
82811
82812 2005-10-21  Simon Josefsson  <jas@extundo.com>
82813
82814         * m4/arctwo.m4: New file.
82815
82816         * m4/gc-arctwo.m4: New file.
82817
82818 2005-10-21  Simon Josefsson  <jas@extundo.com>
82819
82820         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82821         block.
82822
82823 2005-10-21  Simon Josefsson  <jas@extundo.com>
82824
82825         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82826         <bruno@clisp.org>.
82827
82828         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82829
82830         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82831         Bruno Haible <bruno@clisp.org>.
82832
82833         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82834         <bruno@clisp.org>.
82835
82836 2005-10-21  Simon Josefsson  <jas@extundo.com>
82837
82838         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82839
82840 2005-10-21  Simon Josefsson  <jas@extundo.com>
82841
82842         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82843
82844 2005-10-21  Simon Josefsson  <jas@extundo.com>
82845
82846         * lib/des.h, lib/des.c: New files.
82847
82848         * lib/gc-gnulib.c: Support DES.c
82849
82850 2005-10-21  Simon Josefsson  <jas@extundo.com>
82851
82852         * lib/arctwo.h, lib/arctwo.c: New files.
82853
82854         * lib/gc-gnulib.c: Support ARCTWO.
82855
82856 2005-10-21  Simon Josefsson  <jas@extundo.com>
82857
82858         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82859         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82860
82861 2005-10-21  Simon Josefsson  <jas@extundo.com>
82862
82863         * gnulib-tool (func_import, func_create_testdir): Define automake
82864         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82865         Makefile.am snippet),
82866         suggested by Bruno Haible <bruno@clisp.org>.
82867
82868         * modules/gc (Makefile.am): Use it.
82869
82870 2005-10-21  Bruno Haible  <bruno@clisp.org>
82871
82872         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82873         patch.
82874
82875 2005-10-19  Simon Josefsson  <jas@extundo.com>
82876
82877         * tests/test-gc-rijndael.c: New file.
82878
82879         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82880
82881 2005-10-19  Simon Josefsson  <jas@extundo.com>
82882
82883         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82884         interface too.
82885
82886 2005-10-19  Simon Josefsson  <jas@extundo.com>
82887
82888         * tests/test-gc-arcfour.c: New file.
82889
82890         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82891
82892 2005-10-19  Simon Josefsson  <jas@extundo.com>
82893
82894         * modules/gc-md4, modules/gc-md4-tests: New file.
82895
82896         * tests/test-gc-md4.c: New file.
82897
82898 2005-10-19  Simon Josefsson  <jas@extundo.com>
82899
82900         * m4/gc-md4.m4: New file.
82901
82902 2005-10-19  Simon Josefsson  <jas@extundo.com>
82903
82904         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82905         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82906         <kasal@ucw.cz>.
82907
82908 2005-10-19  Simon Josefsson  <jas@extundo.com>
82909
82910         * m4/gc-arcfour.m4: New file.
82911
82912         * m4/gc-rijndael.m4: New file.
82913
82914 2005-10-19  Simon Josefsson  <jas@extundo.com>
82915
82916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82917
82918 2005-10-19  Simon Josefsson  <jas@extundo.com>
82919
82920         * lib/gc-gnulib.c: Support ARCFOUR.
82921
82922 2005-10-19  Simon Josefsson  <jas@extundo.com>
82923
82924         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82925         support.
82926
82927         * lib/gc.h: Add ECB enum type.
82928
82929         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82930
82931 2005-10-18  Simon Josefsson  <jas@extundo.com>
82932
82933         * tests/test-md5.c: New file.
82934
82935         * modules/md5-tests: New file.
82936
82937 2005-10-18  Simon Josefsson  <jas@extundo.com>
82938
82939         * tests/test-md4.c: New file.
82940
82941         * modules/md4, modules/md4-tests: New files.
82942
82943 2005-10-18  Simon Josefsson  <jas@extundo.com>
82944
82945         * m4/md4.m4: New file.
82946
82947 2005-10-18  Simon Josefsson  <jas@extundo.com>
82948
82949         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82950
82951 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82952
82953         * gnulib-tool (func_create_testdir): Omit the second check whether
82954         BUILT_SOURCES in nonempty.
82955
82956 2005-10-17  Simon Josefsson  <jas@extundo.com>
82957
82958         * tests/test-rijndael.c: New file.
82959
82960 2005-10-17  Simon Josefsson  <jas@extundo.com>
82961
82962         * modules/sha1: Depend on stdint instead of md5.
82963
82964         * modules/md5: Depend on stdint, remove uint32_t.
82965
82966 2005-10-17  Simon Josefsson  <jas@extundo.com>
82967
82968         * modules/gc-sha1-tests: New file.
82969
82970         * tests/test-gc-sha1.c: New file.
82971
82972 2005-10-17  Simon Josefsson  <jas@extundo.com>
82973
82974         * m4/md5.m4: Remove call to uint32_t.m4.
82975
82976 2005-10-17  Simon Josefsson  <jas@extundo.com>
82977
82978         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82979
82980         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82981         md5.h.
82982
82983         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82984
82985         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82986
82987 2005-10-17  Simon Josefsson  <jas@extundo.com>
82988
82989         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82990
82991 2005-10-17  Simon Josefsson  <jas@extundo.com>
82992
82993         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82994
82995 2005-10-17  Simon Josefsson  <jas@extundo.com>
82996
82997         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82998
82999         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83000
83001 2005-10-17  Bruno Haible  <bruno@clisp.org>
83002
83003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83004         that it can also be used in a test.
83005
83006 2005-10-16  Bruno Haible  <bruno@clisp.org>
83007
83008         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83009         TESTS_ENVIRONMENT, so that individual tests can augment it.
83010
83011         * gnulib-tool (func_create_testdir): Use an intermediate target for
83012         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83013         macros, like $(ALLOCA_H), which cannot be passed through the command
83014         line.
83015
83016 2005-10-15  Simon Josefsson  <jas@extundo.com>
83017
83018         * modules/rijndael-tests: New file.
83019
83020         * modules/rijndael: New file.
83021
83022 2005-10-15  Simon Josefsson  <jas@extundo.com>
83023
83024         * m4/rijndael.m4: New file.
83025
83026 2005-10-15  Simon Josefsson  <jas@extundo.com>
83027
83028         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83029
83030         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83031
83032 2005-10-14  Simon Josefsson  <jas@extundo.com>
83033
83034         * tests/test-arcfour.c: New file.
83035
83036         * modules/arcfour, modules/arcfour-tests: New files.
83037
83038 2005-10-14  Simon Josefsson  <jas@extundo.com>
83039
83040         * m4/arcfour.m4: New file.
83041
83042 2005-10-14  Simon Josefsson  <jas@extundo.com>
83043
83044         * lib/arcfour.h, lib/arcfour.c: New files.
83045
83046 2005-10-14  Roland McGrath  <roland@redhat.com>
83047
83048         Import from libc.  [BZ #1331]
83049         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83050         macro argument.
83051         Reported by Matej Vela <vela@debian.org>.
83052
83053 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83056         include <wchar.h>; no longer needed.
83057
83058 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83061
83062 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83063         and  Ulrich Drepper  <drepper@redhat.com>
83064
83065         Import from libc.
83066         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83067         instead of inline stream orientation test and two separate
83068         function calls.  Pay no attention to USE_IN_LIBIO.
83069
83070 2005-10-13  Simon Josefsson  <jas@extundo.com>
83071
83072         * modules/gc-hmac-md5-tests: New file.
83073
83074         * tests/test-gc-hmac-sha1.c: New file.
83075
83076         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83077
83078         * modules/gc-hmac-md5-tests: New file.
83079
83080         * tests/test-gc-md5.c: New file.
83081
83082         * modules/gc-md5-tests: New file.
83083
83084 2005-10-13  Simon Josefsson  <jas@extundo.com>
83085
83086         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83087         Move memory allocation outside of loop.
83088
83089 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83092         intermediate directory is in a read-only file system.  Problem
83093         reported by Eric Blake.
83094
83095 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83096
83097         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83098
83099 2005-10-12  Simon Josefsson  <jas@extundo.com>
83100
83101         * tests/test-hmac-sha1.c: New file.
83102
83103         * modules/hmac-sha1-tests: New file.
83104
83105         * modules/hmac-sha1: New file.
83106
83107 2005-10-12  Simon Josefsson  <jas@extundo.com>
83108
83109         * modules/gc-sha1: New file.
83110
83111 2005-10-12  Simon Josefsson  <jas@extundo.com>
83112
83113         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83114
83115         * tests/test-gc-pbkdf2-sha1.c: New file.
83116
83117 2005-10-12  Simon Josefsson  <jas@extundo.com>
83118
83119         * modules/gc-md5, modules/gc-hmac-md5: New files.
83120
83121         * modules/gc (Files): Remove md5, memxor and hmac files.
83122
83123 2005-10-12  Simon Josefsson  <jas@extundo.com>
83124
83125         * m4/gc-pbkdf2-sha1.m4: New file.
83126
83127         * m4/gc-hmac-sha1.m4: New file.
83128
83129         * m4/gc-sha1: New file.
83130
83131         * m4/hmac-sha1.m4: New file.
83132
83133 2005-10-12  Simon Josefsson  <jas@extundo.com>
83134
83135         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83136
83137         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83138
83139 2005-10-12  Simon Josefsson  <jas@extundo.com>
83140
83141         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83142         suggested by Bruno Haible <bruno@clisp.org>.
83143
83144 2005-10-12  Simon Josefsson  <jas@extundo.com>
83145
83146         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83147
83148 2005-10-12  Simon Josefsson  <jas@extundo.com>
83149
83150         * lib/gc-pbkdf2-sha1.c: New file.
83151
83152         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83153
83154 2005-10-12  Simon Josefsson  <jas@extundo.com>
83155
83156         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83157
83158         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83159
83160 2005-10-12  Simon Josefsson  <jas@extundo.com>
83161
83162         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83163         GC_USE_HMAC_MD5, respectively.
83164
83165         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83166         (gc_md5): Fix typo.
83167
83168         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83169
83170         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83171
83172         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83173
83174 2005-10-12  Bruno Haible  <bruno@clisp.org>
83175
83176         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83177         Reported by Stepan Kasal <kasal@ucw.cz>.
83178
83179 2005-10-11  Simon Josefsson  <jas@extundo.com>
83180
83181         * tests/test-crc.c: New file.
83182
83183         * modules/crc, modules/crc-tests: New files.
83184
83185 2005-10-11  Simon Josefsson  <jas@extundo.com>
83186
83187         * m4/crc.m4: New file.
83188
83189 2005-10-11  Simon Josefsson  <jas@extundo.com>
83190
83191         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83192
83193         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83194
83195         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83196
83197 2005-10-11  Simon Josefsson  <jas@extundo.com>
83198
83199         * lib/crc.h, lib/crc.c: New files.
83200
83201         * lib/gc.h (gc_hash_buffer): Add doc.
83202
83203 2005-10-11  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/c-strcasestr: New file.
83206         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83207
83208 2005-10-11  Bruno Haible  <bruno@clisp.org>
83209
83210         * modules/c-strcase: New file.
83211         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83212
83213 2005-10-11  Bruno Haible  <bruno@clisp.org>
83214
83215         * lib/strcasecmp.c: Include limits.h.
83216         (strcasecmp): Avoid integer overflow on exotic platforms.
83217         * lib/strncasecmp.c: Include limits.h.
83218         (strncasecmp): Avoid integer overflow on exotic platforms.
83219         Reported by Paul Eggert.
83220
83221 2005-10-11  Bruno Haible  <bruno@clisp.org>
83222
83223         * lib/c-strcasestr.h: New file, from GNU gettext.
83224         * lib/c-strcasestr.c: New file, from GNU gettext.
83225
83226 2005-10-11  Bruno Haible  <bruno@clisp.org>
83227
83228         * lib/c-strcase.h: New file, from GNU gettext.
83229         * lib/c-strcasecmp.c: New file, from GNU gettext.
83230         * lib/c-strncasecmp.c: New file, from GNU gettext.
83231
83232 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83233
83234         * modules/mempcpy (License): GPL -> LGPL.
83235         * modules/strchrnul (License): Likewise.
83236         * modules/sysexits (License): Likewise.
83237
83238 2005-10-08  Simon Josefsson  <jas@extundo.com>
83239
83240         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83241
83242 2005-10-07  Simon Josefsson  <jas@extundo.com>
83243
83244         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83245
83246 2005-10-06  Simon Josefsson  <jas@extundo.com>
83247
83248         * tests/test-hmac-md5.c: New file.
83249
83250         * modules/hmac-md5-tests: New file.
83251
83252         * modules/hmac-md5: New file.
83253
83254 2005-10-06  Simon Josefsson  <jas@extundo.com>
83255
83256         * m4/hmac-md5.m4: New file.
83257
83258         * m4/memxor.m4: Require gl_C_RESTRICT.
83259
83260 2005-10-06  Simon Josefsson  <jas@extundo.com>
83261
83262         * lib/memxor.c (memxor): Avoid casts and warnings.
83263
83264 2005-10-06  Simon Josefsson  <jas@extundo.com>
83265
83266         * lib/hmac-md5.c: New file.
83267
83268         * lib/hmac.h: New file.
83269
83270 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83273         promotes to int, not unsigned int, to catch the AIX 5.3
83274         compiler bug.
83275
83276 2005-10-05  Simon Josefsson  <jas@extundo.com>
83277
83278         * modules/memxor: New file.
83279
83280         * modules/iconv (Files): Move config.rpath to havelib, it is used
83281         there.
83282
83283         * modules/havelib (Files): Add config.rpath.
83284
83285 2005-10-05  Simon Josefsson  <jas@extundo.com>
83286
83287         * m4/memxor.m4: New file.
83288
83289 2005-10-05  Simon Josefsson  <jas@extundo.com>
83290
83291         * lib/memxor.c (memxor): Fix compiler error.
83292
83293         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83294         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83295
83296         * lib/memxor.h, lib/memxor.c: New files.
83297
83298         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83299         we assume all systems have it, suggested by Jim Meyering
83300         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83301         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83302         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83303         same reasons.
83304
83305 2005-10-05  Simon Josefsson  <jas@extundo.com>
83306
83307         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83308
83309 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83312         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83313         needed, since the source code now assumes these .h files.
83314
83315 2005-10-05  Derek Price  <derek@ximbiot.com>
83316
83317         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83318
83319 2005-10-05  Bruno Haible  <bruno@clisp.org>
83320
83321         * modules/stdint (License): Change to LGPL.
83322
83323 2005-10-04  Simon Josefsson  <jas@extundo.com>
83324
83325         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83326         D. Baushke" <mdb@gnu.org>.
83327
83328 2005-10-04  Bruno Haible  <bruno@clisp.org>
83329
83330         * lib/verify.h (verify_true): Provide alternative definition for C++.
83331
83332 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83333
83334         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83335         (SSIZE_MAX): New macro, if not already defined.
83336         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83337         than 2 GiB.
83338
83339 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83340
83341         Sync from coreutils.
83342         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83343         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83344         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83345         ULLONG_MAX doesn't work with 2.7.2.1.
83346
83347 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83348
83349         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83350         From Ben Pfaff.
83351
83352         * modules/exclude (Depends-on): Depend on verify.
83353         * modules/strtoimax (Depends-on): Likewise.
83354         * modules/utimecmp (Depends-on): Likewise.
83355
83356 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83357
83358         * lib/exclude.c: Include verify.h.
83359         (verify): Remove.  All callers changed to use verify.h's version.
83360         * lib/strtoimax.c: Likewise.
83361         * lib/utimecmp.c: Likewis.e
83362
83363         Sync from coreutils.
83364         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83365         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83366         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83367         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83368         bother returning ENOSYS if settimeofday or stime fails; just let
83369         them return whatever errno they want to return.
83370         * lib/utimens.c: Include unistd.h, for dup2.
83371         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83372         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83373
83374 2005-10-02  Jim Meyering  <jim@meyering.net>
83375
83376         Sync from coreutils.
83377         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83378         from glibc-2.2.5 that fails for read-only files.
83379
83380 2005-10-02  Jim Meyering  <jim@meyering.net>
83381
83382         Sync from coreutils.
83383         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83384         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83385         `#if HAVE_CONFIG_H'.
83386         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83387         Remove AT_FDCWD test.
83388         Do not consume the fd unless successful.
83389         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83390         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83391         block, so that we don't even try to compile it if settimeofday is
83392         available.  This works around a compilation failure on OSF1 V5.1,
83393         due to stime requiring a `long int*' while tv_sec is `int'.
83394
83395 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83396
83397         Sync from coreutils.
83398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83399         against `yes', rather than just testing for nonempty.
83400
83401 2005-10-01  Simon Josefsson  <jas@extundo.com>
83402
83403         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83404         and Darwin.
83405
83406         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83407         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83408         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83409         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83410         Check if struct addrinfo is declared.
83411
83412 2005-10-01  Simon Josefsson  <jas@extundo.com>
83413
83414         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83415         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83416         AI_* and EAI_* definitions.  Protect function declarations.
83417
83418 2005-10-01  Jim Meyering  <jim@meyering.net>
83419
83420         Sync from coreutils.
83421
83422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83423         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83424         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83426         in the inet and nsl libraries.  Required on Solaris 5.7.
83427
83428 2005-10-01  Jim Meyering  <jim@meyering.net>
83429
83430         Sync from coreutils.
83431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83432         in the inet and nsl libraries.  Required on Solaris 5.7.
83433
83434 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83435
83436         * lib/getdelim.c (getdelim): Remove unused variables.
83437
83438 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83439
83440         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83441         so that the code works even with ancient cpp.  Portability problem
83442         with GCC 2.7.2.1 reported by Thomas M.Ott.
83443
83444 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83445
83446         * modules/regex (Depends-on): Add strcase.
83447
83448         * modules/gethostname (Licence): Change from GPL to LGPL, since
83449         gethostname.c is a trivial implementation of a standard library
83450         function.
83451         * modules/poll (License): Change from GPL to LGPL, since it's
83452         derived from LGPL code.
83453
83454 2005-09-27  Jim Meyering  <jim@meyering.net>
83455
83456         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83457         HAVE_CONFIG_H.
83458
83459         * lib/intprops.h (signed_type_or_expr__): Define.
83460         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83461         for unsigned types.
83462
83463 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83464
83465         * lib/verify.h (verify_expr): Remove, replacing with:
83466         (verify_true): New macro that returns true instead of void.
83467         (verify_type__): Remove.
83468         (verify): Use verify_true rather than verify_type__.
83469
83470 2005-09-26  Bruno Haible  <bruno@clisp.org>
83471
83472         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83473         is necessary.
83474         (lib_SOURCES): Remove mbchar.c.
83475         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83476         (Files): Add m4/mbrtowc.m4.
83477         * modules/mbiter: Likewise.
83478         * modules/mbuiter: Likewise.
83479
83480 2005-09-26  Bruno Haible  <bruno@clisp.org>
83481
83482         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83483         compile mbchar.c if they are not both present.
83484         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83485         * m4/mbiter.m4 (gl_MBITER): Likewise.
83486         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83487         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83488         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83489
83490 2005-09-25  Jim Meyering  <jim@meyering.net>
83491
83492         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83493         also uses socklen_t.
83494
83495 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * lib/utimens.c (ENOSYS): Define if not already defined.
83498         (futimens): Support having a null PATH if the file descriptor
83499         is nonnegative.
83500
83501         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83502         Remove.
83503         (__attribute): Define to empty unless GCC 3.1 or later.
83504         This works around a core dump on OpenBSD 3.4, which has GCC
83505         2.95.3, which dumps core when given __attribute__(()).  It also
83506         simplifies other tests, since we really don't want to bother with
83507         worrying about which ancient version of GCC supported what.
83508         Original problem reported by Yoann Vandoorselaere, with part of
83509         the fix suggested by Derek Price.
83510
83511 2005-09-24  Jim Meyering  <jim@meyering.net>
83512
83513         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83514         so we can once again use a positive bitfield width of 1 -- now we
83515         don't have to explain why we were using a bitfield width of 2.
83516
83517 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83520         and similarly for the other external symbols.  Problem reported
83521         by James Gallager.
83522
83523         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83524         bug reported by Jim Meyering.
83525
83526         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83528         not needed, since socklen is a prerequisite module.
83529
83530 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83533         Problem reported by Eric Blake.
83534         (getaddrinfo): Initialize se so that it's not garbage.
83535         Redo internal storage allocation so that it doesn't make unportable
83536         assumptions about alignment.
83537         Fix a memory leak.
83538
83539         * lib/utimens.c (futimens): Use futimesat if available.
83540         Prefer it to futimes since it doesn't have the futimes bug.
83541
83542         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83543         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83544         Instead, declare a function that returns a pointer to an array,
83545         and use verify_type__ to declare the size of the array.
83546         Problem and germ of a solution reported by Bruno Haible.
83547         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83548         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83549
83550 2005-09-23  Jim Meyering  <jim@meyering.net>
83551
83552         Sync from coreutils.
83553         Correct build failure (socklen_t not defined) on at least
83554         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83556
83557 2005-09-23  Jim Meyering  <jim@meyering.net>
83558
83559         * modules/getaddrinfo (Depends-on): Add socklen.
83560
83561 2005-09-23  Bruno Haible  <bruno@clisp.org>
83562
83563         * tests/test-verify.c: New file.
83564
83565 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         Sync from coreutils.
83568
83569         * modules/argmatch (Depends-on): Add verify.
83570         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83571         unistd-safer.
83572         * modules/save-cwd (Depends-on): Likewise.
83573
83574         * modules/openat (Files): Add lib/openat-die.c.
83575         (Depends-on): Remove error, exitfail.
83576         Add dirname.
83577
83578         * modules/verify: New file.
83579         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83580         with "verify" module.
83581
83582 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83583
83584         Sync from coreutils.
83585
83586         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83587         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83588         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83589         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83590         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83591         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83592         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83593         Don't bother checking for string.h, stdlib.h, unistd.h.
83594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83596         module's job.
83597         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83598         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83599
83600         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83601         (gl_GETDATE): Use it.
83602
83603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83604
83605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         Sync from coreutils.
83608
83609         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83610         stat-time.h.
83611         * lib/argmatch.h: Include verify.h
83612         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83613         (ARGMATCH_ASSERT): Remove; unused.
83614         * lib/canonicalize.c: Assume STDC_HEADERS.
83615         * lib/exclude.c: Include "strcase.h".
83616         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83617         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83618         and stdio-safer.h.
83619         (getusershell): Call fopen, not fopen_safer.
83620         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83621         Do not include unistd-safer.h.
83622         (save_cwd): Don't call fd_safer; no longer needed
83623         now that we include fcntl--.h.
83624
83625         * lib/getdate.y (relative_time): New type.
83626         (RELATIVE_TIME_0): New constant.
83627         (parser_control): Use relative_time instead of doing it ourselves.
83628         (%union): Add new relative_time rel member.
83629         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83630         Now typeless.
83631         (relunit, relunit_snumber): Now of type rel.
83632         (zone, rel, relunit, get_date): Adjust to above changes.
83633
83634         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83635         Do not include unistd-safer.h.
83636         (getloadavg): Don't call fd_safer; no longer needed
83637         now that we include fcntl--.h.
83638
83639         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83640         (make_dir_parents): Treat ENOSYS like EEXIST.
83641
83642         Improve quality of diagnostics on restore_cwd failure.
83643         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83644         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83645         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83646         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83647         each time through the loop.  Do not diagnose restore_cwd failure;
83648         that is the caller's job (and perhaps the caller does not care).
83649
83650         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83651         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83652         If the file already exists but is not a directory, don't bother
83653         to try to make its parents.
83654         Close potential file descriptor leak if we can't chdir("/") (!).
83655         Don't always return true if chdir($PWD) fails; return true only
83656         if the requested action was done successfully (except for the
83657         chdir($PWD)).
83658         Don't log final directory unless we actually made it.
83659         Refactor to avoid duplicate code to fix up permissions.
83660         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83661
83662         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83663         to make it a bit faster and (I hope) clearer.
83664         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83665         Fix bug in formats like %2N.
83666
83667         * lib/verify.h: New file.
83668
83669 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83670
83671         Sync from coreutils.
83672         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83673
83674 2005-09-22  Jim Meyering  <jim@meyering.net>
83675
83676         Sync from coreutils.
83677
83678         * m4/lstat.m4 (gl_FUNC_LSTAT):
83679         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83680         Remove obsolete comment.
83681         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83682         * m4/xstrtod.m4: Likewise.
83683
83684         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83685
83686 2005-09-22  Jim Meyering  <jim@meyering.net>
83687
83688         Sync from coreutils.
83689
83690         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83691
83692         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83693         the .tm_year member, since otherwise gcc-4.0 would now warn about
83694         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83695
83696         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83697         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83698
83699         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83700         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83701         when run in a time zone for which daylight savings time is in effect
83702         for the starting date.
83703
83704         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83705         stop us from restricting permissions of just-created absolute-named
83706         directories.
83707         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83708         to restore initial working directory.
83709         * lib/mkdir-p.c (make_dir_parents): New parameter:
83710         different_working_dir, to tell caller if/when we change the working
83711         directory and are unable to return to the initial one.
83712         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83713         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83714         `return false'.  This fixes a bug introduced on 2004-07-30.
83715
83716         * lib/openat.c (fdopendir): Be sure to close the supplied
83717         file descriptor before returning.  This makes our replacement
83718         implementation a little closer to Solaris's, where fdopendir
83719         ties the file descriptor to the returned DIR* pointer.
83720         * lib/openat.c (unlinkat): New function.
83721         * lib/openat.h (unlinkat): Add prototype.
83722         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83723         (openat_restore_fail): Rename from openat_restore_die.
83724         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83725
83726         Provide an alternative to exiting immediately upon save_cwd or
83727         restore_cwd failure.  Now, an application can arrange e.g.,
83728         to perform a longjump in that case.
83729         * lib/openat.c: Include dirname.h.
83730         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83731         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83732         and openat_restore_die rather than calling error directly.
83733         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83734
83735         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83736         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83737         define.
83738
83739         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83740         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83741                             int utc, int nanoseconds);
83742         Background:
83743         date should not have to allocate a megabyte of virtual memory to
83744         handle a format argument like +%1048575T.  When implemented with
83745         strftime, it must allocate such a buffer, use strftime to fill it
83746         in, print it, then free it.
83747         With fprintftime, it simply prints everything and exits.
83748         With no need for memory allocation, that's one fewer way to fail.
83749         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83750         optional field width, not before, so we accept %9:z, not %:9z.
83751         (my_strftime): Be sure to use L_('x') for literals.
83752
83753         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83754         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83755         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83756         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83757         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83758         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83759         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83760         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83761         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83762         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83763         * lib/xgethostname.c, lib/xreadlink.c:
83764         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83765
83766         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83767         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83768         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83770         and don't include <sys/file.h>).
83771
83772 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83773
83774         Sync from coreutils.
83775
83776         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83777         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83778         [!LDAV_DONE]: Avoid unused variable warning.
83779
83780 2005-09-21  Bruno Haible  <bruno@clisp.org>
83781
83782         * lib/unicodeio.h (unicode_to_mb): New declaration.
83783
83784 2005-09-20  Derek Price  <derek@ximbiot.com>
83785
83786         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83787         getaddrinfo.h.
83788
83789 2005-09-20  Bruno Haible  <bruno@clisp.org>
83790
83791         * gnulib-tool: Remove trailing slashes from the values specified for
83792         --source-base, --m4-base, --tests-base, --aux-dir.
83793         Suggested by Simon Josefsson <jas@extundo.com>.
83794
83795 2005-09-20  Bruno Haible  <bruno@clisp.org>
83796
83797         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83798         func_modules_to_filelist, func_import, func_create_testdir): Make all
83799         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83800         change when gnulib-tool is invoked in a different locale.
83801
83802 2005-09-19  Simon Josefsson  <jas@extundo.com>
83803
83804         * m4/socklen.m4: Fix typo.
83805
83806 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83807
83808         Use a consistent style for including <config.h>.
83809         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83810         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83811         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83812         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83813         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83814         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83815         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83816         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83817         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83818         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83819         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83820         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83821         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83822         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83823         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83824         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83825         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83826         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83827         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83828         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83829         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83830         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83831         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83832         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83833         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83834         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83835         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83836         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83837         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83838         lib/xstrtoumax.c, lib/yesno.c:
83839         Standardize inclusion of config.h.
83840         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83841         lib/inttostr.h:  Removed inclusion of config.h from header files.
83842         * lib/inttostr.c:  Adjusted in-tree users.
83843         * lib/timespec.h: Remove superfluous warning to include config.h.
83844         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83845         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83846         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83847         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83848         config.h with HAVE_CONFIG_H.
83849
83850 2005-09-19  Jim Meyering  <jim@meyering.net>
83851
83852         * modules/pathmax (License): Change to LGPL.
83853
83854 2005-09-19  Derek Price  <derek@ximbiot.com>
83855
83856         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83857
83858 2005-09-19  Bruno Haible  <bruno@clisp.org>
83859
83860         * gnulib-tool (import): Provide default for --tests-base.
83861
83862 2005-09-19  Bruno Haible  <bruno@clisp.org>
83863
83864         * doc/quote.texi: New file, extracted from gnulib.texi.
83865         * doc/ctime.texi: New file, extracted from gnulib.texi.
83866         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83867         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83868         * doc/gnulib.texi: Include them.
83869
83870 2005-09-18  Bruno Haible  <bruno@clisp.org>
83871
83872         Portability fix.
83873         * gnulib-tool (func_readlink): New function.
83874         (func_ln_if_changed): Use it.
83875
83876 2005-09-18  Bruno Haible  <bruno@clisp.org>
83877
83878         * gnulib-tool: Support --with-tests also with --import.
83879         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83880         (func_import): Use variables $testsbase and $inctests. Emit a
83881         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83882         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83883         SUBDIRS += $testsdir.
83884         (func_create_testdir): Update.
83885
83886 2005-09-18  Bruno Haible  <bruno@clisp.org>
83887
83888         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83889         instead of $dry_run.
83890         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83891         (func_ln_if_changed): Don't handle dry-run here.
83892         (func_import): In dry-run mode, detect more precisely which actions
83893         would be performed, and don't use "...ing" verbs.
83894
83895 2005-09-18  Bruno Haible  <bruno@clisp.org>
83896
83897         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83898         (func_import): Use join on two temporary files instead of three nested
83899         loops, in order to determine which files are new or old.
83900
83901 2005-09-18  Bruno Haible  <bruno@clisp.org>
83902
83903         * gnulib-tool (func_import): Comment out code that spits out the
83904         new files with --dry-run.
83905
83906 2005-09-18  Bruno Haible  <bruno@clisp.org>
83907
83908         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83909
83910 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * lib/stat-time.h: New file.
83913         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83914         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83915         in a different way.
83916         (timespec_cmp): New function.
83917         * lib/utimecmp.c: Include stat-time.h.
83918         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83919         members exist, not on the obsolescent ST_MTIM_NSEC.
83920         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83921
83922 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83923
83924         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83925
83926 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83927
83928         * MODULES.html.sh (File system functions): Add stat-time.
83929         * modules/stat-time: New file.
83930         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83931         is now done in a different way, by the stat-time module.
83932         * modules/utimecmp (Depends-on): Add stat-time.
83933
83934 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         * m4/st_mtim.m4: Remove.  Superseded by...
83937         * m4/stat-time.m4: New file.
83938         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83939         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83940
83941 2005-09-15  Derek Price  <derek@ximbiot.com>
83942
83943         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83944
83945 2005-09-15  Derek Price  <derek@ximbiot.com>
83946
83947         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83948         * lib/regex_internal.c: Ditto, using this...
83949         (__GNUC_PREREQ): ...new macro.
83950         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83951         using...
83952         (__GNUC_PREREQ): ...this new macro.
83953
83954         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83955
83956 2005-09-15  Derek Price  <derek@ximbiot.com>
83957             Paul Eggert  <eggert@cs.ucla.edu>
83958
83959         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83960         changes, consolidating in...
83961         * lib/regex_internal.h: ...this file.
83962
83963 2005-09-13  Jim Meyering  <jim@meyering.net>
83964
83965         * lib/canon-host.c: Filter through gnu indent and reword comments
83966         slightly.
83967         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83968
83969 2005-09-13  Derek Price  <derek@ximbiot.com>
83970
83971         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83972         failure.
83973         Reported by Jim Meyering  <jim@meyering.net>.
83974
83975 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83976
83977         * lib/base64.c: Typo.
83978         (base64_encode): Put b64str in initialized data section.
83979
83980 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83981
83982         Merge glibc and coreutils changes into gnulib, plus a few
83983         extra fixes.
83984         * lib/md5.c: Use #error rather than a string.
83985         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83986         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83987         (__attribute__): Define to empty for non recent-GCC.
83988         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83989         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83990         Renamed from their non-__ counterparts, with new macros replacing
83991         them if not _LIBC.  Add __THROW attribute.
83992         (rol): Remove.
83993         (struct md5_ctx): Align buffer if using GCC.
83994         * lib/sha1.h (struct sha1_ctx): Likewise.
83995         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83996         The old name was backwards.
83997         (NOTSWAP): Remove; not used.
83998         (rol): New macro, moved here from md5.h.
83999         (sha1_process_block): Remove a FIXME that doesn't make sense.
84000
84001 2005-09-12  Derek Price  <derek@ximbiot.com>
84002
84003         Return usable errors from canon-host.
84004         * lib/canon-host.h: New file.
84005         * lib/canon-host.c (canon_host): Wrap...
84006         (canon_host_r): ...this new function, which now relies exclusively on
84007         getaddrinfo.
84008         (ch_strerror): New function.
84009         (last_cherror): New global.
84010         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84011         interface.
84012         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84013         void *.
84014         (freeaddrinfo): Free ai->ai_canonname when set.
84015
84016 2005-09-12  Derek Price  <derek@ximbiot.com>
84017
84018         Make canon-host require getaddrinfo.
84019         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84020         AC_LIBSOURCE canon-host.h.  Call...
84021         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84022         gl_GETADDRINFO.
84023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84024
84025 2005-09-12  Derek Price  <derek@ximbiot.com>
84026
84027         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84028         LGPL.
84029         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84030
84031 2005-09-12  Derek Price  <derek@ximbiot.com>
84032
84033         * lib/gai_strerror.c: Include config.h when available.  Include
84034         getaddrinfo.h before other headers to test interface.
84035         Reported by Larry Jones <lawrence.jones@ugs.com>.
84036
84037 2005-09-12  Derek Price  <derek@ximbiot.com>
84038             Paul Eggert  <eggert@cs.ucla.edu>
84039
84040         * modules/glob (Files): Add glob-libc.h.
84041
84042 2005-09-12  Derek Price  <derek@ximbiot.com>
84043             Paul Eggert  <eggert@cs.ucla.edu>
84044
84045         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84046         glob_.h, glob-libc.h.
84047         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84048
84049 2005-09-12  Derek Price  <derek@ximbiot.com>
84050             Paul Eggert  <eggert@cs.ucla.edu>
84051
84052         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84053         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84054         protecting things that should be done only in gnulib contexts.
84055         * lib/glob_.h: New file, containing only the glob things needed for
84056         gnulib.
84057         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84058         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84059         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84060         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84061         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84062         and to respect the namespace rules better.
84063
84064 2005-09-08  Simon Josefsson  <jas@extundo.com>
84065
84066         * modules/socklen: New file.
84067
84068 2005-09-08  Simon Josefsson  <jas@extundo.com>
84069
84070         * m4/socklen.m4: New file.
84071
84072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84073
84074         * modules/utimens (Files): Add m4/utimbuf.m4, since
84075         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84076         Reported by Sergey Poznyakoff.
84077
84078 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84081         definitions, since that's the preferred style in glibc.
84082         Fix a minor spacing issue, and update copyright notice to match
84083         glibc's.
84084
84085 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84086
84087         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84088
84089 2005-09-06  Simon Josefsson  <jas@extundo.com>
84090
84091         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84092         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84093
84094 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84095
84096         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84097         warning.
84098
84099 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84100
84101         * config/srclist.txt: Add glibc bug 1302.
84102
84103 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84104
84105         Change bitset word type from unsigned int to unsigned long int,
84106         as this has better performance on typical 64-bit hosts.
84107         Port bitset code to hosts with unusual word sizes.
84108         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84109         (build_collating_symbol):
84110         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84111         argument is a bitset.  This is merely a style issue, but it makes
84112         it clearer that an entire array is expected.
84113         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84114         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84115         Port to the case where bitset_word is not the same as unsigned int.
84116         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84117         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84118         Likewise.
84119         * lib/regexec.c (check_dst_limits_calc_pos_1,
84120         check_subexp_matching_top):
84121         (build_trtable, group_nodes_into_DFAstates):
84122         Likewise.
84123         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84124         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84125         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84126         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84127         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84128         * lib/regcomp.c (optimize_subexps, lower_subexp):
84129         Work even if bitset_word has holes in its bitwise representation.
84130         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84131         * lib/regexec.c (check_dst_limits_calc_pos_1,
84132         check_subexp_matching_top):
84133         Likewise.
84134         * lib/regex_internal.c (re_string_reconstruct):
84135         Don't assume UCHAR_MAX == 255.
84136         * lib/regex_internal.h (bitset_set_all): Likewise.
84137         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84138         All uses changed.
84139         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84140         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84141         All uses changed.
84142         (BITSET_WORD_MAX): New macro.
84143         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84144         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84145         (bitset_empty, bitset_copy):
84146         Prefer sizeof (bitset) to multiplying it out ourselves.
84147         (bitset_not_merge): Remove; unused.
84148         (bitset_contain): Return bool, not unsigned int with one bit on.
84149         All callers changed.
84150         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84151         alignment than re_node_set; do this by defining a new internal
84152         type struct dests_alloc and using it to allocate memory.
84153
84154 2005-09-05  Bruno Haible  <bruno@clisp.org>
84155
84156         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84157         links.
84158
84159 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84160
84161         * modules/size_max (Makefile.am): Add size_max.h
84162
84163 2005-09-04  Derek Price  <derek@ximbiot.com>
84164
84165         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84166
84167 2005-09-03  Simon Josefsson  <jas@extundo.com>
84168
84169         * gnulib-tool: Fix typo.
84170
84171 2005-09-03  Simon Josefsson  <jas@extundo.com>
84172
84173         * config/srclist.txt: Add glibc bug 1293.
84174
84175 2005-09-03  Derek Price  <derek@ximbiot.com>
84176
84177         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84178         From Larry Jones <lawrence.jones@ugs.com>.
84179
84180 2005-09-02  Simon Josefsson  <jas@extundo.com>
84181
84182         * modules/socklen: New file.
84183
84184 2005-09-02  Simon Josefsson  <jas@extundo.com>
84185
84186         * modules/havelib: New module.
84187
84188         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84189         Use havelib.
84190
84191 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84192
84193         Check for arithmetic overflow when calculating sizes, to prevent
84194         some buffer-overflow issues.  These patches are conservative, in the
84195         sense that when I couldn't determine whether an overflow was possible,
84196         I inserted a run-time check.
84197         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84198         macros.
84199         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84200         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84201         (re_xnrealloc, re_x2nrealloc): New inline functions.
84202         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84203         parse_bracket_exp):
84204         (build_equiv_class, build_charclass): Check for arithmetic overflow
84205         in size expression calculations.
84206         * lib/regex_internal.c (re_string_realloc_buffers):
84207         (build_wcs_upper_buffer, re_node_set_add_intersect):
84208         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84209         (re_dfa_add_node, register_state): Likewise.
84210         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84211         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84212         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84213         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84214
84215 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84216
84217         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84218         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84219
84220 2005-09-02  Bruno Haible  <bruno@clisp.org>
84221
84222         Support for lib vs. lib64 distinction on biarch platforms.
84223         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84224         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84226
84227 2005-09-02  Bruno Haible  <bruno@clisp.org>
84228
84229         * gnulib-tool (import): In the other first-use case, provide defaults
84230         as well.
84231
84232 2005-09-02  Bruno Haible  <bruno@clisp.org>
84233
84234         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84235         patches not yet found in the latest gettext release.
84236
84237 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84240         to avoid a collision with bits/local_lim.h in glibc.
84241         All uses changed.  Problem reported by Dmitry V. Levin in
84242         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84243
84244         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84245         bugs in int versus size_t comparisons.
84246         (re_string_context_at): Fix bug where the code assumed that
84247         Idx is signed.
84248
84249         Use bool where appropriate.
84250         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84251         All callers changed.
84252         (calc_eclosure_iter): Likewise, for ROOT arg.
84253         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84254         (build_charclass_op): Likewise, for NON_MATCH arg.
84255         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84256         (re_string_construct_common): Likewise, for ICASE arg.
84257         * lib/regexec.c (re_search_2_stub, re_search_stub):
84258         Likewise, for RET_LEN arg.
84259         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84260         (set_regs): Likewise, for FL_BACKTRACK arg.
84261         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84262         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84263         (calc_eclosure_iter, parse_bracket_exp):
84264         Use bool for internal variables that are booleans.
84265         * lib/regexec.c (re_search_internal, check_matching,
84266         proceed_next_node):
84267         (set_regs, build_sifted_states, sift_states_bkref):
84268         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84269         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84270         (find_collation_sequence_value):
84271         Likewise.
84272         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84273         (re_node_set_compare):
84274         Return bool, not int. All callers changed.
84275         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84276         (build_trtable, check_node_accept): Likewise.
84277         * lib/regex_internal.h: Include stdbool.h.
84278
84279         Fix bugs uncovered when converting to bool.
84280         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84281         failure instead of charging ahead blindly.
84282         * lib/regex_internal.c (register_state): Likewise.
84283         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84284         for freeing internal storage.
84285         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84286         bitset pieces used as boolean, to avoid undefined behavior
84287         on hosts that do int overflow checking.
84288
84289 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84290
84291         * config/srclist.txt: Add glibc bugs 1285-1287.
84292
84293 2005-09-01  Jim Meyering  <jim@meyering.net>
84294
84295         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84296         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84297         Require gl_STAT_MACROS, too.
84298
84299 2005-09-01  Bruno Haible  <bruno@clisp.org>
84300
84301         * gnulib-tool (import): In the first-use case, provide defaults.
84302
84303 2005-09-01  Bruno Haible  <bruno@clisp.org>
84304
84305         * gnulib-tool (func_import): Remove the .tmp files.
84306
84307 2005-09-01  Bruno Haible  <bruno@clisp.org>
84308
84309         * gnulib-tool (func_import): Fix handling of symbolic links.
84310
84311 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84314         old glibc regex code mishandles strings longer than 2**31 bytes.
84315         This patch fixes this when the regex code is used in gnulib
84316         (i.e., outside glibc).
84317
84318         This patch should not affect the use of the regex code inside
84319         glibc.  No doubt this problem also needs to be handled for glibc
84320         as well, but the result will be an incompatible change to the
84321         glibc ABI, and the old ABI will have to be supported too.  That
84322         can be the the subject for another patch.
84323
84324         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84325         governing whether the rest of this patch is active.  By default,
84326         the macro is disabled and the patch has no effect.
84327         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84328         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84329         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84330         (re_match_2, re_set_registers): Use the new types.
84331         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84332         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84333         New macros.
84334         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84335         (re_string_context_at, bin_tree_t, re_dfastate_t):
84336         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84337         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84338         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84339         (re_string_char_size_at, re_string_wchar_at):
84340         (re_string_elem_size_at):
84341         Use the new types and macros to port to 64-bit hosts.
84342         Use unsigned types for internal values, so that the code
84343         mostly works even for arrays larger than SSIZE_MAX.
84344         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84345         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84346         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84347         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84348         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84349         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84350         (calc_inveclosure, parse_dup_op, build_range_exp):
84351         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84352         (fetch_number, create_token_tree, mark_opt_subexp):
84353         Likewise.
84354         * lib/regex_internal.c (re_string_construct_common,
84355         create_ci_newstate):
84356         (create_cd_newstate, re_string_allocate, re_string_construct):
84357         (re_string_realloc_buffers, build_wcs_upper_buffer):
84358         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84359         (re_string_reconstruct, re_string_peek_byte_case):
84360         (re_string_fetch_byte_case, re_string_context_at):
84361         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84362         (re_node_set_init_copy, re_node_set_add_intersect):
84363         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84364         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84365         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84366         (re_acquire_state, re_acquire_state_context, register_state):
84367         Likewise.
84368         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84369         search_cur_bkref_entry):
84370         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84371         (re_search_internal, re_search_2_stub, re_search_stub)
84372         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84373         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84374         (update_cur_sifted_state, check_dst_limits):
84375         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84376         (check_subexp_limits, sift_states_bkref, merge_state_array):
84377         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84378         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84379         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84380         (expand_bkref_cache, check_node_accept_bytes):
84381         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84382         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84383         (acquire_init_state_context, check_halt_node_context):
84384         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84385         (sift_states_backward, clean_state_log_if_needed):
84386         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84387         (find_recover_state, transit_state_sb, transit_state_mb):
84388         (transit_state_bkref, build_trtable, match_ctx_clean):
84389         Likewise.
84390         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84391         to work around an assumption that REG_MISSING is negative.
84392
84393         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84394         (seek_collating_symbol_entry) [defined _LIBC]:
84395         (lookup_collation_sequence_value) [defined _LIBC]:
84396         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84397         Use prototypes rather than old-style function definitions.
84398         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84399         (transit_state_sb) [0]:
84400         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84401
84402         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84403         rm_eo.
84404
84405         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84406         (optimize_subexps, lower_subexp):
84407         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84408         since the signed shift might overflow.  Use 1u<<31 instead.
84409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84410         Likewise.
84411         * lib/regexec.c (check_dst_limits_calc_pos_1,
84412         check_subexp_matching_top): Likewise.
84413
84414         * lib/regcomp.c (optimize_subexps, lower_subexp):
84415         Use CHAR_BIT rather than 8, for clarity.
84416         * lib/regexec.c (check_dst_limits_calc_pos_1):
84417         (check_subexp_matching_top): Likewise.
84418         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84419         have to worry about portability issues when shifting it left.
84420         Remove no-longer-needed test for table_size > 0.
84421         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84422         in a word, as the resulting behavior is undefined.
84423         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84424         in one case, a <= should have been an <, and in another case the
84425         whole test was missing.
84426         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84427         the standard name CHAR_BIT.
84428         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84429         this is not true on one's complement and signed-magnitude hosts.
84430
84431         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84432         next_last_offset.
84433         (struct re_dfa_t): Remove unused member states_alloc.
84434         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84435
84436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84439         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84440         and large-file glibc and in 32-bit large-file Solaris.
84441
84442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84443
84444         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84445         lengths fit in regoff_t; this isn't true if regoff_t is the same
84446         width as size_t.
84447         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84448         (= START + RANGE) instead of RANGE.  This avoids overflow
84449         problems when regoff_t is the same width as size_t.
84450         All callers changed.
84451         (re_search_2_stub): Check for overflow when adding the
84452         sizes of the two strings.
84453         (re_search_stub): Check for overflow when adding START
84454         to RANGE; if it occurs, substitute the extreme value.
84455
84456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84459
84460 2005-08-31  Jim Meyering  <jim@meyering.net>
84461
84462         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84463         a pointer-to-const.
84464         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84465         (register_state): Likewise.
84466         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84467         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84468         (group_nodes_into_DFAstates): Likewise.
84469
84470 2005-08-31  Jim Meyering  <jim@meyering.net>
84471
84472         * check-module: Add a FIXME comment.
84473
84474 2005-08-31  Eric Blake  <ebb9@byu.net>
84475
84476         * modules/unistd-safer (Files): Add unistd--.h.
84477         * modules/stdio-safer (Files): Add stdio--.h.
84478
84479 2005-08-31  Derek Price  <derek@ximbiot.com>
84480
84481         * lib/getdelim.c (getdelim): Return EOF on EOF.
84482         Reported by Larry Jones <lawrence.jones@ugs.com>.
84483
84484 2005-08-31  Bruno Haible  <bruno@clisp.org>
84485
84486         Avoid unnecessary diffs in the generated lib/Makefile.am.
84487         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84488         the generated files.
84489         (func_import): Don't set cmd.
84490
84491 2005-08-31  Bruno Haible  <bruno@clisp.org>
84492
84493         * lib/strstr.c: Include <stddef.h>, for NULL.
84494         * lib/strcasestr.c: Likewise.
84495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84496
84497 2005-08-31  Bruno Haible  <bruno@clisp.org>
84498
84499         * gnulib-tool: New option --macro-prefix.
84500         (func_import): Use macro_prefix.
84501         (import): Handle option --macro-prefix.
84502
84503 2005-08-31  Bruno Haible  <bruno@clisp.org>
84504
84505         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84506         Also use new variables cached_lgpl, cached_libtool.
84507
84508 2005-08-31  Bruno Haible  <bruno@clisp.org>
84509
84510         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84511         always instantiating them.
84512
84513 2005-08-31  Bruno Haible  <bruno@clisp.org>
84514
84515         * gnulib-tool (func_import): Read the previous cached settings
84516         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84517         earlier added by gnulib but are now dropped. Warn when a gnulib file
84518         overwrites a non-gnulib file.
84519
84520 2005-08-31  Bruno Haible  <bruno@clisp.org>
84521
84522         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84523         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84524         projects that don't keep autogenerated files in CVS. Put into
84525         actioncmd only the specified modules, not the transitive closure.
84526
84527 2005-08-31  Bruno Haible  <bruno@clisp.org>
84528
84529         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84530         Create directories that shall be filled.
84531         (import): Don't look for gl_* macros in configure.ac. Recurse across
84532         all directories containing a gnulib-cache.m4 files, if meaningful.
84533
84534 2005-08-31  Bruno Haible  <bruno@clisp.org>
84535
84536         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84537         (import): Set seen_libtool when we see gl_LIBTOOL.
84538
84539 2005-08-31  Bruno Haible  <bruno@clisp.org>
84540
84541         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84542         declaration macro definitions from generated gnulib.m4.
84543
84544 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84545
84546         * lib/iconvme.h: Add prototype for iconv_alloc.
84547
84548 2005-08-29  Simon Josefsson  <jas@extundo.com>
84549
84550         * lib/iconvme.c: Fix errno.
84551
84552 2005-08-29  Bruno Haible  <bruno@clisp.org>
84553
84554         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84555         that it works when the directory contains spaces.
84556
84557 2005-08-29  Bruno Haible  <bruno@clisp.org>
84558
84559         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84560
84561 2005-08-29  Bruno Haible  <bruno@clisp.org>
84562
84563         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84564         Emit more advice.
84565
84566 2005-08-29  Bruno Haible  <bruno@clisp.org>
84567         and Stepan Kasal  <kasal@ucw.cz>
84568
84569         * check-module: If more parameters are given, check each of them
84570         separately; add more exceptions, as noted by Jim Meyering.
84571         (check_module): New procedure.
84572         (%exempt_header): Now contains all exceptions.
84573
84574 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84575
84576         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84577
84578 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84579
84580         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84581
84582 2005-08-28  Bruno Haible  <bruno@clisp.org>
84583
84584         * m4/gnulib-tool.m4: New file.
84585
84586 2005-08-27  Jim Meyering  <jim@meyering.net>
84587
84588         * modules/unistd-safer (Files): Add pipe-safer.c.
84589         * modules/fcntl-safer (Files): Add creat-safer.c.
84590
84591 2005-08-27  Jim Meyering  <jim@meyering.net>
84592
84593         * m4/stdlib-safer.m4: New file.  From coreutils.
84594         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84596         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84597         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84598         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84599
84600 2005-08-27  Jim Meyering  <jim@meyering.net>
84601
84602         * lib/fopen-safer.c: Merge minor changes from coreutils.
84603         * lib/dup-safer.c: Likewise.
84604         * lib/fd-safer.c: Likewise.
84605
84606         Merge from coreutils.
84607         * lib/stdio--.h: New file.
84608         * lib/stdlib--.h: New file.
84609         * lib/mkstemp-safer.c: New file.
84610
84611         GNU tar needs these.
84612         * lib/pipe-safer.c: New file.
84613         * lib/creat-safer.c: New file.
84614         * lib/fcntl--.h (creat): Define to creat_safer.
84615         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84616         * lib/unistd--.h (pipe): Define to pipe_safer.
84617         * lib/unistd-safer.h: Declare pipe_safer.
84618
84619 2005-08-26  Simon Josefsson  <jas@extundo.com>
84620
84621         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84622         Haible <bruno@clisp.org>.
84623
84624 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84625
84626         * lib/regex_internal.h: Remove all references to
84627         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84628         or better.
84629         (bitset_not, bitset_merge, bitset_not_merge):
84630         (bitset_mask, re_string_allocate, re_string_construct):
84631         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84632         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84633         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84634         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84635         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84636         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84637         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84638         (re_acquire_state_context):
84639         Remove unnecessary forward decls.
84640         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84641         Put __attribute at function definition,
84642         now that the function decl has been removed.
84643         * lib/regex_internal.c (re_string_peek_byte_case):
84644         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84645         Likewise.
84646
84647 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84648
84649         * m4/regex.m4: Add AC_PREREQ(2.50).
84650         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84651
84652 2005-08-25  Simon Josefsson  <jas@extundo.com>
84653
84654         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84655         __fsetlocking.
84656
84657 2005-08-25  Simon Josefsson  <jas@extundo.com>
84658
84659         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84660         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84661         GLIBC specific code.
84662
84663 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         Make regex safe for g++.  This fixes one real bug (an "err"
84666         that should have been "*err").  g++ problem reported by
84667         Sam Steingold.
84668         * lib/regex_internal.h (re_calloc): New macro, consistent with
84669         re_malloc etc.  All callers of calloc changed to use re_calloc.
84670         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84671         not int.  All callers changed.
84672         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84673         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84674         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84675         (find_recover_state): Change "err" to "*err"; this fixes what
84676         appears to be a real bug.
84677         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84678         versus int.
84679
84680 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84681
84682         * modules/regex (Depends-on): Add malloc, since the code
84683         assumes that !malloc(0) means failure.
84684
84685 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84686
84687         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84688
84689         alloca modernization/simplification for regex.
84690         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84691         needs to be at the start of the file, and can be moved into
84692         regex_internal.h and simplified.
84693         * lib/regex_internal.h: Include <alloca.h>.
84694         (__libc_use_alloca) [!defined _LIBC]: New macro.
84695         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84696         now works outside glibc.
84697
84698 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84699
84700         * config/srclist.txt: Add glibc bugs 1241, 1245.
84701
84702 2005-08-25  Jim Meyering  <jim@meyering.net>
84703
84704         * lib/open-safer.c: Include <config.h>.
84705         Otherwise, we'd lose LARGEFILE support in any file using
84706         e.g. "fcntl--.h"
84707
84708 2005-08-25  Bruno Haible  <bruno@clisp.org>
84709
84710         * m4/minmax.m4: Require autoconf 2.52.
84711         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84712         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84713         alternatives of translit over the alphabet.
84714         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84715
84716 2005-08-24  Simon Josefsson  <jas@extundo.com>
84717
84718         * tests/test-getpass.c: New file.
84719
84720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84721
84722         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84723         for GNU regex features.
84724
84725 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84728         * lib/regex.h (regerror): Likewise.
84729
84730         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84731         requires this.  (The code never needed it.)
84732
84733         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84734         All uses of recently-renamed identifiers changed to use the new,
84735         POSIX-compliant names.  The code will build and run just fine
84736         without these changes, but it's better to eat our own dog food
84737         and use the standard-conforming names.
84738
84739         * lib/regex.h: Fix a multitude of POSIX name space violations.
84740         These changes have an effect only for programs that define
84741         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84742         do not change anything for programs compiled in the normal way.
84743         Also, there is no effect on the ABI.
84744
84745         (_REGEX_SOURCE): New macro.
84746         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84747         defined and _GNU_SOURCE is not; this fixes a name space violation.
84748
84749         Rename the following macros to obey POSIX requirements.
84750         The old names are still visible as macros if _REGEX_SOURCE is defined.
84751         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84752         RE_BACKSLASH_ESCAPE_IN_LISTS.
84753         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84754         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84755         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84756         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84757         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84758         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84759         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84760         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84761         (REG_INTERVALS): renamed from RE_INTERVALS.
84762         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84763         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84764         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84765         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84766         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84767         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84768         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84769         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84770         RE_UNMATCHED_RIGHT_PAREN_ORD.
84771         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84772         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84773         (REG_DEBUG): renamed from RE_DEBUG.
84774         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84775         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84776         unusual, since we can't clash with the POSIX REG_ICASE.
84777         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84778         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84779         (REG_NO_SUB): renamed from RE_NO_SUB.
84780         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84781         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84782         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84783         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84784         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84785         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84786         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84787         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84788         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84789         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84790         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84791         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84792         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84793         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84794         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84795         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84796         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84797         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84798         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84799         (REG_FIXED): Renamed from REGS_FIXED.
84800         (REG_NREGS): Renamed from RE_NREGS.
84801
84802         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84803         of other REG_* macros, since POSIX says the user is allowed to
84804         #undef these macros selectively.
84805
84806         (reg_errcode_t): Update comment stating what other tables need
84807         to be consistent.
84808
84809         Rename the following enum values to obey POSIX requirements.
84810         The old names are still visible as macros.
84811         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84812         is not defined, since GNU is supposed to be a superset of POSIX as
84813         much as possible, and since we want reg_errcode_t to be a signed
84814         type for implementation consistency.
84815         (_REG_NOERROR): Renamed from REG_NOERROR.
84816         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84817         (_REG_BADPAT): Renamed from REG_BADPAT.
84818         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84819         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84820         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84821         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84822         (_REG_EBRACK): Renamed from REG_EBRACK.
84823         (_REG_EPAREN): Renamed from REG_EPAREN.
84824         (_REG_EBRACE): Renamed from REG_EBRACE.
84825         (_REG_BADBR): Renamed from REG_BADBR.
84826         (_REG_ERANGE): Renamed from REG_ERANGE.
84827         (_REG_ESPACE): Renamed from REG_ESPACE.
84828         (_REG_BADRPT): Renamed from REG_BADRPT.
84829         (_REG_EEND): Renamed from REG_EEND.
84830         (_REG_ESIZE): Renamed from REG_ESIZE.
84831         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84832         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84833         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84834         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84835         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84836
84837         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84838         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84839         changed.  But support the old name if the new one is not defined
84840         and if _REGEX_SOURCE.
84841
84842         Change the following member names in struct re_pattern_buffer.
84843         The old names are still supported if !_REGEX_SOURCE.
84844         The new names are always supported, regardless of _REGEX_SOURCE.
84845         (re_buffer): Renamed from buffer.
84846         (re_allocated): Renamed from allocated.
84847         (re_used): Renamed from used.
84848         (re_syntax): Renamed from syntax.
84849         (re_fastmap): Renamed from fastmap.
84850         (re_translate): Renamed from translate.
84851         (re_can_be_null): Renamed from can_be_null.
84852         (re_regs_allocated): Renamed from regs_allocated.
84853         (re_fastmap_accurate): Renamed from fastmap_accurate.
84854         (re_no_sub): Renamed from no_sub.
84855         (re_not_bol): Renamed from not_bol.
84856         (re_not_eol): Renamed from not_eol.
84857         (re_newline_anchor): Renamed from newline_anchor.
84858
84859         Change the following member names in struct re_registers.
84860         The old names are still supported if !_REGEX_SOURCE.
84861         The new names are always supported, regardless of _REGEX_SOURCE.
84862         (rm_num_regs): Renamed from num_regs.
84863         (rm_start): Renamed from start.
84864         (rm_end): Renamed from end.
84865
84866         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84867         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84868         Prepend __ to parameter names.
84869
84870         Undo yesterday's changes.
84871
84872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84875         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84876         lib/regex.c.
84877
84878 2005-08-24  Jim Meyering  <jim@meyering.net>
84879
84880         Sync from coreutils.
84881         * m4/fcntl-safer.m4: New file.
84882
84883         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84884         and object files for this module.
84885
84886 2005-08-24  Jim Meyering  <jim@meyering.net>
84887
84888         Sync from coreutils.
84889         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84890
84891 2005-08-24  Jim Meyering  <jim@meyering.net>
84892
84893         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84894         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84895
84896 2005-08-24  Jim Meyering  <jim@meyering.net>
84897
84898         * modules/fcntl-safer: New module.
84899         * modules/fts (Depends-on): Add fcntl-safer.
84900         * MODULES.html.sh (File descriptor based Input/Output):
84901         Add fcntl-safer.
84902
84903 2005-08-24  Bruno Haible  <bruno@clisp.org>
84904
84905         Support for unit test modules.
84906         * modules/README: Mention tests modules.
84907         * modules/TEMPLATE-TESTS: New file.
84908         * gnulib-tool: New options --extract-tests-module, --with-tests and
84909         --tests-base (unused for the moment).
84910         (testsbase, inctests): New variables.
84911         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84912         (func_verify_module): Exclude TEMPLATE-TESTS.
84913         (func_verify_nontests_module, func_verify_tests_module): New functions.
84914         (func_get_dependencies): Add implicit dependency for tests modules.
84915         (func_get_tests_module): New function.
84916         (func_modules_transitive_closure): When --with-tests was specified,
84917         include the unit tests as well, unless explicitly avoided.
84918         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84919         (func_emit_tests_Makefile_am): New function.
84920         (func_create_testdir): When --with-tests was specified, emit a
84921         tests/ directory.
84922         * MODULES.html.sh (Future developments): Update.
84923
84924 2005-08-24  Bruno Haible  <bruno@clisp.org>
84925
84926         * modules/tls-tests: New file.
84927         * tests/test-tls.c: New file, from GNU gettext.
84928
84929 2005-08-24  Bruno Haible  <bruno@clisp.org>
84930
84931         * modules/lock-tests: New file.
84932         * tests/test-lock.c: New file, from GNU gettext.
84933
84934 2005-08-24  Bruno Haible  <bruno@clisp.org>
84935
84936         * lib/lock.h: Add multiple inclusion guard.
84937         * lib/tls.h: Add multiple inclusion guard.
84938
84939 2005-08-24  Bruno Haible  <bruno@clisp.org>
84940
84941         * gnulib-tool: Add support for the --aux-dir option to
84942         --create-testdir, --create-megatestdir, --test, --megatest.
84943         (func_create_testdir, func_create_megatestdir): Optionally emit a
84944         AC_CONFIG_AUX_DIR directive.
84945         (create-testdir, create-megatestdir, test, megatest): Provide a
84946         default value for $auxdir.
84947
84948 2005-08-24  Bruno Haible  <bruno@clisp.org>
84949
84950         * gnulib-tool (import): Use compound statement instead of subshell
84951         where possible.
84952
84953 2005-08-24  Bruno Haible  <bruno@clisp.org>
84954
84955         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84956
84957 2005-08-24  Bruno Haible  <bruno@clisp.org>
84958
84959         * gnulib-tool (func_version): Update.
84960
84961 2005-08-24  Bruno Haible  <bruno@clisp.org>
84962
84963         * gnulib-tool (func_import, func_create_testdir,
84964         func_create_megatestdir): Quote all autoconf macro arguments.
84965
84966 2005-08-24  Bruno Haible  <bruno@clisp.org>
84967
84968         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84969         option --force, because --force causes the aclocal.m4 of each
84970         subdirectory to be newer than the corresponding config.h.in.
84971
84972 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84973
84974         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84975         All contents moved to gl_REGEX.
84976         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84977         assume that it does.
84978
84979 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84980
84981         * lib/regex.h (REG_NOSYS)
84982         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84983         Define, since POSIX requires it as of 2001.
84984         (_REG_ENOSYS)
84985         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84986         New private symbol, used to keep the enum signed in all cases.
84987         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84988         Youngman in
84989         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84990
84991         * lib/regex_internal.c (re_string_skip_chars, register_state):
84992         (calc_state_hash):
84993         Remove forward decls; no longer needed now that we use prototypes.
84994         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84995         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84996         (clean_state_log_if_needed): Likewise.
84997
84998 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84999
85000         * config/srclist.txt: Add glibc bugs 1231-1233.
85001
85002 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85003
85004         Fix problems reported by Sam Steingold in
85005         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85006         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85007         assumed that reg_errcode_t is a signed type, which is not
85008         necessarily true if _XOPEN_SOURCE is not defined.
85009         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85010         since some compilers warn about it otherwise.
85011
85012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85013
85014         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85015         (init_word_char, create_initial_state, duplicate_node_closure):
85016         (fetch_token, peek_token_bracket, build_range_exp):
85017         (build_collating_symbol): Remove forward decls; no longer needed
85018         now that we use prototypes.
85019
85020         * lib/regcomp.c:
85021         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85022         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85023         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85024         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85025         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85026         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85027         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85028         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85029         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85030         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85031         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85032         (build_charclass, build_charclass_op, fetch_number, create_tree):
85033         (create_token_tree, mark_opt_subexp, duplicate_tree):
85034         Use prototypes rather than old-style definitions.
85035
85036         * lib/regex_internal.c:
85037         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85038         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85039         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85040         (re_string_reconstruct, re_string_peek_byte_case):
85041         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85042         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85043         (re_node_set_init_copy, re_node_set_add_intersect):
85044         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85045         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85046         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85047         (re_acquire_state, re_acquire_state_context, register_state):
85048         (create_ci_newstate, create_cd_newstate, free_state):
85049         Likewise.
85050         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85051         re_search_2):
85052         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85053         (re_search_internal, prune_impossible_nodes):
85054         (acquire_init_state_context, check_matching, static):
85055         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85056         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85057         (update_regs, sift_states_backward, build_sifted_states):
85058         (clean_state_log_if_needed, merge_state_array):
85059         (update_cur_sifted_state, add_epsilon_src_nodes):
85060         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85061         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85062         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85063         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85064         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85065         (check_arrival, check_arrival_add_next_nodes):
85066         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85067         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85068         (check_node_accept_bytes, check_node_accept, extend_buffers):
85069         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85070         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85071         (sift_ctx_init):
85072         Likewise.
85073
85074         * lib/regex_internal.h:
85075         (re_string_allocate, re_string_construct, re_string_reconstruct):
85076         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85077         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85078         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85079         (re_string_context_at, re_string_peek_byte_case):
85080         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85081         is defined, since we now use prototypes always.
85082
85083         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85084         C89 or better.  All uses removed.
85085
85086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85087
85088         * config/srclist.txt: Add glibc bugs 1220-1227.
85089
85090 2005-08-20  Jim Meyering  <jim@meyering.net>
85091
85092         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85093         of unused local, dfa.
85094
85095 2005-08-20  Bruno Haible  <bruno@clisp.org>
85096
85097         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85098
85099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85100
85101         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85102         (re_node_set_insert_last, re_dfa_add_node):
85103         Rename local variables to avoid GCC shadowing warnings.
85104
85105 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85108         [defined lint]: Suppress bogus uninitialized-variable warnings.
85109
85110         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85111         and let the caller return REG_ESPACE if out of space.  This
85112         removes an uninitialied-variable warning with GCC 4.0.1, and also
85113         avoids taking the address of a local variable.  All callers
85114         changed.
85115
85116 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85117
85118         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85119         $LIBCSRC/posix/regexec.c.
85120         Add glibc bug 1217 for regcomp.c.
85121
85122 2005-08-19  Jim Meyering  <jim@meyering.net>
85123
85124         * lib/regexec.c (proceed_next_node): Redo local variables to
85125         avoid GCC shadowing warnings.
85126
85127 2005-08-18  Bruno Haible  <bruno@clisp.org>
85128
85129         * lib/strstr.c (strstr): Fix return value in multibyte case.
85130         * lib/strcasestr.c (strcasestr): Likewise.
85131
85132 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85135
85136 2005-08-17  Jim Meyering  <jim@meyering.net>
85137
85138         Make the %s format (seconds since the epoch) work for a negative
85139         number and when used with a zero-padded field width, e.g. %015s.
85140
85141         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85142         label so that it precedes the code to set `digits'.  Otherwise,
85143         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85144         print `00-22'.  Now, it prints `-0022', as it should.
85145
85146 2005-08-17  Bruno Haible  <bruno@clisp.org>
85147
85148         * modules/strstr (Files): Add m4/mbrtowc.m4.
85149         (Depends-on): Add mbuiter.
85150
85151 2005-08-17  Bruno Haible  <bruno@clisp.org>
85152
85153         * modules/strcasestr: New file.
85154         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85155         strcasestr.
85156
85157 2005-08-17  Bruno Haible  <bruno@clisp.org>
85158
85159         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85160
85161 2005-08-17  Bruno Haible  <bruno@clisp.org>
85162
85163         * modules/mbuiter: New file.
85164         * MODULES.html.sh (Extended multibyte and wide character utilities):
85165         Add mbuiter.
85166
85167 2005-08-17  Bruno Haible  <bruno@clisp.org>
85168
85169         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85170         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85171
85172 2005-08-17  Bruno Haible  <bruno@clisp.org>
85173
85174         * m4/strcasestr.m4: New file.
85175
85176 2005-08-17  Bruno Haible  <bruno@clisp.org>
85177
85178         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85179         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85180
85181 2005-08-17  Bruno Haible  <bruno@clisp.org>
85182
85183         * lib/strcasestr.h: New file.
85184         * lib/strcasestr.c: New file.
85185
85186 2005-08-17  Bruno Haible  <bruno@clisp.org>
85187
85188         * lib/strcasecmp.c: Use mbuiter.h.
85189
85190 2005-08-17  Bruno Haible  <bruno@clisp.org>
85191
85192         * lib/mbuiter.h: New file.
85193
85194 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85197         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85198         and gl_GETOPT are both invoked via different paths (as happens
85199         with GNU tar CVS because it uses both argp and getopt), the former
85200         wins.
85201
85202 2005-08-16  Bruno Haible  <bruno@clisp.org>
85203
85204         * modules/tls: New file.
85205         * MODULES.html.sh (Multithreading): Add tls.
85206
85207 2005-08-16  Bruno Haible  <bruno@clisp.org>
85208
85209         * modules/strnlen1: New file.
85210         * MODULES.html.sh (String handling): Add strnlen1.
85211
85212 2005-08-16  Bruno Haible  <bruno@clisp.org>
85213
85214         * modules/strcase (Files): Add m4/mbrtowc.m4.
85215         (Depends-on): Add strnlen1, mbchar.
85216
85217 2005-08-16  Bruno Haible  <bruno@clisp.org>
85218
85219         * modules/mbiter: New file.
85220         * MODULES.html.sh (Extended multibyte and wide character utilities):
85221         Add mbiter.
85222
85223 2005-08-16  Bruno Haible  <bruno@clisp.org>
85224
85225         * modules/mbfile: New file.
85226         * MODULES.html.sh (Extended multibyte and wide character utilities):
85227         Add mbfile.
85228
85229 2005-08-16  Bruno Haible  <bruno@clisp.org>
85230
85231         * modules/mbchar: New file.
85232         * MODULES.html.sh (Extended multibyte and wide character utilities):
85233         New section.
85234
85235 2005-08-16  Bruno Haible  <bruno@clisp.org>
85236
85237         * m4/tls.m4: New file, from GNU gettext.
85238
85239 2005-08-16  Bruno Haible  <bruno@clisp.org>
85240
85241         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85242         always.
85243         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85244
85245 2005-08-16  Bruno Haible  <bruno@clisp.org>
85246
85247         * m4/mbiter.m4: New file.
85248
85249 2005-08-16  Bruno Haible  <bruno@clisp.org>
85250
85251         * m4/mbfile.m4: New file.
85252
85253 2005-08-16  Bruno Haible  <bruno@clisp.org>
85254
85255         * m4/mbchar.m4: New file.
85256
85257 2005-08-16  Bruno Haible  <bruno@clisp.org>
85258
85259         * lib/tls.h: New file, from GNU gettext.
85260         * lib/tls.c: New file, from GNU gettext.
85261
85262 2005-08-16  Bruno Haible  <bruno@clisp.org>
85263
85264         * lib/strnlen1.h: New file.
85265         * lib/strnlen1.c: New file.
85266
85267 2005-08-16  Bruno Haible  <bruno@clisp.org>
85268
85269         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85270         (mbi_init): Update.
85271         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85272         NUL byte, not after it.
85273
85274 2005-08-16  Bruno Haible  <bruno@clisp.org>
85275
85276         * lib/strcase.h (strcasecmp): Add note in comments.
85277         * lib/strncasecmp.c: Use code from strcasecmp.c.
85278         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85279         (strcasecmp): Work correctly in multibyte locales.
85280
85281 2005-08-16  Bruno Haible  <bruno@clisp.org>
85282
85283         * lib/mbiter.h: New file.
85284
85285 2005-08-16  Bruno Haible  <bruno@clisp.org>
85286
85287         * lib/mbfile.h: New file.
85288
85289 2005-08-16  Bruno Haible  <bruno@clisp.org>
85290
85291         * lib/mbchar.h: New file.
85292         * lib/mbchar.c: New file.
85293
85294 2005-08-16  Bruno Haible  <bruno@clisp.org>
85295
85296         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85297         the valid ones. Makes the comparison operations transitive:
85298         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85299         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85300
85301 2005-08-15  Simon Josefsson  <jas@extundo.com>
85302
85303         * modules/ssize_t (License): Change to 'unlimited'.
85304
85305         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85306
85307 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85308
85309         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85310         Add comments for each pending glibc patch.
85311
85312 2005-08-15  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85315         __cplusplus is defined.
85316
85317 2005-08-14  Jim Meyering  <jim@meyering.net>
85318
85319         Sync from coreutils.
85320
85321         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85322         Use the hash-table-based cycle-detection code not just when
85323         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85324         Reported by James Youngman in
85325         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85326         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85327         FTS_TIGHT_CYCLE_CHECK.
85328         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85329         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85330         once again.
85331         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85332         * lib/fts.c (fd_safer): Remove decl.
85333         Include fcntl--.h rather than unistd-safer.h
85334         (fts_safe_changedir): Don't call fd_safer; no longer needed
85335         now that we include fcntl--.h.
85336
85337 2005-08-12  Simon Josefsson  <jas@extundo.com>
85338
85339         * modules/getndelim2: Use ssize_t module.
85340         * modules/getnline: Likewise.
85341         * modules/safe-read: Likewise.
85342         * modules/xreadlink: Likewise.
85343
85344         * modules/ssize_t: New file.
85345
85346 2005-08-12  Simon Josefsson  <jas@extundo.com>
85347
85348         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85349
85350 2005-08-12  Simon Josefsson  <jas@extundo.com>
85351
85352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85353         ssize_t.
85354
85355 2005-08-12  Simon Josefsson  <jas@extundo.com>
85356
85357         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85358         readline, getdelim and check_version.
85359         (Support for systems lacking ISO C 99: Sizes of integer types):
85360         Add size_max.
85361
85362 2005-08-12  Bruno Haible  <bruno@clisp.org>
85363
85364         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85365
85366 2005-08-11  Simon Josefsson  <jas@extundo.com>
85367
85368         * modules/readline: New file.
85369
85370         * modules/strnlen (Files): Add strnlen.h.
85371
85372 2005-08-11  Simon Josefsson  <jas@extundo.com>
85373
85374         * m4/readline.m4: New file.
85375
85376 2005-08-11  Simon Josefsson  <jas@extundo.com>
85377
85378         * lib/readline.h, readline.c: New file.
85379
85380 2005-08-11  Simon Josefsson  <jas@extundo.com>
85381
85382         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85383         gl_AVOID.
85384
85385 2005-08-11  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85388
85389 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85390
85391         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85392
85393 2005-08-10  Simon Josefsson  <jas@extundo.com>
85394
85395         * tests/test-iconvme.c: New file.
85396
85397 2005-08-10  Simon Josefsson  <jas@extundo.com>
85398
85399         * m4/strnlen.m4: New file.
85400
85401         * m4/strndup.m4: Don't check for strnlen declaration, done in
85402         strnlen.m4.
85403
85404 2005-08-10  Simon Josefsson  <jas@extundo.com>
85405
85406         * lib/strndup.c: Use strnlen.h.
85407
85408         * lib/strnlen.h: New file.
85409
85410 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85411
85412         * README: Typos.
85413
85414 2005-08-02  Simon Josefsson  <jas@extundo.com>
85415
85416         * modules/readline: New file.
85417
85418 2005-08-02  Simon Josefsson  <jas@extundo.com>
85419
85420         * modules/getdelim: New file.
85421
85422         * modules/getline: Rewrite, don't use getndelim2.
85423
85424 2005-08-02  Simon Josefsson  <jas@extundo.com>
85425
85426         * m4/getline.m4: Separate out getdelim stuff into separate module.
85427
85428         * m4/getdelim.m4: New file.
85429
85430 2005-08-02  Simon Josefsson  <jas@extundo.com>
85431
85432         * lib/getline.h, getline.c: Rewrite.
85433
85434         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85435
85436 2005-07-31  Bruno Haible  <bruno@clisp.org>
85437
85438         * lib/lock.h (gl_lock_initializer): New macro.
85439         (gl_lock_define_initialized): Use it.
85440         (gl_rwlock_initializer): New macro.
85441         (gl_rwlock_define_initialized): Use it.
85442         (gl_recursive_lock_initializer): New macro.
85443         (gl_recursive_lock_define_initialized): Use it.
85444
85445 2005-07-30  Karl Berry  <karl@gnu.org>
85446
85447         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85448         Report from Ben Pfaff, regarding getopt.
85449
85450 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85451
85452         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85453         normal way.
85454         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85455         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85456         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85457         (gl_GETOPT): Use the new macros.  Most of the implementation
85458         is moved to the new macros.  This is for programs like Emacs
85459         that don't want all the functionality of gl_GETOPT.
85460
85461 2005-07-26  Bruno Haible  <bruno@clisp.org>
85462
85463         * m4/lock.m4: Update from GNU gettext.
85464
85465 2005-07-26  Bruno Haible  <bruno@clisp.org>
85466
85467         * lib/lock.h: Update from GNU gettext.
85468         * lib/lock.c: Update from GNU gettext.
85469
85470 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85473         obsolescent AC_TRY_RUN.  Include the default includes files, for
85474         'exit'.
85475
85476 2005-07-24  Bruno Haible  <bruno@clisp.org>
85477
85478         * modules/visibility: New file.
85479         * MODULES.html.sh (Misc): Add visibility.
85480
85481 2005-07-24  Bruno Haible  <bruno@clisp.org>
85482
85483         * m4/visibility.m4: New file.
85484
85485 2005-07-24  Bruno Haible  <bruno@clisp.org>
85486
85487         * doc/visibility.texi: New file.
85488
85489 2005-07-22  Bruno Haible  <bruno@clisp.org>
85490
85491         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85492         $(ALLOCA_H), redundant through BUILT_SOURCES.
85493         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85494         redundant through BUILT_SOURCES.
85495         * modules/byteswap (Makefile.am): Remove explicit dependency on
85496         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85497         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85498         $(FNMATCH_H), redundant through BUILT_SOURCES.
85499         * modules/getopt (Makefile.am): Remove explicit dependency on
85500         $(GETOPT_H), redundant through BUILT_SOURCES.
85501         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85502         redundant through BUILT_SOURCES.
85503         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85504         redundant through BUILT_SOURCES.
85505         * modules/stdbool (Makefile.am): Remove explicit dependency on
85506         $(STDBOOL_H), redundant through BUILT_SOURCES.
85507         * modules/stdint (Makefile.am): Remove explicit dependency on
85508         $(STDINT_H), redundant through BUILT_SOURCES.
85509         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85510         Remove explicit dependency on $(SYSEXITS_H).
85511         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85512
85513 2005-07-18  Simon Josefsson  <jas@extundo.com>
85514
85515         * lib/check-version.c (check_version): Accept identical versions too.
85516
85517 2005-07-18  Bruno Haible  <bruno@clisp.org>
85518
85519         * modules/lock: New file.
85520         * MODULES.html.sh (Multithreading): New section.
85521
85522 2005-07-18  Bruno Haible  <bruno@clisp.org>
85523
85524         * m4/lock.m4: New file, from GNU gettext.
85525
85526 2005-07-18  Bruno Haible  <bruno@clisp.org>
85527
85528         * lib/lock.h: New file, from GNU gettext.
85529         * lib/lock.c: New file, from GNU gettext.
85530
85531 2005-07-18  Bruno Haible  <bruno@clisp.org>
85532
85533         * lib/lock.h (gl_once_t): New type.
85534         (gl_once_define, gl_once): New macros.
85535         * lib/lock.c (fresh_once): New variable.
85536         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85537         functions.
85538
85539 2005-07-16  Simon Josefsson  <jas@extundo.com>
85540
85541         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85542         workaround, suggested by Bruno.
85543
85544 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * modules/xalloc (Depends-on): Add xalloc-die.
85547         * modules/xvasprintf (Depends-on): Add xalloc-die.
85548
85549 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85552         with a minor change.
85553
85554 2005-07-15  Bruno Haible  <bruno@clisp.org>
85555
85556         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85557         When using lib/poll.c, define poll as rpl_poll.
85558
85559 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85560
85561         * modules/argp (Depends-on): Remove unlocked-io.
85562
85563 2005-07-14  Derek Price  <derek@ximbiot.com>
85564
85565         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85566         for glob symlink bug.
85567
85568 2005-07-14  Bruno Haible  <bruno@clisp.org>
85569
85570         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85571         Instead, test for *_unlocked function declarations directly.
85572
85573 2005-07-11  Simon Josefsson  <jas@extundo.com>
85574
85575         * modules/size_max: New file.
85576
85577         * modules/xsize: Depend on size_max module for size_max.m4.
85578
85579 2005-07-11  Simon Josefsson  <jas@extundo.com>
85580
85581         * lib/size_max.h: New file.
85582
85583 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85584
85585         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85586         copyright symbol and the year.
85587         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85588         (version_etc_va): Use parameterized copyright notice.
85589         Reword to conform to the current GNU coding standards.
85590
85591 2005-07-11  Karl Berry  <karl@gnu.org>
85592
85593         * doc/gnulib.texi (Quoting): new node.
85594         (Initial import): more info, from Patrice.
85595
85596 2005-07-11  Bruno Haible  <bruno@clisp.org>
85597
85598         * gnulib-tool (func_usage): Document option --avoid.
85599         (Command line options): Handle --avoid.
85600         (func_acceptable): New function.
85601         (func_modules_transitive_closure): Use it.
85602
85603 2005-07-11  Bruno Haible  <bruno@clisp.org>
85604
85605         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85606         Reported by Jim Meyering.
85607
85608 2005-07-10  Bruno Haible  <bruno@clisp.org>
85609
85610         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85611         Needed when size_t is smaller than 'unsigned int'.
85612         Reported by Paul Eggert.
85613
85614 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85615
85616         * modules/argp (Depends-on): Add unlocked-io
85617
85618 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85619
85620         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85621         block of defines.
85622
85623 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85626         fix now.
85627
85628 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85629         and Paul Eggert  <eggert@cs.ucla.edu>
85630
85631         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85632         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85633
85634 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * modules/regex (Files): Add lib/regex_internal.c,
85637         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85638         (Depends-on): Add extensions.
85639         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85640
85641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85642
85643         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85644         pathconf.
85645         * m4/same.m4 (gl_SAME): Likewise.
85646         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85647
85648         * m4/regex.m4: Adjust to new libc regex implementation.
85649         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85650         all the .c and .h parts of (the new) regex.
85651         Quote the m4 stuff better.
85652         Check for RE_ICASE bug of old gnulib.
85653         Check for REG_STARTEND of recent libc.
85654         Rename local variables from jm_* to gl_*.
85655         Quote operand of "test -f".
85656         Say "recent enough" version of libc, not "version 2".
85657         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85658         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85659         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85660         Remove check for btowc, isascii.
85661         Require AM_LANGINFO_CODESET.
85662
85663 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85664
85665         * lib/regex.c, regex.h: Sync from libc.
85666         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85667         * lib/regexec.c:
85668         New files, synced from libc, except that regex_internal.h
85669         currently has a small porting fix.
85670
85671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85672
85673         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85674         regex_internal.c, regexec.c.
85675         Add regex_internal.h too, but as a comment, since the libc version
85676         is currently broken in gnulib mode.
85677
85678 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         Support programs like Emacs that use gnulib but not gettext.
85681         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85682         * modules/gettext-h: New file.
85683         * modules/gettext (Files): Remove lib/gettext.h.
85684         (Depends-on): Add gettext-h.
85685         (Makefile.am): Remove lib_SOURCES.
85686         * modules/argmatch, modules/c-stack, modules/closeout:
85687         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85688         * modules/execute, modules/file-type, modules/getaddrinfo:
85689         * modules/getopt, modules/human, modules/javacomp:
85690         * modules/javaexec, modules/mkdir-p, modules/obstack:
85691         * modules/openat, modules/pagealign_alloc, modules/pipe:
85692         * modules/quotearg, modules/regex, modules/rpmatch:
85693         * modules/unicodeio, modules/userspec, modules/version-etc:
85694         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85695         * modules/xsetenv:
85696         Depend on gettext-h, not gettext.
85697
85698 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85699
85700         * gnulib-tool (func_import): Add support for 'public domain' license.
85701         * modules/alloca, modules/atexit, modules/memmove:
85702         Now public domain, not GPL.
85703         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85704         * modules/realloc, modules/strerror, modules/strtod:
85705         Now LGPL, not GPL.
85706
85707 2005-07-05  Bruno Haible  <bruno@clisp.org>
85708
85709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85710         autoconf CVS. Needed for mingw.
85711
85712 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         Remove the dependency of the strftime module on the tzset module.
85715         * modules/strftime (Depends-on): Remove dependency on tzset.
85716
85717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85718
85719         Remove the dependency of the strftime module on the tzset module.
85720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85721         gl_FUNC_TZSET_CLOBBER.
85722
85723 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85724
85725         Remove the dependency of the strftime module on the tzset module.
85726         * lib/strftime.c (my_strftime)
85727         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85728         Copy the input structure, to work around some of the bug with
85729         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85730         Solaris releases, you should also use the tzset module, but we won't
85731         require it as a dependency any more since we don't want LGPLed code
85732         to depend on GPLed code.
85733
85734 2005-07-02  Jim Meyering  <jim@meyering.net>
85735
85736         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85737         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85738         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85739         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85740
85741 2005-07-02  Jim Meyering  <jim@meyering.net>
85742
85743         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85744
85745 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85748         declares only 'struct timespec;' (!).
85749
85750 2005-07-01  Jim Meyering  <jim@meyering.net>
85751
85752         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85753         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85754         * lib/save-cwd.c, tempname.c:
85755         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85756         and don't include <sys/file.h>).
85757
85758 2005-06-29  Jim Meyering  <jim@meyering.net>
85759
85760         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85761         type name.  Use the variable name instead.
85762         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85763         Likewise.
85764
85765 2005-06-28  Simon Josefsson  <jas@extundo.com>
85766
85767         * modules/check-version (Files): Add check-version.m4.
85768
85769 2005-06-28  Simon Josefsson  <jas@extundo.com>
85770
85771         * m4/check-version.m4: New file, suggested by Jim Meyering
85772         <jim@meyering.net>.
85773
85774 2005-06-28  Simon Josefsson  <jas@extundo.com>
85775
85776         * lib/check-version.h, lib/check-version.c: New files.
85777
85778 2005-06-28  Simon Josefsson  <jas@extundo.com>
85779
85780         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85781         collision with global variable.  Better indentation.  Don't
85782         increment buffer pointer beyond buffer end.  Based on comments
85783         from Paul Eggert <eggert@cs.ucla.edu>.
85784
85785         * lib/base64.h: Indent.
85786
85787 2005-06-28  Simon Josefsson  <jas@extundo.com>
85788
85789         * doc/gnulib.texi (Library version handling): New section.
85790
85791 2005-06-28  Jim Meyering  <jim@meyering.net>
85792
85793         * check-module (find_included_lib_files): Hard-code another
85794         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85795         but modules/fts-lgpl (correctly) does not list those files.
85796
85797         * modules/canonicalize (Files): Add lib/pathmax.h.
85798
85799 2005-06-25  Simon Josefsson  <jas@extundo.com>
85800
85801         * modules/check-version: New file.
85802
85803 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85806         initializer of struct addrinfo, as an indication that we don't
85807         care how many members the structure has.
85808
85809 2005-06-24  Derek Price  <derek@ximbiot.com>
85810         and Bruno Haible  <bruno@clisp.org>
85811
85812         Remove stat module & update lstat.
85813         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85814         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85815         * m4/stat.m4: Remove this file.
85816
85817 2005-06-24  Derek Price  <derek@ximbiot.com>
85818         and Bruno Haible  <bruno@clisp.org>
85819
85820         Remove stat module & update lstat.
85821         * lib/stat.c: Remove this file...
85822         (slash_aware_lstat): ...moving this content and its support...
85823         * lib/lstat.c (rpl_lstat): ...into here.
85824         * lib/lstat.h: New file.
85825
85826 2005-06-24  Derek Price  <derek@ximbiot.com>
85827         and Bruno Haible  <bruno@clisp.org>
85828
85829         Remove stat module & update lstat.
85830         * config/srclist.txt (libc sources): Remove stat.
85831
85832 2005-06-24  Derek Price  <derek@ximbiot.com>
85833         and Bruno Haible  <bruno@clisp.org>
85834
85835         Remove stat module & update lstat.
85836         * MODULES.html.sh (stat): Remove.
85837         * MODULES.html: Regenerated.
85838         * modules/lstat (Description): Correct function name.
85839         (Files): Add "lstat.h".
85840         (Depends-on): Remove stat, add xalloc, stat-macros.
85841         * modules/stat: Remove this file.
85842         (Include): Add "lstat.h", remove <sys/stat.h>.
85843
85844 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85847         (ranged_convert): Don't save conversion in a temporary struct.
85848         This causes a warning with GCC 4.0.0, and anyway in the typical
85849         case it's not worth the extra 100 bytes or so of code.
85850         (ranged_convert, __mktime_internal): When calling a function via a
85851         pointer P, use P () rather than (*P) (), as we now assume C89 or
85852         better.
85853
85854 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85855
85856         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85857         "who -r" failed to give output.  Problem reported by Tim Waugh.
85858
85859         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85860         (xcalloc): Use it to avoid needless tests.
85861         Problem reported by Jim Meyering.
85862
85863 2005-06-20  Derek Price  <derek@ximbiot.com>
85864
85865         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85866         unnecessary for Autoconfs > 2.59c.
85867
85868 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85869
85870         * lib/argp.h (__option_is_short): Check upper limit of
85871         __key. Isprint() requires its argument to have the value
85872         of an unsigned char or EOF.
85873
85874 2005-06-16  Jim Meyering  <jim@meyering.net>
85875
85876         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85877         when either N or S is zero.
85878
85879 2005-06-16  Derek Price  <derek@ximbiot.com>
85880
85881         * m4/bison.m4: Declare YACC & YFLAGS precious.
85882
85883 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85886         multibyte string or pattern, fall back on unibyte matching.
85887         Problem reported by James Youngman.
85888
85889 2005-06-08  Bruno Haible  <bruno@clisp.org>
85890
85891         * modules/csharpcomp: New file.
85892         * MODULES.html.sh (C#): Add csharpcomp.
85893
85894 2005-06-08  Bruno Haible  <bruno@clisp.org>
85895
85896         * m4/csharpcomp.m4: New file, from GNU gettext.
85897
85898 2005-06-08  Bruno Haible  <bruno@clisp.org>
85899
85900         * lib/csharpcomp.h: New file, from GNU gettext.
85901         * lib/csharpcomp.c: New file, from GNU gettext.
85902         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85903
85904 2005-06-08  Bruno Haible  <bruno@clisp.org>
85905
85906         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85907         warning on mingw.
85908
85909 2005-06-07  Derek Price  <derek@ximbiot.com>
85910
85911         Sync from CVS.
85912         * lib/glob_.h: Indent nested #ifdef.
85913
85914 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85915
85916         Sync from coreutils.
85917         Use "file name" when talking about file names, instead of "filename"
85918         or "path", as per the GNU coding standards.
85919         * lib/mkdir-p.c: Renamed from makepath.c.
85920         (make_dir_parents): Renamed from make_path.  All callers changed.
85921         * lib/mkdir-p.h: Likewise.  All includers changed.
85922         * lib/filenamecat.c: Renamed from path-concat.c.
85923         (file_name_concat): Renamed from path_concat.  All callers changed.
85924         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85925         * lib/filenamecat.h: Likewise.  All includers changed.
85926         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85927         in comments or local variable names.
85928         * lib/basename.c: Likewise.
85929         * lib/canonicalize.c, canonicalize.h: Likewise.
85930         * lib/dirname.c, dirname.h: Likewise.
85931         * lib/euidaccess.c: Likewise.
85932         * lib/exclude.c: Likewise
85933         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85934         * lib/fsusage.c, fsuage.h: Likewise.
85935         * lib/fts.c, fts_.h: Likewise.
85936         * lib/getcwd.c: Likewise.
85937         * lib/getloadavg.c: Likewise.
85938         * lib/mkstemp.c: Likewise.
85939         * lib/mountlist.c, mountlist.h: Likewise.
85940         * lib/openat.c, openat.h: Likewise.
85941         * lib/readlink-stub.c: Likewise.
85942         * lib/readutmp.c, readutmp.h: Likewise.
85943         * lib/rename.c: Likewise.
85944         * lib/rmdir.c: Likewise.
85945         * lib/same.c: Likewise.
85946         * lib/savedir.c: Likewise.
85947         * lib/stripslash.c: Likewise.
85948         * lib/tempname.c: Likewise.
85949         * lib/xreadlink.c: Likewise.
85950         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85951         All uses changed.
85952         * lib/exclude.h: Likewise.
85953
85954         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85955         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85956         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85957         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85958         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85959         files have been getting away with it for years (MORE/BSD 4.3
85960         is extinct now).
85961         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85963
85964         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85965         Define to 256, not 255, as per modern POSIX.
85966
85967 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85968
85969         Sync from coreutils.
85970         Use "file name" when talking about file names, instead of "filename"
85971         or "path", as per the GNU coding standards.
85972         * MODULES.html.sh: mkdir-p renamed from makepath.
85973         filenamecat renamed from path-concat.
85974         * modules/filenamecat: Renamed from modules/path-concat.
85975         (Files): filenamecat.h and filenamecat.c renamed from
85976         path-concat.h and path-concat.c.
85977         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85978         (Include): filenamecat.h, not path-concat.h.
85979         * modules/mkdir-p: Renamed from modules/makepath.
85980         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85981         makepath.c.
85982         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85983         (Include): mkdir-p.h, not makepath.h.
85984
85985 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85986
85987         Sync from coreutils.
85988         * m4/mkdir-p.m4: Renamed from makepath.m4.
85989         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85990         Rename files from makepath.c to mkdir-p.c, and from
85991         makepath.h to mkdir-p.h.
85992         * m4/filenamecat.m4: Renamed from path-concat.m4.
85993         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85994         Rename files from path-concat.c to filenamecat.c,
85995         and from path-concat.h to filenamecat.h.
85996         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85997         "file name" in local variables or comments.
85998         * m4/rename.m4: Likewise.
85999
86000 2005-06-01  Bruno Haible  <bruno@clisp.org>
86001
86002         * modules/csharpexec: New file.
86003         * MODULES.html.sh (C#): New section.
86004
86005 2005-06-01  Bruno Haible  <bruno@clisp.org>
86006
86007         * m4/csharp.m4: New file, from GNU gettext.
86008         * m4/csharpexec.m4: New file, from GNU gettext.
86009
86010 2005-06-01  Bruno Haible  <bruno@clisp.org>
86011
86012         * lib/csharpexec.h: New file, from GNU gettext.
86013         * lib/csharpexec.c: New file, from GNU gettext.
86014         * lib/csharpexec.sh.in: New file, from GNU gettext.
86015
86016 2005-05-31  Derek Price  <derek@ximbiot.com>
86017             Paul Eggert  <eggert@cs.ucla.edu>
86018
86019         Sync from cvs.
86020         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86021
86022 2005-05-31  Derek Price  <derek@ximbiot.com>
86023             Paul Eggert  <eggert@cs.ucla.edu>
86024
86025         Sync from cvs.
86026         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86027
86028 2005-05-29  Derek Price  <derek@ximbiot.com>
86029
86030         * config/srclist.txt (glob_.h, glob.c): Add these files.
86031
86032 2005-05-29  Derek Price  <derek@ximbiot.com>
86033
86034         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86035         * modules/glob: New file.
86036         * modules/getlogin_r: Add link to POSIX spec in description.
86037
86038 2005-05-29  Derek Price  <derek@ximbiot.com>
86039             Paul Eggert  <eggert@cs.ucla.edu>
86040
86041         * m4/glob.m4: New file.
86042
86043 2005-05-29  Derek Price  <derek@ximbiot.com>
86044             Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * lib/glob_.h, lib/glob.c: New files.
86047
86048 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86049
86050         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86051         * modules/fts-lgpl (Depends-on): Remove gettext.
86052
86053 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86054
86055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86056         and don't require gt_INTTYPES_PRI.
86057
86058 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86059
86060         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86061
86062         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86063         the configuration hassle isn't worth it.
86064         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86065         (LONGEST_MODIFIER, PRIuMAX): Remove.
86066
86067 2005-05-27  Bruno Haible  <bruno@clisp.org>
86068
86069         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86070
86071 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86072
86073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86074         _POSIX_PTHREAD_SEMANTICS for Solaris.
86075
86076 2005-05-25  Derek Price  <derek@ximbiot.com>
86077
86078         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86079
86080 2005-05-25  Derek Price  <derek@ximbiot.com>
86081             Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86084         * lib/getlogin_r.c, getlogin_r.h: New files.
86085
86086 2005-05-25  Bruno Haible  <bruno@clisp.org>
86087             Derek Price  <derek@ximbiot.com>
86088
86089         * lib/getlogin_r.h: Simplify API documentation.
86090
86091 2005-05-23  Derek Price  <derek@ximbiot.com>
86092
86093         * modules/minmax (Files): Add m4/minmax.m4.
86094         (configure.ac): Add gl_MINMAX.
86095
86096 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86099         so that unistd-safer.h (GPL'ed code) need not be included.
86100
86101 2005-05-22  Bruno Haible  <bruno@clisp.org>
86102
86103         * m4/minmax.m4: New file.
86104         Based on a patch by Derek Price <derek@ximbiot.com>.
86105
86106 2005-05-22  Bruno Haible  <bruno@clisp.org>
86107
86108         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86109         (INT64_MIN): Fix definition.
86110         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86111
86112         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86113         NEED_SIGNED_INT_TYPES.
86114
86115         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86116         HAVE_SYSTEM_INTTYPES.
86117
86118 2005-05-22  Bruno Haible  <bruno@clisp.org>
86119
86120         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86121         Also include <sys/param.h> if it defines MIN, MAX.
86122         Based on a patch by Derek Price <derek@ximbiot.com>.
86123
86124 2005-05-21  Jim Meyering  <jim@meyering.net>
86125
86126         * modules/fts (Files): Add m4/inttypes-pri.m4.
86127         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86128
86129 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         New fts module.
86132         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86133         (setup_dir, free_dir): New functions.
86134         (enter_dir, leave_dir): Define trivial
86135         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86136         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86137         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86138         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86139         Move to fts-cycle.c.
86140         (fts_open): Use setup_dir.
86141         (fts_close): Use free_dir.
86142         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86143         This adds a label and some gotos, but the alternatives were messier.
86144         Check for memory allocation failure when entering a dir.
86145         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86146         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86147         (FTS): New member fts_cycle, that is a union that contains the
86148         old active_dir_ht and cycle_state.  All uses changed to mention
86149         fts_cycle.ht and fts_cycle.state.
86150         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86151         fts.c, with the following changes:
86152         (setup_dir, free_dir): New functions.
86153         (enter_dir): Now returns bool.  Return true if successful, false
86154         if memory exhausted.  All callers changed.
86155         Do not bother partly cleaning up on
86156         memory allocation failure; that is free_dir's job.
86157         However, free ad if hash_insert fails, to avoid memory leak.
86158         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86159         fts->fts_options to see which union member to use.
86160
86161 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86162
86163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86164         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86165
86166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86167
86168         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86169
86170 2005-05-20  Jim Meyering  <jim@meyering.net>
86171
86172         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86173         Now a macro, to pacify GCC.
86174
86175 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86176
86177         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86178         of -1.
86179
86180 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86181
86182         * lib/chown.c (rpl_chown): Return -1 on failure.
86183
86184 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86185
86186         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86187         Don't check for stddef.h.
86188         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86189         don't use its results.
86190         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86191         since we include them unconditionally.  Don't require
86192         AM_STDBOOL_H, since stdbool is a prerequisite.
86193         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86194         since we assume C89 or better.
86195         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86196         as we don't use their results.
86197         Don't check for fchdir, memmove, memset, strrchr, as we use
86198         them unconditionally.
86199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86200         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86201
86202 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86203
86204         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86205         Include <stddef.h> unconditionally, since we assume C89 now.
86206         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86207         * lib/fts.c: Include fts_.h first, to check interface.
86208         Do not include intprops.h; no longer needed.
86209         Include cycle-check.h and hash.h, since fts_.h no longer does.
86210         Remove unnecessary casts of closedir to void.
86211         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86212         decide whether to decrement nlinks.
86213         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86214         (FTS): Use struct hash_table * instead of Hash_table, so that
86215         we no longer need to include hash.h here.
86216
86217 2005-05-18  Jim Meyering  <jim@meyering.net>
86218
86219         * modules/dirfd (License): Change to LGPL.  Most of the code
86220         is already in the public domain.
86221
86222 2005-05-18  Jim Meyering  <jim@meyering.net>
86223
86224         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86225         Reported by Yoann Vandoorselaere.
86226
86227 2005-05-17  Jim Meyering  <jim@meyering.net>
86228
86229         * m4/fts.m4: New file, from coreutils.
86230
86231 2005-05-17  Jim Meyering  <jim@meyering.net>
86232
86233         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86234
86235 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86236
86237         Sync from coreutils.
86238         * m4/unlinkdir.m4: New file.
86239
86240 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         Sync from coreutils.
86243         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86244         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86245         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86246         White space changes only.
86247         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86248         special.
86249         * lib/yesno.c: Include getline.h, not ctype.h.
86250         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86251         Use getline to remove arbitrary restriction on response length.
86252
86253 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86254
86255         * config/srclist-update: Spell out "Street" in FSF postal
86256         mail address; this is the style the FSF seems to prefer.
86257
86258         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86259         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86260         this updates FSF postal mail address.
86261
86262         Sync from coreutils.
86263         * modules/unlinkdir: New file.
86264         * modules/yesno (Depends-on): Add getline.
86265         * MODULES.html.sh (File system functions): Add unlinkdir.
86266
86267 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86268
86269         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86270         lib/strsep.h:
86271         Change the initial comment to refer to GPL, not LGPL.
86272         gnulib-tool will change it to LGPL as needed.
86273
86274         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86275         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86276         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86277         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86278         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86279         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86280         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86281         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86282         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86283         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86284         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86285         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86286         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86287         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86288         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86289         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86290         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86291         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86292         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86293         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86294         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86295         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86296         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86297         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86298         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86299         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86300         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86301         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86302         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86303         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86304         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86305         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86306         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86307         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86308         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86309         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86310         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86311         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86312         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86313         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86314         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86315         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86316         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86317         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86318         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86319         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86320         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86321         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86322         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86323         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86324         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86325         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86326         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86327         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86328         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86329         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86330         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86331         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86332         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86333         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86334         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86335         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86336         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86337         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86338         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86339         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86340         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86341         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86342         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86343         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86344         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86345         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86346         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86347         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86348         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86349         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86350         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86351         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86352         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86353         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86354         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86355         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86356         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86357         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86358         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86359         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86360         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86361         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86362         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86363         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86364         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86365         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86366         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86367         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86368         lib/yesno.c, lib/yesno.h:
86369         Update FSF postal mail address.
86370
86371 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86372
86373         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86374         tests/test-memmem.c, tests/test-stpncpy.c:
86375         Update FSF postal mail address.
86376
86377 2005-05-13  Bruno Haible  <bruno@clisp.org>
86378
86379         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86380         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86381         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86382         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86383         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86384         Add support for 64-bit integers in the MSVC compiler.
86385
86386 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86387
86388         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86389
86390 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86391
86392         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86393
86394 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86395
86396         * doc/getdate.texi (General date syntax): Don't say that date
86397         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86398         Problem reported by Nic Ferrier.
86399
86400 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86401
86402         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86403         specified in ai_socktype. Fix invalid ai_protocol
86404         check. ai_protocol is usually set to 0 or depending on
86405         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86406         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86407         ai_socktype / ai_protocol in the returned addrinfo structure.
86408
86409 2005-05-10  Simon Josefsson  <jas@extundo.com>
86410
86411         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86412         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86413
86414 2005-05-10  Karl Berry  <karl@gnu.org>
86415
86416         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86417         (from http://www.gnu.org/licenses).
86418         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86419         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86420         fdl.texi suffices.
86421
86422 2005-05-10  Karl Berry  <karl@gnu.org>
86423
86424         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86425         (COPYING.DOC): remove.
86426
86427         * config/srclist-update: new FSF address.
86428
86429 2005-05-10  Derek Price  <derek@ximbiot.com>
86430
86431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86432         possible.
86433
86434 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86435             Bruno Haible  <bruno@clisp.org>
86436
86437         * modules/inet_ntop: New file.
86438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86439         inet_ntop.
86440
86441 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86442             Bruno Haible  <bruno@clisp.org>
86443
86444         * m4/inet_ntop.m4: New file.
86445
86446 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86447             Bruno Haible  <bruno@clisp.org>
86448
86449         * lib/inet_ntop.h: New file.
86450         * lib/inet_ntop.c: New file, from glibc with modifications.
86451
86452 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86453
86454         * modules/time_r (License): Change to LGPL.
86455         * modules/extensions (License): Change to LGPL.  Actually,
86456         the license is more permissive than that, but currently gnulib-tool
86457         doesn't know how to handle more-permissive licenses.
86458
86459         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86460         Problem reported by Dave Love.
86461
86462 2005-05-08  Jim Meyering  <jim@meyering.net>
86463
86464         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86465         blank.
86466
86467 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         * modules/argmatch (Depends-on): Add stdbool.
86470         * modules/backupfile (Depends-on): Likewise.
86471         * modules/chdir-long (Depends-on): Likewise.
86472         * modules/closeout (Depends-on): Likewise.
86473         * modules/cycle-check (Depends-on): Likewise.
86474         * modules/dirname (Depends-on): Likewise.
86475         * modules/fnmatch (Depends-on): Likewise.
86476         * modules/fsusage (Depends-on): Likewise.
86477         * modules/fwriteerror (Depends-on): Likewise.
86478         * modules/getcwd (Depends-on): Likewise.
86479         * modules/getloadavg (Depends-on): Likewise.
86480         * modules/hard-locale (Depends-on): Likewise.
86481         * modules/makepath (Depends-on): Likewise.
86482         * modules/mountlist (Depends-on): Likewise.
86483         * modules/nanosleep (Depends-on): Likewise.
86484         * modules/posixtm (Depends-on): Likewise.
86485         * modules/quotearg (Depends-on): Likewise.
86486         * modules/readtokens (Depends-on): Likewise.
86487         * modules/readtokens0 (Depends-on): Likewise.
86488         * modules/readutmp (Depends-on): Likewise.
86489         * modules/save-cwd (Depends-on): Likewise.
86490         * modules/strftime (Depends-on): Likewise.
86491         * modules/userspec (Depends-on): Likewise.
86492         * modules/utimecmp (Depends-on): Likewise.
86493         * modules/xgetcwd (Depends-on): Likewise.
86494         * modules/xnanosleep (Depends-on): Likewise.
86495         * modules/xstrtod (Depends-on): Likewise.
86496         * modules/yesno (Depends-on): Likewise.
86497
86498 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86499
86500         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86501         needless checks.
86502
86503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86504
86505         Merge from coreutils.  Among other things,
86506         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86507         * lib/fd-safer.c: New file.
86508         * lib/fcntl-safer.h, open-safer.c: Remove.
86509         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86510         * lib/dup-safer.c: Include unistd-safer.h first.
86511         Don't include errno.h.
86512         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86513         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86514         * lib/file-type.c: Rely on file-type.h change.
86515         * lib/getloadavg.c: Include unistd-safer.h.
86516         (getloadavg): Use safer open.
86517         * lib/getusershell.c: Include "stdio-safer.h".
86518         (getusershell): Use safer fopen.
86519         * lib/long-options.c (long_options): Use NULL rather than 0.
86520         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86521         'free'.
86522         * lib/modechange.c: Likewise.
86523         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86524         (MODE_DONE): New constant.
86525         (struct mode_change): Remove 'next' member.
86526         (make_node_op_equals): New function; like the old one of the
86527         same name, except it allocates an array.
86528         (mode_compile, mode_create_from_ref): Use it.
86529         (mode_compile): Allocate result as an array, not a linked list.
86530         Parse octal string ourself, so that we catch mistakes like "+0".
86531         (mode_adjust): Arg is an array, not a linked list.
86532         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86533         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86534         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86535         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86536         Remove.  This is now stat-macros.h's job.
86537         (talloc): Remove.  All callers replaced by xalloc, so that
86538         our invokers don't have to worry about reporting memory failures.
86539         (make_node_op_equals): Remove.
86540         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86541         New constants.
86542         (struct mode_change): Moved here from modechange.h.
86543         (mode_append_entry): Remove.
86544         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86545         apps to have incorrect behavior.  Use simpler algorithm for head
86546         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86547         Detect more invalid usages rather than having somewhat-random behavior.
86548         Don't insert an "a=" action, as that leads to incorrect behavior.
86549         (mode_compile, mode_create_from_ref): Return NULL on error instead
86550         of an enum, since now there's only one way to have an error.  All
86551         callers changed.
86552         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86553         at the correct time.  Simplify calculation of "+u" and its ilk.
86554         Don't mishandle "+X".
86555         (mode_free): Remove "register" and localize decls.
86556         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86557         (struct mode_change): Move to modechange.c; callers don't
86558         need to see this stuff.
86559         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86560         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86561         (mode_change, mode_adjust): Reflect the new signatures noted above.
86562         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86563         that might redefine system include files.
86564         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86565         (my_usleep): Use NULL rather than (void *) 0.
86566         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86567         Use siginterrupt to specify that system calls should be interrupted.
86568         (rpl_nanosleep): Move initialization of suspended closer to call of
86569         my_usleep.
86570         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86571         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86572         (desirable_utmp_entry): New function.
86573         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86574         using x2nrealloc, to simplify logic.
86575         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86576         size calculation.  Do not assume utmp file is a regular file.
86577         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86578         (READ_UTMP_CHECK_PIDS): New constant.
86579         * lib/save-cwd.c: Include unistd-safer.h.
86580         (save_cwd): Use fd_safer.
86581         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86582         [!_LIBC] Include "stat-macros.h" instead.
86583         * lib/unistd-safer.h (fd_safer): New decl.
86584
86585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86586
86587         * modules/getloadavg (Depends-on): Add unistd-safer.
86588         * modules/getusershell (Depends-on): Add stdio-safer.
86589         * modules/lstat (Depends-on): Remove xalloc.
86590         * modules/mkstemp (Depends-on): Add stat-macros.
86591         * modules/modechange (Depends-on): Remove xstrtol.
86592         Add stat-macros, xalloc.
86593         * modules/save-cwd (Depends-on): Add unistd-safer.
86594         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86595         * modules/unistd-safer (Files): Add lib/fd-safer.c
86596         (Makefile.am): Remove lib_SOURCES.
86597
86598         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86599         Remove fcntl-safer; unistd-safer supersedes it.
86600
86601 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86602
86603         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86604         AC_HEADER_STAT.
86605         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86606         (gl_PREREQ_CHOWN): Remove.
86607         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86608         it.  Don't require AC_HEADER_STAT.
86609         (gl_PREREQ_LSTAT): Remove.
86610         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86611         Don't require AC_HEADER_STAT.
86612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86613         (gl_PREREQ_RMDIR): Remove.
86614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86615         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86616         the stat-macros module a prerequisite.
86617         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86618         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86619         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86620         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86621         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86622         variable names.
86623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86624         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86625         variable prefixes.
86626         * m4/fcntl-safer.m4: Remove.
86627         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86628         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86629         Invoke gl_PREREQ_FD_SAFER.
86630         (gl_PREREQ_FD_SAFER): New macro.
86631         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86632         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86633         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86634         Remove duplicate call to AC_LIBOBJ(readutmp).
86635         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86636
86637         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86638         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86639
86640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86641
86642         * MODULES.html.sh (Misc): Add byteswap.
86643
86644 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86645
86646         * modules/getcwd (Depends-on): Add extensions.
86647         * modules/openat (Depends-on): Likewise.
86648
86649 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86650
86651         * modules/byteswap: New file.
86652
86653 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86654
86655         * m4/byteswap.m4: New file.
86656
86657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86658
86659         * lib/byteswap_.h: New file.
86660
86661 2005-04-25  Karl Berry  <karl@gnu.org>
86662
86663         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86664
86665 2005-04-25  Albert Chin  <china@thewrittenword.com>
86666
86667         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86668         Toolkit C bug.
86669
86670 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86671
86672         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86673         (func_ln_if_changed): Remove forcibly for no error message
86674         in case file does not exist.
86675
86676 2005-04-19  Simon Josefsson  <jas@extundo.com>
86677
86678         * gnulib-tool (Options): Make --symlink mean --symbolic.
86679
86680 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86681
86682         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86683
86684 2005-04-16  Simon Josefsson  <jas@extundo.com>
86685
86686         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86687
86688 2005-04-15  Simon Josefsson  <jas@extundo.com>
86689
86690         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86691
86692 2005-04-15  Simon Josefsson  <jas@extundo.com>
86693
86694         * gnulib-tool: Rename --symlink to --symbolic.
86695
86696 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86697
86698         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86699         symbolic links to files instead of copying/moving.  Add --aux-dir,
86700         specifying directory relative --dir where auxiliary build tools
86701         are placed.
86702
86703 2005-04-14  Bruno Haible  <bruno@clisp.org>
86704
86705         * modules/allocsa (License): Change to LGPL.
86706         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86707
86708 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86709
86710         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86711         that "UTC +1 second" continues to work.  Problem reported
86712         by Dmitry V. Levin.
86713         (relunit_snumber): New rule.
86714         (relunit): Use it.
86715
86716 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86717
86718         * lib/getdate.y (universal_time_zone_table): New constant.
86719         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86720         universal_time_zone_table.
86721         (lookup_zone): Prefer universal_time_zone_table to
86722         local_time_zone_table, so that "GMT" time stamps are allowed in
86723         London during the summer.  Problem reported by Ian Abbott.
86724
86725 2005-04-12  Jim Meyering  <jim@meyering.net>
86726
86727         * lib/human.c (humblock): Set *options even when returning due to
86728         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86729         warning from gcc-4.
86730
86731 2005-04-09  Jim Meyering  <jim@meyering.net>
86732
86733         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86734         -Wuninitialized: initialize tm0.tm_year.
86735
86736 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86737
86738         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86739         count, since there's no maximum.  All uses changed.
86740         Add member dsts_seen.
86741         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86742         not being INT_MAX.
86743         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86744         Use pc_rels_seen to decide whether a date is absolute.
86745
86746         * lib/getdate.y (number): Don't overwrite year.
86747         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86748         check.
86749
86750 2005-04-02  Simon Josefsson  <jas@extundo.com>
86751
86752         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86753         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86754
86755 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86756
86757         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86758         where no absolute path name can be longer than PATH_MAX.
86759
86760 2005-03-27  Jim Meyering  <jim@meyering.net>
86761
86762         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86763
86764 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86765
86766         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86767         "one's complement" -> "ones' complement" in comment, as per Knuth.
86768         "value of type" -> "type or expression" in comment.
86769         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86770
86771 2005-03-26  Jim Meyering  <jim@meyering.net>
86772
86773         Comment nits.
86774         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86775         Correct typos: s/or/of/.
86776
86777 2005-03-26  Jim Meyering  <jim@meyering.net>
86778
86779         * modules/check-include-files: Move to ../ and rename to...
86780         * check-module: ...this.
86781
86782 2005-03-25  Jim Meyering  <jim@meyering.net>
86783
86784         * modules/xvasprintf (Files): Add xalloc.h.
86785
86786 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86787
86788         * modules/gettext (Files): config/config.rpath ->
86789         build-aux/config.rpath
86790         * modules/iconv (Files): Likewise.
86791         Problem reported by Oskar Liljeblad.
86792
86793 2005-03-23  Jim Meyering  <jim@meyering.net>
86794
86795         * modules/check-include-files: New script to check for
86796         missing dependencies, multiple includes, etc.
86797
86798         * modules/c-strtold (Depends-on): Add xalloc.
86799         * modules/c-strtod (Depends-on): Add xalloc.
86800         * modules/hash (Depends-on): Add xalloc.
86801         (Files): Remove lib/xalloc.h.
86802
86803         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86804         * modules/userspec (Files): Add lib/inttostr.h.
86805
86806 2005-03-23  Jim Meyering  <jim@meyering.net>
86807
86808         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86809
86810 2005-03-22  Jim Meyering  <jim@meyering.net>
86811
86812         * modules/stat-macros: New module.
86813         * modules/canonicalize, modules/euidaccess, modules/file-type,
86814         * modules/filemode, modules/lchown, modules/makepath,
86815         * modules/rmdir, modules/stat: Depend on new stat-macros module
86816         rather than listing lib/stat-macros.h manually.
86817         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86818
86819 2005-03-22  Jim Meyering  <jim@meyering.net>
86820
86821         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86822
86823 2005-03-22  Bruno Haible  <bruno@clisp.org>
86824
86825         * config/srclist.txt: Replace target directory 'config' with
86826         'build-aux'.
86827         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86828         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86829         ../build-aux/.
86830
86831 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86832
86833         * modules/chdir-long (Depends-on): Add mempcpy.
86834
86835         * modules/acl, modules/backupfile, modules/c-strtod,
86836         modules/c-strtold, modules/canon-host, modules/canonicalize,
86837         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86838         modules/exclude, modules/exitfail, modules/file-type,
86839         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86840         modules/getdate, modules/getline, modules/getpagesize,
86841         modules/getpass, modules/getugroups, modules/group-member,
86842         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86843         modules/inttostr, modules/long-options, modules/makepath,
86844         modules/md5, modules/memcasecmp, modules/memcoll,
86845         modules/modechange, modules/mountlist, modules/path-concat,
86846         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86847         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86848         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86849         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86850         modules/strftime, modules/strndup, modules/strverscmp,
86851         modules/timespec, modules/unlocked-io, modules/userspec,
86852         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86853         modules/yesno:
86854         Remove lib_SOURCES line from Makefile.am section, as this is now
86855         done automatically by the corresponding Autoconf macro.
86856
86857 2005-03-21  Jim Meyering  <jim@meyering.net>
86858
86859         Changes imported from coreutils.
86860
86861         * lib/cycle-check.c: Don't include xalloc.h.
86862
86863         * lib/path-concat.c: Don't include assert.h.
86864         (path_concat): Remove assertion that would have triggered
86865         for ABASE starting with more than one slash.
86866         Reported by Andreas Schwab.
86867
86868         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86869         properly when ABASE is an absolute file name.
86870         Correct the description of this function.
86871         Include <assert.h>.
86872         Add an assertion and a test driver.
86873         This fixes a bug introduced on 2004-07-02.
86874         Andreas Schwab reported the resulting failure of cp --parents:
86875         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86876
86877 2005-03-21  Jim Meyering  <jim@meyering.net>
86878
86879         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86881
86882 2005-03-21  Jim Meyering  <jim@meyering.net>
86883         and  Paul Eggert  <eggert@cs.ucla.edu>
86884
86885         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86886         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86887         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86888         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86889         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86890         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86891         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86892         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86893         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86894         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86895         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86896         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86897         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86898         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86899         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86900         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86901         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86902         for these modules.
86903
86904 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86905
86906         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86907         (which shouldn't happen), generate nothing instead of returning 0
86908         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86909
86910 2005-03-16  Bruno Haible  <bruno@clisp.org>
86911
86912         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86913         HAVE_LONGLONG_64BIT.
86914
86915 2005-03-16  Bruno Haible  <bruno@clisp.org>
86916
86917         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86918         HAVE_LONGLONG_64BIT.
86919
86920 2005-03-16  Bruno Haible  <bruno@clisp.org>
86921
86922         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86923         HAVE_LONGLONG_64BIT.
86924
86925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86926
86927         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86928         reliably distinguish strftime failure from empty output on POSIX
86929         hosts.
86930
86931 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86932
86933         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86934         (iconv_string): Don't guess a size-zero buffer, as that might cause
86935         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86936         result would be 'too large', where 'too large' is (heuristically)
86937         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86938         overflow concerns.  This will prevent some unwanted malloc failures
86939         when the inputs are very large.
86940
86941 2005-03-15  Karl Berry  <karl@gnu.org>
86942
86943         * config/srclist.txt (config.rpath): from gettext.
86944         * config/config.rpath: update.
86945
86946 2005-03-15  Bruno Haible  <bruno@clisp.org>
86947
86948         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86949         to 'negate'.
86950
86951         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86952         variable.
86953
86954         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86955         results.
86956
86957 2005-03-14  Simon Josefsson  <jas@extundo.com>
86958
86959         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86960         <fx@gnu.org>.
86961
86962 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86965         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86966         intprops.h.
86967         * lib/strtol.c: Likewise.
86968
86969 2005-03-14  Jim Meyering  <jim@meyering.net>
86970
86971         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86972         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86973         to be nonzero so that we (and caller) can detect the difference
86974         between a valid zero-length expansion and an error return, even
86975         when the underlying strftime fails before writing anything into
86976         that location.
86977
86978 2005-03-14  Bruno Haible  <bruno@clisp.org>
86979
86980         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86981         Update from GNU gettext 0.14.3.
86982
86983 2005-03-10  Jim Meyering  <jim@meyering.net>
86984
86985         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86986
86987 2005-03-10  Jim Meyering  <jim@meyering.net>
86988
86989         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86990         so that this module works on systems without fchdir.
86991
86992 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86993
86994         Factor int-properties macros into a single file, except for
86995         glibc-related files.
86996         * lib/intprops.h: New file.
86997         * lib/getloadavg.c: Include it instead of limits.h.
86998         (INT_STRLEN_BOUND): Remove.
86999         * lib/human.c: Include intprops.h.
87000         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87001         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87002         302/1000.
87003         * lib/inttostr.h: Include intprops.h instead of limits.h.
87004         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87005         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87006         for consistency with intprops.h.
87007         (time_t_is_integer, twos_complement_arithmetic): Use them.
87008         * lib/sig2str.h: Include <signal.h>, intprops.h.
87009         (INT_STRLEN_BOUND): Remove.
87010         * lib/strftime.c (TYPE_SIGNED): Remove.
87011         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87012         * lib/strtol.c: Adjust comments to match intprops.h.
87013         * lib/userspec.c: Include intprops.h.
87014         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87015         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87016         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87017         instead of rolling our own expressions.
87018         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87019
87020         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87021         instead of int.
87022         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87023         the right thing even if adding 1900 would overflow.  Similarly
87024         for tm_mon + 1 and tm_yday + 1.
87025         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87026         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87027         (DO_SIGNED_NUMBER): New macro.
87028         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87029
87030 2005-03-07  Bruno Haible  <bruno@clisp.org>
87031
87032         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87033
87034 2005-03-07  Bruno Haible  <bruno@clisp.org>
87035
87036         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87037
87038 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87039
87040         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87041         (func_import): Only replace files via --import when they have actually
87042         changed.
87043
87044 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87045
87046         * m4/mmap-anon.m4: New file.
87047         * m4/pagealign_alloc.m4: New file.
87048
87049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87050             Bruno Haible  <bruno@clisp.org>
87051
87052         * modules/pagealign_alloc: New file.
87053         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87054
87055 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87056             Bruno Haible  <bruno@clisp.org>
87057
87058         * lib/pagealign_alloc.h: New file.
87059         * lib/pagealign_alloc.c: New file.
87060
87061 2005-03-03  Bruno Haible  <bruno@clisp.org>
87062
87063         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87064         Use an all-permissive copyright notice, recommended by RMS.
87065
87066 2005-03-02  Bruno Haible  <bruno@clisp.org>
87067
87068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87069         of AIX, the replacement has to be done only after <string.h> is
87070         included, therefore not in config.h. stpncpy.h does the replacement,
87071         and stpncpy.c uses it.
87072
87073 2005-03-02  Bruno Haible  <bruno@clisp.org>
87074
87075         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87076         stpncpy.c uses it.
87077
87078 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87079
87080         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87081         The workaround isn't strictly needed for POSIX conformance, and
87082         it's too much of a pain to configure and maintain.  We'll ask
87083         people to fix their kernels instead.
87084         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87085         (NANOSLEEP_BUG_WORKAROUND): Remove.
87086         (xnanosleep): Remove the workaround.
87087
87088 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87089
87090         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87091         Reported by Derek Price.
87092         (Include): Add "timespec.h".
87093
87094         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87095
87096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87097
87098         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87099         to detect nanosleep bug.
87100
87101 2005-03-01  Bruno Haible  <bruno@clisp.org>
87102
87103         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87104
87105 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87106
87107         * modules/gethrxtime: New file.
87108         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87109         (Depends-on): Add gethrxtime.
87110         (configure.ac): Add gl_XNANOSLEEP.
87111         (Makefile.am): Remove lib_SOURCES line.
87112
87113 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87114
87115         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87116         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87117
87118 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87119
87120         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87121         * lib/timespec.h (gettime): Return void, since it always
87122         succeeds now.  All uses changed.
87123         * lib/gettime.c (gettime): Likewise.
87124         [HAVE_NANOTIME]: Prefer nanotime.
87125         Assume gettimeofday succeeds, as POSIX requires.
87126         Assime time () succeeds, since other code already does.
87127         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87128         (timespec_subtract): Remove.
87129         (NANOSLEEP_BUG_WORKAROUND): New constant.
87130         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87131         things considerably.  Use it only on GNU/Linux hosts, since the
87132         workaround shouldn't be needed elsewhere.
87133
87134 2005-02-24  Bruno Haible  <bruno@clisp.org>
87135
87136         * modules/gettext (Files): Add m4/glibc2.m4.
87137
87138 2005-02-24  Bruno Haible  <bruno@clisp.org>
87139
87140         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87141         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87142         * m4/progtest.m4:
87143         Update from GNU gettext 0.14.2.
87144         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87145
87146 2005-02-24  Bruno Haible  <bruno@clisp.org>
87147
87148         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87149         * lib/config.charset: Update from GNU gettext 0.14.2.
87150
87151 2005-02-24  Bruno Haible  <bruno@clisp.org>
87152
87153         * lib/gettext.h: Update from GNU gettext 0.14.2.
87154
87155 2005-02-23  Simon Josefsson  <jas@extundo.com>
87156
87157         * m4/iconvme.m4: New file.
87158
87159 2005-02-23  Jim Meyering  <jim@meyering.net>
87160
87161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87162         change.
87163         Thanks to Bruno Haible for catching it.
87164
87165 2005-02-22  Simon Josefsson  <jas@extundo.com>
87166
87167         * modules/iconvme: New file.
87168
87169         * MODULES.html.sh: Add iconvme.
87170
87171 2005-02-22  Simon Josefsson  <jas@extundo.com>
87172
87173         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87174
87175 2005-02-22  Simon Josefsson  <jas@extundo.com>
87176
87177         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87178
87179 2005-02-22  Jim Meyering  <jim@meyering.net>
87180
87181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87182         s/ifndef/ifdef/.
87183
87184 2005-02-20  Neil Conway  <neilc@samurai.com>
87185
87186         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87187         returned by OSX/Darwin if the specified buffer is not large
87188         enough for the hostname.
87189
87190 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87191
87192         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87193         pass it to _help, otherwise the latter coredumps trying to
87194         dereference state.root_argp.
87195
87196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87197
87198         * modules/chdir-long (Depends-on): Add memrchr.
87199         * modules/memrchr (Files): Add lib/memrchr.h.
87200         (Include): "memrchr.h".
87201
87202 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87203
87204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87205
87206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87207
87208         * lib/memrchr.h: New file.
87209         * lib/chdir-long.c: Include it.
87210         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87211         Don't bother including stddef.h.
87212
87213 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87214
87215         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87216         inclusion.
87217         Include <sys/types.h>, for dev_t.
87218         (ME_DUMMY, ME_REMOTE): Move from here....
87219         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87220         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87221         Dmitry V. Levin.
87222         Include mountlist.h first, to test the interface.
87223
87224 2005-01-29  Bruno Haible  <bruno@clisp.org>
87225
87226         * lib/progname.c (program_name): Initialize.
87227         Needed when linking statically on MacOS X.
87228
87229 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87230
87231         Sync from coreutils.
87232         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87233         (Depends-on): Add c-strtod.
87234         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87235
87236 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87237
87238         Sync from coreutils.
87239         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87240
87241         Remove files that are specific to coreutils.
87242         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87243
87244 2005-01-28  Bruno Haible  <bruno@clisp.org>
87245
87246         * modules/javacomp: New file.
87247         * MODULES.html.sh (Java): Add javacomp.
87248
87249 2005-01-28  Bruno Haible  <bruno@clisp.org>
87250
87251         * m4/javacomp.m4: New file, from GNU gettext.
87252
87253 2005-01-28  Bruno Haible  <bruno@clisp.org>
87254
87255         * lib/javacomp.sh.in: New file, from GNU gettext.
87256         * lib/javacomp.h: New file, from GNU gettext.
87257         * lib/javacomp.c: New file, from GNU gettext.
87258
87259 2005-01-26  Simon Josefsson  <jas@extundo.com>
87260
87261         * lib/gai_strerror.c: Use GPL in header.
87262
87263 2005-01-26  Bruno Haible  <bruno@clisp.org>
87264
87265         * modules/javaexec: New file.
87266         * MODULES.html.sh (Java): Add javaexec.
87267
87268 2005-01-26  Bruno Haible  <bruno@clisp.org>
87269
87270         * m4/javaexec.m4: New file, from GNU gettext.
87271
87272 2005-01-26  Bruno Haible  <bruno@clisp.org>
87273
87274         * lib/javaexec.sh.in: New file, from GNU gettext.
87275         * lib/javaexec.h: New file, from GNU gettext.
87276         * lib/javaexec.c: New file, from GNU gettext.
87277
87278 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87279
87280         * modules/lchown (Depends-on): Remove lchown.h
87281
87282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87283
87284         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87285         must be defined if the header file was not found, in order
87286         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87287
87288 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87289
87290         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87291         initializers for struct pentry_state.
87292         (__argp_error): Check return value of __asprintf
87293         (__argp_failure): Translate error message
87294
87295         * lib/argp-parse.c: Removed braces around the expansion of N_()
87296
87297 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87298
87299         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87300         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87301         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87302         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87303         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87304         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87305         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87306         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87307         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87308         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87309         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87310         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87311         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87312         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87313         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87314         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87315         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87316         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87317         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87318         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87319         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87320         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87321         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87322         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87323         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87324         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87325         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87326         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87327         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87328         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87329         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87330         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87331         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87332         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87333         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87334         Use an all-permissive copyright notice, recommended by RMS.
87335
87336 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87337
87338         * modules/chdir-long (Depends-on): Remove mempcpy.
87339
87340 2005-01-21  Jim Meyering  <jim@meyering.net>
87341
87342         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87343         same value as for Solaris 9.
87344
87345         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87346         component length.  This included changing the parameter to be
87347         of type `char *' rather than `char const *'.
87348         * lib/chdir-long.h (chdir_long): Update prototype.
87349
87350         * lib/openat.c (fdopendir, fstatat): New functions.
87351         * lib/openat.h: Include headers required for use of DIR and struct
87352         stat.
87353         [AT_SYMLINK_NOFOLLOW]: Define.
87354         (fdopendir, fstatat): Add prototypes.
87355
87356 2005-01-21  Bruno Haible  <bruno@clisp.org>
87357
87358         * modules/classpath: New file.
87359         * MODULES.html.sh (Java): Add classpath.
87360
87361 2005-01-21  Bruno Haible  <bruno@clisp.org>
87362
87363         * lib/classpath.h: New file, from GNU gettext.
87364         * lib/classpath.c: New file, from GNU gettext.
87365
87366 2005-01-20  Simon Josefsson  <jas@extundo.com>
87367
87368         * modules/version-etc-fsf: New file.
87369
87370 2005-01-20  Simon Josefsson  <jas@extundo.com>
87371
87372         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87373         * lib/version-etc.c: Remove version_etc_copyright.
87374         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87375         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87376
87377 2005-01-20  Simon Josefsson  <jas@extundo.com>
87378
87379         * lib/base64.h (isbase64): Add.
87380
87381         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87382         using a unsigned prototype, don't inline.
87383         (base64_decode): Use it.
87384
87385 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87386
87387         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87388         it.
87389
87390 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87391
87392         * lib/save-cwd.c (save_cwd): Remove code to support the case
87393         where fchdir is missing or flaky.
87394
87395 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87396
87397         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87398
87399 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87400
87401         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87402         AC_LIBSOURCES now does this.
87403         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87404         with new ullong_max module.
87405
87406 2005-01-19  Bruno Haible  <bruno@clisp.org>
87407
87408         * modules/sh-quote: New file.
87409         * MODULES.html.sh (Executing programs): Add sh-quote.
87410
87411 2005-01-19  Bruno Haible  <bruno@clisp.org>
87412
87413         * lib/sh-quote.h: New file, from GNU gettext.
87414         * lib/sh-quote.c: New file, from GNU gettext.
87415
87416 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87417
87418         Merge from coreutils.
87419         * m4/ullong_max.m4: New file.
87420         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87421         (gl_MACROS): Assume localeconv exists.
87422
87423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87424
87425         Merge changes from coreutils, as described below in several
87426         changelogs dated today.
87427
87428         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87429         (O_DIRECTORY): Remove; not needed here, since "." must be
87430         a directory.  All uses removed.
87431         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87432         universal on Suns, and we also need to test for IRIX.
87433         Revamp code to use 'if' rather than '#if'.
87434         Avoid unnecessary comparison of cwd->desc to 0.
87435
87436         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87437         for known valid error numbers rather than observed invalid ones.
87438
87439 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87440
87441         * modules/ullong_max: New file.
87442
87443         * modules/chdir-long, modules/openat: New files.
87444         * modules/save-cwd (Depends-on): Depend on chdir-long.
87445         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87446
87447 2005-01-18  Jim Meyering  <jim@meyering.net>
87448
87449         Merge from coreutils.
87450         * m4/chdir-long.m4, m4/openat.m4: New files.
87451         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87452         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87453         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87454         is sane and DOES follow symlinks.  Besides, testing 20 different
87455         systems found no broken chown implementations.
87456         Prompted by a change in rsync's copy of this macro.
87457         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87458
87459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87460
87461         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87462         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87463         NULL-means-set-to-current-time semantics.
87464         Remove temporary file immediately, rather than waiting
87465         for configure's at-exit trap code to do it.
87466
87467 2005-01-18  Jim Meyering  <jim@meyering.net>
87468
87469         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87470
87471         * lib/utimens.c (futimens): Account for the fact that futimes
87472         can also fail with errno == ENOSYS or errno == ENOENT.
87473         Patch from Dmitry V. Levin.
87474
87475         Change the name of the robust chdir function from chdir to chdir_long.
87476         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87477         (restore_cwd): Use chdir_long, not chdir.
87478         * lib/chdir-long.c: Renamed from chdir.c.
87479         * lib/chdir-long.h: Renamed from chdir.h.
87480         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87481         Hurd.
87482
87483 2005-01-18  Bruno Haible  <bruno@clisp.org>
87484
87485         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87486         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87487         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87488         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87489         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87490         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87491         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87492         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87493         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87494         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87495         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87496         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87497         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87498         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87499         Use an all-permissive copyright notice, recommended by RMS.
87500
87501 2005-01-18  Bob Proulx  <bob@proulx.com>
87502
87503         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87504         simplify offsetof() macro construct to avoid compile failure with
87505         native HP-UX 11.0 ANSI C compiler.
87506
87507 2005-01-17  Bruno Haible  <bruno@clisp.org>
87508
87509         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87510         redundant because stpncpy.m4 takes care of it.
87511
87512 2005-01-17  Bruno Haible  <bruno@clisp.org>
87513
87514         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87515
87516 2005-01-17  Bruno Haible  <bruno@clisp.org>
87517
87518         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87519         used.
87520
87521 2005-01-17  Bruno Haible  <bruno@clisp.org>
87522
87523         * lib/fwriteerror.h (fwriteerror): Change specification to include
87524         fclose.
87525         * lib/fwriteerror.c: Include <stdbool.h>.
87526         (fwriteerror): At the end, close the file stream. Record whether
87527         stdout was already closed.
87528
87529 2005-01-17  Bruno Haible  <bruno@clisp.org>
87530
87531         * lib/execute.c (environ): Declare if needed.
87532         * lib/pipe.c (environ): Likewise.
87533         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87534
87535 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87536
87537         * modules/argp: Depend on vsnprintf
87538
87539 2005-01-10  Jim Meyering  <jim@meyering.net>
87540
87541         * modules/closeout (Depends-on): Add atexit.
87542
87543 2005-01-06  Bruno Haible  <bruno@clisp.org>
87544
87545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87546
87547 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87548
87549         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87550         definitions to be after all include files, to avoid collisions.
87551         Problem reported by Bob Proulx.
87552
87553 2005-01-04  Jim Meyering  <jim@meyering.net>
87554
87555         Changes imported from coreutils.
87556         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87557         as the mkstemp template, use a temporary directory and an
87558         8.3-friendly template to avoid trouble on systems like DJGPP.
87559         Reported by Juan M. Guerrero via Stepan Kasal.
87560         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87561         close. Remove the temporary directory right away, rather than waiting
87562         for configure's at-exit trap code to do it.
87563         Suggestion from Stepan Kasal.
87564
87565 2005-01-01  Simon Josefsson  <jas@extundo.com>
87566
87567         * gnulib-tool: Print #include directives when --import'ing.
87568
87569 2004-12-28  Simon Josefsson  <jas@extundo.com>
87570
87571         * tests/test-base64.c: Include required header files.  Remove
87572         unused variables.
87573
87574 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87575
87576         * modules/error (Depends-on): Remove gettext.
87577
87578 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87579
87580         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87581         not needed.  This removes a dependency on the gettext module.
87582         [defined _LIBC]: Do not include <libintl.h>; not needed.
87583
87584 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87585
87586         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87587         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87588
87589 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87590
87591         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87592         HAVE_DECL_STRTOLD.
87593
87594 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87595
87596         * modules/getdate (Depends-on): Remove alloca-opt.
87597
87598 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87599
87600         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87601
87602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * lib/argp-parse.c: Include <stddef.h>.
87605         (alignof, alignto): New macros.
87606         (parser_init): Don't assume that void * is aligned sufficiently
87607         for struct option.
87608
87609         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87610         need to extend the stack.
87611         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87612         large.
87613
87614 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87615
87616         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87617
87618 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87619
87620         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87621         (2004-10-24) change.  Apparently this was a false alarm.
87622
87623         * modules/getdate: Depend on alloca-opt, not alloca.
87624
87625 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87626
87627         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87628         Remove now-obsolete comment about AIX.
87629         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87630         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87631         (YYMAXDEPTH): New macro.
87632
87633 2004-12-18  Simon Josefsson  <jas@extundo.com>
87634
87635         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87636
87637 2004-12-18  Bruno Haible  <bruno@clisp.org>
87638
87639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87640
87641 2004-12-18  Bruno Haible  <bruno@clisp.org>
87642
87643         * lib/fatal-signal.c (fatal_signals): Make non-const.
87644         (init_fatal_signals): New function.
87645         (uninstall_handlers, install_handlers): Ignore signals that were set to
87646         SIG_IGN.
87647         (at_fatal_signal): Call init_fatal_signals.
87648         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87649         SIG_IGN.
87650         Reported by Paul Eggert.
87651
87652 2004-12-18  Bruno Haible  <bruno@clisp.org>
87653
87654         * doc/alloca.texi: New file.
87655         * doc/alloca-opt.texi: New file.
87656
87657 2004-12-17  Jim Meyering  <jim@meyering.net>
87658
87659         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87660         Otherwise, install-sh could exit with improper exit status when
87661         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87662
87663 2004-12-16  Simon Josefsson  <jas@extundo.com>
87664
87665         * tests/test-base64.c: Add license.
87666
87667 2004-12-15  Stepan Kasal  <address@hidden>
87668
87669         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87670
87671 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         * modules/getcwd (Files): Add m4/d-ino.m4.
87674         Suggested by Mark D. Baushke.
87675
87676 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87677
87678         * lib/getdate.y (textint): New member "negative".
87679         (time_zone_hhmm): New function.
87680         Expect 14 shift-reduce conflicts, not 13.
87681         (o_colon_minutes): New rule.
87682         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87683         (yylex): Set the "negative" member of signed numbers.
87684
87685 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87686
87687         * doc/getdate.texi (Time of day items, Time zone items):
87688         Describe new formats +00:00, UTC+00:00.
87689
87690 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87691
87692         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87693         spurious "-l"s.  Problem reported by Stepan Kasal.
87694
87695 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87696
87697         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87698         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87699
87700 2004-12-04  Simon Josefsson  <jas@extundo.com>
87701
87702         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87703         Vandoorselaere <yoann@prelude-ids.org>.
87704
87705 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87706
87707         Changes imported from coreutils.
87708         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87709         exist.
87710         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87711
87712 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87713
87714         Changes imported from coreutils.
87715         * lib/hard-locale.c: Assume <locale.h> exists.
87716         Include "strdup.h".
87717         (GLIBC_VERSION): New macro.
87718         (hard_locale): Assume setlocale exists.
87719         Rewrite to avoid #ifdef.
87720         Use strdup rather than malloc + strcpy.
87721         * lib/human.c: Assume <locale.h> exists.
87722         (human_readable): Assume localeconv exists.
87723
87724 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87725
87726         * modules/hard-locale (Depends-on): Add strdup.
87727
87728 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87729
87730         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87731         convert T2, not T.  (Imported from libc.)
87732
87733 2004-11-30  Simon Josefsson  <jas@extundo.com>
87734
87735         * modules/restrict (License): Change to LGPL.
87736
87737 2004-11-30  Simon Josefsson  <jas@extundo.com>
87738
87739         * m4/restrict.m4: Add copyright and copying conditions.
87740
87741 2004-11-30  Simon Josefsson  <jas@extundo.com>
87742
87743         * m4/base64.m4: New file.
87744
87745 2004-11-30  Simon Josefsson  <jas@extundo.com>
87746
87747         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87748         base64.
87749
87750         * tests/test-base64.c: New file.
87751
87752         * modules/base64: New file.
87753
87754 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87755
87756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87757         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87758
87759         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87760
87761 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87762
87763         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87764         (__getcwd.c): Don't restore errno; glibc doesn't.
87765         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87766         first, falling back to our code only if its results look suspicious.
87767         Ensure that the resulting buffer is only as large as necessary.
87768
87769         * lib/readutmp.c: Include readutmp.h first.
87770         Include <errno.h>, since readutmp.h no longer does that.
87771         * lib/readutmp.h: Don't include <errno.h>,
87772         <sys/param.h>, <time.h>; not needed to establish interface.
87773         (errno): Remove decl.
87774         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87775         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87776         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87777
87778 2004-11-28  Simon Josefsson  <jas@extundo.com>
87779
87780         * lib/base64.h, base64.c: New file.
87781
87782 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87785
87786 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87787
87788         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87789         (Depends-on): Remove pathmax, same.  Add mempcpy.
87790         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87791         (Makefile.am): Append getcwd.h to lib_SOURCES.
87792         (Include): Add getcwd.h.
87793         (Maintainer): Change from Jim Meyering to "all, glibc",
87794         since getdate now uses intended-for-glibc code.
87795         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87796         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87797
87798 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87801         HP's ANSI C compiler.
87802         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87803         Declaring int functions causes warnings on some modern systems and
87804         shouldn't be needed to compile on ancient ones.
87805         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87806         defined.
87807
87808         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87809         with the following changes.
87810         (__set_errno): Parenthesize properly.
87811         Include <stdbool.h>.
87812         (MIN, MAX, MATCHING_INO): New macros.
87813         (__getcwd): Define with prototype, not K&R form.
87814         Use heuristics to allocate default buffer on stack if possible.
87815         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87816         behavior, and to avoid the PATH_MAX limit when computing
87817         ../../../../...
87818         Use MATCHING_INO to compare inode number to file.
87819         Check for arithmetic overflow in size calculations.
87820         Fix bug in reallocation of dot array that caused getcwd to fail
87821         on directories nested deeper than 75.
87822         Be more careful about saving errno on error.
87823         Do not use realloc; use only free+malloc, as this is a bit
87824         more flexible and avoids a needless copy operation.
87825         Do not inspect st_dev and st_ino for symbolic links; POSIX
87826         doesn't specify the latter.
87827         Check for closedir errors.
87828         Avoid needless casts.
87829         Use "#ifdef weak_alias" around weak_alias, to be like other
87830         glibc code.
87831         The following changes to getcwd.c have effect only when used in
87832         gnulib; they have no effect inside glibc proper.
87833         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87834         as alloca isn't used.
87835         (alloca, __alloca): Likewise.
87836         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87838         unconditionally, as gnulib assumes C89 or better.
87839         Do not include <sys/param.h>.
87840         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87841         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87842         better.
87843         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87844         Include <dirent.h> in a way that is compatible with modern Autoconf.
87845         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87846         New macros, if not already defined.
87847         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87848         Use "_LIBC", not "defined _LIBC", for consistency.
87849         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87850         a mempcpy module.
87851         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87852         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87853         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87854         credit only to Jim Meyering and adjust the copyright dates.
87855         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87856         <stdlib.h>, <unistd.h>, "pathmax.h".
87857         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87858         (INITIAL_BUFFER_SIZE): Remove.
87859         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87860
87861 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87862
87863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87864         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87865         Use the _ONCE methods, for efficiency.
87866         Check for fcntl.h.  In test program, include <errno.h>
87867         and <fcntl.h> if available.  Remove old K&R cruft from
87868         test program.  Check for common errors in GNU/Linux,
87869         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87870         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87872         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87873         name accordingly.
87874         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87875         accommodate new getcwd.c.
87876         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87877         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87878         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87879         that's all we need now.
87880
87881 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87882
87883         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87884         argp-parse.c depends on getopt internals, that means we should
87885         always use our getopt, to be on the safe side.
87886         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87887         order not to spoil the result of an eventual previous invocation
87888         of gl_GETOPT_SUBSTITUTE.
87889
87890 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87891
87892         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87893         redefinition warnings. To avoid them, include the defines
87894         in `#if !defined __need_getopt ... #endif'. The only place
87895         where __getopt_argv_const is used is in definitions
87896         of getopt_long and getopt_long_only below, which are as well
87897         protected by `#ifndef __need_getopt'.
87898         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87899         __need_getopt after including <stdio.h> and <unistd.h> These
87900         headers might have defined it.
87901
87902 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87903
87904         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87905
87906 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87909         (futimens): New function, which uses futimes if available.
87910         (futimens, utimens): Support timespec==NULL, with same semantics
87911         as utime and utimens.
87912         * lib/utimens.h (futimens): New decl.
87913
87914 2004-11-23  Jim Meyering  <jim@meyering.net>
87915
87916         * lib/getopt_.h: Remove trailing blanks.
87917
87918 2004-11-23  Jim Meyering  <jim@meyering.net>
87919
87920         * lib/__fpending.c: Add comment.
87921
87922 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87923
87924         * modules/canonicalize (Depends-on): Add xreadlink.
87925         Problem reported by James Youngman.
87926
87927 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87928
87929         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87930         New macros.
87931         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87932         optopt): Use them instead of invoking ## directly; otherwise, the
87933         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87934
87935 2004-11-19  Bruno Haible  <bruno@clisp.org>
87936
87937         * lib/strtok_r.c: Move comments from here...
87938         * lib/strtok_r.h: ... to here.
87939
87940 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87941
87942         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87943         implementations that mishandle size_t overflow.
87944
87945 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87946
87947         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87948         might fail.  Problem reported by Yoann Vandoorselaere.
87949         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87950         implementations that mishandle size_t overflow.
87951
87952 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87953
87954         * modules/canon-host (Depends-on): Add strdup.
87955
87956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87957
87958         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87959
87960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87961
87962         * lib/canon-host.c: Include "strdup.h".
87963         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87964         Use strdup instead of malloc/strcpy to duplicate strings.
87965
87966         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87967         (human_space_before_unit): New constant.
87968         * lib/human.c (human_readable): Support it.
87969
87970         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87971         (xgetcwd): Set errno correctly when failing.
87972         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87973         the failure is actually due to a PATH_MAX problem.
87974
87975         Further getopt changes to make it more likely that glibc will
87976         buy the changes back.
87977         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87978         (getopt): Use it, so to preserve glibc semantic
87979         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87980         when compiling for libc.
87981         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87982         (getopt_long, getopt_long_only): Use it.
87983
87984         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87985         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87986         (getopt): Argv is now char * const *, as per standard.
87987         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87988         not char *__getopt_argv_const *.
87989         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87990         _getopt_long_only_r): Likewise.
87991         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87992         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87993         _getopt_long_r, _getopt_long_only_r): Likewise.
87994         * lib/getopt_.h (__getopt_argv_const): Remove.
87995         (getopt): Argv is now char * const *, as per standard.
87996
87997         * lib/getdate.y (tORDINAL): New token.
87998         (day, relunit): Allow it for relative times.
87999         (relative_time_table): Use tORDINAL for ordinals.
88000
88001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88002
88003         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88004         Document that "second" isn't allowed as an ordinal number.
88005
88006 2004-11-16  Jim Meyering  <jim@meyering.net>
88007
88008         * modules/closeout (Depends-on): Add fpending.
88009
88010 2004-11-15  Jim Meyering  <jim@meyering.net>
88011
88012         * lib/closeout.c: Include "__fpending.h" once again.
88013         Include <stdbool.h>.
88014         (close_stdout): Don't fail just because stdout was closed initially,
88015         since some programs don't write to stdout in the normal course of
88016         operation (other than --version and --help), and we don't want this
88017         function to make e.g. `touch file >&-' fail.
88018         But do fail if it was closed and someone has tried to write to it.
88019         E.g., `printf foo >&-' must fail.
88020
88021 2004-11-13  Jim Meyering  <jim@meyering.net>
88022
88023         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88024
88025 2004-11-12  Simon Josefsson  <jas@extundo.com>
88026
88027         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88028         small doc fix is still pending.
88029
88030 2004-11-11  Simon Josefsson  <jas@extundo.com>
88031
88032         * modules/strtok_r: New file.
88033
88034         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88035         strtok_r.
88036
88037 2004-11-11  Simon Josefsson  <jas@extundo.com>
88038
88039         * m4/strtok_r.m4: New file.
88040
88041         * m4/getopt.m4: Replace opterr.
88042
88043 2004-11-11  Simon Josefsson  <jas@extundo.com>
88044
88045         * lib/strtok_r.h, strtok_r.c: New file.
88046
88047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88048
88049         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88050         of replacing opterr, getopt, etc.  This should handle the
88051         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88052
88053 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88054
88055         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88056         we can stop lying to compilers about the constness of argv when we
88057         are compiled outside glibc.
88058         (getopt, getopt_long, getopt_long_only): Use it.
88059         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88060         _getopt_internal, getopt): Likewise.
88061         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88062         _getopt_long_only_r): Likewise.
88063         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88064         _getopt_long_r, _getopt_long_only_r): Likewise.
88065
88066         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88067         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88068         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88069         the other external symbols.
88070         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88071         declaration, since the above renaming now works around collisions.
88072
88073 2004-11-11  Jim Meyering  <jim@meyering.net>
88074
88075         * lib/linebreak.c: Remove trailing blanks.
88076         * lib/alloca_.h: Likewise.
88077         * lib/acosl.c: Likewise.
88078         * lib/euidaccess.c: Likewise.
88079         * lib/allocsa.h: Likewise.
88080
88081 2004-11-10  Simon Josefsson  <jas@extundo.com>
88082
88083         * m4/getaddrinfo.m4: New file.
88084
88085 2004-11-10  Simon Josefsson  <jas@extundo.com>
88086
88087         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88088
88089 2004-11-10  Simon Josefsson  <jas@extundo.com>
88090
88091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88092         getaddrinfo.
88093
88094         * modules/getaddrinfo: New file.
88095
88096 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88097
88098         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88099
88100 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88101
88102         * lib/mktime.c (SHR): New macro, which is a portable
88103         substitute for >> that should work even on Crays.
88104         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88105         Problem reported by Mark D. Baushke in
88106         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88107         * lib/getdate.y (SHR): Likewise.
88108         (tm_diff): Use it.
88109         * lib/strftime.c (SHR): Likewise.
88110         (tm_diff): Use it.
88111         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88112         quote_these_too, so that right shifts are well defined.  All uses
88113         changed.
88114
88115 2004-11-10  Jim Meyering  <jim@meyering.net>
88116
88117         Ensure that no close failure goes unreported.
88118         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88119         return early when it seems there's nothing to flush.
88120         Don't include __fpending.h.
88121
88122 2004-11-10  Jim Meyering  <jim@meyering.net>
88123
88124         * modules/closeout (Depends-on): Remove fpending.
88125
88126 2004-11-10  Jim Meyering  <jim@meyering.net>
88127
88128         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88129
88130 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88131
88132         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88133         gl_FUNC_STRFTIME.
88134         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88135         and AC_REQUIRE when possible, to avoid duplicate checks.
88136         Check for <wchar.h>.
88137
88138 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88139
88140         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88141
88142 2004-11-09  Bruno Haible  <bruno@clisp.org>
88143
88144         * m4/sockpfaf.m4: New file.
88145
88146 2004-11-05  Bruno Haible  <bruno@clisp.org>
88147
88148         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88149         Reported by Mark D. Baushke <mdb@cvshome.org>.
88150
88151 2004-11-04  Bruno Haible  <bruno@clisp.org>
88152
88153         2004-09-11  Bruno Haible  <bruno@clisp.org>
88154                 * allocsa.valgrind: New file.
88155         2004-02-06  Bruno Haible  <bruno@clisp.org>
88156                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88157                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88158                 Reported by Christopher Seip <chris.seip@hp.com>.
88159
88160 2004-11-04  Bruno Haible  <bruno@clisp.org>
88161
88162         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88163         (Makefile.am): Distribute it.
88164
88165 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88166
88167         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88168         with errno == ERANGE if the buffer is too small.
88169         Problem reported by Mark D. Baushke.
88170
88171 2004-11-03  Albert Chin  <china@thewrittenword.com>
88172             Paul Eggert  <eggert@cs.ucla.edu>
88173
88174         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88175         equivalent, substitute $ac_type for equivalent type rather than
88176         blindly using uint32_t *always* which won't work if uint32_t is not
88177         available.  Define _UINT32_T to work around typedef of uint32_t if
88178         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88179         2.5.1.
88180
88181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         * m4/jm-macros.m4: Sync from coreutils.
88184         (gl_MACROS): Check for mbrlen, for pathchk.
88185         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88186
88187 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88188
88189         * lib/xreadlink.c (MAXSIZE): New macro.
88190         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88191         size does not exceed MAXSIZE.  Avoid cast.
88192         As suggested by Mark D. Baushke in
88193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88194         if readlink fails with buffer size just under MAXSIZE, try again
88195         with MAXSIZE.
88196
88197 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88198
88199         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88200
88201 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88202         and  Paul Eggert  <eggert@cs.ucla.edu>
88203
88204         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88205         (get_date): Overparenthesize to avoid GCC warning.
88206
88207 2004-11-02  Bruno Haible  <bruno@clisp.org>
88208
88209         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88210         returns void.
88211
88212 2004-11-02  Bruno Haible  <bruno@clisp.org>
88213
88214         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88215         function returns void.
88216
88217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88218
88219         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88220         fflush_unlocked, flockfile, funlockfile, funlockfile,
88221         fputs_unlocked, putc_unlocked.
88222
88223 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88224
88225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88226         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88227         already declared.
88228
88229 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88230
88231         * modules/getdate (Files): Add doc/getdate.texi.
88232         (Depends-on): Add setenv, xalloc.
88233
88234 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88235
88236         * lib/getdate.y: Add support for TZ="foo" within a date string.
88237         Fix some bugs near time_t boundaries.  Reject dates with
88238         out-of-range components, e.g., "Sept 31".
88239         Include <stdlib.h>, "setenv.h", "xalloc.h".
88240         (ISDIGIT_LOCALE): Remove; unused.
88241         Note that the TZ and time functions used here are not reentrant.
88242         (mktime_ok, get_tz): New functions.
88243         (TZBUFSIZE): New constant.
88244         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88245         This requires that we sometimes generate our own TZ="XXX..." setting.
88246
88247 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88248
88249         * doc/getdate.texi: New file, from coreutils with modifications for
88250         the new TZ parsing.
88251
88252 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88253
88254         * lib/mktime.c (not_equal_tm): Remove redundant check.
88255
88256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88257
88258         * modules/regex (lib_SOURCES): Add regex.c.
88259         Reported by James Youngman in
88260         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88261
88262 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88263
88264         * lib/getdate.y: Use Bison 1.875 features, and some minor
88265         code cleanups.  This change does not affect semantics.
88266         Don't include <stdlib.h>; no longer needed.
88267         Don't include unlocked-io.h; only the "#if TEST" code uses
88268         stdio, and performance isn't crucial there.
88269         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88270         Bison 1.875 features as described below.
88271         All uses of "PC." replaced by "pc->".
88272         (YYSTYPE): Add a forward declaration.
88273         (yylex, yyerror): Use full prototypes in forward decls.
88274         Use "%pure-parser" rather than obsolescent "%pure_parser".
88275         Use %parse-param and %lex-param instead of obsolescent
88276         YYPARSE_PARAM and YYLEX_PARAM.
88277         (meridian_table, month_and_day_table, time_units_table,
88278         relative_time_table, time_zone_table, military_table,
88279         lookup_zone, lookup_word, get_date):
88280         Use NULL instead of 0 where appropriate.
88281         (to_hour): Avoid abort (), to avoid a dependency on
88282         stdlib.h.
88283         (yyerror, yylex): Now accepts parser_control * arg.
88284         (main) [TEST]: Use '\0' rather than 0 for char.
88285
88286 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88287
88288         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88289
88290 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88293         It's now the caller's responsibility to handle the case where
88294         !HAVE_GETPAGESIZE && !defined getpagesize.
88295
88296         * lib/mktime.c (leapyear): Arg is long int, not int.
88297
88298 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88299
88300         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88301
88302 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88303
88304         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88305         missing.  Problem reported by James Youngman.
88306
88307 2004-10-16  Simon Josefsson  <jas@extundo.com>
88308
88309         * gnulib-tool: Fix comments.  Fix parse problem.
88310         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88311
88312 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88313
88314         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88315         implementation of getopt_long.  Problem reported by Alexander Taler in:
88316         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88317
88318 2004-10-15  Bruno Haible  <bruno@clisp.org>
88319
88320         * gnulib-tool: Untabify. Initialize supplied_libname.
88321         (func_usage): More homogenous output.
88322         (func_modules_transitive_closure, func_modules_to_filelist,
88323         func_emit_lib_Makefile_am): New functions.
88324         (func_import): New function, extracted from big case statement. Use
88325         func_get_license, func_modules_transitive_closure,
88326         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88327         opt_lgpl. Don't use test -a, as it's not portable.
88328         (func_create_testdir): Use func_modules_transitive_closure,
88329         func_modules_to_filelist, func_emit_lib_Makefile_am.
88330
88331 2004-10-15  Bruno Haible  <bruno@clisp.org>
88332
88333         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88334
88335 2004-10-15  Bruno Haible  <bruno@clisp.org>
88336
88337         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88338         the portions belonging to each module.
88339         Suggested by Derek Robert Price <derek@ximbiot.com>.
88340
88341 2004-10-12  Simon Josefsson  <jas@extundo.com>
88342
88343         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88344         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88345         to real functions.
88346
88347 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88348
88349         * modules/vsnprintf: New file.
88350
88351 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88352
88353         * m4/vsnprintf.m4: New file.
88354
88355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88356
88357         * lib/vsnprintf.h: New file.
88358         * lib/vsnprintf.c: New file.
88359
88360 2004-10-11  Bruno Haible  <bruno@clisp.org>
88361
88362         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88363         vsnprintf.
88364
88365 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88366
88367         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88368
88369 2004-10-07  Bruno Haible  <bruno@clisp.org>
88370
88371         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88372         fits into the provided buffer.
88373
88374 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88375
88376         * lib/diacrit.c, diacrit.h: Add GPL notice.
88377
88378         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88379         notice.
88380         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88381         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88382         This avoids a potential constant-folding bug.
88383
88384 2004-10-05  Bruno Haible  <bruno@clisp.org>
88385
88386         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88387         for the declaration of strsep.
88388
88389 2004-10-05  Bruno Haible  <bruno@clisp.org>
88390
88391         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88392
88393 2004-10-04  Simon Josefsson  <jas@extundo.com>
88394
88395         * modules/memmem: New file.
88396         * tests/test-memmem.c: New file.
88397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88398
88399 2004-10-04  Simon Josefsson  <jas@extundo.com>
88400
88401         * m4/memmem.m4: New file.
88402
88403 2004-10-04  Simon Josefsson  <jas@extundo.com>
88404
88405         * lib/memmem.h: New file.
88406         * lib/memmem.c: New file, taken from glibc.
88407
88408 2004-10-04  Simon Josefsson  <jas@extundo.com>
88409
88410         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88411         '#ifdef USE_UNLOCKED_IO'.
88412
88413 2004-10-04  Simon Josefsson  <jas@extundo.com>
88414
88415         * config/srclist.txt: Add memmem from glibc.
88416
88417 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88418
88419         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88420
88421         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88422         modules/exclude, modules/getdate, modules/getline,
88423         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88424         modules/getusershell, modules/linebuffer, modules/md5,
88425         modules/mountlist, modules/posixtm, modules/readtokens,
88426         modules/readutmp, modules/regex, modules/sha1,
88427         modules/version-etc, modules/yesno:
88428         Remove dependency on unlocked-io.
88429
88430 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88431
88432         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88433
88434         * m4/unlocked-io.m4: Add copyright notice.
88435         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88436
88437 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88438
88439         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88440         * lib/xmalloc.c (xmemdup): Likewise.
88441         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88442         XFREE): Remove these long-obsolescent macros.
88443         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88444         * lib/xstrdup.c: Remove.
88445
88446         * lib/regex.c (re_comp): Cast gettext return value to char *,
88447         Problem reported by Martin Neitzel via Mark D. Baushke.
88448
88449 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88450
88451         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88452         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88453         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88454         regex.c, sha1.c, version-etc.c, yesno.c:
88455         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88456         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88457         the includer's responsibility.
88458
88459         Sync from coreutils.
88460
88461         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88462         points to the start of a string, as the C Standard says the
88463         resulting behavior is undefined.
88464
88465         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88466         simple -> simple_backups, numbered_existing ->
88467         numbered_existing_backups, numbered -> numbered_backups
88468         to avoid shadowing problems.  All uses changed.
88469         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88470         * lib/backupfile.c (check_extension, numbered_backup):
88471         Rename locals to avoid shadowing 'basename'.
88472         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88473         once.
88474
88475         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88476         * lib/.cvsignore: Add getopt.h.
88477
88478 2004-10-04  Bruno Haible  <bruno@clisp.org>
88479
88480         * modules/README: New file.
88481         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88482         not a module.
88483
88484 2004-10-02  Jim Meyering  <jim@meyering.net>
88485
88486         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88487
88488 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88489
88490         * modules/strsep: New file.
88491
88492 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88493
88494         * m4/strsep.m4: New file.
88495
88496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88497
88498         * lib/strsep.h: New file.
88499         * lib/strsep.c: New file.
88500
88501 2004-10-01  Simon Josefsson  <jas@extundo.com>
88502
88503         * lib/snprintf.c (snprintf): Handle size==0.
88504
88505 2004-10-01  Simon Josefsson  <jas@extundo.com>
88506             Bruno Haible  <bruno@clisp.org>
88507
88508         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88509         (snprintf): Declare 'args'.
88510
88511 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88512
88513         * lib/snprintf.c: Remove comments as to why each header is needed.
88514
88515 2004-10-01  Bruno Haible  <bruno@clisp.org>
88516
88517         * MODULES.html.sh: Add strsep.
88518
88519 2004-09-30  Simon Josefsson  <jas@extundo.com>
88520
88521         * modules/snprintf: New file.
88522
88523 2004-09-30  Simon Josefsson  <jas@extundo.com>
88524
88525         * m4/snprintf.m4: New file.
88526
88527 2004-09-30  Simon Josefsson  <jas@extundo.com>
88528
88529         * lib/snprintf.h, lib/snprintf.c: New files.
88530
88531 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88532
88533         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88534         (hol_entry_help): Never translate an empty string.
88535         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88536         * lib/argp.h (OPTION_NO_TRANS): New option.
88537
88538 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88539
88540         * modules/argp (Maintainer): Replace Simon Josefsson
88541         by Sergey Poznyakoff.
88542
88543 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88544
88545         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88546         changes merged back into glibc.
88547
88548 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88549
88550         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88551
88552 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88553
88554         * lib/xvasprintf.c: Include xalloc.h.
88555         (xvasprintf): Use xalloc_die, not xmalloc_die.
88556
88557 2004-09-29  Bruno Haible  <bruno@clisp.org>
88558
88559         * modules/alloca-opt: New file, derived from modules/alloca.
88560         * modules/allocsa: Depend on alloca-opt instead of alloca.
88561         * modules/setenv: Likewise.
88562         * modules/vasnprintf: Likewise.
88563         * MODULES.html.sh: Add alloca-opt.
88564
88565 2004-09-28  Simon Josefsson  <jas@extundo.com>
88566
88567         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88568         LGPL, and to replace license template from GPL to LGPL.
88569
88570 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88571
88572         * modules/dummy: Change license to LGPL.
88573
88574 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88575
88576         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88577
88578 2004-09-24  Simon Josefsson  <jas@extundo.com>
88579
88580         * modules/minmax (License): Change from GPL to LGPL.
88581
88582 2004-09-23  Simon Josefsson  <jas@extundo.com>
88583
88584         * gnulib-tool (--import): Typo.
88585
88586 2004-09-23  Simon Josefsson  <jas@extundo.com>
88587
88588         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88589
88590 2004-09-22  Bruno Haible  <bruno@clisp.org>
88591
88592         * modules/*: Add 'License' field.
88593         * gnulib-tool: Accept --extract-license option.
88594         (func_get_license): New function.
88595
88596 2004-09-21  Bruno Haible  <bruno@clisp.org>
88597
88598         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88599         Reported by Simon Josefsson.
88600
88601 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88602
88603         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88604         gl_AC_TYPE_LONG_LONG.
88605
88606 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88607
88608         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88609
88610 2004-09-18  Simon Josefsson  <jas@extundo.com>
88611         and  Paul Eggert  <eggert@cs.ucla.edu>
88612
88613         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88614         calls with autoreconf.  Define GL_LIB.
88615
88616 2004-09-14  Karl Berry  <karl@gnu.org>
88617
88618         * config/srclist.txt: unsync setenv.c, sigh.
88619
88620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88621
88622         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88623         Problem reported by Bruno Haible in:
88624         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88625
88626 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88627
88628         * config/srclist.txt: Comment out argp-pvh.c.
88629
88630 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88631
88632         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88633         in case some system header has #define'd it.  Problem reported by
88634         Soeren D. Schulze in
88635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88636
88637 2004-09-09  Karl Berry  <karl@gnu.org>
88638
88639         * regex.[ch]: delete from the root.  These were supposed to be
88640                 synced with emacs cvs, but this has not happened for about
88641                 a year, and anyway nothing else uses emacs regex.[ch].
88642                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88643                 lib/regex[.ch] is untouched.
88644
88645 2004-09-09  Bruno Haible  <bruno@clisp.org>
88646
88647         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88648
88649 2004-09-09  Bruno Haible  <bruno@clisp.org>
88650
88651         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88652         modifications.
88653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88654
88655 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88656
88657         * modules/xvasprintf: New file.
88658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88659
88660 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88661
88662         * lib/xvasprintf.h: New file.
88663         * lib/xvasprintf.c: New file.
88664         * lib/xasprintf.c: New file.
88665
88666 2004-09-08  Bruno Haible  <bruno@clisp.org>
88667
88668         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88669
88670 2004-09-08  Bruno Haible  <bruno@clisp.org>
88671
88672         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88673         length is > INT_MAX.
88674         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88675         more.
88676
88677 2004-09-08  Bruno Haible  <bruno@clisp.org>
88678
88679         * lib/stdint_.h: New file, taken from GNU clisp.
88680
88681 2004-09-08  Bruno Haible  <bruno@clisp.org>
88682             Oskar Liljeblad  <oskar@osk.mine.nu>
88683
88684         * modules/stdint: New file.
88685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88686
88687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88688
88689         Import from coreutils.
88690         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88691         strings on unbounded length.  alloca's performance benefits aren't
88692         that important here.
88693         (V_STRDUP): Remove.
88694         (parse_with_separator): New function, with most of the internals
88695         of the old parse_user_spec.  Allow user to omit both user and group,
88696         for compatibility with FreeBSD.
88697         Clone only the user name, not the entire spec.
88698         Do not set *uid, *gid unless entirely successful.
88699         Avoid memory leak in some failing cases.
88700         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88701         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88702         (parse_user_spec): Rewrite to use parse_with_separator.
88703
88704 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88705
88706         * modules/userspec: Don't depend on alloca.
88707
88708 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88709
88710         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88711
88712 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88713
88714         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88715         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88716         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88717
88718 2004-08-16  Simon Josefsson  <jas@extundo.com>
88719
88720         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88721         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88722         Add --dry-run for --import.
88723         Let user provided command line parameters override configure.ac
88724         settings.
88725
88726 2004-08-12  Simon Josefsson  <jas@extundo.com>
88727
88728         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88729         as discussed with Paul Eggert in threads rooted at
88730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88731         and
88732         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88733         Before, the test was empty, and relied on ELIDE_CODE in source
88734         code.)
88735         (gl_PREREQ_GETOPT): New macro.
88736         (gl_GETOPT): Use them.
88737
88738 2004-08-12  Simon Josefsson  <jas@extundo.com>
88739
88740         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88741         * lib/getopt_.h: Renamed from getopt.h.
88742
88743 2004-08-12  Simon Josefsson  <jas@extundo.com>
88744
88745         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88746         Change default library name from libfoo to libgnu.
88747         Now, if you have a configure.ac that says:
88748                 gl_SOURCE_BASE(gl)
88749                 gl_M4_BASE(gl/m4)
88750                 gl_MODULES(error getopt etcetera)
88751                 gl_INIT
88752         you can import all you need by running:
88753                 ../gnulib/gnulib-tool --import
88754
88755         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88756         (Makefile.am): Rewrite, use logic from argz.
88757         (Include): Use <getopt.h> instead of "getopt.h".
88758
88759 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88760
88761         * modules/argp (Files): Add m4/unlocked-io.m4.
88762         (Depends-on): Add extensions.
88763
88764 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88765
88766         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88767         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88768         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88769         Check for program_invocation_name, program_invocation_short_name,
88770         flockfile, funlockfile, features.h, _getopt_long_only_r.
88771
88772 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88773
88774         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88775         its complicated substitute.
88776         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88777         and program_invocation_name.
88778         (__argp_basename) [!_LIBC]: Remove; the only use was
88779         replaced by its body.
88780         (__argp_short_program_name): Change condition from
88781         !defined __argp_short_program_name to
88782         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88783         to match argp-namefrob.h.
88784         (__argp_failure): Don't assume strerror_r returns char *.
88785         * lib/argp-parse.c (N_): Define unconditionally.
88786         (argp_default_options): Fill out initializers with 0 to avoid
88787         gcc warnings.
88788
88789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88790
88791         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88792         getopt1.c.
88793
88794 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88795
88796         Merge from coreutils.
88797
88798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88799
88800         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88801         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88802
88803 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88804
88805         Merge from coreutils.
88806
88807         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88808         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88809         for Reliant Unix 5.43.
88810
88811         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88812         (union fooround): Use uintmax_t, not long int.
88813         The rest is a merge from libc:
88814         [defined _LIBC]: Include <shlib-compat.h>.
88815         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88816
88817         * lib/settime.c (settime): Recode to avoid warning with
88818         Sun Forte C 6U2.
88819
88820         * lib/strverscmp.c: Convert to UTF-8.
88821
88822 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88823
88824         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88825         m4/uintmax_t.m4.
88826
88827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88828
88829         * modules/xalloc-die: New file.
88830         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88831
88832         * modules/md5 (Files): Add m4/uint32_t.m4.
88833         * modules/sha1: Renamed from modules/sha.
88834         (Files):
88835         Rename lib/sha.h to lib/sha1.h.
88836         Rename lib/sha.c to lib/sha1.c.
88837         Rename m4/sha.m4 to m4/sha1.m4.
88838         (lib_SOURCES): Likewise.
88839         (configure.ac): Rename gl_SHA to gl_SHA1.
88840         (Include): sha.h -> sha1.h.
88841
88842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88843
88844         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88845         * m4/sha1.m4: Renamed from sha.m4.
88846         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88847
88848 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88849
88850         * lib/obstack.h (obstack_empty_p):
88851         Don't assume that chunk->contents is suitably aligned.
88852         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88853         Likewise. Problem reported by Benno in
88854         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88855
88856         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88857         readable.  This could be improved further but it'd take some work.
88858
88859 2004-08-08  Simon Josefsson  <jas@extundo.com>
88860
88861         * modules/xgethostname (Depends-on): Remove exit and error (not
88862         used).
88863
88864         * modules/getpass-gnu: Add getpass.h.
88865         (Depends-on): Add stdbool.
88866         * modules/getpass: Add getpass.h.
88867
88868 2004-08-08  Simon Josefsson  <jas@extundo.com>
88869
88870         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88871         Check getpass declaration.
88872
88873 2004-08-08  Simon Josefsson  <jas@extundo.com>
88874
88875         * lib/xgethostname.c: Don't include error.h (not used).
88876
88877         * lib/getpass.h: Add.
88878         * lib/getpass.c: Include getpass.h first.
88879
88880 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88881
88882         * lib/xalloc-die.c: New file.
88883         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88884         All uses removed.
88885         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88886         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88887         xalloc-die.c.
88888         (_, N_, xalloc_die): Move to xalloc-die.c.
88889         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88890         so that we needn't mess with xalloc_msg_memory_exhausted.
88891
88892         * lib/sha1.h: Renamed from sha.h.
88893         (SHA1_H): Renamed from _SHA_H.
88894         (sha1_ctx): Renamed from sha_ctx.
88895         (sha1_init_ctx): Renamed from sha_init_ctx.
88896         (sha1_process_block): Renamed from sha_process_block.
88897         (sha1_process_bytes): Renamed from sha_process_bytes.
88898         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88899         (sha1_read_ctx): Renamed from sha_read_ctx.
88900         (sha1_stream): Renamed from sha_stream.
88901         (sha1_buffer): Renamed from sha_buffer.
88902         * lib/sha1.c: Likewise; renamed from sha.c.
88903         Do not include <sys/types.h>.
88904         Include <stddef.h> rather than <stdlib.h>.
88905
88906 2004-08-08  Bruno Haible  <bruno@clisp.org>
88907
88908         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88909         FILESYSTEM_PREFIX_LEN.
88910         * lib/progreloc.c: Likewise.
88911         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88912
88913 2004-08-06  Simon Josefsson  <jas@extundo.com>
88914
88915         * modules/progname (Depends-on): Don't depend on stdbool.
88916
88917 2004-08-06  Simon Josefsson  <jas@extundo.com>
88918
88919         * modules/getsubopt: New file.
88920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88921         getsubopt.
88922
88923 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88924
88925         More merge from coreutils.
88926
88927         * m4/utimens.m4, m4/utimecmp.m4: New files.
88928         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88929         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88930         prereq.m4, sha.m4: Import changes from coreutils.
88931
88932 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88933
88934         More merge from coreutils.
88935         * modules/raise, modules/readtokens0, modules/utimens:
88936         * modules/utimecmp, module/xnanosleep: New files.
88937         * modules/strftime: Add lib/strftime.h.
88938         Change include from <time.h> to "strftime.h".
88939         * modules/yesno: Add lib/yesno.h.
88940         * modules/backupfile: Remove lib/addext.c.
88941         * modules/euidaccess: Add stat-macros.h.
88942         * modules/canonicalize, modules/euidaccess,
88943         modules/filemode, modules/lchown, modules/makepath,
88944         modules/rmdir, modules/stat: Likewise.
88945
88946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88947
88948         Merge from tar.
88949         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88950         SIZE_MAX is a valid preprocessor constant.
88951         (__argp_basename): Change from "#ifndef _LIBC"
88952         to "#ifndef __argp_short_program_name", so that
88953         we don't compile these functions for tar.
88954
88955         More merges from coreutils.
88956         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88957         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88958         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88959         * lib/addext.c: Remove; no longer needed.
88960         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88961         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88962         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88963         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88964         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88965         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88966         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88967         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88968         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88969         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88970         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88971         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88972         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88973         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88974         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88975         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88976         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88977         Import changes from coreutils.
88978
88979 2004-08-05  Simon Josefsson  <jas@extundo.com>
88980
88981         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88982
88983 2004-08-05  Simon Josefsson  <jas@extundo.com>
88984
88985         * m4/getsubopt.m4: New file.
88986
88987 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88988
88989         Merge from coreutils.
88990
88991         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88992         * m4/getcwd-path-max.m4: New files.
88993
88994         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88995         FILESYSTEM_PREFIX_LEN ->
88996         FILE_SYSTEM_PREFIX_LEN.
88997         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88998         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88999         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89000         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89001
89002         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89003         prerequisite modules now handle the DOS stuff.
89004         Don't check for unistd.h.
89005
89006 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89007
89008         Merge from coreutils.
89009
89010         * lib/.gdb-history: Remove; this doesn't belong here.
89011
89012         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89013         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89014         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89015         * lib/getcwd.c: New files.
89016
89017         * lib/dirname.h: Include <stdbool.h>.
89018         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89019         for consistency with POSIX terminology.  All uses changed.
89020         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89021         (strip_trailing_slashes): Use bool for booleans.
89022         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89023
89024         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89025         sometimes returns a positive errno value even when it succeeds.
89026         (print_errno_message) [!LIBC]: Fall back on strerror if
89027         __strerror_r fails.
89028
89029         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89030         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89031         (longest_relative_suffix): New function.
89032         (path_concat): Use it.  Assume first argument is not NULL.
89033         Port to DOS.  Omit redundant separators.
89034         Report an error instead of returning NULL.
89035         Use mempcpy instead of memcpy.
89036         (xpath_concat): Remove: not declared or used.
89037
89038         * lib/same.h: Include <stdbool.h>
89039         (same_name): Return bool, not int.
89040         * lib/same.c (same_name): Likewise.
89041         (errno): Don't declare; we assume C89 or better now.
89042
89043         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89044         if not already defined.
89045
89046         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89047         * lib/dup-safer.c (errno): Likewise.
89048
89049 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89050
89051         Merge from coreutils.
89052         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89053         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89054         * modules/path-concat: Don't depend on strdup.
89055
89056 2004-08-03  Simon Josefsson  <jas@extundo.com>
89057
89058         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89059         * lib/progname.h: Don't include stdbool.h.
89060
89061 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89062
89063         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89064         * MODULES.html.sh (func_all_modules): Remove fatal.
89065
89066 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89067
89068         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89069
89070 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89071
89072         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89073         working.
89074
89075 2004-08-02  Simon Josefsson  <jas@extundo.com>
89076
89077         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89078         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89079         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89080
89081 2004-08-01  Simon Josefsson  <jas@extundo.com>
89082
89083         * lib/xgetdomainname.c: Include stdlib.h, for free().
89084
89085 2004-07-19  Bruno Haible  <bruno@clisp.org>
89086
89087         * MODULES.html.sh (func_all_modules): Add dummy.
89088
89089 2004-07-16  Simon Josefsson  <jas@extundo.com>
89090
89091         * modules/dummy: New file.
89092
89093 2004-07-16  Simon Josefsson  <jas@extundo.com>
89094
89095         * lib/dummy.c: New file.
89096
89097 2004-07-16  Bruno Haible  <bruno@clisp.org>
89098
89099         * lib/backupfile.h: Add extern "C" for C++.
89100         * lib/closeout.h: Likewise.
89101         * lib/copy-file.h: Likewise.
89102         * lib/findprog.h: Likewise.
89103         * lib/full-write.h: Likewise.
89104         * lib/pathname.h: Likewise.
89105         * lib/progname.h: Likewise.
89106         * lib/stpcpy.h: Likewise.
89107         * lib/stpncpy.h: Likewise.
89108         * lib/strcase.h: Likewise.
89109         * lib/strstr.h: Likewise.
89110         * lib/xalloc.h: Likewise.
89111
89112         * lib/mbswidth.h: Add extern "C" for C++.
89113         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89114
89115 2004-07-13  Robert Millan  <robertmh@gnu.org>
89116
89117         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89118
89119 2004-07-09  Simon Josefsson  <jas@extundo.com>
89120
89121         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89122         failed without this.)
89123
89124 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89125
89126         * modules/chown (Files): Add lib/fchown-stub.c, since
89127         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89128
89129 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89130
89131         * lib/fchown-stub.c: New file.
89132
89133 2004-06-24  Jim Meyering  <jim@meyering.net>
89134
89135         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89136
89137 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89138
89139         * modules/argz: Omit "#include".
89140
89141         * MODULES.html.sh (func_all_modules): Add calloc, to match
89142         2004-06-01 addition of calloc module.
89143
89144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89145
89146         * m4/argz.m4: New file, which is autoupdated from libtool.
89147
89148 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89149
89150         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89151         libtool.
89152
89153 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89154
89155         * config/srclist-update: Don't insist on "USA." before the
89156         close-comment, as libtool omits the period and puts the */ on a
89157         separate line.
89158         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89159         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89160
89161 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89162
89163         * modules/argz: New file.
89164         * MODULES.html.sh (func_all_modules): Add argz.
89165
89166 2004-06-12  Jim Meyering  <jim@meyering.net>
89167         and  Paul Eggert  <eggert@cs.ucla.edu>
89168
89169         * modules/hash (Files): Add lib/xalloc.h.
89170         * modules/pipe (Depends-on): Add wait-process.
89171         * modules/stat (Depends-on): Add xalloc.
89172         * modules/userspec (Files): Add lib/userspec.h.
89173         * modules/xstrto
89174
89175         Upgrade from gettext-0.13.
89176         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89177         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89178         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89179
89180 2004-06-10  Jim Meyering  <jim@meyering.net>
89181
89182         * lib/calloc.c: New file.
89183
89184 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         * lib/getdate.y (yylex): Allow space between sign and number.
89187         Problem reported by Dan Jacobson.
89188
89189 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         Merge from coreutils CVS.
89192
89193         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89194         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89195         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89196         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89197         xstrtol.m4: Fix copyright date and/or serial number.
89198
89199         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89200         See if we need an fchown replacement.
89201         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89202         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89203         and use the replacement function if we detect either defect.
89204
89205         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89206         gl_UTIMECMP.
89207
89208 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89209         and  Jim Meyering  <jim@meyering.net>
89210
89211         Merge from coreutils CVS.
89212
89213         * lib/stat-macros.h: New file, with contents from file-type.h
89214         and coreutils' system.h.
89215         * lib/file-type.c: Include "stat-macros.h".
89216         * lib/file-type.h (file_type): Move all macro definitions to new file,
89217         stat-macros.h.
89218
89219         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89220         Wrap old code with this conditional.
89221         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89222         function that does not dereference symlinks.
89223         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89224
89225         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89226         dependency problems.
89227         (xreadlink): Accept new arg SIZE, for efficiency.
89228         All decls and uses changed.
89229         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89230
89231         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89232         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89233
89234         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89235         sysexits.h.
89236
89237 2004-06-01  Jim Meyering  <jim@meyering.net>
89238
89239         * m4/calloc.m4: New file.
89240
89241 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89242
89243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89244         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89245         Also, fix a typo in a diagnostic.
89246
89247 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89248
89249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89250         or AC_FUNC_REALLOC.
89251
89252 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89253
89254         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89255         macros to be defined.
89256         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89257         the allocator returns NULL because the requested size is zero.
89258
89259 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89260
89261         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89262         var.  Add comment explaining why libc still defines it.  This
89263         merges the following patch from glibc:
89264         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89265
89266 2004-05-20  Andreas Schwab  <schwab@suse.de>
89267
89268         * m4/free.m4: Replace free if it not known to work, not the other
89269         way round.
89270
89271 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89272
89273         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89274         present in glibc since revision 1.1 of this file.
89275         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89276         obstack_alignment_mask, obstack_alloc, obstack_base,
89277         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89278         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89279         obstack_grow0, obstack_init, obstack_int_grow,
89280         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89281         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89282         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89283         nonexistent functions.
89284
89285 2004-05-18  Karl Berry  <karl@gnu.org>
89286
89287         * config/srclist.txt: break link for vasnprintf.c.
89288
89289 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89290
89291         Port obstack to the AS/400, where pointers are 16 bytes wide and
89292         you cannot cast an integer to a valid pointer.  This patch is
89293         currently waiting to be integrated into glibc; see
89294         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89295
89296         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89297         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89298         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89299         (struct obstack): temp member is now a union of a pointer and
89300         an integer, instead of an integer.  All integer uses changed.
89301         This does not affect the physical layout of struct obstack,
89302         except on hosts (like the AS/400) where the size or alignment of
89303         void * is greater than that of ptrdiff_t.
89304         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89305         __STDC__)]: Store temporary in pointer member of union, not
89306         integer member.
89307         * lib/obstack.c: Include <stddef.h>, for offsetof.
89308         (struct fooalign): Remove; it doesn't need a name.
89309         (union fooround): Change double to long double, and add void *.
89310         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89311         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89312         not a macro.  Hence the values are always int; so remove all
89313         casts-to-int in uses.
89314
89315 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89316
89317         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89318         we can get this patch merged into glibc.
89319
89320 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89321             Paul Eggert  <eggert@cs.ucla.edu>
89322
89323         * m4/argp: Depend on alloca.
89324
89325 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89326             Paul Eggert  <eggert@cs.ucla.edu>
89327
89328         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89329         freecoding.
89330
89331 2004-05-17  Bruno Haible  <bruno@clisp.org>
89332
89333         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89334         precision that consists of a '.' followed by an empty digit string.
89335         Patch by Tor Lillqvist <tml@iki.fi>.
89336
89337 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89338
89339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89340         for backward compatibility with older code.  We need our own
89341         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89342         it under some other name, and our alloca.h will define it.
89343
89344 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89345             Derek Price  <derek@ximbiot.com>
89346
89347         * lib/alloca.c: Include <alloca.h>, to get our interface.
89348         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89349         include <alloca.h> first.  Use C89 prototype for alloca; this
89350         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89351         Use #elif for simplicity, since we can assume C89 now.
89352         Don't try to source the system alloca.h since it will not be found
89353         and to prevent recursively including its replacement.
89354         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89355         * lib/regex.c: Likewise.
89356
89357 2004-05-16  Derek Price  <derek@ximbiot.com>
89358             Paul Eggert  <eggert@cs.ucla.edu>
89359
89360         getline cleanup.  This changes the getndelim2 API: both order of
89361         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89362         no delimiter).
89363
89364         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89365         interface does that.
89366         (getline): Always use getdelim, so that we don't have two
89367         copies of this code.
89368         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89369         if available.
89370         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89371         (GETNDELIM2_MAXIMUM): New macro.
89372         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89373         instead of the old practice of delim2==0.  All callers changed.
89374         Return -1 on overflow, instead of returning junk.
89375         Do not set *linesize unless allocation succeeds.
89376         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89377         that we include sys/types.h.
89378         * lib/getnline.h: Likewise.
89379         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89380         (getndelim2): Reorder arguments.
89381         * lib/getnline.c (getnline, getndelim):
89382         Don't discard the NMAX argument.
89383         (getnline): Invoke getndelim, to avoid code duplication.
89384         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89385         of (size_t) -1 by callers of the getnline family.
89386
89387 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89388
89389         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89390         Check for gettimeofday.
89391         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89392         Check for settimeofday, stime.
89393
89394 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89395
89396         * lib/nanosleep.c (suspended): Change its type from int to
89397         sig_atomic_t volatile.
89398         (first_call): Make it private to rpl_nanosleep, and have it
89399         be zero initially as that's a bit faster.
89400         (my_usleep): Round up fractional times instead of truncating them,
89401         as this is the usual meaning for 'sleep'.
89402
89403         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89404         doesn't work.
89405         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89406         (ENOSYS): Define if not defined.
89407         (settime): Fall back on stime if it exists and settimeofday fails.
89408         But don't bother with fallbacks if a method fails with errno == EPERM.
89409
89410 2004-05-11  Jim Meyering  <jim@meyering.net>
89411
89412         Prior to this change, the save_cwd caller required read access to the
89413         current directory on most systems (ones with the fchdir function).
89414
89415         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89416         fails, try write-only, and finally, resort to using xgetcwd.
89417
89418 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89419
89420         * lib/obstack.c, obstack.h: Import changes from libc.
89421
89422 2004-04-28  Bruno Haible  <bruno@clisp.org>
89423
89424         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89425         also implicitly appends .exe to executables.
89426         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89427         accepts Windows pathnames.
89428         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89429         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89430         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89431         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89432         Reported by Derek Robert Price <derek@ximbiot.com>.
89433
89434 2004-04-21  Karl Berry  <karl@gnu.org>
89435
89436         * config/srclist.txt (localcharset.c): break sync.
89437
89438 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89439
89440         * m4/host-os.m4: Add a copyright notice.
89441
89442 2004-04-20  Jim Meyering  <jim@meyering.net>
89443
89444         Change UTILS_ to gl_ in AC_DEFINE'd names.
89445         Change utils_- and jm_-prefixed variables, too.
89446         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89447         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89449
89450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89451         Don't emit trailing blanks.
89452         Also rename jm_-prefixed variables to have gl_ prefix.
89453
89454         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89455         Also rename jm_-prefixed variables to have gl_ prefix.
89456
89457         * m4/jm-macros.m4: Reflect the renamings.
89458         * m4/prereq.m4: Likewise.
89459
89460 2004-04-20  Jim Meyering  <jim@meyering.net>
89461
89462         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89463         memory.
89464
89465 2004-04-20  Jim Meyering  <jim@meyering.net>
89466             Bruno Haible  <bruno@clisp.org>
89467
89468         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89469         memory when realloc fails.
89470
89471 2004-04-19  Jim Meyering  <jim@meyering.net>
89472
89473         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89474         now that readutmp.c may call `free (0)'.
89475
89476 2004-04-19  Bruno Haible  <bruno@clisp.org>
89477
89478         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89479         * m4/inttypes_h.m4: Likewise.
89480         * m4/stdint_h.m4: Likewise.
89481         * m4/intmax_t.m4: Likewise.
89482         * m4/uintmax_t.m4: Likewise.
89483
89484 2004-04-18  Jim Meyering  <jim@meyering.net>
89485
89486         * m4/prereq.m4: Don't forbid jm_ prefix.
89487
89488         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89489         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89490         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89491         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89492         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89493         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89494         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89495         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89496         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89497         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89498         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89499         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89500         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89501         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89502         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89503         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89504         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89505         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89506         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89507
89508 2004-04-18  Jim Meyering  <jim@meyering.net>
89509
89510         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89511         failure, don't leak memory and do call END_UTMP_ENT.
89512
89513 2004-04-16  Jim Meyering  <jim@meyering.net>
89514
89515         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89516         coreutils' stat program.
89517         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89518
89519 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89520
89521         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89522         C89.
89523         (CHAR_BIT): Remove, since we assume C89.
89524         Include <stdint.h> if available, as per current Autoconf CVS advice.
89525
89526 2004-03-31  Jim Meyering  <jim@meyering.net>
89527
89528         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89529         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89530         * m4/xalloc.m4: Likewise.
89531
89532 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89533
89534         Merge from coreutils.
89535
89536         * m4/inttostr.m4: New file.
89537         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89538         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89539         Require gl_CLOCK_TIME.
89540         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89541
89542 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89543
89544         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89545         not bool, to be more consistent with Unix conventions.
89546         Suggested by Bruno Haible.
89547
89548         Merge from coreutils.
89549
89550         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89551         * lib/umaxtostr.c: New files.
89552
89553         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89554         the usual <time.h> dance.
89555         (get_date): Change signature to support fractional time stamps.
89556         All callers changed.
89557         * lib/getdate.y: Include "getdate.h" first, as we can now
89558         assume C89 and don't need to worry about 'const'.
89559         Similarly, include "unlocked-io.h" near start, not in middle.
89560         Include <limits.h>.
89561         (textint.value): Use long int rather than int.
89562         (textint.digits): Use size_t rather than int.
89563         (BILLION, LOG10_BILLION): New constants.
89564         (parser_control): New member rel_ns.  Members day_ordinal,
89565         time_zone, month, day, hour, minutes, rel_year, rel_month,
89566         rel_day, rel_hour, rel_minutes, rel_seconds
89567         are now long int, not int.  Member seconds is now struct timespec,
89568         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89569         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89570         not int.
89571         (%union.intval): Now long int, not int.
89572         New member timespec.
89573         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89574         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89575         (spec): Now is a timespec or an item list.
89576         (timespec, items): New nonterminals.
89577         (time, rel, relunit, number, get_date):
89578         Add support for fractional seconds.
89579         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89580         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89581         (to_hour): First arg is now long int, not int.
89582         (to_year): Returns long int, not int.
89583         Don't treat year -70 like 70.
89584         (tm_diff): Returns long int, not int.
89585         (lookup_word): Use bool instead of int when appropriate.
89586         (yylex): Use size_t for count, not int.
89587         Detect overflow when parsing large integer constants.
89588         Add support for fractions.
89589         (get_date): Make pointers 'const' if possible.
89590         Use more-portable code to detect integer overflow.
89591         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89592         Don't use ctime; it's not reliable if the year has >4 digits.
89593
89594         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89595         This is for compatibility with BSD.
89596
89597         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89598         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89599         From coreutils' system.h.
89600
89601         * lib/userspec.c: Don't include "posixver.h".
89602         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89603         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89604         compatible extension.  Simplify code by removing a boolean int
89605         that was always nonzero if a string was nonnull.
89606
89607 2004-03-30  Jim Meyering  <jim@meyering.net>
89608
89609         Merge from coreutils.
89610
89611         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89612         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89613         on some systems one must include <grp.h> before it.
89614         Reported by Christian Krackowizer.
89615
89616 2004-03-30  Jim Meyering  <jim@meyering.net>
89617
89618         Merge from coreutils.
89619
89620         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89621
89622         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89623         an empty input stream.
89624
89625         * lib/readtokens.c: Include <stdbool.h>.
89626         (readtoken): Use `size_t' rather than int/long.
89627         All callers adjusted.
89628         Use `bool' rather than `int' where appropriate.
89629         Use memset rather than an explicit loop.
89630         Use x2nrealloc rather than xrealloc.
89631         Allow the use of `\0' as a delimiter.
89632         (readtokens): Likewise.
89633         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89634
89635 2004-03-30  Jim Meyering  <jim@meyering.net>
89636
89637         * m4/realloc.m4: Remove file, since now it does no more than
89638         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89639         the `configure.ac' section of module/realloc.
89640         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89641
89642 2004-03-30  Bruno Haible  <bruno@clisp.org>
89643
89644         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89645         nonnull.
89646
89647 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89648
89649         Merge changes to getloadavg.c from coreutils and Emacs.
89650
89651         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89652         Define to an expression, not to the empty string.
89653         Include cloexec.h and xalloc.h.
89654         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89655         Use set_cloexec_flag rather than rolling our own.
89656         * lib/cloexec.c, lib/cloexec.h: New files.
89657
89658 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89659
89660         * m4/cloexec.m4: New file.
89661
89662 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89663
89664         * lib/getopt.h: Sync with libc CVS.
89665
89666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89667             Bruno Haible  <bruno@clisp.org>
89668
89669         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89670         mbswidth.
89671
89672 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89673             Bruno Haible  <bruno@clisp.org>
89674
89675         * lib/mbswidth.h: Include <wchar.h> only if
89676         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89677         <wchar.h>.
89678         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89679
89680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89681
89682         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89683         Sync with libc CVS.
89684         * lib/getopt_int.h: New file, also synced from libc.
89685
89686 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89687
89688         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89689         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89690         Bring back getopt.c, getopt.h, getopt1.c.
89691
89692 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89693
89694         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89695         All uses changed.  Check for sa_sigaction member; this fixes
89696         a bug first reported by Jason Andrade in
89697         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89698
89699 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89700
89701         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89702         '#if' expressions.  Unlike the code it replaces, it does not
89703         depend on (defined _SC_PAGESIZE).  However, it does depend on
89704         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89705         first reported by Jason Andrade in
89706         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89707
89708 2004-02-25  Simon Josefsson  <jas@extundo.com>
89709
89710         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89711
89712 2004-02-25  Simon Josefsson  <jas@extundo.com>
89713
89714         * lib/strdup.h: New file.
89715         * lib/strdup.c: Include it.
89716         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89717         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89718
89719 2004-02-23  Karl Berry  <karl@gnu.org>
89720
89721         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89722         (from fencepost.gnu.org:/gd/gnuorg).
89723
89724 2004-02-23  Karl Berry  <karl@gnu.org>
89725
89726         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89727         * config/srclist.txt: add maintain/standards documents.
89728
89729 2004-02-18  Bruno Haible  <bruno@clisp.org>
89730
89731         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89732         Reported by Derek Robert Price <derek@ximbiot.com>.
89733
89734 2004-02-16  Karl Berry  <karl@gnu.org>
89735
89736         * config/mkinstalldirs, install-sh: update from automake.
89737
89738 2004-02-06  Karl Berry  <karl@gnu.org>
89739
89740         * m4/po.m4: update from gettext 0.14.1.
89741
89742 2004-02-06  Karl Berry  <karl@gnu.org>
89743
89744         * lib/config.charset: update from gettext 0.14.1.
89745
89746 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89747
89748         Add comments and code, prompted by suggestions from Bruno Haible
89749         for sh-quote.
89750         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89751         describing the enum quoting_style values.
89752         * lib/quotearg.c (quotearg_alloc): New function.
89753         (quotearg_buffer_restyled): Treat lone { and } as special.
89754         Treat = as special.  Work around bug with older shells
89755         that "see" a '\' that is really the 2nd byte of a multibyte char.
89756         Quote empty string with shell_quoting_style.
89757
89758 2004-02-03  Bruno Haible  <bruno@clisp.org>
89759
89760         * m4/pipe.m4: New file, from GNU gettext.
89761
89762 2004-02-03  Bruno Haible  <bruno@clisp.org>
89763
89764         * lib/pipe.h: New file, from GNU gettext.
89765         * lib/pipe.c: New file, from GNU gettext.
89766
89767 2004-01-27  Bruno Haible  <bruno@clisp.org>
89768
89769         * m4/execute.m4: New file, from GNU gettext.
89770
89771 2004-01-27  Bruno Haible  <bruno@clisp.org>
89772
89773         * lib/execute.h: New file, from GNU gettext.
89774         * lib/execute.c: New file, from GNU gettext.
89775         * lib/w32spawn.h: New file, from GNU gettext.
89776
89777 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89778
89779         Merge from diffutils.
89780
89781         * lib/file-type.c (file_type): Add typed memory objects.
89782         * lib/file-type.h (S_TYPEISTMO): New macro.
89783
89784         * lib/c-stack.h (c_stack_action): Remove argv argument.
89785         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89786         (die): Don't calculate message unless segv_action returns.
89787         (get_stack_location, min_address_from_argv, max_address_from_argv,
89788         volatile stack_base, volatile_stack_size): Remove.
89789         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89790         that every segmentation violation is a stack overflow.  (Ouch!)
89791         See Debian bug 136249 (still outstanding) for more info about why
89792         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89793
89794 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89795
89796         Exit-status fix from coreutils.
89797
89798         Use exit_failure consistently in place of EXIT_FAILURE,
89799         so that program exit statuses are consistent on failure.
89800
89801         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89802         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89803         * lib/argmatch.h: Comment fix to match the above.
89804         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89805         Now a macro referring to exit_failure, instead of a separate
89806         variable.  Include "exitfail.h" to get it.
89807         * lib/xstrtol.h: Include "exitfail.h".
89808         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89809
89810         * lib/long-options.c (parse_long_options): Use prototype
89811         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89812         for clarity.
89813
89814 2004-01-21  Jim Meyering  <jim@meyering.net>
89815
89816         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89817         so as not to conflict with a different-sized __mktime_internal
89818         function in GNU libc.
89819         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89820         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89821
89822 2004-01-20  Karl Berry  <karl@gnu.org>
89823
89824         * config/config.guess: update from config.
89825
89826         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89827
89828 2004-01-20  Bruno Haible  <bruno@clisp.org>
89829
89830         Safer stack allocation.
89831         * lib/setenv.c: Include allocsa.h.
89832         (alloca): Remove fallback definition.
89833         (freea): Remove macro.
89834         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89835         instead of freea.
89836
89837 2004-01-20  Bruno Haible  <bruno@clisp.org>
89838
89839         * m4/eealloc.m4: New file, from GNU gettext.
89840
89841 2004-01-20  Bruno Haible  <bruno@clisp.org>
89842
89843         * m4/allocsa.m4: New file, from GNU gettext.
89844
89845 2004-01-20  Bruno Haible  <bruno@clisp.org>
89846
89847         * lib/xallocsa.h: New file, from GNU gettext.
89848         * lib/xallocsa.c: New file, from GNU gettext.
89849
89850 2004-01-20  Bruno Haible  <bruno@clisp.org>
89851
89852         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89853
89854 2004-01-20  Bruno Haible  <bruno@clisp.org>
89855
89856         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89857         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89858         specially.
89859
89860 2004-01-20  Bruno Haible  <bruno@clisp.org>
89861
89862         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89863         patch.
89864
89865 2004-01-20  Bruno Haible  <bruno@clisp.org>
89866
89867         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89868
89869 2004-01-20  Bruno Haible  <bruno@clisp.org>
89870
89871         * lib/eealloc.h: New file.
89872
89873 2004-01-20  Bruno Haible  <bruno@clisp.org>
89874
89875         * lib/binary-io.h: Avoid warnings on Cygwin.
89876
89877 2004-01-20  Bruno Haible  <bruno@clisp.org>
89878
89879         * lib/allocsa.h: New file, from GNU gettext.
89880         * lib/allocsa.c: New file, from GNU gettext.
89881
89882 2004-01-18  Karl Berry  <karl@gnu.org>
89883
89884         * doc/gpl.texi, doc/lgpl.texi: new files.
89885
89886 2004-01-18  Karl Berry  <karl@gnu.org>
89887
89888         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89889         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89890
89891 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89892
89893         Merge from coreutils.
89894
89895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89896         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89897         (gl_DEFAULT_POSIX2_VERSION): Move
89898         the documentation from 'configure' into 'config.hin',
89899         so that 'configure --help' isn't burdened by it and
89900         we don't have to worry about its formatting there.
89901         Reword the documentation so that it's more succinct
89902         and can be run together into a single paragraph.
89903         * m4/same.m4 (gl_SAME): Check for pathconf.
89904
89905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89906
89907         Merge from coreutils.
89908
89909         * lib/posixver.c: Include posixver.h.
89910
89911         * lib/same.c: Include <stdbool.h>, <limits.h>.
89912         (_POSIX_NAME_MAX): Define if not defined.
89913         (MIN): New macro.
89914         (same_name): If file names are silently truncated, report
89915         that the file names are the same if they are the same after
89916         the silent truncation.
89917
89918         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89919         conversion function.
89920         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89921         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89922         longer needed.
89923
89924 2004-01-15  Jim Meyering  <jim@meyering.net>
89925
89926         Merge from coreutils.
89927
89928         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89929         if no library is required.
89930         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89931         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89932         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89933         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89934         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89935         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89936         value, $ac_cv_search_crypt, if it's "none required".
89937         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89938         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89939         not gl_FUNC_GETLOADAVG.
89940         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89941         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89942
89943 2004-01-15  Jim Meyering  <jim@meyering.net>
89944
89945         Merge from coreutils.
89946
89947         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89948         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89949         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89950
89951         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89952         optional configure-time default.
89953
89954         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89955
89956         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89957
89958 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89959
89960         Merge from coreutils.
89961
89962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89963         value, $ac_cv_search_nanosleep, if it's "none required".
89964
89965 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89966
89967         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89968         with like-named macro in fnmatch.c.
89969         (EXT): Use an internal constant instead.
89970
89971         Merge fnmatch patches from glibc.
89972         * lib/fnmatch.c (mbsinit): Remove define.
89973         Add libc_hidden_ver (__fnmatch, fnmatch).
89974         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89975         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89976
89977 2004-01-14  Karl Berry  <karl@gnu.org>
89978
89979         * config/install-sh: update from automake.
89980
89981 2004-01-13  Karl Berry  <karl@gnu.org>
89982
89983         * config/install-sh: update from automake.
89984
89985 2004-01-09  Karl Berry  <karl@gnu.org>
89986
89987         * config/install-sh: update from automake.
89988
89989 2004-01-05  Karl Berry  <karl@gnu.org>
89990
89991         * config/config.{sub,guess}: update from config.
89992
89993 2003-12-31  Karl Berry  <karl@gnu.org>
89994
89995         * config/depcomp: update from automake.
89996
89997 2003-12-14  Karl Berry  <karl@gnu.org>
89998
89999         * lib/config.charset: update from gettext-runtime.
90000
90001 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90002
90003         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90004         Bug reported by Alfred M. Szmidt.
90005
90006 2003-12-03  Bruno Haible  <bruno@clisp.org>
90007
90008         * m4/gettext.m4: Upgrade from gettext-0.13.
90009         * m4/po.m4: Upgrade from gettext-0.13.
90010         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90011         * m4/intmax.m4: New file, from gettext-0.13.
90012         * m4/printf-posix.m4: New file, from gettext-0.13.
90013
90014 2003-11-29  Karl Berry  <karl@gnu.org>
90015
90016         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90017
90018 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90019             Bruno Haible  <bruno@clisp.org>
90020
90021         * lib/printf-parse.h: Don't include sys/types.h.
90022         (ARG_NONE): New macro.
90023         (char_directive): Change type of *arg_index fields to size_t.
90024         * lib/printf-parse.c: Don't include sys/types.h.
90025         (SSIZE_MAX): Remove macro.
90026         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90027         Remove unnecessary overflow check.
90028         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90029         fields.
90030
90031 2003-11-25  Bruno Haible  <bruno@clisp.org>
90032
90033         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90034
90035 2003-11-25  Bruno Haible  <bruno@clisp.org>
90036
90037         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90038         gt_TYPE_SSIZE_T.
90039
90040 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90041
90042         * modules/alloca: Remove dependency on xalloc.
90043
90044 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90045
90046         * lib/alloca.c: Remove dependency on xalloc module.
90047         (xalloc_die): Remove.
90048         (memory_full) [!defined emacs]: New macro.
90049         [!defined emacs]: Don't include xalloc.h.
90050         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90051         address arithmetic overflows.  Change datatypes a bit to avoid
90052         unnecessary casts.
90053
90054 2003-11-22  Jim Meyering  <jim@meyering.net>
90055
90056         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90057         s/size/size_t/.
90058
90059 2003-11-21  Karl Berry  <karl@gnu.org>
90060
90061         * config/config.{sub,guess}: update from config.
90062
90063 2003-11-18  Karl Berry  <karl@gnu.org>
90064
90065         * config/config.{sub,guess}: update from config.
90066
90067         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90068
90069 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90070
90071         * README: Mention that S+T cannot overflow if S is the size of
90072         an existing object and T is sufficiently small.
90073
90074 2003-11-17  Jim Meyering  <jim@meyering.net>
90075
90076         On systems without utime and without a utimes function capable of
90077         dealing with a NULL struct utimbuf* argument, this utime replacement
90078         could -- in unusual circumstances -- leak a file descriptor.
90079         * lib/utime.c: Include <unistd.h> and <errno.h>.
90080         (utime_null): Be sure to close `fd' and to preserve errno.
90081         Reported by Geoff Collyer via Arnold Robbins.
90082
90083 2003-11-17  Bruno Haible  <bruno@clisp.org>
90084
90085         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90086         (Depends-on): Add xsize.
90087
90088 2003-11-17  Bruno Haible  <bruno@clisp.org>
90089
90090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90091
90092 2003-11-17  Bruno Haible  <bruno@clisp.org>
90093
90094         * lib/vasnprintf.c (alloca): Remove fallback definition.
90095         (freea): Remove definition.
90096         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90097         Reported by Paul Eggert.
90098
90099 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90100             Bruno Haible  <bruno@clisp.org>
90101
90102         Protect against address arithmetic overflow.
90103         * lib/printf-args.h: Include stddef.h.
90104         (arguments): Change type of field 'count' to size_t.
90105         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90106         'unsigned int' where appropriate.
90107         * lib/printf-parse.h: Include sys/types.h.
90108         (char_directive): Change type of *arg_index fields to ssize_t.
90109         (char_directives): Change type of fields 'count', max_*_length to
90110         size_t.
90111         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90112         (SSIZE_MAX): Define fallback value.
90113         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90114         instead of 'int' where appropriate. Check a_allocated, d_allocated
90115         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90116         * lib/vasnprintf.c: Include xsize.h.
90117         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90118         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90119         overflow. Avoid wraparound when converting a width or precision from
90120         decimal to binary.
90121
90122 2003-11-16  Bruno Haible  <bruno@clisp.org>
90123
90124         Update from GNU gettext.
90125         * lib/printf-parse.c: Generalize to it can be compiled for wide
90126         strings.
90127         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90128         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90129         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90130         SNPRINTF): New macros.
90131         Don't include <alloca.h> if the file is used inside libintl.
90132         (local_wcslen): New function, for Solaris 2.5.1.
90133         (VASNPRINTF): Use it instead of wcslen.
90134
90135 2003-11-16  Bruno Haible  <bruno@clisp.org>
90136
90137         * lib/xsize.h (xmax): New function.
90138         (xsum, xsum3, xsum4): Declare as "pure" functions.
90139
90140 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90141
90142         * modules/xalloc (Files): Undo latest change, since xalloc.h
90143         no longer needs SIZE_MAX or PTRDIFF_MAX.
90144
90145 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90146
90147         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90148         gl_PTRDIFF_MAX.
90149
90150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90151
90152         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90153         "return", to pacify some unknown compiler.  Problem reported
90154         by Joerg Schilling.
90155
90156 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90157
90158         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90159         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90160         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90161         heuristic is just as accurate as far as we know, and it removes a
90162         dependency on size_max.m4 and ptrdiff_max.m4.
90163
90164 2003-11-11  Bruno Haible  <bruno@clisp.org>
90165
90166         * modules/xsize (Files): Add m4/size_max.m4.
90167         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90168
90169 2003-11-11  Bruno Haible  <bruno@clisp.org>
90170
90171         * m4/size_max.m4: New file.
90172         * m4/ptrdiff_max.m4: New file.
90173         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90175         (gl_XALLOC): Invoke it.
90176
90177 2003-11-11  Bruno Haible  <bruno@clisp.org>
90178
90179         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90180         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90181         defined.
90182
90183 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90184
90185         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90186         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90187         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90188         From Bruno Haible.
90189         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90190         not (size_t) -1, since it's defined here.
90191
90192 2003-11-09  Karl Berry  <karl@gnu.org>
90193
90194         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90195
90196 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90197
90198         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90199         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90200         Reject sizes of exactly SIZE_MAX bytes.
90201         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90202         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90203
90204 2003-11-05  Bruno Haible  <bruno@clisp.org>
90205
90206         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90207         SIZE_MAX defined in <limits.h> on Solaris.
90208
90209 2003-11-04  Jim Meyering  <jim@meyering.net>
90210
90211         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90212         variable names, rather than @VAR@.
90213         * modules/poll: Likewise.
90214
90215 2003-11-04  Bruno Haible  <bruno@clisp.org>
90216
90217         * modules/xsize: New file.
90218         * modules/linebreak: Depend on xsize.
90219         * MODULES.html.sh (func_all_modules): Add xsize.
90220
90221 2003-11-04  Bruno Haible  <bruno@clisp.org>
90222
90223         * m4/xsize.m4: New file.
90224
90225 2003-11-04  Bruno Haible  <bruno@clisp.org>
90226
90227         * lib/xsize.h: New file.
90228         * lib/linebreak.c: Include xsize.h.
90229         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90230         argument for overflow.
90231         Suggested by Paul Eggert.
90232
90233 2003-11-03  Karl Berry  <karl@gnu.org>
90234
90235         * config/config.{guess,sub}: update from config.
90236
90237 2003-11-03  Jim Meyering  <jim@meyering.net>
90238
90239         * modules/userspec (lib_SOURCES): Add userspec.h.
90240         (Include): Add "userspec.h".
90241         Improve description.
90242
90243 2003-11-03  Jim Meyering  <jim@meyering.net>
90244
90245         * lib/userspec.c: Include "userspec.h".
90246         * lib/userspec.h: New file.
90247
90248 2003-11-03  Bruno Haible  <bruno@clisp.org>
90249
90250         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90251
90252 2003-11-03  Bruno Haible  <bruno@clisp.org>
90253
90254         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90255         available, to avoid (extremely rare) race condition.
90256         Suggested by Paul Eggert.
90257
90258 2003-11-02  Karl Berry  <karl@gnu.org>
90259
90260         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90261
90262 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90263
90264         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90265         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90266         (read_filesystem_list): Set and use me_type_malloced.
90267         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90268         whatever the type happens to be), for brevity and consistency.
90269         Check for size calculation overflow on Alphas running OSF/1.
90270
90271 2003-10-31  Jim Meyering  <jim@meyering.net>
90272
90273         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90274
90275         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90276
90277 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90278             Bruno Haible  <bruno@clisp.org>
90279
90280         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90281         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90282
90283 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90284
90285         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90286         netbsd*-gnu*.  Suggested by Robert Millan.
90287
90288 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90289
90290         * modules/group-member: Depend on stdbool.
90291
90292 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90293
90294         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90295
90296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90297
90298         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90299         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90300         after the 'gnu' in these cases.  This fixes some bugs in the
90301         previous change, and is based on suggestions by Robert Millan.
90302
90303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90304
90305         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90306         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90307         no longer needed.
90308         * lib/quotearg.c (quotearg_n_options): Use it.
90309         * lib/group-member.c: Include <stdbool.h>.
90310         (free_group_info): Arg is now const *; don't free arg.
90311         (get_group_info): Now returns bool and accepts struct group_info *,
90312         rather than returning a malloc'ed struct group_info *.
90313         All uses changed.  Check for overflow in internal size calculation.
90314
90315         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90316         rather than xmalloc/xrealloc.
90317         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90318         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90319         conformance bug: the old code used a pointer after freeing the
90320         storage that it addressed.
90321         * lib/hash.c (hash_initialize): Simplify the code by using
90322         xalloc_oversized rather than doing it by hand.
90323         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90324         the buffer preserved.  Use free and xmalloc instead.
90325         * lib/quotearg.c (quotearg_n_options): Likewise.
90326         Use a simpler test for size overflow.  Don't use xalloc_oversized
90327         because unsigned int might be wider than size_t (!); this suggests
90328         that we should switch from unsigned int to size_t for slot numbers.
90329
90330 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90331
90332         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90333         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90334         NetBSD kernels.  Requested by Richard Stallman.
90335
90336 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90337
90338         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90339         to allocate the returned structure.  Do not allocate a subarray,
90340         as x2nrealloc will do that.
90341         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90342         instead of xnrealloc.
90343         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90344
90345 2003-10-27  Bruno Haible  <bruno@clisp.org>
90346
90347         * lib/stdbool_.h: Better support for BeOS.
90348
90349 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90350
90351         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90352         now uses inline.
90353
90354 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90355
90356         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90357         callers that want to do their own size-overflow checking.  Include
90358         <stdbool.h>, since xalloc_oversized returns bool.
90359         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90360         to use xalloc_oversized.
90361
90362         Add two functions x2realloc, x2nrealloc, for programs that grow
90363         arrays dynamically by doubling their sizes.
90364         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90365         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90366         New functions.
90367
90368         Port to C99 semantics for 'inline' of external functions.
90369         Bug reported by Bruno Haible.
90370         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90371         with the old contents of xnmalloc.
90372         (xnmalloc, xmalloc): Use it.
90373         (xnrealloc_inline): New static inline function,
90374         with the old contents of xnrealloc.
90375         (xnrealloc, xrealloc): Use it.
90376
90377         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90378         that.
90379
90380 2003-10-26  Karl Berry  <karl@gnu.org>
90381
90382         * config/srclist.txt (COPYING.DOC): no longer available from
90383         /gd/gnuorg; don't know where the ultimate source is.
90384
90385 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90386
90387         Fix several address-calculation bugs in the hash modules,
90388         plus some minor code cleanup.
90389
90390         * lib/hash.h: Include <stdbool.h>, for bool.
90391         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90392         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90393         hash_get_n_entries, hash_get_max_bucket_length,
90394         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90395         hash_rehash): Use size_t rather than unsigned.
90396         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90397         hash_get_n_buckets_used, hash_get_n_entries,
90398         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90399         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90400         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90401         Likewise.
90402         (SIZE_MAX): Define if not defined.
90403         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90404         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90405         hash_print):
90406         Use const * when possible.
90407         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90408         (check_tuning): Fix bug: if tuning parameters were very close to
90409         0 or 1, rounding errors could have caused subscript violations.
90410         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90411         (hash_initialize): Add 'fail:' label
90412         to free table and return NULL, and use it to simplify code.
90413         Use calloc rather than clearing the storage ourself.
90414         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90415         buffer size calculations.
90416         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90417         Include <stddef.h>, for size_t.
90418         * lib/hash-pjw.c (hash_pjw): Likewise.
90419         Switch to method described by Bruno Haible.
90420         Include <limits.h>, for CHAR_BIT.
90421         (SIZE_BITS): New macro.
90422
90423 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90424
90425         * m4/getline.m4 (AM_FUNC_GETLINE):
90426         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90427         hosts.  Problem reported by Derek Robert Price in
90428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90429         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90430         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90431
90432 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90433
90434         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90435         ceiling the allocation at NMAX bytes rather than silently
90436         discarding input bytes before NMAX is reached.  This makes
90437         a difference only if NMAX exceeds SIZE_MAX / 2.
90438
90439         * lib/obstack.c: Merge from glibc.
90440         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90441         Add libc_hidden_def (_obstack_newchunk).
90442         (_obstack_free) [! defined _LIBC]: Remove.
90443         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90444         a clone of the function body.
90445         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90446         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90447
90448         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90449         glibc.
90450         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90451         arg to memcpy.
90452
90453         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90454         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90455         Don't use lvalue casts, as GCC plans to remove support for them
90456         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90457         was also present in the non-GCC version, indicating that this
90458         code had always been buggy and had never been widely used.
90459         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90460         Use the fast variant of each macro, rather than copying the
90461         definiens of the fast variant; that way, we'll be more likely to
90462         catch future bugs in the fast variants.
90463
90464 2003-10-20  Bruno Haible  <bruno@clisp.org>
90465
90466         * modules/wait-process: New file.
90467         * MODULES.html.sh (func_all_modules): Add wait-process.
90468
90469 2003-10-20  Bruno Haible  <bruno@clisp.org>
90470
90471         * m4/wait-process.m4: New file.
90472
90473 2003-10-20  Bruno Haible  <bruno@clisp.org>
90474
90475         * lib/wait-process.h: New file, from GNU gettext.
90476         * lib/wait-process.c: New file, from GNU gettext.
90477
90478 2003-10-19  Jim Meyering  <jim@meyering.net>
90479
90480         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90481         HPUX 10.20.
90482
90483 2003-10-18  Karl Berry  <karl@gnu.org>
90484
90485         * config/config.guess: update from config.
90486
90487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90488
90489         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90490         (getgroups): First arg is int, not size_t.
90491         Don't let 'free' mangle errno.
90492
90493 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90494
90495         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90496
90497 2003-10-16  Karl Berry  <karl@gnu.org>
90498
90499         * config/config.{guess,sub}: update from config.
90500
90501 2003-10-16  Jim Meyering  <jim@meyering.net>
90502
90503         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90504         memcpy.
90505
90506 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90507
90508         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90509         (SIZE_MAX): Remove.
90510         (new_exclude, add_exclude_file): Initial size no longer needs to
90511         be a power of 2.
90512         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90513         our own address arithmetic overflow checking.
90514
90515         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90516         (fnmatch): Do not alloca more than 2000 wide characters;
90517         instead, use malloc for large buffers.
90518         Check for address arithmetic overflow, and return -1
90519         with errno set to ENOMEM in that case.
90520         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90521         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90522         instead, return -1.  Check for address arithmetic overflow.
90523
90524 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90525
90526         Handle invalid suffixes and overflow independently, so that
90527         callers can treat them independently as needed.  Fix some bugs in
90528         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90529         suffix for a human-readable blocksize.  The major caller-visible
90530         change is the addition of a new
90531         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90532         that both overflow and suffix chars were found.
90533
90534         * lib/human.c (humblock): Don't check separately for invalid suffix
90535         char; that is xstrtoumax's job (now that its bug is fixed).
90536         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90537         INTMAX_MAX]: New macros.
90538         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90539         TYPE_MAXIMUM): New macros.
90540         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90541         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90542         if overflow occurs, as it's what __strtol does and it's more useful
90543         in practice.
90544         (__xstrtol): If __strtol reports some error other than ERANGE,
90545         reflect it to the caller as LONGINT_INVALID.  If it reports
90546         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90547         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90548         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90549         value.
90550         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90551         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90552         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90553         [defined UINTMAX_MAX]: New macros.
90554
90555 2003-10-14  Bruno Haible  <bruno@clisp.org>
90556
90557         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90558
90559 2003-10-14  Bruno Haible  <bruno@clisp.org>
90560
90561         * m4/sig_atomic_t: New file, from GNU gettext.
90562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90563
90564 2003-10-14  Bruno Haible  <bruno@clisp.org>
90565
90566         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90567         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90568         Also use volatile where needed.
90569
90570 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90571
90572         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90573         Change maintainer from Bruno Haible to 'all'.
90574
90575 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90576
90577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90578
90579 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90580
90581         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90582         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90583         and define in terms of the other primitives.
90584         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90585         (SIZE_MAX): Define if not already defined.
90586         (array_size_overflow): New function.
90587         (xalloc_die): Abort instead of exiting if 'error' returns.
90588         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90589         (xmalloc, xrealloc): Use them.
90590         (xcalloc): Check for address arithmetic overflow.
90591         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90592         a bit faster than strcpy.
90593
90594 2003-10-10  Simon Josefsson  <jas@extundo.com>
90595
90596         * modules/argp (Depends-on): Add restrict and strcase.
90597
90598 2003-10-10  Simon Josefsson  <jas@extundo.com>
90599
90600         * m4/argp.m4: Add AC_C_INLINE.
90601
90602 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90603
90604         Merge getpass from libc, plus a few fixes.
90605
90606         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90607         Include <stdbool.h>.
90608         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90609         __fsetlocking to empty.
90610         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90611         do include <bits/libc-lock.h>.
90612         Do not include <fcntl.h>; not needed.
90613         [_LIBC]: Include <wchar.h>.
90614         (NOTCANCEL_MODE): New macro.
90615         (flockfile, funlockfile) [_LIBC]: New macros.
90616         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90617         [!_LIBC]: New macros.
90618         (call_fclose): New function.
90619         (getpass): Use it.  Save tty stream separately; this simplifies the
90620         code and makes it more reliable if stdin happens to equal stdout.
90621         Invoke __fsetlocking on tty.
90622         Handle thread cancellation if needed.
90623         Namespace cleanup (use __tcgetattr, __getline).
90624         Use bool for Booleans.
90625         [USE_IN_LIBIO]: Handle wide streams.
90626         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90627         stream might go where.
90628
90629         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90630         doesn't have to include <stdio.h> before us.
90631         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90632         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90633         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90634         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90635         if not declared, so that we can use getpass.c code from libc without
90636         rewriting it.
90637         (flockfile, ftrylockfile, funlockfile): New macros.
90638
90639 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90640
90641         * modules/getpass: Depend on stdbool.
90642
90643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90644
90645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90646
90647 2003-10-07  Karl Berry  <karl@gnu.org>
90648
90649         * config/config.{guess,sub}: update from config.
90650
90651 2003-10-06  Jim Meyering  <jim@meyering.net>
90652             Bruno Haible  <bruno@clisp.org>
90653
90654         This lets translators provide better translations for the
90655         "Written by ..." part of --version output.
90656         * lib/version-etc.h: Include stdarg.h.
90657         (version_etc_copyright): Declare as readonly.
90658         (version_etc): Make this function variadic with a NULL-terminated list
90659         of author name strings.
90660         (version_etc_va): New declaration.
90661         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90662         (version_etc_copyright): Declare as readonly.
90663         (version_etc_va): New function. Provide a different translatable string
90664         for each possible number of authors < 10. Abbreviate when there are 10
90665         authors or more.
90666         (version_etc): Make this function variadic. Call version_etc_va.
90667         Suggestion from Gary V. Vaughan.
90668
90669         * lib/long-options.h (parse_long_options): Change prototype: the
90670         authors string is moved to the end and becomes variadic.
90671         * lib/long-options.c: Include stdarg.h.
90672         (parse_long_options): Make this function variadic, too.
90673         Call version_etc_va, not version_etc.
90674
90675 2003-10-06  Bruno Haible  <bruno@clisp.org>
90676
90677         * modules/version-etc-2: Remove file.
90678         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90679
90680 2003-10-06  Bruno Haible  <bruno@clisp.org>
90681
90682         * modules/fatal-signal: New file.
90683         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90684
90685 2003-10-06  Bruno Haible  <bruno@clisp.org>
90686
90687         * m4/fatal-signal.m4: New file.
90688         * m4/signalblocking.m4: New file, from GNU gettext.
90689
90690 2003-10-06  Bruno Haible  <bruno@clisp.org>
90691
90692         * lib/version-etc-2.h: Remove file.
90693         * lib/version-etc-2.c: Remove file.
90694
90695 2003-10-06  Bruno Haible  <bruno@clisp.org>
90696
90697         * lib/fatal-signal.h: New file, from GNU gettext.
90698         * lib/fatal-signal.c: New file, from GNU gettext.
90699
90700 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90701
90702         * README: Rework advice for preventing empty .o files.
90703         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90704         not <sys/types.h>.
90705
90706 2003-10-04  Karl Berry  <karl@gnu.org>
90707
90708         * lib/argp*: update from libc.
90709
90710 2003-10-04  Karl Berry  <karl@gnu.org>
90711
90712         * config/config.{guess,sub}: update from config.
90713
90714 2003-10-02  Bruno Haible  <bruno@clisp.org>
90715
90716         * modules/lchown (Include): Add lchown.h.
90717         * modules/time_r (Include): Use "..." syntax.
90718         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90719
90720 2003-10-01  Simon Josefsson  <jas@extundo.com>
90721
90722         * MODULES.html.sh (func_all_modules): Move gethostname from section
90723         'based on' to section 'lacking' POSIX:2001.
90724
90725 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90726
90727         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90728         to output mode on the same stream.
90729
90730 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90731
90732         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90733         Fix arg typo in previous patch.
90734
90735 2003-09-28  Jim Meyering  <jim@meyering.net>
90736
90737         * lib/error.c: Correct cpp indentation.
90738
90739 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90740
90741         * modules/free: New file.
90742
90743 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90744
90745         * m4/free.m4: New file.
90746
90747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90748
90749         * lib/minmax.h (MIN, MAX)
90750         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90751         Omit the special code that used __typeof__, since we worry that
90752         it could be more trouble than it's worth.  See:
90753         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90754         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90755
90756         * lib/free.c: New file.
90757
90758 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90759
90760         Trivial fixes to Makefile.am parts of module listings.
90761         * modules/strstr: Append strstr.h to lib_SOURCES.
90762         * modules/strcase: Likewise, for strcase.h.
90763
90764 2003-09-27  Karl Berry  <karl@gnu.org>
90765
90766         * config/mkinstalldirs: update from automake.
90767
90768 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90769
90770         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90771         (error_tail): Do not loop, reallocating temporary buffer, since
90772         the output cannot contain more wide characters than the input
90773         contains bytes, the size must be big enough already.  This avoids
90774         one potential size overflow calculation.  Check for size overflow
90775         when calculating temporary buffer size.  Free temporary buffer
90776         when done, if it was allocated with malloc; this plugs a memory
90777         leak.  Remove casts from void * to pointers, that are no longer
90778         needed now that we're assuming C89 or better.
90779
90780         Merge error changes from glibc.
90781
90782         * lib/error.c, error.h: Update copyright notice header to match glibc.
90783         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90784         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90785         Disable cancellation while printing error.
90786         * lib/error.h: Prepend __ to parameter names.
90787
90788 2003-09-26  Jim Meyering  <jim@meyering.net>
90789
90790         * lib/error.c (error_tail): Move some declarations
90791         into inner scope where the local variables are used.
90792
90793 2003-09-26  Bruno Haible  <bruno@clisp.org>
90794
90795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90796         stpncpy().
90797         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90798
90799 2003-09-26  Bruno Haible  <bruno@clisp.org>
90800
90801         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90802         (stpncpy): Define as alias for gnu_stpncpy.
90803         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90804
90805 2003-09-25  Simon Josefsson  <jas@extundo.com>
90806
90807         * lib/xgetdomainname.h: New file.
90808         * lib/xgetdomainname.c: New file.
90809
90810 2003-09-25  Simon Josefsson  <jas@extundo.com>
90811             Bruno Haible  <bruno@clisp.org>
90812
90813         * modules/getdomainname: New file.
90814         * modules/xgetdomainname: New file.
90815         * MODULES.html.sh (func_all_modules): Add getdomainname,
90816         xgetdomainname.
90817
90818 2003-09-25  Simon Josefsson  <jas@extundo.com>
90819             Bruno Haible  <bruno@clisp.org>
90820
90821         * m4/getdomainname.m4: New file.
90822
90823 2003-09-25  Simon Josefsson  <jas@extundo.com>
90824             Bruno Haible  <bruno@clisp.org>
90825
90826         * lib/getdomainname.h: New file.
90827         * lib/getdomainname.c: New file.
90828
90829 2003-09-25  Karl Berry  <karl@gnu.org>
90830
90831         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90832
90833 2003-09-25  Karl Berry  <karl@gnu.org>
90834
90835         * config/install-sh: update from automake.
90836
90837 2003-09-25  Bruno Haible  <bruno@clisp.org>
90838
90839         * modules/version-etc-2: New file, from modules/version-etc with
90840         modifications.
90841         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90842
90843 2003-09-25  Bruno Haible  <bruno@clisp.org>
90844
90845         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90846         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90847
90848 2003-09-24  Simon Josefsson  <jas@extundo.com>
90849
90850         * modules/xgethostname: Add xgethostname.h.
90851
90852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90853
90854         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90855         the buffer associated with the argument.  Bug reported by
90856         Simon Josefsson.
90857
90858 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90859
90860         * README: Document assumptions that 'int' is at least 32 bits
90861         wide, that integer arithmetic is 2's complement without overflow,
90862         that there are no holes in integer values, that adding sizes of
90863         two nonoverlapping objects can't overflow, and that all-bits-zero
90864         yields scalar zero.  Fix spelling and capitalization typos.
90865
90866 2003-09-19  Karl Berry  <karl@gnu.org>
90867
90868         * lib/argp.h: update from libc.
90869
90870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90871
90872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90873         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90874         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90875
90876 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90877
90878         * gnulib-tool: Use "test -h", not "test -L", for portability
90879         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90880         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90881         (sed_extract_prog): Issue s commands one-by-one, rather than
90882         using \| in one s command.
90883
90884 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90885
90886         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90887         input error, instead of returning NULL the next time we are called
90888         (and therefore losing track of errno).
90889
90890 2003-09-16  Bruno Haible  <bruno@clisp.org>
90891
90892         * gnulib-tool (func_create_testdir): Warn about duplicated
90893         dependencies.
90894
90895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90896
90897         * modules/argmatch, modules/fatal, modules/obstack,
90898         modules/xalloc, modules/xgethostname: Sort dependencies by
90899         importance, not alphabetically.
90900
90901 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90902
90903         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90904         fails, so that the caller gets the proper errno.
90905
90906         * lib/readutmp.c (read_utmp): Likewise.
90907         Check for fstat error.  Close stream and free storage
90908         when failing.
90909
90910 2003-09-14  Karl Berry  <karl@gnu.org>
90911
90912         * config/srclist.txt (strdup.c): disable for c89 changes.
90913
90914 2003-09-14  Jim Meyering  <jim@meyering.net>
90915
90916         * lib/getloadavg.c: Correct cpp indentation.
90917         * lib/strdup.c: Likewise.
90918         * lib/vasnprintf.c: Likewise.
90919
90920 2003-09-14  Bruno Haible  <bruno@clisp.org>
90921
90922         * modules/fwriteerror: New file.
90923         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90924
90925 2003-09-14  Bruno Haible  <bruno@clisp.org>
90926
90927         * lib/fwriteerror.h: New file.
90928         * lib/fwriteerror.c: New file.
90929
90930 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90931
90932         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90933         modules/xgethostname, modules/xalloc: Depend on exit.
90934
90935 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90936
90937         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90938
90939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90940         and AC_MINIX, too, so that their extensions are available.
90941
90942         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90943         This macro has been superseded by gl_BACKUPFILE.
90944
90945         More patches to assume C89 or better.
90946
90947         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90948
90949         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90950         unconditionally.
90951         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90952         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90953         Include <string.h>, <stdlib.h> unconditionally.
90954         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90955         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90956         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90957         headers or for string.h.
90958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90959         or strtoul.
90960
90961         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90962         headers.
90963         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90964         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90965         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90966         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90968         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90969         memcpy, memset.
90970         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90971         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90972         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90973         strtol.
90974         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90975         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90977         strtoul.
90978
90979 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90980
90981         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90982         * lib/obstack.c [!defined _LIBC]: Likewise.
90983         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90984         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90985         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90986
90987         More changes to assume C89 or better.
90988
90989         * lib/error.c (error_tail): Assume vprintf.
90990
90991         * lib/argmatch.c (getenv): Remove decl.
90992         * lib/progreloc.c (get_full_program_name): Define via prototype.
90993         * lib/setenv.c (clearenv): Likewise.
90994         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90995         needed.
90996         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90997         (malloc, memcpy): Remove decls.
90998         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90999         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91000         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91001         (memcpy): Remove macro.
91002         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91003         (__P): Remove.  All uses removed.
91004         (PTR): Remove.  All uses changed to void *.
91005         (CHAR_BIT, NULL): Remove.
91006         (spaces, zeros, memset_space, memset_zero)
91007         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91008         Remove.
91009         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91010         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91011         Define with prototype.
91012         Remove now-unnecessary prototype decl.
91013         (extra_args_spec): Assume ANSI C.  All uses changed.
91014         (extra_args_spec_iso): Remove.
91015         (my_strftime, emacs_strftimeu): Define via prototype.
91016         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91017         unconditionally.
91018         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91019         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91020         (strtoul, strtol): Remove decls.
91021         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91022         LONG_MAX): Remove.
91023         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91024         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91025         (LOCALE_PARAM_PROTO): New macro.
91026         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91027         (INTERNAL (strtol), strtol): Define with a prototype.
91028         (PARAMS): Remove.  All uses removed.
91029         * lib/tempname.c: Include <string.h> unconditionally.
91030         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91031         * lib/xgethostname.c (main): Define with a prototype.
91032         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91033         Include <stdlib.h> unconditionally.
91034         (calloc, malloc, realloc, free): Remove decls.
91035         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91036         Include <stdlib.h> unconditionally.  Sort include file names.
91037         (strtod): Remove.
91038         (xstrtod): Define with a prototype.
91039         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91040         (strtol, strtoul): Remove decls.
91041
91042 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91043
91044         More patches to assume C89 or better.
91045         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91046         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91047         string.h, memchr, STDC_HEADERS.
91048
91049 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91050
91051         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91052         Include <stdlib.h>, <string.h> unconditionally.
91053         Remove now-unnecessary cast to char *.
91054         * lib/strnlen.c: Include <string.h> unconditionally.
91055         * lib/yesno.c (yesno): Define with a prototype.
91056
91057 2003-09-11  Bruno Haible  <bruno@clisp.org>
91058
91059         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91060
91061 2003-09-10  Jim Meyering  <jim@meyering.net>
91062
91063         * lib/error.c: Correct indentation of cpp directives.
91064
91065 2003-09-10  Bruno Haible  <bruno@clisp.org>
91066
91067         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91068         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91069         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91070         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91072         <stdlib.h> and <string.h> checks.
91073         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91074         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91075
91076 2003-09-10  Bruno Haible  <bruno@clisp.org>
91077
91078         * lib/strcspn.c: Include <string.h> unconditionally.
91079         * lib/strpbrk.c: Include <string.h> unconditionally.
91080         * lib/strstr.c: Include <string.h> unconditionally.
91081         * lib/unicodeio.c: Include <string.h> unconditionally.
91082         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91083         * lib/unsetenv.c: Likewise.
91084         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91085         * lib/yesno.c: Include <stdlib.h> unconditionally.
91086         (rpmatch): Add prototype.
91087
91088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91089
91090         More patches to assume C89 or better.
91091         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91092         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91093         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91094         or for string.h.
91095         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91096         stdlib.h.
91097         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91098         C headers.
91099         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91100         string.h.
91101         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91102         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91103         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91104         or for string.h.
91105         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91106         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91107         C headers.
91108         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91109         memcpy.
91110         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91111         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91112         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91113         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91114         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91115         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91116         string.h, free.
91117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91118         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91119         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91120         C headers, or for string.h.
91121         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91122         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91123         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91124         headers, memory.h, stdlib.h, string.h, strings.h.
91125         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91126         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91127         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91128         strchr.
91129         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91130         headers, memory.h, string.h.
91131         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91132         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91133         free.
91134         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91135         headers.
91136         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91137         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91138         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91139         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91140         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91141
91142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91143
91144         More K&R removal.
91145
91146         * lib/acosl.c (main): Use a prototype.
91147         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91148         tanl.c: Likewise.
91149
91150         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91151
91152         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91153         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91154         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91155         with a prototype.
91156         * lib/getopt.c (const): Remove macro.
91157         Include <string.h> unconditionally.
91158         (my_index): Remove; all uses changed to strchr.
91159         (strlen): Remove decl.
91160         (exchange): Remove forward decl; no longer needed.
91161         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91162         Define with prototype.
91163         * lib/getopt1.c (const): Remove macro.
91164         (getopt_long, getopt_long_only, main): Define with prototype.
91165
91166         * lib/getugroups.c: Include <string.h> unconditionally.
91167
91168         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91169         (getusershell, setusershell, endusershell, readname, main):
91170         Define with prototypes.
91171
91172         * lib/group-member.c: Include group-member.h first.
91173         Include <stdlib.h> unconditionally.
91174
91175         * lib/hard-locale.c: Include hard-locale.h first.
91176         Include <stdlib.h>, <string.h> unconditionally.
91177
91178         * lib/hash.c (free, malloc): Remove decls.
91179         Include <stdlib.h> unconditionally.
91180
91181         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91182         (getenv): Do not declare.
91183
91184         * lib/idcache.c: Include <string.h> unconditionally.
91185
91186         * lib/long-options.c: Include long-options.h first, to test interface.
91187         Include <stdlib.h> unconditionally.
91188
91189         * lib/makepath.c: Include makepath.h first, to test interface.
91190         Include <stdlib.h> and <string.h> unconditionally.
91191
91192         * lib/linebuffer.c: Include <stdlib.h>.
91193         (free): Remove decl.
91194
91195         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91196         stddef.h. rpl_malloc returns void *, not char *.
91197         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91198         prototype.
91199
91200         * lib/md5.h: Include <limits.h> unconditionally.
91201         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91202         (__P): Remove; all uses removed.
91203         * lib/md5.c: Include "md5.h" first.
91204         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91205         md5_buffer, md5_process_bytes, md5_process_block):
91206         Define with prototypes.
91207         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91208         * lib/sha.c: Include "sha.h" first.
91209         Include <stdlib.h>, <string.h> unconditionally.
91210
91211         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91212         * lib/memcmp.c (__ptr_t): Likewise.
91213         * lib/memrchr.c (__ptr_t): Likewise.
91214         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91215         Include <string.h> unconditionally.
91216         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91217         * lib/memchr.c: Include <stdlib.h> unconditionally.
91218         * lib/memchr.c (LONG_MAX): Remove.
91219         * lib/memrchr.c (LONG_MAX): Likewise.
91220         * lib/memchr.c (__memchr): Define via a prototype.
91221         * lib/memrchr.c (__memrchr): Likewise.
91222         * lib/memcmp.c (__P): Remove, and remove all uses.
91223         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91224         Remove forward decls; no longer needed.
91225         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91226         Use types required by C89 in prototype.
91227
91228         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91229         * lib/savedir.c: Likewise.
91230         * lib/mkdir.c (free): Remove decl.
91231         * lib/rmdir.c (rmdir): Define with a prototype.
91232         * lib/savedir.c: Include savedir.h first, to test interface.
91233
91234         * lib/mktime.c (STDC_HEADERS): Remove.
91235         Include <stdlib.h>, <string.h> unconditionally.
91236
91237         * lib/modechange.c: Include <stdlib.h> unconditionally.
91238         (malloc): Remove decl.
91239
91240         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91241         (free): Remove decl.
91242
91243         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91244         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91245         (This type really should be intptr_t, but that's a C99ism.)
91246         (_obstack_memcpy): Remove: all uses changed to memcpy.
91247         Include <string.h> unconditionally.
91248         (struct obstack): Assume __STDC__ for types of members
91249         chunkfun, freefun, extra_arg.
91250         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91251         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91252         obstack_begin, obstack_specify_allocation,
91253         obstack_specify_allocation_with_arg, obstack_chunkfun,
91254         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91255         Remove unprototyped decls and the macros that use them.
91256         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91257         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91258         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91259         (defined __STDC__ && __STDC__)]:
91260         Remove nonprototyped code.
91261         Include <stdlib.h> unconditionally.
91262         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91263         _obstack_allocated_p, _obstack_free, obstack_free,
91264         _obstack_memory_used, print_and_abort):
91265         Define using prototypes.
91266         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91267         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91268         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91269         obstack_next_free, obstack_object_size, obstack_room) [0]:
91270         Remove unused, unprototyped code.
91271
91272         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91273
91274         * lib/physmem.c (physmem_total, physmem_available, main): Define
91275         with prototypes.
91276
91277         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91278         (main): Define with a prototype.
91279
91280         * lib/posixver.c (getenv): Remove decl.
91281
91282         * lib/putenv.c (malloc): Returns void *, not char *.
91283         Include <string.h> unconditionally.
91284         (strchr, memcpy, NULL): Do not define.
91285
91286         * lib/readtokens.c: Include readtokens.h first, to test interface.
91287         Include <stdlib.h>, <string.h> unconditionally.
91288         (init_tokenbuffer): Define with a prototype.
91289
91290         * lib/regex.c (PARAMS): Remove.  All uses removed.
91291         All uses of _RE_ARGS removed, too.
91292         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91293         unconditionally.
91294         (bzero): Assume memset exists.
91295         (memcmp, memcpy, NULL): Remove.
91296         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91297         char, or assignments to local vars of type signed char.
91298         (init_syntax_once, PREFIX(extract_number_and_incr),
91299         PREFIX(print_partial_compiled_pattern),
91300         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91301         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91302         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91303         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91304         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91305         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91306         wcs_compile_range, byte_compile_range, truncate_wchar,
91307         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91308         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91309         count_mbs_length, wcs_re_match_2_internal,
91310         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91311         PREFIX(alt_match_null_string_p),
91312         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91313         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91314         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91315         now-unnecessary declaration, if any.
91316         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91317         regcomp, regexec):
91318         Remove now-unnecessary casts among pointer types.
91319         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91320
91321         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91322         (free): Remove decl.
91323
91324         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91325
91326         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91327         (free): Remove decl.
91328
91329         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91330         * lib/xgetcwd.c: Likewise.
91331
91332         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91333         (free): Remove decl.
91334
91335         * lib/strchrnul.c (strchrnul): Define with a prototype.
91336         Fix bug: c_in was not converted to char before searching.
91337
91338         The following changes are not K&R related:
91339
91340         * lib/group-member.h: Include <sys/types.h>, so that this file is
91341         self-contained.
91342         * lib/makepath.h: Likewise.
91343
91344         * lib/getusershell.c (readname, default_index, line_size, readname):
91345         Use size_t, not int, for sizes.
91346         (readname): If the size overflows, report an error instead of
91347         looping forever.
91348
91349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91350
91351         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91352         libc.
91353
91354 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91355
91356         * README: New section: portability guidelines.
91357
91358 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91359
91360         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91361         C89 spec.
91362
91363 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91364
91365         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91366
91367 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91368
91369         Assume C89 or better; remove K&R cruft.
91370         A few of these changes were first proposed by Derek Robert Price
91371         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91372
91373         * lib/addext.c: Include <string.h> unconditionally.
91374         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91375         Don't declare getenv or malloc.
91376
91377         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91378         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91379         (NULL): Remove.
91380         (find_stack_direction, alloca): Use prototypes.
91381
91382         * lib/atexit.c (atexit): Define using a prototype.
91383
91384         * lib/basename.c, dirname.c, stripslash.c:
91385         Include <string.h> unconditionally.
91386
91387         * lib/bcopy.c: Include <stddef.h>.
91388         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91389
91390         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91391
91392         * lib/error.h (error, error_at_line, error_print_progname)
91393         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91394         * lib/error.c: Include error.h first, to check interface.
91395         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91396         (VA_START): Remove; all uses changeed to va_start.
91397         (exit, strerror): Remove decls.
91398         (error_print_progname): Prototype uncondionally.
91399         Don't include <errno.h>; no longer needed.
91400         (private_strerror): Remove.
91401         (error_tail): Always define.
91402         (error, error_at_line): Assume C89 or better; always use prototypes.
91403         * lib/fatal.c: Include "fatal.h" first, to test interface.
91404         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91405         (VA_START): Remove; all uses changed to va_start.
91406         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91407         this case.
91408         (exit): Remove decl.
91409         (fatal): Prototype unconditionally.  Assume va_start works.
91410         Abort at end, to pacify gcc.
91411
91412         * lib/euidaccess.c (main): Define with a prototype.
91413
91414         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91415
91416         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91417
91418         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91419         prototypes.
91420         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91421         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91422         (getenv): Remove decl.
91423         (fnmatch): Define using a prototype.
91424         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91425         (FCT): Define using a prototype.
91426
91427         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91428
91429         * lib/gethostname.c: Include <stddef.h>.
91430         (gethostname): Define with prototype.  Length is size_t, not int.
91431
91432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91433
91434         Assume C89 or better; remove K&R cruft.
91435         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91436         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91437         string.h, getenv, malloc.
91438         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91439         headers.
91440         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91441         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91442         do not check for strerror.
91443         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91444         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91445         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91446         do not check for doprnt or vprintf.
91447         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91448         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91449
91450 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91451
91452         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91453         getversion.c should have been removed then, but was accidentally
91454         preserved.
91455
91456         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91457         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91458
91459 2003-09-08  Karl Berry  <karl@gnu.org>
91460
91461         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91462                 config, forget about prep.
91463
91464         * config/depcomp, missing: update from automake.
91465
91466 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91467
91468         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91470
91471 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91472
91473         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91474         copy_tm_result.  Bug reported by Simon Josefsson in
91475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91476
91477 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91478
91479         * m4/time_r.m4: New file.
91480         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91481         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91482         is. Check for timegm declaration.
91483         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91484         Do not check for gmtime_r.
91485         Replace mktime if __mktime_internal does not exist and if mktime
91486         hasn't been replaced already.
91487
91488 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91489
91490         * lib/time_r.c, lib/time_r.h: New files.
91491
91492         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91493         __localtime_r.
91494         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91495         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91496
91497         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91498         __gmtime_r.
91499         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91500         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91501         Include <time_r.h>.
91502
91503         * lib/timegm.c: Switch to glibc implementation, with the following
91504         changes:
91505         [defined HAVE_CONFIG_H]: Include <config.h>.
91506         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91507         (__mktime_internal) [!defined _LIBC]: New decl.
91508         (__gmtime_r) [!defined _LIBC]: New macro and function.
91509         (timegm): Use a prototype, since gnulib assumes C89.
91510         Do not bother declaring tmp to be const, as it's not really usefu.
91511         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91512         (timegm): Declare only if HAVE_DECL_TIMEGM.
91513
91514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91515
91516         * MODULES.html.sh (func_all_modules): Add time_r.
91517         * modules/time_r: New file.
91518         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91519         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91520
91521 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91522
91523         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91524         Bug reported by Lute Kamstra in
91525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91526
91527         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91528         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91529         course with correspondingly smaller numbers for tomorrow and
91530         yesterday.  From Tadayoshi Funaba.  Originally installed into
91531         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91532         coreutils merge?).
91533
91534 2003-08-31  Simon Josefsson  <jas@extundo.com>
91535
91536         * modules/timegm: New file.
91537         * MODULES.html.sh (func_all_modules): Add timegm.
91538
91539 2003-08-31  Simon Josefsson  <jas@extundo.com>
91540
91541         * m4/timegm.m4: New file.
91542
91543 2003-08-31  Simon Josefsson  <jas@extundo.com>
91544
91545         * lib/timegm.h: New file.
91546         * lib/timegm.c: New file.  Based on
91547         wget-1.8.2/src/http.c:mktime_from_utc.
91548
91549 2003-08-31  Karl Berry  <karl@gnu.org>
91550
91551         * lib/argp.h: update from libc.
91552
91553 2003-08-28  Bruno Haible  <bruno@clisp.org>
91554
91555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91556         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91557         followed by '#define fnmatch fnmatch_posix' gives an error.
91558
91559 2003-08-28  Bruno Haible  <bruno@clisp.org>
91560
91561         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91562         warning on QNX, which defines O_BINARY to 000000.
91563
91564 2003-08-27  Jim Meyering  <jim@meyering.net>
91565
91566         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91567         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91568         would fail after 32.  Reported by Danny Levinson.  Details here:
91569         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91570
91571 2003-08-24  Bruno Haible  <bruno@clisp.org>
91572
91573         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91574         MSVC7 <stdio.h> is included later.
91575
91576 2003-08-22  Simon Josefsson  <jas@extundo.com>
91577
91578         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91579
91580 2003-08-20  Karl Berry  <karl@gnu.org>
91581
91582         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91583
91584 2003-08-20  Bruno Haible  <bruno@clisp.org>
91585
91586         * modules/progname: New file.
91587         * MODULES.html.sh (func_all_modules): Add progname.
91588
91589 2003-08-20  Bruno Haible  <bruno@clisp.org>
91590
91591         * lib/progname.h: New file, from GNU gettext.
91592         * lib/progname.c: New file, from GNU gettext.
91593         * lib/progreloc.c: New file, from GNU gettext.
91594
91595 2003-08-19  Jim Meyering  <jim@meyering.net>
91596
91597         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91598         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91599
91600 2003-08-19  Bruno Haible  <bruno@clisp.org>
91601
91602         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91603         more.
91604
91605 2003-08-19  Bruno Haible  <bruno@clisp.org>
91606
91607         * lib/xstrdup.c: Assume <string.h> exists.
91608
91609 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91610
91611         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91612         in makefile rules.
91613
91614 2003-08-18  Jim Meyering  <jim@meyering.net>
91615
91616         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91617         * m4/lib-ld.m4: Likewise.
91618
91619 2003-08-18  Jim Meyering  <jim@meyering.net>
91620
91621         * lib/setenv.h: Indent nested cpp directive.
91622         * lib/vasnprintf.c: Remove trailing blanks.
91623
91624 2003-08-17  Simon Josefsson  <jas@extundo.com>
91625
91626         * modules/xstrndup: New file.
91627         * MODULES.html.sh (func_all_modules): Add xstrndup.
91628
91629 2003-08-17  Simon Josefsson  <jas@extundo.com>
91630
91631         * modules/argp: Fix autoconf macro name. Add more dependencies.
91632
91633 2003-08-17  Simon Josefsson  <jas@extundo.com>
91634
91635         * m4/xstrndup.m4: New file.
91636
91637 2003-08-17  Simon Josefsson  <jas@extundo.com>
91638
91639         * m4/argp.m4: New file.
91640
91641 2003-08-17  Simon Josefsson  <jas@extundo.com>
91642             Bruno Haible  <bruno@clisp.org>
91643
91644         * lib/xstrndup.h: New file.
91645         * lib/xstrndup.c: New file.
91646
91647 2003-08-17  Bruno Haible  <bruno@clisp.org>
91648
91649         * modules/strndup (Files, Include): Add lib/strndup.h.
91650
91651 2003-08-17  Bruno Haible  <bruno@clisp.org>
91652
91653         * modules/euidaccess (Files): Add lib/euidaccess.h.
91654
91655 2003-08-17  Bruno Haible  <bruno@clisp.org>
91656
91657         * lib/strndup.h: New file.
91658
91659 2003-08-17  Bruno Haible  <bruno@clisp.org>
91660
91661         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91662         like AC_GNU_SOURCE.
91663         * modules/extensions (configure.ac): Comment out the invocation of
91664         gl_USE_SYSTEM_EXTENSIONS.
91665
91666 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91667
91668         Merges from coreutils, etc.
91669         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91670         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91671         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91672         fixing a typo.
91673         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91674         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91675
91676 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91677
91678         Document merge from coreutils.
91679         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91680         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91681         * modules/utime: Add m4/utimes-null.m4.
91682
91683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91684
91685         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91686         space, undoing this 2003-08-12 change:
91687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91688
91689 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91690
91691         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91692         strtoul.c from libc, undoing this 2003-08-12 change:
91693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91694
91695 2003-08-16  Jim Meyering  <jim@meyering.net>
91696
91697         Merges from coreutils.
91698         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91699         prefix.  Adjust cache variables similarly.  Create 500 rather than
91700         just 300 files, to exercise bug on Darwin6.5, too.
91701         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91702         $missing_dir.
91703         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91704         AM_SYS_POSIX_TERMIOS.
91705         Reported by mkc@mathdogs.com.
91706         Also change use of $am_cv_sys_posix_termios
91707         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91708         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91709         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91710         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91711         in /proc/mounts until it finds one with matching device number.  This
91712         is unnecessary when the FILE argument *is* a mount point.  No stat call
91713         is necessary in that case.  So, disable the statvfs-testing code on
91714         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91715         as RedHat bug# 84846.
91716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91717         to 1MB, so as not to render systems with no stack size limit (e.g.,
91718         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91719         Include <unistd.h>.  On some systems,
91720         it is required for the definition of _SC_PAGESIZE.
91721
91722 2003-08-16  Jim Meyering  <jim@meyering.net>
91723
91724         Merge from coreutils.
91725         * lib/xstrtoimax.c: #else #if -> #elif.
91726         * lib/xstrtoumax.c: Likewise.
91727
91728 2003-08-16  Jim Meyering  <jim@meyering.net>
91729
91730         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91731         * m4/utimes.m4: Removed.
91732         * m4/utimes-null.m4: Renamed from utimes.m4.
91733
91734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91735         to 1MB, so as not to render systems with no stack size limit (e.g.,
91736         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91737         Include <unistd.h>.  On some systems,
91738         it is required for the definition of _SC_PAGESIZE.
91739
91740 2003-08-16  Jim Meyering  <jim@meyering.net>
91741         and Paul Eggert  <eggert@cs.ucla.edu>
91742
91743         Merges from coreutils, etc.
91744
91745         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91746         using the latest version from cvs.  This avoids problems with #line
91747         directives using a vendor (Sun) compiler.
91748         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91749         Don't set GETGROUPS_LIB here; now it's
91750         done via getgroups.m4's wrapper function.
91751         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91752         rather than just in sh-util/configure.in, so that the
91753         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91754         same.
91755         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91756         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91757         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91758         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91759         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91760         Remove code that is now done by the newly-required macros.
91761         Append $(EXEEXT) to DF_PROG.
91762         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91763         Do not invoke or require the following here,
91764         since prereq.m4 or some gnulib .m4 now does this for us:
91765         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91766         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91767         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91768         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91769         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91770         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91771         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91772         AC_FUNC_OBSTACK.
91773         Do not replace the following functions, as this is now the job
91774         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91775         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91776         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91777         atexit getpass, strdup, getpagesize.
91778         Replace 'raise'.
91779         Do not check for the following functions, as this is now the job
91780         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91781         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91782         setregid.
91783         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91784         Check for sys/sysctl.h.
91785         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91786         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91787         of checking for ssize_t ourselves.
91788
91789         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91790         Require every macro that gnulib/modules/* suggests for us.
91791         (jm_PREREQ_ADDEXT): New macro.
91792         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91793         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91794
91795         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91796         (gl_PHYSMEM): Use it.
91797         Also check for `table' function.
91798         Check for new headers and functions.
91799         Add check for sys/sysmp.h.
91800         With suggestions from Kaveh Ghazi.
91801         Ignore headers that are present but cannot be compiled.  This
91802         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91803         C 5.4.
91804
91805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91806
91807         Document merge from coreutils.
91808         * modules/userspec: Depend on posixver.
91809         * modules/strftime: Depend on tzset.
91810
91811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91812
91813         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91814         rather than tab, after '#' in shell-script copyright notices.
91815         Suggested by Bruno Haible.
91816
91817 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91818
91819         * config/srclist-update: Use three spaces, rather than tab, after '#'
91820         in shell-script copyright notices.  Suggested by Bruno Haible.
91821         Remove unnecessary parenthesization in regular expression.
91822
91823 2003-08-15  Jim Meyering  <jim@meyering.net>
91824
91825         Merge from coreutils.
91826         * lib/xgethostname.c: Include <stdlib.h>.
91827         (xghostname): Don't exit for anything other than memory-related
91828         failure; just return NULL.
91829         * lib/userspec.c: Include "posixver.h".
91830         (parse_user_spec): Accept `.' as a separator only
91831         in pre-POSIX-200112 mode.
91832         * lib/strtoimax.c: Use #elif rather than #else #if.
91833         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91834         Remove function, now that we can rely on a working tzset function.
91835         [!_LIBC]: Ensure that the required autoconf test has been run.
91836         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91837         Use underlying_strftime for %r.
91838         * lib/sha.c: Merge in some clean-up and optimization changes from
91839         glibc.
91840         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91841         Ensure that it is a multiple of 64.
91842         Rearrange loop exit tests so as to avoid performing an
91843         additional fread after encountering an error or EOF.
91844         * lib/realloc.c: Update copyright date.
91845
91846 2003-08-15  Jim Meyering  <jim@meyering.net>
91847         and Paul Eggert  <eggert@twinsun.com>
91848
91849         Merge from coreutils.
91850         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91851         member but strut utmpx does not.  Needed for AIX 4.3.3.
91852         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91853
91854 2003-08-15  Jim Meyering  <jim@meyering.net>
91855         and Paul Eggert  <eggert@cs.ucla.edu>
91856
91857         Merges from coreutils, etc.
91858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91859         Require gl_FUNC_TZSET_CLOBBER.
91860         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91861         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91862         members.
91863
91864 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91865
91866         Help the merge from coreutils.
91867         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91868         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91869         * m4/tzset.m4: Use it too.
91870
91871 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91872
91873         * modules/tzset: New file.
91874
91875 2003-08-14  Jim Meyering  <jim@meyering.net>
91876
91877         Merges from coreutils.
91878         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91879         variable names, rather than @FNMATCH_H@.
91880         * modules/alloca: Likewise for $(ALLOCA_H).
91881
91882         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91883         the three copies of the literal target, `fnmatch.h'.
91884         * modules/alloca (alloca.h): Likewise.
91885
91886 2003-08-14  Jim Meyering  <jim@meyering.net>
91887
91888         Merge from coreutils.
91889         * m4/tzset.m4: New file.
91890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91891         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91892         otherwise, AIX 5.1 systems would end up using the latter.
91893         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91894         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91895         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91896         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91897
91898 2003-08-14  Jim Meyering  <jim@meyering.net>
91899
91900         Merge from coreutils.
91901         * lib/obstack.h: Whitespace changes.
91902         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91903         and xcalloc return values.
91904         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91905         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91906         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91907         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91908         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91909         error from mntctl.
91910         Use mntctl's return value to drive the entry-processing loop, since
91911         we can't rely on the value of the vmt_length member in the last
91912         entry.  On some systems doing so could result in exhausting
91913         virtual memory.  Based in part on a patch from Mike Jetzer.
91914
91915 2003-08-14  Jim Meyering  <jim@meyering.net>
91916         and Paul Eggert  <eggert@twinsun.com>
91917
91918         Merges from coreutils, plus other fixes.
91919         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91920         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91921         for credits and details.  Thanks to Kaveh Ghazi for helping
91922         to keep these files in sync.
91923         (ARRAY_SIZE): Define it.
91924         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91925         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91926         (memcasecmp): Don't assume size_t fits in unsigned int.
91927         Remove casts and duplicate code.
91928         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91929         (memcpy): Remove definition.
91930         Merge in some clean-up and optimization changes from glibc.
91931         [BLOCKSIZE]: Move definition to top of file.
91932         Ensure that it is a multiple of 64.
91933         Rearrange loop exit tests so as to avoid performing an
91934         additional fread after encountering an error or EOF.
91935         * lib/md5.h (md5_uintptr): Define.
91936         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91937         return to the initial working directory.  Preserve errno
91938         for caller.
91939         * lib/idcache.c: Include "xalloc.h".
91940         (xmalloc, xrealloc): Remove decls.
91941         (getuser): Remove casts no longer required in C89.
91942         * lib/human.c: Include stdio.h, for sprintf.
91943         * lib/group-member.c: Include "xalloc.h".
91944         (xmalloc, xrealloc): Remove decls.
91945         (get_group_info): Remove casts no longer required in C89.
91946         * lib/getusershell.c (readname): Remove casts no longer required in
91947         C89.
91948         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91949         * lib/getline.c: Whitespace fix, from coreutils.
91950
91951 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91952
91953         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91954         Check for isascii.
91955
91956         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91957         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91958         Undo previous (whitespace-only) change.
91959
91960 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91961
91962         * lib/exclude.c: Include <ctype.h>
91963         (IN_CTYPE_DOMAIN): New macro.
91964         (is_space): New fn.
91965         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91966         and empty lines.
91967
91968         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91969         Undo previous (whitespace-only) change.
91970
91971 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91972
91973         * config/srclist-update: Change update back to the old behavior,
91974         leaving whitespace alone.  Use one 'sed' command rather than a
91975         pipeline.
91976         (fixlicense): Now a variable, not a function.
91977         (remove_trailing_blanks): Remove.
91978         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91979         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91980         Undo previous (whitespace-only) change.
91981
91982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91983
91984         Merge from coreutils.
91985         * modules/euidaccess: Add lib_SOURCES, include for new
91986         file euidaccess.h
91987
91988 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91989
91990         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91991         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91992         Normalize leading white space and remove trailing white space.
91993
91994         Merge from coreutils
91995         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91996
91997         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91998         0.12.1.  These files are now being upgraded automatically by
91999         ../config/srclist-update.
92000
92001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92002
92003         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92004         Normalize leading white space and remove trailing white space.
92005         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92006         notice, as per ../config/srclist-update.
92007
92008         Merge from coreutils.
92009         * lib/euidaccess.h: New file.
92010         * lib/euidaccess.c: Include it.
92011         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92012         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92013         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92014
92015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92016
92017         * config/srclist-update: Add copyright notice.
92018         (remove_id_lines, remove_trailing_blanks): New constants.
92019         (fixfile): Use them to normalize spacing a bit in copied files.
92020         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92021         Normalize leading white space and remove trailing white space.
92022
92023         * config/texinfo.tex: Sync with texinfo.
92024
92025         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92026         strtoul.c from libc, to merge coreutils whitespace changes.
92027
92028         * config/srclist.txt: Get the following m4 files from gettext:
92029         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92030         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92031         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92032         wint_t.m4.
92033
92034 2003-08-12  Karl Berry  <karl@gnu.org>
92035
92036         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92037         been made.
92038
92039 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92040
92041         * modules/gnu-source, m4/gnu-source.m4:
92042         Remove; we're assuming Autoconf 2.54 or later now.
92043         Suggested by Bruno Haible.
92044         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92045
92046 2003-08-11  Bruno Haible  <bruno@clisp.org>
92047
92048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92049
92050 2003-08-11  Bruno Haible  <bruno@clisp.org>
92051
92052         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92053         (vasnprintf): Use it instead of wcslen.
92054
92055 2003-08-11  Bruno Haible  <bruno@clisp.org>
92056
92057         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92058         value to ensure that _Bool promotes to int. Use #define for _Bool when
92059         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92060
92061 2003-08-10  Karl Berry  <karl@gnu.org>
92062
92063         * lib/regex.h: update from libc (whitespace fix).
92064
92065 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92066
92067         Merge some files from coreutils.  These changes were
92068         originally made by Jim Meyering.
92069         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92070         many older Unixes require this.
92071         * lib/alloca.c (alloca): Remove cast to argument of free;
92072         no longer needed in C89.
92073         * lib/alloca_.h, regex.h: Fix white space to match
92074         what GNU indent does.
92075
92076 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92077
92078         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92079         apparently Emacs's Unicode mode got confused before my 2003-08-05
92080         checkin.
92081
92082 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92083
92084         * m4/extensions.m4: New file.
92085         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92086         Require gl_USE_SYSTEM_EXTENSIONS.
92087         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92088         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92089
92090 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92091
92092         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92093         * modules/extensions, modules/gnu-source: New files.
92094         * modules/timespec, modules/unlocked-io: Depend on extensions.
92095
92096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92097
92098         * modules/restrict: New file.
92099         * MODULES.html.sh (func_all_modules): Add restrict.
92100         * modules/regex: Depend on restrict.
92101
92102 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92103
92104         * m4/restrict.m4: New file.
92105         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92106
92107 2003-08-07  Bruno Haible  <bruno@clisp.org>
92108
92109         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92110         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92111
92112 2003-08-07  Bruno Haible  <bruno@clisp.org>
92113
92114         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92115         makes the module 'getndelim2' compatible with the module 'getline'.
92116
92117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92118
92119         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92120         byte with "\201" to avoid glitches when editing that source file
92121         with multi-gnome-terminal.
92122
92123 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92124
92125         * lib/bumpalloc.h: Remove.
92126
92127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92128
92129         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92130         * modules/bumpalloc: Remove.
92131
92132 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92133
92134         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92135         GNU coding style.
92136
92137         Merge from coreutils.
92138         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92139         1. From glibc.
92140         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92141         from Karl Berry, implemented by Jim Meyering.
92142         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92143         from Dmitry V. Levin.
92144         Remove anachronistic cast of xrealloc.
92145         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92146         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92147         type. Otherwise, it wouldn't compile with at least /bin/cc on
92148         ymp-cray-unicos9.0.2.X.
92149         Combine two mostly-identical uses of alloca into one.
92150         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92151
92152 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92153
92154         [From Emacs.]
92155
92156         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92157         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92158         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92159         obsolete NLIST_NAME_UNION.
92160         [__GNU__]: Undef BSD and FSCALE.
92161         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92162
92163 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92164
92165         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92166         an enum type, so that it's guaranteed to promote to int.  See:
92167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92168
92169 2003-08-03  Karl Berry  <karl@gnu.org>
92170
92171         * config/depcomp: update from automake.
92172
92173 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92174
92175         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92176         (strerror): Don't assume that a printable int fits in 14 bytes.
92177
92178 2003-07-31  Bruno Haible  <bruno@clisp.org>
92179
92180         * modules/getpass-gnu: New file.
92181         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92182
92183 2003-07-31  Bruno Haible  <bruno@clisp.org>
92184
92185         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92186
92187 2003-07-24  Karl Berry  <karl@gnu.org>
92188
92189         * config/missing: update from automake.
92190
92191 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92192             Bruno Haible  <bruno@clisp.org>
92193
92194         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92195         * lib/getline.c (getline, getdelim): Likewise.
92196         Remove _GNU_SOURCE define; now it's defined in config.h through
92197         m4/getline.m4.
92198
92199 2003-07-23  Karl Berry  <karl@gnu.org>
92200
92201         * config/config.sub: update from prep.
92202
92203 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92204
92205         * modules/xalloc (Depends-on): Add exitfail.
92206         * modules/xmemcoll: Likewise.
92207
92208 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92209
92210         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92211         over-parenthesization in macros.
92212
92213         Sync with coreutils.
92214
92215         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92216         required by C99.
92217
92218         Use `exit_failure' for xalloc and xmemcoll instead of their own
92219         private exit-failure variables.
92220         * lib/xalloc.h (xalloc_exit_failure): Remove.
92221         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92222         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92223         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92224         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92225         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92226
92227 2003-07-20  Jim Meyering  <jim@meyering.net>
92228
92229         * modules/closeout (Depends-on): Add exitfail.
92230         Suggestion from Bruno Haible.
92231
92232 2003-07-19  Karl Berry  <karl@gnu.org>
92233
92234         * config/config.sub: update from prep.
92235
92236 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92237
92238         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92239         Remove.
92240         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92241         to test that it can stand by itself.  Include "exitfail.h".
92242         Clients should set exit_failure instead.
92243         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92244
92245 2003-07-18  Bruno Haible  <bruno@clisp.org>
92246
92247         * modules/getndelim2: New file.
92248         * modules/getline: Share files with module getndelim2.
92249         * modules/getnline: Depend on getndelim2 instead of sharing files with
92250         it. Add getnline.c to lib_SOURCES.
92251         * MODULES.html.sh (func_all_modules): Add getndelim2.
92252
92253 2003-07-18  Bruno Haible  <bruno@clisp.org>
92254
92255         * m4/getndelim2.m4: New file.
92256         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92257         invoke gl_PREREQ_GETNDELIM2.
92258         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92259         gl_PREREQ_GETNDELIM2.
92260         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92261         gl_GETNDELIM2.
92262
92263 2003-07-18  Bruno Haible  <bruno@clisp.org>
92264
92265         * lib/getndelim2.h: New file.
92266         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92267         getndelim2.h.
92268         (getndelim2): Make non-static. Change return type to ssize_t.
92269         * lib/getline.h: Change argument names.
92270         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92271         * lib/getnline.c: Include getndelim2.h.
92272
92273 2003-07-18  Andreas Schwab  <schwab@suse.de>
92274
92275         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92276
92277 2003-07-17  Karl Berry  <karl@gnu.org>
92278
92279         * config/config.sub: update from prep.
92280
92281 2003-07-17  Bruno Haible  <bruno@clisp.org>
92282
92283         * modules/getnline: New file.
92284         * modules/getline: Add lib/getndelim2.c to source file list.
92285         * MODULES.html.sh (func_all_modules): Add getnline.
92286
92287 2003-07-17  Bruno Haible  <bruno@clisp.org>
92288
92289         * m4/getnline.m4: New file.
92290
92291 2003-07-17  Bruno Haible  <bruno@clisp.org>
92292
92293         * m4/Makefile.am.in: Remove file.
92294         * m4/Makefile.am: Remove file.
92295         * m4/Makefile.in: Remove file.
92296
92297 2003-07-17  Bruno Haible  <bruno@clisp.org>
92298
92299         * lib/getnline.h: New file.
92300         * lib/getnline.c: New file.
92301         * lib/getndelim2.c: New file, extracted from getline.c.
92302         (getndelim2): Renamed from getdelim2, with added nmax argument.
92303         * lib/getline.c: Include getndelim2.c.
92304         (getdelim2): Moved out to getndelim2.c.
92305         (getline, getdelim): Update.
92306
92307 2003-07-17  Bruno Haible  <bruno@clisp.org>
92308
92309         * lib/Makefile.am: Remove file.
92310         * lib/Makefile.in: Remove file.
92311
92312 2003-07-17  Bruno Haible  <bruno@clisp.org>
92313
92314         * configure.in: Remove file.
92315         * Makefile.in: Remove file.
92316
92317 2003-07-17  Bruno Haible  <bruno@clisp.org>
92318
92319         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92320
92321 2003-07-16  Karl Berry  <karl@gnu.org>
92322
92323         * config/srclist-update: was running fixlicense twice, which caused
92324                 texinfo.tex to be nullified for some reason.  Simplify,
92325                 $gplsrc is no longer needed as far as I can see?
92326
92327 2003-07-16  Jim Meyering  <jim@meyering.net>
92328
92329         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92330
92331 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92332
92333         * config/srclist.txt: Get the following files from gettext-runtime/intl
92334         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92335         ref-del.sin.  From Bruno Haible.
92336         * config/srclist-update (fixfile): Change grep pattern again, since the
92337         previous fix didn't work (there was another trailing $).  Use
92338         '[$]' to escape the $s.
92339
92340 2003-07-15  Karl Berry  <karl@gnu.org>
92341
92342         * lib/vasnprintf.c: update from gettext.
92343
92344 2003-07-15  Karl Berry  <karl@gnu.org>
92345
92346         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92347         gets expanded when surrounded by '$'.
92348
92349 2003-07-15  Jim Meyering  <jim@meyering.net>
92350
92351         * modules/save-cwd: Don't depend on error.  From Derek Price.
92352
92353 2003-07-15  Jim Meyering  <jim@meyering.net>
92354
92355         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92356
92357 2003-07-14  Simon Josefsson  <jas@extundo.com>
92358
92359         * modules/mempcpy: New file.
92360         * MODULES.html.sh (func_all_modules): Add mempcpy.
92361
92362 2003-07-14  Simon Josefsson  <jas@extundo.com>
92363
92364         * m4/mempcpy.m4: New file.
92365
92366 2003-07-14  Simon Josefsson  <jas@extundo.com>
92367
92368         * lib/mempcpy.h: New file.
92369         * lib/mempcpy.c: New file.
92370
92371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92372
92373         * modules/getdate, modules/posixtm: Depend on mktime.
92374
92375 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92376
92377         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92378         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92379         unicodeio.c, unicodeio.h, unlocked-io.h:
92380         Switch from LGPL to GPL.
92381
92382 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92383
92384         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92385         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92386         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92387         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92388         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92389         updated automatically by ../config/srclist-update.  This changes
92390         their license from LPGL to GPL.
92391
92392 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92393
92394         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92395         assumed to refer to the root of the most recent stable gettext version.
92396         * config/srclistvars.sh: Add defaults for eggert.
92397         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92398         Match "This program" as well as "The program".  This is needed
92399         for gettext.
92400
92401 2003-07-14  Jim Meyering  <jim@meyering.net>
92402
92403         Don't emit diagnostics.  Let callers do that.
92404         * lib/save-cwd.c: Don't include "error.h".
92405         (save_cwd): Don't call error.  Ensure that errno is valid
92406         when returning nonzero.
92407
92408         * lib/save-cwd.h (restore_cwd): Update prototype.
92409         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92410         Simplify.  Don't call error upon failure.  Let callers do that.
92411         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92412         when auditing is enabled.  But don't bother updating the #if.
92413
92414 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92415
92416         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92417         it breaks C++ compilation.
92418         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92419
92420 2003-07-10  Simon Josefsson  <jas@extundo.com>
92421
92422         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92423
92424 2003-07-10  Jim Meyering  <jim@meyering.net>
92425
92426         * m4/clock_time.m4: Remove trailing blank.
92427         * m4/intmax_t.m4: Likewise.
92428
92429 2003-07-10  Jim Meyering  <jim@meyering.net>
92430
92431         * lib/vasnprintf.c: Remove trailing blanks.
92432         Make cpp indentation consistent.
92433
92434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92435
92436         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92437         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92438         Switch from LGPL to GPL.
92439
92440 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92441
92442         * config/srclist.txt: Sort sublists.  Add
92443         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92444         that differ from gnulib for one reason or another; we'd like this list
92445         to be smaller but for now let's document what we have.
92446
92447 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92448
92449         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92450         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92451         and sweeter "eval x=$x".
92452         * config/srclist.txt: Get lib/argp* from glibc.
92453
92454 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92455
92456         * lib/mktime.c: Fix some boundary cases and remove need for floating
92457         point.
92458
92459         Issue a compile-time diagnostic if time_t is floating point, or if
92460         two's complement arithmetic is not in effect, or if arithmetic
92461         right shift does not propagate the sign.  These assumptions were
92462         all in the original code but they weren't checked.
92463
92464         (TIME_T_MIDPOINT, verify): New macros.
92465         (__isleap): Remove; it has integer overflow problems.
92466         (leapyear): New function, without those problems.
92467         (ydhms_tm_diff): Remove; splitting into two parts.
92468         (ydhms_diff): New function, containing the arithmetic part of
92469         the old ydhms_tm_diff function.  Issue a compile-time
92470         diagnostic if we are not using C99 integer division.
92471         Avoid casts when possible.
92472         (guess_time_tm): New function, containing the checking part of
92473         the old ydhms_tm_diff function.  Return the new value, rather than
92474         the difference between it and the old.  Accept a new argument T
92475         so that *T specifies the old value.  Check for overflow in the result.
92476
92477         (__mktime_internal): Use a time_t offset, not a long int offset.
92478         This undoes the 2003-06-04 change, which is no longer needed now
92479         that we have better overflow checking.
92480         (localtime_offset): Likewise.
92481
92482         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92483         and long are 64-bit but int is only 32-bit.
92484         (ydhms_diff): Use long int to store year1 and yday1.
92485         Issue a compile-time diagnostic if long int is not wide enough.
92486
92487         (__mktime_internal): Use long int to store adjusted year and yday.
92488         Use plain C rather than preprocessor commands, if that doesn't
92489         affect efficiency.
92490         Check for overflow (and try to repair) after each probe
92491         rather than checking only at the very end.  This avoids some bugs
92492         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92493         does not equal GMT offset at maximum time).
92494         Use integer to check for overflow rather than floating point; this
92495         is more portable to non-IEEE hosts, and is a tad faster.
92496         When we detect that we are oscillating between two values,
92497         don't check whether tm_isdst has the requested value, since
92498         we already know the answer.  When tm_isdst has the wrong value,
92499         use a different heuristic to find the right one, based on the
92500         extreme values actually observed in practice in tz2003a,
92501         rather than the (overly optimistic) "previous 3 calendar quarters".
92502
92503         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92504         "T const" to accommodate glibc style.
92505         (check_result): Use less-confusing report format.  "long" -> "long int.
92506         (main): Likewise.
92507         Don't loop if the iteration overflows time_t.
92508         Allow a negative step in the iteration.
92509
92510 2003-07-06  Karl Berry  <karl@gnu.org>
92511
92512         * config/depcomp: update from automake.
92513         * config/config.sub: update from prep.
92514
92515 2003-07-03  Karl Berry  <karl@gnu.org>
92516
92517         * config/config.guess: update from prep.
92518
92519 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92520
92521         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92522         xreadlink.c now includes it unconditionally.
92523
92524 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92525
92526         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92527         having it depend on HAVE_SYS_TYPES_H.
92528
92529 2003-07-01  Bruno Haible  <bruno@clisp.org>
92530
92531         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92532         <sys/types.h> should be sufficient.
92533         Reported by Paul Eggert.
92534
92535 2003-06-26  Karl Berry  <karl@gnu.org>
92536
92537         * config/depcomp: update from automake.
92538
92539 2003-06-26  Bruno Haible  <bruno@clisp.org>
92540
92541         * modules/human: Depend on module stdbool.
92542
92543 2003-06-25  Bruno Haible  <bruno@clisp.org>
92544
92545         * modules/readlink: New file.
92546         * modules/xreadlink: Depend on it.
92547         * MODULES.html.sh (func_all_modules): Add readlink.
92548
92549 2003-06-25  Bruno Haible  <bruno@clisp.org>
92550
92551         * m4/readlink.m4: New file.
92552
92553 2003-06-25  Bruno Haible  <bruno@clisp.org>
92554
92555         * lib/readlink.c: New file.
92556
92557 2003-06-22  Karl Berry  <karl@gnu.org>
92558
92559         * config/srclist.txt: update mkinstalldirs from automake.
92560         * config/mkinstalldirs: update.
92561
92562 2003-06-22  Bruno Haible  <bruno@clisp.org>
92563
92564         Portability to mingw32.
92565         * m4/ssize_t.m4: New file, from GNU gettext.
92566         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92567         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92568
92569 2003-06-22  Bruno Haible  <bruno@clisp.org>
92570
92571         * modules/safe-read: Add m4/ssize_t.m4.
92572         * modules/xreadlink: Add m4/ssize_t.m4.
92573
92574 2003-06-20  Bruno Haible  <bruno@clisp.org>
92575
92576         Assume C89, so PARAMS isn't needed.
92577         * lib/unicodeio.h (PARAMS): Remove.
92578         * lib/unicodeio.c: Don't use PARAMS.
92579
92580 2003-06-18  Karl Berry  <karl@gnu.org>
92581
92582         * config/config.{guess,sub}: update from prep.
92583
92584 2003-06-18  Jim Meyering  <jim@meyering.net>
92585
92586         Merge changes from coreutils.
92587         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92588         Remove explicit declarations of xmalloc and realloc.
92589         Include xalloc.h.
92590         (read_utmp): Remove anachronistic cast of xmalloc.
92591
92592 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92593
92594         Assume C89, so PARAMS isn't needed.
92595         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92596         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92597         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92598         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92599         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92600         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92601         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92602         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92603         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92604         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92605         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92606         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92607         no longer needed. Anyway, config.h should always be included before any
92608         other file.
92609
92610 2003-06-11  Simon Josefsson  <jas@extundo.com>
92611
92612         * modules/sysexits: New file.
92613         * MODULES.html.sh (func_all_modules): Add sysexits.
92614
92615 2003-06-11  Simon Josefsson  <jas@extundo.com>
92616
92617         * lib/sysexit_.h: New file.
92618
92619 2003-06-11  Derek Price  <derek@ximbiot.com>
92620
92621         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92622         necessary.
92623
92624 2003-06-11  Bruno Haible  <bruno@clisp.org>
92625
92626         * m4/sysexits.m4: New file.
92627
92628 2003-06-10  Simon Josefsson  <jas@extundo.com>
92629
92630         * lib/argp.h: New file, from glibc.
92631         * lib/argp-ba.c: New file, from glibc.
92632         * lib/argp-eexst.c: New file, from glibc.
92633         * lib/argp-fmtstream.c: New file, from glibc.
92634         * lib/argp-fmtstream.h: New file, from glibc.
92635         * lib/argp-fs-xinl.c: New file, from glibc.
92636         * lib/argp-help.c: New file, from glibc.
92637         * lib/argp-namefrob.h: New file, from glibc.
92638         * lib/argp-parse.c: New file, from glibc.
92639         * lib/argp-pv.c: New file, from glibc.
92640         * lib/argp-pvh.c: New file, from glibc.
92641         * lib/argp-xinl.c: New file, from glibc.
92642
92643 2003-06-10  Simon Josefsson  <jas@extundo.com>
92644
92645         * modules/strchrnul: New file.
92646
92647 2003-06-10  Simon Josefsson  <jas@extundo.com>
92648
92649         * modules/argp: New file.
92650
92651 2003-06-10  Simon Josefsson  <jas@extundo.com>
92652
92653         * m4/strchrnul.m4: New file.
92654
92655 2003-06-10  Simon Josefsson  <jas@extundo.com>
92656
92657         * lib/strchrnul.h: New file.
92658         * lib/strchrnul.c: New file.
92659
92660 2003-06-10  Bruno Haible  <bruno@clisp.org>
92661
92662         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92663
92664 2003-06-07  Karl Berry  <karl@gnu.org>
92665
92666         * config/config.{guess,sub}: update from prep.
92667
92668 2003-06-07  Jim Meyering  <jim@meyering.net>
92669
92670         * modules/strtod: Use $(...) notation, not @...@ for
92671         AC_REPLACE'd variables.
92672         * modules/localcharset: Likewise.
92673
92674 2003-06-07  Jim Meyering  <jim@meyering.net>
92675
92676         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92677         in place of my name in the copyright comment.
92678         Remove definition and uses of __P.
92679
92680         From coreutils.
92681         * lib/stat.c: Don't declare xmalloc explicitly.
92682         Instead, include "xalloc.h".
92683         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92684         xrealloc, and xcalloc return values.
92685         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92686         Improve comment.
92687         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92688
92689 2003-06-07  Bruno Haible  <bruno@clisp.org>
92690
92691         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92692         avoid AC_CONFIG_LINKS.
92693         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92694         fnmatch.h, to avoid AC_CONFIG_LINKS.
92695         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92696
92697 2003-06-07  Bruno Haible  <bruno@clisp.org>
92698
92699         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92700         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92701         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92702         directory.
92703         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92704         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92705         directory.
92706
92707 2003-06-06  Jim Meyering  <jim@meyering.net>
92708
92709         Merge from coreutils.
92710         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92711         Consolidate declarations and initializations of *_base* locals.
92712
92713         Merge from coreutils.
92714         This avoids a core dump on systems without GNU putenv,
92715         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92716         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92717         (unsetenv): New static function, from GNU libc.
92718         (rpl_putenv): Use it.
92719
92720         * lib/modechange.c: Remove trailing blanks.
92721
92722         Merge from coreutils.
92723         * lib/fsusage.c: Remove declaration of statfs.
92724         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92725
92726         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92727
92728 2003-06-06  Jim Meyering  <jim@meyering.net>
92729
92730         * lib/stdbool_.h: Renamed from stdbool.h.in.
92731
92732 2003-06-06  Jim Meyering  <jim@meyering.net>
92733             Bruno Haible  <bruno@clisp.org>
92734
92735         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92736         Adjust Makefile.am snippet not to redirect directly to target.
92737         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92738
92739 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92740
92741         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92742         mismatch, look in future quarters as well as past.  This fixes a
92743         bug when processing fall-backwards gaps immediately after a long
92744         period of daylight-saving time.
92745
92746         * lib/mktime.c: Assume freestanding C89 or better.
92747         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92748         (__P): Remove; not used.
92749         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92750         (mktime, not_equal_tm, print_tm, check_result,
92751         main): Use prototypes.  Use const * where appropriate.
92752         (main): Fix typo in testing code that uncovered by above changes.
92753         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92754
92755 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92756
92757         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92758         locale.h, localeconv.  This merges changes from coreutils.
92759
92760         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92761         It can be removed after the next Autoconf is released.
92762         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92763         needed.
92764
92765 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92766
92767         * lib/mktime.c: Fix Debian bug 177940
92768         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92769         (localtime_offset): Now long int, not time_t, because we want it
92770         to be guaranteed to be signed.  All uses changed.
92771         (__mktime_internal): If overflow would occur when adding offset,
92772         don't add it.
92773
92774         Merge 'human' changes from coreutils.  Rewrite to support
92775         locale-specific notations like thousands separators.
92776         * lib/human.c: Simplify authorship notice.
92777         Include human.h immediately after config.h.
92778         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92779         <limits.h>: Do not include, since human.h does.
92780         (SIZE_MAX, UINTMAX_MAX): New macros.
92781         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92782         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92783         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92784         (power_letter): Renamed from suffixes.
92785         (generate_suffix_backwards): Remove.
92786         (adjust_value): Now takes int style (because of human.h changes)
92787         and long double value (for greater precision on some platforms).
92788         (group_number): New function.
92789         (human_readable): Use it.  Use integer options, not enum.
92790         Put the options before the sizes in the arg list.
92791         Support all the new options.
92792         The old human_readable function has been removed;
92793         use inttostr.h instead.
92794         (human_readable, default_block_size, humblock):
92795         Use uintmax_t, not int, for block sizes.
92796         (human_readable_inexact, block_size_types): Remove.
92797         (block_size_opts): New constant.
92798         (human_options): Renamed from human_block_size, with new signature
92799         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92800         * lib/human.h: Add copyright and authorship notice.
92801         Include <limits.h> and <stdbool.h> unconditionally.
92802         (PARAMS): Remove.  All uses removed.
92803         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92804         (enum human_inexact_style): Remove tag; now a nameless enum.
92805         (human_floor, human_ceiling, human_round_to_even): Now have
92806         values 2, 0, 1 rather than -1, 1, 0.
92807         (human_group_digits, human_suppress_point_zero, human_autoscale,
92808         human_base_1024, human_SI, human_B): New constants.
92809         (human_readable_inexact, human_block_size): Remove.
92810         (human_readable): Size args are now uintmax_t, not int.
92811         (human_options): New decl.
92812
92813         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92814         unnecessary now that we assume C89 or better.  This change
92815         imported from coreutils.
92816
92817         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92818         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92819         in the 2003-05-30 sync from glibc.
92820
92821         .h files should stand alone, but we shouldn't include <sys/types.h>
92822         if we can get away with just <stddef.h>.
92823
92824         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92825         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92826         rather than <sys/types.h>, as we merely need size_t.
92827         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92828         to get size_t.
92829         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92830         Include <stdio.h>, to get FILE.
92831         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92832         memcasecmp.h has included <stddef.h> and all we need is size_t.
92833         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92834         our interface, instead of including <sys/types.h>
92835
92836 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92837
92838         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92839         now, as glibc mktime is buggy on non-glibc systems.
92840
92841 2003-06-03  Karl Berry  <karl@gnu.org>
92842
92843         * config/config.sub: update from prep.
92844
92845 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92846
92847         [from coreutils]
92848         Fix some minor time-related bugs with POSIX time arguments.
92849         Some valid time stamps were being rejected (notably -1, and
92850         time stamps before 1900 on 64-bit hosts).  And some invalid
92851         time stamps were being accepted, e.g. September 31.
92852
92853         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92854         that we can return (time_t) -1 successfully.
92855         * lib/posixtm.c: Likewise.
92856         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92857         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92858         (t): Remove static var.
92859         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92860         of static var.  All uses changed.
92861         (year): Do not reject years before 1900; they can occur with
92862         64-bit time_t.
92863         (posix_time_parse): Do not check for out-of-range components;
92864         that is now the caller's responsibility, since our checks were
92865         only approximations.
92866         (posixtime): Use mktime to check for out-of-range components,
92867         since it knows them exactly.
92868         If mktime returns (time_t) -1, check whether an error actually occurred
92869         by invoking localtime on -1.
92870         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92871         posixtime failures better.
92872         Improve the test data (in comments only).
92873
92874 2003-06-02  Karl Berry  <karl@gnu.org>
92875
92876         * config/mkinstalldirs (version): new variable.
92877         (--version): new option.
92878         (usage): improve message.
92879
92880 2003-05-30  Karl Berry  <karl@gnu.org>
92881
92882         * lib/mktime.c: update from libc.
92883
92884 2003-05-30  Bruno Haible  <bruno@clisp.org>
92885
92886         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92887         * config/config.rpath: Upgrade to gettext-0.12.1.
92888
92889 2003-05-30  Bruno Haible  <bruno@clisp.org>
92890
92891         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92892         * m4/nls.m4: New file, from gettext-0.12.1.
92893         * m4/po.m4: New file, from gettext-0.12.1.
92894         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92895
92896 2003-05-30  Bruno Haible  <bruno@clisp.org>
92897
92898         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92899         * lib/localcharset.h: Likewise.
92900         * lib/localcharset.c: Likewise.
92901
92902 2003-05-29  Karl Berry  <karl@gnu.org>
92903
92904         * config/config.rpath: update from gettext.
92905
92906 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92907
92908         Assume the headers required for C89 freestanding compilers.
92909         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92910         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92911         * m4/human.m4 (gl_HUMAN): Likewise.
92912         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92913         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92914         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92915         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92917         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92918
92919 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92920
92921         Assume the headers required for C89 freestanding compilers.
92922         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92923         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92924         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92925         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92926         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92927         define, since <limits.h> is guaranteed to do that.
92928         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92929         * lib/exclude.c: Include <stdbool.h> unconditionally.
92930         * lib/tempname.c: Include <stddef.h> unconditionally.
92931         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92932         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92933         <stddef.h> does that.
92934         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92935         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92936         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92937         needed.
92938         * lib/xstrtol.c: Likewise.
92939         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92940         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92941
92942         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92943         warnings on some platforms.
92944
92945         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92946         arbitrarily.
92947
92948 2003-05-26  Jim Meyering  <jim@meyering.net>
92949
92950         Merge in a change from coreutils:
92951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92952         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92953         that condition, rather than `-1' which is slightly misleading.
92954         Change the name of the cache variable to have the gl_ prefix.
92955         Prompted by a patch from Richard Dawe for DJGPP.
92956
92957 2003-05-24  Karl Berry  <karl@gnu.org>
92958
92959         * config/config.guess: update from prep.
92960
92961 2003-05-22  Karl Berry  <karl@gnu.org>
92962
92963         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92964
92965 2003-05-20  Karl Berry  <karl@gnu.org>
92966
92967         * config/config.guess: update from prep.
92968
92969 2003-05-18  Karl Berry  <karl@gnu.org>
92970
92971         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92972         might actually be set by the user.
92973
92974         * config/depcomp, install-sh, mdate-sh: update from automake.
92975
92976 2003-05-17  Bruno Haible  <bruno@clisp.org>
92977
92978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92979         invalid expansion for AC_EGREP_CPP.
92980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92982         Suggested by Akim Demaille <akim@epita.fr> in
92983         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92984
92985 2003-05-12  Jim Meyering  <jim@meyering.net>
92986
92987         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92988         the space-padded-by-default conversion specifiers, %e, %k, %l.
92989
92990 2003-05-12  Bruno Haible  <bruno@clisp.org>
92991
92992         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92993         the string is longer than 4 KB.
92994
92995 2003-05-11  Karl Berry  <karl@gnu.org>
92996
92997         * config/config.{guess,sub}: update from prep.
92998
92999 2003-05-09  Bruno Haible  <bruno@clisp.org>
93000
93001         * modules/error: Add m4/strerror_r.m4 to file list.
93002
93003 2003-05-03  Bruno Haible  <bruno@clisp.org>
93004
93005         Upgrade to Unicode-4.0.
93006         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93007         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93008         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93009         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93010         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93011         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93012         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93013         Change width of U+E0100..U+E01EF from 1 to 0.
93014
93015 2003-04-25  Jim Meyering  <jim@meyering.net>
93016
93017         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93018         of type size_t, not int.
93019
93020 2003-04-25  Bruno Haible  <bruno@clisp.org>
93021
93022         * lib/copy-file.c: Include <stddef.h>, for size_t.
93023
93024 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93025
93026         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93027         code which expansion is under static control.  Patch imported from
93028         Akim Demaille's patch to Bison; see
93029         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93030
93031 2003-04-14  Bruno Haible  <bruno@clisp.org>
93032
93033         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93034
93035 2003-04-11  Jim Meyering  <jim@meyering.net>
93036
93037         Merge changes from Coreutils.
93038
93039         2003-03-22  Jim Meyering  <jim@meyering.net>
93040
93041         * lib/strftime.c (widen): Cast alloca return value to proper type.
93042
93043         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93044
93045         From GNU libc.
93046         * lib/strftime.c (my_strftime): Handle very large width
93047         specifications for numeric values correctly.  Improve checks for
93048         overflow.
93049
93050         2003-01-19  Jim Meyering  <jim@meyering.net>
93051
93052         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93053         definitions.
93054         (nl_get_alt_digit) [! defined my_strftime]: Define.
93055         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93056         _nl_get_alt_digit and _nl_get_walt_digit.
93057
93058         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93059         libc. These changes have no effect outside of _LIBC.
93060
93061 2003-04-10  Bruno Haible  <bruno@clisp.org>
93062
93063         * modules/findprog: New file.
93064         * MODULES.html.sh (func_all_modules): Add it.
93065
93066 2003-04-10  Bruno Haible  <bruno@clisp.org>
93067
93068         * m4/findprog.m4: New file.
93069         * m4/eaccess.m4: New file.
93070
93071 2003-04-10  Bruno Haible  <bruno@clisp.org>
93072
93073         * lib/findprog.h: New file, from GNU gettext.
93074         * lib/findprog.c: New file, from GNU gettext.
93075
93076 2003-04-05  Jim Meyering  <jim@meyering.net>
93077
93078         Merge changes from Coreutils.
93079
93080         * lib/exclude.h (PARAMS): Remove definition and uses.
93081         * lib/exclude.c: Remove uses of `PARAMS'.
93082
93083         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93084         Add test-cases for DOS filenames. Declare program_name.
93085         (main): Set up program_name.  Patch by Rich Dawe.
93086
93087         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93088         error from mntctl.
93089         Use mntctl's return value to drive the entry-processing loop, since
93090         we can't rely on the value of the vmt_length member in the last
93091         entry.  On some systems doing so could result in exhausting
93092         virtual memory.  Based in part on a patch from Mike Jetzer.
93093
93094 2003-04-04  Bruno Haible  <bruno@clisp.org>
93095
93096         * modules/linebreak: New file.
93097         * MODULES.html.sh (func_all_modules): Add it.
93098
93099 2003-04-04  Bruno Haible  <bruno@clisp.org>
93100
93101         * m4/linebreak.m4: New file.
93102
93103 2003-04-04  Bruno Haible  <bruno@clisp.org>
93104
93105         * lib/linebreak.h: New file, from GNU gettext.
93106         * lib/linebreak.c: New file, from GNU gettext with slight
93107         modifications.
93108         * lib/lbrkprop.h: New file, from GNU gettext.
93109
93110 2003-04-03  Bruno Haible  <bruno@clisp.org>
93111
93112         * modules/utf8-ucs4: New file.
93113         * modules/utf16-ucs4: New file.
93114         * modules/ucs4-utf8: New file.
93115         * modules/ucs4-utf16: New file.
93116         * MODULES.html.sh (func_all_modules): Add them.
93117
93118 2003-04-03  Bruno Haible  <bruno@clisp.org>
93119
93120         * m4/utf-ucs4.m4: New file.
93121         * m4/ucs4-utf.m4: New file.
93122
93123 2003-04-03  Bruno Haible  <bruno@clisp.org>
93124
93125         * lib/utf8-ucs4.h: New file, from GNU gettext.
93126         * lib/utf16-ucs4.h: New file, from GNU gettext.
93127         * lib/ucs4-utf8.h: New file, from GNU gettext.
93128         * lib/ucs4-utf16.h: New file, from GNU gettext.
93129
93130 2003-04-02  Bruno Haible  <bruno@clisp.org>
93131
93132         * modules/binary-io: New file.
93133         * MODULES.html.sh (func_all_modules): Add it.
93134
93135 2003-04-02  Bruno Haible  <bruno@clisp.org>
93136
93137         * lib/binary-io.h: New file, from GNU gettext.
93138
93139 2003-04-01  Bruno Haible  <bruno@clisp.org>
93140
93141         * modules/pathname: New file.
93142         * MODULES.html.sh (func_all_modules): Add it.
93143
93144 2003-04-01  Bruno Haible  <bruno@clisp.org>
93145
93146         * lib/pathname.h: New file, from GNU gettext.
93147         * lib/concatpath.c: New file, from GNU gettext.
93148
93149 2003-03-30  Bruno Haible  <bruno@clisp.org>
93150
93151         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93152
93153 2003-03-30  Bruno Haible  <bruno@clisp.org>
93154
93155         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93156         function chown() doesn't exist.
93157
93158 2003-03-28  Bruno Haible  <bruno@clisp.org>
93159
93160         * modules/copy-file: New file.
93161         * MODULES.html.sh (func_all_modules): Add it.
93162
93163 2003-03-28  Bruno Haible  <bruno@clisp.org>
93164
93165         * m4/copy-file.m4: New file.
93166
93167 2003-03-28  Bruno Haible  <bruno@clisp.org>
93168
93169         * lib/copy-file.h: New file, from GNU gettext.
93170         * lib/copy-file.c: New file, from GNU gettext.
93171
93172 2003-03-18  Jim Meyering  <jim@meyering.net>
93173
93174         * lib/quote.c (quote_n): Fix typo in comment.
93175
93176 2003-03-18  Bruno Haible  <bruno@clisp.org>
93177
93178         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93179         checking.
93180         * m4/onceonly_2_57.m4: Likewise.
93181
93182 2003-03-17  Bruno Haible  <bruno@clisp.org>
93183
93184         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93185         (m4_quote): Remove macro.
93186         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93187
93188 2003-03-14  Jim Meyering  <jim@meyering.net>
93189
93190         Merge changes from Coreutils.
93191         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93192         to be const, in order to avoid warnings.
93193         (obstack_room): Likewise.
93194         (obstack_empty_p): Likewise.
93195
93196 2003-03-14  Bruno Haible  <bruno@clisp.org>
93197
93198         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93199         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93200
93201 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93202
93203         Merge changes from Bison.
93204         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93205         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93206         when compiling Bison 1.875's `bitset bset = obstack_alloc
93207         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93208         * lib/hash.c: Include <stdbool.h> unconditionally.
93209
93210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93211
93212         * m4/onceonly.m4 (m4_quote): New macro.
93213         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93214         Quote AC_FOREACH variable-expansions properly.
93215
93216 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93217
93218         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93219
93220 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93221
93222         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93223         Reported by Bruce Becker; see:
93224         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93225
93226 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93227             Bruno Haible  <bruno@clisp.org>
93228
93229         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93230         Reported by John Hughes, see
93231         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93232
93233 2003-02-20  Bruno Haible  <bruno@clisp.org>
93234
93235         * MODULES.html.sh (func_all_modules): Add poll.
93236
93237 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93238
93239         * modules/poll: New file.
93240
93241 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93242
93243         * lib/poll_.h: New file.
93244         * lib/poll.c: New file.
93245
93246 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93247
93248         * m4/poll.m4: New file.
93249
93250 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93251
93252         * modules/mathl: New file.
93253
93254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93255
93256         * lib/mathl.h: New file.
93257         * lib/acosl.c: New file.
93258         * lib/asinl.c: New file.
93259         * lib/atanl.c: New file.
93260         * lib/ceill.c: New file.
93261         * lib/cosl.c: New file.
93262         * lib/expl.c: New file.
93263         * lib/floorl.c: New file.
93264         * lib/frexpl.c: New file.
93265         * lib/ldexpl.c: New file.
93266         * lib/logl.c: New file.
93267         * lib/sincosl.c: New file.
93268         * lib/sinl.c: New file.
93269         * lib/sqrtl.c: New file.
93270         * lib/tanl.c: New file.
93271         * lib/trigl.c: New file.
93272         * lib/trigl.h: New file.
93273
93274 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93275
93276         * m4/mathl.m4: New file.
93277
93278 2003-02-18  Bruno Haible  <bruno@clisp.org>
93279
93280         * MODULES.html.sh (func_all_modules): Add mathl.
93281
93282 2003-02-17  Bruno Haible  <bruno@clisp.org>
93283
93284         * modules/mkdtemp: New module.
93285         * MODULES.html.sh (func_all_modules): Add it.
93286
93287 2003-02-17  Bruno Haible  <bruno@clisp.org>
93288
93289         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93290
93291 2003-02-17  Bruno Haible  <bruno@clisp.org>
93292
93293         * lib/mkdtemp.h: New file, from GNU gettext.
93294         * lib/mkdtemp.c: New file, from GNU gettext.
93295
93296 2003-02-02  Jim Meyering  <jim@meyering.net>
93297
93298         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93299         e.g. glibc-2.2.93.
93300
93301 2003-01-31  Bruno Haible  <bruno@clisp.org>
93302
93303         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93304         'rpl_rename'.
93305         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93306         'rpl_strnlen'.
93307         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93308         'rpl_strtod'.
93309         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93310         'rpl_utime'.
93311
93312 2003-01-31  Bruno Haible  <bruno@clisp.org>
93313
93314         * lib/rename.c: #undef rename before defining rpl_rename.
93315         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93316
93317 2003-01-30  Bruno Haible  <bruno@clisp.org>
93318
93319         * modules/vasnprintf, modules/vasprintf: New modules.
93320         * MODULES.html.sh (func_all_modules): Add them.
93321
93322 2003-01-30  Bruno Haible  <bruno@clisp.org>
93323
93324         * m4/signed.m4: New file, from GNU gettext.
93325         * m4/longdouble.m4: New file, from GNU gettext.
93326         * m4/wchar_t.m4: New file, from GNU gettext.
93327         * m4/wint_t.m4: New file, from GNU gettext.
93328         * m4/vasnprintf.m4: New file.
93329         * m4/vasprintf.m4: New file.
93330
93331 2003-01-30  Bruno Haible  <bruno@clisp.org>
93332
93333         * lib/printf-args.h: New file, from GNU gettext.
93334         * lib/printf-args.c: New file, from GNU gettext.
93335         * lib/printf-parse.h: New file, from GNU gettext.
93336         * lib/printf-parse.c: New file, from GNU gettext.
93337         * lib/vasnprintf.h: New file, from GNU gettext.
93338         * lib/vasnprintf.c: New file, from GNU gettext.
93339         * lib/asnprintf.c: New file, from GNU gettext.
93340         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93341         * lib/vasprintf.c: New file, from GNU gettext.
93342         * lib/asprintf.c: New file, from GNU gettext.
93343
93344 2003-01-29  Bruno Haible  <bruno@clisp.org>
93345
93346         * modules/stpncpy: New module.
93347         * MODULES.html.sh (func_all_modules): Add it.
93348
93349 2003-01-29  Bruno Haible  <bruno@clisp.org>
93350
93351         * m4/stpncpy.m4: New file.
93352
93353 2003-01-29  Bruno Haible  <bruno@clisp.org>
93354
93355         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93356         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93357
93358 2003-01-28  Bruno Haible  <bruno@clisp.org>
93359
93360         * modules/c-ctype: New module.
93361         * MODULES.html.sh (func_all_modules): Add it.
93362
93363 2003-01-28  Bruno Haible  <bruno@clisp.org>
93364
93365         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93366         Paul Eggert.
93367         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93368         Paul Eggert.
93369
93370 2003-01-27  Bruno Haible  <bruno@clisp.org>
93371
93372         * modules/xsetenv: New module.
93373         * MODULES.html.sh (func_all_modules): Add it.
93374
93375 2003-01-27  Bruno Haible  <bruno@clisp.org>
93376
93377         * lib/xsetenv.h: New file, from GNU gettext.
93378         * lib/xsetenv.c: New file, from GNU gettext.
93379
93380 2003-01-23  Jim Meyering  <jim@meyering.net>
93381
93382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93383         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93384
93385 2003-01-23  Bruno Haible  <bruno@clisp.org>
93386
93387         * modules/minmax: New module.
93388         * MODULES.html.sh (func_all_modules): Add it.
93389
93390 2003-01-23  Bruno Haible  <bruno@clisp.org>
93391
93392         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93393         Eggert.
93394
93395 2003-01-22  Bruno Haible  <bruno@clisp.org>
93396
93397         * modules/exit: New module.
93398         * MODULES.html.sh (func_all_modules): Add it.
93399
93400 2003-01-22  Bruno Haible  <bruno@clisp.org>
93401
93402         * lib/exit.h: New file, from GNU gettext.
93403
93404 2003-01-19  Bruno Haible  <bruno@clisp.org>
93405
93406         * gnulib-tool: Recognize option --extract-maintainer.
93407         (func_get_maintainer): New function.
93408         * modules/*: Add Maintainer entry.
93409
93410 2003-01-16  Jim Meyering  <jim@meyering.net>
93411
93412         * m4/regex.m4: The `regex' struct is both input and output.
93413         Initialize it before each use.  Patch by Tim Waugh.
93414
93415 2003-01-16  Bruno Haible  <bruno@clisp.org>
93416
93417         * MODULES.html.sh: Add a table of contents. Add the module name as
93418         leftmost column. Add hyperlinks.
93419
93420 2003-01-15  Bruno Haible  <bruno@clisp.org>
93421
93422         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93423
93424 2003-01-15  Bruno Haible  <bruno@clisp.org>
93425
93426         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93428         suffix.
93429
93430 2003-01-15  Bruno Haible  <bruno@clisp.org>
93431
93432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93433
93434 2003-01-15  Bruno Haible  <bruno@clisp.org>
93435
93436         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93437         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93438
93439 2003-01-14  Jim Meyering  <jim@meyering.net>
93440
93441         * lib/same.c (same_name): Tweak a comment.
93442
93443 2003-01-14  Bruno Haible  <bruno@clisp.org>
93444
93445         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93446         when a string comparison is sufficient.
93447
93448 2003-01-14  Bruno Haible  <bruno@clisp.org>
93449
93450         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93451         'unsigned int'.
93452
93453 2003-01-14  Bruno Haible  <bruno@clisp.org>
93454
93455         * lib/hash-pjw.c: Add comment about low quality of this function.
93456
93457 2003-01-13  Bruno Haible  <bruno@clisp.org>
93458
93459         * modules/stpcpy: Distribute lib/stpcpy.h.
93460         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93461
93462 2003-01-13  Bruno Haible  <bruno@clisp.org>
93463
93464         * modules/*: Add a description.
93465         * modules/strpbrk: Fix Makefile.am snippet.
93466         * modules/strtoimax: Fix dependencies.
93467         * modules/strtoumax: Likewise.
93468
93469 2003-01-13  Bruno Haible  <bruno@clisp.org>
93470
93471         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93472         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93473         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93474
93475 2003-01-13  Bruno Haible  <bruno@clisp.org>
93476
93477         * gnulib-tool (func_create_testdir): Store config/* files in the main
93478         directory.
93479         * config.rpath: Move to ...
93480         * config/config.rpath: ... here.
93481         * modules/gettext: Contains config/config.rpath, not config.rpath.
93482         * modules/iconv: Likewise.
93483
93484 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93485
93486         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93487         to avoid collisions with libcurses and libreadline.
93488
93489         * m4/getstr.m4: Remove.
93490         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93491
93492 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93493
93494         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93495         to avoid collisions with libcurses and libreadline.
93496
93497         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93498         * lib/getstr.h, getstr.c: Remove.
93499         * lib/getline.c: Include "getline.h", to check interface.
93500         Move body of old getstr.c here: this defines MIN_CHUNK and
93501         declares getdelim2, which is renamed from getstr.
93502         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93503
93504         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93505         All uses changed.
93506         * lib/linebuffer.h: Likewise.
93507         (readline): Remove backward-compatibility macro.
93508
93509 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93510
93511         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93512         to avoid collisions with libcurses and libreadline.
93513         * getstr: Remove.
93514         * MODULES.html.sh: Remove getstr.
93515         * modules/getline: Depend on unlocked-io, not getstr.
93516
93517 2003-01-12  Jim Meyering  <jim@meyering.net>
93518
93519         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93520
93521 2003-01-10  Bruno Haible  <bruno@clisp.org>
93522
93523         * modules/alloca: Change Makefile.am requirements. Simplify Include
93524         requirements. Add lib/alloca_.h to file list.
93525
93526 2003-01-10  Bruno Haible  <bruno@clisp.org>
93527
93528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93529
93530 2003-01-10  Bruno Haible  <bruno@clisp.org>
93531
93532         * lib/alloca_.h: New file.
93533         * lib/getdate.y: Unconditionally include alloca.h.
93534         * lib/makepath.c: Likewise.
93535         * lib/setenv.c: Likewise.
93536         * lib/userspec.c: Likewise.
93537
93538 2003-01-09  Karl Berry  <karl@gnu.org>
93539
93540         * MODULES.html.sh: include `dirname $0` in PATH, to find
93541         gnulib-tool.
93542
93543 2003-01-09  Bruno Haible  <bruno@clisp.org>
93544
93545         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93546         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93547
93548 2003-01-09  Bruno Haible  <bruno@clisp.org>
93549
93550         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93551
93552 2003-01-09  Bruno Haible  <bruno@clisp.org>
93553
93554         * lib/stdbool.h.in: New file.
93555
93556 2003-01-09  Bruno Haible  <bruno@clisp.org>
93557
93558         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93559         * MODULES.html.sh: Likewise.
93560
93561 2003-01-08  Jim Meyering  <jim@meyering.net>
93562
93563         * lib/full-write.c: Undefine and define-away `const' after inclusion
93564         of errno.h, not before.  Suggestion from Bruno Haible.
93565
93566 2003-01-08  Bruno Haible  <bruno@clisp.org>
93567
93568         * modules/full-read: Depend on full-write.
93569
93570 2003-01-08  Bruno Haible  <bruno@clisp.org>
93571
93572         * lib/safe-read.c: Include specification header first, to ensure its
93573         selfcontainedness.
93574         * lib/full-write.c: Likewise.
93575
93576 2003-01-07  Jim Meyering  <jim@meyering.net>
93577
93578         * lib/full-write.c: Rework so that it may serve to define full_read,
93579         too.
93580         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93581
93582 2003-01-07  Bruno Haible  <bruno@clisp.org>
93583
93584         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93585         <inttypes.h>.
93586         * lib/xstrtol.h: Likewise.
93587         * lib/xstrtoimax.c: Likewise.
93588         * lib/xstrtoumax.c: Likewise.
93589         * lib/human.h: Likewise.
93590
93591         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93592         on systems that have <inttypes.h> but not <stdint.h>.
93593
93594 2003-01-07  Bruno Haible  <bruno@clisp.org>
93595
93596         * MODULES.html.sh: Add copyright notice.
93597         (missed_files): Omit CVS directory entries.
93598         (func_module): Make it work with sed-3.02.
93599         * MODULES.txt: Remove file.
93600
93601 2003-01-06  Jim Meyering  <jim@meyering.net>
93602
93603         * lib/version-etc.c: Update year in translatable copyright string.
93604
93605 2003-01-03  Karl Berry  <karl@gnu.org>
93606
93607         * config/config.{guess,sub}: update from prep.
93608
93609 2003-01-02  Karl Berry  <karl@gnu.org>
93610
93611         * doc/COPYING.DOC: belatedly updated to 1.2.
93612
93613 2003-01-01  Karl Berry  <karl@gnu.org>
93614
93615         * gnulib-tool (func_verify_module): report module name $module in
93616         error message, not $1.
93617         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93618         be created, only if it doesn't exist.
93619         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93620
93621 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93622
93623         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93624
93625 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93626
93627         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93628         memcmp if strcoll doesn't work.
93629
93630 2002-12-31  Bruno Haible  <bruno@clisp.org>
93631
93632         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93633         nonempty.
93634
93635 2002-12-31  Bruno Haible  <bruno@clisp.org>
93636
93637         * lib/memcoll.c (STRCOLL): New macro.
93638         (memcoll): Use it.
93639
93640 2002-12-31  Bruno Haible  <bruno@clisp.org>
93641
93642         * lib/localcharset.h: New file.
93643         * lib/localcharset.c: Include it.
93644         * lib/unicodeio.c: Likewise.
93645
93646 2002-12-31  Bruno Haible  <bruno@clisp.org>
93647
93648         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93649         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93650
93651 2002-12-31  Bruno Haible  <bruno@clisp.org>
93652
93653         * lib/getline.h: Include <stddef.h>, for size_t.
93654
93655         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93656         * lib/unicodeio.c: Don't include <stddef.h>.
93657
93658 2002-12-31  Bruno Haible  <bruno@clisp.org>
93659
93660         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93661         HAVE_TM_ZONE.
93662
93663 2002-12-24  Karl Berry  <karl@gnu.org>
93664
93665         * config/config.guess: update from prep.
93666
93667 2002-12-24  Bruno Haible  <bruno@clisp.org>
93668
93669         General infrasructure.
93670         * m4/README: Rewritten.
93671         * m4/onceonly.m4: New file.
93672         * m4/onceonly_2_57.m4: New file.
93673
93674         Module atexit.
93675         * m4/atexit.m4: New file.
93676
93677         Module strtod.
93678         * m4/strtod.m4: New file.
93679
93680         Module strtol.
93681         * m4/strtol.m4: New file.
93682
93683         Module strtoul.
93684         * m4/strtoul.m4: New file.
93685
93686         Module memchr.
93687         * m4/memchr.m4: New file.
93688
93689         Module memcmp.
93690         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93691         (jm_FUNC_MEMCMP): Invoke it.
93692
93693         Module memcpy.
93694         * m4/memcpy.m4: New file.
93695
93696         Module memmove.
93697         * m4/memmove.m4: New file.
93698
93699         Module memset.
93700         * m4/memset.m4: New file.
93701
93702         Module strcspn.
93703         * m4/strcspn.m4: New file.
93704
93705         Module strpbrk.
93706         * m4/strpbrk.m4: New file.
93707
93708         Module strstr.
93709         * m4/strstr.m4: New file.
93710
93711         Module strerror.
93712         * m4/strerror.m4: New file.
93713
93714         Module mktime.
93715         * m4/mktime.m4: Renamed from jm-mktime.m4.
93716         (gl_PREREQ_MKTIME): New macro.
93717         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93718
93719         Module malloc.
93720         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93721         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93722         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93723
93724         Module realloc.
93725         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93726         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93727         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93728
93729         Module strftime.
93730         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93731         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93732         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93733         gl_TM_GMTOFF.
93734         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93735
93736         Module xalloc.
93737         * m4/xalloc.m4: New file.
93738
93739         Module alloca.
93740         * m4/alloca.m4: New file.
93741
93742         Module putenv.
93743         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93744         (jm_FUNC_PUTENV): Invoke it.
93745
93746         Module setenv.
93747         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93748         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93749         when invoked twice.
93750         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93751         gt_FUNC_SETENV.
93752
93753         Module memrchr.
93754         * m4/memrchr.m4: New file.
93755
93756         Module stpcpy.
93757         * m4/stpcpy.m4: New file.
93758
93759         Module strcase.
93760         * m4/strcase.m4: New file.
93761
93762         Module strdup.
93763         * m4/strdup.m4: New file.
93764
93765         Module strnlen.
93766         * m4/strnlen.m4: New file.
93767
93768         Module strndup.
93769         * m4/strndup.m4: New file.
93770
93771         Module xstrtod.
93772         * m4/xstrtod.m4: New file.
93773
93774         Module xstrtol.
93775         * m4/xstrtol.m4: New file.
93776
93777         Module getdate.
93778         * m4/getdate.m4: New file.
93779
93780         Module unlocked-io.
93781         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93782         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93783         * m4/jm-glibc-io.m4n: Remove file.
93784
93785         Module long-options.
93786         * m4/long-options.m4: New file.
93787
93788         Module md5.
93789         * m4/md5.m4: New file.
93790
93791         Module sha.
93792         * m4/sha.m4: New file.
93793
93794         Module getstr.
93795         * m4/getstr.m4: New file.
93796
93797         Module getline.
93798         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93799         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93800         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93801         simply getline. Infoke gl_PREREQ_GETLINE.
93802
93803         Module obstack.
93804         * m4/obstack.m4: New file.
93805
93806         Module hash.
93807         * m4/hash.m4: New file.
93808
93809         Module readtokens.
93810         * m4/readtokens.m4: New file.
93811
93812         Module strverscmp.
93813         * m4/strverscmp.m4: New file.
93814
93815         Module stdbool.
93816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93817         OSF/1.
93818
93819         Module strtoll.
93820         * m4/strtoll.m4: New file.
93821
93822         Module strtoull.
93823         * m4/strtoull.m4: New file.
93824
93825         Module strtoimax.
93826         * m4/strtoimax.m4: New file.
93827
93828         Module strtoumax.
93829         * m4/strtoumax.m4: New file.
93830
93831         Module xstrtoimax.
93832         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93833         jm_AC_PREREQ_XSTRTOIMAX.
93834         Moved the strtol prerequisites to strtol.m4.
93835         Moved the strtoll prerequisites to strtoll.m4.
93836         Moved the strtoimax prerequisites to strtoimax.m4.
93837
93838         Module xstrtoumax.
93839         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93840         jm_AC_PREREQ_XSTRTOUMAX.
93841         Moved the strtoul prerequisites to strtoul.m4.
93842         Moved the strtoull prerequisites to strtoull.m4.
93843         Moved the strtoumax prerequisites to strtoumax.m4.
93844
93845         Module chown.
93846         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93847         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93848
93849         Module dup2.
93850         * m4/dup2.m4: New file.
93851
93852         Module ftruncate.
93853         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93854         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93855
93856         Module getgroups.
93857         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93858         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93859
93860         Module gettimeofday.
93861         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93863         gl_PREREQ_GETTIMEOFDAY.
93864
93865         Module mkdir.
93866         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93867         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93868
93869         Module mkstemp.
93870         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93871         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93872         jm_AC_TYPE_UINTMAX_T.
93873         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93874
93875         Module stat.
93876         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93877         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93878
93879         Module lstat.
93880         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93881         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93882
93883         Module timespec.
93884         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93885         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93886         * m4/st_mtim.m4: Indentation.
93887
93888         Module nanosleep.
93889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93890         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93891         gl_PREREQ_NANOSLEEP.
93892
93893         Module regex.
93894         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93895         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93896         (gl_REGEX): New macro.
93897
93898         Module rename.
93899         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93900         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93901
93902         Module rmdir.
93903         * m4/rmdir.m4: New file.
93904
93905         Module utime.
93906         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93907         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93908         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93909
93910         Module dirname.
93911         * m4/dirname.m4: New file.
93912
93913         Module getopt.
93914         * m4/getopt.m4: New file.
93915
93916         Module unistd-safer.
93917         * m4/unistd-safer.m4: New file.
93918
93919         Module fnmatch.
93920         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93921         declaration.
93922         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93923         (gl_FUNC_FNMATCH_POSIX): New macro.
93924         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93925         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93926         simply fnmatch.
93927
93928         Module exclude.
93929         * m4/exclude.m4: New file.
93930
93931         Module human.
93932         * m4/human.m4: New file.
93933
93934         Module acl.
93935         * m4/acl.m4: Nop.
93936
93937         Module backupfile.
93938         * m4/backupfile.m4: New file.
93939         * m4/d-ino.m4: Indentation.
93940
93941         Module fsusage.
93942         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93943         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93944         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93945
93946         Module dirfd.
93947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93948         requirements.
93949
93950         Module euidaccess.
93951         * m4/euidaccess.m4: New file.
93952
93953         Module file-type.
93954         * m4/file-type.m4: New file.
93955
93956         Module fileblocks.
93957         * m4/fileblocks.m4: New file.
93958
93959         Module filemode.
93960         * m4/filemode.m4: New file.
93961
93962         Module isdir.
93963         * m4/isdir.m4: New file.
93964
93965         Module lchown.
93966         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93967         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93968
93969         Module makepath.
93970         * m4/makepath.m4: New file.
93971
93972         Module modechange.
93973         * m4/modechange.m4: New file.
93974
93975         Module mountlist.
93976         * m4/mountlist.m4: New file.
93977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93978         Indentation.
93979
93980         Module path-concat.
93981         * m4/path-concat.m4: New file.
93982
93983         Module pathmax.
93984         * m4/pathmax.m4: New file.
93985
93986         Module same.
93987         * m4/same.m4: New file.
93988
93989         Module save-cwd.
93990         * m4/save-cwd.m4: New file.
93991
93992         Module savedir.
93993         * m4/savedir.m4: New file.
93994
93995         Module xgetcwd.
93996         * m4/xgetcwd.m4: New file.
93997         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93998
93999         Module xreadlink.
94000         * m4/xreadlink.m4: New file.
94001
94002         Module safe-read.
94003         * m4/safe-read.m4: New file.
94004
94005         Module safe-write.
94006         * m4/safe-write.m4: New file.
94007
94008         Module closeout.
94009         * m4/closeout.m4: New file.
94010
94011         Module stdio-safer.
94012         * m4/stdio-safer.m4: New file.
94013
94014         Module getpass.
94015         * m4/getpass.m4: New file.
94016
94017         Module getugroups.
94018         * m4/getugroups.m4: New file.
94019
94020         Module group-member.
94021         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94022         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94023
94024         Module idcache.
94025         * m4/idcache.m4: New file.
94026
94027         Module userspec.
94028         * m4/userspec.m4: New file.
94029
94030         Module gettime.
94031         * m4/clock_time.m4: New file.
94032         * m4/gettime.m4: New file.
94033
94034         Module settime.
94035         * m4/settime.m4: New file.
94036
94037         Module posixtm.
94038         * m4/posixtm.m4: New file.
94039
94040         Module gethostname.
94041         * m4/gethostname.m4: New file.
94042
94043         Module canon-host.
94044         * m4/canon-host.m4: New file.
94045
94046         Module gettext.
94047         * m4/codeset.m4: New file, from gettext-0.11.5.
94048         * m4/gettext.m4: New file, from gettext-0.11.5.
94049         * m4/glibc21.m4: New file, from gettext-0.11.5.
94050         * m4/iconv.m4: New file, from gettext-0.11.5.
94051         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94052         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94053         * m4/inttypes.m4: New file, from gettext-0.11.5.
94054         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94055         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94056         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94057         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94058         * m4/lib-link.m4: New file, from gettext-0.11.5.
94059         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94060         * m4/progtest.m4: New file, from gettext-0.11.5.
94061         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94062         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94063         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94064
94065         Module localcharset.
94066         * m4/localcharset.m4: New file.
94067
94068         Module hard-locale.
94069         * m4/hard-locale.m4: New file.
94070
94071         Module mbswidth.
94072         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94073         onceonly macros.
94074         * m4/mbrtowc.m4: Add comment.
94075
94076         Module memcasecmp.
94077         * m4/memcasecmp.m4: New file.
94078
94079         Module memcoll.
94080         * m4/memcoll.m4: New file.
94081
94082         Module unicodeio.
94083         * m4/unicodeio.m4: New file.
94084
94085         Module rpmatch.
94086         * m4/rpmatch.m4: New file.
94087
94088         Module yesno.
94089         * m4/yesno.m4: New file.
94090
94091         Module exitfail.
94092         * m4/exitfail.m4: New file.
94093
94094         Module c-stack.
94095         * m4/c-stack.m4 (gl_C_STACK): New macro.
94096         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94097
94098         Module error.
94099         * m4/error.m4 (gl_ERROR): New macro.
94100         (jm_PREREQ_ERROR): Use onceonly macros.
94101
94102         Module fatal.
94103         * m4/fatal.m4: New file.
94104
94105         Module getloadavg.
94106         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94107         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94108
94109         Module getpagesize.
94110         * m4/getpagesize.m4: New file.
94111
94112         Module getusershell.
94113         * m4/getusershell.m4: New file.
94114
94115         Module physmem.
94116         * m4/physmem.m4: New file.
94117
94118         Module posixver.
94119         * m4/posixver.m4: New file.
94120
94121         Module quotearg.
94122         * m4/quotearg.m4: New file.
94123
94124         Module quote.
94125         * m4/quote.m4: New file.
94126
94127         Module readutmp.
94128         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94129
94130         Module sig2str.
94131         * m4/sig2str.m4: New file.
94132
94133         Other.
94134         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94135         ulonglong.m4.
94136         * m4/intmax_t.m4: New file.
94137         * m4/d-type.m4: Indentation.
94138         * m4/jm-macros.m4: Update.
94139         * m4/prereq.m4 (jm_PREREQ): Update.
94140         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94141         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94142         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94143         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94144         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94145         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94146         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94147         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94148         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94149         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94150         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94151         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94152         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94153         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94154         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94155         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94156         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94157         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94158         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94159
94160 2002-12-24  Bruno Haible  <bruno@clisp.org>
94161
94162         * MODULES.txt: Update according to m4/ changes.
94163
94164         Module gettext.
94165         * config.rpath: New file, from gettext-0.11.5.
94166
94167         * modules/*: New module descriptions.
94168         * gnulib-tool: New file.
94169         * MODULES.html.sh: New file.
94170
94171 2002-12-21  Karl Berry  <karl@gnu.org>
94172
94173         * doc/fdl.texi: update to version 1.2.
94174
94175 2002-12-19  Karl Berry  <karl@gnu.org>
94176
94177         * config/config.guess: update from prep.
94178
94179 2002-12-18  Bruno Haible  <bruno@clisp.org>
94180
94181         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94182         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94183
94184 2002-12-17  Bruno Haible  <bruno@clisp.org>
94185
94186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94187         stdlib.h, string.h.
94188
94189 2002-12-17  Bruno Haible  <bruno@clisp.org>
94190
94191         * lib/canon-host.c (strdup): Remove unused declaration.
94192
94193         * lib/fsusage.c: Include full_read.h.
94194         (get_fs_usage): Use full_read instead of safe_read.
94195
94196         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94197
94198 2002-12-12  Karl Berry  <karl@gnu.org>
94199
94200         * config/config.guess: update from prep.
94201
94202 2002-12-11  Bruno Haible  <bruno@clisp.org>
94203
94204         * m4/setenv.m4: New file, from gettext-0.11.5.
94205
94206 2002-12-11  Bruno Haible  <bruno@clisp.org>
94207
94208         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94209         not unsetenv().
94210         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94211         modifications:
94212
94213         2002-12-11  Bruno Haible  <bruno@clisp.org>
94214
94215                 * setenv.c (alloca): Fall back to malloc.
94216                 (freea): New macro.
94217                 (setenv): Use freea() to free memory allocated with alloca().
94218
94219         2002-11-13  Bruno Haible  <bruno@clisp.org>
94220
94221                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94222                 function declarations.
94223                 * unsetenv.c (unsetenv): Likewise.
94224
94225         2002-03-04  Bruno Haible  <bruno@clisp.org>
94226
94227                 Portability to AIX 4.3.3.
94228                 * unsetenv.c: New file, extracted from setenv.c.
94229                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94230
94231         2001-12-20  Bruno Haible  <bruno@clisp.org>
94232
94233                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94234                 use malloc instead. For SunOS 4.
94235
94236         2001-12-11  Bruno Haible  <bruno@clisp.org>
94237
94238                 * setenv.c: Declare alloca.
94239                 (compar_fn_t): New typedef.
94240                 (KNOWN_VALUE, STORE_VALUE): Use it.
94241
94242         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94243         setenv.h.
94244
94245 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94246
94247         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94248         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94249         Choose values that are less likely to collide with system fnmatch
94250         options.
94251         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94252         defined (e.g., a pure POSIX system).
94253         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94254         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94255
94256 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94257
94258         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94259         a pain in practice to deal with generated m4 files.  This change
94260         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94261
94262         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94263         and jm-glibc-io.m4, as they are no longer a special case.
94264         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94265         kludge and the auto-generation stuff.  Check only whether the
94266         functions are declared, not whether they exist, since older hosts
94267         that don't declare the functions can't use the optimization anyway.
94268
94269 2002-12-06  Jim Meyering  <jim@meyering.net>
94270
94271         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94272
94273         Merge in changes from libc's misc/error.c, in preparation
94274         for the merge of gnulib's changes back into libc.
94275
94276         * lib/error.c (_): Define only if not already defined.
94277         Move definition to follow all #include directives.
94278         Include unlocked-io.h only if !_LIBC.
94279         [_LIBC]: Include <libio/libioP.h>.
94280         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94281         (fflush): Tweak definition to use INTUSE.
94282         (putc): Define.
94283
94284 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94285
94286         * lib/alloca.c [defined emacs]: Include "lisp.h".
94287         (xalloc_die) [defined emacs]: New macro.
94288         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94289         [! defined emacs]: Include <xalloc.h>.
94290         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94291         (pointer): Typedef to POINTER_TYPE *.
94292         (malloc): Remove decl; we now always use xmalloc.
94293         (alloca): Use old-style definition, since Emacs needs this.
94294         Check for arithmetic overflow when computing combined size.
94295
94296 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94297
94298         Do not generate unlocked-io.h automatically, since it's easier to
94299         maintain it by hand.
94300
94301         * lib/unlocked-io.h: New file, from GNU diffutils,
94302         but with proper copyright notice and attribution.
94303         * lib/gen-uio: Remove.
94304         * lib/Makefile.am: Add copyright notice.
94305         (libfetish_a_SOURCES): Add unlocked-io.h.
94306         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94307         (DISTCLEANFILES, io_functions): Remove macros.
94308         (EXTRA_DIST): Remove gen_uio.
94309         (unlocked-io.h): Remove rule.
94310
94311 2002-12-04  Jim Meyering  <jim@meyering.net>
94312
94313         Reflect the fact that stat.c and lstat.c are no longer generated.
94314         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94315         (DISTCLEANFILES): Likewise.
94316         (EXTRA_DIST): Likewise.
94317         (all_local): Don't depend on stat.c or lstat.c.
94318         (stat.c, lstat.c): Remove rules.
94319         (EXTRA_DIST): Remove xstat.in.
94320
94321         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94322         * lib/stat.c: New file.  Contents mostly from xstat.in.
94323         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94324         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94325
94326         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94327         too.
94328         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94329
94330 2002-12-03  Jim Meyering  <jim@meyering.net>
94331
94332         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94333         but not semantics, to minimize the differences between these two files.
94334         (safe_read): Change comment to mention SAFE_READ_ERROR.
94335
94336         * lib/safe-read.c (IS_EINTR): Define.
94337         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94338
94339 2002-12-02  Jim Meyering  <jim@meyering.net>
94340
94341         * lib/safe-read.c (EINTR): Define.
94342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94343         (INT_MAX): Provide fallback.
94344         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94345
94346         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94347
94348 2002-12-02  Bruno Haible  <bruno@clisp.org>
94349
94350         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94351         Define, taken from safe-read.c.
94352         (INT_MAX): Provide fallback.
94353         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94354         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94355
94356         * lib/safe-read.c (EINTR): Remove definition.
94357         (safe_read): Don't use EINTR if it is absent.
94358
94359 2002-12-01  Jim Meyering  <jim@meyering.net>
94360
94361         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94362         zero.
94363         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94364
94365 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94366
94367         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94368         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94369         with `if (! (value < limit)) abort ();', for readability.
94370
94371 2002-11-26  Karl Berry  <karl@gnu.org>
94372
94373         * lib/strdup.c: copy from libc again, with jim's ok.
94374         * lib/.cppi-disable: re-add strdup.c
94375
94376 2002-11-25  Karl Berry  <karl@gnu.org>
94377
94378         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94379         instead of "strtol.c".
94380
94381 2002-11-25  Karl Berry  <karl@gnu.org>
94382
94383         * config/install-sh: update from automake for variable quoting, $0 in
94384         error msgs, etc.
94385
94386         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94387         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94388         entry.
94389
94390 2002-11-25  Jim Meyering  <jim@meyering.net>
94391
94392         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94393
94394 2002-11-24  Karl Berry  <karl@gnu.org>
94395
94396         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94397         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94398
94399 2002-11-24  Jim Meyering  <jim@meyering.net>
94400
94401         Update from coreutils:
94402
94403         * lib/mktime.c: Merge in changes from libc.
94404
94405         Avoid a link-time failure on some Linux systems.
94406         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94407         (otherwise).
94408         (__mon_yday): Declare with the STATIC attribute.
94409         (__mktime_internal): Likewise.
94410         Based on a report from Greg Schafer.
94411
94412 2002-11-23  Jim Meyering  <jim@meyering.net>
94413
94414         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94415         Use `unsigned', not `int', as type of index.
94416
94417         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94418
94419         * lib/fsusage.c: Remove unneeded parentheses around operands of
94420         `defined'.
94421
94422 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94423
94424         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94425         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94426         so that we can be included first.
94427         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94428         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94429         No need to include stddef.h or sys/types.h any more.
94430         Surround local include files with "", not "<>".
94431         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94432         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94433         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94434         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94435         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94436         (ISPRINT): Remove; no longer needed now that we assume C89.
94437
94438         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94439         Preserve errno.
94440
94441         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94442         quotearg_char): Use SIZE_MAX rather than
94443         (size_t) -1 when we are talking about "infinity".
94444
94445         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94446
94447 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94448
94449         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94450         hint that one should use `if (! x) abort ();' rather than `assert
94451         (x);', and anyway it's one less thing to worry about configuring.
94452         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94453         hash_rehash, hash_insert): Use abort rather than assert.
94454
94455 2002-11-22  Bruno Haible  <bruno@clisp.org>
94456
94457         * lib/safe-read.h: Assume C89. Add comments.
94458         (safe_read): Change return type to size_t.
94459         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94460         byte counts > SSIZE_MAX correctly.
94461         * lib/safe-write.h: New file.
94462         * lib/safe-write.c: New file.
94463         * lib/full-read.h: New file.
94464         * lib/full-read.c: New file.
94465         * lib/full-write.h: Assume C89. Add comments.
94466         * lib/full-write.c: Include safe-write.h.
94467         (full_write): Rewritten to use safe_write.
94468         Suggested by Jim Meyering and Paul Eggert.
94469
94470 2002-11-21  Jim Meyering  <jim@meyering.net>
94471
94472         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94473
94474         Merge in changes from the coreutils.
94475
94476         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94477         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94478         <stdint.h>.
94479         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94480         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94481         int.  Work more efficiently if X is the same width as uintmax_t.
94482         Do not compare X to -1, to avoid bogus compiler warning.
94483         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94484         Don't assume that f_frsize and f_bsize are the same type.
94485
94486         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94487         warning on FreeBSD.
94488
94489         * lib/makepath.c (make_path): Restore umask *before* creating the final
94490         component.
94491         (make_path): Minor reformatting.
94492
94493         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94494         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94495         HAVE_MALLOC/HAVE_REALLOC.
94496
94497         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94498         dummy ones.  At least on GNU/Linux systems, `auto' means something
94499         else.
94500         From Michael Stone.
94501
94502 2002-11-21  Bruno Haible  <bruno@clisp.org>
94503
94504         Remove case insensitive option matching.
94505         * lib/argmatch.h (argcasematch): Remove declaration.
94506         (ARGCASEMATCH): Remove macro.
94507         (__xargmatch_internal): Remove case_sensitive argument.
94508         (XARGMATCH): Update.
94509         (XARGCASEMATCH): Remove macro.
94510         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94511         case_sensitive argument.
94512         (argcasematch): Remove function.
94513         (__xargmatch_internal): Remove case_sensitive argument.
94514         (main): Use XARGMATCH instead of XARGCASEMATCH.
94515
94516         * lib/xmalloc.c: Change compile-time error message. Add comment about
94517         required autoconf version.
94518
94519 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94520
94521         Merge argmatch cleanups from Bison.  Assume C89.
94522
94523         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94524         Include stdlib.h, for EXIT_FAILURE.
94525         Always include <string.h>, since we assume C89.
94526         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94527         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94528         Include <stddef.h> instead, since it's all we need for size_t.
94529         (PARAMS): Remove.  All uses removed.
94530         (ARRAY_CARDINALITY): Do not bother to #undef.
94531         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94532         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94533         Remove unnecessary parentheses.
94534         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94535         Insert necessary parentheses.
94536         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94537         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94538
94539 2002-11-19  Bruno Haible  <bruno@clisp.org>
94540
94541         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94542         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94543
94544         * lib/mbswidth.h (PARAMS): Remove macro.
94545         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94546         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94547
94548         * lib/gcd.h (PARAMS): Remove macro.
94549         (gcd): Use ANSI C function declarations.
94550         * lib/gcd.c (gcd): Likewise.
94551
94552 2002-11-15  Bruno Haible  <bruno@clisp.org>
94553
94554         * lib/strcspn.c: Include <stddef.h>.
94555         (strcspn): Use ANSI C function declaration. Change return type to
94556         size_t. Use NULL.
94557         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94558         (strpbrk): Use NULL.
94559         * lib/strpbrk.h (PARAMS): Remove macro.
94560         (strpbrk): Use ANSI C function declaration.
94561         * lib/strstr.c: Don't include <sys/types.h>.
94562         * lib/strstr.h (PARAMS): Remove macro.
94563         (strstr): Use ANSI C function declarations.
94564
94565 2002-11-14  Karl Berry  <karl@gnu.org>
94566
94567         * config/mkinstalldirs: `do' on separate line, instead of
94568         `for var; do'.
94569
94570 2002-11-06  Bruno Haible  <bruno@clisp.org>
94571
94572         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94573         * lib/gcd.c (gcd): Likewise.
94574
94575 2002-11-05  Bruno Haible  <bruno@clisp.org>
94576
94577         * lib/gcd.h: New file, from gettext-0.11.5.
94578         * lib/gcd.c: New file, from gettext-0.11.5.
94579
94580 2002-11-05  Bruno Haible  <bruno@clisp.org>
94581
94582         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94583         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94584         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94585         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94586
94587         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94588         <libintl.h>.
94589         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94590         <libintl.h>.
94591
94592         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94593         * lib/human.c: Include gettext.h instead of <libintl.h>.
94594         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94595         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94596         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94597         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94598         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94599         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94600         (textdomain): Remove definition.
94601         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94602
94603         * lib/long-options.c: Remove include of <libintl.h> and definition of
94604         _.
94605         * lib/same.c: Remove include of <libintl.h> and definition of _.
94606
94607 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94608
94609         * lib/config.charset: A few additions for Solaris.
94610
94611 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94612
94613         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94614         * lib/localcharset.c (locale_charset): Declare as extern "C".
94615
94616 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94617
94618         * lib/config.charset: msdos in uk_UA uses CP1125.
94619
94620 2002-11-04  Bruno Haible  <bruno@clisp.org>
94621
94622         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94623         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94624         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94625         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94626         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94627
94628 2002-11-04  Bruno Haible  <bruno@clisp.org>
94629
94630         * lib/localcharset.c (locale_charset): Don't return an empty string.
94631
94632 2002-11-04  Bruno Haible  <bruno@clisp.org>
94633
94634         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94635         aliases.
94636
94637 2002-11-04  Bruno Haible  <bruno@clisp.org>
94638
94639         * lib/config.charset: Update for newest glibc. Add canonical names
94640         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94641
94642 2002-11-04  Bruno Haible  <bruno@clisp.org>
94643
94644         * lib/config.charset: Add support for NetBSD.
94645
94646 2002-11-04  Bruno Haible  <bruno@clisp.org>
94647
94648         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94649
94650 2002-11-01  Bruno Haible  <bruno@clisp.org>
94651
94652         * configure.in: Add AC_CONFIG_AUX_DIR call.
94653         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94654         test/Makefile.
94655         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94656
94657 2002-09-28  Karl Berry  <karl@gnu.org>
94658
94659         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94660         installed automake until the next release, since changes have been
94661         made.
94662
94663 2002-09-25  Karl Berry  <karl@gnu.org>
94664
94665         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94666         * lib/getopt*: copy from libc/posix.
94667         * lib/gettext.h: copy from gettext.
94668         * lib/.cppi-disable: add strdup.c, gettext.h.
94669
94670 2002-09-25  Karl Berry  <karl@gnu.org>
94671
94672         * config/srclist.txt: enable gettext.h check.
94673         * config/config.{guess,sub}: update from prep.
94674         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94675                 from automake 1.6.3.
94676         See srclist*.
94677
94678 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94679
94680         * regex.c (PATFETCH): Remove the translating fetch.
94681         (PATFETCH_RAW): Rename to PATFETCH.
94682         (set_image_of_range): New fun.
94683         (SET_RANGE_TABLE_WORK_AREA): Use it.
94684         (regex_compile): Don't translate the pattern chars so eagerly.
94685         Only do it when inserting an `exactn' bytecode or when handling
94686         a char-range.
94687         (mutually_exclusive_p): Avoid empty statement.
94688
94689 2002-07-06  Jim Meyering  <meyering@lucent.com>
94690
94691         * m4/README: Don't mention Makefile.am.in.
94692         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94693
94694 2002-07-01  Jim Meyering  <meyering@lucent.com>
94695
94696         * lib/c-stack.c: Include sys/time.h.
94697         From Volker Borchert.
94698
94699 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94700
94701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94702
94703 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94704
94705         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94706         New macro.  Use it uniformly instead of
94707         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94708         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94709         reported by Vin Shelton.
94710
94711 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94712
94713         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94714         Do not assume SA_SIGINFO behavior.
94715         Bug reported by Jim Meyering on NetBSD 1.5.2.
94716
94717 2002-06-22  Jim Meyering  <meyering@lucent.com>
94718
94719         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94721
94722         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94723         now that configure.ac uses AC_GNU_SOURCE.
94724         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94725         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94726
94727         Update to latest tools.  Suggestions from Paul Eggert.
94728         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94729         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94730         * m4/fnmatch.m4: Likewise.
94731         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94732         to AC_HEADER_STDBOOL
94733
94734 2002-06-22  Jim Meyering  <meyering@lucent.com>
94735
94736         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94737         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94738
94739 2002-06-22  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94742
94743         * lib/exitfail.c, exitfail.h: Likewise.
94744         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94745
94746         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94747         of fnmatch.h.
94748         (EXTRA_DIST): Add fnmatch_loop.c.
94749         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94750
94751         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94752         * lib/fnmatch.c: Update from diffutils-2.8.2.
94753         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94754         * lib/fnmatch.h: Remove file.
94755
94756 2002-06-21  Jim Meyering  <meyering@lucent.com>
94757
94758         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94759         * m4/mbrtowc.m4: Likewise.
94760
94761         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94762         * m4/mbswidth.m4: Reflect name change:
94763         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94765
94766         * m4/lib-link.m4: Update from gettext-0.11.2.
94767         * m4/gettext.m4: Likewise.
94768
94769         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94770         From Alfred M. Szmidt.
94771
94772 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94773
94774         * lib/file-type.h: Report an error if neither S_ISREG nor
94775         S_IFREG is defined, instead of using a test specific to glibc
94776         2.2.  This should be safe, since POSIX requires S_ISREG and
94777         Unix Version 7 had S_IFREG.  We don't need to check for
94778         <sys/types.h> since we don't use any symbols that it defines.
94779
94780 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94781
94782         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94783         $@-t, so that each temporary file name is unique and valid in the first
94784         8 characters, for operation under DOS.
94785
94786 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94787
94788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94789
94790 2002-06-15  Jim Meyering  <meyering@lucent.com>
94791
94792         Work even with DJGPP 2.03, which lacks support for symlinks.
94793         From Richard Dawe.
94794         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94795         is defined.
94796         * lib/lchown.c (S_ISLNK): Likewise.
94797
94798 2002-06-15  Jim Meyering  <meyering@lucent.com>
94799
94800         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94801         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94802         have been included before this file.
94803
94804 2002-06-14  Jim Meyering  <meyering@lucent.com>
94805
94806         * lib/file-type.h: Use the version from diffutils-2.8.2.
94807         * lib/file-type.c: Likewise.
94808
94809 2002-06-07  Jim Meyering  <meyering@lucent.com>
94810
94811         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94812         They're needed at least for NetBSD 1.5.2.
94813         ($statxfs_includes): Include those same headers.
94814         ($statxfs_includes): Include sys/vfs.h if available.
94815         ($statxfs_includes): Likewise for sys/statvfs.h.
94816         Check for the following members in both structs statfs and statvfs:
94817         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94818
94819 2002-06-01  Jim Meyering  <meyering@lucent.com>
94820
94821         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94822         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94823
94824 2002-05-28  Jim Meyering  <meyering@lucent.com>
94825
94826         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94827         Reported by Volker Borchert.
94828
94829 2002-05-27  Jim Meyering  <meyering@lucent.com>
94830
94831         Fix a problem seen only on nonconforming systems whereby ls.c's
94832         use of localtime, and then of gettimeofday would cause trouble:
94833         the localtime call used to initialize rpl_gettimeofday's save
94834         mechanism would clobber ls's current local time information so
94835         that in any long listing the first file would always be listed
94836         with date 1970-01-01.  Analysis by Volker Borchert.
94837
94838         * lib/gettimeofday.c (localtime): Undefine.
94839         (rpl_localtime): New function.
94840
94841 2002-05-27  Jim Meyering  <meyering@lucent.com>
94842
94843         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94844         localtime.
94845
94846         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94847         use the replacement function; it wouldn't resolve at link time.
94848         Reported by Volker Borchert.
94849
94850 2002-05-22  Jim Meyering  <meyering@lucent.com>
94851
94852         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94853         file-type.h.
94854         * lib/file-type.h: New file.
94855         * lib/file-type.c (file_type): New file/function.  Extracted from
94856         diffutils.
94857
94858 2002-04-30  Jim Meyering  <meyering@lucent.com>
94859
94860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94861
94862 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94863
94864         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94865
94866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94867
94868         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94869         Do not check for alloca.h (no longer used) or stdbool.h (was never
94870         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94871
94872 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94873
94874         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94875
94876 2002-04-29  Jim Meyering  <meyering@lucent.com>
94877
94878         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94879         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94880         Use AC_FUNC_STRNLEN here instead.
94881
94882         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94883         With autoconf-2.53a, it's part of AC_PROG_CC.
94884
94885 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94886
94887         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94888         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94889
94890 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94891
94892         * lib/sig2str.h, lib/sig2str.c: New files.
94893         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94894
94895 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94896
94897         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94898         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94899         of 127, since 64 is the largest conceivable number for ancient
94900         nonstandard hosts.
94901         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94902
94903 2002-04-28  Jim Meyering  <meyering@lucent.com>
94904
94905         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94906
94907 2002-04-24  Jim Meyering  <meyering@lucent.com>
94908
94909         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94910         (jm_PREREQ): Use it.
94911
94912         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94913         mach/mach.h fcntl.h.
94914         Check for this function: setlocale.
94915
94916 2002-04-24  Jim Meyering  <meyering@lucent.com>
94917
94918         * lib/gettext.h: New file, from Gettext.
94919         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94920         (libfetish_a_SOURCES): Add gettext.h.
94921
94922 2002-04-16  Jim Meyering  <meyering@lucent.com>
94923
94924         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94925         ut_pid, ut_id, ut_exit.
94926
94927 2002-04-16  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94930         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94931         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94932
94933 2002-04-12  Jim Meyering  <meyering@lucent.com>
94934
94935         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94936         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94937         existence of the getmntinfo function.  Needed for Darwin 5.3.
94938
94939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94940         This is necessary at least on Darwin 5.3.
94941
94942         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94943         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94944         strnlen.o in the library, and that makes some versions of ranlib
94945         object.
94946
94947 2002-04-12  Jim Meyering  <meyering@lucent.com>
94948
94949         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94950
94951 2002-04-09  Jim Meyering  <meyering@lucent.com>
94952
94953         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94954         to be more precise.  Rather than saying we're checking whether the
94955         function `works', say what we're testing.
94956         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94957         Reported by Bruno Haible.
94958
94959 2002-03-10  Jim Meyering  <meyering@lucent.com>
94960
94961         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94962         Suggestion from Santiago Vila.
94963
94964 2002-03-08  Jim Meyering  <meyering@lucent.com>
94965
94966         * lib/rename.c: Mention that this wrapper is needed also on
94967         mips-dec-ultrix4.4 systems.
94968
94969 2002-03-02  Jim Meyering  <meyering@lucent.com>
94970
94971         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94972         not HAVE_CLOCK_SETTIME.
94973
94974 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94975
94976         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94977         Check for clock_settime.
94978
94979 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94980
94981         * lib/nanosleep.h: Rename to....
94982         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94983
94984         * lib/gettime.c: New file.
94985         * lib/settime.c: New file.
94986         * lib/stime.c: Remove.
94987
94988         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94989         timespec.h.  Remove nanosleep.h.
94990
94991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94992
94993         * m4/acl.m4: New file.
94994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94995         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94996
94997 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94998
94999         * lib/acl.c, lib/acl.h: New files.
95000         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95001
95002 2002-02-24  Jim Meyering  <meyering@lucent.com>
95003
95004         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95005         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95006         cause trouble.  Reported by Nelson Beebe.
95007
95008 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95009
95010         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95011         compilers that don't know that xalloc_die never returns.
95012
95013 2002-02-20  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/getdate.c: Regenerate using bison-1.33.
95016
95017 2002-02-17  Jim Meyering  <meyering@lucent.com>
95018
95019         * config/config.guess (main): Don't use `head -1'; it's no longer
95020         portable. Use `sed 1q' instead.
95021
95022 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95023
95024         * m4/codeset.m4: Upgrade to gettext-0.11.
95025         * m4/gettext.m4: Upgrade to gettext-0.11.
95026         * m4/glibc21.m4: Upgrade to gettext-0.11.
95027         * m4/iconv.m4: Upgrade to gettext-0.11.
95028         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95029         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95030         * m4/lib-ld.m4: New file, from gettext-0.11.
95031         * m4/lib-link.m4: New file, from gettext-0.11.
95032         * m4/lib-prefix.m4: New file, from gettext-0.11.
95033         * m4/progtest.m4: Upgrade to gettext-0.11.
95034
95035 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95036
95037         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95038         (jm_PREREQ): Use it.
95039
95040 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95041
95042         * lib/posixver.c, lib/posixver.h: New files.
95043         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95044
95045 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95046             Bruno Haible  <bruno@clisp.org>
95047
95048         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95049         (fwrite_success_callback): New declaration.
95050         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95051         print_unicode_char. Call failure callback instead of error.
95052         (fwrite_success_callback): New function.
95053         (exit_failure_callback): New function.
95054         (fallback_failure_callback): New function.
95055         (print_unicode_char): Call unicode_to_mb.
95056
95057 2002-01-26  Jim Meyering  <meyering@lucent.com>
95058
95059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95060         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95061
95062 2002-01-26  Jim Meyering  <meyering@lucent.com>
95063
95064         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95065
95066 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95067
95068         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95069
95070 2002-01-22  Jim Meyering  <meyering@lucent.com>
95071
95072         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95073         Otherwise, some versions of automake would omit the rule that makes
95074         Makefile from Makefile.in.
95075
95076 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95077
95078         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95079         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95080         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95081         (memcoll): Set errno to zero if there is no error.
95082
95083         * lib/quotearg.c (quotearg_buffer_restyled):
95084         Fix bug with quoting buffers containing NUL when backslashing escapes.
95085         This bug was exposed by the other changes in this patch.
95086         (quotearg_n_options): New arg ARGSIZE.
95087         All callers changed.
95088         (quoting_options_from_style): New function.
95089         (quotearg_n_style): Use it.
95090         (quotearg_n_style_mem): New function.
95091
95092         * lib/quotearg.h (quotearg_n_style_mem): New function.
95093
95094 2002-01-19  Jim Meyering  <meyering@lucent.com>
95095
95096         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95097         Remove useless quotes: DF_PROG="df".
95098         * m4/strnlen.m4: New file.
95099
95100 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95101
95102         * lib/backupfile.c (ISDIGIT): Comment fix.
95103         * lib/getdate.y (ISDIGIT): Likewise.
95104         * lib/posixtm.c (ISDIGIT, year): Likewise.
95105         * lib/strverscmp.c (ISDIGIT): Likewise.
95106         * lib/userspec.c (ISDIGIT): Likewise.
95107
95108 2002-01-16  Jim Meyering  <meyering@lucent.com>
95109
95110         * lib/getdate.y: Add three semicolons, each just before a closing
95111         brace. Bison (as of version 1.31) no longer papers over that mistake.
95112
95113 2002-01-05  Jim Meyering  <meyering@lucent.com>
95114
95115         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95116
95117 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95118
95119         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95120         not silently exit merely because the output buffer happens to
95121         have nothing pending.
95122
95123 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95124
95125         See the big note in ../ChangeLog.
95126         * lib/human.c (suffixes): Prefer K to k for 1024.
95127         (generate_suffix_backwards): New function.
95128         (human_readable_inexact): Use it.
95129         * lib/xstrtol.c (__xstrtol): If there is no number but there
95130         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95131         Accept 'K' as well as 'k'.
95132
95133 2001-12-15  Jim Meyering  <meyering@lucent.com>
95134
95135         * lib/regex.h (__restrict_arr): Update from libc.
95136
95137         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95138         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95139         (STREQ): Define.
95140
95141 2001-12-14  Jim Meyering  <meyering@lucent.com>
95142
95143         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95144         Suggestion from Bruno Haible.
95145
95146 2001-12-10  Jim Meyering  <meyering@lucent.com>
95147
95148         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95149         xrealloc, Instead, include "xalloc.h".
95150         (initbuffer): Don't cast xmalloc return value to char*.
95151         (readline): Reword comment.
95152         Don't cast xrealloc return value to char*
95153         Return NULL, not 0.
95154
95155 2001-12-09  Jim Meyering  <meyering@lucent.com>
95156
95157         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95158         about `signed and unsigned type in conditional expression'.
95159         * lib/posixtm.c (posix_time_parse): Likewise.
95160
95161         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95162
95163         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95164         to avoid a pedantic warning.
95165
95166         * lib/getstr.c: Don't include assert.h.
95167         (getstr): Remove warning-evoking assertions.
95168         Return -1 if offset parameter is out of bounds.
95169         Change the type of a local from int to size_t.
95170
95171         * lib/strftime.c (my_strftime_localtime_r): Include this function
95172         definition in the `#if ! HAVE_TM_GMTOFF' block.
95173
95174         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95175         Include xalloc.h instead.
95176
95177 2001-12-02  Jim Meyering  <meyering@lucent.com>
95178
95179         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95180         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95181         included.
95182
95183         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95184         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95185
95186 2001-11-30  Akim Demaille  <akim@epita.fr>
95187
95188         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95189         before being defined.
95190
95191 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95192
95193         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95194         First arg is int, not unsigned.
95195         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95196         (SIZE_MAX, UINT_MAX): New macros.
95197         (quotearg_n_options): Abort if N is negative.
95198         Avoid overflow check on hosts where size_t is 64 bits and int
95199         is 32 bits, as overflow is impossible there.
95200         Fix off-by-one typo that caused unnecessary reallocation.
95201
95202 2001-11-27  Jim Meyering  <meyering@lucent.com>
95203
95204         * lib/tempname.c: Merge with version from libc.
95205         * lib/regex.c: Likewise.
95206
95207         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95208         systems for which STDC_HEADERS is 0, it was not included, resulting in
95209         a warning about an integer-to-pointer conversion problem with getenv.
95210         Reported by Volker Borchert.
95211
95212 2001-11-26  Jim Meyering  <meyering@lucent.com>
95213
95214         * lib/gtod.h: Remove file.
95215         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95216         * lib/gettimeofday.c: Don't include gtod.h.
95217         (GTOD_init): Remove function.
95218         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95219         Suggestion from Volker Borchert.
95220
95221 2001-11-23  Jim Meyering  <meyering@lucent.com>
95222
95223         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95224         it.
95225         * lib/hash.c (struct hash_table): Define it here instead.
95226
95227 2001-11-22  Jim Meyering  <meyering@lucent.com>
95228
95229         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95230
95231 2001-11-20  Jim Meyering  <meyering@lucent.com>
95232
95233         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95234         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95235
95236 2001-11-19  Jim Meyering  <meyering@lucent.com>
95237
95238         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95239         directory.  Use "conftestXXXXXX" as the template.
95240         Suggestion from Paul Eggert.
95241
95242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95243         immediately, so the test doesn't mistakenly hit the max-open-files
95244         limit.
95245
95246 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95247
95248         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95249         (TEMPORARIES): New macro.
95250         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95251         removes an artificial limitation (e.g. HP-UX 10.20, where
95252         TMP_MAX is 17576).
95253
95254 2001-11-18  Jim Meyering  <meyering@lucent.com>
95255
95256         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95257
95258 2001-11-18  Jim Meyering  <meyering@lucent.com>
95259
95260         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95261         on SunOS 4.
95262
95263         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95264         files will be created before anything else.
95265
95266 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95267
95268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95269         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95270
95271 2001-11-17  Jim Meyering  <meyering@lucent.com>
95272
95273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95274         Prompted by a report from Bob Proulx.
95275
95276         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95277         Instead, require UTILS_FUNC_MKSTEMP.
95278
95279 2001-11-17  Jim Meyering  <meyering@lucent.com>
95280
95281         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95282         Now, that's done as part of AC_FUNC_STRTOD.
95283
95284 2001-11-17  Jim Meyering  <meyering@lucent.com>
95285
95286         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95287         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95288         rather than group writable.  Patch by Juan F. Codagnone.
95289
95290         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95291         xrealloc, Instead, include "xalloc.h".
95292
95293         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95294         Remove explicit declarations of xmalloc, xrealloc,
95295         and xstrdup.  Instead, include "xalloc.h".
95296
95297         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95298         unlocked-io.h.
95299         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95300         Likewise.
95301         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95302
95303         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95304         Reported by Padraig Brady.
95305
95306         * lib/mkstemp.c: #undef mkstemp.
95307         Include config.h.
95308         (rpl_mkstemp): Rename from mkstemp.
95309         Protoize.
95310
95311 2001-11-16  Jim Meyering  <meyering@lucent.com>
95312
95313         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95314         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95315         determine the amount of total physical memory, use pstat_getstatic.
95316         HPUX-11 doesn't define _SC_PHYS_PAGES.
95317         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95318         If sysconf couldn't be used to determine the amount of available
95319         physical memory, use both pstat_getstatic and pstat_getdynamic.
95320         Based on a patch from Bob Proulx.
95321
95322 2001-11-10  Jim Meyering  <meyering@lucent.com>
95323
95324         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95325         (jm_PREREQ): Use it.
95326
95327 2001-11-09  Jim Meyering  <meyering@lucent.com>
95328
95329         * m4/jm-macros.m4: Require autoconf-2.52f.
95330         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95331         Use these AC_-prefixed names, not the AM_-prefixed ones.
95332
95333         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95334
95335 2001-11-05  Jim Meyering  <meyering@lucent.com>
95336
95337         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95338
95339 2001-11-04  Jim Meyering  <meyering@lucent.com>
95340
95341         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95342         $DEFS.
95343
95344 2001-11-03  Jim Meyering  <meyering@lucent.com>
95345
95346         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95347         of AC_DEFUN.
95348
95349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95350         know the name of the variable in the macro definition.
95351
95352 2001-11-03  Jim Meyering  <meyering@lucent.com>
95353
95354         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95355         in argmatch_to_argument call.
95356
95357         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95358         argument.
95359
95360         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95361         e.g., a fault due to an attempt to free a NULL pointer.
95362
95363 2001-11-01  Jim Meyering  <meyering@lucent.com>
95364
95365         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95366         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95367
95368 2001-11-01  Jim Meyering  <meyering@lucent.com>
95369
95370         * lib/dirfd.c, lib/dirfd.h: New files.
95371         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95372
95373         * lib/hash.c (hash_print) [TESTING]: Clean up.
95374
95375 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95376
95377         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95378         to avoid a warning if -Wall.
95379
95380 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95381
95382         * README: New file
95383         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95384         (per RMS's instructions, this is now the canonical source)
95385         * lgpl/, gpl/: New directories.
95386
95387 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95388
95389         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95390
95391 2001-10-21  Jim Meyering  <meyering@lucent.com>
95392
95393         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95394         this code would end up calling gettext even in packages built
95395         with --disable-nls.
95396         * lib/getopt.c (_): Likewise.
95397         * lib/regex.c (_): Likewise.
95398
95399 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95400
95401         * m4/error.m4 (jm_PREREQ_ERROR):
95402         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95403         AC_FUNC_STRERROR_R does that.
95404         Check for strerror declaration.
95405
95406         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95407         are supposed to have them these days.
95408         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95409         Merge changes from latest Autoconf CVS.
95410         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95411         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95412         POSIX decided to standardize on the int flavor of strerror_r.
95413
95414 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95415
95416         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95417         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95418         Use strerror_r that is only a macro, even if it is not a function.
95419         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95420         (private_strerror): Use prototypes, not old-style function definition.
95421         (print_errno_message): New function.
95422         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95423         char*-flavored one.
95424         (error_tail, error, error_at_line): Use it.
95425
95426 2001-10-11  Jim Meyering  <meyering@lucent.com>
95427
95428         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95429         and quote_n (1, ... to avoid clobbering a buffer.
95430
95431 2001-10-05  Jim Meyering  <meyering@lucent.com>
95432
95433         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95434         hash-pjw.h.
95435         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95436         * lib/hash-pjw.h: New file.
95437
95438 2001-09-30  Jim Meyering  <meyering@lucent.com>
95439
95440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95441         `struct fsstat' has the `f_fstypename' member.
95442         Use that to define FS_TYPE, which is now used to make
95443         the getfsstat link test tighter.
95444
95445 2001-09-30  Jim Meyering  <meyering@lucent.com>
95446
95447         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95448         Include <sys/ucred.h>, for Apple Darwin.
95449         Include sys/mount.h and sys/fs_types.h only if available.
95450         (FS_TYPE): Define.
95451         (read_filesystem_list): Use FS_TYPE.
95452
95453 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95454
95455         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95456         a boolean context.
95457
95458 2001-09-29  Jim Meyering  <meyering@lucent.com>
95459
95460         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95461         [one-argument getmntent function]): Include stdio.h before mntent.h.
95462         SunOS 4.1.x needs it for the declaration of `FILE'.
95463         Patch by Volker Borchert.
95464
95465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95466         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95467         sys/fs_types.h, and make the link-test for getfsstat guard #include
95468         directives with appropriate #if HAVE_*_H tests so that we can
95469         detect getfsstat on Apple Darwin1.3.7 systems.
95470         Reported by Nelson Beebe.
95471         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95472
95473 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95474
95475         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95476         #defines strtoimax.  Also treat the other strto* functions
95477         like strtoimax.
95478
95479         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95480         Check for strtoul and strtoumax,
95481         as those declarations are made even in the signed case.
95482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95483         Likewise, for strtol and strtoimax.
95484
95485 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95486
95487         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95488         #defines strtoimax.  Also treat the other strto* functions
95489         like strtoimax.
95490
95491         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95492         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95493         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95494
95495 2001-09-26  Jim Meyering  <meyering@lucent.com>
95496
95497         Most macros in unlocked-io.h had the wrong number of arguments.
95498         * lib/gen-uio: New script.
95499         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95500         * lib/unlocked-io.hin: Remove file.
95501         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95502         rather than trying to embed it here.
95503         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95504         Reported by Padraig Brady.
95505
95506 2001-09-25  Volker Borchert  <bt@teknon.de>
95507
95508         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95509         `result'.
95510
95511 2001-09-24  Jim Meyering  <meyering@lucent.com>
95512
95513         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95514
95515 2001-09-23  Jim Meyering  <meyering@lucent.com>
95516
95517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95518         instead of the mere test for existence of mntent.h.  The latter
95519         would get a false-positive on AIX 3.4 systems.
95520         In the outer getmntent if-block, don't die if neither of the getmntent
95521         tests succeeds.  Instead, just fall through and continue with the
95522         remaining tests.
95523
95524 2001-09-23  Jim Meyering  <meyering@lucent.com>
95525
95526         * lib/mountlist.c: Remove useless parentheses in #if directives.
95527         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95528         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95529
95530 2001-09-22  Jim Meyering  <meyering@lucent.com>
95531
95532         * m4/gettext.m4: New file.  From gettext.
95533         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95534         * m4/progtest.m4: Likewise
95535         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95536         * m4/glibc21.m4: Likewise.
95537
95538         * m4/libintl.m4: Remove.  No longer used.
95539
95540 2001-09-22  Jim Meyering  <meyering@lucent.com>
95541
95542         * lib/localcharset.c: Update from latest gettext.
95543         * lib/config.charset: Likewise.
95544
95545 2001-09-20  Jim Meyering  <meyering@lucent.com>
95546
95547         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95548         strtoimax.
95549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95550         strtoumax.
95551
95552 2001-09-20  Jim Meyering  <meyering@lucent.com>
95553
95554         * lib/xstrtol.c (strtoimax): Guard declaration with
95555         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95556         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95557         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95558         (strtoumax): Likewise, for completeness (it wasn't necessary).
95559
95560 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95561
95562         * lib/strtoimax.c (HAVE_LONG_LONG):
95563         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95564         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95565         to work around bug in IBM C compiler.
95566
95567 2001-09-17  Jim Meyering  <meyering@lucent.com>
95568
95569         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95570         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95571         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95572         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95573         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95574         whenever the right hand side need not be expanded by the shell.
95575
95576 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95577
95578         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95579         library.  It's not correct, as some older glibcs are buggy.
95580         fnmatch wasn't fixed until glibc 2.2.
95581
95582         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95583         special shell magic here.
95584
95585 2001-09-16  Jim Meyering  <meyering@lucent.com>
95586
95587         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95588         * m4/jm-macros.m4: Require it.
95589
95590 2001-09-16  Jim Meyering  <meyering@lucent.com>
95591
95592         * lib/mkdir.c: New file.
95593
95594 2001-09-15  Jim Meyering  <meyering@lucent.com>
95595
95596         * m4/jm-macros.m4: Check for help2man.
95597
95598 2001-09-11  Jim Meyering  <meyering@lucent.com>
95599
95600         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95601         The body, by Paul Eggert, was moved here from configure.in.
95602         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95603
95604 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95605
95606         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95607         (jm_PREREQ): Use it.
95608
95609 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95610
95611         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95612         Use ssize_t, not int, to store result of readlink.
95613         Check for ssize_t overflow as well as size_t overflow,
95614         as POSIX says the result of readlink is implementation-defined
95615         when ssize_t overflows.
95616         Remove unnecessary cast to char*.
95617         Use free+malloc instead of realloc, as the storage doesn't need
95618         to be preserved and it's clearer and can be more efficient that way.
95619         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95620         * lib/xreadlink.h (xreadlink): Update prototype.
95621
95622 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95623
95624         * lib/xgetcwd.c: Revert some of the previous change; intead,
95625         fix the HAVE_GETCWD_NULL code to behave more like the
95626         !HAVE_GETCWD_NULL code used to.
95627
95628         Include "xalloc.h".
95629         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95630         invoke xalloc_die.
95631
95632 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95633
95634         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95635         sys/param.h, as pathmax.h includes them.
95636
95637 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95638
95639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95640         (jm_PREREQ_XGETCWD): New macro.
95641
95642         * m4/getcwd.m4: New file.
95643
95644 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95645
95646         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95647         like the HAVE_GETCWD_NULL code.
95648         Include pathmax.h if not HAVE_GETCWD.
95649         Do not include xalloc.h.
95650         (INITIAL_BUFFER_SIZE): New symbol.
95651         Do not use xmalloc / xrealloc, since the caller is responsible for
95652         handling errors.  Preserve errno around `free' during failure.
95653         Do not overrun buffer when using getwd.
95654
95655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95656
95657         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95658         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95659         getcwd (NULL, 0).
95660
95661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95662
95663         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95664         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95665         spotted by Jim Meyering.
95666
95667 2001-09-03  Jim Meyering  <meyering@lucent.com>
95668
95669         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95670         failure.
95671
95672 2001-09-02  Jim Meyering  <meyering@lucent.com>
95673
95674         * lib/error.c: Update from GNU libc.
95675
95676 2001-09-01  Jim Meyering  <meyering@lucent.com>
95677
95678         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95679         Used by df.
95680
95681 2001-09-01  Jim Meyering  <meyering@lucent.com>
95682
95683         * lib/xreadlink.c: New file.
95684         * lib/xreadlink.h: New file.
95685         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95686         xreadlink.h.
95687
95688         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95689         doesn't conflict with sparc Solaris 7's definition in
95690         /usr/include/sys/int_types.h.
95691
95692         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95693         files.
95694         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95695         and strncasecmp as r-values.  Unixware didn't have declarations.
95696
95697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95698
95699         * lib/xstrtol.h: Add copyright notice.
95700         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95701         LONGINT_INVALID_SUFFIX_CHAR.
95702
95703 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95704
95705         * lib/xstrtol.c (strtoimax): New decl.
95706
95707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95708
95709         * lib/xgetcwd.c: Don't include pathmax.h.
95710         Include stdlib.h and unistd.h if available.
95711         Include xalloc.h.
95712         (xmalloc, xstrdup, free): Remove decls.
95713         (xgetcwd): Don't assume sizes fit in unsigned.
95714         Check for overflow when computing sizes.
95715         Simplify reallocation code.
95716
95717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95718
95719         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95720         a directory's st_size can have an arbitrary value, so the old
95721         usage could waste an arbitrary amount of memory.  All uses
95722         changed.
95723         * lib/savedir.h: Update prototype.
95724
95725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95726
95727         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95728
95729         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95730         old strtoimax.c.
95731
95732         Also, make the following further changes to make this file's
95733         configuration more similar to that of strtol.c:
95734         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95735         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95736         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95737         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95738         changed to signed values.
95739
95740         And make the following changes as well:
95741         Fix copyright notice, as 1999 was missing.
95742         (verify): New macro.
95743         (strtoimax): Check sizes at compile-time, not run-time.
95744         Prefer strtol to strtoll if both work.
95745         (main): Remove; it was not that useful and was a pain to maintain.
95746
95747         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95748
95749 2001-08-31  Jim Meyering  <meyering@lucent.com>
95750
95751         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95752         Use an initial, malloc'd, buffer of length 128 rather than
95753         a statically allocated one of length 1024.
95754
95755 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95756
95757         Simplify code, partly by assuming autoconf 2.52 semantics.
95758
95759         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95760
95761         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95762         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95763         All uses removed.
95764         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95765         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95766         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95767         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95768         jm_AC_HEADER_INTTYPES_H.
95769         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95770
95771         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95772
95773         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95774         Quote first arg of AC_DEFUN.
95775         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95776         since they are needed to parse the include file even if we need
95777         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95778         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95779         but with opposite signedness.
95780
95781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95782
95783         Merge 'exclude' changes from tar 1.13.22.
95784         This fixes one or two unlikely storage allocation overflow bugs,
95785         but doesn't change user-visible behavior otherwise.
95786
95787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95788
95789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95790         (jm_PREREQ_EXCLUDE): New macro.
95791
95792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95793
95794         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95795         tm to be declared.
95796
95797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95798
95799         * lib/hash.c: Remove '2001' from copyright notice.
95800
95801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95802
95803         * lib/full-write.h: New file.
95804         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95805         * lib/full-write.c: Correct credits, as cccp.c no longer
95806         exists and anyway it was so heavily changed from the old cccp
95807         code as to be unrecognizable.  Include full-write.h.
95808         (full_write): Return size_t, with short writes meaning failure.
95809         All callers changed.  This fixes a bug with large buffers
95810         on 64-bit hosts.
95811         * lib/utime.c: Include full-write.h.
95812
95813 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95814
95815         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95816         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95817         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95818         Include if available.
95819         (<xalloc.h>): Include
95820         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95821         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95822         collide with FNM macros.
95823         (struct patopts): New struct.
95824         (struct exclude): Use it, as exclude patterns now come with options.
95825         (new_exclude): Support above changes.
95826         (new_exclude, add_exclude_file):
95827         Initial size must now be a power of two to simplify overflow checking.
95828         (free_exclude, fnmatch_no_wildcards): New function.
95829         (excluded_filename): No longer requires options arg, as the options
95830         are determined by add_exclude.  Now returns bool, not int.
95831         (excluded_filename, add_exclude):
95832         Add support for the fancy new exclusion options.
95833         (add_exclude, add_exclude_file): Now takes int options arg.
95834         Check for arithmetic overflow when computing sizes.
95835         (add_exclude_file): xrealloc might modify errno, so don't
95836         realloc until after errno might be used.
95837
95838         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95839         New macros.
95840         (free_exclude): New decl.
95841         (add_exclude, add_exclude_file): Now takes int options arg.
95842         (excluded_filename): No longer requires options arg, as the options
95843         are determined by add_exclude.  Now returns bool, not int.
95844
95845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95846
95847         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95848
95849 2001-08-27  Jim Meyering  <meyering@lucent.com>
95850
95851         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95852
95853         * lib/version-etc.c (N_): Remove definition.
95854         Revert most of last change.
95855         Instead, simply don't mark the `Copyright...' string for translation.
95856         Based on advice from Paul Eggert.
95857
95858         * lib/strtoxmax.c: Tweak comment.
95859
95860 2001-08-26  Jim Meyering  <meyering@lucent.com>
95861
95862         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95863
95864         * m4/xstrtoimax.m4: New file.
95865         * m4/xstrtoumax.m4: Add comments explaining why we
95866         AC_REPLACE_FUNCS(strtol).
95867
95868 2001-08-26  Jim Meyering  <meyering@lucent.com>
95869
95870         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95871         of copyright with `%s' so translators don't get an untranslated
95872         message in 2002.
95873         (COPYRIGHT_YEAR): Define.
95874         (version_etc): Use fprintf rather than fputs.
95875         Suggestion from Ulrich Drepper.
95876
95877         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95878
95879         * lib/strtoll.c: New file, from GNU libc.
95880         * lib/xstrtoimax.c: New file.
95881
95882         * lib/xstrtol.h: Add xstrtoimax.
95883         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95884         * lib/strtoimax.c: New file.  Likewise, but first define
95885         STRTOUXMAX_SIGNED.
95886
95887         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95888         ...
95889         * lib/strtoxmax.c: ... then renamed to this.
95890
95891 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95892
95893         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95894         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95895         (jm_AC_TYPE_INTMAX_T): New macro.
95896         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95897
95898         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95899
95900         * m4/longlong.m4: Renamed from ulonglong.m4.
95901         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95902         * m4/uintmax_t.m4: Removed.
95903
95904 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95905
95906         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95907         Port to Solaris 8, where 'sed' requires a space after the 'r'
95908         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95909         Redirect output to $tmp just once.
95910
95911 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95912
95913         * lib/addext.c (<errno.h>): Include.
95914         (errno): Declare if not defined.
95915         (addext): Work correctly when pathconf returns -1 and leaves
95916         errno alone because there is no limit.  Also, work even if
95917         pathconf returns a value greater than SIZE_MAX.
95918
95919 2001-08-12  Jim Meyering  <meyering@lucent.com>
95920
95921         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95922         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95923         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95924         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95925         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95926         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95927         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95928         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95929         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95930         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95931         utime.m4, utimes.m4, xstrtoumax.m4:
95932         Quote the first argument in each use of AC_DEFUN.
95933
95934 2001-08-12  Jim Meyering  <meyering@lucent.com>
95935
95936         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95937         Simply `return getcwd (NULL, 0);'.
95938         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95939         Use 1300 as initial value for length, not PATH_MAX.
95940
95941         * lib/pathmax.h: Clean up cpp syntax.
95942
95943 2001-08-12  Jim Meyering  <meyering@lucent.com>
95944
95945         * lib/gettimeofday.c: New file.
95946         * lib/gtod.h: New file.
95947         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95948
95949 2001-08-05  Jim Meyering  <meyering@lucent.com>
95950
95951         * m4/jm-macros.m4: Require autoconf-2.52.
95952
95953 2001-08-04  Jim Meyering  <meyering@lucent.com>
95954
95955         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95956         stmt, to get in sync with glibc.
95957
95958 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95959
95960         The following changes are from gettext 0.10.39 as maintained by
95961         Bruno Haible.
95962
95963         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95964         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95965         with inverted sense.  All uses changed.
95966
95967         * lib/mbswidth.c: Don't include <limits.h>.
95968         Include <stdlib.h> and <string.h> unconditionally.
95969         (iswcntrl, mbsinit, ISCNTRL): New macros.
95970         (mbsnwidth): Use K&R style function declarations.
95971         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95972         can optimize it when MB_CUR_MAX == 1.
95973         The width of control characters is zero, not 1.
95974
95975 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95976
95977         The following changes are from gettext 0.10.39 as maintained by
95978         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95979
95980         * m4/codeset.m4: Upgrade to serial AM1.
95981         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95982         all uses changed.  Quote first arg of AC_DEFUN.
95983         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95984
95985         * m4/iconv.m4: Upgrade to serial AM2.
95986         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95987         Add --with-libconv-prefix.
95988         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95989         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95990         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95991         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95992         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95993
95994         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95995         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95996         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95997         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95998         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95999         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96000         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96001         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96003
96004         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96005         string.h any more.
96006
96007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96008         not the default value.
96009
96010         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96012         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96013         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96014         Also check for iswcntrl, used for wcwidth fallback.
96015         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96016         to Autoconf 2.13.
96017
96018 2001-08-03  Jim Meyering  <meyering@lucent.com>
96019
96020         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96021         as it was in the original.  Reported by Paul Eggert.
96022
96023 2001-07-16  Jim Meyering  <meyering@lucent.com>
96024
96025         * m4/gettimeofday.m4: New file.
96026         Prompted by a report from Bernhard Baehr.
96027
96028 2001-07-15  Jim Meyering  <meyering@lucent.com>
96029
96030         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96031         stuff. Now it's in ../Makefile.cfg.
96032
96033 2001-07-15  Jim Meyering  <meyering@lucent.com>
96034
96035         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96036         (BUILT_SOURCES): Add unlocked-io.h.
96037         (io_functions): Define.
96038         (unlocked-io.h): New rule.
96039         (DISTCLEANFILES): Add unlocked-io.h.
96040         (all-local): Depend on unlocked-io.h, to ensure it is created.
96041
96042         * lib/unlocked-io.hin: New file
96043
96044         * lib/regex.c: Update from glibc.
96045
96046 2001-07-05  Jim Meyering  <meyering@lucent.com>
96047
96048         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96049         recommendation.
96050         (libfetish_a_SOURCES): Put all .h files here instead.
96051         Remove a thus-exposed (better checks in automake) duplicate and
96052         two unnecessary .h files.
96053
96054 2001-07-04  Jim Meyering  <meyering@lucent.com>
96055
96056         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96057         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96058         distcheck failure.
96059
96060 2001-07-02  Jim Meyering  <meyering@lucent.com>
96061
96062         The following changes were prompted by suggestions from Bruno Haible.
96063
96064         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96065         is now generated.
96066         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96067         definition of EXTRA_DIST.
96068         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96069         ensure that the generated file is created/updated whenever the list
96070         of $(unlocked_functions) is changed.
96071         (jm-glibc-io.m4): New rule.
96072         (unlocked-io.h): New rule -- currently unused.
96073
96074 2001-06-24  Jim Meyering  <meyering@lucent.com>
96075
96076         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96077         unmatched right bracket, rather than kludging it with an extra,
96078         falsely-matching quote in a comment.  Patch by Akim Demaille.
96079
96080 2001-06-11  Jim Meyering  <meyering@lucent.com>
96081
96082         * lib/regex.c: Update from GNU libc.
96083
96084 2001-05-27  Jim Meyering  <meyering@lucent.com>
96085
96086         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96087         Check for ut_type in struct utmp.
96088
96089 2001-05-27  Jim Meyering  <meyering@lucent.com>
96090
96091         * lib/readutmp.h (UT_TYPE): Define.
96092
96093 2001-05-24  Jim Meyering  <meyering@lucent.com>
96094
96095         * lib/argmatch.c: Include "quote.h".
96096         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96097         quote function.  Reported by Göran Uddeborg.
96098
96099 2001-05-22  Jim Meyering  <meyering@lucent.com>
96100
96101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96102         now that we use the package-supplied version unconditionally.
96103         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96104
96105 2001-05-21  Jim Meyering  <meyering@lucent.com>
96106
96107         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96108         shell syntax errors.
96109
96110 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96111
96112         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96113
96114 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96115
96116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96117         Don't bother to check library strftime, since
96118         we'll be using our own my_strftime function anyway.
96119         Define my_strftime instead of strftime.
96120
96121 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96122
96123         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96124         which is not yet declared.
96125
96126 2001-05-15  Jim Meyering  <meyering@lucent.com>
96127
96128         * m4/regex.m4: Use proper quoting so brackets appear in the test
96129         program.
96130         Reported by, and with help from, Bruno Haible.
96131
96132 2001-05-13  Jim Meyering  <meyering@lucent.com>
96133
96134         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96135         undefined.
96136
96137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96138
96139         dirname code cleanup.  base_name now behaves more compatibly
96140         with POSIX basename when given file names that have trailing
96141         slashes, and similarly for dir_name.  Add new primitives
96142         base_len and dir_len.  Put the directory-name-related decls
96143         into dirname.h.
96144
96145         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96146         * lib/backupfile.c (base_name): Likewise.
96147         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96148         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96149         * lib/makepath.c (strip_trailing_slashes): Likewise.
96150         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96151         ISSLASH): Likewise.
96152         * lib/rename.c (strip_trailing_slashes): Likewise.
96153         * lib/same.c (base_name): Likewise.
96154         * lib/stripslash.c (ISSLASH): Likewise.
96155
96156         * lib/addext.c: Include <dirname.h> after size_t is defined.
96157         * lib/backupfile.c: Likewise.
96158
96159         * lib/addext.c (addext): Use base_len to trim redundant
96160         trailing slashes instead of doing it ourselves.
96161         But do not trim the last slash if it is not redundant.
96162
96163         * lib/backupfile.c (find_backup_file_name,
96164         max_backup_version): Use base_len instead of rolling it ourselves.
96165         Handle the case of "" and (on DOS) "C:" correctly.
96166
96167         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96168         needed. Include <string.h>, <dirname.h>.
96169         (base_name): Allow file names ending in slashes, other than names
96170         that are all slashes.  In this case, return the basename followed
96171         by the slashes.  This is more general, and can be used in places
96172         where the original base_name purposely had an assertion failure.
96173         (base_len): New function.
96174
96175         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96176         Do not include <assert.h>; no longer needed.
96177         Include xalloc.h.
96178         (memrchr): Remove decl.
96179         (dir_name_r): Remove.
96180         (dir_len): Renamed from dirlen.  All callers changed.
96181         Rewrite in terms of base_name, for simplicity and consistency.
96182         (dir_name): Never return NULL.  All callers changed.
96183         Do not include <stdlib.h> in test program; no longer needed.
96184         return 0; is fine for test program.
96185
96186         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96187         New macros.
96188         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96189
96190         * lib/path-concat.c (path_concat): Use base_len to compute
96191         base length, not strlen; this means we cannot rely on memcpy
96192         to null-terminate.
96193
96194         * lib/same.c (STREQ): Remove.
96195         (same_name): Handle the case where the basename ends in trailing '/'.
96196
96197         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96198         a slash was stripped.  Do not strip the last slash after a
96199         file system prefix.
96200
96201 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96202
96203         * lib/Makefile.am (libfetish_a_SOURCES):
96204         Add strftime.c, since we now compile it on all hosts.
96205
96206         * lib/strftime.c (my_strftime):
96207         Define to nstrftime if emacs, but only if my_strftime is not defined.
96208         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96209         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96210         Add one more extra argument: a nanoseconds value.
96211         All uses changed.
96212         (ns): New macro.
96213         (my_strftime function): Add %N format.
96214         (emacs_strftimeu): Renamed from emacs_strftime,
96215         with extra ut argument.
96216
96217 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96218
96219         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96220
96221 2001-04-21  Jim Meyering  <meyering@lucent.com>
96222
96223         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96224         doesn't interfere.
96225
96226 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96227
96228         * m4/ftruncate.m4: Check for chsize.
96229         Link with ftruncate.o unconditionally if ftruncate is missing.
96230         This was required when cross-compiling to i586-mingw32msvc.
96231
96232 2001-04-08  Jim Meyering  <meyering@lucent.com>
96233
96234         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96235         recomputed; that's necessary when the offset spans a DST transition.
96236         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96237
96238 2001-04-02  Jim Meyering  <meyering@lucent.com>
96239
96240         * lib/regex.h, regex.c: Update from GNU libc.
96241
96242 2001-03-24  Jim Meyering  <meyering@lucent.com>
96243
96244         * m4/jm-macros.m4: Require autoconf-2.49d.
96245
96246 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96247
96248         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96249
96250 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96251
96252         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96253
96254 2001-03-17  Jim Meyering  <meyering@lucent.com>
96255
96256         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96257         now that the version in autoconf is equivalent.
96258         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96259
96260         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96261         Suggestion from Akim Demaille.
96262
96263         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96264         (jm_PREREQ_TEMPNAME): New function.
96265
96266 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96267
96268         * lib/tempname.c (uint64_t): Define to uintmax_t if
96269         not defined, and if UINT64_MAX is not defined.
96270         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96271         Reported by John David Anglin.
96272
96273 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96274
96275         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96276         resolve alias if codeset is empty.
96277         * lib/config.charset (BeOS): Use wildcard syntax.
96278
96279 2001-03-13  Jim Meyering  <meyering@lucent.com>
96280
96281         * lib/path-concat.c (path_concat)
96282         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96283         concatenating e.g., `C:' and `foo'.
96284         From Bruno Haible.
96285
96286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96287
96288         * lib/localcharset.c (locale_charset): Don't use
96289         setlocale(LC_CTYPE,NULL). Don't return NULL.
96290         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96291
96292 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96293
96294         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96295         support for DOS/DJGPP.
96296
96297 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96298
96299         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96300         lacks mkstemp.  Compile our own tempname.c if we compile our own
96301         mkstemp.c, as mkstemp relies on tempname.
96302
96303 2001-03-01  Jim Meyering  <meyering@lucent.com>
96304
96305         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96306         AH_VERBATIM really does output its argument verbatim.
96307
96308 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96309
96310         * lib/Makefile.am (libfetish_a_SOURCES):
96311         Add dup-safer.c, fopen-safer.c.
96312         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96313
96314         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96315         * lib/unistd-safer.h: New files.
96316
96317 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96318
96319         The mkstemp replacement is taken from glibc 2.2.2, with some
96320         portability fixes for use outside glibc, as follows:
96321
96322         * lib/tempname.c (struct_stat64): New macro.
96323         (direxists, __gen_tempname): Use it.
96324         This avoids a portability problem with Solaris 8.
96325
96326         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96327         (<stddef.h>, <stdint.h>, <string.h>):
96328         Include only if STDC_HEADERS || _LIBC.
96329         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96330         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96331         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96332         (__set_errno): Define this macro if <errno.h> doesn't.
96333         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96334         Define these macros if <stdio.h> doesn't.
96335         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96336         Define these macros if <sys/stat.h>
96337         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96338         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96339         __xstat64): Define if not _LIBC.
96340         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96341         (__gen_tempname): Invoke gettimeofday only if
96342         HAVE_GETTIMEOFDAY || _LIBC;
96343         otherwise, fall back on plain "time".
96344         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96345
96346         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96347
96348         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96349
96350 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96351
96352         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96353
96354 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96355
96356         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96357         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96358         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96359         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96360
96361 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96362
96363         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96364         Remove workaround macros for hosts that have mbrtowc but not
96365         mbstate_t, as we now insist on proper declarations for both
96366         before using mbrtowc.
96367
96368 2001-02-17  Jim Meyering  <meyering@lucent.com>
96369
96370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96371         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96372         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96373         UnixWare 7.1.1.
96374
96375         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96376         rather than AC_CACHE_VAL.
96377
96378 2001-02-17  Jim Meyering  <meyering@lucent.com>
96379
96380         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96381         around included file name.
96382
96383         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96384
96385         * lib/strftime.c: Update from GNU libc (the only changes were to
96386         comments).
96387
96388 2001-02-17  Jim Meyering  <meyering@lucent.com>
96389
96390         * lib/regex.c: Update from libc.
96391
96392 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96393
96394         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96395         clash.
96396
96397 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96398
96399         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96400         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96401         Reported by Mark Hounschell via Paul Eggert.
96402
96403 2001-02-07  Jim Meyering  <meyering@lucent.com>
96404
96405         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96406
96407 2001-02-05  Jim Meyering  <meyering@lucent.com>
96408
96409         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96410         it includes the patch required for `large file' support with at least
96411         HP-UX's 10.20 /bin/cc.
96412
96413 2001-02-03  Jim Meyering  <meyering@lucent.com>
96414
96415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96416         AS_IF, now that it works once again (mysteriously).
96417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96418
96419 2001-01-30  Jim Meyering  <meyering@lucent.com>
96420
96421         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96422         * m4/chown.m4: Rename conftestchown to conftest.chown.
96423         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96424         s/conftestdir2/conftest.d2/.
96425         * m4/utimes.m4: s/conftestdata/conftest.data/
96426         Inspired by Pavel Roskin's change in autoconf.
96427
96428 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96429
96430         * lib/config.charset: Update for FreeBSD 4.2.
96431
96432 2001-01-27  Jim Meyering  <meyering@lucent.com>
96433
96434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96435         a use of AS_IF.
96436         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96437
96438 2001-01-26  Jim Meyering  <meyering@lucent.com>
96439
96440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96441         quotearg.c includes it.
96442
96443 2001-01-26  Jim Meyering  <meyering@lucent.com>
96444
96445         * lib/quotearg.c: Include stddef.h.
96446         * lib/quote.c: Include stddef.h.
96447         Reported by Axel Kittenberger.
96448
96449         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96450         line in double quotes so that it evokes a better diagnostic.
96451         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96452         Reported by Axel Kittenberger.
96453
96454 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96455
96456         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96457         as if it was a `charset'.
96458
96459 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96460
96461         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96462         has const.
96463
96464 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96465
96466         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96467         to avoid a warning.  Add back 'const' to inptr.
96468
96469 2001-01-20  Jim Meyering  <meyering@lucent.com>
96470
96471         Be sure that headers are checked before used in code compiled
96472         for the type checks.
96473         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96474         In place of that, invoke jm_CHECK_ALL_TYPES.
96475         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96476         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96477         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96478         The check for ssize_t was mistakenly run before the test for unistd.h.
96479
96480         The configure-time check for stdbool.h was missing.
96481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96482         (jm_PREREQ_HASH): New function.
96483
96484 2001-01-17  Jim Meyering  <meyering@lucent.com>
96485
96486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96487         for autoconf-2.49c.
96488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96489
96490 2001-01-16  Jim Meyering  <meyering@lucent.com>
96491
96492         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96493         From Bruno Haible.
96494
96495 2001-01-14  Jim Meyering  <meyering@lucent.com>
96496
96497         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96498         foo and bar.  Create conftestdir/ in the script, not in the C code.
96499         Remove directories in the script, not in the C code.
96500         Remove conftestdir{,2} before trying to create the directory.
96501         Make the entire configure script fail if the mkdir fails.
96502
96503 2001-01-14  Jim Meyering  <meyering@lucent.com>
96504
96505         * lib/rename.c: New file.  From Volker Borchert.
96506         Include stdlib.h, string.h or strings.h, and xalloc.h.
96507         Use strip_trailing_slashes rather than open-coding it.
96508
96509 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96510
96511         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96512
96513 2001-01-03  Jim Meyering  <meyering@lucent.com>
96514
96515         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96516         of local `inptr' to avoid warning with some system declarations of
96517         iconv.
96518
96519 2001-01-02  Volker Borchert  <bt@teknon.de>
96520
96521         * m4/rename.m4: New file.
96522         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96523
96524 2001-01-01  Jim Meyering  <meyering@lucent.com>
96525
96526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96527         even on systems with utmpx.h.  It's necessary for the declaration of
96528         utmp's ut_user member.  Reported by Andreas Jaeger.
96529
96530         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96531         available. They are required for the declarations of getgrgid and
96532         getpwuid resp.
96533         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96534         Reported by Andreas Jaeger.
96535
96536 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96537
96538         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96539         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96540         so `make install' also works in VPATH builds.
96541
96542 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96543
96544         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96545         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96546         can be used in subdirectories.
96547
96548 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96549
96550         * lib/modechange.c: Do not assume that mode_t uses the
96551         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96552         the other-execute bit of FOO even if S_IXOTH != 1.
96553
96554         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96555         WOTH, XOTH, ALLM): New macros.
96556         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96557          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96558         Use them.
96559         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96560         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96561         (mode_compile):
96562         No need to use uintmax_t; unsigned long is long enough.
96563         Don't bother to get suffix since we don't use it.
96564
96565 2000-12-26  Jim Meyering  <meyering@lucent.com>
96566
96567         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96568         better with autoheader.
96569
96570 2000-12-24  Jim Meyering  <meyering@lucent.com>
96571
96572         * lib/hash.c (is_prime): Return explicit boolean values.
96573         (hash_get_first): Return NULL to appease Irix5.6's 89.
96574         Reported by Nelson Beebe.
96575
96576 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96577
96578         * lib/localcharset.c (locale_charset): Add support for Win32.
96579
96580 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96581
96582         * lib/physmem.h, lib/physmem.c: New files.
96583
96584         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96585         (noinst_HEADERS): Add physmem.h.
96586
96587         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96588         't' for compatibility with Solaris 8 sort.
96589
96590 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96591
96592         * lib/config.charset: Add support for BeOS.
96593
96594 2000-12-17  Jim Meyering  <meyering@lucent.com>
96595
96596         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96597         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96598
96599 2000-12-16  Jim Meyering  <meyering@lucent.com>
96600
96601         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96602         N and M) would have treated it like `chown N:N FILE'.
96603
96604         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96605
96606 2000-12-16  Jim Meyering  <meyering@lucent.com>
96607
96608         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96609         SHELLS_FILE to a file name that's useful on djgpp systems.
96610         Include stdlib.h.
96611         (ADDITIONAL_DEFAULT_SHELLS): Define.
96612         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96613         Based mostly on a patch from Prashant TR.
96614
96615 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96616
96617         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96618         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96619         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96620
96621 2000-12-08  Andreas Schwab  <schwab@suse.de>
96622
96623         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96624         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96625
96626 2000-12-07  Jim Meyering  <meyering@lucent.com>
96627
96628         * lib/stripslash.c (ISSLASH): Define.
96629         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96630         `/'.
96631         From Prashant TR.
96632
96633         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96634         (dir_name_r): Declare this function as static.
96635         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96636         manifest itself on a name containing a mix of slashes and
96637         backslashes.
96638         Make this function work with names starting with a DOS-style
96639         drive letter and colon prefix.
96640         (dir_name): Append `.' if necessary.
96641         Based mostly on patches from Prashant TR and Eli Zaretskii.
96642
96643         * lib/dirname.h (dir_name_r): Remove prototype.
96644
96645 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96646
96647         * m4/off_t-format.m4: Remove this file.
96648         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96649
96650 2000-12-06  Jim Meyering  <meyering@lucent.com>
96651
96652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96653         replacement strtoull, we may well need the replacement strtoul, too.
96654         Check for declarations of strtoul and strtoull.
96655         Check for strtol.  Mainly as a cue to cause automake to include
96656         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96657         Check for limits.h -- strtol.c needs it.
96658
96659 2000-12-05  Jim Meyering  <meyering@lucent.com>
96660
96661         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96662
96663 2000-12-04  Jim Meyering  <meyering@lucent.com>
96664
96665         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96666         Also include memory.h, stdlib.h, unistd.h if appropriate.
96667         Reported by Andreas Jaeger (conflicting declaration of malloc).
96668
96669 2000-12-02  Jim Meyering  <meyering@lucent.com>
96670
96671         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96672         * m4/jm-macros.m4 (jm_MACROS): require it.
96673
96674 2000-12-02  Jim Meyering  <meyering@lucent.com>
96675
96676         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96677
96678 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96679
96680         * lib/memrchr.c: Include <config.h> before any system include file.
96681
96682 2000-11-30  Jim Meyering  <meyering@lucent.com>
96683
96684         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96685
96686 2000-11-30  Jim Meyering  <meyering@lucent.com>
96687
96688         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96689
96690 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96691
96692         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96693
96694 2000-11-26  Jim Meyering  <meyering@lucent.com>
96695
96696         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96697
96698 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96699
96700         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96701         size of (size_t) -1; it's not portable.
96702
96703 2000-11-17  Jim Meyering  <meyering@lucent.com>
96704
96705         * lib/strstr.c: Update from GNU libc.
96706
96707 2000-11-17  Akim Demaille  <akim@epita.fr>
96708
96709         * lib/obstack.h: Formatting changes.
96710         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96711         prevent type checking.
96712         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96713         cast the value to (void *): assigning a `foo *' to a `void *'
96714         variable is valid.
96715         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96716
96717 2000-11-16  Jim Meyering  <meyering@lucent.com>
96718
96719         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96720
96721 2000-11-11  Jim Meyering  <meyering@lucent.com>
96722
96723         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96724
96725 2000-11-10  Jim Meyering  <meyering@lucent.com>
96726
96727         * lib/obstack.h: Update from GNU libc.
96728         * lib/obstack.c: Likewise.
96729
96730 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96731
96732         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96733
96734 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96735
96736         * lib/getusershell.c (setusershell): Use rewind rather than
96737         fseek/fseeko, to avoid configuration hassles with fseeko.
96738         Don't bother opening SHELLS_FILE if shellstream is NULL;
96739         it's not necessary.
96740
96741 2000-11-05  Jim Meyering  <meyering@lucent.com>
96742
96743         * lib/makepath.h (make_dir): Declare.
96744         * lib/makepath.c (make_dir): Remove `static' attribute.
96745         Tweak a comment.
96746
96747 2000-11-04  Jim Meyering  <meyering@lucent.com>
96748
96749         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96750
96751 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96752
96753         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96754         last one in a bucket, advance to the next bucket.
96755
96756 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96757
96758         * lib/fnmatch.c: Do not comment out all the code if we are using
96759         the GNU C library, because in some cases we are replacing buggy
96760         code in the GNU C library itself.
96761
96762 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96763
96764         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96765         (regex_compile): Catch bogus \(\1\).
96766
96767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96768
96769         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96770         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96771         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96772
96773 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96774
96775         * lib/error.h, getline.h, modechange.h:
96776         Remove "2000" from Copyright line, as the file hasn't been
96777         changed this year other than in the copyright notice.
96778
96779         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96780         was changed this year.
96781
96782 2000-10-29  Jim Meyering  <meyering@lucent.com>
96783
96784         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96785         renaming.
96786         * m4/ls-mntd-fs.m4: Likewise
96787
96788 2000-10-29  Jim Meyering  <meyering@lucent.com>
96789
96790         * lib/xstat.in: Fix grammar in comment.
96791
96792 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96793
96794         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96795         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96796         doesn't define __restrict_arr.
96797
96798 2000-10-28  Jim Meyering  <meyering@lucent.com>
96799
96800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96801         (jm_PREREQ_MEMCHR): New function.
96802
96803 2000-10-28  Jim Meyering  <meyering@lucent.com>
96804
96805         * lib/memchr.c: Update from libc.
96806         Adjust for portability:
96807         [HAVE_STDLIB_H]: Include stdlib.h.
96808         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96809         Undef __memchr, too.
96810         [!weak_alias]: Define __memchr to memchr.
96811
96812         * lib/regex.c: Update from libc.
96813         * lib/regex.h: Likewise.
96814         * lib/getopt1.c: Likewise.
96815         * lib/memcmp.c: Likewise.
96816
96817         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96818         Avoid using fseek, when possible -- it's broken by design.
96819         Patch by Ulrich Drepper.
96820
96821 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96822
96823         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96824         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96825         Giving in to popular pressure to shut up the compiler with casts.
96826
96827 2000-10-26  Jim Meyering  <meyering@lucent.com>
96828
96829         * lib/strftime.c: Update from libc.
96830
96831 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96832
96833         * regex.c: More `unsigned char' -> `re_char' changes.
96834         Also change several `int' into `re_wchar_t'.
96835         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96836         (PUSH_FAILURE_POINTER): Don't cast any more.
96837         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96838         We want GCC to complain, since this piece of code makes
96839         re_match non-reentrant, which *should* be fixed.
96840         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96841         (EXTEND_BUFFER): Use RETALLOC.
96842         (SET_LIST_BIT): Don't cast.
96843         (re_wchar_t): New type.
96844         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96845         that those two functions will always properly return.
96846         (IMMEDIATE_QUIT_CHECK): Cast to void.
96847         (analyse_first): Use recursion rather than an explicit stack.
96848         (re_compile_fastmap): Can't fail anymore.
96849         (re_search_2): Don't check re_compile_fastmap for failure.
96850         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96851         Now also sets the new value (passed in a new argument).
96852         (re_match_2_internal): Use it.
96853         Also, use a new var `reg' of type size_t when looping through regs
96854         rather than reuse the inappropriate `mcnt'.
96855
96856 2000-10-25  Jim Meyering  <meyering@lucent.com>
96857
96858         * lib/obstack.c: Update from libc.
96859
96860 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96861
96862         * regex.c (regex_compile): Change the way of handling a range from
96863         a char less than 256 to a char not less than 256.
96864
96865 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96866
96867         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96868         NT-Emacs only.
96869         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96870         so that re_search functions only quit when callers expect them to.
96871
96872 2000-10-23  Jim Meyering  <meyering@lucent.com>
96873
96874         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96875         wrong.  That set_locale call must not have any side effects.
96876         From Paul Eggert.
96877
96878 2000-10-22  Jim Meyering  <meyering@lucent.com>
96879
96880         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96881         [CYCLIC]: Remove now-unused definition.
96882
96883         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96884         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96885         Suggestion from Ulrich Drepper.
96886
96887 2000-10-21  Jim Meyering  <meyering@lucent.com>
96888
96889         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96890         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96892
96893 2000-10-21  Jim Meyering  <meyering@lucent.com>
96894
96895         * lib/dirname.c (memrchr): Declare if necessary.
96896         (dir_name): Remove the restriction that there be no
96897         trailing slashes.  Now, this code skips past them, effectively
96898         ignoring them.
96899         [TEST_DIRNAME] (main): New unit tests.
96900
96901         * lib/memrchr.c: New file from GNU libc.
96902         Undef __memrchr, too.
96903         [!weak_alias]: Define __memrchr to memrchr.
96904         Guard weak_alias use with `#ifdef weak_alias'.
96905
96906 2000-10-21  Jim Meyering  <meyering@lucent.com>
96907
96908         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96909         (dir_name): Use dir_name_r.
96910         * lib/dirname.h (dir_name_r): Declare it.
96911
96912 2000-10-17  Jim Meyering  <meyering@lucent.com>
96913
96914         * lib/quote.h (PARAMS): Define and use.
96915         Reported by Akim Demaille.
96916
96917         * lib/getopt.c: Update from libc.
96918
96919 2000-10-16  Jim Meyering  <meyering@lucent.com>
96920
96921         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96922         setlocale.
96923         From Jan Fedak.
96924
96925 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96926
96927         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96928
96929 2000-09-25  Jim Meyering  <meyering@lucent.com>
96930
96931         * lib/md5.h (rol): Define (from GnuPG).
96932
96933         * lib/sha.c: Give credit (GnuPG) where due.
96934         (M): Use rol rather than open-coding it.
96935         Add a FIXME comment.
96936
96937 2000-09-21  Jim Meyering  <meyering@lucent.com>
96938
96939         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96940         Reported by Michael Stone.
96941
96942 2000-09-20  Jim Meyering  <meyering@lucent.com>
96943
96944         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96945         (noinst_HEADERS): Add sha.h.
96946         Based on code from Scott G. Miller and from GnuPG.
96947
96948 2000-09-18  Jim Meyering  <meyering@lucent.com>
96949
96950         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96951         LIBS. Otherwise, everyone ends up linking with -lelf for some
96952         configurations.
96953         Reported by Mike Stone.
96954
96955 2000-09-15  Jim Meyering  <meyering@lucent.com>
96956
96957         * lib/regex.c: Update from libc.
96958
96959 2000-09-10  Jim Meyering  <meyering@lucent.com>
96960
96961         * lib/getopt.c (_getopt_internal): Update from glibc.
96962
96963 2000-09-09  Jim Meyering  <meyering@lucent.com>
96964
96965         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96966         think it should be used as a general replacement for isascii.
96967         * lib/fnmatch.c: Likewise.
96968         * lib/mbswidth.c: Likewise
96969         * lib/regex.c: Likewise.
96970
96971         Don't use atoi.
96972         * lib/userspec.c: Include sys/param.h and limits.h.
96973         Include xstrtol.h.
96974         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96975         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96976         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96977         UID, GID.  Check range.
96978
96979 2000-09-06  Jim Meyering  <meyering@lucent.com>
96980
96981         * lib/getopt.c (_getopt_internal): Update from glibc.
96982
96983 2000-08-30  Jim Meyering  <meyering@lucent.com>
96984
96985         * lib/strftime.c: Merge in changes from GNU libc.
96986
96987 2000-08-26  Jim Meyering  <meyering@lucent.com>
96988
96989         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96990         * m4/fpending.m4: New file.
96991
96992 2000-08-26  Jim Meyering  <meyering@lucent.com>
96993
96994         * lib/closeout.c: Include "__fpending.h".
96995         (close_stdout_status): Return right away if there's nothing to flush.
96996
96997         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96998         * lib/__fpending.c: New file.
96999         * lib/__fpending.h: New file.
97000
97001 2000-08-20  Jim Meyering  <meyering@lucent.com>
97002
97003         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97004         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97005         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97006
97007 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97008
97009         Improve fileutils installation on systems where running
97010         programs (like install) can't be unlinked.
97011         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97012         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97013
97014 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97015
97016         Standardize on "memory exhausted" instead of "Memory exhausted"
97017         or "virtual memory exhausted".
97018         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97019         "virtual memory exhausted".
97020         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97021         our own message.
97022         * lib/userspec.c (parse_user_spec): Likewise.
97023         * lib/bumpalloc.h: comment fix
97024         * lib/same.c, userspec.c: Include xalloc.h.
97025
97026         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97027         not char *const and pointing to a constant array.
97028         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97029         (xrealloc): Comment fix.
97030
97031         * lib/userspec.c (parse_user_spec):
97032         Don't translate a message until just before returning,
97033         to avoid unnecessary translation.
97034
97035 2000-08-07  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97038         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97039         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97040         getgroups.c, gethostname.c, getopt.h, group-member.c,
97041         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97042         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97043         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97044         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97045         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97046         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97047         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97048         yesno.c: Back out Copyright date changes for each file with no change
97049         this year.  This eases coordination with other programs using the same
97050         source code modules.  From Paul Eggert.
97051
97052 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97053
97054         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97055         not char, for compatibility with glibc 2.1.3 strftime.c.
97056
97057 2000-08-03  Greg McGary  <greg@mcgary.org>
97058
97059         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97060         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97061         (EXTEND_BUFFER): Use them.
97062
97063 2000-08-01  Jim Meyering  <meyering@lucent.com>
97064
97065         * lib/dirname.c (ISSLASH): Define.
97066         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97067         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97068         both `\' and `/' may be use as path separators.
97069         Based on a patch from Prashant TR.
97070
97071 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97072
97073         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97074         slot vector a constant, since it might get modified.
97075
97076 2000-07-31  Jim Meyering  <meyering@lucent.com>
97077
97078         * lib/xmalloc.c: Use `virtual memory exhausted', not
97079         `Memory exhausted'.
97080         * lib/obstack.c (print_and_abort): Likewise.
97081
97082 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97083
97084         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97085         buffer, so that the caller can always quote one small
97086         component of a "memory exhausted" message in slot 0.
97087         From a suggestion by Jim Meyering.
97088
97089 2000-07-30  Jim Meyering  <meyering@lucent.com>
97090
97091         * lib/makepath.c (make_path): Quote the other instance, too.
97092
97093         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97094         (STATIC_BUF_SIZE): Define.
97095         (quotearg_n_options): Use only statically allocated storage when
97096         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97097         than STATIC_BUF_SIZE.
97098
97099 2000-07-29  Jim Meyering  <meyering@lucent.com>
97100
97101         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97102         * lib/dirname.c (dir_name): Likewise.
97103
97104         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97105         `/'.
97106
97107         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97108         (dir_name): Assert that there are no trailing slashes.
97109
97110 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97111
97112         * lib/mbswidth.h (mbswidth): Add a flags argument.
97113         (mbswidth): New declaration.
97114         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97115         * lib/mbswidth.c (mbswidth): Add a flags argument.
97116         (mbsnwidth): New function.
97117
97118 2000-07-24  Jim Meyering  <meyering@lucent.com>
97119
97120         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97121
97122 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97123
97124         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97125
97126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97127
97128         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97129         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97130         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97131         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97132         invoke multibyte primitives.
97133
97134 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97135
97136         * lib/quotearg.c:
97137         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97138         so that mbstate_t is always defined.
97139
97140         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97141         be 1 in at least one GCC installation, and this configuration
97142         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97143         performance on hosts that have mbrtowc but have only unibyte
97144         locales, but I assume these hosts are rare.
97145
97146 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97147
97148         * lib/mbswidth.c (_XOPEN_SOURCE):
97149         Don't define; this causes problems on Solaris 7.
97150         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97151
97152 2000-07-23  Jim Meyering  <meyering@lucent.com>
97153
97154         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97155         too: getgrgid, getpwuid, getuid.
97156
97157 2000-07-23  Jim Meyering  <meyering@lucent.com>
97158
97159         * lib/basename.c (base_name): Add an assertion.
97160
97161 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97162
97163         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97164         shadow its mbsinit function.
97165
97166 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97167
97168         * lib/mbswidth.h: New file.
97169         * lib/mbswidth.c: New file.
97170         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97171         (noinst_HEADERS): Add mbswidth.h.
97172
97173 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97174
97175         * lib/config.charset: Add support for FreeBSD. Improve support for
97176         HP-UX and IRIX 6.
97177
97178 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97179
97180         * m4/mbswidth.m4: New file.
97181         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97182
97183 2000-07-15  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/makepath.c: Include quote.h.
97186         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97187         corresponding argument in a `quote (...)' call.
97188         Give better diagnostics.
97189
97190         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97191         (noinst_HEADERS): Add quote.h.
97192
97193         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97194         from tar's src/misc.c.
97195         * lib/quote.h: New file.  Prototypes for same.
97196
97197 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97198
97199         From a suggestion by Bruno Haible.
97200         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97201         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97202         to decide whether to define the BeOS workaround macro;
97203         this adjusts to the change to AC_MBSTATE_T.
97204
97205 2000-07-14  Jim Meyering  <meyering@lucent.com>
97206
97207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97208         jm_AC_TYPE_UINTMAX_T.
97209
97210 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97211
97212         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97213
97214         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97215         quotearg_buffer_restyled): Add support for
97216         clocale_quoting_style.  Undo previous change to
97217         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97218         and "{RIGHT QUOTATION MARK}" msgids.
97219
97220 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97221
97222         From a suggestion by Bruno Haible.
97223         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97224         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97225         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97226         and mbstate_t, to a single-part test that simply defines mbstate_t.
97227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97228         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97229
97230 2000-07-10  Jim Meyering  <meyering@lucent.com>
97231
97232         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97233
97234         * m4/gnu-source.m4: Output to confdefs.h directly.
97235         Suggestion from Akim Demaille.
97236
97237 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97238
97239         The old behavior of quoting `like this' doesn't look good with
97240         newer, ISO-style fonts.  See:
97241         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97242
97243         Instead, quote "like this" by default.  Let the translator
97244         tailor the locale-specific quoting behavior by providing
97245         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97246
97247         * lib/quotearg.c (N_): New macro.
97248         (gettext_default): New function.
97249         (quotearg_buffer_restyled): Use
97250         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97251         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97252
97253 2000-07-09  Jim Meyering  <meyering@lucent.com>
97254
97255         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97256         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97257
97258         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97260
97261 2000-07-09  Jim Meyering  <meyering@lucent.com>
97262
97263         * lib/Most files: Update copyright dates to include 2000.
97264
97265 2000-07-08  Jim Meyering  <meyering@lucent.com>
97266
97267         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97268         if not defined.
97269         (xgethostname): Remove now-unnecessary #ifdef.
97270         Move declaration of `err' into loop where it's used.
97271
97272 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97273         and Bruno Haible  <haible@clisp.cons.org>
97274
97275         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97276         only if the test for an object-type mbstate_t fails.  This
97277         prevents us from mistakenly reporting that mbstate_t is a
97278         system object type after we "#define mbstate_t int" to work
97279         around its lack.
97280
97281 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97282         and Bruno Haible  <haible@clisp.cons.org>
97283
97284         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97285
97286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97287
97288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97289         to strerror_r.
97290         Include <ctype.h> for use of isalpha.
97291
97292 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97293
97294         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97295         by allocating a larger buffer. Test the gethostname return value for
97296         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97297         returns an error and ENAMETOOLONG isn't defined.
97298
97299 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97300
97301         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97302         dimension.
97303
97304 2000-07-04  Jim Meyering  <meyering@lucent.com>
97305
97306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97307         of the deprecated AC_CHECKING.
97308
97309 2000-07-04  Jim Meyering  <meyering@lucent.com>
97310
97311         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97312         Reported by Bruno Haible.
97313
97314 2000-07-04  Jim Meyering  <meyering@lucent.com>
97315
97316         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97317         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97318         lacks mbrtowc.
97319
97320 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97321
97322         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97323         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97324
97325 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97326         and Bruno Haible  <haible@clisp.cons.org>
97327
97328         * lib/quotearg.c (mbrtowc):
97329         Assign to *pwc, and return 1 only if result is nonzero.
97330         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97331
97332 2000-07-03  Jim Meyering  <meyering@lucent.com>
97333
97334         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97335
97336 2000-07-03  Jim Meyering  <meyering@lucent.com>
97337
97338         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97339         This is necessary to get a definition of e.g., UTMP_FILE on
97340         HP-UX 10.20.
97341         From Bob Proulx.
97342
97343 2000-07-02  Jim Meyering  <meyering@lucent.com>
97344
97345         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97346
97347         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97348         AC_LIBOBJ(function_name).
97349         * m4/chown.m4: Likewise.
97350         * m4/fnmatch.m4: Likewise.
97351         * m4/ftruncate.m4: Likewise.
97352         * m4/getgroups.m4: Likewise.
97353         * m4/getline.m4: Likewise.
97354         * m4/group-member.m4: Likewise.
97355         * m4/jm-macros.m4: Likewise.
97356         * m4/lstat.m4: Likewise.
97357         * m4/malloc.m4: Likewise.
97358         * m4/memcmp.m4: Likewise.
97359         * m4/nanosleep.m4: Likewise.
97360         * m4/putenv.m4: Likewise.
97361         * m4/realloc.m4: Likewise.
97362         * m4/regex.m4: Likewise.
97363         * m4/stat.m4: Likewise.
97364         * m4/strftime.m4: Likewise.
97365
97366 2000-07-02  Jim Meyering  <meyering@lucent.com>
97367
97368         * lib/quotearg.c (mbstate_t): Don't define here.
97369
97370 2000-07-02  Jim Meyering  <meyering@lucent.com>
97371
97372         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97373
97374 2000-07-01  Jim Meyering  <meyering@lucent.com>
97375
97376         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97377
97378 2000-07-01  Jim Meyering  <meyering@lucent.com>
97379
97380         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97381         problem.
97382
97383 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97384
97385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97386         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97387
97388 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97389
97390         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97391         per change in ../m4/ls-mntd-fs.m4.
97392         (read_filesystem_list): Ignore symbolic links.
97393
97394 2000-06-29  Jim Meyering  <meyering@lucent.com>
97395
97396         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97397         for declaration of strcmp.
97398
97399         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97400
97401         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97402         Avoid warning by casting result to `char *' to remove `const'.
97403
97404 2000-06-28  Jim Meyering  <meyering@lucent.com>
97405
97406         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97407         included by quotearg.c, for which we perform this test.  From
97408         Bruno Haible.
97409
97410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97411
97412         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97414         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97415
97416 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97417
97418         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97419
97420 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97421
97422         savedir now sets errno on failure and invokes xmalloc to get memory.
97423         Fix a couple of other minor bugs while we're at it.
97424
97425         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97426         (NAMLEN): Remove macro.
97427         (malloc, realloc): Remove decls.
97428         (stpcpy): Likewise.
97429         ("xalloc.h"): Include.
97430         (NAME_SIZE_DEFAULT): New macro.
97431         (savedir): Use xmalloc / xrealloc to allocate memory.
97432         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97433         Skip "" directory entries.
97434         Use strlen to calculate directory entry length, since the old method
97435         is rarely used these days and isn't worth supporting.
97436         Don't use a pointer after freeing it.
97437         Check for integer overflow when calculating allocation size.
97438         Use memcpy to copy entries, instead of stpcpy.
97439         Set errno properly when returning NULL.
97440         Check for readdir error.
97441
97442 2000-06-26  Jim Meyering  <meyering@lucent.com>
97443
97444         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97445
97446 2000-06-25  Jim Meyering  <meyering@lucent.com>
97447
97448         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97449         Linux header bug when _XOPEN_SOURCE is defined to 500.
97450
97451 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97452
97453         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97454         deficiency.
97455
97456 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97457
97458         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97459         Include xalloc.h.
97460         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97461
97462 2000-06-24  Jim Meyering  <meyering@lucent.com>
97463
97464         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97465         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97466         for which strerror does return char*, but which lacks a conveniently
97467         accessible declaration of the function.  If the compile-test says
97468         strerror_r doesn't work, then resort to a `run'-test that works on
97469         BeOS and segfaults on DEC Unix.
97470
97471 2000-06-24  Jim Meyering  <meyering@lucent.com>
97472
97473         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97474
97475 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97476
97477         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97479
97480 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97481
97482         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97483         (mbrtowc, mbstate_t): Define substitutes if
97484         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97485         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97486         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97487
97488 2000-06-23  Jim Meyering  <meyering@lucent.com>
97489
97490         * m4/afs.m4: Add missing AC_MSG_RESULT.
97491         Reported by Bruno Haible.
97492
97493         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97494         Suggestion from Bruno Haible.
97495
97496 2000-06-23  Jim Meyering  <meyering@lucent.com>
97497
97498         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97499
97500 2000-06-21  Jim Meyering  <meyering@lucent.com>
97501
97502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97503
97504 2000-06-21  Jim Meyering  <meyering@lucent.com>
97505
97506         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97507         (noinst_HEADERS): Add getstr.h.
97508
97509         * lib/getline.c (getstr): Move into a separate file.
97510         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97511         the following changes: new parameter, delim2; both delim[12]
97512         parameters have type `int', not `char'.  The latter would lose
97513         with 8-bit delimiters.
97514         * lib/getstr.h: New file.
97515
97516 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97517
97518         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97519         than 1024, return a memory chunk of least possible size, instead
97520         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97521         Use free/xmalloc instead of xrealloc to avoid copying for very long
97522         paths.
97523
97524 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97525
97526         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97527         the empty string.
97528
97529 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97530
97531         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97532         address, not strdup.  Include <stdlib.h> and don't declare free().
97533
97534 2000-06-19  Jim Meyering  <meyering@lucent.com>
97535
97536         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97537
97538 2000-06-18  Jim Meyering  <meyering@lucent.com>
97539
97540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97541
97542         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97543         `checking whether...' message to be consistent with that of the
97544         lstat test.
97545
97546 2000-06-18  Jim Meyering  <meyering@lucent.com>
97547
97548         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97549         Besides, these days every porting target provides a mkdir function.
97550
97551         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97552         needed. (this snippet comes from src/system.h).
97553
97554 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97555
97556         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97557
97558 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97559
97560         * lib/human.c (adjust_value): New function.
97561         (human_readable_inexact): Apply rounding style even when
97562         printing approximate values.
97563
97564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97565
97566         * lib/human.c (human_readable_inexact): Allow an input block
97567         size that is not a multiple of the output block size, and vice versa.
97568         Reported by Piergiorgio Sartor.
97569
97570 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97571
97572         * lib/getdate.y (get_date): Apply relative times after time
97573         zone indicator, not before.  Reported by Todd A. Jacobs.
97574
97575 2000-06-13  Jim Meyering  <meyering@lucent.com>
97576
97577         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97578
97579         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97580
97581 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97582
97583         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97584
97585 2000-06-12  Jim Meyering  <meyering@lucent.com>
97586
97587         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97588         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97589         optional argument.
97590         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97591         the optional argument, `lib'.
97592
97593 2000-06-08  Jim Meyering  <meyering@lucent.com>
97594
97595         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97596
97597 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97598
97599         Rewrite largefile configuration so that we don't need to run
97600         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97601         AC_CANONICAL_HOST in configure.in -- jmm]
97602
97603         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97604         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97605         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97606         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97607         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97608         All uses changed.
97609         Instead of inspecting the output of getconf, try to compile the
97610         test program without and with the macro definition.
97611         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97612         for getconf.  Instead, check for the needed flags by compiling
97613         test programs.
97614
97615 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97616
97617         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97618
97619 2000-06-04  Jim Meyering  <meyering@lucent.com>
97620
97621         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97622         SunOS 4.1.4 for which gid_t is an unsigned type.
97623
97624 2000-06-03  Jim Meyering  <meyering@lucent.com>
97625
97626         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97627         now that autoconf requires that.
97628
97629         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97630         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97631         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97632
97633 2000-06-03  Jim Meyering  <meyering@lucent.com>
97634
97635         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97636
97637 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97638
97639         * m4/glibc21.m4: New file.
97640         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97641
97642 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97643
97644         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97645         newer, don't install charset.alias.
97646         * lib/config.charset: Change the Linux/glibc rules so they become empty
97647         on glibc-2.1 or newer.
97648
97649 2000-06-02  Jim Meyering  <meyering@lucent.com>
97650
97651         * lib/mountlist.c: Back out last change.  Instead, do this...
97652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97653         me_dummy member using the same `ignore'-testing code.
97654         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97655         fs_type strings.
97656         From Mark D. Roth.
97657
97658 2000-05-29  Jim Meyering  <meyering@lucent.com>
97659
97660         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97661         mounts with the `ignore' attribute.  Based on a patch from
97662         Mark D. Roth.
97663
97664 2000-05-28  Jim Meyering  <meyering@lucent.com>
97665
97666         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97667         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97668         * m4/stat.m4: Likewise.
97669         * m4/lstat.m4: Likewise.
97670         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97671
97672         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97673         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97674
97675 2000-05-26  Jim Meyering  <meyering@lucent.com>
97676
97677         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97678
97679 2000-05-24  Jim Meyering  <meyering@lucent.com>
97680
97681         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97682         autoconf requires that.
97683         * m4/lib-check.m4: Likewise.
97684         * m4/jm-macros.m4: Likewise.
97685         * m4/strftime.m4: Likewise.
97686
97687         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97688         AC_CHECK_DECLS, now that autoconf requires that.
97689
97690 2000-05-22  Jim Meyering  <meyering@lucent.com>
97691
97692         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97693         * m4/lstat.m4: Likewise.
97694
97695 2000-05-22  Jim Meyering  <meyering@lucent.com>
97696
97697         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97698
97699 2000-05-20  Jim Meyering  <meyering@lucent.com>
97700
97701         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97702         (jm_PREREQ): Use it.
97703
97704 2000-05-18  Jim Meyering  <meyering@lucent.com>
97705
97706         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97707         back, too, since it may have been modified by allocate_entry.
97708         (hash_delete): Rewrite to use neither the assignment operator
97709         nor the comma operator in an if-expression.
97710
97711 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97712
97713         * lib/closeout.c:
97714         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97715         Remove; no longer needed.
97716         "quotearg.h": Add include.
97717         (file_name): Do not bother to explicitly initialize to NULL; it's less
97718         efficient on some hosts.
97719         (close_stdout_status): Remove test as to whether stdout was already
97720         closed; it breaks for the case "echo x | sort >&-".
97721         Quote file name colons.
97722         Do not assume that _("write error") lacks format strings.
97723
97724 2000-05-15  Jim Meyering  <meyering@lucent.com>
97725
97726         * lib/version-etc.c (version_etc_copyright): Update the copyright
97727         string used in all --version output.
97728
97729 2000-05-14  Jim Meyering  <meyering@lucent.com>
97730
97731         * lib/closeout.c (close_stdout_set_file_name): New function.
97732         (close_stdout_status): Use new file-scoped global.
97733         Return right away if fstat says the stdout file descriptor is invalid.
97734         * lib/closeout.h (close_stdout_set_file_name): Declare.
97735
97736 2000-05-10  Jim Meyering  <meyering@lucent.com>
97737
97738         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97739         (close_stdout_set_status): New function.
97740         * lib/closeout.h (close_stdout_set_status): Declare.
97741
97742 2000-05-09  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/gettext.m4: Rename this...
97745         * m4/libintl.m4: ...to this.
97746
97747 2000-05-08  Jim Meyering  <meyering@lucent.com>
97748
97749         * lib/long-options.c: Don't include closeout.h.
97750         (parse_long_options): Don't call close_stdout for --version.
97751
97752 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97753
97754         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97755         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97756         2.1.3 bug.  This avoids a clash when files like regex.c define
97757         _GNU_SOURCE.
97758
97759 2000-05-06  Jim Meyering  <meyering@lucent.com>
97760
97761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97762         (AC_REPLACE_FUNCS): Add strnlen.
97763
97764         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97765         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97766
97767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97768         AC_SEARCH_LIBS call for nanosleep.
97769         (LIB_NANOSLEEP): Set and AC_SUBST.
97770
97771 2000-05-06  Jim Meyering  <meyering@lucent.com>
97772
97773         * lib/strnlen.c: Undefine __strnlen and strnlen.
97774         [!weak_alias]: Define __strnlen to strnlen.
97775
97776         * lib/atexit.c: New file, from libiberty.
97777
97778 2000-05-06  Jim Meyering  <meyering@lucent.com>
97779
97780         * lib/closeout.c (close_stdout_status): Also check for errors on the
97781         stderr stream.
97782
97783 2000-05-05  Jim Meyering  <meyering@lucent.com>
97784
97785         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97786         AC_SEARCH_LIBS call for clock_gettime.
97787         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97788
97789         * m4/search-libs.m4: Update from autoconf.
97790
97791         su doesn't work on Solaris 2.6.
97792         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97793         <shadow.h>.  Reported by Dragos Harabor.
97794
97795 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97796
97797         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97798         memcpy instead of xmalloc, xrealloc, path_concat.
97799         (locale_charset): Treat empty environment variables as absent.
97800         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97801
97802 2000-05-04  Jim Meyering  <meyering@lucent.com>
97803
97804         * lib/getopt.c: Update from glibc.
97805         * lib/obstack.c: Likewise.
97806         * lib/obstack.h: Likewise.
97807         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97808         file
97809
97810         * lib/regex.h: Likewise.
97811         * lib/strndup.c: Likewise.
97812         * lib/strnlen.c: New file, from glibc.
97813
97814 2000-05-03  Jim Meyering  <meyering@lucent.com>
97815
97816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97817
97818 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97819
97820         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97821         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97822         compile-time test, rather than inspecting host and OS, to
97823         decide whether to define _LARGEFILE_SOURCE.
97824
97825 2000-05-01  Jim Meyering  <meyering@lucent.com>
97826
97827         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97828
97829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97830         Based on a patch from Bruno Haible.
97831
97832 2000-05-01  Jim Meyering  <meyering@lucent.com>
97833
97834         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97835
97836 2000-04-29  Jim Meyering  <meyering@lucent.com>
97837
97838         * lib/path-concat.c: Declare strdup only if it's not defined.
97839         * lib/canon-host.c: Likewise.
97840
97841 2000-04-28  Jim Meyering  <meyering@lucent.com>
97842
97843         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97844         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97845         is included first, then limits.h is included by locale.h by libintl.h.
97846         From John David Anglin.
97847
97848 2000-04-25  Jim Meyering  <meyering@lucent.com>
97849
97850         * lib/makepath.c (S_IRWXUGO): Define.
97851         (make_path): Always perform explicit chmod if MODE specifies any
97852         of the `special' permission bits.  Prompted by a bug report against
97853         install from Mate Wierdl and Joost van Baal.
97854
97855 2000-04-18  Jim Meyering  <meyering@lucent.com>
97856
97857         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97858         (jm_PREREQ): Use it.
97859
97860 2000-04-18  Jim Meyering  <meyering@lucent.com>
97861
97862         * lib/README: New file.
97863
97864         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97865         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97866
97867 2000-04-17  Jim Meyering  <meyering@lucent.com>
97868
97869         Get it right :-)
97870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97871         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97872         Suggestion from Akim Demaille.
97873
97874 2000-04-17  Jim Meyering  <meyering@lucent.com>
97875
97876         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97877         the definition of it to rpl_strftime also defined-away the system's
97878         declaration.
97879
97880 2000-04-15  Jim Meyering  <meyering@lucent.com>
97881
97882         Use `C' to denote so-called `contiguous' files, the same way
97883         that tar does.
97884         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97885         (ftypelet): Use S_ISCTG.
97886         From Michael Deutschmann.
97887
97888 2000-04-14  Jim Meyering  <meyering@lucent.com>
97889
97890         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97891         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97892         clobbered.
97893
97894 2000-04-14  Jim Meyering  <meyering@lucent.com>
97895
97896         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97897
97898 2000-04-13  Jim Meyering  <meyering@lucent.com>
97899
97900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97901         AH_VERBATIM to insert required #ifndef into config.h.in.
97902         Suggestion from Akim Demaille.
97903
97904 2000-04-12  Jim Meyering  <meyering@lucent.com>
97905
97906         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97907         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97908         Christian Krackowizer.
97909
97910         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97911         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97912         (AC_SYS_LARGEFILE): Require.
97913         (AM_C_PROTOTYPES): Require.
97914
97915 2000-04-08  Jim Meyering  <meyering@lucent.com>
97916
97917         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97918         names don't conflict.  Reported by Eli Zaretskii.
97919
97920 2000-04-07  Jim Meyering  <meyering@lucent.com>
97921
97922         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97923         sys/types.h, to work around system header problems on AIX 3.2.5.
97924         From Bruno Haible.
97925
97926 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97927
97928         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97929         bug.  Deal with the different error behavior of Irix iconv.
97930
97931 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97932
97933         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97934         IRIX if the installer said otherwise.
97935
97936 2000-04-05  Jim Meyering  <meyering@lucent.com>
97937
97938         Portability tweaks required for ultrix4.3.
97939         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97940         (jm_CHECK_DECLS): Add getutent to the list of functions.
97941         (_jm_DECL_HEADERS): Add utmpx.h.
97942         From John David Anglin.
97943
97944         * m4/strftime.m4: Back out the 2000-04-02 change.
97945         Instead of that change, simply undefine putenv in the test program.
97946
97947 2000-04-05  Jim Meyering  <meyering@lucent.com>
97948
97949         Portability tweaks required for ultrix4.3.
97950         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97951         getutent.
97952         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97953         * lib/canon-host.c: Declare strdup.
97954         * lib/path-concat.c: Likewise.
97955         From John David Anglin.
97956
97957 2000-04-04  Jim Meyering  <meyering@lucent.com>
97958
97959         Be more DOS 8.3-friendly.
97960         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97961         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97962         * lib/Makefile.am: Reflect renaming.
97963         Reported by Eli Zaretskii.
97964
97965         Use a temporary file name that won't clash with `charset.alias'
97966         in the DOS 8.3 name space.
97967         * lib/Makefile.am (charset_tmp): Define.
97968         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97969         (uninstall-local): Likewise.
97970         Reported by Eli Zaretskii.
97971
97972 2000-04-03  Jim Meyering  <meyering@lucent.com>
97973
97974         * m4/gettext.m4: Fix typo in comment.
97975
97976         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97977         textutils/configure.in).  Suggestion from Paul Eggert.
97978         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97979
97980 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97981
97982         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97983         variable in the shell rather than using putenv, which isn't
97984         portable.  This avoids the configure-time inter-test dependency
97985         on the potentially-renamed putenv function.
97986
97987 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97988
97989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97990         before checking struct stat.st_blksize, so that
97991         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97992
97993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97994
97995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97996         since strftime.c uses HAVE_STRFTIME to decide whether to use
97997         the underlying strftime.
97998
97999 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98000
98001         * lib/time/strftime.c (my_strftime): Make sure we call the system
98002         strftime, not ourselves, when invoking the underlying strftime.
98003
98004 2000-03-24  Jim Meyering  <meyering@lucent.com>
98005
98006         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98007         (charset_alias): Define.
98008         (install-exec-local): Factor out common code.
98009         (uninstall-local): Split lines longer than 80.
98010         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98011         (SUFFIXES): Define.
98012         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98013         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98014
98015 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98016
98017         * lib/config.charset: Output a line containing "Packages using this
98018         file".
98019         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98020         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98021         ref-del.sed): New rules.
98022
98023 2000-03-17  Jim Meyering  <meyering@lucent.com>
98024
98025         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98026         Otherwise, include <strings.h>
98027
98028 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98029
98030         * lib/unicodeio.c (utf8_wctomb): New function.
98031         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98032         format instead of in UCS-4 with platform dependent endianness.
98033
98034 2000-03-10  Jim Meyering  <meyering@lucent.com>
98035
98036         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98037         From Marco Franzen.
98038
98039 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98040
98041         * lib/savedir.c (savedir): Work even if directory size is
98042         negative; this can happen with some screwy NFS configurations.
98043
98044 2000-03-06  Jim Meyering  <meyering@lucent.com>
98045
98046         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98047         if it's NULL (because we ran out of memory).  From Bruno Haible.
98048
98049 2000-03-05  Jim Meyering  <meyering@lucent.com>
98050
98051         * lib/localcharset.c ("path-concat.h"): Include.
98052         (get_charset_aliases): Use path_concat instead of ANSI string
98053         concatenation.
98054
98055         * lib/unicodeio.h (PARAMS): Define.
98056         Use it to guard prototype.
98057
98058 2000-03-04  Jim Meyering  <meyering@lucent.com>
98059
98060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98061         for lib/localcharset.c.
98062
98063 2000-03-04  Jim Meyering  <meyering@lucent.com>
98064
98065         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98066         installing into it.
98067         (uninstall-local): Uncomment this rule so `make distcheck' works
98068         once again.
98069
98070         * lib/unicodeio.c (<errno.h>): Include it.
98071         (errno): Declare if not defined.
98072
98073         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98074
98075         * lib/config.charset: New version, incorporating remarks from a linux
98076         i18n mailing list.  From Bruno Haible.
98077
98078 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98079
98080         * m4/codeset.m4: New file.
98081         * m4/iconv.m4: New file.
98082         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98083
98084 2000-03-03  Jim Meyering  <meyering@lucent.com>
98085
98086         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98087
98088 2000-03-02  Jim Meyering  <meyering@lucent.com>
98089
98090         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98091         the messages come out on separate lines.
98092
98093         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98094         rather than jm_CHECK_DECLARATIONS.
98095         * m4/decl.m4: Remove now-unused file.
98096
98097         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98098         geteuid.
98099
98100 2000-03-02  Jim Meyering  <meyering@lucent.com>
98101
98102         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98103
98104 2000-03-01  Jim Meyering  <meyering@lucent.com>
98105
98106         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98107         * lib/unicodeio.c: Likewise.
98108
98109 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98110
98111         * lib/config.charset: New file.
98112         * lib/localcharset.c: New file.
98113         * lib/unicodeio.h, lib/unicodeio.c: New files.
98114         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98115         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98116         (noinst_HEADERS): Add unicodeio.h.
98117         (all-local, install-exec-local, charset.alias): New targets.
98118
98119 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98120
98121         * lib/quotearg.c (ALERT_CHAR): New macro.
98122         (quotearg_buffer_restyled): Use it.
98123
98124 2000-02-27  Jim Meyering  <meyering@lucent.com>
98125
98126         * m4/check-decl.m4: Add getenv to the list.
98127
98128 2000-02-27  Jim Meyering  <meyering@lucent.com>
98129
98130         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98131         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98132
98133         * lib/backupfile.c: Guard inclusion of stdlib.h with
98134         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98135         Declare malloc if needed.
98136
98137         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98138         `#ifndef HAVE_DECL..'
98139         now that autoconf always defines the HAVE_DECL_ symbols.
98140         * lib/human.c: Likewise.
98141         * lib/same.c: Likewise.
98142         * lib/strtoumax.c: Likewise.
98143
98144         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98145         declaration check was not run.
98146         * lib/hash.c: Likewise.
98147         * lib/human.c: Likewise.
98148         * lib/same.c: Likewise.
98149         * lib/strtoumax.c: Likewise.
98150
98151         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98152         `.', then first look up the entire `.'-containing string as a login
98153         name.
98154
98155 2000-02-23  Jim Meyering  <meyering@lucent.com>
98156
98157         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98158         in place of my hack.
98159
98160 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98161
98162         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98163         (textint): New typedef.
98164         (parser_control): Member year changed from int to textint.
98165         All uses changed.
98166         (YYSTYPE): Removed; replaced by %union with int and textint members.
98167         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98168         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98169         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98170         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98171         (date, number, to_year): Use width of number in digits, not its value,
98172         to determine whether it's a 2-digit year, or a 2-digit time.
98173         (yylex): Store number of digits of numeric tokens.
98174         Reported by John Kendall.
98175
98176         (parser_control): Changed from struct parser_control to typedef (for
98177         consistency).  All uses changed.
98178
98179         (tID): Removed; not used.
98180         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98181
98182 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98183
98184         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98185         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98186
98187 2000-02-12  Jim Meyering  <meyering@lucent.com>
98188
98189         * lib/userspec.c (ISDIGIT): Define it.
98190         (isdigit): Remove definition.
98191         (is_number): Use ISDIGIT, not isdigit.
98192         <libintl.h>: Include.
98193         (_ and N_): Define.
98194         (parse_user_spec): Mark translatable strings.
98195
98196 2000-02-10  Jim Meyering  <meyering@lucent.com>
98197
98198         With these changes, nanosleep.[ch] are finally enough like the other
98199         lib/* replacement files to compile on a few more losing systems.
98200
98201         * lib/nanosleep.h: Don't include config.h.
98202         Remove prototype from declaration of nanosleep.
98203         (PARAMS): Remove now-unneeded definition.
98204         * lib/nanosleep.c: #undef nanosleep.
98205         (rpl_nanosleep): Rename from nanosleep.
98206
98207 2000-02-10  Jim Meyering  <meyering@lucent.com>
98208
98209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98210         gnu_nanosleep to rpl_nanosleep.
98211
98212 2000-02-09  Jim Meyering  <meyering@lucent.com>
98213
98214         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98215         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98216
98217 2000-02-08  Akim Demaille  <akim@epita.fr>
98218
98219         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98220         `[' and `]' and remove uses of `changequote'.
98221         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98222         (AC_SYS_LARGEFILE): Likewise.
98223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98224         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98225         of changequote.
98226         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98227         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98228         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98229         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98230
98231 2000-02-05  Jim Meyering  <meyering@lucent.com>
98232
98233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98234         Remove explicit use of AC_HEADER_TIME.  It is required by
98235         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98236         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98237         in autoconf whereby the expansion of the latter ended up preceding
98238         the expansion of its prerequisite, AC_HEADER_TIME.
98239         Reported by Volker Borchert.
98240
98241 2000-02-03  Jim Meyering  <meyering@lucent.com>
98242
98243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98244
98245 2000-02-03  Jim Meyering  <meyering@lucent.com>
98246
98247         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98248         rather than with `#if HAVE_UTMPNAME'.
98249
98250 2000-02-02  Jim Meyering  <meyering@lucent.com>
98251
98252         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98253         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98254         Reported by Eli Zaretskii.
98255
98256 2000-02-01  Jim Meyering  <meyering@lucent.com>
98257
98258         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98259
98260 2000-01-31  Jim Meyering  <meyering@lucent.com>
98261
98262         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98263         functions.  Add the time.h and sys/time.h headers along with the
98264         AC_REQUIRE'ment of AC_HEADER_TIME.
98265
98266 2000-01-31  Jim Meyering  <meyering@lucent.com>
98267
98268         * lib/nanosleep.h (nanosleep): Guard declaration with
98269         `#if ! HAVE_DECL_NANOSLEEP'.
98270         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98271         the declaration in that vendor's sys/timers.h.
98272         Reported by Christian Krackowizer.
98273
98274         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98275         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98276         (ISPRINT): Likewise.
98277         Reported by Tom Tromey.
98278
98279 2000-01-30  Jim Meyering  <meyering@lucent.com>
98280
98281         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98282
98283         * m4/prereq.m4 (utmp_includes): Define.
98284         Check for ut_user and ut_name members in both struct utmpx
98285         and struct utmp.
98286
98287 2000-01-30  Jim Meyering  <meyering@lucent.com>
98288
98289         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98290         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98291         header files where only utmpx.ut_user is declared.
98292
98293         * lib/readutmp.h (UT_USER): Define.
98294
98295 2000-01-29  Jim Meyering  <meyering@lucent.com>
98296
98297         * m4/lib-check.m4: New file containing library-related checks from
98298         fileutils and sh-utils (textutils had none).
98299
98300 2000-01-28  Jim Meyering  <meyering@lucent.com>
98301
98302         * m4/perl.m4: Change format of warning message to look more like that
98303         from the missing script.  Suggestion from François Pinard.
98304
98305 2000-01-25  Jim Meyering  <meyering@lucent.com>
98306
98307         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98308         well as time.h in the compile check.
98309         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98310         Fix typo in cross-compiling case: s/yes/no/.
98311
98312 2000-01-23  Jim Meyering  <meyering@lucent.com>
98313
98314         * m4/jm-macros.m4: Move df-related tests here from
98315         fileutils/configure.in
98316
98317         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98318         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98319
98320         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98321         s/space/ac_fsusage_space/.
98322         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98323
98324         * m4/ftruncate.m4: New file (derived from part of
98325         fileutils/configure.in).
98326         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98327         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98328
98329         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98330         AC_SUBST these here, rather than just in sh-util/configure.in, so
98331         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98332         all the same.
98333         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98334         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98335         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98336         (AC_SUBST(POW_LIBM)): Likewise.
98337         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98338
98339 2000-01-23  Jim Meyering  <meyering@lucent.com>
98340
98341         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98342         obstack.c.
98343
98344 2000-01-22  Jim Meyering  <meyering@lucent.com>
98345
98346         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98347
98348         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98349
98350         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98351         configure.in
98352         (AC_CHECK_HEADERS): Likewise for sh-utils.
98353         (AC_CHECK_HEADERS): Likewise for textutils.
98354         Merge the three lists of headers.
98355
98356         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98357         from fileutils' configure.in.
98358
98359         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98360         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98361         check-decl.m4.
98362
98363         * m4/check-decl.m4: Use #if rather than #ifdef.
98364         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98365         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98366         (_jm_DECL_HEADERS): Define new function.
98367         (jm_CHECK_DECLARATIONS): Require it.
98368
98369 2000-01-22  Jim Meyering  <meyering@lucent.com>
98370
98371         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98372         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98373         Required for some AIX systems.  Reported by Christian Krackowizer.
98374         [TESTING] (main): New function.
98375
98376         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98377         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98378         letters.
98379
98380         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98381         iswprint.
98382
98383         * lib/strverscmp.c (ISDIGIT): Define.
98384         (strverscmp): Use ISDIGIT, not isdigit.
98385
98386 2000-01-19  Jim Meyering  <meyering@lucent.com>
98387
98388         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98389         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98390         defines `struct timespec' in <sys/time.h>
98391
98392         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98393         Thanks to Akim for explaining.
98394
98395 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98396
98397         * lib/nanosleep.c (nanosleep):
98398         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98399         POSIX.1 doesn't require SA_INTERRUPT and some systems
98400         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98401         it's been part of POSIX.1 since day 1 (in 1988).
98402
98403 2000-01-17  Jim Meyering  <meyering@lucent.com>
98404
98405         * lib/interlock: Remove unused file.  Reported by François Pinard.
98406
98407 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98408
98409         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98410         alert, backslash, formfeed, and vertical tab unnecessarily in
98411         shell quoting style.
98412
98413 2000-01-16  Jim Meyering  <meyering@lucent.com>
98414
98415         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98416         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98417         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98418         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98419
98420 2000-01-16  Jim Meyering  <meyering@lucent.com>
98421
98422         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98423         because the latter didn't work.
98424
98425 2000-01-15  Jim Meyering  <meyering@lucent.com>
98426
98427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98428         (AC_REPLACE_FUNCS): Add memcpy and memset.
98429         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98430         Add strpbrk.
98431         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98432
98433 2000-01-12  Jim Meyering  <meyering@lucent.com>
98434
98435         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98436         (jm_PREREQ): Use it.
98437         (jm_PREREQ_READUTMP): New macro.
98438         (jm_PREREQ): Use it.
98439
98440 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98441
98442         Quote multibyte characters correctly.
98443         * m4/c-bs-a.m4: New file.
98444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98445         (jm_PREREQ): Use it.
98446
98447 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98448
98449         * m4/uintmax_t.m4: Port to autoconf 2.13.
98450
98451 2000-01-08  Jim Meyering  <meyering@ascend.com>
98452
98453         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98454         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98455
98456 2000-01-04  Jim Meyering  <meyering@ascend.com>
98457
98458         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98459         jm_STRUCT_DIRENT_D_TYPE.
98460         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98461         jm_STRUCT_DIRENT_D_INO.
98462         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98463         jm_STRUCT_UTIMBUF.
98464         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98465         renamings.
98466         * m4/utime.m4: Likewise.
98467
98468         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98469         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98470
98471 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98472
98473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98474         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98475
98476 2000-01-02  Jim Meyering  <meyering@ascend.com>
98477
98478         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98479         remember if this is necessary.
98480
98481 1999-12-26  Jim Meyering  <meyering@ascend.com>
98482
98483         * m4/jm-macros.m4: Use it here.
98484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98485
98486 1999-12-23  Jim Meyering  <meyering@ascend.com>
98487
98488         * m4/jm-macros.m4: Check for clock_gettime (moved from
98489         fileutils/configure.in)
98490         Check for gettimeofday.
98491
98492 1999-12-20  Jim Meyering  <meyering@ascend.com>
98493
98494         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98495         autoconf-2.14a-1999-12-20.
98496
98497 1999-12-19  Jim Meyering  <meyering@ascend.com>
98498
98499         * m4/lstat-slash.m4: New file.
98500         * m4/jm-macros.m4: Use the new macro:
98501         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98502
98503 1999-12-07  Jim Meyering  <meyering@ascend.com>
98504
98505         * m4/perl.m4: Require that File::Compare be available, too.
98506         Too many systems seem to lack it.
98507
98508         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98509         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98510
98511 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98512
98513         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98514         problem with the QNX 4.25 shell, which doesn't propagate exit
98515         status of failed commands inside shell assignments.
98516
98517 1999-11-17  Jim Meyering  <meyering@ascend.com>
98518
98519         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98520
98521 1999-11-07  Jim Meyering  <meyering@ascend.com>
98522
98523         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98524
98525 1999-11-06  Jim Meyering  <meyering@ascend.com>
98526
98527         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98528         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98529
98530 1999-11-05  Jim Meyering  <meyering@ascend.com>
98531
98532         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98533         configure.in of textutils, fileutils, and sh-utils into this one
98534         (shared between those packages) file.
98535         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98536         AC_STRUCT_ST_BLKSIZE.
98537
98538 1999-11-03  Jim Meyering  <meyering@ascend.com>
98539
98540         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98541         of AC_CHECK_TYPE checks includes unistd.h.
98542         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98543         Suggestion from Akim Demaille.
98544
98545 1999-10-30  Jim Meyering  <meyering@ascend.com>
98546
98547         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98548         m4-quoted string.
98549         * m4/ls-mntd-fs.m4: Likewise.
98550         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98551         * m4/jm-winsz1.m4: Likewise.
98552
98553         * m4/const.m4: Remove file, since the fix made it into the experimental
98554         version of autoconf.
98555         * m4/mktime.m4: Likewise.
98556
98557         * m4/check-type.m4: Remove file, now that the latest version of
98558         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98559
98560         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98561         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98562         AC_CHECK_TYPE.
98563
98564 1999-10-04  Jim Meyering  <meyering@ascend.com>
98565
98566         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98567
98568 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98569
98570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98571         2.95.1 bug with HP-UX 10.20.
98572
98573 1999-09-17  Jim Meyering  <meyering@ascend.com>
98574
98575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98576         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98577         due to missing strdup (against sh-utils-2.0).
98578
98579 1999-08-29  Jim Meyering  <meyering@ascend.com>
98580
98581         * m4/jm-macros.m4: Require jm_BISON.
98582         * m4/bison.m4: New file.
98583
98584 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98585
98586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98587         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98588
98589 1999-08-05  Jim Meyering  <meyering@ascend.com>
98590
98591         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98592         to avoid conflicts with `conftest' on 8+3 filesystems.
98593         Suggestion from Eli Zaretskii.
98594
98595 1999-08-04  Jim Meyering  <meyering@ascend.com>
98596
98597         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98598         fileutils and sh-utils (textutils's getline test was inadequate).
98599         (AM_FUNC_GETLINE): Run this test.
98600         (AC_CHECK_FUNCS): Check for getdelim.
98601         Reported by Bob Proulx.
98602
98603 1999-08-02  Jim Meyering  <meyering@ascend.com>
98604
98605         * m4/jm-macros.m4: Add a comment.
98606
98607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98608
98609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98610         <inttypes.h> defines strtoumax as a macro (and not as a
98611         function).
98612
98613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98614
98615         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98616         that we can shift, multiply and divide unsigned long long
98617         values; Ultrix cc can't do it.
98618
98619 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98620
98621         * m4/mktime.m4: New file, which is a preview of what should appear
98622         in the next public autoconf release.
98623
98624 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98625
98626         * m4/lfs.m4: Remove this file.
98627         * m4/largefile.m4: New file.  It contains the old contents of
98628         lfs.m4, except that all names with prefix AC_LFS have been
98629         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98630         compatible with future autoconf versions.  Also, some minor m4
98631         quoting problems have been fixed.
98632
98633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98634
98635         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98636         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98637         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98638         and simplify the shell code.
98639
98640 1999-08-01  Jim Meyering  <meyering@ascend.com>
98641
98642         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98643         m4.
98644
98645 1999-07-20  Jim Meyering  <meyering@ascend.com>
98646
98647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98648
98649 1999-07-15  Jim Meyering  <meyering@ascend.com>
98650
98651         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98652
98653 1999-05-22  Jim Meyering  <meyering@ascend.com>
98654
98655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98656
98657 1999-05-20  Jim Meyering  <meyering@ascend.com>
98658
98659         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98660         Add a colon after each `then' in case $4 is empty.
98661
98662 1999-05-16  Jim Meyering  <meyering@ascend.com>
98663
98664         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98665
98666 1999-05-10  Jim Meyering  <meyering@ascend.com>
98667
98668         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98669
98670         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98671         AC_FUNC_MKTIME.
98672
98673 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98674
98675         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98676
98677 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98678
98679         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98680         not CPPFLAGS, so that linking works correctly in IRIX.
98681
98682 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98683
98684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98685
98686 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98687
98688         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98689         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98691         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98692         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98693
98694         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98695
98696 1999-04-20  Jim Meyering  <meyering@ascend.com>
98697
98698         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98699         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98700         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98701
98702 1999-04-18  Jim Meyering  <meyering@ascend.com>
98703
98704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98705         * m4/jm-macros.m4: Use it.
98706
98707 1999-04-06  Jim Meyering  <meyering@ascend.com>
98708
98709         * m4/strftime.m4: Remove test for %f.
98710
98711 1999-03-29  Jim Meyering  <meyering@ascend.com>
98712
98713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98714         superset of the AC_TYPE_* checks in the textutils, fileutils,
98715         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98716         AC_TYPE_PID_T.
98717
98718 1999-03-28  Jim Meyering  <meyering@ascend.com>
98719
98720         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98721         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98722         replaced e.g., in the *.sh files of the sh-utils.
98723
98724 1999-03-20  Jim Meyering  <meyering@ascend.com>
98725
98726         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98727         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98728         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98729
98730 1999-03-19  Jim Meyering  <meyering@ascend.com>
98731
98732         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98733
98734 1999-03-12  Jim Meyering  <meyering@ascend.com>
98735
98736         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98737
98738 1999-03-07  Jim Meyering  <meyering@ascend.com>
98739
98740         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98741         declared.
98742
98743 1999-02-17  Jim Meyering  <meyering@ascend.com>
98744
98745         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98746         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98747
98748 1999-02-07  Jim Meyering  <meyering@ascend.com>
98749
98750         * m4/group-member.m4: New file -- extracted from sh-utils'
98751         configure.in.
98752
98753         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98754         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98755
98756 1999-02-06  Jim Meyering  <meyering@ascend.com>
98757
98758         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98759         * m4/fnmatch.m4: Likewise.
98760         * m4/getgroups.m4: Likewise.
98761         * m4/lstat.m4: Likewise.
98762         * m4/malloc.m4: Likewise.
98763         * m4/putenv.m4: Likewise.
98764         * m4/realloc.m4: Likewise.
98765         * m4/regex.m4: Likewise.
98766         * m4/stat.m4: Likewise.
98767         * m4/strftime.m4: Likewise.
98768         Suggestion from Alain Magloire.
98769
98770         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98771         * m4/fnmatch.m4: Likewise.
98772         * m4/getgroups.m4: Likewise.
98773         * m4/getline.m4: Likewise.
98774         * m4/lstat.m4: Likewise.
98775         * m4/malloc.m4: Likewise.
98776         * m4/memcmp.m4: Likewise.
98777         * m4/putenv.m4: Likewise.
98778         * m4/realloc.m4: Likewise.
98779         * m4/regex.m4: Likewise.
98780         * m4/stat.m4: Likewise.
98781         * m4/strftime.m4: Likewise.
98782         Suggestion from Alain Magloire.
98783
98784         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98785         an argument.
98786
98787         * m4/regex.m4: Add a run-time Test for proper operation of
98788         re_compile_pattern.
98789
98790 1999-01-31  Jim Meyering  <meyering@ascend.com>
98791
98792         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98793
98794 1999-01-30  Jim Meyering  <meyering@ascend.com>
98795
98796         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98797
98798         * m4/jm-mktime.m4: Make this a wrapper around the official
98799         AM_FUNC_MKTIME rather than my private copy, now that the official one
98800         is up to date.
98801         * m4/mktime.m4: Remove file.
98802
98803         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98804         * m4/uptime.m4: Likewise.
98805         * m4/uintmax_t.m4: Likewise.
98806
98807 1999-01-28  Jim Meyering  <meyering@ascend.com>
98808
98809         * m4/jm-macros.m4: Use jm_AFS.
98810         * m4/afs.m4: New file (from fileutils' configure.in).
98811
98812         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98813         * m4/chown.m4: Likewise.
98814         * m4/d-ino.m4: Likewise.
98815         * m4/d-type.m4: Likewise.
98816         * m4/fnmatch.m4: Likewise.
98817         * m4/getgroups.m4: Likewise.
98818         * m4/gettext.m4: Likewise.
98819         * m4/jm-mktime.m4: Likewise.
98820         * m4/jm-winsz2.m4: Likewise.
98821         * m4/lcmessage.m4: Likewise.
98822         * m4/ls-mntd-fs.m4: Likewise.
98823         * m4/malloc.m4: Likewise.
98824         * m4/memcmp.m4: Likewise.
98825         * m4/putenv.m4: Likewise.
98826         * m4/realloc.m4: Likewise.
98827         * m4/st_mtim.m4: Likewise.
98828         * m4/strftime.m4: Likewise.
98829
98830 1999-01-16  Jim Meyering  <meyering@ascend.com>
98831
98832         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98833         (ARGMATCH_DIE_DECL): Define.
98834
98835 1999-01-12  Jim Meyering  <meyering@ascend.com>
98836
98837         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98838         Reported by Lars Hecking.
98839
98840 1999-01-10  Jim Meyering  <meyering@ascend.com>
98841
98842         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98843         gross kludge.
98844         * m4/inttypes_h.m4: Likewise.
98845         * m4/lstat.m4: Likewise.
98846         * m4/malloc.m4: Likewise.
98847         * m4/readdir.m4: Likewise.
98848         * m4/realloc.m4: Likewise.
98849         * m4/st_dm_mode.m4: Likewise.
98850         * m4/stat.m4: Likewise.
98851         * m4/utimbuf.m4: Likewise.
98852         * m4/utimes.m4: Likewise.
98853
98854         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98855         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98856         comments in config.h.in are meaningful.
98857
98858         * m4/jm-macros.m4: Require autoconf-2.13 here.
98859
98860         * m4/regex.m4: By default, don't use the included regex.c on systems
98861         with glibc 2.  Suggestion from Uli Drepper.
98862
98863 1999-01-02  Jim Meyering  <meyering@ascend.com>
98864
98865         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98866
98867 1998-12-18  Jim Meyering  <meyering@ascend.com>
98868
98869         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98870         Based on a suggestion from Lars Hecking.
98871
98872 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98873
98874         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98875
98876 1998-11-16  Jim Meyering  <meyering@ascend.com>
98877
98878         * m4/lfs.m4: Double-quote the `uname...` expression.
98879
98880 1998-11-14  Jim Meyering  <meyering@ascend.com>
98881
98882         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98883         * m4/stat.m4: Likewise.
98884
98885 1998-11-03  Jim Meyering  <meyering@ascend.com>
98886
98887         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98888         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98889
98890 1998-10-18  Jim Meyering  <meyering@ascend.com>
98891
98892         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98893
98894 1998-10-17  Jim Meyering  <meyering@ascend.com>
98895
98896         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98897         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98898         calls for those previously hard-coded headers.  Instead, take a new
98899         parameter.
98900         (jm_CHECK_DECLARATIONS): Reflect interface change.
98901         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98902         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98903
98904         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98905
98906 1998-10-14  Jim Meyering  <meyering@ascend.com>
98907
98908         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98909         instead of "TZ=America/Vancouver".  From Paul Eggert.
98910
98911 1998-10-11  Jim Meyering  <meyering@ascend.com>
98912
98913         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98914         This adds a test for a recently added compatibility fix for mktime.c.
98915         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98916
98917 1998-09-27  Jim Meyering  <meyering@ascend.com>
98918
98919         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98920
98921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98922         ../configure.in, including a change from Gordon Matzigkeit to allow
98923         cross-compiling for the Hurd.
98924
98925         * m4/glibc.m4: New file/macro to test for the GNU C Library
98926         versions 1 and 2.  From Gordon Matzigkeit.
98927         Indent.
98928
98929 1998-09-21  Jim Meyering  <meyering@ascend.com>
98930
98931         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98932
98933 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98934
98935         Port nanosecond-resolution times to UnixWare 2.1.2 and
98936         pedantic Solaris 2.6.
98937
98938         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98939         AC_STRUCT_ST_MTIM.
98940         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98941         Generate name of ns member, instead of just 1 or undef.
98942         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98943
98944 1998-08-15  Jim Meyering  <meyering@ascend.com>
98945
98946         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98947         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98948         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98949         instead of jm_TYPE_SSIZE_T.
98950
98951 1998-08-12  Jim Meyering  <meyering@ascend.com>
98952
98953         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98954
98955 1998-08-02  Jim Meyering  <meyering@ascend.com>
98956
98957         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98958         in acconfig.h manually.
98959
98960 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98961
98962         * m4/st_mtim.m4: New file.
98963
98964 1998-07-28  Jim Meyering  <meyering@ascend.com>
98965
98966         * m4/utimes.m4: Undef stat.
98967
98968 1998-07-25  Jim Meyering  <meyering@ascend.com>
98969
98970         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98971         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98972
98973 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98974
98975         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98976         uid and gid actually remain unchanged.
98977
98978 1998-07-07  Jim Meyering  <meyering@ascend.com>
98979
98980         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98981
98982 1998-07-04  Jim Meyering  <meyering@ascend.com>
98983
98984         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98985         to prove that this macro can be used in packages without regex.c.
98986
98987 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98988
98989         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98990         is to be used.
98991
98992 1998-07-03  Jim Meyering  <meyering@ascend.com>
98993
98994         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98995
98996         * m4/gettext.m4: New file -- from gettext-0.10.35.
98997         * m4/lcmessage.m4: Likewise.
98998         * m4/progtest.m4: Likewise.
98999
99000         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99001         * m4/jm-macros.m4: Require the new macro.
99002
99003 1998-06-29  Jim Meyering  <meyering@ascend.com>
99004
99005         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99006         for the definition of NGROUPS (used in a system header included
99007         by sys/mount.h).
99008
99009 1998-06-28  Jim Meyering  <meyering@ascend.com>
99010
99011         * m4/ls-mntd-fs.m4: New file.
99012         * m4/fstypename.m4: New file.
99013
99014         * m4/jm-macros.m4: Require the new macro.
99015         * m4/jm-glibc-io.m4: New file.
99016
99017 1998-05-19  Jim Meyering  <meyering@ascend.com>
99018
99019         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99020         * m4/lchown.m4: New file.
99021
99022         * m4/Makefile.am.in: New file.
99023         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99024
99025 1998-05-14  Jim Meyering  <meyering@ascend.com>
99026
99027         * m4/Makefile.am (EXTRA_DIST): Add them.
99028         * m4/jm-macros.m4: New file.
99029         * m4/utimbuf.m4: New file.
99030
99031 1998-05-12  Jim Meyering  <meyering@ascend.com>
99032
99033         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99034
99035 1998-05-11  Jim Meyering  <meyering@ascend.com>
99036
99037         * m4/isc-posix.m4: New file.
99038
99039 1998-05-10  Jim Meyering  <meyering@ascend.com>
99040
99041         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99042
99043 1998-05-09  Jim Meyering  <meyering@ascend.com>
99044
99045         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99046         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99047         with automake.
99048
99049         * m4/ssize_t.m4: New file.
99050         * m4/mktime.m4: Remove file -- the new automake has this now.
99051
99052 1998-04-26  Jim Meyering  <meyering@ascend.com>
99053
99054         * m4/assert.m4: New file.
99055         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99056
99057 1998-04-05  Jim Meyering  <meyering@ascend.com>
99058
99059         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99060         (jm_PREREQ): Use it here.
99061
99062 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99063
99064         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99065         in acconfig.h.
99066
99067 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99068
99069         * m4/prereq.m4: New file.
99070         * m4/error.m4: New file.
99071         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99072
99073 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99074
99075         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99076         cache-check for the same variable -- that defeated the purpose of
99077         the test; the test program was never run.  This was a problem only
99078         on systems with losing getline functions -- HP-UX 10.20 is one.
99079         Reported by Bjorn Helgaas.
99080
99081 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99082
99083         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99084
99085 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99086
99087         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99088
99089         * m4/const.m4: New file.  Use an initializer in this declaration
99090         typedef int charset[2]; const charset x;
99091         Reported by Bob Glickstein.
99092
99093 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99094
99095         * m4/chown.m4: Fix reversed types on -1 args to chown.
99096         From Kaveh Ghazi.
99097
99098 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99099
99100         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99101         Add lseek and memchr.
99102
99103         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99104         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99105         have a 20-character limit on names.
99106
99107 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99108
99109         * m4/inttypes_h.m4: New file.
99110         * m4/uintmax_t.m4: New file.
99111         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99112
99113
99114         -----
99115
99116         Local Variables:
99117         coding: utf-8
99118         End:
99119
99120         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99121
99122         Copying and distribution of this file, with or without
99123         modification, are permitted provided the copyright notice
99124         and this notice are preserved.