readlinkat: don't depend on gl_FUNC_OPENAT
[gnulib.git] / ChangeLog
1 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2
3         readlinkat: don't depend on gl_FUNC_OPENAT
4         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
5         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
6         renameat.m4, symlinkat.m4; but one thing at a time.
7
8         statat: new module, split out from fstatat
9         GNU Emacs needs the POSIX-specified fstatat, but not the
10         gnulib-specified statat and lstat.  Split the latter two into a
11         new module 'statat'.
12         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
13         * lib/openat.h, lib/statat.c (STATAT_INLINE):
14         Rename from FSTATAT_INLINE. All uses changed.
15         * modules/fstatat (Files): Remove lib/statat.c.
16         (gl_MODULE_INDICATOR([fstatat])): Remove.
17         (lib_SOURCES): Remove.
18         (Maintainer): Add self.
19         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
20         * tests/test-fstatat.c (BASE): Don't define if already defined.
21         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
22
23 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24
25         tests: don't assume fd 99 is closed
26         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
27         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
28         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
29         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
30         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
33         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
34         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36         * tests/test-fwrite.c, tests/test-getpeername.c:
37         * tests/test-getsockname.c, tests/test-getsockopt.c:
38         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
39         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
40         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
41         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
42         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
43         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
44         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
45         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
46         * tests/test-unlinkat.c, tests/test-unlockpt.c:
47         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
48         Close file descriptor 99, instead of assuming it's already closed.
49
50 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51
52         stpncpy: port to OS X 10.8
53         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
54         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
55
56 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57
58         unistd: port to recent mingw
59         * lib/unistd.in.h: Remove special invocation convention for mingw,
60         which breaks for the latest mingw version.  See John W. Eaton in
61         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
62
63         largefile: port better to Mac OS X 10.5
64         This patch is backported from Autoconf git.
65         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
66         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
67         with ino_t size being different for configuration time versus
68         build/run time.  Problem reported by PHO in
69         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
70
71 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
72
73         doc: clarify -Werror
74         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
75         clarify that it's intended for developers, not for ordinary builds,
76         and mention --enable-gcc-warnings as one possible use.
77
78 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
79
80         stdint: fix build with Android's Bionic fox x86
81         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
82         was already included as _SSIZE_T_DEFINED_ might also be defined
83         in include/machine/_types.h, which is included by stdio.h
84
85 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
86
87         net_if-tests: port to Solaris 7 + GCC 3.4.6
88         Problem reported by Tom G. Christensen in
89         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
90         * tests/test-net_if.c (ni): Move to next the code that uses it,
91         so that it's declared only if needed.
92
93 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
94
95         net_if-tests: port to older Solaris
96         Problem reported by Tom G. Christensen in
97         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
98         * modules/net_if-tests (NET_IF_LIB): New substitution.
99         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
100         (HAVE_IF_NAMEINDEX): New C macro.
101         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
102
103         system-quote-tests: port to older Solaris
104         Problem reported by Tom G. Christensen in
105         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
106         * tests/test-system-quote-child.c (fopen, fread): Undef.
107
108         c-xvasprintf etc.: fix link errors on older Solaris
109         These need to link with @LIBINTL@ to get libintl_gettext.
110         Problem reported by Tom G. Christensen in
111         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
112         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
113         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
114         * modules/futimens-tests (test_futimens_LDADD):
115         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
116
117 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118
119         locale: port to Solaris 2.6 and 7 + GNU gettext
120         * lib/locale.in.h: Just include_next <locale.h> when
121         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
122         when combining the localename module with GNU gettext 0.18.2.
123         Problem reported by Tom G. Christensen in
124         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
125
126 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
127
128         stdlib: port to Solaris 2.6
129         Also, the code worked on Solaris 7 through 9 only by accident.
130         Problem reported by Tom G. Christensen in
131         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
132         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
133         simply include the system stdlib.h.
134         * lib/getopt.in.h (__need_system_stdlib_h):
135         * lib/pthread.in.h (__need_system_stdlib_h):
136         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
137         Define when including <stdlib.h>, to avoid problems at least for
138         the pthread case on Solaris 2.6 and 7.  These .h files can get by
139         with the system stdlib.h.
140
141 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
142
143         doc: update main copyright year
144         * doc/gnulib.texi: Update copyright date.
145
146         doc: improve ISO 8601 discussion
147         * doc/parse-datetime.texi (Combined date and time of day items):
148         Specify more carefully what formats are supported and what is
149         done with excess precision.
150
151 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
152
153         doc: avoid small caps
154         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
155         they're more trouble than they're worth.  Suggested by Karl Berry
156         in <http://bugs.gnu.org/13360>.
157
158         regex: conform to strict C
159         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
160         From Aharon Robbins.
161
162         gnulib-tool: fix incompatibility with autopoint 0.18.2
163         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
164         Problem reported by Tom G. Christensen in
165         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
166
167 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
168
169         fprintftime: bring back and reword fwrite comment
170         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
171
172         stdio: remove now-unnecessary stdio.c
173         Since stdio.in.h no longer uses inline functions, we no longer
174         need to compile the extern versions.
175         * lib/stdio.c: Remove.
176         * modules/stdio (Files): Remove lib/stdio.c.
177         (lib_SOURCES): Remove.
178
179         unicodeio: depend on stdio, not ignore-value
180         * lib/unicodeio.c: Do not include ignore-value.h.
181         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
182         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
183
184         fprintftime: depend on stdio, not ignore-value
185         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
186         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
187         since the stdio module arranges to silence that warning now.
188         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
189
190 2012-10-04  Simon Josefsson  <simon@josefsson.org>
191
192         stdint-tests: Fix expanded-before-required-warning.
193         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
194
195 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
196
197         fwrite: silence __wur only for older glibc versions
198         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
199         This will help us remove this workaround some time in the far future.
200
201 2013-01-03  Eric Blake  <eblake@redhat.com>
202
203         fwrite: silence __wur without using inline
204         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
205         just gcc, and in a way that avoids inline issues.
206         * modules/stdio (Depends-on): Drop extern-inline.
207
208 2013-01-03  Jim Meyering  <jim@meyering.net>
209
210         update-copyright: avoid copyright notice date corruption
211         Given a sequence of copyright year numbers in which the final
212         one was a two-digit number that happened to be a substring of
213         a preceding four-digit year number, we would mistakenly update
214         the substring (from two- to four-digit) rather than the two-digit
215         number at the end, which, combined with the addition of the current
216         4-digit year number would yield two 5-digit year numbers, e.g.,
217         here, it would convert the first "99" to "1999, 2013" rather than
218         the final one:
219           1991, 99
220           11999, 20131, 1999
221         * build-aux/update-copyright: Tighten a regexp.
222         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
223         Reported by Joseph Myers in
224         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
225
226 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
227
228         regex: omit needless signed-pointer casts
229         * lib/regcomp.c (build_charclass, build_charclass_op):
230         Use char *, not unsigned char *, for class name and extra.
231         The char values are always nonnegative so there's no need to
232         insist on unsigned char * here, and using char * removes the need
233         for casts.  Reported by Aharon Robbins in
234         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
235
236         regex: support Gawk, which never uses alloca
237         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
238         Do not include in this case.  Gawk doesn't supply a substitute
239         alloca.h and doesn't need one.
240
241         regex: port __libc_lock_define usage to C89
242         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
243         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
244         does not conform to C89, as it has an empty macro argument.
245         Reported by Aharon Robbins in
246         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
247
248 2013-01-01  Eric Blake  <eblake@redhat.com>
249
250         maint: update all copyright year number ranges
251         Run "make update-copyright".
252
253         version-etc: bump copyright year reported in --version
254         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
255
256 2012-12-31  Eric Blake  <eblake@redhat.com>
257
258         sigprocmask-tests: skip test if pid is unexpectedly large
259         * tests/test-sigprocmask.c (main): Add range check.
260
261         git-version-gen: avoid test -z portability glitch
262         * build-aux/git-version-gen: Prefer portable test spelling, since
263         git-version-gen is run on more than just developer machines.
264
265 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
266
267         git-version-gen: add --fallback option to use if git is not present
268         * build-aux/git-version-gen: Add support for the new option --fallback,
269         which comes into play when there is no $tarball_version_file and
270         git is not working.
271         (scriptversion): Update.
272
273         maint.mk: handle missing git with more grace
274         * top/maint.mk (no-submodule-changes, public-submodule-commit):
275         Quietly proceed if git is not present.
276
277 2012-12-31  Eric Blake  <eblake@redhat.com>
278
279         dup2: work around cygwin bug
280         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
281         * lib/dup2.c (rpl_dup2): Work around it.
282         * doc/posix-functions/dup2.texi (dup2): Document it.
283
284 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
285
286         regex: remove unnecessary dependency on localcharset.h
287         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
288         hasn't been needed for years.
289         * modules/regex (Depends-on): Remove localcharset.
290
291         regex: revert single-byte change
292         * lib/regexec.c (check_node_accept_bytes): Revert previous change
293         to this function.  This was alredy fixed in a different way, at
294         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
295         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
296         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
297
298         regex: simplify based on Gawk version
299         * lib/regex_internal.c (re_dfa_add_node): Simplify.
300         Reported by Aharon Robbins in
301         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
302
303 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
304
305         regex: check that pattern char is single-byte
306         Reported by Aharon Robbins in
307         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
308         * lib/regexec.c (check_node_accept_bytes):
309         Return 0 if the pattern string has a multibyte character here.
310
311         regex: implement rational ranges
312         Reported by Aharon Robbins in
313         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
314         * lib/regcomp.c (build_range_exp) [!_LIBC]:
315         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
316         Implement rational ranges.
317
318         regex: avoid redefining __wctype
319         Reported by Aharon Robbins in
320         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
321         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
322         #undef before defining.
323
324         regex: port to hosts where malloc (0) == NULL
325         Reported by Aharon Robbins in
326         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
327         * lib/regex_internal.c (re_node_set_alloc):
328         Don't assume that malloc (0) yields nonnull.
329         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
330         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
331         * modules/regex (Files): Add m4/eealloc.m4.
332
333         regex: port to C89
334         Reported by Aharon Robbins in
335         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
336         * lib/regcomp.c (init_word_char): Declaration before statement.
337
338         regex: merge glibc changes
339         Also, copy the license wording from glibc.  This simplifies
340         merging changes.  gnulib-tool will change the wording to GPL as
341         appropriate, when importing it to other packages.  The only
342         glibc change made since the last merge, which needs merging, is:
343         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
344         * lib/regex_internal.h (gettext): Remove use of INTUSE.
345
346         * users.txt: Add Emacs.
347
348         doc: omit mention of version when not needed
349         * doc/gnulib-intro.texi (Portability and Application Code):
350         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
351         Don't mention particular dates or versions when not necessary, so
352         that the documentation won't go out of date so quickly.
353
354         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
355
356 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
357
358         bootstrap: pass --force to autoreconf.
359         * build-aux/bootstrap (AUTORECONFFLAGS): New.
360         Add "--force" so that Automake's ylwrap and other such tools
361         be updated at each bootstrap invocation.
362         Use it.
363
364 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
365
366         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
367         The earlier patch forgot to update one of the #if conditions, causing
368         a problem on Debian testing i386 reported by Mats Erik Andersson
369         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
370         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
371         (__argp_fmtstream_puts, argp_fmtstream_puts)
372         (__argp_fmtstream_write, argp_fmtstream_write)
373         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
374
375         * doc/gnulib-readme.texi: Minor fixups.
376         (Portability guidelines): Modernize URLs.  Remove some repetition.
377         (Indent with spaces not TABs): Reword to avoid too-long lines.
378         Remove some '@ifset standalone' stuff that isn't used.
379
380         * doc/gnulib-readme.texi (Portability guidelines):
381         ctype.h, not ctime.h.
382
383         Correct name of POSIX.1-2001.
384         * doc/posix-functions/fgetc.texi (fgetc):
385         * doc/posix-functions/fgets.texi (fgets):
386         * doc/posix-functions/fread.texi (fread):
387         * doc/posix-functions/fscanf.texi (fscanf):
388         * doc/posix-functions/getc.texi (getc):
389         * doc/posix-functions/getchar.texi (getchar):
390         * doc/posix-functions/scanf.texi (scanf):
391         POSIX.1-2001, not POSIX-2001.
392
393         doc: move README into manual
394         * README: Move contents to new file doc/gnulib-readme.texi.
395         Replace with a one-line summary.
396         * doc/gnulib.texi (Brief Overview): New section,
397         with old intro preface.  Include gnulib-readme.texi for contents.
398         (Philosophy): Rename from "Introduction", since this
399         section no longer introduces the rest.  Write a new preface.
400         * doc/gnulib-readme.texi: New file, with the old contents of
401         README texinfo-ized.  This way, the README info appears
402         in the online and printed manual.
403
404 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
405
406         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
407         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
408         c_vasprintf() prototype.
409
410 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
411
412         c-vasprintf: Fix "empty declaration" warning reported by GCC.
413         * lib/c-vasprintf.h: Remove stray semicolon.
414
415 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
416
417         gettext: avoid obsolete macro AM_PROG_MKDIR_P
418         It is obsolete and is planned to be removed from Automake 1.14; see
419         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
420         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
421         (installdirs-data, installdirs-data-yes):
422         Use $(MKDIR_P), not $(mkdir_p).
423         * m4/intl.m4 (AM_INTL_SUBDIR):
424         * m4/po.m4 (AM_PO_SUBDIRS):
425         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
426
427 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
428
429         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
430         On this platform, we are not optimizing but we are using
431         the substitute for extern inlines, so compile as if
432         C99-style extern inline, or a substitute, is available.
433         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
434         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
435         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
436         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
437         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
438         Declare as ARGP_FS_EI, not as extern.
439         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
440         (__option_is_short, _option_is_end, __option_is_end)
441         [!_LIBC && __USE_EXTERN_INLINES]:
442         Declare as ARGP_EI, not as extern.
443
444 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
445
446         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
447         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
448         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
449         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
450         ...), as the latter is fatal with older Autoconfs.
451         Problem reported and fix suggested by Eric Blake in thread starting at
452         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
453
454 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
455
456         AC_PROG_MKDIR_P: don't workaround if not buggy
457         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
458         Define only for Autoconf versions before 2.62.
459         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
460         undocumented m4_PACKAGE_VERSION, for consistency with the
461         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
462         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
463         was introduced in 2.62.
464
465 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
466
467         New 'c-*printf' modules for formatted output in C locale.
468
469         New module 'c-vasnprintf'.
470         * modules/c-vasnprintf: New file.
471         * lib/c-vasnprintf.c: New file.
472         * lib/c-vasnprintf.h: New file.
473
474         New module 'c-snprintf'.
475         * modules/c-snprintf: New file.
476         * modules/c-snprintf-tests: New file.
477         * lib/c-snprintf.c: New file.
478         * lib/c-snprintf.h: New file.
479         * tests/test-c-snprintf.c: New file.
480         * tests/test-c-snprintf.sh: New file.
481
482         New module 'c-vsnprintf'.
483         * modules/c-vsnprintf: New file.
484         * modules/c-vsnprintf-tests: New file.
485         * lib/c-vsnprintf.c: New file.
486         * lib/c-vsnprintf.h: New file.
487         * tests/test-c-vsnprintf.c: New file.
488         * tests/test-c-vsnprintf.sh: New file.
489
490         New module 'c-vasprintf'.
491         * modules/c-vasprintf: New file.
492         * modules/c-vasprintf-tests: New file.
493         * lib/c-asprintf.c: New file.
494         * lib/c-vasprintf.c: New file.
495         * lib/c-vasprintf.h: New file.
496         * tests/test-c-vasprintf.c  +: New file.
497         * tests/test-c-vasprintf.sh: New file.
498
499         New module 'c-xvasprintf'.
500         * modules/c-xvasprintf: New file.
501         * modules/c-xvasprintf-tests: New file.
502         * lib/c-xasprintf.c: New file.
503         * lib/c-xvasprintf.c: New file.
504         * lib/c-xvasprintf.h: New file.
505         * tests/test-c-xvasprintf.c: New file.
506         * tests/test-c-xvasprintf.sh: New file.
507
508 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
509
510         argp: better 'inline'
511         Use extern-inline module to declare extern inline functions.
512         This avoids some bogus warning diagnostics.  Problem discovered
513         when modifying GNU tar to use the manywarnings module.
514         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
515         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
516         Define based on extern-inline.
517         * modules/argp (Depends-on): Add extern-inline.
518
519 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
520
521         filemode, sys_stat: Handle MPX files a la AIX.
522         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
523         * lib/sys_stat.in.h (S_ISMPX): New macro.
524         * tests/test-sys_stat.c: Add tests for MPX files.
525
526 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
527
528         x-to-1: honor $PERL
529         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
530         a chance to use his preferred version of Perl.  This is typically
531         required by Darwin users whose default /usr/bin/perl does not have all
532         the libraries required by help2man, and who need to use their MacPorts
533         installation of Perl instead.
534
535 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
536
537         gnu-web-doc-update: add all the new files, even in new directories
538         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
539         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
540         Use it.
541         (main): Don't use cvsutils to get the list of unknown files,
542         just add all the existing files and directories.
543
544 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
545
546         gnu-web-doc-update: improve --help
547         * build-aux/gnu-web-doc-update: Move comments into --help.
548
549 2012-12-07  Eric Wong  <normalperson@yhbt.net>
550
551         mountlist: recognize more "dummy" file systems
552         * lib/mountlist.c (ME_DUMMY_0):
553         Add these dummy FS names to the list:
554         - "debugfs" virtual filesystem for kernel debugging
555         - "devpts" PTY slave filesystem
556         - "devtmpfs" device filesystem on top of tmpfs/ramfs
557         - "fusectl" control filesystem for FUSE
558         - "mqueue" enumerates POSIX message queues
559         - "rpc_pipefs" kernel <-> userspace bridge for NFS
560         - "sysfs" is for exporting kernel objects
561         - "devfs" device filesystem for Linux 2.4 and FreeBSD
562
563 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
564
565         extern-inline: avoid incompatibility with Darwin Libc
566         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
567         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
568         Problem reported by Akim Demaille in
569         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
570
571 2012-12-11  Simon Josefsson  <simon@josefsson.org>
572
573         gnupload: Work with GnuPG using gpg-agent (for smartcards).
574         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
575         let it handle password prompting.
576
577 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
578
579         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
580         * lib/canonicalize.c (canonicalize_filename_mode):
581         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
582         fetching the current directory.  Don't overrun the beginning of
583         rpath if there's no slashes after the MS-Windows drive letter.
584
585 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
586
587         maint.mk: avoid extra forks
588         * top/maint.mk (_cfg_mk): The GNU make manual documents that
589         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
590         So use that instead of "$(shell test -f FILE && echo FILE)".
591
592 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
593
594         vasnprintf: fix ASCII_ONLY typo
595         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
596         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
597         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
598         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
599         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
600
601 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
602
603         list, oset, xlist, xoset: fix extern inline issue with C99
604         This was introduced by my recent changes for 'inline'.
605         Problem reported for gettext by Daiki Ueno in
606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
607         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
608         (gl_list_nx_create, gl_list_size, gl_list_node_value)
609         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
610         (gl_list_previous_node, gl_list_get_at)
611         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
612         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
613         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
614         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
615         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
616         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
617         (gl_list_iterator_free, gl_sortedlist_search)
618         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
619         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
620         (gl_sortedlist_remove):
621         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
622         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
623         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
624         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
625         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
626         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
627         (gl_list_add_at, gl_sortedlist_add):
628         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
629         Wrap these extern decls inside "#if 0", because they are implemented
630         as inline functions, and extern inline is not what's wanted here.
631         It would simplify these .h files to remove the extern decls entirely,
632         although a downside would be less-clear separation between
633         specification and implementation.
634
635 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
636
637         sys_stat: no 'static inline'
638         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
639         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
640
641         extern-inline: no 'static inline'
642         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
643         Do not require AC_C_INLINE.
644         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
645         'static inline', for older compilers.
646
647         snippet/warn-on-use: no 'static inline'
648         * build-aux/snippet/warn-on-use.h:
649         Remove unnecessary 'inline' in comment.
650
651         rbtree-list, rbtreehash-list: no 'static inline'
652         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
653         * lib/gl_anytree_list2.h (node_at):
654         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
655         (gl_oset_first, add_nodes_to_buckets):
656         Now static, not static inline.
657
658         regex: no 'static inline'
659         * lib/regex_internal.c (calc_state_hash):
660         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
661         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
662         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
663         Now static, not static inline.
664         (inline) [__GNUC__ < 3 && _LIBC]:
665         Remove macro; no longer needed.
666
667         xvasprintf: no 'static inline'
668         * lib/xvasprintf.c (xstrcat):
669         Now static, not static inline.
670         * m4/xvasprintf.m4 (gl_XVASPRINTF):
671         Do not require AC_C_INLINE.
672
673         parse-datetime, parse-duration: no 'static inline'
674         * lib/parse-datetime.y (to_uchar):
675         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
676         (scale_n_add):
677         Now static, not static inline.
678         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
679         * modules/parse-duration (configure.ac):
680         Do not require AC_C_INLINE.
681
682         getaddrinfo: no 'static inline'
683         * lib/getaddrinfo.c (validate_family):
684         Now static, not static inline.
685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
686         Do not require AC_C_INLINE.
687
688         ftruncate, fts, lstat, openat, raise: no 'static inline'
689         * lib/ftruncate.c (chsize_nothrow):
690         * lib/fts.c (opendirat, diropen):
691         * lib/lstat.c (orig_lstat):
692         * lib/openat.c (orig_openat):
693         * lib/raise.c (raise_nothrow):
694         Now static, not static inline.
695         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
696         * m4/fts.m4 (gl_FUNC_FTS_CORE):
697         * m4/lstat.m4 (gl_PREREQ_LSTAT):
698         * m4/openat.m4 (gl_PREREQ_OPENAT):
699         * m4/raise.m4 (gl_PREREQ_RAISE):
700         Do not require AC_C_INLINE.
701
702         fflush, stat: no 'static inline'
703         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
704         (clear_ungetc_buffer, disable_seek_optimization)
705         (restore_seek_optimization, update_fpos_cache):
706         * lib/stat.c (orig_stat):
707         Now static, not static inline.
708         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
709         (update_fpos_cache):
710         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
711         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
712         * m4/stat.m4 (gl_PREREQ_STAT):
713         Do not require AC_C_INLINE.
714
715         error, filevercmp: no 'static inline'
716         * lib/error.c (is_open, flush_stdout):
717         * lib/filevercmp.c (order):
718         Now static, not static inline.
719         * m4/error.m4 (gl_PREREQ_ERROR):
720         * modules/filevercmp (configure.ac):
721         Do not require AC_C_INLINE.
722
723         dup, execute, fatal-signal, etc.: no 'static inline'
724         * lib/dup.c (dup_nothrow):
725         * lib/execute.c (nonintr_close, nonintr_open):
726         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
727         * lib/fopen.c (orig_fopen):
728         * lib/freadseek.c (freadptrinc):
729         * lib/freopen.c (orig_freopen):
730         * lib/fstat.c (orig_fstat, fstat_nothrow):
731         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
732         (get_rusage_as_via_iterator):
733         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
734         * lib/getdtablesize.c (_setmaxstdio_nothrow):
735         * lib/isatty.c (_isatty_nothrow):
736         * lib/open.c (orig_open):
737         * lib/read.c (read_nothrow):
738         * lib/sigprocmask.c (signal_nothrow):
739         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
740         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
741         * lib/wait-process.c (unregister_slave_subprocess):
742         * lib/write.c (write_nothrow):
743         Now static, not static inline.
744         * lib/spawn-pipe.c (nonintr_open): Define only if
745         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
746         * m4/dup.m4 (gl_PREREQ_DUP):
747         * m4/execute.m4 (gl_EXECUTE):
748         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
749         * m4/fopen.m4 (gl_PREREQ_FOPEN):
750         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
751         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
752         * m4/fstat.m4 (gl_PREREQ_FSTAT):
753         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
754         * m4/isatty.m4 (gl_PREREQ_ISATTY):
755         * m4/open.m4 (gl_PREREQ_OPEN):
756         * m4/read.m4 (gl_PREREQ_READ):
757         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
758         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
760         * m4/wait-process.m4 (gl_WAIT_PROCESS):
761         * m4/write.m4 (gl_PREREQ_WRITE):
762         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
763         Do not require AC_C_INLINE.
764
765         c-strtod, memcoll, readutmp: no 'static inline'
766         * lib/c-strtod.c (c_locale):
767         * lib/memcoll.c (strcoll_loop):
768         * lib/readutmp.c (desirable_utmp_entry):
769         Now static, not static inline.
770         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
771         * m4/memcoll.m4 (gl_MEMCOLL):
772         * m4/readutmp.m4 (gl_READUTMP):
773         Do not require AC_C_INLINE.
774
775         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
776         * lib/arctwo.c (to_uchar):
777         * lib/md4.c (set_uint32):
778         * lib/md5.c (set_uint32):
779         * lib/sha1.c (set_uint32):
780         * lib/sha256.c (set_uint32):
781         * lib/sha512.c (set_uint64):
782         Now static, not static inline.  This is a bit simpler, and doesn't
783         affect performance with GCC and default optimization.
784         * m4/arctwo.m4 (gl_ARCTWO):
785         * m4/md4.m4 (gl_MD4):
786         * m4/md5.m4 (gl_MD5):
787         * m4/sha1.m4 (gl_SHA1):
788         * m4/sha256.m4 (gl_SHA256):
789         * m4/sha512.m4 (gl_SHA512):
790         Do not require AC_C_INLINE.
791
792         cond, lock, thread: better 'inline'
793         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
794         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
795         New macros.  Use them instead of static inline, for header functions.
796         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
797         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
798         * lib/glthread/lock.c (gl_waitqueue_init)
799         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
800         * lib/glthread/thread.c (get_current_thread_handle):
801         Change 'static inline' to 'inline'.
802         * lib/glthread/cond.h, lib/glthread/thread.h:
803         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
804         * m4/cond.m4 (gl_COND):
805         * m4/lock.m4 (gl_PREREQ_LOCK):
806         * m4/thread.m4 (gl_THREAD):
807         Do not require AC_C_INLINE.
808         * modules/cond, modules/thread (Depends-on): Add extern-inline.
809
810         chdir-long, cycle-check, savewd: better 'inline'
811         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
812         (find_non_slash):
813         * lib/cycle-check.c (is_zero_or_power_of_two):
814         * lib/savewd.c (savewd_delegating):
815         Change 'static inline' to 'inline'.
816         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
817         Replace all remaining uses of 'static inline' with it.
818         * lib/savewd.h:
819         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
820         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
821         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
822         * m4/savewd.m4 (gl_SAVEWD):
823         Do not require AC_C_INLINE.
824         * modules/savewd (Depends-on): Add extern-inline.
825
826         base32, base64: no need for 'inline'
827         * lib/base32.c (to_uchar, get_8, decode_8):
828         * lib/base64.c (to_uchar, get_4, decode_4):
829         Change 'static inline' to 'inline'.
830         * m4/base32.m4 (gl_PREREQ_BASE32):
831         * m4/base64.m4 (gl_PREREQ_BASE64):
832         Do not require AC_C_INLINE.
833
834         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
835         * lib/gl_array_oset.c (gl_array_nx_add_at):
836         (gl_array_remove_at):
837         * lib/gl_linkedhash_list.c (hash_resize_after_add)
838         (add_to_bucket, remove_from_bucket):
839         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
840         Change 'static inline' to 'static', as it's simpler to omit
841         'inline' unless there's a significant performance advantage.
842
843         list, oset, xlist, xoset, xsublist: simplify via extern inline
844         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
845         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
846         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
847         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
848         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
849         New macro.  Replace all uses of 'static inline' with it.
850         [HAVE_INLINE]: Implement functions as *_INLINE functions,
851         instead of as macros FOO that are defined to static inline
852         functions FOO_inline.
853         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
854         * lib/gl_xsublist.c:
855         Reimplement from scratch, by defining the corresponding *_INLINE
856         macro and including the corresponding .h file.  This is simpler.
857         * modules/list, modules/oset, modules/xlist, modules/xoset:
858         (Files): Remove m4/gl_list.m4.
859         (configure.ac): Remove gl_LIST.
860         * m4/gl_list.m4: Remove.
861         * modules/list, modules/oset, modules/xlist, modules/xoset:
862         * modules/xsublist:
863         (Depends-on): Depend on extern-inline, not inline.
864
865         xalloc: better 'inline'
866         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
867         New macro.  Replace all uses of 'static inline' with it.
868         (static_inline): Remove.
869         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
870         Let 'extern inline' do the work automatically, instead of doing
871         it by hand.
872         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
873         Remove.  All uses removed.
874         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
875
876         gethrxtime: better 'inline'
877         * lib/xtime.c: New file.
878         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
879         * lib/xtime.h (XTIME_INCLUDE):
880         New macros.  Replace all uses of 'static inline' with them.
881         * lib/gethrxtime.c (gethrxtime): Define only if
882         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
883         this source file is now always compiled, because of the extern inline.
884         * lib/gethrxtime.h, lib/xtime.h:
885         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
886         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
887         if gethrtime works, as they're not needed in that case.
888         (gl_XTIME): Do not require AC_C_INLINE.
889         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
890         compiled now.  Move the check into gl_GETHRXTIME.
891         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
892         (Depends-on): Add extern-inline.
893         (configure.ac): gethrxtime is always compiled now.
894         (lib_SOURCES): Add gethrxtime.c.
895
896         wctype-h: better 'inline'
897         * lib/wctype-h.c: New file.
898         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
899         New macro.  Replace all uses of 'static inline' with it.
900         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
901         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
902         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
903         (Depends-on): Add extern-inline.
904
905         unistd: better 'inline'
906         * lib/unistd.c: New file.
907         * lib/unistd.in.h (_GL_UNISTD_INLINE):
908         New macro.  Replace all uses of 'static inline' with it.
909         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
910         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
911         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
912         (Depends-on): Add extern-inline.
913
914         sys_socket: better 'inline'
915         * lib/sys_socket.c: New file.
916         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
917         New macro.  Replace all uses of 'static inline' with it.
918         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
919         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
920         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
921         (Depends-on): Add extern-inline.
922
923         stdio: better 'inline'
924         * lib/stdio.c: New file.
925         * lib/stdio.in.h (_GL_STDIO_INLINE):
926         New macro.  Replace all uses of 'static inline' with it.
927         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
928         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
929         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
930         (Depends-on): Add extern-inline.
931
932         sigaction: better 'inline'
933         * lib/sig-handler.c: New file.
934         * lib/sig-handler.h (SIG_HANDLER_INLINE):
935         New macro.  Replace all uses of 'static inline' with it.
936         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
937         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
938         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
939         (Depends-on): Add extern-inline.
940
941         selinux-h: better 'inline'
942         * lib/se-context.c, lib/se-selinux.c: New files.
943         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
944         * lib/se-context.in.h (SE_CONTEXT_INLINE):
945         New macro.  Replace all uses of 'static inline' with it.
946         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
947         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
948         New macro.  Replace all uses of 'static inline' with it.
949         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
950         * modules/selinux-h (Files, lib_SOURCES):
951         Add lib/se-context.c, lib/se-selinux.c.
952         (Depends-on): Add extern-inline.
953         (configure.ac): Do not require AC_C_INLINE.
954
955         pthread: better 'inline'
956         * lib/pthread.c: New file.
957         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
958         New macro.  Replace all uses of 'static inline' with it.
959         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
960         * m4/pthread.m4 (gl_PTHREAD_CHECK):
961         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
962         * modules/pthread (Files): Add lib/pthread.c.
963         (Depends-on): Add extern-inline.
964
965         math: better 'inline'
966         * lib/math.c: New file.
967         * lib/math.in.h (_GL_MATH_INLINE):
968         New macro.  Replace all uses of 'static inline' with it.
969         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
970         * m4/math_h.m4 (gl_MATH_H):
971         Do not require AC_C_INLINE.
972         * modules/math (Files, lib_SOURCES):
973         Add lib/math.c.
974         (Depends-on): Add extern-inline.
975
976         count-one-bits: better 'inline'
977         * lib/count-one-bits.c: New file.
978         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
979         New macro.  Replace all uses of 'static inline' with it.
980         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
981         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
982         Do not require AC_C_INLINE.
983         * modules/count-one-bits (Files, lib_SOURCES):
984         Add lib/count-one-bits.c.
985         (Depends-on): Add extern-inline.
986
987         count-leading-zeros: better 'inline'
988         * lib/count-leading-zeros.c: New file.
989         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
990         New macro.  Replace all uses of 'static inline' with it.
991         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
992         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
993         Do not require AC_C_INLINE.
994         * modules/count-leading-zeros (Files, lib_SOURCES):
995         Add lib/count-leading-zeros.c.
996         (Depends-on): Add extern-inline.
997
998         bitrotate: better 'inline'
999         * lib/bitrotate.c: New file.
1000         * lib/bitrotate.h (BITROTATE_INLINE):
1001         New macros.
1002         Replace all uses of 'static inline' with them.
1003         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1004         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1005         (Depends-on): Add extern-inline.
1006         (configure.ac): Do not require AC_C_INLINE.
1007
1008 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1009
1010         maint.mk: avoid gratuitous failure
1011         Reported by Stefano Lattarini in
1012         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1013         * top/maint.mk (public-submodule-commit): Quote more safely.
1014
1015 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1016
1017         canonicalize, canonicalize-lgpl: support MS-Windows file names
1018         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1019         for test cases, which it'd be nice to add at some point.
1020         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1021         * lib/canonicalize.c (canonicalize_filename_mode):
1022         * lib/canonicalize-lgpl.c (__realpath):
1023         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1024         slash is at the beginning of the file name.  Use ISSLASH, instead
1025         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1026         the first character with '/'.  Test for
1027         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1028         with a drive letter.
1029         * lib/canonicalize.c (SLASHES): New macro.
1030         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1031
1032 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1033
1034         fts: introduce FTS_VERBATIM
1035         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1036         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1037         * lib/fts.c (fts_open): Honor it.
1038
1039 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1040
1041         getlogin-tests: allow errno == ENXIO
1042         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1043         with errno == ENXIO (No controlling tty).
1044         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1045         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1046         with errno == ENOENT.  This was reported to happen in various
1047         situations on GNU/Linux.
1048
1049 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1050
1051         getlogin-tests: allow errno == ENOENT
1052         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1053         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1054         when running a test in an Emacs shell buffer.
1055
1056 2012-11-08  Jim Meyering  <jim@meyering.net>
1057
1058         tests/nap.h: avoid warning about unused variable
1059         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1060
1061         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1062         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1063         white space before each of the special-cased file names, to avoid
1064         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1065         in http://bugs.gnu.org/12830.
1066
1067 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1070         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1071         fails with errno == EBADF when fd is opened with O_PATH.
1072         Reported by Jim Meyering in
1073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1074         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1075         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1076
1077 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         test-utimens: speed up by taking shorter naps
1080         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1081         New functions.
1082         (nap): Use them, to do a better job of guessing the delay.
1083         On Fedora 17 with ext4 atop md atop hard disks, this made
1084         test-utimens run 10x faster, because the test napped for
1085         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1086         <http://bugs.gnu.org/12820#11>.
1087
1088 2012-11-07  Jim Meyering  <jim@meyering.net>
1089
1090         mountlist.c: fix a compilation failure
1091         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1092         I introduced while transforming commit v0.0-7683-g613bcb6
1093
1094 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1095
1096         errno: port to LynxOS 178 2.2.2
1097         Problem reported by Joel Brobecker in
1098         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1099         * doc/posix-headers/errno.texi (errno.h): Document this.
1100         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1101         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1102         Supply a string for EILSEQ.
1103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1104
1105 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1106
1107         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1108         Linux kernel 2.6.39 introduced O_PATH (see
1109         <http://lwn.net/Articles/433854/>) and this is a better fallback
1110         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1111         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1112         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1113         * lib/fcntl.in.h (O_ACCMODE):
1114         * tests/test-fcntl-h.c (main):
1115         Do not reject O_ACCMODE merely because it has more than the
1116         minimal number of bits, as POSIX allows extensions here.
1117
1118 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1119
1120         mountlist: do not classify a bind-mounted dir entry as "dummy"
1121         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1122         the "none"-testing clause.
1123         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1124         exception for bind-mounted directories.
1125
1126 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1127
1128         quote: provide a means to escape strings with nul characters
1129         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1130         (quote, quote_n): Rename formal arguments for consistency with
1131         quotearg.
1132
1133 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1134
1135         test-raise: don't assume 199 is an invalid signal
1136         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1137
1138         sh-quote-tests: port to Solaris 9
1139         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1140         Problem reported by Dagobert Michelsen in
1141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1142
1143 2012-10-28  Jim Meyering  <jim@meyering.net>
1144
1145         maint.mk: rename a new configurable variable
1146         * top/maint.mk (_gl_translatable_string_re): Rename from
1147         translation-markers: _gl_ prefix to insulate from user Makefile code,
1148         and the _re suffix to inform that it's a regular expression.
1149
1150 2012-10-26  Eric Blake  <eblake@redhat.com>
1151
1152         maint.mk: let packages tweak sc_po_check pattern
1153         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1154         finding files with other translation markers.
1155
1156 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1157
1158         euidaccess: speed up 'configure' on GNU hosts
1159         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1160         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1161         it's needed only in this case.  Use AC_CHECK_DECLS, not
1162         AC_CHECK_DECLS_ONCE.
1163         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1164         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1165
1166         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1167
1168 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1169
1170         fchmodat, fchownat, fstatat: port to non-inlining compilers
1171         Problem reported for FreeBSD 9 by Jim Meyering in
1172         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1173         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1174         New files, which define FCHMODAT_INLINE etc.
1175         * lib/fchmodat.c (FCHMODAT_INLINE):
1176         * lib/fchownat.c (FCHOWNAT_INLINE):
1177         * lib/fstatat.c (FSTATAT_INLINE):
1178         Remove, as chmodat.c etc. now do this.
1179         * modules/fchmodat (Files): Add lib/chmodat.c.
1180         * modules/fchownat (Files): Add lib/chownat.c.
1181         * modules/fstatat (Files): Add lib/statat.c.
1182
1183 2012-10-15  Jim Meyering  <jim@meyering.net>
1184
1185         fchmodat.c, fchownat.c: compile-impeding typos
1186         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1187         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1188         Introduced in commit v0.0-7636-gd202279.
1189
1190 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         fcntl-h: support GNU flags like O_IGNORE_CTTY
1193         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1194         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1195         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1196         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1197         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1198         Define to 0 if not already defined.
1199         * tests/test-fcntl-h.c: Test these new flags.
1200
1201 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1202
1203         faccessat, etc.: support AT_FDCWD-only use
1204         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1205         this function only if its first argument is AT_FDCWD.
1206         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1207         values other than AT_FDCWD, so it doesn't want all the openat
1208         machinery with fchdir etc.
1209         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1210         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1211         * modules/unlinkat (Files):
1212         Remove lib/openat-priv.h, as at-internal supplies this file.
1213         Removing this file here allows us to support programs like Emacs
1214         that avoid at-internal.
1215
1216         faccessat: speed up 'configure' on mainstream hosts
1217         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1218         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1219         since it's only on unusual platforms that we need to check for
1220         'access', and it's better not to slow 'configure' down on all
1221         platforms.
1222
1223         faccessat: port to Solaris 10
1224         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1225         Needed on Solaris 10, which doesn't have AT_EACCESS,
1226         so we need the Gnulib fcntl.h, which defines it.
1227
1228 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1229         canonicalize: fix C89 compilation
1230         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1231         declarations so C89 is supported.  Also remove the comment
1232         referencing memorty allocation as the suggested feature could
1233         not be implemented as suggested.
1234         Reported by Michael Goffioul.
1235
1236 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1237
1238         group-member: omit unnecessary dependencies
1239         This is for Emacs, which has its own allocator and where we
1240         don't want to use xalloc.
1241         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1242         since we no longer use xmalloc.  Do not include stdbool.h, since
1243         the changes below happen to remove the only use of bool.
1244         (GROUPBUF_SIZE): New constant.
1245         (struct group_info): Remove n_groups member.  Add groupbuf member.
1246         This lets us get the groups without using malloc, usually.
1247         (free_group_info, get_group_info): Adjust to this.
1248         (get_group_info): Return the number of groups found, or -1 on error.
1249         Use plain malloc not xmalloc, and treat its failure as if there
1250         are no groups, as the user already loses in case of error.
1251         (group_member): Simplify, based on changes to get_group_info.
1252         * modules/group-member (Depends-on): Remove dependencies on
1253         xalloc and stdbool.  Add dependency on xalloc-oversized.
1254
1255 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1256
1257         gethrxtime: port to C++
1258         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1259
1260 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1261
1262         ptsname: fix macro-name typo
1263         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1264
1265 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1266
1267         inttostr: Relax license.
1268         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1269
1270 2012-10-03  Eric Blake  <eblake@redhat.com>
1271
1272         ptsname_r: support ptys returned by FreeBSD posix_openpt
1273         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1274         lives in /dev/pts/.
1275
1276 2012-10-02  Eric Blake  <eblake@redhat.com>
1277
1278         pselect: reject invalid file descriptors
1279         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1280         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1281         * modules/pselect (Depends-on): Add dup2.
1282         * doc/posix-functions/pselect.texi (pselect): Document this.
1283
1284         select: reject invalid file descriptors
1285         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1286         * lib/select.c (rpl_select) [!win32]: Work around it.
1287         * modules/select (Depends-on): Add dup2.
1288         * doc/posix-functions/select.texi (select): Document this.
1289
1290         select: enhance test
1291         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1292         New functions.
1293         (test_function): Enhance test.
1294         (do_select_bad_fd): Avoid any stale errno values.
1295
1296         ptsname: reject invalid file descriptors
1297         http://www.austingroupbugs.net/view.php?id=503
1298         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1300         * modules/stdlib (Makefile.am): Replace witness.
1301         * lib/stdlib.in.h (ptsname): Allow for replacement.
1302         * modules/ptsname (configure.ac): Trigger replacement.
1303         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1304
1305 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1306
1307         hash-pjw-bare: new module
1308         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1309         * lib/hash-pjw-bare.h: Likewise.
1310         * modules/hash-pjw-bare: New file.
1311         * MODULES.html.sh (Misc): Add it.
1312
1313 2012-10-02  Eric Blake  <eblake@redhat.com>
1314
1315         manywarnings: cater to more gcc infelicities
1316         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1317         -Wuninitialized without -O.
1318
1319 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1320
1321         select, poll tests: Make setsockopt invocation effective.
1322         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1323         the bind() call.
1324         * tests/test-select.h (open_server_socket): Likewise.
1325
1326 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1327
1328         sockets, sys_stat: restore AC_C_INLINE
1329         This undoes the 2012-09-22 patch.
1330         * m4/sockets.m4 (gl_SOCKETS):
1331         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1332         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1333         and does not support plain 'inline'.  Reported by Bruno Haible in
1334         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1335
1336 2012-09-30  Bruno Haible  <bruno@clisp.org>
1337
1338         localeconv tests: Avoid test failure on OpenIndiana.
1339         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1340         skip the 'grouping' and 'mon_grouping' tests.
1341         Reported by Jim Meyering.
1342
1343 2012-09-30  Bruno Haible  <bruno@clisp.org>
1344
1345         havelib: Follow libtool developments.
1346         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1347         Suggested by Simon Josefsson.
1348
1349 2012-09-29  Jim Meyering  <meyering@redhat.com>
1350
1351         fstatat.c: fix a compile-impeding typo
1352         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1353         Introduced in commit v0.0-7636-gd202279.
1354         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1355
1356 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1357
1358         extern-inline: provide a -Wundef safe config.h
1359         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1360         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1361         to produce a -Wundef warning free config.h.
1362
1363 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1364
1365         hash-pjw: relax license to LGPLv2+
1366         * modules/hash-pjw (License): Relax, with consent of author.
1367
1368 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1369
1370         maint.mk: fix strict vs. lazy variable issues with RELEASE
1371         * top/maint.mk (_equal): New function.
1372         (member_check): Strip the result to avoid spurious spaces.
1373         (url_dir_list): Do not use ifeq, which is strict, as it will
1374         require RELEASE_TYPE to be defined.
1375         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1376         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1377         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1378         (announcement_Cc_beta,announcement_mail_headers_beta)
1379         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1380         (release): Do not depend on $(release-type), as it forces its
1381         evaluation.  Bounce to it.
1382
1383 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1384
1385         maint.mk: formatting changes
1386         * top/maint.mk: Indent bodies of if's.
1387
1388 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1389
1390         maint.mk: factor the validation of RELEASE_TYPE
1391         With help from Jim Meyering.
1392         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1393         * top/maint.mk (_empty, _sp): Move their definition earlier.
1394         (member-check, release-type): New.
1395         Use the latter instead of $(RELEASE_TYPE).
1396         Remove now useless local checks.
1397
1398 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1399
1400         maint.mk: provide "make upload" to ease uploading
1401         See
1402         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1403         Do not depend simply on the current $(VERSION), as there may have been
1404         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1405         as "make release-commit" already does.
1406
1407         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1408         "make TYPE".
1409
1410         * top/maint.mk (upload_command, upload, release): New.
1411         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1412         (VERSION): first word of $(RELEASE) is always right.
1413         (emit_upload_commands): Adjust.
1414         * top/README-release: Update.
1415
1416 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1417
1418         maint.mk: silent rules
1419         With help from Stefano Lattarini.
1420         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1421         (announcement): Use $(AM_V_at).
1422
1423 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1424
1425         localename: port gl_locale_name_thread_unsafe to FreeBSD
1426         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1427         and use the simpler FreeBSD implementation on Mac OS X as well.
1428         Original idea suggested by Ed Maste in
1429         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1430
1431 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1432
1433         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1434         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1435         * lib/mbuiter.c, lib/xsize.c: New files.
1436         * lib/binary-io.h (BINARY_IO_INLINE):
1437         * lib/eealloc.h (EEALLOC_INLINE):
1438         * lib/mbfile.h (MBFILE_INLINE):
1439         * lib/mbiter.h (MBITER_INLINE):
1440         * lib/mbuiter.h (MBUITER_INLINE):
1441         * lib/xsize.h (XSIZE_INLINE):
1442         New macros.
1443         Replace all uses of 'static inline' with them.
1444         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1445         * m4/eealloc.m4 (gl_EEALLOC):
1446         * m4/mbfile.m4 (gl_MBFILE):
1447         * m4/mbiter.m4 (gl_MBITER):
1448         * m4/xsize.m4 (gl_XSIZE):
1449         Do not require AC_C_INLINE.
1450         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1451         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1452         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1453         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1454         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1455         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1456         * modules/binary-io, modules/eealloc, modules/mbfile:
1457         * modules/mbiter, modules/mbuiter:
1458         (Depends-on): Add extern-inline.
1459
1460         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1461         * lib/pipe-filter-aux.c: New file.
1462         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1463         Replace all uses of 'static inline' with it.
1464         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1465         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1466         (filter_retcode): No real need for inline here.
1467         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1468         (Files): Add lib/pipe-filter-aux.c.
1469         (Depends-on): Add extern-inline.
1470         (configure.ac): Do not require AC_C_INLINE.
1471         (lib_SOURCES): Add pipe-filter-aux.c.
1472
1473         fdutimensat: omit unnecessary AC_C_INLINE
1474         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1475
1476         fchmodat, fchownat, fstatat: use extern-inline
1477         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1478         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1479         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1480         New macros.
1481         * lib/openat.h:
1482         Replace all uses of 'static inline' with them.
1483         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1484         * modules/fchmodat, modules/fchownat, modules/fstatat:
1485         * modules/openat-h:
1486         (Depends-on):
1487         Add extern-inline.
1488         (configure.ac): Remove AC_C_INLINE.
1489
1490         acl, mbchar, priv-set: use extern-inline
1491         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1492         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1493         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1494         New macros.
1495         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1496         Replace all uses of 'static inline' with it.
1497         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1498         * m4/acl.m4 (gl_FUNC_ACL):
1499         * m4/mbchar.m4 (gl_MBCHAR):
1500         * m4/priv-set.m4 (gl_PRIV_SET):
1501         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1502         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1503         Add extern-inline.
1504
1505         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1506         * m4/sockets.m4 (gl_SOCKETS):
1507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1508         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1509         environments where it's already guaranteed to work, so we needn't
1510         check for it at 'configure'-time.
1511
1512         tls-tests: omit unnecessary 'inline'
1513         * tests/test-tls.c (perhaps_yield): No longer inline.
1514         Simplicity and portability trump efficiency in test cases.
1515
1516         utimens-tests: avoid unnecessary 'inline'
1517         * modules/fdutimensat-tests (configure.ac):
1518         * modules/futimens-tests (configure.ac):
1519         * modules/utimens-tests (configure.ac):
1520         * modules/utimensat-tests (configure.ac):
1521         Remove AC_C_INLINE.
1522         * tests/test-utimens-common.h (ctime_compare):
1523         No longer inline.  Simplicity and portability trump efficiency here.
1524
1525         misc: don't limit commentary to inline functions
1526         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1527         * lib/xalloc-oversized.h, lib/xsize.h:
1528         Contrast macros to functions in general, not just to inline functions,
1529         when the commentary does not apply only to inline functions.
1530
1531 2012-09-20  Jim Meyering  <meyering@redhat.com>
1532
1533         non-recursive-gnulib-prefix-hack: new module
1534         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1535         the file that originated in Bison.
1536         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1537         largely copied from a snippet that resided in bison's configure.ac.
1538         * modules/non-recursive-gnulib-prefix-hack: New file.
1539         * MODULES.html.sh (Support for maintaining and releasing projects):
1540         Add it.
1541
1542 2012-09-18  Jim Meyering  <meyering@redhat.com>
1543
1544         maint.mk: generalize _gl_tight_scope for non-recursive make
1545         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1546         that *.h would describe additional .h files in the directory
1547         specified by $(_gl_TS_dir).  I.e., add this...
1548         (_gl_TS_other_headers): New variable.
1549
1550         maint.mk: exempt trailing blanks found in "binary" files
1551         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1552         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1553         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1554
1555 2012-09-17  Jim Meyering  <meyering@redhat.com>
1556
1557         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1558         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1559         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1560         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1561
1562 2012-09-17  Jim Meyering  <meyering@redhat.com>
1563
1564         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1565         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1566         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1567         It is not in the same category as "exit (0)" or "exit (1)", and
1568         besides, I know of no symbolic name for that 77.  Reported by
1569         Richard W.M. Jones in
1570         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1571
1572 2012-09-17  Jim Meyering  <meyering@redhat.com>
1573
1574         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1575         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1576         all uses of #define, not just those that start in column 1.
1577         Richard W.M. Jones reported a false positive in
1578         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1579
1580 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1581
1582         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1583         * lib/localcharset.c (locale_charset) [DARWIN7]:
1584         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1585         as these two values are incompatible.  Problem reported by Max Horn.
1586         For more discussion, please see
1587         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1588
1589         doc: document sticky-EOF issue
1590         * doc/posix-functions/fgetc.texi (fgetc):
1591         * doc/posix-functions/fgets.texi (fgets):
1592         * doc/posix-functions/fread.texi (fread):
1593         * doc/posix-functions/fscanf.texi (fscanf):
1594         * doc/posix-functions/getc.texi (getc):
1595         * doc/posix-functions/getchar.texi (getchar):
1596         * doc/posix-functions/scanf.texi (scanf):
1597         Mention that glibc and default Solaris do not conform to
1598         C99 and POSIX-2001 or later, with respect to how getchar
1599         etc. behave when feof reports nonzero.
1600
1601 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1602
1603         poll: fix poll(0, NULL, msec)
1604         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1605         but nfd is 0.  In that case poll should behave like select.
1606
1607 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1608             Paolo Bonzini <bonzini@gnu.org>
1609
1610         poll: fix for systems that can't recv() on a non-socket
1611         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1612         is readable.  In this case POLLHUP will not be supported.
1613         * doc/posix-functions/poll.texi: Document this.
1614
1615 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1616
1617         poll/select: document portability problems not fixed by Gnulib.
1618         * doc/posix-functions/poll.texi: poll does not work well on
1619         pipes under Windows.  It has the same limitations as select on
1620         BeOS.
1621         * doc/posix-functions/select.texi: select does not work well
1622         on pipes under Windows.
1623
1624 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1625
1626         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1627         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1628         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1629         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1630
1631 2012-09-06  Eric Blake  <eblake@redhat.com>
1632
1633         net_if: give more details about the bug being fixed
1634         * doc/posix-headers/net_if.texi: Add clarification.
1635
1636 2012-09-05  Eric Blake  <eblake@redhat.com>
1637
1638         net_if: new module
1639         * modules/net_if: New module, borrowing ideas from netinet_in.
1640         * m4/net_if_h.m4: New file.
1641         * lib/net_if.in.h: Likewise.
1642         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1643         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1644         * tests/test-net_if.c: Make function checks conditional.
1645         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1646
1647 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1648
1649         readutmp: fix non-portable UT_PID use
1650         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1651         Use `UT_PID (u) > 0' as absolute condition.
1652
1653 2012-09-04  Jim Meyering  <meyering@redhat.com>
1654
1655         fts: reduce two or more trailing spaces to just one, usually
1656         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1657         or more slashes, trim all but the final one.  But if a name consists
1658         solely of two slashes, don't modify it.  If it consists solely of
1659         three or more slashes, strip all but one.
1660
1661         This is part of the solution to a minor problem with rm:
1662         it would print a bogus ELOOP diagnostic when failing to remove
1663         the slash-decorated name of a symlink-to-directory:
1664
1665             $ mkdir d && ln -s d s && env rm -r s/
1666             rm: cannot remove 's': Too many levels of symbolic links
1667
1668         With the change below and a trivial don't-trim-trailing-slashes
1669         adjustment to remove.c, it does this:
1670
1671             $ env rm -r s/
1672             rm: cannot remove 's/': Not a directory
1673
1674         Improved by: Eric Blake
1675
1676         fts: when there is no risk of overlap, use memcpy, not memmove
1677         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1678
1679 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1680
1681         stdbool: be more compatible with mixed C/C++ compiles
1682         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1683         Define to bool, true, false, respectively, as GCC's builtin
1684         stdbool.h does.  Problem reported by Michael Goffioul in
1685         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1686
1687 2012-08-28  Jim Meyering  <meyering@redhat.com>
1688
1689         revert last change: it was not needed
1690         * tests/test-vc-list-files-git.sh: There's already a test for
1691         a working git, just below.
1692
1693 2012-08-28  Jim Meyering  <meyering@redhat.com>
1694
1695         tests: test-vc-list-files-git.sh: skip if git is not available
1696         * tests/test-vc-list-files-git.sh: Skip this test when git is
1697         not available.
1698
1699 2012-08-26  Bruno Haible  <bruno@clisp.org>
1700
1701         gnulib-tool: Remove no-op option --no-changelog.
1702         * gnulib-tool (func_usage): Don't mention --no-changelog.
1703         (do_changelog): Remove variable.
1704         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1705
1706 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1707
1708         doc: remove fdl-1.2.texi
1709         It is no longer used or maintained, and its use of @acronym
1710         is problematic.  See the thread containing
1711         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1712         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1713         * doc/old-licenses/fdl-1.2.texi: Remove.
1714
1715         execinfo: port to FreeBSD
1716         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1717         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1718         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1719         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1720
1721 2012-08-23  Jim Meyering  <meyering@redhat.com>
1722
1723         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1724         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1725         to placate gcc's -Wold-style-declaration.
1726
1727 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         doc: do not use @acronym
1730         * doc/inet_ntoa.texi (inet_ntoa):
1731         * doc/parse-datetime.texi (Seconds since the Epoch)
1732         (Specifying time zone rules):
1733         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1734         Don't use @acronym.  Problem reported by John Darlington in
1735         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1736
1737 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1738
1739         stdnoreturn: port to newer GCCs
1740         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1741         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1742         Problem reported by Jim Meyering in
1743         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1744         Also, rename the 'test' function to a void a clash with the
1745         already-supplied 'main' function; this fixes a bug that incorrectly
1746         rejected GCC 4.7.1's <stdnoreturn.h>.
1747         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1748         Document GCC problem.
1749
1750 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1751
1752         pipe-filter: fix comment typo
1753         * lib/pipe-filter.h: Mention correct function.
1754
1755 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1756
1757         execinfo: new module
1758         This is for Emacs.  Currently, it provides a no-effect stub
1759         on all platforms where it does not already work.
1760         It already works on glibc-based systems, and on Solaris 11.
1761         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1762         New files.
1763         * doc/glibc-headers/execinfo.texi (execinfo.h):
1764         * MODULES.html.sh (Misc): Document it.
1765
1766 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1767
1768         extern-inline: support old GCC 'inline'
1769         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1770         if available.  This applies to GCC versions 2.7 through 4.2, or
1771         when newer GCC is using -fgnu89-inline.  The goal is to address
1772         some of the performance issues mentioned by Bruno Haible in
1773         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1774
1775 2012-08-20  Eric Blake  <eblake@redhat.com>
1776
1777         maint.mk: avoid redundant file name in message
1778         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1779         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1780         (sc_makefile_path_separator_check): Remove bogus $(ME).
1781
1782 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1783
1784         timer-time: fix link order when static linking on glibc
1785         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1786         _after_ -lrt so that it's significant.
1787
1788 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1789
1790         timespec: omit unnecessary AC_C_INLINE
1791         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1792
1793         stat-time: omit unnecessary AC_C_INLINE
1794         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1795         Do not require AC_C_INLINE.
1796
1797         ignore-value: omit unnecessary AC_C_INLINE
1798         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1799
1800         sys_select: avoid 'static inline'
1801         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1802
1803         mktime: avoid 'static inline'
1804         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1805         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1806
1807 2012-08-19  Bruno Haible  <bruno@clisp.org>
1808
1809         gnulib-tool: Improve coding style.
1810         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1811         func_emit_lib_Makefile_am.
1812         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1813
1814 2012-08-19  Bruno Haible  <bruno@clisp.org>
1815
1816         gnulib-tool: Fix indentation.
1817         * gnulib-tool (func_import): Fix indentation.
1818
1819 2012-08-19  Bruno Haible  <bruno@clisp.org>
1820
1821         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1822         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1823         on the list of removed files.
1824
1825 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         test-parse-datetime: avoid glibc leap-second glitch
1828         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1829         with the 2012 rules.  Problem reported by Bruce Dubbs in
1830         <http://bugs.gnu.org/12206>.
1831
1832 2012-08-14  Bruno Haible  <bruno@clisp.org>
1833
1834         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1835         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1836         from argument.
1837         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1838
1839 2012-08-14  Eric Blake  <eblake@redhat.com>
1840
1841         ldexp: relax license
1842         * modules/ldexp (License): Trivial relax, since the module only
1843         provides a permissively licensed m4 file.
1844
1845 2012-08-13  Bruno Haible  <bruno@clisp.org>
1846
1847         gnulib-tool: Fix persistence of --witness-c-macro option.
1848         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1849         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1850
1851 2012-08-11  Eric Blake  <eblake@redhat.com>
1852
1853         count-leading-zeros: use a lookup table on non-gcc compilers
1854         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1855         alternate implementation, suggested by Jim Meyering.
1856
1857 2012-08-10  Eric Blake  <eblake@redhat.com>
1858
1859         count-leading-zeros: new module
1860         * modules/count-leading-zeros: New module.
1861         * m4/count-leading-zeros.m4: New file.
1862         * lib/count-leading-zeros.h: Likewise.
1863         * modules/count-leading-zeros-tests: New test.
1864         * tests/test-count-leading-zeros.c: New file.
1865         * MODULES.html.sh (Integer arithmetic functions): Document it.
1866
1867 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1868             Jim Meyering  <meyering@redhat.com>
1869
1870         maintainer-makefile: Fix syntax error with dash.
1871         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1872         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1873
1874 2012-08-05  Jim Meyering  <meyering@redhat.com>
1875
1876         extern-inline: also ignore -Wmissing-declarations
1877         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1878         required with gcc-4.8.0-to-be.
1879
1880         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1881         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1882         for /error ?([^,]*)/.  This avoids false-positives for strings like
1883         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1884
1885 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1886
1887         gnumakefile: better interaction with Automake-NG
1888         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1889         Automake-NG always contain a definition of VPATH, even in non-VPATH
1890         builds (its value being simply '.' in that case).  So, in the
1891         'clean-GNUmakefile' rule, to determine whether running under a
1892         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1893         '$(VPATH)' expands to the empty string.
1894
1895 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1896
1897         base64: Use extern C scope in header file, for C++.
1898         * lib/base64.h: Add C++ namespace protection.
1899
1900 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         stat-time, timespec, u64: support naive out-of-dir builds
1903         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1904         Use '#include "foo.h"', not '#include <foo.h>', when including
1905         one's own interface.  This works better when configuring with
1906         out-of-directory builds, since packages need not add an
1907         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1908
1909 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         utimens: use extern-inline
1912         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1913         * lib/utimens.h: Add copyright notice, since this is now large enough
1914         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1915         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1916         * modules/utimens (Depends-on): Add extern-inline.
1917
1918         u64: use extern-inline
1919         * lib/u64.c: New file.
1920         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1921         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1922         * modules/u64 (Files): Add lib/u64.c.
1923         (Depends-on): Add extern-inline.
1924         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1925         does that now.
1926         (lib_SOURCES): Add u64.c.
1927
1928         timespec: use extern-inline
1929         * lib/timespec.c: New file.
1930         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1931         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1932         * modules/timespec (Files): Add lib/timespec.c.
1933         (Depends-on): Add extern-inline.
1934         (lib_SOURCES): Add timespec.c.
1935
1936         stat-time: use extern-inline
1937         * lib/stat-time.c: New file.
1938         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1939         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1940         * modules/stat-time (Files): Add lib/stat-time.c.
1941         (Depends-on): Add extern-inline.
1942         (lib_SOURCES): Add stat-time.c.
1943
1944         extern-inline: new module
1945         * modules/extern-inline, m4/extern-inline.m4: New files.
1946         This is for better support of 'extern inline' a la ISO C99,
1947         with a portable alternative on compilers that do not support
1948         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1949         of the Emacs executable, when compiled with debugging disabled,
1950         which is a typical way that Emacs is built while developing.
1951
1952 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1953
1954         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1955         * build-aux/do-release-commit-and-tag: Move variable definitions
1956         together.
1957         ($branch): Instead of defaulting to "master", default to the current
1958         branch (as gnu-web-doc-update does).
1959         (help): Display the current values of the option arguments.
1960         * top/maint.mk (release-commit): New.
1961         * top/README-release: Simplify the corresponding step.
1962
1963 2012-07-30  Eric Blake  <eblake@redhat.com>
1964
1965         passfd: fix comment on recvfd
1966         * lib/passfd.c (recvfd): Fix comment.
1967         Reported by Jann Horn <jannhorn@googlemail.com>.
1968
1969 2012-07-30  Jim Meyering  <meyering@redhat.com>
1970
1971         maint.mk: avoid a sub-shell
1972         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1973
1974 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1975
1976         maint.mk: use silent-rules support from Automake
1977         * top/maint.mk (news-check, vc-diff-check, announcement)
1978         (no-submodule-changes, alpha beta stable, release-prep)
1979         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1980
1981 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1982
1983         maint.mk: provide a web-manual-update target
1984         * top/maint.mk: here.
1985         * top/README-release: Use it to simplify the web manual update step.
1986
1987 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1988
1989         README-release: shorten the circuit to post a news
1990         * top/README-release: Point directly to the news submission form.
1991
1992 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1993
1994         gnu-web-doc-update: fix --help
1995         * build-aux/gnu-web-doc-update: The information "top level" was written
1996         twice.
1997
1998 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1999
2000         maint.mk: absolute VPATH issue
2001         * top/maint.mk (release-prep): Help Git find .git/.
2002         From Jim Meyering.
2003
2004 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2005
2006         gitlog-to-changelog: fix previous change
2007         * build-aux/gitlog-to-changelog: Fix condition.
2008         Add missing ";".
2009
2010 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2011
2012         gitlog-to-changelog: don't expect .git to be in $srcdir
2013         Reported by Bruno Haible.
2014         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2015         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2016         Use it.
2017
2018 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2019
2020         maint.mk: absolute VPATH build fix
2021         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2022         $(srcdir) is not a parent of $(builddir).
2023
2024 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2025
2026         clean-temp: Fix memory leak.
2027         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2028         'files' members of tmpdir.
2029
2030 2012-07-27  Jim Meyering  <meyering@redhat.com>
2031
2032         maint.mk: new rule: refresh-gnulib-patches
2033         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2034         Use this rule to refresh them.
2035         * top/maint.mk (refresh-gnulib-patches): New rule.
2036
2037 2012-07-24  Bruno Haible  <bruno@clisp.org>
2038
2039         gnulib-tool: Fix handling of inctests variable.
2040         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2041         Reported by Nick Bowler <nbowler@elliptictech.com>.
2042
2043 2012-07-22  Bruno Haible  <bruno@clisp.org>
2044
2045         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2046         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2047         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2048         Remove exemption for getpass.h.
2049         Suggested by Eric Blake.
2050
2051 2012-07-20  Eric Blake  <eblake@redhat.com>
2052
2053         verify: document conflict with -Wnested-externs
2054         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2055
2056         maint.mk: forbid exit(-1)
2057         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2058
2059 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2060
2061         fsusage: port back to Solaris
2062         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2063         error (fsd not declared) on Solaris 10.  Reported privately by
2064         Andrew Borodin.
2065
2066 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2067
2068         gnu-web-doc-update: fix error messages
2069         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2070
2071         gnu-web-doc-update: check the requirements.
2072         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2073         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2074         * build-aux/bootstrap (find_tool): Comment change.
2075
2076 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2077
2078         maint.mk: minor simplication.
2079         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2080         for default values.
2081
2082 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2083
2084         gitlog-to-changelog: VPATH build issues
2085         If builddir is not a subdirectory of srcdir, running git from it will
2086         fail.
2087         * build-aux/gitlog-to-changelog (--srcdir): New option.
2088
2089 2012-07-15  Bruno Haible  <bruno@clisp.org>
2090
2091         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2092         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2093         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2094         Remove exemption for fpending.h.
2095         Suggested by Eric Blake.
2096
2097 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         pthread_sigmask: fix bug on FreeBSD 9
2100         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2101         Include string.h.
2102         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2103         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2104         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2105         but pthread_sigmask (1729, NULL, NULL) returns zero.
2106         See <http://bugs.gnu.org/11884>.
2107         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2108         by inspecting whether the main call changed the old mask.
2109
2110 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2111
2112         README-release: make it more legible
2113         * top/README-release: Improve typography slightly.
2114
2115 2012-07-15  Jim Meyering  <meyering@redhat.com>
2116
2117         maint: require that each sc_... command start with "@"
2118         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2119         "make sc_maint" helps us avoid this nit.
2120
2121 2012-07-15  Jim Meyering  <meyering@redhat.com>
2122
2123         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2124         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2125
2126 2012-07-13  Eric Blake  <eblake@redhat.com>
2127
2128         maint.mk: new syntax check for HAVE_DECL checks
2129         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2130         * cfg.mk
2131         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2132         Exempt some false positives.
2133         Based on a report by Karel Zak.
2134
2135         argp: make HAVE_DECL usage consistent
2136         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2137         macros, not whether they are defined.
2138         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2139         convention with other declaration checks.
2140         Reported by Karel Zak, with suggestions from Paul Eggert.
2141
2142         stat-time: relax license to LGPLv2+
2143         * modules/stat-time (License): Relax, with consent of all authors.
2144
2145         strndup: fix m4 usage error
2146         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2147         defined, to either 0 or 1.
2148         Reported by Karel Zak.
2149
2150 2012-07-11  Jim Meyering  <meyering@redhat.com>
2151
2152         maint: enable the sc_avoid_if_before_free syntax-check rule
2153         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2154         (if_before_free_offenders_): Define.
2155         (if_before_free_basename_re_): Define.
2156         Exempt current files with useless if-before-free.
2157
2158 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         gettext: do not assume '#define ... defined ...' behavior
2161         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2162         Do not use '#define FOO ... defined BAR ...', as the C standard says
2163         it's not portable to expect that this works after macro expansion.
2164         Problem reported for gzip by Steven M. Schweda in
2165         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2166
2167 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         getloadavg: clean out old Emacs and Autoconf cruft
2170         See Glenn Morris in <http://bugs.gnu.org/11905>.
2171         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2172         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2173         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2174         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2175
2176 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2177
2178         bootstrap: let warn be like tests/init.sh's warn_
2179         Reported by Jim Meyering.
2180         * build-aux/bootstrap (warn): Remove, replaced by...
2181         (warnf_, warn_): these.
2182         Adjust callers.
2183         Shorten messages that no longer fit in 80 columns.
2184
2185 2012-07-09  Bruno Haible  <bruno@clisp.org>
2186
2187         getopt: Simplify after Emacs changed.
2188         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2189         (gl_GETOPT_IFELSE): Remove macro.
2190
2191 2012-07-09  Jim Meyering  <meyering@redhat.com>
2192
2193         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2194         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2195
2196         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2197         Bugs in both of those conspired to make the
2198         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2199         _sc_search_regexp's handling of non-empty $in_files would filter
2200         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2201         choice of in_files value meant there would be no match in most
2202         projects, due to the presence of two or more Makefile.in files.
2203         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2204         Fix a bug in how a non-empty $$in_files was processed:
2205         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2206         in spite of the name, it's a regexp, not a list of file names.
2207
2208 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         getloadavg, getopt: fix commentary re configure.in
2211         Autoconf is deprecating the name 'configure.in', so change it to
2212         to the new name 'configure.ac' in a couple of places.
2213         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2214         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2215         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2216         Emacs has renamed it to configure.ac, and it no longer refers
2217         to these macros anyway.
2218
2219         timespec: mark functions with const attributes
2220         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2221         Mark with _GL_ATTRIBUTE_CONST.
2222
2223 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2224
2225         canonicalize[-lgpl]: handle "guessing" values when cross-building
2226         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2227         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2228         matches "*yes" instead of just "yes".  Regression introduced in commit
2229         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2230
2231 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2232             Bruno Haible  <bruno@clisp.org>
2233
2234         canonicalize: make the right guess when cross-compiling to GNU
2235         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2236         determine whether cross-compiling to glibc systems, so as to
2237         include GNU/Hurd.
2238
2239 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2240
2241         timespec-sub: avoid duplicate include
2242         * lib/timespec-sub.c: Do not include <config.h> twice.
2243         Reported by Juanma Barranquero.
2244
2245 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2246
2247         bootstrap: use a more consistent error reporting scheme
2248         * build-aux/bootstrap (warn, die): New.
2249         Use them.
2250
2251 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2252
2253         sys_time: allow too-wide tv_sec
2254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2255         timeval even if tv_sec is wider than time_t.  This allows
2256         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2257         as without this patch gnulib replaces struct timeval
2258         and OpenBSD futimes therefore has a type mismatch.
2259         * doc/posix-headers/sys_time.texi: Mention this.
2260
2261         pthread: check for both pthread_create and pthread_join
2262         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2263         alter the check so that it tests for both pthread_create and
2264         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2265         Suggested by Bruno Haible and Richard Yao in
2266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2267
2268         parse-datetime: doc tuneup
2269         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2270         spacing issues.
2271
2272 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2273
2274         do-release-commit-and-tag: fix the previous commit
2275         * build-aux/do-release-commit-and-tag: Actually the test was right,
2276         but the comment and the error message were misleading.
2277         Fix comment, and improve error message.
2278         Perform check first, so that NEWS is not modified uselessly.
2279
2280         do-release-commit-and-tag: fix typo
2281         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2282         _not_ start with a stub.
2283
2284 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2285
2286         pthread: check for pthread_create, not pthread_join
2287         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2288         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2289         pthread_join in libc.  I hope this removes the need for all the
2290         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2291         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2292
2293 2012-07-04  Jim Meyering  <meyering@redhat.com>
2294
2295         parse-datetime: fix failure to diagnose invalid input
2296         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2297         rather than diagnosing the invalid input.  Now it reports this:
2298         date: invalid date '\260'
2299         * lib/parse-datetime.y (to_uchar): Define.
2300         (yylex): Don't sign-extend "other" bytes.
2301         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2302         Thanks to Bruno Haible for the patch to this file.
2303         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2304         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2305
2306 2012-07-03  Jim Meyering  <meyering@redhat.com>
2307
2308         bootstrap: do not require now-removed build-aux/missing
2309         Now that build-aux/missing is, er, missing, bootstrap would
2310         silently fail.
2311         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2312         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2313         no longer part of gnulib.
2314         Diagnose the failure.
2315
2316 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2317
2318         alloca: add support for HP NonStop TNS/E native
2319         * lib/alloca.in.h (alloca): Support the new host.
2320         From a suggestion by Joachim Schmitz in
2321         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2322
2323 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2324
2325         fsusage: remove code not needed on non GNU/Linux systems.
2326
2327         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2328         Don't include headers no longer needed in this case.
2329         * lib/fsusage.c [STAT_STATVFS &&
2330         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2331         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2332
2333 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2334
2335         fsusage: include files needed for glibc 2.6 fallback
2336         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2337         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2338         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2339         Problem reported by Ludovic Courtès in
2340         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2341
2342         fsusage: avoid needless check on GNU/Linux
2343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2344         on GNU/Linux systems, since it can't possibly work.
2345
2346 2012-07-01  Bruno Haible  <bruno@clisp.org>
2347
2348         log: Fix an autoconf >= 2.64 warning.
2349         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2350         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2351
2352 2012-06-28  Bruno Haible  <bruno@clisp.org>
2353
2354         log10f: Fix possible configuration problem.
2355         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2356         $LOGF_LIBM.
2357         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2358
2359 2012-06-28  Bruno Haible  <bruno@clisp.org>
2360
2361         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2362         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2363         not gl_cv_func_unlink_works.
2364         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2365
2366 2012-06-27  Eric Blake  <eblake@redhat.com>
2367
2368         config: drop scripts that automake says are not independent
2369         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2370         * build-aux/elisp-comp: Delete.
2371         * build-aux/missing: Likewise.
2372         * build-aux/ylwrap: Likewise.
2373         * modules/elisp-comp: Likewise.
2374         * MODULES.html.sh: Drop mention of elisp-comp.
2375         * NEWS: Mention this.
2376
2377 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2378
2379         root-uid: new module
2380         This is for portability to Tandem's NonStop Kernel.
2381         * lib/root-uid.h, modules/root-uid: New files.
2382         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2383         * lib/write-any-file.c, tests/test-sethostname2.c:
2384         Include "root-uid.h".
2385         * lib/euidaccess.c (euidaccess):
2386         * lib/pt_chown.c (main):
2387         * lib/unlinkdir.c (cannot_unlink_dir):
2388         * lib/write-any-file.c (can_write_any_file):
2389         * m4/mknod.m4 (gl_FUNC_MKNOD):
2390         * tests/test-sethostname2.c (geteuid, main):
2391         Don't assume ROOT_UID == 0.
2392         * modules/euidaccess (Depends-on):
2393         * modules/pt_chown (Depends-on):
2394         * modules/sethostname-tests (Depends-on):
2395         * modules/unlinkdir (Depends-on):
2396         * modules/write-any-file (Depends-on):
2397         Add root-uid.
2398
2399         regex: use locale-independent comparison for codeset name
2400         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2401         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2402         for codeset name.
2403         * lib/regex_internal.h: Do not include <strings.h>, since we
2404         no longer use strcasecmp.
2405         * modules/regex (Depends-on): Remove strcase.
2406
2407 2012-06-23  Bruno Haible  <bruno@clisp.org>
2408
2409         getopt-posix: No longer guarantee that option processing is resettable.
2410         * doc/posix-functions/getopt.texi: Drop description of problem with
2411         internal state. Fix info about mingw and msvc9.
2412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2413         option processing by getopt(). Run three test programs instead of one.
2414         Simplify cross-compilation guess.
2415         * NEWS: Mention the change.
2416         Reported by Rich Felker <dalias@aerifal.cx>.
2417
2418 2012-06-26  Bruno Haible  <bruno@clisp.org>
2419
2420         argp, regex: Ensure strcasecmp gets declared.
2421         * lib/argp-help.c: Include <strings.h>.
2422         * lib/regex_internal.h: Likewise.
2423         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2424
2425 2012-06-24  Bruno Haible  <bruno@clisp.org>
2426
2427         ptsname_r: Make it consistent with ptsname on AIX.
2428         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2429         implementation as for OSF/1.
2430         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2431         a pty master.
2432
2433         ptsname_r: Make it consistent with ptsname on OSF/1.
2434         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2435         OSF/1.
2436
2437 2012-06-24  Bruno Haible  <bruno@clisp.org>
2438
2439         ttyname_r: Fix result on OSF/1, Solaris.
2440         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2441
2442 2012-06-24  Bruno Haible  <bruno@clisp.org>
2443
2444         ptsname_r: Add support for Solaris.
2445         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2446         Solaris.
2447
2448         ptsname_r: Fix test failure on native Windows.
2449         * modules/ptsname_r (Depends-on): Add isatty.
2450
2451         ptsname_r: Fix test failures on IRIX, Solaris.
2452         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2453         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2454         accordingly.
2455         * lib/ptsname_r.c: Include <fcntl.h>.
2456         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2457         set errno if fd is invalid.
2458         * tests/test-isatty.c (main): Update comments.
2459
2460 2012-06-24  Bruno Haible  <bruno@clisp.org>
2461
2462         ptsname test: Extend test.
2463         * tests/test-ptsname.c: Include <errno.h>.
2464         (main): Test behaviour with invalid file descriptor.
2465
2466 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2467
2468         time: fix obsolete comment
2469         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2470         reference to HAVE_STRUCT_TIMESPEC in comment.
2471
2472 2012-06-23  Bruno Haible  <bruno@clisp.org>
2473
2474         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2476         does not handle abbreviated long options with equivalent
2477         disambiguations, set gl_replace_getopt to yes.
2478         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2479
2480 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2481
2482         time_r: fix typo that always overrode localtime_r decl
2483         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2484         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2485         not in a standard include.
2486
2487 2012-06-22  Bruno Haible  <bruno@clisp.org>
2488
2489         Write "Mac OS X" instead of "MacOS X".
2490         * README: Write "Mac OS X" instead of "MacOS X".
2491         * build-aux/bootstrap: Likewise.
2492         * build-aux/install-reloc: Likewise.
2493         * lib/acl-internal.h: Likewise.
2494         * lib/acl_entries.c: Likewise.
2495         * lib/argp-ba.c: Likewise.
2496         * lib/argp-pv.c: Likewise.
2497         * lib/config.charset: Likewise.
2498         * lib/copy-acl.c: Likewise.
2499         * lib/csharpexec.c: Likewise.
2500         * lib/euidaccess.c: Likewise.
2501         * lib/fbufmode.c: Likewise.
2502         * lib/fflush.c: Likewise.
2503         * lib/file-has-acl.c: Likewise.
2504         * lib/filemode.h: Likewise.
2505         * lib/fpurge.c: Likewise.
2506         * lib/freadable.c: Likewise.
2507         * lib/freadahead.c: Likewise.
2508         * lib/freading.c: Likewise.
2509         * lib/freadptr.c: Likewise.
2510         * lib/freadseek.c: Likewise.
2511         * lib/fseeko.c: Likewise.
2512         * lib/fseterr.c: Likewise.
2513         * lib/fsusage.c: Likewise.
2514         * lib/fwritable.c: Likewise.
2515         * lib/fwriting.c: Likewise.
2516         * lib/get-rusage-as.c: Likewise.
2517         * lib/get-rusage-data.c: Likewise.
2518         * lib/getdomainname.c: Likewise.
2519         * lib/idpriv-drop.c: Likewise.
2520         * lib/idpriv-droptemp.c: Likewise.
2521         * lib/localcharset.c: Likewise.
2522         * lib/locale.in.h: Likewise.
2523         * lib/localename.c: Likewise.
2524         * lib/mbsrtowcs-state.c: Likewise.
2525         * lib/nproc.c: Likewise.
2526         * lib/passfd.c: Likewise.
2527         * lib/posix_openpt.c: Likewise.
2528         * lib/printf-parse.c: Likewise.
2529         * lib/progreloc.c: Likewise.
2530         * lib/safe-read.h: Likewise.
2531         * lib/safe-write.h: Likewise.
2532         * lib/sched.in.h: Likewise.
2533         * lib/set-mode-acl.c: Likewise.
2534         * lib/signal.in.h: Likewise.
2535         * lib/stdint.in.h: Likewise.
2536         * lib/stdio-impl.h: Likewise.
2537         * lib/stdlib.in.h: Likewise.
2538         * lib/strtod.c: Likewise.
2539         * lib/sys_select.in.h: Likewise.
2540         * lib/tcgetsid.c: Likewise.
2541         * lib/unistd.in.h: Likewise.
2542         * lib/unlockpt.c: Likewise.
2543         * lib/vasnprintf.c: Likewise.
2544         * lib/vma-iter.c: Likewise.
2545         * lib/wcsrtombs-state.c: Likewise.
2546         * m4/acl.m4: Likewise.
2547         * m4/acosl.m4: Likewise.
2548         * m4/asinl.m4: Likewise.
2549         * m4/atanl.m4: Likewise.
2550         * m4/c-stack.m4: Likewise.
2551         * m4/cosl.m4: Likewise.
2552         * m4/expl.m4: Likewise.
2553         * m4/extensions.m4: Likewise.
2554         * m4/fdatasync.m4: Likewise.
2555         * m4/fmal.m4: Likewise.
2556         * m4/frexp.m4: Likewise.
2557         * m4/frexpf.m4: Likewise.
2558         * m4/frexpl.m4: Likewise.
2559         * m4/fsusage.m4: Likewise.
2560         * m4/getdomainname.m4: Likewise.
2561         * m4/getloadavg.m4: Likewise.
2562         * m4/getopt.m4: Likewise.
2563         * m4/gettext.m4: Likewise.
2564         * m4/gnulib-common.m4: Likewise.
2565         * m4/intdiv0.m4: Likewise.
2566         * m4/intlmacosx.m4: Likewise.
2567         * m4/largefile.m4: Likewise.
2568         * m4/ldexpl.m4: Likewise.
2569         * m4/link-follow.m4: Likewise.
2570         * m4/locale-ar.m4: Likewise.
2571         * m4/locale-fr.m4: Likewise.
2572         * m4/locale-ja.m4: Likewise.
2573         * m4/locale-tr.m4: Likewise.
2574         * m4/locale-zh.m4: Likewise.
2575         * m4/locale_h.m4: Likewise.
2576         * m4/lock.m4: Likewise.
2577         * m4/logl.m4: Likewise.
2578         * m4/mathfunc.m4: Likewise.
2579         * m4/minus-zero.m4: Likewise.
2580         * m4/mktime.m4: Likewise.
2581         * m4/mmap-anon.m4: Likewise.
2582         * m4/multiarch.m4: Likewise.
2583         * m4/nanosleep.m4: Likewise.
2584         * m4/nocrash.m4: Likewise.
2585         * m4/poll.m4: Likewise.
2586         * m4/printf-frexpl.m4: Likewise.
2587         * m4/printf.m4: Likewise.
2588         * m4/signbit.m4: Likewise.
2589         * m4/sinl.m4: Likewise.
2590         * m4/sqrtl.m4: Likewise.
2591         * m4/strerror_r.m4: Likewise.
2592         * m4/tanl.m4: Likewise.
2593         * m4/threadlib.m4: Likewise.
2594         * m4/ttyname_r.m4: Likewise.
2595         * m4/unlink.m4: Likewise.
2596         * m4/visibility.m4: Likewise.
2597         * m4/wcwidth.m4: Likewise.
2598         * tests/minus-zero.h: Likewise.
2599         * tests/test-alloca-opt.c: Likewise.
2600         * tests/test-copy-acl.sh: Likewise.
2601         * tests/test-copy-file.sh: Likewise.
2602         * tests/test-fdatasync.c: Likewise.
2603         * tests/test-file-has-acl.sh: Likewise.
2604         * tests/test-flock.c: Likewise.
2605         * tests/test-fsync.c: Likewise.
2606         * tests/test-localename.c: Likewise.
2607         * tests/test-malloca.c: Likewise.
2608         * tests/test-nonblocking-pipe.h: Likewise.
2609         * tests/test-nonblocking-socket.h: Likewise.
2610         * tests/test-openpty.c: Likewise.
2611         * tests/test-posix_openpt.c: Likewise.
2612         * tests/test-ptsname.c: Likewise.
2613         * tests/test-ptsname_r.c: Likewise.
2614         * tests/test-sameacls.c: Likewise.
2615         * tests/test-select.h: Likewise.
2616         * tests/test-set-mode-acl.sh: Likewise.
2617         * tests/test-snprintf-posix.h: Likewise.
2618         * tests/test-sprintf-posix.h: Likewise.
2619         * tests/test-strtod.c: Likewise.
2620         * tests/test-time.c: Likewise.
2621         * tests/test-vasnprintf-posix.c: Likewise.
2622         * tests/test-vasprintf-posix.c: Likewise.
2623         * doc/acl-resources.txt: Likewise.
2624         * doc/**/*.texi: Likewise.
2625         Reported by Max Horn <max@quendi.de>.
2626
2627 2012-06-22  Bruno Haible  <bruno@clisp.org>
2628
2629         grantpt: Relax requirement regarding invalid file descriptors.
2630         * lib/grantpt.c: Don't include <fcntl.h>.
2631         (grantpt): Don't verify the validity of the file descriptor.
2632         * modules/grantpt (Depends-on): Remove fcntl-h.
2633         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2634         file descriptors.
2635         * doc/posix-functions/grantpt.texi: Document more platforms on which
2636         grantpt succeeds for invalid file descriptors.
2637         Reported by Rich Felker <dalias@aerifal.cx>.
2638
2639 2012-06-22  Bruno Haible  <bruno@clisp.org>
2640
2641         fbufmode test: Don't test unportable behaviour.
2642         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2643         (main): Invoke it three times.
2644         Reported by Szabolcs Nagy <nsz@port70.net>
2645         and Rich Felker <dalias@aerifal.cx>.
2646
2647 2012-06-21  Bruno Haible  <bruno@clisp.org>
2648
2649         gnulib-tool: Refactor inctests variable.
2650         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2651         (func_modules_transitive_closure,
2652         func_modules_transitive_closure_separately,
2653         func_import, func_create_testdir): Update.
2654
2655         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2656         * gnulib-tool: Accept option --without-tests.
2657         (func_usage): Document --without-tests option. Rearrange.
2658         (inctests): Normalize according to the mode.
2659         * NEWS: Mention the change.
2660         Suggested by Simon Josefsson.
2661
2662 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2663
2664         parse-duration test: Avoid spurious output.
2665         * tests/test-parse-duration.sh: Reindent with leading tabs.
2666
2667 2012-06-21  Jim Meyering  <meyering@redhat.com>
2668
2669         maint: disable the strncpy prohibition
2670         * cfg.mk: Do not prohibit strncpy here.
2671
2672 2012-06-21  Bruno Haible  <bruno@clisp.org>
2673
2674         nonblocking: Avoid compilation error on mingw64.
2675         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2676         fscanf.
2677         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2678         * modules/vfscanf (configure.ac): Likewise.
2679         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2680         definition only if stdio.h has prepared it.
2681         Reported by Daniel P. Berrange <berrange@redhat.com>.
2682
2683 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2684
2685         gnulib-tool: Use readlink if it is available.
2686         * gnulib-tool (func_readlink): Choose function more appropriately.
2687
2688 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2689
2690         posixtm-tests: port to buggy compiler
2691         Problem reported by Simon Josefsson in
2692         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2693         * modules/posixtm-tests (Depends-on): Add stdint.
2694         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2695         Now of type int_least64_t, not int64_t, both because that's
2696         what INT64_C returns and because int_least64_t works even
2697         on 72-bit hosts.
2698         (T): Use INT64_C on constants outside the traditional int range,
2699         to work around compiler bug noted by Simon.
2700
2701         mktime: fix integer overflow in 'configure'-time test
2702         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2703         after integer overflow.  Problem reported by Rich Felker in
2704         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2705         Also, don't look for further instances of a bug if we've already
2706         found one instance; this helps 'configure' run faster.
2707
2708 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2709
2710         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2711         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2712         GetVersionEx correctly.
2713         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2714
2715 2012-06-20  Bruno Haible  <bruno@clisp.org>
2716
2717         fdopen: Allow implementations that don't reject invalid fd arguments.
2718         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2719         succeeds.
2720         Reported by Rich Felker <dalias@aerifal.cx>.
2721
2722 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2723
2724         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2725         bring in LIBINTL.
2726
2727 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         init.sh: do not rely on autoupated PWD
2730         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2731         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2732         Although Nelson's bug was not necessarily fixed by this patch,
2733         it seems wise to make the change for safety.
2734         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2735         automagically after 'cd'; this is not reliable on older shells.
2736         (setup_): Fail if we cannot cd to temporary directory.
2737
2738 2012-06-19  Bruno Haible  <bruno@clisp.org>
2739
2740         stat, fstat: Avoid warnings on mingw64.
2741         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2742         redefining.
2743         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2744         Reported by Daniel P. Berrange <berrange@redhat.com>.
2745
2746 2012-06-19  Bruno Haible  <bruno@clisp.org>
2747
2748         stdioext: Add support for musl libc.
2749
2750         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2751         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2752
2753         * m4/fseterr.m4: New file.
2754         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2755         function exists.
2756         * modules/fseterr (Files): Add m4/fseterr.m4.
2757         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2758         __fseterr does not exist.
2759         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2760
2761         * lib/freadable.h: Update comment.
2762
2763         * lib/fwritable.h: Update comment.
2764
2765         * lib/freading.h: Update comment.
2766
2767         * lib/fwriting.h: Update comment.
2768
2769         * m4/freadahead.m4: New file.
2770         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2771         that function exists.
2772         * modules/freadahead (Files): Add m4/freadahead.m4.
2773         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2774         __freadahead does not exist.
2775         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2776
2777         * m4/freadptr.m4: New file.
2778         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2779         function exists.
2780         * modules/freadptr (Files): Add m4/freadptr.m4.
2781         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2782         __freadptr does not exist.
2783         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2784
2785         * m4/freadseek.m4: New file.
2786         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2787         exists.
2788         * modules/freadseek (Files): Add m4/freadseek.m4.
2789         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2790
2791         * lib/fpurge.c (fpurge): Update comment.
2792
2793         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2794
2795 2012-06-19  Bruno Haible  <bruno@clisp.org>
2796
2797         *printf-posix: Put more info into config.log.
2798         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2799         exit code into config.log.
2800
2801 2012-06-19  Bruno Haible  <bruno@clisp.org>
2802
2803         getopt-gnu: Fix exit code overflow in autoconf test.
2804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2805         to keep them below < 128.
2806
2807 2012-06-17  Jim Meyering  <meyering@redhat.com>
2808
2809         maint.mk: fix typo in code to derive GPG key at release time
2810         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2811
2812 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2813
2814         regex: avoid warning when pointers are not long
2815         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2816         and uintptr_t, not long, for portability to hosts where pointers and
2817         long have different sizes.  Issue noted by Daniel P. Berrange in
2818         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2819         and fix suggested by Bruno Haible in
2820         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2821
2822 2012-06-17  Bruno Haible  <bruno@clisp.org>
2823
2824         dummy: Relicense into the public domain.
2825         * modules/dummy (License): Set to "public domain".
2826         Suggested by Reuben Thomas.
2827
2828 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2829
2830         announce-gen: VPATH issues
2831         * build-aux/announce-gen (--srcdir): New option, used to trim the
2832         $srcdir part of the path from $builddir to NEWS.
2833         * top/maint.mk (announcement): Adjust.
2834
2835 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2836
2837         gnu-web-doc-update: VPATH builds
2838         * build-aux/gnu-web-doc-update (--builddir): New option.
2839         Revamp the handling of options.
2840         Prefer $(...) to `...`.
2841         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2842         the template, and it is GNU mktemp specific.
2843         Prefer set -e to long series of &&.
2844         Restore the initial git branch, not "master".
2845         Properly initialize submodules (don't rely only on bootstrap).
2846         Do not reconfigure blindly, use config.status.
2847         * top/README-release: Update instructions for gnu-web-doc-update.
2848
2849 2012-06-11  Jim Meyering  <meyering@redhat.com>
2850
2851         maint.mk: revert most of the previous change re "all these"
2852         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2853         For rationale, see the discussion at
2854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2855
2856 2012-06-10  Karl Berry  <karl@gnu.org>
2857
2858         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2859
2860         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2861
2862 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2863
2864         parse-duration: Relicense under LGPLv2+.
2865         * modules/parse-duration (License): Change to LGPLv2+.
2866
2867 2012-06-10  Jim Meyering  <meyering@redhat.com>
2868
2869         maint.mk: prohibit common grammar error: "all these"
2870         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2871         the list of prohibited word sequences.  It should be "all of these".
2872         * lib/tempname.c (__gen_tempname): Fix one of them.
2873
2874 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2875
2876         do-release-commit-and-tag: support VPATH builds
2877         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2878         (noteworthy): Defined earlier to factor its value.
2879         (noteworthy_stub): New.
2880         Use it to factor.
2881         (help_version): Split into...
2882         (help, version): these.
2883         Adjust the option processing part.
2884         Support "--option=value" in addition to "--option value".
2885         (builddir): New.
2886         (--builddir): New option.
2887         * top/README-release: Document this.
2888         Reword slightly so that the reader cannot understand that he
2889         has to do these steps before calling do-release-commit-and-tag.
2890
2891 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2892
2893         readme-release: also require announce-gen and maintainer-makefile
2894         * modules/readme-release (Depends-on): here.
2895         * modules/announce-gen, modules/do-release-commit-and-tag,
2896         modules/gnu-web-doc-update, modules/maintainer-makefile
2897         (Description): Point to readme-release.
2898
2899 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2900
2901         maint.mk: fix VPATH issues.
2902         * top/maint.mk (news-check): GNU Make understand $< very well.
2903         (release-prep): NEWS is in $(srcdir).
2904
2905 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2906
2907         readme-release: require the promoted modules.
2908         * modules/readme-release (Depends-on): Add
2909         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2910         in this text.
2911
2912 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2913             Bruno Haible  <bruno@clisp.org>
2914
2915         error, strerror-override: Support mingw64 from Fedora 17.
2916         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2917         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2918         EINPROGRESS.
2919         * lib/strerror-override.h (strerror_override): Test it.
2920         * lib/strerror-override.c (strerror_override): Likewise.
2921         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2922
2923 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2924             Bruno Haible  <bruno@clisp.org>
2925
2926         error, strerror-override: Support mingw64 from Fedora 17.
2927         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2928         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2929         * lib/strerror-override.h (strerror_override): Test it.
2930         * lib/strerror-override.c (strerror_override): Likewise.
2931
2932 2012-06-03  Bruno Haible  <bruno@clisp.org>
2933
2934         error, strerror-override: Support new errno values from POSIX:2008.
2935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2936         ENOTRECOVERABLE.
2937         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2938         platforms.
2939         * lib/strerror-override.c (strerror_override): Conditionalize the
2940         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2941         * lib/strerror-override.h (strerror_override): Declare also if
2942         GNULIB_defined_EOWNERDEAD is defined.
2943         * tests/test-errno.c (e130, e131): New variables.
2944         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2945         ENOTRECOVERABLE.
2946         Reported by Paolo Bonzini.
2947
2948 2012-05-31  Jim Meyering  <meyering@redhat.com>
2949
2950         savewd: add missing dependency on sys_wait module
2951         * modules/savewd (Depends-on): Add sys_wait, needed at least
2952         for MSVC.  Report and suggested change by Michael Goffioul.
2953
2954 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         system-quote-tests: port to CentOS 5
2957         Problem reported by Tom G. Christensen in
2958         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2959         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2960
2961 2012-05-29  Jim Meyering  <meyering@redhat.com>
2962
2963         maint: fix typos in comments and ChangeLog
2964         Culprits identified and fixed mostly automatically using these commands:
2965         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2966         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2967         using http://github.com/lyda/misspell-check
2968         * ChangeLog: Fix typos.
2969         * doc/solaris-versions: Likewise.
2970         * lib/regexec.c (re_search_stub): Likewise.
2971         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2972
2973 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2974
2975         manywarnings: remove duplicate -Wmultichar entry
2976         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2977         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2978         so keep the entry marked as documented.
2979
2980 2012-05-27  Karl Berry  <karl@gnu.org>
2981
2982         * config/srclist.txt (mktime.c): remove last libc sync,
2983         perhaps just temporarily.
2984
2985 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2986
2987         regex: don't assume uint64_t or uint32_t
2988         * lib/regcomp.c (init_word_char): Don't assume that the types
2989         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2990         them, and on some 32-bit compilers there is no uint64_t.
2991         Problem reported by Gianluigi Tiesi in
2992         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2993
2994 2012-05-25  Jim Meyering  <meyering@redhat.com>
2995
2996         maint.mk: add strncpy-prohibiting syntax-check rule
2997         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2998
2999 2012-05-24  Jim Meyering  <meyering@redhat.com>
3000
3001         maint.mk: compute $(gpg_key_ID) more portably
3002         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3003         That use of sed is not portable to some fringe systems.
3004         Reported by Paul Eggert in
3005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3006
3007 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3008
3009         mktime: sync from glibc
3010         * config/srclist.txt: Uncomment mktime.c.
3011         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3012         First, indent with tabs, since glibc uses tabs and doesn't want to
3013         change and we'd rather be identical to glibc.  Also, two small
3014         coding changes:
3015         (isdst_differ): Use &&, not &, as && is the usual style.
3016         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3017         for clarity.
3018
3019 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3020
3021         announce-gen: du -h is more portable than du --human
3022         * build-aux/announce-gen (sizes): Invoke du with -h instead
3023         of --human.  Accept leading white space in its output.
3024
3025 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3026
3027         announce-gen: Improve diagnostics.
3028         * build-aux/announce-gen: When parsing command line options,
3029         prefer "announce-gen: option --release-type requires an argument"
3030         to "Option release-type requires an argument".
3031
3032 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3033
3034         maint.mk: gpg_key_ID: use sed more portably
3035         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3036         the closing brace.
3037         (refresh-po): Fuse two sed invocations into one.
3038
3039 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3040
3041         gitlog-to-changelog: support the log message format used in Bison.
3042         * build-aux/gitlog-to-changelog: Support --strip-tab and
3043         --strip-cherry-picked.
3044
3045 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3046
3047         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3048         the rest of the current time slice to another thread in the current
3049         process. So if the thread that feeds the file decscriptor we're
3050         polling is not in the current process, we get busy-waiting.
3051         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3052         Patch from Theodore Leblond.
3053         * lib/select.c: Split polling out of the loop that sets the output
3054         fd_sets.  Check for zero result and loop if the wait timeout is
3055         infinite.
3056
3057 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3058
3059         select: Fix build error on IRIX 6.5.
3060         * lib/select.c: Include stddef.h for NULL.
3061
3062 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3063
3064         gc: fix libgcrypt detection on older machines.
3065         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3066         copyright years because the file has been distributed every year
3067         since it was created.
3068
3069 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3070
3071         crypto: fix bug in large buffer handling
3072         Problem reported by Serge Belyshev for glibc in
3073         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3074         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3075         * lib/md4.c (md4_process_block):
3076         * lib/md5.c (md5_process_block):
3077         * lib/sha1.c (sha1_process_block):
3078         * lib/sha256.c (sha256_process_block):
3079         Don't assume the buffer length is less than 2**32.
3080         * lib/sha512.c (sha512_process_block): Likewise.
3081         Here, the bug is present only in the rare case where the host does
3082         not support uint64_t or where size_t is wider than 64 bits.
3083         Use u64size to work around the problems.
3084         * lib/u64.h (u64size): New macro.
3085
3086 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3087
3088         fsusage: fix block size returned on older Linux 2.6
3089
3090         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3091         which is available since Linux 2.6.
3092         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3093         when the member is available so it can be used as a fallback.
3094         * doc/posix-functions/statvfs.texi: Mention the hang issue
3095         on Linux < 2.6.36.
3096
3097 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3098
3099         bootstrap: suppress stderr chatter
3100         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3101         Omit unnecessary chatter to stderr.  The main program chatter
3102         was there only inadvertantly.
3103
3104         bootstrap: .gitignore files created by autopoint, libtool
3105         I ran into this problem when bootstrapping the latest diffutils.
3106         After './bootstrap', 'git status' reported lots of untracked files
3107         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3108         autopoint and do not need to be version-controlled.
3109         * build-aux/bootstrap: Put into .gitignore the files that
3110         autopoint and libtool create, by keeping track of files that exist
3111         after but not before these programs are run.
3112         (version_controlled_file): Move up.  2nd arg is now full file
3113         name, not base name; this is more convenient.  Put CVS at the end,
3114         as it's now somewhat deprecated.
3115
3116 2012-05-14  Jim Meyering  <meyering@redhat.com>
3117
3118         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3119         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3120         definition.  Reported by Bruno Haible.
3121
3122 2012-05-13  Bruno Haible  <bruno@clisp.org>
3123             Paul Eggert  <eggert@cs.ucla.edu>
3124
3125         binary-io: Define set_binary_mode function.
3126         * lib/binary-io.h (set_binary_mode): New function.
3127         (SET_BINARY): Define in terms of set_binary_mode.
3128         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3129         * tests/test-binary-io.c (main): Accept an argument, and test either
3130         set_binary_mode or SET_BINARY depending on the argument.
3131         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3132         argument. Clean up also t-bin-out0.tmp.
3133
3134 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3135
3136         bootstrap: take advantage of POSIX shell features
3137
3138         The 'bootstrap' script offered by Gnulib script already uses POSIX
3139         shell features (like $((...)) arithmetic expansions) that are not
3140         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3141         means that bootstrap must already be run using a proper POSIX shell,
3142         which will thus provide more features, like ${var#pattern} parameter
3143         expansion or inversion of a command exit status with '!'.  We can
3144         thus use these features to improve the clarity and the performances
3145         of the bootstrap script.
3146
3147         Suggested by Eric Blake.
3148
3149         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3150         of sed/expr plus command substitutions, to save some forks.  While
3151         we are at it, prefer the POSIX $(...) form of command substitution,
3152         rather than the legacy form `...` (since the former is visually
3153         clearer and interacts better with quoting), and prefer the idiom:
3154           "if ! CMD; then ACTION ..."
3155         over the idiom:
3156           "if CMD; then :; else ACTION ..."
3157         which was required by legacy Bourne shells not supporting '!'.
3158
3159 2012-05-12  Bruno Haible  <bruno@clisp.org>
3160
3161         system-quote: Add more comments.
3162         * lib/system-quote.h: Add more comments about wilcards and limitations.
3163         Suggested by Eli Zaretskii <eliz@gnu.org>.
3164
3165         sh-quote, system-quote: Add comments about wildcards.
3166         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3167         * lib/system-quote.h: Likewise.
3168         Reported by Eli Zaretskii <eliz@gnu.org>.
3169
3170 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3171
3172         fsusage: check for GNU/Linux statvfs problem dynamically
3173         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3174         Define STAT_STATFS2_BSIZE too, since in this case the code now
3175         checks dynamically whether statvfs is reliable, falling back on
3176         Linux-style statfs otherwise.
3177         (statvfs_works): New function, for dynamically testing statvfs.
3178         (get_fs_usage) [STAT_STATVFS]: Use it.
3179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3180         statvfs on GNU/Linux hosts, since it's now done dynamically.
3181
3182 2012-05-10  Bruno Haible  <bruno@clisp.org>
3183
3184         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3185         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3186         '?' character.
3187         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3188         * tests/test-system-quote-main.c (check_all): Check also strings like
3189         "??????????".
3190         Reported by Eli Zaretskii <eliz@gnu.org>.
3191
3192 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3193
3194         _Noreturn: port config.h to gcc -Wundef
3195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3196         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3198
3199 2012-05-10  Bruno Haible  <bruno@clisp.org>
3200
3201         system-quote: Refactor.
3202         * lib/system-quote.h (system_quote_copy): Fix comment.
3203         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3204         New functions, extracted from system_quote_copy.
3205         (system_quote_length, system_quote_copy): Use these functions.
3206         Reported by Paul Eggert.
3207
3208 2012-05-08  Bruno Haible  <bruno@clisp.org>
3209
3210         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3211         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3212
3213 2012-05-08  Bruno Haible  <bruno@clisp.org>
3214
3215         Tests for module 'system-quote'.
3216         * modules/system-quote-tests: New file.
3217         * tests/test-system-quote.sh: New file.
3218         * tests/test-system-quote-main.c: New file.
3219         * tests/test-system-quote-child.c: New file.
3220
3221         New module 'system-quote'.
3222         * lib/system-quote.h: New file.
3223         * lib/system-quote.c: New file.
3224         * modules/system-quote: New file.
3225
3226 2012-05-08  Bruno Haible  <bruno@clisp.org>
3227
3228         sh-quote: Make C++ safe and allow multiple inclusion.
3229         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3230         declarations in extern "C".
3231
3232 2012-05-08  Bruno Haible  <bruno@clisp.org>
3233
3234         sh-quote tests: Make tests stricter.
3235         * tests/test-sh-quote.c (check_one): Check the return value of
3236         shell_quote_copy.
3237         (main): Check a string with a CR character. Check a string that
3238         contains UCHAR_MAX.
3239
3240 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3241
3242         warnings.m4: provide a means to specify the program to compile.
3243         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3244         (gl_WARN_ADD): here.
3245         Use gl_AS_VAR_APPEND.
3246         Support an argument to specify the program to compile.
3247         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3248         AC_SUBST the WARN_CFLAGS when they are used.
3249         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3250         leave this to gl_WARN_ADD.
3251
3252 2012-05-08  Eric Blake  <eblake@redhat.com>
3253
3254         doc: recommendations on gettext version
3255         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3256         choice between versions.
3257         * DEPENDENCIES (gettext): Cover both approaches.
3258
3259 2012-05-08  Jim Meyering  <meyering@redhat.com>
3260
3261         init.sh: explain why EXEEXT support uses aliases rather than functions
3262         * tests/init.sh: Add a comment.
3263
3264         init.sh: don't let bash aliases interfere with tests
3265         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3266         is bash.  This avoids problems for those who alias standard commands to
3267         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3268         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3269
3270 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         stdint: be more consistent with glibc, SunOS libc
3273         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3274         (gl_int_fast16_t, gl_uint_fast16_t)
3275         (gl_int_fast32_t, gl_uint_fast32_t)
3276         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3277         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3278         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3279         Be consistent with glibc by default, and with SunOS 5.10 and later
3280         if __sun is defined.  This lessens the likelihood of clashes if
3281         code compiled for older hosts is combined with code compiled for
3282         newer ones.  Problem reported by Niels Möller in
3283         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3284
3285 2012-05-07  Eric Blake  <eblake@redhat.com>
3286
3287         isatty: relax license to LGPLv2+
3288         * modules/isatty (License): Relax license.
3289
3290 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3291
3292         stat-size: comment fix
3293         * lib/stat-size.h: Remove obsolete comment about indenting.
3294
3295 2012-05-06  Bruno Haible  <bruno@clisp.org>
3296
3297         Tests for module 'sh-quote'.
3298         * modules/sh-quote-tests: New file.
3299         * tests/test-sh-quote.c: New file.
3300
3301 2012-05-06  Bruno Haible  <bruno@clisp.org>
3302
3303         sh-quote: Improve shell_quote_argv's signature.
3304         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3305         * lib/sh-quote.c (shell_quote_argv): Likewise.
3306
3307 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3308
3309         stdint: document issues with int_fast8_t etc.
3310         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3311         stdint.h substitutes may define these types differently.  See
3312         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3313
3314 2012-05-05  Bruno Haible  <bruno@clisp.org>
3315
3316         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3317         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3318         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3319         or 'guessing no (mishandles large arguments)'.
3320
3321 2012-05-05  Bruno Haible  <bruno@clisp.org>
3322
3323         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3324         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3325         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3326         set gl_cv_func_link_follows_symlink to "guessing no".
3327
3328 2012-05-05  Bruno Haible  <bruno@clisp.org>
3329
3330         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3331         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3332         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3333         "guessing no".
3334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3335
3336 2012-05-05  Bruno Haible  <bruno@clisp.org>
3337
3338         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3339         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3340         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3341         set gl_cv_struct_dirent_d_ino to "guessing yes".
3342
3343 2012-05-05  Bruno Haible  <bruno@clisp.org>
3344
3345         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3346         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3347         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3348         "guessing yes".
3349
3350 2012-05-05  Bruno Haible  <bruno@clisp.org>
3351
3352         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3353         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3354         compiling to a glibc system, set gl_cv_func_signbit and
3355         gl_cv_func_signbit_gcc to "guessing yes".
3356
3357 2012-05-05  Bruno Haible  <bruno@clisp.org>
3358
3359         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3360         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3361         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3362         to "guessing yes".
3363         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3364         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3365
3366 2012-05-05  Bruno Haible  <bruno@clisp.org>
3367
3368         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3369         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3370         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3371         gl_cv_func_realpath_works to "guessing yes".
3372
3373 2012-05-05  Bruno Haible  <bruno@clisp.org>
3374
3375         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3377         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3378
3379 2012-05-04  Bruno Haible  <bruno@clisp.org>
3380
3381         Tweak last commit.
3382         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3383         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3384
3385 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3386
3387         unistd_h: make it easier to avoid sys_types_h
3388         This is useful for Emacs, which has its own method of porting to
3389         Windows, and which therefore does not need the sys_types_h module.
3390         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3391         code moved here from gl_SYS_TYPES_H.
3392         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3393         using the code directly.
3394         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3395         gl_SYS_TYPES_H.
3396         * modules/sys_types (Files):
3397         * modules/unistd (Files): Add m4/off_t.m4.
3398
3399 2012-05-03  Bruno Haible  <bruno@clisp.org>
3400
3401         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3402         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3403         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3404         "guessing yes" or "guessing no".
3405         (gl_FUNC_LSTAT): Update.
3406         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3407         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3408         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3409
3410 2012-05-03  Bruno Haible  <bruno@clisp.org>
3411
3412         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3413         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3414         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3415         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3416         cross-compiling, choose the first alternative on glibc systems.
3417         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3418
3419 2012-05-03  Bruno Haible  <bruno@clisp.org>
3420
3421         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3422         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3423         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3424
3425 2012-05-03  Bruno Haible  <bruno@clisp.org>
3426
3427         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3428         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3429
3430 2012-05-03  Bruno Haible  <bruno@clisp.org>
3431
3432         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3433         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3434         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3435         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3436         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3437         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3438         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3439         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3440         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3441         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3442         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3443         gl_cv_func_chown_ctime_works to "guessing yes".
3444         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3445         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3446         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3447         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3448         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3450         compiling to glibc systems, set gl_cv_func_open_directory_works to
3451         "guessing yes".
3452         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3453         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3454         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3455         "guessing yes".
3456         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3457         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3458         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3459         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3460         "guessing yes".
3461         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3462         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3463         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3464         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3465         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3466         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3467         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3468         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3469         "guessing yes".
3470         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3471         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3472         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3473         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3474         "guessing yes".
3475         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3476         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3477         "guessing yes".
3478         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3479         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3480         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3481         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3482         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3483         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3484         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3485         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3486         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3487         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3488         "guessing yes".
3489         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3490         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3491         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3492         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3493         "guessing yes".
3494         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3495         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3496         "guessing yes".
3497         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3498         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3499         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3500         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3501         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3502         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3503         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3504         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3505         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3506         "guessing yes".
3507         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3508         compiling to glibc systems, set gl_cv_func_mknod_works to
3509         "guessing yes".
3510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3511         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3512         "guessing yes".
3513         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3514         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3515         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3516         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3517         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3518         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3519         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3520         compiling to glibc systems, set gl_cv_func_svid_putenv to
3521         "guessing yes".
3522         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3523         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3524         "guessing yes".
3525         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3526         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3527         "guessing yes".
3528         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3529         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3530         to "guessing yes".
3531         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3532         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3533         to "guessing yes".
3534         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3535         compiling to glibc systems, set gl_cv_func_rmdir_works to
3536         "guessing yes".
3537         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3538         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3539         gl_cv_func_unlink_parent_fails to "guessing yes".
3540         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3541         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3542         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3543         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3544         gl_cv_func_rename_dest_works to "guessing yes".
3545         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3546         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3548         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3549         "guessing yes".
3550         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3551         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3552         "guessing yes".
3553         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3554         compiling to glibc systems, set gl_cv_func_setenv_works to
3555         "guessing yes".
3556         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3557         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3558         "guessing yes".
3559         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3560         compiling to glibc systems, set gl_cv_func_sleep_works to
3561         "guessing yes".
3562         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3563         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3564         "guessing yes".
3565         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3566         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3567         "guessing yes".
3568         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3569         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3570         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3571         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3572         "guessing yes".
3573         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3574         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3575         "guessing yes".
3576         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3577         compiling to glibc systems, set gl_cv_func_usleep_works to
3578         "guessing yes".
3579         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3580         compiling to glibc systems, set gl_cv_func_futimesat_works to
3581         "guessing yes".
3582
3583 2012-05-03  Bruno Haible  <bruno@clisp.org>
3584
3585         Say "guessing yes" or "guessing no" when cross-compiling.
3586         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3587         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3588         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3589         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3590         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3591         am_cv_func_working_getline to "guessing yes" or "guessing no".
3592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3593         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3594         (gl_FUNC_MEMMEM): When cross-compiling, set
3595         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3597         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3599         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3600         "guessing no".
3601         (gl_FUNC_STRCASESTR): When cross-compiling, set
3602         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3603         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3604         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3605         (gl_FUNC_STRSTR): When cross-compiling, set
3606         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3607         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3608         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3609         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3610         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3611
3612 2012-05-01  Bruno Haible  <bruno@clisp.org>
3613
3614         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3615         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3616         * build-aux/reloc-ldflags: Likewise.
3617         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3618
3619 2012-05-01  Bruno Haible  <bruno@clisp.org>
3620
3621         gnulib-tool: Remove transitional code.
3622         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3623         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3624
3625 2012-05-01  Bruno Haible  <bruno@clisp.org>
3626
3627         getcwd: Fix misindentation.
3628         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3629
3630 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3631
3632         exclude: process exclude and include directives in order
3633         This restores the pre-2009 behavior, and is part of a fix of a
3634         grep bug reported by Quentin Arce in
3635         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3636         * lib/exclude.c (struct exclude): Remove 'tail' member.
3637         (new_exclude_segment): Prepend the new segment instead of appending.
3638         Return void, since that's now more convenient.
3639         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3640         (file_name_matches): Renamed from excluded_file_name_p.
3641         (file_pattern_matches, file_name_matches):
3642         Return true if the pattern matches, not if it excludes.
3643         All callers changed.
3644         (excluded_file_name): Process the list in reverse order;
3645         since the list is now reversed this restores the pre-2009 behavior.
3646         (add_exclude): Adjust to new reversed-order list.  Use local var
3647         rather than macro, for clarity.
3648         * tests/test-exclude7.sh: Adjust to corrected behavior.
3649
3650         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3651         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3652         it's not possible here.  Handle the case of \ at end of pattern
3653         without dumping core.
3654         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3655
3656         _Noreturn: future-proof non-GNU and non-MSVC compilers
3657         * build-aux/snippet/_Noreturn.h (_Noreturn):
3658         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3659         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3660         C11 or later.  This is more likely to work with random future C
3661         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3662         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3663
3664         exclude: handle wildcards with FNM_EXTMATCH
3665         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3666         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3667         comment that "has wildcards" really means "has or may have
3668         wildcards".  Simplify by avoiding the need to call strcspn.
3669
3670 2012-04-29  Bruno Haible  <bruno@clisp.org>
3671
3672         gnulib-tool: Fix list of authors.
3673         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3674
3675 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3676
3677         bootstrap: support Automake-NG in $buildreq
3678         * bootstrap (check_versions): Handle automake and aclocal from
3679         Automake-NG specially.  They can be specified as respectively
3680         the "automake-ng" and "aclocal-ng" requirements.
3681
3682 2012-04-25  Eric Blake  <eblake@redhat.com>
3683
3684         bootstrap: only force latest Makefile.in.in for gettext module
3685         * build-aux/bootstrap (with_gettext): Only install latest
3686         Makefile.in.in for projects requesting bleeding edge gettext.
3687
3688 2012-04-22  Bruno Haible  <bruno@clisp.org>
3689
3690         doc: Mention reason for replacement on glibc/Linux systems.
3691         * doc/posix-functions/dprintf.texi: Mention the problem with special
3692         'long double' values.
3693         * doc/posix-functions/fprintf.texi: Likewise.
3694         * doc/posix-functions/printf.texi: Likewise.
3695         * doc/posix-functions/snprintf.texi: Likewise.
3696         * doc/posix-functions/sprintf.texi: Likewise.
3697         * doc/posix-functions/vdprintf.texi: Likewise.
3698         * doc/posix-functions/vfprintf.texi: Likewise.
3699         * doc/posix-functions/vprintf.texi: Likewise.
3700         * doc/posix-functions/vsnprintf.texi: Likewise.
3701         * doc/posix-functions/vsprintf.texi: Likewise.
3702         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3703         platforms with F_DUPFD_CLOEXEC problems.
3704         * doc/posix-functions/glob.texi: Mention which platforms are affected
3705         by the problem with symbolic links.
3706         * doc/posix-functions/linkat.texi: Mention the problem with
3707         AT_SYMLINK_FOLLOW on Linux.
3708
3709 2012-04-22  Bruno Haible  <bruno@clisp.org>
3710
3711         pwrite: Don't replace on all platforms.
3712         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3713
3714 2012-04-22  Bruno Haible  <bruno@clisp.org>
3715
3716         rint* tests: Avoid gcc warnings.
3717         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3718         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3719         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3720
3721 2012-04-21  Bruno Haible  <bruno@clisp.org>
3722
3723         users.txt: Update.
3724         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3725         switched from CVS to git, bzr, or svn.
3726
3727 2012-04-21  Bruno Haible  <bruno@clisp.org>
3728
3729         Large File Support for native Windows platforms.
3730
3731         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3732         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3733
3734         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3735         type.
3736         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3737         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3738         * doc/posix-headers/sys_types.texi: Mention the effect of the
3739         'largefile' module.
3740
3741         * lib/fcntl.in.h: Add comments about off_t.
3742         * modules/fcntl-h (Depends-on): Add sys_types.
3743
3744         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3745         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3746         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3747         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3748         * modules/unistd (Depends-on): Add sys_types.
3749         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3750
3751         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3752         instead of lseek.
3753         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3754         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3755         * modules/lseek (Depends-on): Add sys_types.
3756
3757         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3758         msvc-nothrow.h.
3759         (SetFileSize): New function.
3760         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3761         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3762         if Large File Support is requested.
3763         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3764         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3765
3766         * lib/stdio.in.h: Add comments about off_t.
3767         * modules/stdio (Depends-on): Add sys_types.
3768
3769         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3770         instead of ftello.
3771         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3772         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3773         (gl_PREREQ_FTELLO): New macro.
3774         * modules/ftello (Depends-on): Add sys_types.
3775         (configure.ac): Incoke gl_PREREQ_FTELLO.
3776
3777         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3778         instead of fseeko.
3779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3780         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3781         (gl_PREREQ_FSEEKO): New macro.
3782         * modules/fseeko (Depends-on): Add sys_types.
3783         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3784
3785         * lib/sys_stat.in.h: Add comments about off_t.
3786         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3787         64-bit integer for st_size in 'struct stat'.
3788         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3789         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3790         * modules/sys_stat (Depends-on): Add sys_types.
3791         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3792
3793         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3794         instead of stat or _stat.
3795
3796         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3797         'struct _stati64' instead of fstat and 'struct stat'.
3798         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3799         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3800
3801         Reported by Ray Satiro <raysatiro@yahoo.com>.
3802
3803 2012-04-19  Eric Blake  <eblake@redhat.com>
3804
3805         bootstrap: accommodate older libtool
3806         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3807         Reported by Daniel P. Berrange.
3808
3809 2012-04-19  Jim Meyering  <meyering@redhat.com>
3810
3811         announce-gen: avoid failure due to lack of Digest::SHA1
3812         Even with the preferred Digest::SHA available, this script
3813         would fail when the backup module, Digest::SHA1, was not installed.
3814         * build-aux/announce-gen: Quote the conditional use of "use".
3815         Reported by Reuben Thomas in:
3816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3817
3818         bootstrap: don't let a user's CDPATH setting affect this script
3819         When CDPATH is set, cd will sometimes generate output.
3820         When "cd" is run in a subshell whose output matters, that
3821         surprising-to-some output can cause malfunction.
3822         Unsetting CDPATH turns off this shell "feature."
3823         * build-aux/bootstrap (CDPATH): Unset.
3824         Reported by Reuben Thomas in:
3825         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3826         and inspired by his patch here:
3827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3828
3829 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3830         and Jim Meyering  <meyering@redhat.com>
3831
3832         maint.mk: catch "see @xref{}" and similar
3833         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3834         prohibit "See also @xref{", "Also see @pxref{", and similar.
3835
3836 2012-04-16  Jim Meyering  <meyering@redhat.com>
3837
3838         bootstrap: really use gnulib's po/Makefile.in.in
3839         * build-aux/bootstrap: Correct the source file name in previous change.
3840         Reported by Akim Demaille.
3841
3842         configmake: correct minor inconsistency in Makefile rule
3843         * modules/configmake (Makefile.am): All other rules like this one
3844         run the final "mv -f ..." in the same backslash-continued command
3845         as the one that does everything else.  This one put the mv -f ...
3846         command on a separate, non-backslash-continued line.
3847         Make it like the others.
3848
3849         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3850         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3851         the one from gettext.  Reported by Akim Demaille.
3852
3853 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3854
3855         Fix recursion of install-* into po directories.
3856         Bison's install-pdf bug reported by Hans Aberg at
3857         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3858         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3859         (install-info, install-pdf, install-ps): New targets.
3860
3861 2012-04-16  Jim Meyering  <meyering@redhat.com>
3862
3863         maint: avoid spurious "make sc_maint" failure
3864         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3865         exempt all *.class file names, for lib/javaversion.class.
3866
3867 2012-04-15  Bruno Haible  <bruno@clisp.org>
3868
3869         lseek: Make configure test independent of environment.
3870         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3871         Windows, we know that lseek() on pipes is broken; skip the runtime
3872         test.
3873
3874 2012-04-14  Bruno Haible  <bruno@clisp.org>
3875
3876         stat: Bypass buggy override in mingw64.
3877         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3878         * lib/stat.c (stat) [mingw64]: Define to _stat.
3879         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3880
3881 2012-04-14  Bruno Haible  <bruno@clisp.org>
3882
3883         pathmax: Fix compilation error on MSVC 9.
3884         * modules/pathmax (Depends-on): Add unistd.
3885
3886 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3887
3888         README: document pointer comparison assumption
3889         * README (Portability guidelines): Document assumption about
3890         pointer comparisons, in response to a recent bug-gnulib comment by
3891         Jeffrey Kegler.
3892
3893 2012-04-12  Bruno Haible  <bruno@clisp.org>
3894
3895         Tests for module 'getrusage'.
3896         * modules/getrusage-tests: New file.
3897         * tests/test-getrusage.c: New file.
3898
3899         New module 'getrusage'.
3900         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3901         warn-on-use.h.
3902         (getrusage): New declaration.
3903         * lib/getrusage.c: New file.
3904         * m4/getrusage.m4: New file.
3905         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3906         is declared.
3907         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3908         HAVE_GETRUSAGE.
3909         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3910         snippet/c++defs, snippet/warn-on-use.
3911         (Makefile.am): Update generation of sys/resource.h. Substitute
3912         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3913         * modules/getrusage: New file.
3914         * doc/posix-functions/getrusage.texi: Mention the new module.
3915
3916 2012-04-12  Bruno Haible  <bruno@clisp.org>
3917
3918         Tests for module 'sys_resource'.
3919         * modules/sys_resource-tests: New file.
3920         * tests/test-sys_resource.c: New file.
3921
3922         New module 'sys_resource'.
3923         * lib/sys_resource.in.h: New file.
3924         * m4/sys_resource_h.m4: New file.
3925         * modules/sys_resource: New file.
3926         * doc/posix-headers/sys_resource.texi: Mention the new module.
3927
3928 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3929
3930         ioctl: Fix compilation error on mingw.
3931         * lib/ioctl.c: Include <windows.h>.
3932         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3933
3934 2012-04-04  Jim Meyering  <meyering@redhat.com>
3935
3936         regex: correct #pragma guard expression
3937         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3938         not 4.3.  Correct its cpp guard expression.
3939
3940 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3941
3942         regex: remove unnecessary type punning
3943         Problem reported by Vladimir Serbinenko in
3944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3945         * lib/regex.h (struct re_pattern_buffer): Change the type of
3946         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3947         Fix comment to match code.
3948         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3949         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3950         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3951         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3952         (set_regs):
3953         Omit no-longer-necessary casts.
3954
3955 2012-04-03  Bruno Haible  <bruno@clisp.org>
3956
3957         Tests for module 'ilogbl'.
3958         * modules/ilogbl-tests: New file.
3959         * tests/test-ilogbl.c: New file.
3960
3961         New module 'ilogbl'.
3962         * lib/math.in.h (ilogbl): New declaration.
3963         * lib/ilogbl.c: New file.
3964         * m4/ilogbl.m4: New file.
3965         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3967         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3968         Split sed invocation, to avoid the limit of 100 substitutions of
3969         HP-UX 'sed'.
3970         * modules/ilogbl: New file.
3971         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3972         * doc/posix-functions/ilogbl.texi: Mention the new module.
3973
3974 2012-04-03  Bruno Haible  <bruno@clisp.org>
3975
3976         Tests for module 'ilogbf'.
3977         * modules/ilogbf-tests: New file.
3978         * tests/test-ilogbf.c: New file.
3979
3980         New module 'ilogbf'.
3981         * lib/math.in.h (ilogbf): New declaration.
3982         * lib/ilogbf.c: New file.
3983         * m4/ilogbf.m4: New file.
3984         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3986         REPLACE_ILOGBF.
3987         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3988         REPLACE_ILOGBF.
3989         * modules/ilogbf: New file.
3990         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3991         * doc/posix-functions/ilogbf.texi: Mention the new module.
3992
3993 2012-04-03  Bruno Haible  <bruno@clisp.org>
3994
3995         Tests for module 'ilogb'.
3996         * modules/ilogb-tests: New file.
3997         * tests/test-ilogb.c: New file.
3998         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3999         tests/test-logb-ieee.h.
4000
4001         New module 'ilogb'.
4002         * lib/math.in.h (ilogb): New declaration.
4003         * lib/ilogb.c: New file.
4004         * m4/ilogb.m4: New file.
4005         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4007         REPLACE_ILOGB.
4008         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4009         REPLACE_ILOGB.
4010         * modules/ilogb: New file.
4011         * tests/test-math-c++.cc: Check the declaration of ilogb.
4012         * doc/posix-functions/ilogb.texi: Mention the new module.
4013
4014 2012-04-03  Bruno Haible  <bruno@clisp.org>
4015
4016         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4017         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4018         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4019         (main): Check their values.
4020         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4021         problem.
4022
4023 2012-04-03  Bruno Haible  <bruno@clisp.org>
4024
4025         Tests for module 'logbl-ieee'.
4026         * modules/logbl-ieee-tests: New file.
4027         * tests/test-logbl-ieee.c: New file.
4028
4029         New module 'logbl-ieee'.
4030         * modules/logbl-ieee: New file.
4031
4032         Tests for module 'logb-ieee'.
4033         * modules/logb-ieee-tests: New file.
4034         * tests/test-logb-ieee.c: New file.
4035
4036         New module 'logb-ieee'.
4037         * modules/logb-ieee: New file.
4038
4039         Tests for module 'logbf-ieee'.
4040         * modules/logbf-ieee-tests: New file.
4041         * tests/test-logbf-ieee.c: New file.
4042         * tests/test-logb-ieee.h: New file.
4043
4044         New module 'logbf-ieee'.
4045         * modules/logbf-ieee: New file.
4046
4047 2012-04-03  Bruno Haible  <bruno@clisp.org>
4048
4049         Tests for module 'logbl'.
4050         * modules/logbl-tests: New file.
4051         * tests/test-logbl.c: New file.
4052
4053         New module 'logbl'.
4054         * lib/math.in.h (logbl): New declaration.
4055         * lib/logbl.c: New file.
4056         * m4/logbl.m4: New file.
4057         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4059         REPLACE_LOGBL.
4060         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4061         REPLACE_LOGBL.
4062         * modules/logbl: New file.
4063         * tests/test-math-c++.cc: Check the declaration of logbl.
4064         * doc/posix-functions/logbl.texi: Mention the new module.
4065
4066 2012-04-02  Bruno Haible  <bruno@clisp.org>
4067
4068         Tests for module 'logbf'.
4069         * modules/logbf-tests: New file.
4070         * tests/test-logbf.c: New file.
4071
4072         New module 'logbf'.
4073         * lib/math.in.h (logbf): New declaration.
4074         * lib/logbf.c: New file.
4075         * m4/logbf.m4: New file.
4076         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4078         REPLACE_LOGBF.
4079         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4080         REPLACE_LOGBF.
4081         * modules/logbf: New file.
4082         * tests/test-math-c++.cc: Check the declaration of logbf.
4083         * doc/posix-functions/logbf.texi: Mention the new module.
4084
4085 2012-04-02  Bruno Haible  <bruno@clisp.org>
4086
4087         logb tests: More tests.
4088         * tests/test-logb.h: New file, based on tests/test-logb.c and
4089         tests/test-frexp.h.
4090         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4091         (main): Just invoke test_function.
4092         * modules/logb-tests (Files): Add tests/test-logb.h,
4093         tests/minus-zero.h, tests/randomd.c.
4094         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4095
4096         logb: Provide replacement and workarounds.
4097         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4098         is 1.
4099         * lib/logb.c: New file.
4100         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4101         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4103         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4104         * modules/logb (Files): Add lib/logb.c.
4105         (Depends-on): Add isfinite, frexp, isnand.
4106         (configure.ac): Compile the replacement code logb.c if needed.
4107         * tests/test-math-c++.cc: Check the declaration of logb.
4108         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4109         with subnormal numbers.
4110
4111 2012-04-02  Bruno Haible  <bruno@clisp.org>
4112
4113         log10* tests: Speed up.
4114         * tests/test-log10.h (test_function): Reduce amount of random numbers
4115         to test.
4116
4117 2012-04-01  Bruno Haible  <bruno@clisp.org>
4118
4119         logf-ieee: Fix test whether logf works.
4120         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4121
4122 2012-04-01  Bruno Haible  <bruno@clisp.org>
4123
4124         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4125         * lib/log10l.c: Include <float.h>
4126         (log10l): On IRIX, normalize the +Infinity value.
4127         * modules/log10l (Depends-on): Add 'float'.
4128         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4129         +Infinity.
4130
4131         log10f-ieee: Work around test failure on NetBSD 5.1.
4132         * m4/log10f-ieee.m4: New file.
4133         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4134         test whether log10f works with a negative argument. Replace it if not.
4135         * lib/log10f.c (log10f): For negative arguments, return NaN.
4136         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4137         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4138         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4139
4140         log10f-ieee: Work around test failure on Solaris 9.
4141         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4142         (configure.ac): Require gl_FUNC_LOG10F.
4143
4144         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4145         * m4/log10-ieee.m4: New file.
4146         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4147         whether log10 works with a negative argument. Replace it if not.
4148         * lib/log10.c (log10): For negative arguments, return NaN.
4149         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4150         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4151         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4152
4153         Tests for module 'log10l-ieee'.
4154         * modules/log10l-ieee-tests: New file.
4155         * tests/test-log10l-ieee.c: New file.
4156
4157         New module 'log10l-ieee'.
4158         * modules/log10l-ieee: New file.
4159
4160         Tests for module 'log10-ieee'.
4161         * modules/log10-ieee-tests: New file.
4162         * tests/test-log10-ieee.c: New file.
4163
4164         New module 'log10-ieee'.
4165         * modules/log10-ieee: New file.
4166
4167         Tests for module 'log10f-ieee'.
4168         * modules/log10f-ieee-tests: New file.
4169         * tests/test-log10f-ieee.c: New file.
4170         * tests/test-log10-ieee.h: New file.
4171
4172         New module 'log10f-ieee'.
4173         * modules/log10f-ieee: New file.
4174
4175 2012-04-01  Bruno Haible  <bruno@clisp.org>
4176
4177         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4178         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4179         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4180         workaround.
4181         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4182         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4184         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4185         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4186         (Depends-on): Update conditions.
4187         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4188         IRIX 6.5, OSF/1 5.1 problems.
4189
4190 2012-04-01  Bruno Haible  <bruno@clisp.org>
4191
4192         log10f: Work around OSF/1 5.1 bug.
4193         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4194         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4195         workaround.
4196         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4197         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4199         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4200         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4201         (Depends-on): Update conditions.
4202         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4203
4204 2012-04-01  Bruno Haible  <bruno@clisp.org>
4205
4206         log10: Work around OSF/1 5.1 bug.
4207         * lib/math.in.h (log10): New declaration.
4208         * lib/log10.c: New file.
4209         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4210         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4211         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4213         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4214         * modules/log10 (Files): Add lib/log10.c.
4215         (Depends-on): Add math.
4216         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4217         * tests/test-math-c++.cc: Check the declaration of log10.
4218         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4219
4220 2012-03-31  Bruno Haible  <bruno@clisp.org>
4221
4222         log10l tests: More tests.
4223         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4224         tests/minus-zero.h, tests/randoml.c.
4225         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4226         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4227         (main): Invoke test_function.
4228
4229         log10f tests: More tests.
4230         * modules/log10f-tests (Files): Add tests/test-log10.h,
4231         tests/minus-zero.h, tests/randomf.c.
4232         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4233         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4234         (main): Invoke test_function.
4235
4236         log10 tests: More tests.
4237         * tests/test-log10.h: New file.
4238         * modules/log10-tests (Files): Add tests/test-log10.h,
4239         tests/minus-zero.h, tests/randomd.c.
4240         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4241         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4242         (main): Invoke test_function.
4243
4244 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4245
4246         fflush: Fix syntax error.
4247         * lib/fflush.c: Include unused-parameter.h, needed for
4248         _GL_UNUSED_PARAMETER.
4249         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4250
4251 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4252
4253         regex: pacify GCC when compiling GRUB
4254         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4255         a diagnostic.  Reported by Vladimir Serbinenko in
4256         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4257
4258 2012-03-29  Eric Blake  <eblake@redhat.com>
4259
4260         stdio: don't assume gets any more
4261         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4262         support.
4263         * modules/stdio (Makefile.am): Likewise.
4264         * lib/stdio-read.c (gets): Likewise.
4265         * tests/test-stdio-c++.cc: Likewise.
4266         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4267         * lib/stdio.in.h (gets): Make warning occur in more places.
4268         * doc/posix-functions/gets.texi (gets): Update documentation.
4269         Reported by Christer Solskogen.
4270
4271         maint.mk: fix syntax checks without exclusions
4272         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4273         Reported by Daniel P. Berrange.
4274
4275         strerror_r: avoid compiler warning
4276         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4277         level.
4278
4279         fflush: avoid compiler warning
4280         * lib/fflush.c (update_fpos_cache): Mark variables that are
4281         potentially unused.
4282
4283 2012-03-25  Bruno Haible  <bruno@clisp.org>
4284
4285         Tests for module 'localeconv'.
4286         * modules/localeconv-tests: New file.
4287         * tests/test-localeconv.c: New file.
4288
4289         New module 'localeconv'.
4290         * lib/locale.in.h (localeconv): New declaration.
4291         * lib/localeconv.c: New file.
4292         * m4/localeconv.m4: New file.
4293         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4294         REPLACE_LOCALECONV.
4295         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4296         REPLACE_LOCALECONV.
4297         * modules/localeconv: New file.
4298         * modules/nl_langinfo (Depends-on): Add localeconv.
4299         * modules/human (Depends-on): Likewise.
4300         * doc/posix-functions/localeconv.texi: Mention the new module.
4301
4302 2012-03-25  Bruno Haible  <bruno@clisp.org>
4303
4304         locale: Provide a complete 'struct lconv'.
4305         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4306         'struct lconv' does not contain int_p_cs_precedes.
4307         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4308         * doc/posix-headers/locale.texi: Update.
4309
4310         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4311         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4312         * doc/posix-headers/locale.texi: Update.
4313
4314         locale: Provide a working 'struct lconv'.
4315         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4316         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4317         'struct lconv' does not even contain decimal_point.
4318         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4319         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4320         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4321         * doc/posix-headers/locale.texi: Mention the problems with
4322         'struct lconv'.
4323         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4324
4325 2012-03-24  Bruno Haible  <bruno@clisp.org>
4326
4327         Enable common subexpression optimization in GCC.
4328         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4329         macros.
4330         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4331         GCC attribute 'const'.
4332         (uc_locale_language): Declare with GCC attribute 'pure'.
4333         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4334         with GCC attribute 'const'.
4335         * lib/unictype.in.h (uc_is_general_category_withtable,
4336         uc_combining_class, uc_combining_class_name,
4337         uc_combining_class_long_name, uc_bidi_class_name,
4338         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4339         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4340         uc_decimal_value, uc_digit_value, uc_numeric_value,
4341         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4342         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4343         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4344         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4345         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4346         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4347         Declare with GCC attribute 'const'.
4348         (uc_general_category_name, uc_general_category_long_name,
4349         uc_general_category_byname, uc_general_category,
4350         uc_is_general_category, uc_combining_class_byname,
4351         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4352         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4353         Declare with GCC attribute 'pure'.
4354         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4355         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4356         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4357         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4358         with GCC attribute 'pure'.
4359         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4360         'const'.
4361         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4362         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4363         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4364         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4365         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4366         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4367         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4368         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4369         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4370         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4371         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4372         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4373         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4374         GCC attribute 'pure'.
4375         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4376         'const'.
4377         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4378         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4379         u32_strwidth): Declare with GCC attribute 'pure'.
4380
4381         Enable common subexpression optimization in GCC.
4382         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4383         (alphasort): Declare with GCC attribute 'pure'.
4384         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4385         (atoll): Declare with GCC attribute 'pure'.
4386         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4387         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4388         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4389         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4390         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4391         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4392         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4393
4394 2012-03-24  Bruno Haible  <bruno@clisp.org>
4395
4396         gnulib-tool: Avoid unintended error output from 'cmp'.
4397         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4398         "cmp -s", not "cmp > /dev/null".
4399
4400 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4401
4402         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4403
4404         It's not just Automake versions < 1.9b that creates an empty
4405         pkgdatadir at installation time if pkgdata_DATA is specified
4406         to empty; modern automake versions do this as well, at least
4407         until automake 1.11.4 (not yet released at the moment of writing,
4408         but soon to appear).  That behaviour was generally considered a
4409         feature rather than a bug, at least until this discussion:
4410         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4411
4412         See also automake bugs #10997 and #11030.
4413
4414         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4415         reference to relevant automake bug numbers.
4416         (func_emit_tests_Makefile_am): Likewise.
4417
4418 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4419
4420         announce-gen: use Digest::SHA when possible
4421         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4422         back to Digest::SHA1 if necessary.
4423
4424 2012-03-20  Jim Meyering  <meyering@redhat.com>
4425
4426         tests: avoid gcc warnings about argv vs. const initializers
4427         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4428         warnings about discarding 'const' qualifier from pointer target type.
4429         * tests/test-posix_spawn2.c (main): Likewise.
4430
4431 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4432
4433         README-release: simplify slightly
4434         * top/README-release: Run "git checkout master" only once.
4435
4436 2012-03-15  Mark Wielaard  <mark@klomp.org>
4437
4438         git-merge-changelog: add specific example on how to use with hg.
4439         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4440
4441 2012-03-18  Mark Wielaard  <mark@klomp.org>
4442
4443         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4444
4445 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4446
4447         git-version-gen: don't let "prefix" envvar cause trouble
4448         * build-aux/git-version-gen (prefix): Initialize properly,
4449         so as not to use a value specified via the environment.
4450         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4451
4452 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4453
4454         regex: diagnose too-large repeat counts in EREs
4455         Previously, the code did not diagnose the too-large repeat count
4456         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4457         as if it were 'b\{1000000000}', which is unexpected.
4458         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4459         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4460         is a reasonable one for this problem.  Another option would be to
4461         create a new REG_OVERFLOW error for repeat counts that are too large.
4462         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4463         count is too large, so that the caller can distinguish the two cases.
4464         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4465         "Too large" return code, and that repeat counts are one example of this.
4466
4467 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4468
4469         doc: some glibc x32 integer width issues
4470         * doc/posix-headers/sys_types.texi (sys/types.h):
4471         * doc/posix-headers/time.texi (time.h):
4472         Mention that glibc x32 does not conform to POSIX in a couple of
4473         areas related to integer widths.
4474
4475 2012-03-15  Bruno Haible  <bruno@clisp.org>
4476
4477         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4478         * lib/fma.c (VOLATILE): New macro.
4479         (FUNC): Use it to work around a GCC compiler bug.
4480
4481 2012-03-13  Bruno Haible  <bruno@clisp.org>
4482
4483         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4484         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4485         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4486         REPLACE_HYPOTL to 1.
4487         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4488
4489 2012-03-13  Bruno Haible  <bruno@clisp.org>
4490
4491         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4492         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4493         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4494         REPLACE_REMAINDERL to 1.
4495         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4496         bug.
4497
4498 2012-03-13  Bruno Haible  <bruno@clisp.org>
4499
4500         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4501         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4502         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4503         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4504         too big rounding errors.
4505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4506         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4507         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4508         (Depends-on): Update conditions.
4509         * tests/test-sqrtl.c (my_ldexpl): New function.
4510         (main): Add test of a particular value.
4511         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4512
4513 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4514
4515         doc: Update timer_* platform portability notes.
4516         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4517         that always return ENOSYS.
4518         * doc/posix-functions/timer_delete.texi: Likewise.
4519         * doc/posix-functions/timer_gettime.texi: Likewise.
4520         * doc/posix-functions/timer_settime.texi: Likewise.
4521
4522 2012-03-13  Bruno Haible  <bruno@clisp.org>
4523
4524         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4525         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4526         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4527         REPLACE_CBRTL to 1.
4528         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4529
4530 2012-03-13  Bruno Haible  <bruno@clisp.org>
4531
4532         remainderl: Avoid compilation error on AIX >= 5.2.
4533         * lib/math.in.h (remainderl): Undefine macro from the system header.
4534
4535 2012-03-13  Bruno Haible  <bruno@clisp.org>
4536
4537         Avoid compilation errors with MSVC option -fp:strict.
4538         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4539         * lib/cbrtf.c: Likewise.
4540         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4541
4542 2012-03-12  Bruno Haible  <bruno@clisp.org>
4543
4544         uninorm: Don't crash in out-of-memory conditions.
4545         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4546         gracefully.
4547         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4548         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4549
4550 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4551
4552         quote: fix syntax-check
4553         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4554         also exports quote_quoting_options.
4555
4556 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4557
4558         Collapse list of copyright years to ranges.  See
4559         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4560         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4561         build-aux/csharpexec.sh.in, build-aux/gnupload,
4562         build-aux/install-reloc, build-aux/javacomp.sh.in,
4563         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4564         build-aux/move-if-change, build-aux/reloc-ldflags,
4565         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4566
4567 2012-03-11  Bruno Haible  <bruno@clisp.org>
4568
4569         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4570         * m4/log2f-ieee.m4: New file.
4571         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4572         whether log2f works with a minus zero argument. Replace it if not.
4573         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4574         (Depends-on): Add log2-ieee.
4575         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4576         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4577
4578         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4579         * m4/log2-ieee.m4: New file.
4580         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4581         whether log2 works with a minus zero argument. Replace it if not.
4582         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4583         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4584         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4585
4586         Tests for module 'log2l-ieee'.
4587         * modules/log2l-ieee-tests: New file.
4588         * tests/test-log2l-ieee.c: New file.
4589
4590         New module 'log2l-ieee'.
4591         * modules/log2l-ieee: New file.
4592
4593         Tests for module 'log2-ieee'.
4594         * modules/log2-ieee-tests: New file.
4595         * tests/test-log2-ieee.c: New file.
4596
4597         New module 'log2-ieee'.
4598         * modules/log2-ieee: New file.
4599
4600         Tests for module 'log2f-ieee'.
4601         * modules/log2f-ieee-tests: New file.
4602         * tests/test-log2f-ieee.c: New file.
4603         * tests/test-log2-ieee.h: New file.
4604
4605         New module 'log2f-ieee'.
4606         * modules/log2f-ieee: New file.
4607
4608 2012-03-11  Bruno Haible  <bruno@clisp.org>
4609
4610         Tests for module 'log2l'.
4611         * modules/log2l-tests: New file.
4612         * tests/test-log2l.c: New file.
4613
4614         New module 'log2l'.
4615         * lib/math.in.h (log2l): New declaration.
4616         * lib/log2l.c: New file.
4617         * m4/log2l.m4: New file.
4618         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4620         REPLACE_LOG2L.
4621         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4622         REPLACE_LOG2L.
4623         * modules/log2l: New file.
4624         * tests/test-math-c++.cc: Check the declaration of log2l.
4625         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4626         and OSF/1 problems.
4627
4628 2012-03-11  Bruno Haible  <bruno@clisp.org>
4629
4630         Tests for module 'log2f'.
4631         * modules/log2f-tests: New file.
4632         * tests/test-log2f.c: New file.
4633
4634         New module 'log2f'.
4635         * lib/math.in.h (log2f): New declaration.
4636         * lib/log2f.c: New file.
4637         * m4/log2f.m4: New file.
4638         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4640         REPLACE_LOG2F.
4641         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4642         REPLACE_LOG2F.
4643         * modules/log2f: New file.
4644         * tests/test-math-c++.cc: Check the declaration of log2f.
4645         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4646         and OSF/1 and Cygwin problems.
4647
4648 2012-03-11  Bruno Haible  <bruno@clisp.org>
4649
4650         Tests for module 'log2'.
4651         * modules/log2-tests: New file.
4652         * tests/test-log2.c: New file.
4653         * tests/test-log2.h: New file.
4654
4655         New module 'log2'.
4656         * lib/math.in.h (log2): New declaration.
4657         * lib/log2.c: New file.
4658         * m4/log2.m4: New file.
4659         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4661         REPLACE_LOG2.
4662         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4663         REPLACE_LOG2.
4664         * modules/log2: New file.
4665         * tests/test-math-c++.cc: Check the declaration of log2.
4666         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4667         and OSF/1 and Cygwin problems.
4668
4669 2012-03-11  Bruno Haible  <bruno@clisp.org>
4670
4671         exp2* tests: More tests.
4672         * tests/test-exp2.h (test_function): Test all integral arguments that
4673         don't need to overflow or denormalized numbers.
4674         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4675         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4676         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4677
4678 2012-03-10  Bruno Haible  <bruno@clisp.org>
4679
4680         log1pl-ieee: Work around test failure on AIX 7.1.
4681         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4682
4683         log1pl-ieee: Work around test failure on IRIX 6.5.
4684         * m4/log1pl-ieee.m4: New file.
4685         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4686         test whether log1pl works with a minus zero argument. Replace it if
4687         not.
4688         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4690         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4691         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4692         (Depends-on): Update conditions.
4693         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4694         m4/signbit.m4.
4695         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4696         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4697
4698         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4699         * m4/log1pf-ieee.m4: New file.
4700         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4701         test whether log1pf works with a minus zero argument. Replace it if
4702         not.
4703         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4704         m4/signbit.m4.
4705         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4706         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4707
4708         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4709         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4710         (configure.ac): Require gl_FUNC_LOG1PF.
4711
4712         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4713         * m4/log1p-ieee.m4: New file.
4714         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4715         whether log1p works with a minus zero argument. Replace it if not.
4716         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4718         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4719         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4720         (Depends-on): Update conditions.
4721         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4722         m4/signbit.m4.
4723         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4724         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4725
4726         Tests for module 'log1pl-ieee'.
4727         * modules/log1pl-ieee-tests: New file.
4728         * tests/test-log1pl-ieee.c: New file.
4729
4730         New module 'log1pl-ieee'.
4731         * modules/log1pl-ieee: New file.
4732
4733         Tests for module 'log1p-ieee'.
4734         * modules/log1p-ieee-tests: New file.
4735         * tests/test-log1p-ieee.c: New file.
4736
4737         New module 'log1p-ieee'.
4738         * modules/log1p-ieee: New file.
4739
4740         Tests for module 'log1pf-ieee'.
4741         * modules/log1pf-ieee-tests: New file.
4742         * tests/test-log1pf-ieee.c: New file.
4743         * tests/test-log1p-ieee.h: New file.
4744
4745         New module 'log1pf-ieee'.
4746         * modules/log1pf-ieee: New file.
4747
4748 2012-03-10  Bruno Haible  <bruno@clisp.org>
4749
4750         Tests for module 'log1pl'.
4751         * modules/log1pl-tests: New file.
4752         * tests/test-log1pl.c: New file.
4753
4754         New module 'log1pl'.
4755         * lib/math.in.h (log1pl): New declaration.
4756         * lib/log1pl.c: New file.
4757         * m4/log1pl.m4: New file.
4758         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4760         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4761         * modules/log1pl: New file.
4762         * tests/test-math-c++.cc: Check the declaration of log1pl.
4763         * doc/posix-functions/log1pl.texi: Mention the new module.
4764
4765 2012-03-10  Bruno Haible  <bruno@clisp.org>
4766
4767         Tests for module 'log1pf'.
4768         * modules/log1pf-tests: New file.
4769         * tests/test-log1pf.c: New file.
4770
4771         New module 'log1pf'.
4772         * lib/math.in.h (log1pf): New declaration.
4773         * lib/log1pf.c: New file.
4774         * m4/log1pf.m4: New file.
4775         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4777         REPLACE_LOG1PF.
4778         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4779         REPLACE_LOG1PF.
4780         * modules/log1pf: New file.
4781         * tests/test-math-c++.cc: Check the declaration of log1pf.
4782         * doc/posix-functions/log1pf.texi: Mention the new module.
4783
4784 2012-03-10  Bruno Haible  <bruno@clisp.org>
4785
4786         log1p tests: More tests.
4787         * tests/test-log1p.h: New file.
4788         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4789         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4790         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4791         (main): Invoke test_function.
4792
4793         log1p: Provide replacement for Minix and MSVC.
4794         * lib/math.in.h (log1p): New declaration.
4795         * lib/log1p.c: New file.
4796         * m4/log1p.m4: New file.
4797         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4799         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4800         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4801         (Depends-on): Add math, isnand, log, round.
4802         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4803         HAVE_LOG1P is 0.
4804         * tests/test-math-c++.cc: Check the declaration of log1p.
4805         * doc/posix-functions/log1p.texi: Mention the replacement.
4806
4807 2012-03-10  Bruno Haible  <bruno@clisp.org>
4808
4809         math tests: Small simplification.
4810         * tests/test-exp.h (test_function): Use the same err_bound for
4811         'double' on platforms with sizeof (long double) == sizeof (double)
4812         than on platforms with sizeof (long double) > sizeof (double).
4813         * tests/test-exp2.h (test_function): Likewise.
4814         * tests/test-expm1.h (test_function): Likewise.
4815         * tests/test-log.h (test_function): Likewise.
4816
4817 2012-03-10  Bruno Haible  <bruno@clisp.org>
4818
4819         Fix some comments.
4820         * lib/expl.c: Fix an ambiguous comment.
4821         * lib/expm1.c: Likewise.
4822         * lib/expm1l.c: Likewise.
4823         * lib/exp2.c: Likewise.
4824         * lib/exp2l.c: Likewise.
4825
4826 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4827
4828         regex: allow inclusion of <regex.h> before <limits.h>
4829         Without this patch, portable programs had to include <limits.h> before
4830         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4831         I ran into this problem with a test version of GNU grep on Solaris 8.
4832         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4833         This is done conditionally so that this change can be merged
4834         back to glibc.
4835         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4836         using the included regex.
4837
4838         fts: depend on fdopendir
4839         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4840         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4841         problem was introduced when fdopendir was split out.
4842
4843 2012-03-10  Bruno Haible  <bruno@clisp.org>
4844
4845         Remove unused variables.
4846         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4847         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4848
4849 2012-03-10  Bruno Haible  <bruno@clisp.org>
4850
4851         isnanf-nolibm: Fix last commit.
4852         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4853
4854         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4855         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4856
4857 2012-03-10  Bruno Haible  <bruno@clisp.org>
4858
4859         logf-ieee: Work around test failure on NetBSD 5.1.
4860         * m4/logf-ieee.m4: New file.
4861         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4862         whether logf works with a negative argument. Replace it if not.
4863         * lib/logf.c (logf): For negative arguments, return NaN.
4864         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4865         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4866         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4867
4868         logf-ieee: Work around test failure on Solaris 9.
4869         * modules/logf-ieee (Depends-on): Add log-ieee.
4870         (configure.ac): Require gl_FUNC_LOGF.
4871
4872         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4873         * m4/log-ieee.m4: New file.
4874         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4875         log works with a negative argument. Replace it if not.
4876         * lib/log.c (log): For negative arguments, return NaN.
4877         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4878         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4879         * doc/posix-functions/log.texi: Mention the log-ieee module.
4880
4881         Tests for module 'logl-ieee'.
4882         * modules/logl-ieee-tests: New file.
4883         * tests/test-logl-ieee.c: New file.
4884
4885         New module 'logl-ieee'.
4886         * modules/logl-ieee: New file.
4887
4888         Tests for module 'log-ieee'.
4889         * modules/log-ieee-tests: New file.
4890         * tests/test-log-ieee.c: New file.
4891
4892         New module 'log-ieee'.
4893         * modules/log-ieee: New file.
4894
4895         Tests for module 'logf-ieee'.
4896         * modules/logf-ieee-tests: New file.
4897         * tests/test-logf-ieee.c: New file.
4898         * tests/test-log-ieee.h: New file.
4899
4900         New module 'logf-ieee'.
4901         * modules/logf-ieee: New file.
4902
4903 2012-03-10  Bruno Haible  <bruno@clisp.org>
4904
4905         log: Fix bug introduced on 2012-03-09.
4906         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4907
4908 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4909
4910         timer-time: link explicitly with pthreads on glibc
4911         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4912         to support static linking, when newer glibc is
4913         detected, as that contains pthread emulation of
4914         POSIX timer functions where required.
4915         * modules/timer-time: Depend on threadlib to
4916         pull in the appropriate library to link.
4917
4918 2012-03-10  Bruno Haible  <bruno@clisp.org>
4919
4920         log* tests: More tests.
4921         * tests/test-log.h: New file.
4922         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4923         (main): Invoke test_function.
4924         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4925         (main): Invoke test_function.
4926         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4927         (main): Invoke test_function.
4928         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4929         tests/randomd.c.
4930         (Makefile.am): Add randomd.c to test_log_SOURCES.
4931         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4932         tests/randomf.c.
4933         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4934         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4935         tests/randoml.c.
4936         (Depends-on): Add 'float'.
4937         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4938
4939 2012-03-09  Bruno Haible  <bruno@clisp.org>
4940
4941         logl: Work around OSF/1 5.1 bug.
4942         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4943         * lib/logl.c (logl): If logl exists, use it and provide just the
4944         workaround.
4945         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4946         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4948         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4949         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4950         (Depends-on): Update conditions.
4951         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4952
4953 2012-03-09  Bruno Haible  <bruno@clisp.org>
4954
4955         logf: Work around OSF/1 5.1 bug.
4956         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4957         * lib/logf.c (logf): If logf exists, use it and provide just the
4958         workaround.
4959         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4960         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4962         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4963         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4964         (Depends-on): Update conditions.
4965         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4966
4967 2012-03-09  Bruno Haible  <bruno@clisp.org>
4968
4969         log: Work around OSF/1 5.1 bug.
4970         * lib/math.in.h (log): New declaration.
4971         * lib/log.c: New file.
4972         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4973         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4974         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4976         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4977         * modules/log (Files): Add lib/log.c.
4978         (Depends-on): Add math.
4979         (configure.ac): If REPLACE_LOG is 1, compile an override.
4980         * tests/test-math-c++.cc: Check the declaration of log.
4981         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4982
4983 2012-03-09  Jim Meyering  <meyering@redhat.com>
4984
4985         readtokens.c: adjust wording in a comment
4986         * lib/readtokens.c: Insert omitted "that" in a comment.
4987
4988 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4989
4990         modechange: add notations +40, 00440, etc.
4991         * lib/modechange.c (mode_compile): Support new notations
4992         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4993
4994 2012-03-08  Bruno Haible  <bruno@clisp.org>
4995
4996         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4997         * m4/exp2l-ieee.m4: New file.
4998         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4999         test whether exp2l works with a NaN argument and with a negative
5000         infinity argument. Replace it if not.
5001         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5003         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5004         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5005         (Depends-on): Update conditions.
5006         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5007         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5008         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5009
5010         Tests for module 'exp2l-ieee'.
5011         * modules/exp2l-ieee-tests: New file.
5012         * tests/test-exp2l-ieee.c: New file.
5013
5014         New module 'exp2l-ieee'.
5015         * modules/exp2l-ieee: New file.
5016
5017         Tests for module 'exp2-ieee'.
5018         * modules/exp2-ieee-tests: New file.
5019         * tests/test-exp2-ieee.c: New file.
5020
5021         New module 'exp2-ieee'.
5022         * modules/exp2-ieee: New file.
5023
5024         Tests for module 'exp2f-ieee'.
5025         * modules/exp2f-ieee-tests: New file.
5026         * tests/test-exp2f-ieee.c: New file.
5027         * tests/test-exp2-ieee.h: New file.
5028
5029         New module 'exp2f-ieee'.
5030         * modules/exp2f-ieee: New file.
5031
5032 2012-03-08  Bruno Haible  <bruno@clisp.org>
5033
5034         Tests for module 'exp2l'.
5035         * modules/exp2l-tests: New file.
5036         * tests/test-exp2l.c: New file.
5037
5038         New module 'exp2l'.
5039         * lib/math.in.h (exp2l): New declaration.
5040         * lib/exp2l.c: New file.
5041         * lib/expl-table.c: New file, extracted from lib/expl.c.
5042         * lib/expl.c (gl_expl_table): New declaration.
5043         (expl): Remove expl_table. Update reference.
5044         * m4/exp2l.m4: New file.
5045         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5047         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5048         * modules/exp2l: New file.
5049         * modules/expl (Files): Add lib/expl-table.c.
5050         (configure.ac): Compile also expl-table.c.
5051         * tests/test-math-c++.cc: Check the declaration of exp2l.
5052         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5053         problem.
5054
5055 2012-03-08  Bruno Haible  <bruno@clisp.org>
5056
5057         Tests for module 'exp2f'.
5058         * modules/exp2f-tests: New file.
5059         * tests/test-exp2f.c: New file.
5060
5061         New module 'exp2f'.
5062         * lib/math.in.h (exp2f): New declaration.
5063         * lib/exp2f.c: New file.
5064         * m4/exp2f.m4: New file.
5065         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5067         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5068         * modules/exp2f: New file.
5069         * tests/test-math-c++.cc: Check the declaration of exp2f.
5070         * doc/posix-functions/exp2f.texi: Mention the new module and the
5071         IRIX problem.
5072
5073 2012-03-08  Bruno Haible  <bruno@clisp.org>
5074
5075         Tests for module 'exp2'.
5076         * modules/exp2-tests: New file.
5077         * tests/test-exp2.c: New file.
5078         * tests/test-exp2.h: New file.
5079
5080         New module 'exp2'.
5081         * lib/math.in.h (exp2): New declaration.
5082         * lib/exp2.c: New file.
5083         * m4/exp2.m4: New file.
5084         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5086         REPLACE_EXP2.
5087         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5088         REPLACE_EXP2.
5089         * modules/exp2: New file.
5090         * tests/test-math-c++.cc: Check the declaration of exp2.
5091         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5092         and OpenBSD problems.
5093
5094 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5095
5096         savedir: fix comment typo
5097         * lib/savedir.c (savedirstream): Fix typo in comment.
5098
5099 2012-03-08  Bruno Haible  <bruno@clisp.org>
5100
5101         test-readtokens.c: use const; remove unwarranted cast
5102         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5103
5104 2012-03-08  Bruno Haible  <bruno@clisp.org>
5105
5106         fmal: Avoid compilation error on AIX.
5107         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5108         AIX 5.2..7.1.
5109
5110 2012-03-08  Bruno Haible  <bruno@clisp.org>
5111
5112         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5113         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5114         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5115         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5116         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5117         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5118         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5119
5120 2012-03-08  Bruno Haible  <bruno@clisp.org>
5121
5122         remainderf: Override buggy system function on IRIX 6.5.
5123         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5124         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5125         when it exists.
5126         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5127
5128 2012-03-08  Jim Meyering  <meyering@redhat.com>
5129
5130         test-readtokens.c: avoid const-related compilation warnings
5131         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5132
5133 2012-03-07  Jim Meyering  <meyering@redhat.com>
5134             Bruno Haible  <bruno@clisp.org>
5135
5136         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5137         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5138         tests/randomd.c.
5139         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5140         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5141         tests/randoml.c.
5142         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5143
5144 2012-03-07  Bruno Haible  <bruno@clisp.org>
5145
5146         expm1l: Avoid compilation error on AIX.
5147         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5148         AIX 5.2..7.1.
5149
5150 2012-03-07  Bruno Haible  <bruno@clisp.org>
5151
5152         expm1l: Don't override undeclared system function on IRIX 6.5.
5153         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5154         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5155         it exists. Set HAVE_DECL_EXPM1L.
5156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5157         HAVE_EXPM1L.
5158         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5159         HAVE_EXPM1L.
5160         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5161
5162 2012-03-07  Bruno Haible  <bruno@clisp.org>
5163
5164         remainderl: Don't override undeclared system function on IRIX 6.5.
5165         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5166         HAVE_REMAINDERL.
5167         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5168         declared when it exists. Set HAVE_DECL_REMAINDERL.
5169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5170         not HAVE_REMAINDERL.
5171         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5172         HAVE_REMAINDERL.
5173         * doc/posix-functions/remainderl.texi: Mention missing declaration
5174         problem.
5175
5176 2012-03-07  Bruno Haible  <bruno@clisp.org>
5177
5178         rintf: Don't override undeclared system function on IRIX 6.5.
5179         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5180         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5181         exists. Set HAVE_DECL_RINTF.
5182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5183         HAVE_RINTF.
5184         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5185         HAVE_RINTF.
5186         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5187
5188 2012-03-07  Bruno Haible  <bruno@clisp.org>
5189
5190         roundl: Avoid compilation error on AIX.
5191         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5192         AIX 5.2..7.1.
5193
5194 2012-03-07  Bruno Haible  <bruno@clisp.org>
5195
5196         roundl: Don't override undeclared system function on IRIX 6.5.
5197         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5198         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5199         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5200         * modules/roundl (configure.ac): For replacement code, test
5201         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5202         (Depends-on): Update conditions.
5203         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5204
5205 2012-03-07  Bruno Haible  <bruno@clisp.org>
5206
5207         roundf: Don't override undeclared system function on IRIX 6.5.
5208         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5209         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5210         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5211         * modules/roundf (configure.ac): For replacement code, test
5212         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5213         (Depends-on): Update conditions.
5214         * modules/roundf-ieee (Depends-on): Update conditions.
5215         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5216
5217 2012-03-07  Bruno Haible  <bruno@clisp.org>
5218
5219         round: Don't override undeclared system function on IRIX 6.5.
5220         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5221         argument.
5222         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5223         also when it is not declared. Set HAVE_ROUND. For replacement code,
5224         test HAVE_ROUND, not HAVE_DECL_ROUND.
5225         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5226         not HAVE_DECL_ROUND.
5227         (Depends-on): Update conditions.
5228         * modules/round-ieee (Depends-on): Update conditions.
5229         * doc/posix-functions/round.texi: Mention the IRIX problem.
5230
5231 2012-03-07  Bruno Haible  <bruno@clisp.org>
5232
5233         copysignf: Don't override undeclared system function on IRIX 6.5.
5234         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5235         HAVE_COPYSIGNF.
5236         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5237         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5239         not HAVE_COPYSIGNF.
5240         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5241         HAVE_COPYSIGNF.
5242         * doc/posix-functions/copysignf.texi: Mention missing declaration
5243         problem.
5244
5245 2012-03-07  Jim Meyering  <meyering@redhat.com>
5246
5247         readtokens: add tests
5248         * modules/readtokens-tests: New file.
5249         * tests/test-readtokens.c: New file.
5250
5251 2012-03-07  Jim Meyering  <meyering@redhat.com>
5252
5253         quotearg: the module must now include quote.h
5254         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5255         So must the module.
5256         * modules/quotearg (Files): Add quote.h.
5257
5258 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5259
5260         readtokens: avoid core dumps with unusual calling patterns
5261         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5262         * lib/readtokens.c: Include limits.h.
5263         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5264         (readtoken): Don't cache the delimiters; the cache code was buggy
5265         if !delim && saved_delim, or if the new n_delim differs from the old.
5266         Also, it wasn't thread-safe.
5267
5268 2012-03-07  Bruno Haible  <bruno@clisp.org>
5269
5270         quote: Adhere to common module description layout.
5271         * modules/quote (Makefile.am): Add back empty section.
5272
5273 2012-03-06  Akim Demaille  <demaille@gostai.com>
5274
5275         quote: fuse into quotearg
5276         This patch is made for the benefit of Bison.
5277         quote does not leave the choice of the quoting style to the user.
5278         quoting_style provides poor customizability, yet quoting_options,
5279         which is very rich, is hidden inside quotearg.c.  So in order to
5280         allow quote customization, move its implementation to quotearg.c.
5281         * lib/quote.c: Remove.
5282         * modules/quote: Adjust.
5283         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5284         warning: provide all the members of literal structs.
5285         (quote_quoting_options): New.
5286         (quote, quote_n): Import implementation from quote.c.
5287         * lib/quote.h: Import the comments from quote.c.
5288         (quote_quoting_options): New.
5289
5290 2012-03-06  Bruno Haible  <bruno@clisp.org>
5291
5292         Tests for module 'expm1l-ieee'.
5293         * modules/expm1l-ieee-tests: New file.
5294         * tests/test-expm1l-ieee.c: New file.
5295
5296         New module 'expm1l-ieee'.
5297         * modules/expm1l-ieee: New file.
5298
5299         Tests for module 'expm1f-ieee'.
5300         * modules/expm1f-ieee-tests: New file.
5301         * tests/test-expm1f-ieee.c: New file.
5302
5303         New module 'expm1f-ieee'.
5304         * modules/expm1f-ieee: New file.
5305
5306         Tests for module 'expm1-ieee'.
5307         * modules/expm1-ieee-tests: New file.
5308         * tests/test-expm1-ieee.c: New file.
5309         * tests/test-expm1-ieee.h: New file.
5310
5311         New module 'expm1-ieee'.
5312         * modules/expm1-ieee: New file.
5313         * m4/expm1-ieee.m4: New file.
5314         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5315         whether expm1 works with a minus zero argument. Replace it if not.
5316         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5318         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5319         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5320         (Depends-on): Update conditions.
5321         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5322         AIX problem.
5323
5324 2012-03-06  Bruno Haible  <bruno@clisp.org>
5325
5326         Work around expm1f bug on IRIX 6.5.
5327         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5328         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5329         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5330         not work.
5331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5332         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5333         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5334         (Depends-on): Update conditions.
5335         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5336
5337 2012-03-06  Bruno Haible  <bruno@clisp.org>
5338
5339         Tests for module 'expm1l'.
5340         * modules/expm1l-tests: New file.
5341         * tests/test-expm1l.c: New file.
5342
5343         New module 'expm1l'.
5344         * lib/math.in.h (expm1l): New declaration.
5345         * lib/expm1l.c: New file.
5346         * m4/expm1l.m4: New file.
5347         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5349         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5350         * modules/expm1l: New file.
5351         * tests/test-math-c++.cc: Check the declaration of expm1l.
5352         * doc/posix-functions/expm1l.texi: Mention the new module.
5353
5354 2012-03-06  Bruno Haible  <bruno@clisp.org>
5355
5356         Tests for module 'expm1f'.
5357         * modules/expm1f-tests: New file.
5358         * tests/test-expm1f.c: New file.
5359
5360         New module 'expm1f'.
5361         * lib/math.in.h (expm1f): New declaration.
5362         * lib/expm1f.c: New file.
5363         * m4/expm1f.m4: New file.
5364         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5366         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5367         * modules/expm1f: New file.
5368         * tests/test-math-c++.cc: Check the declaration of expm1f.
5369         * doc/posix-functions/expm1f.texi: Mention the new module.
5370
5371 2012-03-06  Bruno Haible  <bruno@clisp.org>
5372
5373         Tests for module 'expm1'.
5374         * modules/expm1-tests: New file.
5375         * tests/test-expm1.c: New file.
5376         * tests/test-expm1.h: New file.
5377
5378         New module 'expm1'.
5379         * lib/math.in.h (expm1): New declaration.
5380         * lib/expm1.c: New file.
5381         * m4/expm1.m4: New file.
5382         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5384         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5385         * modules/expm1: New file.
5386         * tests/test-math-c++.cc: Check the declaration of expm1.
5387         * doc/posix-functions/expm1.texi: Mention the new module.
5388
5389 2012-03-06  Bruno Haible  <bruno@clisp.org>
5390
5391         math: Ensure declarations of math functions.
5392         * modules/acosf (Depends-on): Add 'extensions'.
5393         * modules/asinf (Depends-on): Likewise.
5394         * modules/atan2f (Depends-on): Likewise.
5395         * modules/atanf (Depends-on): Likewise.
5396         * modules/cbrt (Depends-on): Likewise.
5397         * modules/cbrtf (Depends-on): Likewise.
5398         * modules/cbrtl (Depends-on): Likewise.
5399         * modules/copysignf (Depends-on): Likewise.
5400         * modules/copysignl (Depends-on): Likewise.
5401         * modules/cosf (Depends-on): Likewise.
5402         * modules/coshf (Depends-on): Likewise.
5403         * modules/expf (Depends-on): Likewise.
5404         * modules/fabsf (Depends-on): Likewise.
5405         * modules/fabsl (Depends-on): Likewise.
5406         * modules/fmaf (Depends-on): Likewise.
5407         * modules/fmal (Depends-on): Likewise.
5408         * modules/fmodf (Depends-on): Likewise.
5409         * modules/fmodl (Depends-on): Likewise.
5410         * modules/frexpf (Depends-on): Likewise.
5411         * modules/frexpl (Depends-on): Likewise.
5412         * modules/hypot (Depends-on): Likewise.
5413         * modules/hypotf (Depends-on): Likewise.
5414         * modules/hypotl (Depends-on): Likewise.
5415         * modules/ldexpf (Depends-on): Likewise.
5416         * modules/ldexpl (Depends-on): Likewise.
5417         * modules/log10f (Depends-on): Likewise.
5418         * modules/log10l (Depends-on): Likewise.
5419         * modules/log1p (Depends-on): Likewise.
5420         * modules/logb (Depends-on): Likewise.
5421         * modules/logf (Depends-on): Likewise.
5422         * modules/modff (Depends-on): Likewise.
5423         * modules/modfl (Depends-on): Likewise.
5424         * modules/powf (Depends-on): Likewise.
5425         * modules/remainderf (Depends-on): Likewise.
5426         * modules/remainderl (Depends-on): Likewise.
5427         * modules/rintf (Depends-on): Likewise.
5428         * modules/rintl (Depends-on): Likewise.
5429         * modules/sinf (Depends-on): Likewise.
5430         * modules/sinhf (Depends-on): Likewise.
5431         * modules/sqrtf (Depends-on): Likewise.
5432         * modules/tanf (Depends-on): Likewise.
5433         * modules/tanhf (Depends-on): Likewise.
5434         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5435         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5436         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5437         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5438         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5439         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5440         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5441         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5442         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5443         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5444         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5445         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5446         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5447         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5448         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5449         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5450         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5451         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5452         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5453         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5454         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5455         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5456         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5457         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5458         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5459         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5460         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5461         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5462         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5463         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5464         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5465         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5466         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5467         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5468         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5469         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5470         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5471         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5472         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5473         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5474         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5475
5476 2012-03-06  Bruno Haible  <bruno@clisp.org>
5477
5478         math: Update module names in warnings.
5479         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5480         tanl): Use specific module name in warn-on-use warning.
5481
5482 2012-03-06  Bruno Haible  <bruno@clisp.org>
5483
5484         expl: Simplify computation.
5485         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5486
5487 2012-03-05  Bruno Haible  <bruno@clisp.org>
5488
5489         exp* tests: More tests.
5490         * tests/test-exp.h: New file.
5491         * tests/test-exp.c: Include <float.h> and test-exp.h.
5492         (main): Invoke test_function.
5493         * tests/test-expf.c: Include <float.h> and test-exp.h.
5494         (main): Invoke test_function.
5495         * tests/test-expl.c: Include <float.h> and test-exp.h.
5496         (main): Invoke test_function.
5497         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5498         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5499         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5500         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5501         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5502         (Depends-on): Add 'float'.
5503         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5504
5505         expl: Fix precision of computed result.
5506         * lib/expl.c: Completely rewritten.
5507         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5508         (Maintainer): Add me.
5509         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5510
5511 2012-03-05  Bruno Haible  <bruno@clisp.org>
5512
5513         cbrt* tests: More tests.
5514         * tests/test-cbrt.h: New file.
5515         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5516         (main): Invoke test_function.
5517         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5518         (main): Invoke test_function.
5519         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5520         (main): Invoke test_function.
5521         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5522         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5523         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5524         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5525         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5526         (Depends-on): Add 'float'.
5527         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5528
5529 2012-03-05  Bruno Haible  <bruno@clisp.org>
5530
5531         hypot* tests: More tests.
5532         * tests/test-hypot.h: New file, partially extracted from
5533         tests/test-hypotl.c.
5534         * tests/test-hypot.c: Include test-hypot.h.
5535         (main): Invoke test_function.
5536         * tests/test-hypotf.c: Include test-hypot.h.
5537         (main): Invoke test_function.
5538         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5539         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5540         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5541         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5542         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5543         tests/randomf.c.
5544         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5545         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5546         tests/randoml.c.
5547         (Depends-on): Add 'fpucw', 'float'.
5548         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5549
5550 2012-03-05  Bruno Haible  <bruno@clisp.org>
5551
5552         fpucw: Doc about FreeBSD.
5553         * lib/fpucw.h: Mention FreeBSD in comments.
5554
5555 2012-03-04  Bruno Haible  <bruno@clisp.org>
5556
5557         sqrt* tests: More tests.
5558         * tests/test-sqrt.h: New file.
5559         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5560         (main): Invoke test_function.
5561         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5562         (main): Invoke test_function.
5563         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5564         (main): Invoke test_function.
5565         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5566         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5567         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5568         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5569         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5570         (Depends-on): Add 'float'.
5571         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5572
5573 2012-03-04  Bruno Haible  <bruno@clisp.org>
5574
5575         remainder* tests: More tests.
5576         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5577         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5578         (main): Invoke test_function.
5579         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5580         (main): Invoke test_function.
5581         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5582         (main): Invoke test_function.
5583         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5584         tests/randomd.c.
5585         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5586         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5587         tests/randomf.c.
5588         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5589         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5590         tests/randoml.c.
5591         (Depends-on): Add 'float'.
5592         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5593
5594 2012-03-04  Bruno Haible  <bruno@clisp.org>
5595
5596         remainder, remainderf, remainderl: Fix computation for large quotients.
5597         * lib/remainder.c: Completely rewritten.
5598         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5599         USE_FLOAT.
5600         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5601         USE_LONG_DOUBLE.
5602         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5603         isnand, isinf. Remove round, fma.
5604         * modules/remainderf (Files): Add lib/remainder.c.
5605         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5606         Remove roundf, fmaf.
5607         * modules/remainderl (Files): Add lib/remainder.c.
5608         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5609         isinf. Remove roundl, fmal.
5610         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5611         REMAINDER_LIBM.
5612         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5613         REMAINDERF_LIBM.
5614         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5615         REMAINDERL_LIBM.
5616
5617 2012-03-04  Bruno Haible  <bruno@clisp.org>
5618
5619         fmod* tests: More tests.
5620         * tests/test-fmod.h (my_ldexp): New function.
5621         (test_function): Reduce amount of random numbers to test. Add tests
5622         of very large quotients x / y.
5623         * tests/test-fmod.c (MAX_EXP): New macro.
5624         * tests/test-fmodf.c (MAX_EXP): Likewise.
5625         * tests/test-fmodl.c (MAX_EXP): Likewise.
5626
5627 2012-03-04  Bruno Haible  <bruno@clisp.org>
5628
5629         fmod, fmodl: Fix computation for large quotients x / y.
5630         * lib/fmod.c: Completely rewritten.
5631         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5632         USE_LONG_DOUBLE.
5633         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5634         isnand. Remove fma.
5635         * modules/fmodl (Files): Add lib/fmod.c.
5636         (Depends-on): Add float, isfinite, signbit, fabsl,
5637         frexpl, ldexpl, isnanl. Remove fma.
5638         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5639         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5640
5641 2012-03-03  Bruno Haible  <bruno@clisp.org>
5642
5643         fmod* tests: More tests.
5644         * tests/test-fmod.h: New file.
5645         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5646         (main): Invoke test_function.
5647         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5648         (main): Invoke test_function.
5649         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5650         (main): Invoke test_function.
5651         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5652         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5653         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5654         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5655         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5656         (Depends-on): Add 'float'.
5657         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5658
5659 2012-03-03  Bruno Haible  <bruno@clisp.org>
5660
5661         rint* tests: More tests.
5662         * tests/test-rint.h: New file, partially extracted from
5663         tests/test-rintl.c.
5664         * tests/test-rint.c: Include test-rint.h.
5665         (main): Invoke test_function.
5666         * tests/test-rintf.c: Include test-rint.h.
5667         (main): Invoke test_function.
5668         * tests/test-rintl.c: Include test-rint.h.
5669         (main): Invoke test_function.
5670         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5671         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5672         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5673         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5674         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5675         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5676
5677 2012-03-03  Bruno Haible  <bruno@clisp.org>
5678
5679         modf* tests: More tests.
5680         * tests/test-modf.h: New file.
5681         * tests/test-modf.c: Include <float.h> and test-modf.h.
5682         (main): Invoke test_function.
5683         * tests/test-modff.c: Include <float.h> and test-modf.h.
5684         (main): Invoke test_function.
5685         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5686         (main): Invoke test_function.
5687         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5688         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5689         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5690         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5691         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5692         (Depends-on): Add 'float'.
5693         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5694
5695 2012-03-03  Bruno Haible  <bruno@clisp.org>
5696
5697         fabs* tests: More tests.
5698         * tests/test-fabs.h: New file, partially extracted from
5699         tests/test-fabsl.c.
5700         * tests/test-fabs.c (RANDOM): New macro.
5701         * tests/test-fabsf.c (RANDOM): New macro.
5702         * tests/test-fabsl.c (RANDOM): New macro.
5703         * modules/fabs-tests (Files): Add tests/randomd.c.
5704         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5705         * modules/fabsf-tests (Files): Add tests/randomf.c.
5706         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5707         * modules/fabsl-tests (Files): Add tests/randoml.c.
5708         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5709
5710 2012-03-03  Bruno Haible  <bruno@clisp.org>
5711
5712         ldexp* tests: More tests.
5713         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5714         * tests/test-ldexp.c (RANDOM): New macro.
5715         * tests/test-ldexpf.c (RANDOM): New macro.
5716         * tests/test-ldexpl.c (RANDOM): New macro.
5717         * modules/ldexp-tests (Files): Add tests/randomd.c.
5718         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5719         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5720         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5721         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5722         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5723
5724 2012-03-03  Bruno Haible  <bruno@clisp.org>
5725
5726         frexp* tests: More tests.
5727         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5728         * tests/test-frexp.c (RANDOM): New macro.
5729         * tests/test-frexpf.c (RANDOM): New macro.
5730         * tests/test-frexpl.c (RANDOM): New macro.
5731         * modules/frexp-tests (Files): Add tests/randomd.c.
5732         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5733         * modules/frexpf-tests (Files): Add tests/randomf.c.
5734         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5735         * modules/frexpl-tests (Files): Add tests/randoml.c.
5736         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5737
5738 2012-03-03  Bruno Haible  <bruno@clisp.org>
5739
5740         Support for pseudo-random numbers in tests.
5741         * tests/randomf.c: New file.
5742         * tests/randomd.c: New file.
5743         * tests/randoml.c: New file.
5744         * tests/macros.h (randomf, randomd, randoml): New declarations.
5745
5746 2012-03-03  Bruno Haible  <bruno@clisp.org>
5747
5748         frexp* tests: Refactor.
5749         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5750         * tests/test-frexp.c: Include and use it.
5751         * tests/test-frexpf.c: Likewise.
5752         * tests/test-frexpl.c: Likewise.
5753         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5754         * modules/frexpf-tests (Files): Likewise.
5755         * modules/frexpl-tests (Files): Likewise.
5756
5757 2012-03-02  Jim Meyering  <meyering@redhat.com>
5758
5759         maint: don't specify XZ_OPT=-9ev in dist-related rule
5760         Using xz's -9 option is warranted only if you have a very large
5761         tarball (see xz's documentation for the sizes vs. presets), and
5762         requires 64MiB of memory at decompression time.
5763         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5764         Automake's default of just "-e" is fine.  Override on a
5765         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5766
5767 2012-03-01  Eric Blake  <eblake@redhat.com>
5768
5769         maint.mk: allow announcement for non-gnulib project
5770         * maint.mk (announcement): Skip gnulib version if not used.
5771
5772 2012-03-01  Jim Meyering  <meyering@redhat.com>
5773
5774         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5775         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5776         envvar settings cannot interfere.  Otherwise, setting envvars like
5777         prohibit=foo require=bar, etc. would cause spurious test failures.
5778
5779 2012-03-01  Eric Blake  <eblake@redhat.com>
5780
5781         maint.mk: add per-line exclusions to prohibitions
5782         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5783         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5784         (sc_const_long_option): Use it.
5785
5786 2012-03-01  Bruno Haible  <bruno@clisp.org>
5787
5788         Tests for module 'expl-ieee'.
5789         * modules/expl-ieee-tests: New file.
5790         * tests/test-expl-ieee.c: New file.
5791
5792         New module 'expl-ieee'.
5793         * modules/expl-ieee: New file.
5794
5795         Tests for module 'exp-ieee'.
5796         * modules/exp-ieee-tests: New file.
5797         * tests/test-exp-ieee.c: New file.
5798
5799         New module 'exp-ieee'.
5800         * modules/exp-ieee: New file.
5801
5802         Tests for module 'expf-ieee'.
5803         * modules/expf-ieee-tests: New file.
5804         * tests/test-expf-ieee.c: New file.
5805         * tests/test-exp-ieee.h: New file.
5806
5807         New module 'expf-ieee'.
5808         * modules/expf-ieee: New file.
5809
5810 2012-02-29  Bruno Haible  <bruno@clisp.org>
5811
5812         cbrtl-ieee: Work around test failure on IRIX 6.5.
5813         * m4/cbrtl-ieee.m4: New file.
5814         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5815         test whether cbrtl works with a minus zero argument. Replace it if not.
5816         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5818         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5819         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5820         (Depends-on): Update conditions.
5821         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5822         m4/signbit.m4.
5823         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5824         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5825         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5826
5827         Tests for module 'cbrtl-ieee'.
5828         * modules/cbrtl-ieee-tests: New file.
5829         * tests/test-cbrtl-ieee.c: New file.
5830
5831         New module 'cbrtl-ieee'.
5832         * modules/cbrtl-ieee: New file.
5833
5834         Tests for module 'cbrt-ieee'.
5835         * modules/cbrt-ieee-tests: New file.
5836         * tests/test-cbrt-ieee.c: New file.
5837
5838         New module 'cbrt-ieee'.
5839         * modules/cbrt-ieee: New file.
5840
5841         Tests for module 'cbrtf-ieee'.
5842         * modules/cbrtf-ieee-tests: New file.
5843         * tests/test-cbrtf-ieee.c: New file.
5844         * tests/test-cbrt-ieee.h: New file.
5845
5846         New module 'cbrtf-ieee'.
5847         * modules/cbrtf-ieee: New file.
5848
5849 2012-02-29  Bruno Haible  <bruno@clisp.org>
5850
5851         cbrtf: Work around bug in IRIX 6.5 system function.
5852         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5853         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5854         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5855         work.
5856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5857         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5858         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5859         (Depends-on): Update conditions.
5860         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5861
5862 2012-02-29  Bruno Haible  <bruno@clisp.org>
5863
5864         Tests for module 'cbrtl'.
5865         * modules/cbrtl-tests: New file.
5866         * tests/test-cbrtl.c: New file.
5867
5868         New module 'cbrtl'.
5869         * lib/math.in.h (cbrtl): New declaration.
5870         * lib/cbrtl.c: New file.
5871         * m4/cbrtl.m4: New file.
5872         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5874         HAVE_DECL_CBRTL.
5875         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5876         HAVE_DECL_CBRTL.
5877         * modules/cbrtl: New file.
5878         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5879         * doc/posix-functions/cbrtl.texi: Mention the new module.
5880
5881 2012-02-29  Bruno Haible  <bruno@clisp.org>
5882
5883         Tests for module 'cbrtf'.
5884         * modules/cbrtf-tests: New file.
5885         * tests/test-cbrtf.c: New file.
5886
5887         New module 'cbrtf'.
5888         * lib/math.in.h (cbrtf): New declaration.
5889         * lib/cbrtf.c: New file.
5890         * m4/cbrtf.m4: New file.
5891         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5893         HAVE_DECL_CBRTF.
5894         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5895         HAVE_DECL_CBRTF.
5896         * modules/cbrtf: New file.
5897         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5898         * doc/posix-functions/cbrtf.texi: Mention the new module.
5899
5900 2012-02-29  Bruno Haible  <bruno@clisp.org>
5901
5902         cbrt: Provide replacement on MSVC and Minix.
5903         * lib/math.in.h (cbrt): New declaration.
5904         * lib/cbrt.c: New file.
5905         * m4/cbrt.m4: New file.
5906         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5908         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5909         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5910         (Depends-on): Add dependencies.
5911         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5912         * tests/test-math-c++.cc: Check the declaration of cbrt.
5913         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5914         replacement.
5915
5916 2012-02-29  Bruno Haible  <bruno@clisp.org>
5917
5918         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5919         * m4/hypotl-ieee.m4: New file.
5920         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5921         test whether hypotl works with mixed NaN and Infinity arguments.
5922         Replace it if not.
5923         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5925         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5926         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5927         (Depends-on): Update conditions.
5928         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5929         (Depends-on): Add hypot-ieee.
5930         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5931         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5932
5933         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5934         * m4/hypotf-ieee.m4: New file.
5935         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5936         test whether hypotf works with mixed NaN and Infinity arguments.
5937         Replace it if not.
5938         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5939         (Depends-on): Add hypot-ieee.
5940         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5941         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5942
5943         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5944         * lib/math.in.h (hypot): New declaration.
5945         * lib/hypot.c: New file.
5946         * m4/hypot-ieee.m4: New file.
5947         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5948         whether hypot works with mixed NaN and Infinity arguments. Replace it
5949         if not.
5950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5951         REPLACE_HYPOT.
5952         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5953         * modules/hypot (Files): Add lib/hypot.c.
5954         (Depends-on): Add dependencies.
5955         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5956         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5957         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5958         * tests/test-math-c++.cc: Check the declaration of hypot.
5959         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5960
5961         Tests for module 'hypotl-ieee'.
5962         * modules/hypotl-ieee-tests: New file.
5963         * tests/test-hypotl-ieee.c: New file.
5964
5965         New module 'hypotl-ieee'.
5966         * modules/hypotl-ieee: New file.
5967
5968         Tests for module 'hypot-ieee'.
5969         * modules/hypot-ieee-tests: New file.
5970         * tests/test-hypot-ieee.c: New file.
5971
5972         New module 'hypot-ieee'.
5973         * modules/hypot-ieee: New file.
5974
5975         Tests for module 'hypotf-ieee'.
5976         * modules/hypotf-ieee-tests: New file.
5977         * tests/test-hypotf-ieee.c: New file.
5978         * tests/test-hypot-ieee.h: New file.
5979
5980         New module 'hypotf-ieee'.
5981         * modules/hypotf-ieee: New file.
5982
5983 2012-02-29  Bruno Haible  <bruno@clisp.org>
5984
5985         Remove unused variables.
5986         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5987         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5988         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5989         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5990
5991 2012-02-29  Eric Blake  <eblake@redhat.com>
5992
5993         termios: fix pid_t always, not just for tcgetsid
5994         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5995         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5996         just when building tcgetsid.
5997
5998 2012-02-29  Bruno Haible  <bruno@clisp.org>
5999
6000         Tests for module 'hypotl'.
6001         * modules/hypotl-tests: New file.
6002         * tests/test-hypotl.c: New file.
6003
6004         New module 'hypotl'.
6005         * lib/math.in.h (hypotl): New declaration.
6006         * lib/hypotl.c: New file.
6007         * m4/hypotl.m4: New file.
6008         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6010         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6011         * modules/hypotl: New file.
6012         * tests/test-math-c++.cc: Check the hypotl declaration.
6013         * doc/posix-functions/hypotl.texi: Mention the new module.
6014
6015 2012-02-29  Eric Blake  <eblake@redhat.com>
6016
6017         tcgetsid: fix cygwin header bug
6018         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6019
6020         docs: update cygwin progress
6021         * doc/posix-functions/llround.texi (llround): Added in cygwin
6022         1.7.8.
6023         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6024         * doc/glibc-functions/program_invocation_name.texi
6025         (program_invocation_name): Likewise.
6026         * doc/glibc-functions/program_invocation_short_name.texi
6027         (program_invocation_short_name): Likewise.
6028         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6029         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6030         Likewise.
6031         * doc/posix-functions/pthread_spin_destroy.texi
6032         (pthread_spin_destroy): Added in cygwin 1.7.10.
6033         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6034         Likewise.
6035         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6036         Likewise.
6037         * doc/posix-functions/pthread_spin_trylock.texi
6038         (pthread_spin_trylock): Likewise.
6039         * doc/posix-functions/pthread_spin_unlock.texi
6040         (pthread_spin_unlock): Likewise.
6041         * doc/posix-functions/pthread_setschedprio.texi
6042         (pthread_setschedprio): Likewise.
6043         * doc/posix-functions/pthread_attr_getstack.texi
6044         (pthread_attr_getstack): Likewise.
6045         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6046         (pthread_attr_getstackaddr): Likewise.
6047         * doc/glibc-functions/pthread_getattr_np.texi
6048         (pthread_getattr_np): Likewise.
6049         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6050         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6051         * doc/posix-functions/clock_settime.texi (clock_settime):
6052         Likewise.
6053         * doc/posix-functions/pthread_attr_getguardsize.texi
6054         (pthread_attr_getguardsize): Likewise.
6055         * doc/posix-functions/pthread_attr_setguardsize.texi
6056         (pthread_attr_setguardsize): Likewise.
6057         * doc/posix-functions/pthread_attr_setstack.texi
6058         (pthread_attr_setstack): Likewise.
6059         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6060         (pthread_attr_setstackaddr): Likewise.
6061         * doc/posix-functions/clock_getcpuclockid.texi
6062         (clock_getcpuclockid): Likewise.
6063         * doc/posix-functions/pthread_getcpuclockid.texi
6064         (pthread_getcpuclockid): Likewise.
6065         * doc/glibc-functions/error.texi (error): Likewise.
6066         * doc/glibc-functions/error_at_line.texi (error_at_line):
6067         Likewise.
6068         * doc/glibc-functions/error_message_count.texi
6069         (error_message_count): Likewise.
6070         * doc/glibc-functions/error_one_per_line.texi
6071         (error_one_per_line): Likewise.
6072         * doc/glibc-functions/error_print_progname.texi
6073         (error_print_progname): Likewise.
6074         * doc/posix-functions/pthread_condattr_getclock.texi
6075         (pthread_condattr_getclock): Likewise.
6076         * doc/posix-functions/pthread_condattr_setclock.texi
6077         (pthread_condattr_setclock): Likewise.
6078         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6079         Likewise.
6080         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6081         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6082         * doc/glibc-functions/get_current_dir_name.texi
6083         (get_current_dir_name): Likewise.
6084         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6085         Likewise.
6086         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6087         wrong return type.
6088         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6089         1.7.11.
6090
6091 2012-02-29  Bruno Haible  <bruno@clisp.org>
6092
6093         Tests for module 'hypotf'.
6094         * modules/hypotf-tests: New file.
6095         * tests/test-hypotf.c: New file.
6096
6097         New module 'hypotf'.
6098         * lib/math.in.h (hypotf): New declaration.
6099         * lib/hypotf.c: New file.
6100         * m4/hypotf.m4: New file.
6101         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6103         REPLACE_HYPOTF.
6104         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6105         REPLACE_HYPOTF.
6106         * modules/hypotf: New file.
6107         * tests/test-math-c++.cc: Check the hypotf declaration.
6108         * doc/posix-functions/hypotf.texi: Mention the new module.
6109
6110         hypot: Prepare for hypotf module.
6111         * m4/hypot.m4: New file.
6112         * modules/hypot (Files): Add m4/hypot.m4.
6113         (configure.ac): Invoke gl_FUNC_HYPOT.
6114
6115 2012-02-29  Bruno Haible  <bruno@clisp.org>
6116
6117         hypot tests: More tests.
6118         * tests/test-hypot.c: Include <float.h>.
6119         (main): Add tests about overflow and underflow.
6120
6121 2012-02-29  Bruno Haible  <bruno@clisp.org>
6122
6123         math code: Add comments.
6124         * lib/acosl.c: Add comment about related glibc source files.
6125         * lib/asinl.c: Likewise.
6126         * lib/atanl.c: Likewise.
6127         * lib/expl.c: Likewise.
6128         * lib/logl.c: Likewise.
6129         * lib/sincosl.c: Likewise.
6130         * lib/sinl.c: Likewise.
6131         * lib/tanl.c: Likewise.
6132         * lib/trigl.c: Likewise.
6133         * lib/cosl.c: Likewise. Fix comments.
6134
6135 2012-02-28  Bruno Haible  <bruno@clisp.org>
6136
6137         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6138         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6139         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6140         HUGE_VALL are defined.
6141         (numeric_equald): Renamed from numeric_equal.
6142         (numeric_equalf, numeric_equall): New functions.
6143         (main): Check also HUGE_VALF, HUGE_VALL.
6144         * modules/math-tests (Files): Add tests/macros.h.
6145         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6146         HUGE_VALL.
6147
6148 2012-02-28  Bruno Haible  <bruno@clisp.org>
6149
6150         doc: Move ISO C11 feature notes into POSIX chapters.
6151         * doc/posix-functions/aligned_alloc.texi: Renamed from
6152         doc/glibc-functions/aligned_alloc.texi.
6153         * doc/posix-functions/quick_exit.texi: Renamed from
6154         doc/glibc-functions/quick_exit.texi.
6155         * doc/posix-headers/uchar.texi: Renamed from
6156         doc/glibc-headers/uchar.texi.
6157         * doc/posix-functions/c16rtomb.texi: Renamed from
6158         doc/glibc-functions/c16rtomb.texi.
6159         * doc/posix-functions/c32rtomb.texi: Renamed from
6160         doc/glibc-functions/c32rtomb.texi.
6161         * doc/posix-functions/mbrtoc16.texi: Renamed from
6162         doc/glibc-functions/mbrtoc16.texi.
6163         * doc/posix-functions/mbrtoc32.texi: Renamed from
6164         doc/glibc-functions/mbrtoc32.texi.
6165         * doc/gnulib.texi: Update.
6166         (Glibc uchar.h): Remove section.
6167         Suggested by Eric Blake.
6168
6169 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6170
6171         stdnoreturn: port to MSVC better
6172         MSVC standard headers use __declspec(noreturn), so #define noreturn
6173         to empty on that platform.  Reported by Bruno Haible in
6174         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6175         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6176         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6177
6178 2012-02-28  Bruno Haible  <bruno@clisp.org>
6179
6180         doc: Mention new glibc headers and functions.
6181         * doc/glibc-headers/uchar.texi: New file.
6182         * doc/glibc-functions/aligned_alloc.texi: New file.
6183         * doc/glibc-functions/c16rtomb.texi: New file.
6184         * doc/glibc-functions/c32rtomb.texi: New file.
6185         * doc/glibc-functions/clock_adjtime.texi: New file.
6186         * doc/glibc-functions/fanotify_init.texi: New file.
6187         * doc/glibc-functions/fanotify_mark.texi: New file.
6188         * doc/glibc-functions/inet6_opt_append.texi: New file.
6189         * doc/glibc-functions/inet6_opt_find.texi: New file.
6190         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6191         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6192         * doc/glibc-functions/inet6_opt_init.texi: New file.
6193         * doc/glibc-functions/inet6_opt_next.texi: New file.
6194         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6195         * doc/glibc-functions/inet6_rth_add.texi: New file.
6196         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6197         * doc/glibc-functions/inet6_rth_init.texi: New file.
6198         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6199         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6200         * doc/glibc-functions/inet6_rth_space.texi: New file.
6201         * doc/glibc-functions/login.texi: New file.
6202         * doc/glibc-functions/mbrtoc16.texi: New file.
6203         * doc/glibc-functions/mbrtoc32.texi: New file.
6204         * doc/glibc-functions/name_to_handle_at.texi: New file.
6205         * doc/glibc-functions/ntp_gettimex.texi: New file.
6206         * doc/glibc-functions/open_by_handle_at.texi: New file.
6207         * doc/glibc-functions/prlimit.texi: New file.
6208         * doc/glibc-functions/process_vm_readv.texi: New file.
6209         * doc/glibc-functions/process_vm_writev.texi: New file.
6210         * doc/glibc-functions/recvmmsg.texi: New file.
6211         * doc/glibc-functions/scandirat.texi: New file.
6212         * doc/glibc-functions/sendmmsg.texi: New file.
6213         * doc/glibc-functions/setns.texi: New file.
6214         * doc/glibc-functions/timespec_get.texi: New file.
6215         * doc/gnulib.texi: Include them.
6216         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6217         sections.
6218         Reported by Eric Blake.
6219
6220 2012-02-28  Bruno Haible  <bruno@clisp.org>
6221
6222         Avoid compilation errors with MSVC option -fp:strict.
6223         * lib/floor.c: Use MSVC specific pragma fenv_access.
6224         * lib/ceil.c: Likewise.
6225         * lib/trunc.c: Likewise.
6226         * lib/round.c: Likewise.
6227         * lib/rint.c: Likewise.
6228         * lib/fma.c: Likewise.
6229         * lib/integer_length.c: Likewise.
6230         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6232         * tests/test-floor2.c: Likewise.
6233         * tests/test-floorf2.c: Likewise.
6234         * tests/test-ceil2.c: Likewise.
6235         * tests/test-ceilf2.c: Likewise.
6236         * tests/test-trunc2.c: Likewise.
6237         * tests/test-truncf2.c: Likewise.
6238         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6239
6240 2012-02-27  Bruno Haible  <bruno@clisp.org>
6241
6242         Tests for module 'sqrtl-ieee'.
6243         * modules/sqrtl-ieee-tests: New file.
6244         * tests/test-sqrtl-ieee.c: New file.
6245
6246         New module 'sqrtl-ieee'.
6247         * modules/sqrtl-ieee: New file.
6248
6249         Tests for module 'sqrt-ieee'.
6250         * modules/sqrt-ieee-tests: New file.
6251         * tests/test-sqrt-ieee.c: New file.
6252
6253         New module 'sqrt-ieee'.
6254         * modules/sqrt-ieee: New file.
6255
6256         Tests for module 'sqrtf-ieee'.
6257         * modules/sqrtf-ieee-tests: New file.
6258         * tests/test-sqrtf-ieee.c: New file.
6259         * tests/test-sqrt-ieee.h: New file.
6260
6261         New module 'sqrtf-ieee'.
6262         * modules/sqrtf-ieee: New file.
6263
6264 2012-02-27  Bruno Haible  <bruno@clisp.org>
6265
6266         remainderl-ieee: Work around test failure on OSF/1.
6267         * m4/remainderl-ieee.m4: New file.
6268         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6269         present, test whether remainderl works with a zero second argument.
6270         Replace it if not.
6271         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6273         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6274         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6275         (Depends-on): Update conditions.
6276         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6277         (Depends-on): Add remainder-ieee.
6278         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6279         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6280         module.
6281
6282         remainderf-ieee: Work around test failure on OSF/1.
6283         * m4/remainderf-ieee.m4: New file.
6284         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6285         present, test whether remainderf works with a zero second argument.
6286         Replace it if not.
6287         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6289         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6290         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6291         (Depends-on): Update conditions.
6292         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6293         (Depends-on): Add remainder-ieee.
6294         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6295         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6296         module.
6297
6298         remainder-ieee: Work around test failure on OSF/1.
6299         * m4/remainder-ieee.m4: New file.
6300         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6301         present, test whether remainder works with a zero second argument.
6302         Replace it if not.
6303         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6305         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6306         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6307         (Depends-on): Update dependencies.
6308         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6309         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6310         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6311
6312         Tests for module 'remainderl-ieee'.
6313         * modules/remainderl-ieee-tests: New file.
6314         * tests/test-remainderl-ieee.c: New file.
6315
6316         New module 'remainderl-ieee'.
6317         * modules/remainderl-ieee: New file.
6318
6319         Tests for module 'remainder-ieee'.
6320         * modules/remainder-ieee-tests: New file.
6321         * tests/test-remainder-ieee.c: New file.
6322
6323         New module 'remainder-ieee'.
6324         * modules/remainder-ieee: New file.
6325
6326         Tests for module 'remainderf-ieee'.
6327         * modules/remainderf-ieee-tests: New file.
6328         * tests/test-remainderf-ieee.c: New file.
6329         * tests/test-remainder-ieee.h: New file.
6330
6331         New module 'remainderf-ieee'.
6332         * modules/remainderf-ieee: New file.
6333
6334 2012-02-27  Bruno Haible  <bruno@clisp.org>
6335
6336         modff, modfl: Fix configure syntax error.
6337         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6338         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6339
6340 2012-02-27  Bruno Haible  <bruno@clisp.org>
6341
6342         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6343         * m4/fmodl-ieee.m4: New file.
6344         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6345         whether fmodl works with zero arguments. Replace it if not.
6346         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6347         (Depends-on): Add fmod-ieee.
6348         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6349         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6350
6351         fmodf-ieee: Work around test failure on OSF/1.
6352         * m4/fmodf-ieee.m4: New file.
6353         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6354         whether fmodf works with zero arguments. Replace it if not.
6355         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6357         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6358         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6359         (Depends-on): Update dependencies.
6360         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6361         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6362         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6363
6364         fmodf-ieee: Work around test failure on MSVC 9.
6365         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6366         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6367
6368         fmod-ieee: Work around test failures on OSF/1, mingw.
6369         * m4/fmod-ieee.m4: New file.
6370         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6371         whether fmod works with zero arguments. Replace it if not.
6372         * lib/math.in.h (fmod): New declaration.
6373         * lib/fmod.c: New file.
6374         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6376         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6377         * modules/fmod (Files): Add lib/fmod.c.
6378         (Depends-on): Add math, isinf, trunc, fma.
6379         (configure.ac): Arrange to compile lib/fmod.c if needed.
6380         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6381         m4/signbit.m4.
6382         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6383         * tests/test-math-c++.cc: Check the declaration of fmod.
6384         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6385
6386         fmodl-ieee: Fix test failures.
6387         * lib/fmodl.c (fmodl): Treat Inf specially.
6388         * modules/fmodl (Depends-on): Add isinf.
6389
6390         Tests for module 'fmodl-ieee'.
6391         * modules/fmodl-ieee-tests: New file.
6392         * tests/test-fmodl-ieee.c: New file.
6393
6394         New module 'fmodl-ieee'.
6395         * modules/fmodl-ieee: New file.
6396
6397         Tests for module 'fmod-ieee'.
6398         * modules/fmod-ieee-tests: New file.
6399         * tests/test-fmod-ieee.c: New file.
6400
6401         New module 'fmod-ieee'.
6402         * modules/fmod-ieee: New file.
6403
6404         Tests for module 'fmodf-ieee'.
6405         * modules/fmodf-ieee-tests: New file.
6406         * tests/test-fmodf-ieee.c: New file.
6407         * tests/test-fmod-ieee.h: New file.
6408
6409         New module 'fmodf-ieee'.
6410         * modules/fmodf-ieee: New file.
6411
6412 2012-02-27  Bruno Haible  <bruno@clisp.org>
6413
6414         Tests for module 'rintl-ieee'.
6415         * modules/rintl-ieee-tests: New file.
6416         * tests/test-rintl-ieee.c: New file.
6417
6418         New module 'rintl-ieee'.
6419         * modules/rintl-ieee: New file.
6420
6421         Tests for module 'rint-ieee'.
6422         * modules/rint-ieee-tests: New file.
6423         * tests/test-rint-ieee.c: New file.
6424
6425         New module 'rint-ieee'.
6426         * modules/rint-ieee: New file.
6427
6428         Tests for module 'rintf-ieee'.
6429         * modules/rintf-ieee-tests: New file.
6430         * tests/test-rintf-ieee.c: New file.
6431         * tests/test-rint-ieee.h: New file.
6432
6433         New module 'rintf-ieee'.
6434         * modules/rintf-ieee: New file.
6435
6436 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         regex: re_search etc. should return -2 when memory exhausted
6439         This bug was uncovered when testing 'grep'.  Without the fix,
6440         re_search and friends return -1 when memory is exhausted, but -1
6441         means no match, and this causes grep to falsely report no-match
6442         instead of memory-exhaustion.  See
6443         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6444         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6445         trouble; this can occur if re_search_internal ran out of memory.
6446
6447 2012-02-26  Bruno Haible  <bruno@clisp.org>
6448
6449         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6450         * m4/modfl-ieee.m4: New file.
6451         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6452         whether modfl works with Inf. Replace it if not.
6453         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6455         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6456         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6457         (Depends-on): Update dependencies.
6458         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6459         m4/signbit.m4.
6460         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6461         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6462
6463         modfl-ieee: Fix dependencies.
6464         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6465
6466         modfl-ieee: Fix test failures.
6467         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6468         * modules/modfl (Depends-on): Add isfinite, isinf.
6469
6470         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6471         * m4/modff-ieee.m4: New file.
6472         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6473         whether modff works with NaN and Inf. Replace it if not.
6474         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6476         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6477         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6478         (Depends-on): Update dependencies.
6479         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6480         m4/signbit.m4.
6481         (Depends-on): Add modf-ieee.
6482         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6483         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6484
6485         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6486         * m4/modf-ieee.m4: New file.
6487         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6488         whether modf works with NaN and Inf. Replace it if not.
6489         * lib/math.in.h (modf): New declaration.
6490         * lib/modf.c: New file.
6491         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6493         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6494         * modules/modf (Files): Add lib/modf.c.
6495         (Depends-on): Add math, isfinite, trunc, isinf.
6496         (configure.ac): Addrange to compile lib/modf.c if needed.
6497         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6498         m4/signbit.m4.
6499         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6500         * tests/test-math-c++.cc: Check the declaration of modf.
6501         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6502
6503         Tests for module 'modfl-ieee'.
6504         * modules/modfl-ieee-tests: New file.
6505         * tests/test-modfl-ieee.c: New file.
6506
6507         New module 'modfl-ieee'.
6508         * modules/modfl-ieee: New file.
6509
6510         Tests for module 'modf-ieee'.
6511         * modules/modf-ieee-tests: New file.
6512         * tests/test-modf-ieee.c: New file.
6513
6514         New module 'modf-ieee'.
6515         * modules/modf-ieee: New file.
6516
6517         Tests for module 'modff-ieee'.
6518         * modules/modff-ieee-tests: New file.
6519         * tests/test-modff-ieee.c: New file.
6520         * tests/test-modf-ieee.h: New file.
6521
6522         New module 'modff-ieee'.
6523         * modules/modff-ieee: New file.
6524
6525 2012-02-26  Bruno Haible  <bruno@clisp.org>
6526
6527         Tests for module 'fabsl-ieee'.
6528         * modules/fabsl-ieee-tests: New file.
6529         * tests/test-fabsl-ieee.c: New file.
6530
6531         New module 'fabsl-ieee'.
6532         * modules/fabsl-ieee: New file.
6533
6534         Tests for module 'fabs-ieee'.
6535         * modules/fabs-ieee-tests: New file.
6536         * tests/test-fabs-ieee.c: New file.
6537
6538         New module 'fabs-ieee'.
6539         * modules/fabs-ieee: New file.
6540
6541         Tests for module 'fabsf-ieee'.
6542         * modules/fabsf-ieee-tests: New file.
6543         * tests/test-fabsf-ieee.c: New file.
6544         * tests/test-fabs-ieee.h: New file.
6545
6546         New module 'fabsf-ieee'.
6547         * modules/fabsf-ieee: New file.
6548
6549 2012-02-26  Bruno Haible  <bruno@clisp.org>
6550
6551         Tests for module 'fmal-ieee'.
6552         * modules/fmal-ieee-tests: New file.
6553         * tests/test-fmal-ieee.c: New file.
6554
6555         New module 'fmal-ieee'.
6556         * modules/fmal-ieee: New file.
6557
6558         Tests for module 'fma-ieee'.
6559         * modules/fma-ieee-tests: New file.
6560         * tests/test-fma-ieee.c: New file.
6561
6562         New module 'fma-ieee'.
6563         * modules/fma-ieee: New file.
6564
6565         Tests for module 'fmaf-ieee'.
6566         * modules/fmaf-ieee-tests: New file.
6567         * tests/test-fmaf-ieee.c: New file.
6568         * tests/test-fma-ieee.h: New file.
6569
6570         New module 'fmaf-ieee'.
6571         * modules/fmaf-ieee: New file.
6572
6573 2012-02-26  Bruno Haible  <bruno@clisp.org>
6574
6575         Tests for module 'ldexpl-ieee'.
6576         * modules/ldexpl-ieee-tests: New file.
6577         * tests/test-ldexpl-ieee.c: New file.
6578
6579         New module 'ldexpl-ieee'.
6580         * modules/ldexpl-ieee: New file.
6581
6582         Tests for module 'ldexp-ieee'.
6583         * modules/ldexp-ieee-tests: New file.
6584         * tests/test-ldexp-ieee.c: New file.
6585
6586         New module 'ldexp-ieee'.
6587         * modules/ldexp-ieee: New file.
6588
6589         Tests for module 'ldexpf-ieee'.
6590         * modules/ldexpf-ieee-tests: New file.
6591         * tests/test-ldexpf-ieee.c: New file.
6592         * tests/test-ldexp-ieee.h: New file.
6593
6594         New module 'ldexpf-ieee'.
6595         * modules/ldexpf-ieee: New file.
6596
6597 2012-02-26  Bruno Haible  <bruno@clisp.org>
6598
6599         Refactor frexp*-ieee tests.
6600         * tests/test-frexp-ieee.h: New file.
6601         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6602         (main): Just call test_function.
6603         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6604         (main): Just call test_function.
6605         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6606         (main): Just call test_function.
6607         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6608         * modules/frexp-ieee-tests (Files): Likewise.
6609         * modules/frexpl-ieee-tests (Files): Likewise.
6610
6611         Tests for module 'frexpl-ieee'.
6612         * modules/frexpl-ieee-tests: New file.
6613         * tests/test-frexpl-ieee.c: New file.
6614
6615         New module 'frexpl-ieee'.
6616         * modules/frexpl-ieee: New file.
6617
6618         Tests for module 'frexp-ieee'.
6619         * modules/frexp-ieee-tests: New file.
6620         * tests/test-frexp-ieee.c: New file.
6621
6622         New module 'frexp-ieee'.
6623         * modules/frexp-ieee: New file.
6624
6625         Tests for module 'frexpf-ieee'.
6626         * modules/frexpf-ieee-tests: New file.
6627         * tests/test-frexpf-ieee.c: New file.
6628
6629         New module 'frexpf-ieee'.
6630         * modules/frexpf-ieee: New file.
6631
6632 2012-02-26  Bruno Haible  <bruno@clisp.org>
6633
6634         roundl-ieee tests: More tests.
6635         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6636         (main): Add tests for [MX] shaded specification in POSIX.
6637         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6638         (Depends-on): Add isnanl-nolibm.
6639
6640         round-ieee tests: More tests.
6641         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6642         (main): Add tests for [MX] shaded specification in POSIX.
6643         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6644         (Depends-on): Add isnand-nolibm.
6645
6646         roundf-ieee tests: More tests.
6647         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6648         (main): Add tests for [MX] shaded specification in POSIX.
6649         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6650         (Depends-on): Add isnanf-nolibm.
6651
6652         truncl-ieee tests: More tests.
6653         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6654         (main): Add tests for [MX] shaded specification in POSIX.
6655         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6656         (Depends-on): Add isnanl-nolibm.
6657
6658         trunc-ieee tests: More tests.
6659         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6660         (main): Add tests for [MX] shaded specification in POSIX.
6661         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6662         (Depends-on): Add isnand-nolibm.
6663
6664         truncf-ieee tests: More tests.
6665         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6666         (main): Add tests for [MX] shaded specification in POSIX.
6667         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6668         (Depends-on): Add isnanf-nolibm.
6669
6670         ceill-ieee tests: More tests.
6671         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6672         (main): Add tests for [MX] shaded specification in POSIX.
6673         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6674         (Depends-on): Add isnanl-nolibm.
6675
6676         ceil-ieee tests: More tests.
6677         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6678         (main): Add tests for [MX] shaded specification in POSIX.
6679         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6680         (Depends-on): Add isnand-nolibm.
6681
6682         ceilf-ieee tests: More tests.
6683         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6684         (main): Add tests for [MX] shaded specification in POSIX.
6685         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6686         (Depends-on): Add isnanf-nolibm.
6687
6688         floorl-ieee tests: More tests.
6689         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6690         (main): Add tests for [MX] shaded specification in POSIX.
6691         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6692         (Depends-on): Add isnanl-nolibm.
6693
6694         floor-ieee tests: More tests.
6695         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6696         (main): Add tests for [MX] shaded specification in POSIX.
6697         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6698         (Depends-on): Add isnand-nolibm.
6699
6700         floorf-ieee tests: More tests.
6701         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6702         (main): Add tests for [MX] shaded specification in POSIX.
6703         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6704         (Depends-on): Add isnanf-nolibm.
6705
6706 2012-02-26  Bruno Haible  <bruno@clisp.org>
6707
6708         fpieee: More comments.
6709         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6710
6711 2012-02-25  Bruno Haible  <bruno@clisp.org>
6712
6713         Tests for module 'log10l'.
6714         * modules/log10l-tests: New file.
6715         * tests/test-log10l.c: New file.
6716         * tests/test-math-c++.cc: Check the declaration of log10l.
6717
6718         New module 'log10l'.
6719         * lib/math.in.h (log10l): New declaration.
6720         * lib/log10l.c: New file.
6721         * m4/log10l.m4: New file.
6722         * modules/log10l: New file.
6723         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6725         HAVE_DECL_LOG10L.
6726         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6727         HAVE_DECL_LOG10L.
6728         * doc/posix-functions/log10l.texi: Mention the new module.
6729
6730 2012-02-25  Bruno Haible  <bruno@clisp.org>
6731
6732         fmodl, remainder*: Avoid wrong results due to rounding errors.
6733         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6734         expected bounds.
6735         * lib/remainderf.c (remainderf): Likewise.
6736         * lib/remainder.c (remainder): Likewise.
6737         * lib/remainderl.c (remainderl): Likewise.
6738
6739 2012-02-25  Bruno Haible  <bruno@clisp.org>
6740
6741         Tests for module 'remainderl'.
6742         * modules/remainderl-tests: New file.
6743         * tests/test-remainderl.c: New file.
6744         * tests/test-math-c++.cc: Check the declaration of remainderl.
6745
6746         New module 'remainderl'.
6747         * lib/math.in.h (remainderl): New declaration.
6748         * lib/remainderl.c: New file.
6749         * m4/remainderl.m4: New file.
6750         * modules/remainderl: New file.
6751         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6753         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6754         HAVE_REMAINDERL.
6755         * doc/posix-functions/remainderl.texi: Mention the new module.
6756
6757 2012-02-25  Bruno Haible  <bruno@clisp.org>
6758
6759         Tests for module 'remainderf'.
6760         * modules/remainderf-tests: New file.
6761         * tests/test-remainderf.c: New file.
6762         * tests/test-math-c++.cc: Check the declaration of remainderf.
6763
6764         New module 'remainderf'.
6765         * lib/math.in.h (remainderf): New declaration.
6766         * lib/remainderf.c: New file.
6767         * m4/remainderf.m4: New file.
6768         * modules/remainderf: New file.
6769         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6771         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6772         HAVE_REMAINDERF.
6773         * doc/posix-functions/remainderf.texi: Mention the new module.
6774
6775 2012-02-25  Bruno Haible  <bruno@clisp.org>
6776
6777         remainder: Support for MSVC.
6778         * lib/math.in.h (remainder): New declaration.
6779         * lib/remainder.c: New file.
6780         * m4/remainder.m4: New file.
6781         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6782         (Depends-on): Add math, round, fma.
6783         (configure.ac): Use results of gl_FUNC_REMAINDER.
6784         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6786         HAVE_DECL_REMAINDER.
6787         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6788         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6789         * tests/test-math-c++.cc: Check the declaration of remainder.
6790         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6791         problems are fixed.
6792
6793 2012-02-25  Bruno Haible  <bruno@clisp.org>
6794
6795         Tests for module 'fmodl'.
6796         * modules/fmodl-tests: New file.
6797         * tests/test-fmodl.c: New file.
6798         * tests/test-math-c++.cc: Check the declaration of fmodl.
6799
6800         New module 'fmodl'.
6801         * lib/math.in.h (fmodl): New declaration.
6802         * lib/fmodl.c: New file.
6803         * m4/fmodl.m4: New file.
6804         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6806         REPLACE_FMODL.
6807         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6808         REPLACE_FMODL.
6809         * modules/fmodl: New file.
6810         * doc/posix-functions/fmodl.texi: Mention the new module.
6811
6812 2012-02-25  Bruno Haible  <bruno@clisp.org>
6813
6814         Tests for module 'modfl'.
6815         * modules/modfl-tests: New file.
6816         * tests/test-modfl.c: New file.
6817         * tests/test-math-c++.cc: Check the declaration of modfl.
6818
6819         New module 'modfl'.
6820         * lib/math.in.h (modfl): New declaration.
6821         * lib/modfl.c: New file.
6822         * m4/modfl.m4: New file.
6823         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6825         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6826         * modules/modfl: New file.
6827         * doc/posix-functions/modfl.texi: Mention the new module.
6828
6829 2012-02-25  Bruno Haible  <bruno@clisp.org>
6830
6831         Tests for module 'fabsl'.
6832         * modules/fabsl-tests: New file.
6833         * tests/test-fabsl.c: New file.
6834         * tests/test-math-c++.cc: Check the declaration of fabsl.
6835
6836         New module 'fabsl'.
6837         * lib/math.in.h (fabsl): New declaration.
6838         * lib/fabsl.c: New file.
6839         * m4/fabsl.m4: New file.
6840         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6842         REPLACE_FABSL.
6843         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6844         REPLACE_FABSL.
6845         * modules/fabsl: New file.
6846         * doc/posix-functions/fabsl.texi: Mention the new module.
6847
6848 2012-02-25  Bruno Haible  <bruno@clisp.org>
6849
6850         fabs tests: More tests.
6851         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6852         (zero): New variable.
6853         (main): Add tests for signed zero.
6854         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6855
6856         fabsf tests: More tests.
6857         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6858         (zero): New variable.
6859         (main): Add tests for signed zero.
6860         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6861
6862 2012-02-24  Bruno Haible  <bruno@clisp.org>
6863
6864         atanl: Provide function definition on MSVC.
6865         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6866         function pointer.
6867         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6868
6869 2012-02-24  Bruno Haible  <bruno@clisp.org>
6870
6871         acosl: Provide function definition on MSVC.
6872         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6873         function pointer.
6874         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6875
6876 2012-02-24  Bruno Haible  <bruno@clisp.org>
6877
6878         asinl: Provide function definition on MSVC.
6879         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6880         function pointer.
6881         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6882
6883 2012-02-24  Bruno Haible  <bruno@clisp.org>
6884
6885         tanl: Provide function definition on MSVC.
6886         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6887         function pointer.
6888         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6889
6890 2012-02-24  Bruno Haible  <bruno@clisp.org>
6891
6892         cosl: Provide function definition on MSVC.
6893         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6894         function pointer.
6895         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6896
6897 2012-02-24  Bruno Haible  <bruno@clisp.org>
6898
6899         sinl: Provide function definition on MSVC.
6900         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6901         function pointer.
6902         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6903
6904 2012-02-24  Bruno Haible  <bruno@clisp.org>
6905
6906         logl: Provide function definition on MSVC.
6907         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6908         function pointer.
6909         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6910
6911 2012-02-24  Bruno Haible  <bruno@clisp.org>
6912
6913         expl: Provide function definition on MSVC.
6914         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6915         function pointer.
6916         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6917
6918 2012-02-24  Bruno Haible  <bruno@clisp.org>
6919
6920         sqrtl: Provide function definition on MSVC.
6921         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6922         a function pointer.
6923         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6924
6925 2012-02-24  Bruno Haible  <bruno@clisp.org>
6926
6927         ceill: Provide function definition on MSVC.
6928         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6929         used as a function pointer.
6930         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6931
6932 2012-02-24  Bruno Haible  <bruno@clisp.org>
6933
6934         floorl: Provide function definition on MSVC.
6935         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6936         used as a function pointer.
6937         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6938
6939 2012-02-24  Bruno Haible  <bruno@clisp.org>
6940
6941         ceilf: Provide function definition on MSVC.
6942         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6943         used as a function pointer.
6944         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6945
6946 2012-02-24  Bruno Haible  <bruno@clisp.org>
6947
6948         floorf: Provide function definition on MSVC.
6949         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6950         used as a function pointer.
6951         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6952
6953 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6954
6955         stdnoreturn: new module
6956         This implements a replacement for C11's <stdnoreturn.h>.
6957         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6958         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6959         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6960         * tests/test-stdnoreturn.c: New files.
6961
6962 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6963
6964         regex: fix false multibyte matches in some regular expressions
6965         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6966         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6967         * lib/regex_internal.c (re_string_skip_chars):
6968         Fix miscomputation of remain_len that may cause incomplete
6969         multi-byte character and false match.
6970
6971 2012-02-24  Jim Meyering  <meyering@redhat.com>
6972
6973         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6974         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6975         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6976         Remove now-unnecessary str''cmp obfuscation.
6977         Suggested by Akim Demaille.
6978
6979 2012-02-24  Bruno Haible  <bruno@clisp.org>
6980
6981         streq: Rename macro.
6982         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6983         * NEWS: Mention the change.
6984         * lib/mbrtowc.c (mbrtowc): Update.
6985         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6986         * lib/wcwidth.c (wcwidth): Update.
6987         Suggested by Akim Demaille and Jim Meyering.
6988
6989 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6990
6991         regex: fix typo in definition of MIN
6992         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6993         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6994
6995 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6996             Bruno Haible  <bruno@clisp.org>
6997
6998         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6999         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7000         entries into a stack-allocated buffer directly.
7001         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7002
7003 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7004             Bruno Haible  <bruno@clisp.org>
7005
7006         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7007
7008          - There were several instances of this pattern:
7009
7010              for (;;) {
7011                n = acl (f, GETACLCNT, 0, NULL);
7012                [ allocate an array A of size N ]
7013                if (acl (f, GETACL, n, a) == n)
7014                  break;
7015              }
7016
7017            This loop might never terminate if some other process is constantly
7018            manipulating the file's ACL.  The loop should be rewritten to
7019            terminate.
7020
7021          - The acl (... GETACLNT ...) call is merely an optimization; its value
7022            is merely a hint as to how big to make the array.  A better
7023            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7024            and just guess a reasonably-big size, growing the size and trying
7025            again if it's not large enough.  This guarantees termination, and
7026            saves a system call.
7027
7028         * lib/acl-internal.h: Include <limits.h>.
7029         (MIN, SIZE_MAX): New macros.
7030         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7031         a stack-allocated buffer, and use malloc if it does not fit. Don't
7032         use GETACLCNT.
7033         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7034
7035 2012-02-19  Bruno Haible  <bruno@clisp.org>
7036
7037         acl: Fix endless loop on Solaris with vxfs.
7038         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7039         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7040         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7041         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7042         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7043         Reported by Bill Jones in
7044         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7045
7046 2012-02-19  Bruno Haible  <bruno@clisp.org>
7047
7048         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7049         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7050         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7051         that this function returns 0 in some more cases.
7052
7053 2012-02-19  Bruno Haible  <bruno@clisp.org>
7054
7055         acl: Update doc references.
7056         * doc/acl-resources.txt: Update links to Solaris documentation.
7057
7058 2012-02-19  Bruno Haible  <bruno@clisp.org>
7059
7060         Fix test failure in many locales on Solaris 11.
7061         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7062         'tr' arguments.
7063         * tests/test-pipe-filter-ii1.c (main): Likewise.
7064         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7065         expressions in the C locale.
7066         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7067         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7068
7069 2012-02-19  Bruno Haible  <bruno@clisp.org>
7070
7071         gnulib-tool: Improve usage message.
7072         * gnulib-tool (func_usage): Move doc of --help and --version to the
7073         section "Operation modes".
7074
7075 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7076
7077         README-release: make it easier to execute commands
7078         * top/README-release: break commands out on to separate lines.
7079
7080 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7081
7082         GNUmakefile: simplify detection of unconfigured trees
7083         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7084         whether the tree make is being run from is already configured or
7085         not.  Related simplifications.
7086
7087 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7088
7089         * gnulib-tool (func_usage): Document --help and --version.
7090
7091 2012-02-11  Jim Meyering  <meyering@redhat.com>
7092
7093         bootstrap: don't exit 0 upon gnulib-tool failure
7094         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7095         its exit status, not 0.
7096
7097 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7098
7099         README-release: various improvements
7100         * top/README-release: Give a command to push changes for the
7101         release.  Add "distcheck" to list of other pre-release checks.
7102         Fix instance of "make stable" which should be "make TYPE".
7103
7104 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7105
7106         maint: replace FSF snail-mail addresses with URLs
7107         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7108         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7109         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7110         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7111         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7112         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7113         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7114         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7115         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7116         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7117         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7118         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7119         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7120         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7121         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7122         * lib/glthread/thread.c, lib/glthread/thread.h:
7123         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7124         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7125         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7126         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7127         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7128         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7129         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7130         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7131         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7132         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7133         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7134         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7135         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7136         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7137         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7138         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7139         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7140         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7141         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7142         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7143         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7144         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7145         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7146         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7147         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7148         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7149         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7150         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7151         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7152         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7153         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7154         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7155         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7156         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7157         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7158         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7159         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7160         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7161         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7162         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7163         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7164         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7165         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7166         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7167         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7168         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7169         * tests/test-poll.c, tests/test-quotearg-simple.c:
7170         * tests/test-quotearg.c, tests/test-quotearg.h:
7171         * tests/test-round-ieee.c, tests/test-round1.c:
7172         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7173         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7174         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7175         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7176         * tests/test-strerror.c, tests/test-strerror_r.c:
7177         * tests/test-strsignal.c, tests/test-strverscmp.c:
7178         * tests/test-xmemdup0.c:
7179         Replace FSF snail mail addresses with URLs, as per GNU coding
7180         standards.  See glibc bug
7181         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7182
7183 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7184
7185         README-release: capitalize a word and split a line
7186         * top/README-release: Fix punctuation and spacing.
7187
7188 2012-02-08  Akim Demaille  <demaille@gostai.com>
7189
7190         fatal-signal: use C prototypes (with explicit void).
7191         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7192         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7193
7194 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7195
7196         regex: spelling fix
7197         * lib/regexec.c: spelling fix
7198
7199         regex: rely on stdint.h for SIZE_MAX
7200         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7201
7202 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7203
7204         regex: merge glibc changes
7205
7206         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7207         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7208         (init_word_char): Work even if bitset words are not exactly 32 or
7209         64 bits wide.  Don't assume there are no padding bits.
7210         * lib/regex.c [_LIBC]: Do not include <config.h>.
7211         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7212         and -Wtype-limits.
7213         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7214         needless disagreement with glibc.  All uses changed.  Define it to
7215         1 only if _GNU_SOURCE, to match glibc.
7216         (_REG_RM_NAME): Remove; no longer needed, since the names in
7217         question are now all protected by __USE_GNU.
7218         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7219         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7220         * lib/regex_internal.h (MIN): New macro.
7221
7222         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7223         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7224
7225         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7226         * lib/regex_internal.c (re_string_fetch_byte_case):
7227         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7228         is miscompiled, and it turns out it is because of an incorrect
7229         attribute on re_string_fetch_byte_case.  Unlike
7230         re_string_peek_byte_case, this one is really not pure, it modifies
7231         memory (increments pstr->cur_idx), and with the pure attribute GCC
7232         assumed it doesn't and it cached the presumed value of
7233         regexp->cur_idx in a variable across the
7234          for (;; ++i)
7235            {
7236              if (i >= BRACKET_NAME_BUF_SIZE)
7237                return REG_EBRACK;
7238              if (token->type == OP_OPEN_CHAR_CLASS)
7239                ch = re_string_fetch_byte_case (regexp);
7240              else
7241                ch = re_string_fetch_byte (regexp);
7242              if (re_string_eoi(regexp))
7243                return REG_EBRACK;
7244              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7245                break;
7246              elem->opr.name[i] = ch;
7247            }
7248
7249         2011-11-29 Andreas Schwab <schwab@redhat.com>
7250         * lib/regcomp.c (build_equiv_class):
7251         Fix access after end of search string in regex matcher.
7252
7253         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7254         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7255
7256         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7257         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7258
7259         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7260         * lib/regcomp.c (parse_branch, parse_sub_exp):
7261         More regex memory leak fixes and tests.
7262         (parse_sub_exp, parse_bracket_exp):
7263         Fix memory leak for some invalid regular expressions.
7264
7265         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7266         * lib/regex_internal.c, lib/regexec.c:
7267         Fix unnecessary overallocation due to incomplete character.  When
7268         incomplete characters are found at the end of a string the code
7269         ran amok and allocated lots of memory.  Stricter limits are now in
7270         place.
7271
7272         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7273         * lib/regex.h: Update documentation.
7274
7275         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7276         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7277
7278         2010-05-05 Andreas Schwab <schwab@redhat.com>
7279         * lib/regexec.c (find_collation_sequence_value):
7280         Fix lookup of collation sequence value during regexp matching.
7281
7282         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7283         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7284
7285         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7286         * lib/regex.h: Cleanup namespace.
7287
7288         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7289         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7290
7291         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7292         * lib/regex_internal.h: Prevent some declarations and definitions
7293         to be seen when used in tests.
7294
7295         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7296         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7297         __libc_lock_* macros if not _LIBC.
7298         (struct re_dfa_t): Add lock.
7299
7300 2012-02-07  Eric Blake  <eblake@redhat.com>
7301
7302         maint.mk: also prohibit lower-case @var@
7303         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7304         lower case, like @top_srcdir@.
7305
7306 2012-02-04  Eric Blake  <eblake@redhat.com>
7307
7308         canonicalize: avoid uninitialized memory use
7309         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7310         random '/' left in dest.
7311         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7312
7313 2012-02-04  Bruno Haible  <bruno@clisp.org>
7314
7315         isatty: Fix test failure of ptsname_r on native Windows.
7316         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7317         and don't set errno.
7318         (isatty): Test first whether fd is valid. Set errno when returning 0.
7319
7320 2012-02-04  Bruno Haible  <bruno@clisp.org>
7321
7322         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7323         * tests/test-spawn-pipe-main.c: Include progname.h.
7324         (main): Invoke set_program_name.
7325         * modules/spawn-pipe-tests (Depends-on): Add progname.
7326
7327         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7328         * tests/test-nonblocking-socket-main.c: Include progname.h.
7329         (main): Invoke set_program_name.
7330         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7331
7332         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7333         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7334         (main): Invoke set_program_name.
7335         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7336
7337 2012-02-04  Eric Blake  <eblake@redhat.com>
7338
7339         canonicalize-lgpl: fix // handling
7340         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7341
7342         canonicalize: fix // handling
7343         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7344         /// to //, since only // is special.
7345
7346 2012-02-04  Bruno Haible  <bruno@clisp.org>
7347
7348         ioctl: Fix test failure on native Windows.
7349         * lib/ioctl.c: Include msvc-nothrow.h.
7350         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7351
7352 2012-02-04  Bruno Haible  <bruno@clisp.org>
7353
7354         fsync: Avoid test failure on native Windows.
7355         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7356         read-only.
7357
7358 2012-02-04  Bruno Haible  <bruno@clisp.org>
7359
7360         sys_select: Avoid syntax error on OpenBSD 5.0.
7361         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7362         currently being included, just include the system's <sys/select.h>.
7363
7364 2012-02-04  Bruno Haible  <bruno@clisp.org>
7365
7366         sys_select: Avoid syntax error on OpenBSD 5.0.
7367         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7368         <sys/select.h>, not before.
7369         Reported by Jiri B <jirib@devio.us>.
7370
7371 2012-02-04  Bruno Haible  <bruno@clisp.org>
7372
7373         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7374         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7375         global variables.
7376         * tests/test-get-rusage-data.c (main): Likewise.
7377         Reported by Jim Meyering.
7378
7379 2012-02-04  Bruno Haible  <bruno@clisp.org>
7380
7381         stdioext: Fix last commit.
7382         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7383
7384 2012-02-03  Bruno Haible  <bruno@clisp.org>
7385
7386         stdioext: Add tentative support for Plan9.
7387         * lib/stdio-impl.h: Include <errno.h>.
7388         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7389         * lib/freadable.c (freadable): Likewise.
7390         * lib/fwritable.c (fwritable): Likewise.
7391         * lib/fbufmode.c (fbufmode): Likewise.
7392         * lib/freading.c (freading): Likewise.
7393         * lib/fwriting.c (fwriting): Likewise.
7394         * lib/freadptr.c (freadptr): Likewise.
7395         * lib/freadseek.c (freadptrinc): Likewise.
7396         * lib/freadahead.c (freadahead): Likewise.
7397         * lib/fpurge.c (fpurge): Likewise.
7398         * lib/fseeko.c (rpl_fseeko): Likewise.
7399         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7400         Reported by Jens Staal <staal1978@gmail.com>.
7401
7402 2012-02-02  Jim Meyering  <meyering@redhat.com>
7403
7404         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7405         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7406         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7407         not even to try to add the attribute.  Instead, add a pragma to suppress
7408         the suggestion/warning.
7409
7410 2012-01-31  Karl Berry  <karl@gnu.org>
7411
7412         setstate doc: typo.
7413         * doc/posix-functions/setstate.texi (setstate): { not (.
7414
7415 2012-01-31  Bruno Haible  <bruno@clisp.org>
7416
7417         popen: Make more robust on Windows.
7418         * lib/popen.c: On native Windows, use the _popen based code even if
7419         HAVE_POPEN is set.
7420         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7421         environment variable on native Windows.
7422
7423 2012-01-30  Bruno Haible  <bruno@clisp.org>
7424
7425         pclose: Fix typo.
7426         * lib/stdio.in.h (pclose): Fix typo in warning message.
7427
7428 2012-01-30  Bruno Haible  <bruno@clisp.org>
7429
7430         doc about getlogin_r, setstate.
7431         * doc/posix-functions/getlogin_r.texi: List the incompatible
7432         declaration problem under "not fixed by gnulib".
7433         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7434         problem on Solaris 11 and other platforms.
7435
7436 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7437             Bruno Haible  <bruno@clisp.org>
7438
7439         poll tests: Make test more robust.
7440         * tests/test-poll.c: Include macros.h.
7441         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7442         return value of various I/O operations.
7443         * modules/poll-tests (Files): Add tests/macros.h.
7444
7445 2012-01-30  Bruno Haible  <bruno@clisp.org>
7446
7447         sys_stat: Fix support for mingw64 and MSVC.
7448         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7449         header files already do it.
7450         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7451         stat itself.
7452         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7453
7454 2012-01-30  Bruno Haible  <bruno@clisp.org>
7455
7456         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7458         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7459
7460 2012-01-29  Bruno Haible  <bruno@clisp.org>
7461
7462         quotearg: Fix test failure on MacOS X 10.5.
7463         * tests/test-quotearg-simple.c: Include localcharset.h.
7464         (main): If the locale encoding is not ASCII, bypass the tests of
7465         locale_quoting_style and clocale_quoting_style.
7466         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7467
7468 2012-01-29  Jim Meyering  <meyering@redhat.com>
7469
7470         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7471         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7472         detect uses of canonicalize_file_name.
7473
7474 2012-01-28  Bruno Haible  <bruno@clisp.org>
7475
7476         test-framework-sh: Fix test failure with AIX 7.1 diff.
7477         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7478         in column 1, like 'diff -c' does.
7479         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7480         whether 'diff -u' is used. Instead, test whether the output contains
7481         some '@' character.
7482
7483 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7484
7485         strtoimax: eliminate need for stdint.h, inttypes.h checks
7486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7487         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7488         the prerequisites for a recently-introduced strtoimax test.
7489         I guess this might cause strtoimax to be replaced when not
7490         strictly necessary on older hosts, but this shouldn't introduce
7491         any bugs and it should make Emacs 'configure' faster on typical
7492         modern hosts.  Problem discovered when importing the latest gnulib
7493         to an Emacs test version.
7494         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7495
7496 2012-01-28  Bruno Haible  <bruno@clisp.org>
7497
7498         sys_time: Override 'struct timeval' on some native Windows platforms.
7499         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7500         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7501         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7502         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7503         needs to be overridden.
7504         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7505         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7506         * tests/test-sys_select.c: Check that the tv_sec member has the same
7507         size as a 'time_t'.
7508         * tests/test-sys_time.c: Likewise.
7509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7510         is set, set also REPLACE_GETTIMEOFDAY.
7511         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7512         convert the resulting 'struct timeval' before returning.
7513         * lib/select.c: Include <sys/time.h>.
7514         (select, timeval): Undefine at the right place.
7515         * modules/select (Depends-on): Add sys_time.
7516         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7517         some Windows platforms.
7518         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7519
7520 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7521
7522         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7523         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7524         an integer.
7525         * lib/fcntl.c (dupfd): Likewise.
7526         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7527
7528 2012-01-28  Bruno Haible  <bruno@clisp.org>
7529
7530         fcntl: Avoid compilation error on native Windows.
7531         * modules/fcntl (Depends-on): Add 'close'.
7532
7533 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7534
7535         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7536         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7537         pointer to an integer.
7538         * lib/poll.c (IsConsoleHandle): Likewise.
7539         * lib/isatty.c (IsConsoleHandle): Likewise.
7540
7541 2012-01-28  Jim Meyering  <meyering@redhat.com>
7542
7543         doc: clarify README-release
7544         * top/README-release: Clarify: you should make a point to have
7545         the latest stable versions of build tools in your PATH, and the
7546         reference to buildreq is solely for its list of tool names, not
7547         for its minimal-functional version numbers.
7548         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7549
7550         maint.mk: use more readable (yet functionally equivalent) quoting
7551         It is common to quote a single quote in a single quoted string like
7552         this:  '...'\''...'.  Unless you know the idiom, that looks like
7553         gibberish, so prefer to double-quote the string when possible.
7554         Then you can use a more readable, lone single quote: "...'..."
7555         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7556         "don't" is more readable than the equivalent 'don'\''t'.
7557         (sc_cast_of_x_alloc_return_value): Likewise.
7558         (sc_cast_of_alloca_return_value): Likewise.
7559         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7560         rather than '\'':'\''.
7561
7562 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         stdalign: relax _Alignof and tighten _Alignas test
7565         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7566         as it was too strict: alignof must divide offsetof, but it need
7567         not equal offsetof.  Inspired by Joseph S. Myers's comment
7568         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7569         Conversely, tighten the _Alignas test a bit, as the resulting
7570         alignment must be exactly 8.
7571
7572 2012-01-27  Bruno Haible  <bruno@clisp.org>
7573
7574         stdalign: Document the last change.
7575         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7576
7577 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7578
7579         stdalign: check that alignof and offsetof are consistent
7580         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7581         Problem reported for gnulib by Richard W.M. Jones in
7582         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7583
7584 2012-01-27  Jim Meyering  <meyering@redhat.com>
7585
7586         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7587         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7588         convert a sequence with gaps to the minimal containing range.
7589         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7590         * tests/test-update-copyright.sh: Test for this.
7591         The FSF confirmed it is ok to do this, assuming there is at
7592         least one significant change per year in the affected range:
7593         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7594
7595 2012-01-26  Bruno Haible  <bruno@clisp.org>
7596
7597         pipe2: refine doc about thread-safety
7598         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7599         multithread-safety problem.
7600         * doc/glibc-functions/accept4.texi: Likewise.
7601
7602 2012-01-26  Bruno Haible  <bruno@clisp.org>
7603
7604         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7605         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7606         In the test program, include <fcntl.h>, for O_RDONLY.
7607
7608 2012-01-26  Eric Blake  <eblake@redhat.com>
7609
7610         pipe2: document lack of thread-safety in replacement
7611         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7612         issue in replacement.
7613         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7614         Based on a report by Eric Wong.
7615
7616 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7617             Bruno Haible  <bruno@clisp.org>
7618
7619         malloca: Avoid warnings on x86_64 mingw64.
7620         * lib/malloca.c: Include <stdint.h>.
7621         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7622         * modules/malloca (Depends-on): Add stdint.
7623         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7624
7625 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7626
7627         obstack: remove __STDC__ conditionals
7628         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7629         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7630         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7631         m4/include_next.m4 as the only gnulib-maintained places that still
7632         refer to __STDC__.
7633
7634 2012-01-24  Bruno Haible  <bruno@clisp.org>
7635
7636         havelib: Modern quoting.
7637         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7638         the recent change to the GNU coding standards.
7639
7640 2012-01-24  Bruno Haible  <bruno@clisp.org>
7641
7642         stdint: Improve support for Android.
7643         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7644         Reported by Simon Josefsson <simon@josefsson.org>.
7645
7646 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7647
7648         doc: omit trailing empty lines from INSTALL etc.
7649         * doc/Makefile (INSTALL): Omit trailing empty lines.
7650         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7651         omit trailing empty lines.  This simplifies the build procedure.
7652
7653 2012-01-23  Jim Meyering  <meyering@redhat.com>
7654
7655         tests: avoid spurious warnings about gl_sockets_startup
7656         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7657         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7658         reporting a "statement with no effect".
7659         * tests/test-accept.c (main): Mark as "(void)".
7660         * tests/test-accept4.c (main): Likewise.
7661         * tests/test-bind.c (main): Likewise.
7662         * tests/test-connect.c (main): Likewise.
7663         * tests/test-getpeername.c (main): Likewise.
7664         * tests/test-getsockname.c (main): Likewise.
7665         * tests/test-getsockopt.c (main): Likewise.
7666         * tests/test-listen.c (main): Likewise.
7667         * tests/test-recv.c (main): Likewise.
7668         * tests/test-recvfrom.c (main): Likewise.
7669         * tests/test-send.c (main): Likewise.
7670         * tests/test-sendto.c (main): Likewise.
7671         * tests/test-setsockopt.c (main): Likewise.
7672         * tests/test-shutdown.c (main): Likewise.
7673
7674 2012-01-21  Bruno Haible  <bruno@clisp.org>
7675
7676         locale-fr.m4: Fix for Android.
7677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7678         failure of the test program on Bionic libc.
7679
7680 2012-01-21  Jim Meyering  <meyering@redhat.com>
7681
7682         bootstrap: fail when bootstrap_post_import_hook fails
7683         Otherwise, it's far too easy to miss diagnostics emitted
7684         between gnulib-tool's output and that of running configure.
7685         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7686
7687 2012-01-17  Jim Meyering  <meyering@redhat.com>
7688
7689         maint: enable sc_trailing_blank
7690         * build-aux/pmccabe.css: Remove trailing blanks.
7691         * doc/acl-cygwin.txt: Likewise.
7692         * doc/gnu-oids.texi: Likewise
7693         * cfg.mk: Enable sc_trailing_blank.
7694         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7695
7696 2012-01-17  Jim Meyering  <meyering@redhat.com>
7697
7698         maint: enable sc_prohibit_openat_without_use
7699         * cfg.mk: Enable sc_prohibit_openat_without_use.
7700         Exempt lib/selinux-at.c.
7701
7702 2012-01-17  Jim Meyering  <meyering@redhat.com>
7703
7704         maint: enable sc_prohibit_cloexec_without_use
7705         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7706         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7707
7708 2012-01-17  Jim Meyering  <meyering@redhat.com>
7709
7710         maint: enable sc_prohibit_intprops_without_use
7711         * cfg.mk: Enable sc_prohibit_intprops_without_use
7712         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7713
7714 2012-01-17  Jim Meyering  <meyering@redhat.com>
7715
7716         maint: enable sc_prohibit_hash_pjw_without_use
7717         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7718         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7719         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7720         following " (".
7721
7722 2012-01-17  Jim Meyering  <meyering@redhat.com>
7723
7724         maint: enable double-word-prohibiting rule
7725         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7726         Exempt three files.
7727
7728 2012-01-17  Jim Meyering  <meyering@redhat.com>
7729
7730         maint: remove empty lines at EOF, but excluding modules/*
7731         Apply syntax rules at home as well as abroad.  Most changes
7732         were induced by running this:
7733           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7734             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7735             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7736         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7737         Exempt modules/* and two binary files.
7738         Also exempt doc/INSTALL*, per request from Bruno Haible.
7739         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7740         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7741         * doc/Copyright/request-assign.future: Likewise.
7742         * doc/Copyright/request-disclaim.changes: Likewise.
7743         * doc/INSTALL: Likewise.
7744         * doc/INSTALL.ISO: Likewise.
7745         * doc/INSTALL.UTF-8: Likewise.
7746         * doc/acl-cygwin.txt: Likewise.
7747         * doc/acl-resources.txt: Likewise.
7748         * doc/fdl-1.2.texi: Likewise.
7749         * doc/fdl-1.3.texi: Likewise.
7750         * doc/fdl.texi: Likewise.
7751         * lib/argp-pin.c: Likewise.
7752         * lib/round.c: Likewise.
7753         * lib/unicase/u16-totitle.c: Likewise.
7754         * lib/unictype/block_test.c: Likewise.
7755         * lib/uninorm/canonical-decomposition.c: Likewise.
7756         * m4/README: Likewise.
7757         * m4/relocatable-lib.m4: Likewise.
7758         * tests/test-isnand-nolibm.c: Likewise.
7759         * tests/test-isnand.c: Likewise.
7760         * tests/uninorm/NormalizationTest.txt: Likewise.
7761
7762 2012-01-17  Jim Meyering  <meyering@redhat.com>
7763
7764         maint: add framework to run syntax-check rules against gnulib sources
7765         * cfg.mk: New file, to disable all currently-failing tests.
7766         We'll enable them one by one, as they are made to pass.
7767         * Makefile (sc_maint): New rule.
7768
7769 2012-01-21  Bruno Haible  <bruno@clisp.org>
7770
7771         stdint: Add support for Android.
7772         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7773         include the system's <stdint.h>.
7774         Reported by Simon Josefsson <simon@josefsson.org>.
7775
7776 2012-01-19  Jim Meyering  <meyering@redhat.com>
7777
7778         bootstrap: add bootstrap_post_import_hook
7779         Bison does still need something like the gnulib_mk_hook whose
7780         invocation I had to remove along with slurp in commit 767ccd40.
7781         Technically, we could get along without it, but doing so would
7782         have required living with a warning and a mandatory post-bootstrap
7783         automake rerun.
7784         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7785         (bootstrap_post_import_hook): New function.
7786         Invoke it after gnulib-tool --import and before autoreconf.
7787
7788 2012-01-18  Jim Meyering  <meyering@redhat.com>
7789
7790         gitlog-to-changelog: don't use "no_"-prefixed variable name
7791         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7792         to enable both --cluster and --no-cluster.  Change variable name,
7793         s/\$no_cluster/$cluster/, and reverse usage to match.
7794
7795         gitlog-to-changelog: use "||", not "or" in expressions
7796         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7797         expressions.
7798
7799 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7800
7801         gitlog-to-changelog: new option --no-cluster
7802         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7803         clustering of adjacent commit messages.
7804
7805 2012-01-17  Jim Meyering  <meyering@redhat.com>
7806
7807         maint: spell file systems with two words, not one
7808         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7809         two words, not one.
7810
7811 2012-01-16  Jim Meyering  <meyering@redhat.com>
7812
7813         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7814         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7815
7816 2012-01-16  Eric Blake  <eblake@redhat.com>
7817
7818         bootstrap: cater to autoconf 2.59
7819         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7820         is not available.
7821
7822         bootstrap: properly check for libtool
7823         * build-aux/bootstrap (libtoolize): Also run libtool when older
7824         usage is detected.
7825
7826 2012-01-15  Bruno Haible  <bruno@clisp.org>
7827
7828         Improve support for MSVC 9.
7829         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7830         clashes on MSVC.
7831         * lib/fcntl.in.h: Likewise.
7832         * lib/stdlib.in.h: Likewise.
7833         * lib/sys_stat.in.h: Likewise.
7834
7835 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7836
7837         gnupload: we hold the master copy of this script now
7838         For motivation and more information, see:
7839         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7840         * build-aux/gnupload: Make it clear in the heading comments that the
7841         master copy of this file is maintained by gnulib.  Since we are at
7842         it, bump its copyright year and ...
7843         ($scriptversion): ... the date in its version.
7844         ($usage): Patches and bug reports should be sent to the gnulib list,
7845         not the automake one.
7846         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7847         anymore.
7848
7849 2012-01-15  Bruno Haible  <bruno@clisp.org>
7850
7851         Fix module 'random'.
7852         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7853         initstate, setstate are declared.
7854
7855 2012-01-14  Bruno Haible  <bruno@clisp.org>
7856
7857         Tests for module 'random'.
7858         * modules/random-tests: New file.
7859         * tests/test-random.c: New file, based on tests/test-random_r.c.
7860
7861         New module 'random'.
7862         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7863         declarations.
7864         * lib/random.c: New file, based on glibc/stdlib/random.c.
7865         * m4/random.m4: New file.
7866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7867         HAVE_RANDOM.
7868         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7869         * modules/random: New file.
7870         * config/srclist.txt: Add an entry for random.c.
7871         * doc/posix-functions/random.texi: Mention the 'random' module.
7872         * doc/posix-functions/initstate.texi: Likewise.
7873         * doc/posix-functions/setstate.texi: Likewise.
7874         * doc/posix-functions/srandom.texi: Likewise.
7875
7876 2012-01-12  Bruno Haible  <bruno@clisp.org>
7877
7878         random_r: Use common idioms.
7879         * lib/random_r.c: Include <stdlib.h> first.
7880
7881         random_r: Override incompatible API on AIX, OSF/1.
7882         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7883         Override the system function if REPLACE_RANDOM_R is 1.
7884         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7885         and OSF/1, set REPLACE_RANDOM_R.
7886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7887         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7888         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7889         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7890         * doc/glibc-functions/random_r.texi: Likewise.
7891         * doc/glibc-functions/setstate_r.texi: Likewise.
7892
7893         random_r: Support for MSVC 9.
7894         * lib/random_r.c: Include stdint.h, not inttypes.h.
7895
7896 2012-01-12  Eric Blake  <eblake@redhat.com>
7897
7898         inet_ntop: guard extra work by IF_LINT
7899         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7900         better code generation when not checking for warnings.
7901         Suggested by Paul Eggert and Jim Meyering.
7902
7903         strptime: fix regression on mingw
7904         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7905         Fix regression.  Reported by Bruno Haible.
7906
7907 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7908             Bruno Haible  <bruno@clisp.org>
7909
7910         copy-file: add error-code-returning variant.
7911         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7912         (qcopy_file_preserving): New declaration.
7913         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7914         copy_file_preserving. Change return type to 'int'. Don't emit an error
7915         message here.
7916         (copy_file_preserving): New function.
7917         * tests/test-copy-file.c: Include <stdlib.h>.
7918         (main): Test qcopy_file_preserving if the environment variable
7919         NO_STDERR_OUTPUT is set.
7920         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7921         with NO_STDERR_OUTPUT
7922         * tests/test-copy-file-2.sh: Likewise.
7923
7924 2012-01-10  Bruno Haible  <bruno@clisp.org>
7925
7926         copy-file: Use 'quote' module consistently.
7927         * lib/copy-file.c (copy_file_preserving): Use quote().
7928
7929         copy-file: Refactor.
7930         * lib/copy-file.c: Include quote.h.
7931         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7932         message here.
7933         * modules/copy-file (Depends-on): Add quote.
7934
7935         acl: Export qcopy_acl.
7936         * lib/acl.h (qcopy_acl): New declaration.
7937         * lib/copy-acl.c (qcopy_acl): Make non-static.
7938
7939         acl: Rename a local variable.
7940         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7941
7942         acl: Align return values of copy_acl and qcopy_acl.
7943         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7944         maybe < -1.
7945
7946 2012-01-11  Eric Blake  <eblake@redhat.com>
7947
7948         strptime: silence gcc warnings
7949         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7950         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7951         Reported by Daniel P. Berrange.
7952
7953         inet_ntop: silence gcc warning
7954         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7955         Reported by Daniel P. Berrange.
7956
7957 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7958
7959         getloadavg test: skip the test on GNU/Linux without /proc mounted
7960         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7961         file.  When /proc is not mounted, it always fails with ENOENT.
7962         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7963         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7964
7965 2012-01-10  Bruno Haible  <bruno@clisp.org>
7966
7967         regex: Avoid link error on MSVC 9.
7968         * modules/regex (Depends-on): Add wctype.
7969
7970 2012-01-10  Bruno Haible  <bruno@clisp.org>
7971
7972         doc: Mention --with-tests option.
7973         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7974         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7975         --with-tests.
7976         Reported by Reuben Thomas.
7977
7978 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7979
7980         users.txt: order package names lexicographically.
7981         * users.txt: Order package names lexicographically.
7982
7983 2012-01-10  Jim Meyering  <meyering@redhat.com>
7984
7985         maint.mk: fix description in comment
7986         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7987
7988         ignore-value: remove deprecated ignore_ptr function
7989         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7990         * NEWS: Note this.
7991
7992 2012-01-09  Jim Meyering  <meyering@redhat.com>
7993
7994         test-init.sh: avoid a subshell
7995         * tests/test-init.sh: Remove protective subshell.
7996         Suggested by Bernhard Voelker.  While a subshell is normally
7997         required to protect against older shells (Solaris, FreeBSD) that
7998         warn about a missing program before performing redirection, the
7999         shell-selection tests performed by init.sh probably exclude any
8000         offending shell.
8001
8002 2012-01-08  Bruno Haible  <bruno@clisp.org>
8003
8004         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8005         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8006         variable.
8007
8008 2012-01-08  Bruno Haible  <bruno@clisp.org>
8009
8010         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8011         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8012         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8013         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8014         macro.
8015         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8016         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8017         * lib/spawn_faction_addopen.c: Add workaround implementation if
8018         HAVE_WORKING_POSIX_SPAWN.
8019         * modules/spawn (Makefile): Substitute
8020         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8021         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8022         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8023         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8024         (Depends-on): Update conditions.
8025         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8026         the Solaris 11 bug.
8027
8028 2012-01-08  Bruno Haible  <bruno@clisp.org>
8029
8030         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8031         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8033         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8034         macro.
8035         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8036         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8037         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8038         HAVE_WORKING_POSIX_SPAWN.
8039         * modules/spawn (Makefile): Substitute
8040         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8041         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8042         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8043         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8044         (Depends-on): Update conditions.
8045         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8046         the Solaris 11 bug.
8047
8048 2012-01-08  Bruno Haible  <bruno@clisp.org>
8049
8050         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8051         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8053         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8054         HAVE_WORKING_POSIX_SPAWN.
8055         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8056         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8057         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8058         * lib/spawn_faction_addclose.c: Add workaround implementation if
8059         HAVE_WORKING_POSIX_SPAWN.
8060         * modules/spawn (Makefile): Substitute
8061         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8062         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8063         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8064         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8065         (Depends-on): Update conditions.
8066         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8067         the Solaris 11 bug.
8068
8069 2012-01-08  Bruno Haible  <bruno@clisp.org>
8070
8071         doc: Update for Solaris 11 2011-11.
8072         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8073         * m4/printf.m4: Update comments.
8074
8075 2012-01-08  Bruno Haible  <bruno@clisp.org>
8076
8077         mktime: Avoid compilation error on Solaris 11.
8078         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8079
8080 2012-01-08  Bruno Haible  <bruno@clisp.org>
8081
8082         doc: Small fix.
8083         * doc/posix-headers/nl_types.texi: Correct platforms list.
8084
8085 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8086
8087         Add lgpl-3.0 module.
8088         * MODULES.html.sh (Support for building documentation): Add
8089         lgpl-3.0.
8090         * modules/lgpl-3.0: New file.
8091
8092 2012-01-08  Jim Meyering  <meyering@redhat.com>
8093
8094         select.c: indent with spaces, not TABs
8095         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8096
8097 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8098
8099         quotearg: do not use grave accent for left quote
8100         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8101         locale_quoting_style.
8102         (quotearg_buffer_restyled): Fix example.
8103         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8104
8105 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8106
8107         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8108         Most programs do not have translation catalogs for English and much
8109         less separate catalogs for British and American English.  Drop the
8110         suggestion to translators about these two, and provide it
8111         automatically for Unicode locales.  Like most programs, even those
8112         using American English, we use single quotation marks.  This conflicts
8113         with the American typographic convention, but works better when you
8114         cite the entire error message within double quotes.  It also tries not
8115         to clash with established practice and with what non-gnulib programs
8116         will usually do.
8117         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8118         using an UTF-8 or GB-18030 locale.  The list of other locales with
8119         quotes was provided by Bruno Haible.
8120         (quotearg_buffer_restyled): Adjust instructions to translators.
8121         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8122         text, since this would be wrong when using Unicode.
8123         * modules/quotearg: Depend on c-strcaseeq.
8124
8125 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8126
8127         quotearg: fix Wikipedia link
8128         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8129
8130 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8131
8132         Fix for mingw with MSVC9.
8133         * m4/ld-version-script.m4: Check that compiler rejects version
8134         scripts with syntax errors.  Reported by Bruno Haible
8135         <bruno@clisp.org>.
8136
8137 2012-01-06  Bruno Haible  <bruno@clisp.org>
8138
8139         Talk about "native Windows API", not "Woe32".
8140         * lib/accept4.c: Update comments to mention native Windows.
8141         * lib/execute.c: Likewise.
8142         * lib/fatal-signal.c: Likewise.
8143         * lib/localcharset.c: Likewise.
8144         * lib/nanosleep.c: Likewise.
8145         * lib/nl_langinfo.c: Likewise.
8146         * lib/pclose.c: Likewise.
8147         * lib/pipe-filter-gi.c: Likewise.
8148         * lib/pipe-filter-ii.c: Likewise.
8149         * lib/pipe.c: Likewise.
8150         * lib/pipe2.c: Likewise.
8151         * lib/popen.c: Likewise.
8152         * lib/progreloc.c: Likewise.
8153         * lib/relocatable.c: Likewise.
8154         * lib/sigaction.c: Likewise.
8155         * lib/sigprocmask.c: Likewise.
8156         * lib/spawn-pipe.h: Likewise.
8157         * lib/spawn-pipe.c: Likewise.
8158         * lib/spawni.c: Likewise.
8159         * lib/stat-time.h: Likewise.
8160         * lib/w32spawn.h: Likewise.
8161         * tests/test-isatty.c: Likewise.
8162         * lib/config.charset: More comments.
8163         * doc/gnulib-intro.texi: Mention native Windows.
8164         * doc/posix-functions/_Exit_C99.texi: Likewise.
8165         * doc/posix-headers/fcntl.texi: Likewise.
8166
8167 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8168
8169         argp: Avoid crash if translator uses % characters in a translation.
8170         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8171         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8172
8173 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8174
8175         doc: C11 and C++11 are now official
8176         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8177         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8178         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8179         * modules/stdalign:
8180         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8181
8182 2012-01-06  Bruno Haible  <bruno@clisp.org>
8183
8184         uc-is-grapheme-break tests: Tweak.
8185         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8186         message.
8187
8188 2012-01-06  Bruno Haible  <bruno@clisp.org>
8189
8190         test-init.sh: correct the test for diff -u
8191         * tests/test-init.sh: Also redirect stdout to /dev/null.
8192
8193 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8194
8195         Use ', not `, for quoting output.
8196         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8197         (print_changelog_deltas, get_tool_versions, main program):
8198         * build-aux/git-version-gen:
8199         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8200         * build-aux/move-if-change (help):
8201         * build-aux/useless-if-before-free (usage, main program):
8202         * check-module (parse_module_file, usage)
8203         (find_included_lib_files, check_module):
8204         * lib/argmatch.c (main) [TEST]:
8205         * lib/argp-help.c (_help):
8206         * lib/getopt1.c (main) [TEST]:
8207         * lib/git-merge-changelog.c (usage):
8208         * lib/xstrtol-error.c (xstrtol_error):
8209         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8210         * m4/argz.m4 (gl_FUNC_ARGZ):
8211         * m4/bison.m4 (gl_BISON):
8212         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8214         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8215         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8216         * m4/gc-random.m4 (gl_GC_RANDOM):
8217         * m4/intl.m4 (gt_CHECK_DECL):
8218         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8220         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8221         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8222         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8223         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8224         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8225         * tests/test-dirname.c (main):
8226         * tests/test-getpass.c (main):
8227         * tests/test-iconvme.c (main):
8228         * tests/test-parse-datetime.c (LOG):
8229         * tests/test-xstrtoimax.sh:
8230         * tests/test-xstrtol.sh:
8231         * tests/test-xstrtoll.sh:
8232         * tests/test-xstrtoumax.sh:
8233         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8234         * top/GNUmakefile (abort-due-to-no-makefile):
8235         Quote 'like this', not `like this', as per the recent change to
8236         the GNU coding standards.
8237
8238 2012-01-05  Bruno Haible  <bruno@clisp.org>
8239
8240         strtoimax: Don't force a replacement on systems where intmax_t is int.
8241         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8242         'intmax_t' is not larger than 'int'.
8243         Reported by Pádraig Brady <P@draigBrady.com>.
8244
8245 2012-01-05  Bruno Haible  <bruno@clisp.org>
8246
8247         doc: Mention NetBSD bugs.
8248         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8249         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8250
8251 2012-01-05  Bruno Haible  <bruno@clisp.org>
8252
8253         strtoumax tests: Enhance tests.
8254         * tests/test-strtoumax.c (main): Add tests for large values.
8255
8256 2012-01-05  Bruno Haible  <bruno@clisp.org>
8257
8258         strtoimax: Work around AIX 5.1 bug.
8259         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8260         definition.
8261         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8262         Set HAVE_STRTOIMAX.
8263         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8264         REPLACE_STRTOIMAX.
8265         * modules/inttypes-incomplete (Makefile.am): Substitute
8266         REPLACE_STRTOIMAX.
8267         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8268         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8269         (Depends-on): Update conditions.
8270         * tests/test-strtoimax.c (main): Add tests for large values.
8271         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8272
8273 2012-01-05  Bruno Haible  <bruno@clisp.org>
8274
8275         inttypes: Modernize.
8276         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8277         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8278         (Makefile.am): Update inttypes.h rule.
8279
8280 2012-01-05  Jim Meyering  <meyering@redhat.com>
8281
8282         init.sh: don't waste a subshell just to redirect stderr
8283         * tests/init.sh: In testing for diff -u and diff -c, use a
8284         stderr-redirecting exec inside `...` rather than a subshell.
8285
8286         test-init.sh: avoid failure on HP-UX 11.00
8287         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8288         resolves to diff -c or cmp.  Reported by Bruno Haible.
8289
8290 2012-01-05  Bruno Haible  <bruno@clisp.org>
8291
8292         Tests for module 'strtoull'.
8293         * modules/strtoull-tests: New file.
8294         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8295
8296 2012-01-05  Bruno Haible  <bruno@clisp.org>
8297
8298         Tests for module 'strtoll'.
8299         * modules/strtoll-tests: New file.
8300         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8301
8302 2012-01-05  Bruno Haible  <bruno@clisp.org>
8303
8304         Tests for module 'strtoul'.
8305         * modules/strtoul-tests: New file.
8306         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8307
8308 2012-01-05  Bruno Haible  <bruno@clisp.org>
8309
8310         Tests for module 'strtol'.
8311         * modules/strtol-tests: New file.
8312         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8313
8314 2012-01-04  Jim Meyering  <meyering@redhat.com>
8315
8316         test-init.sh: accommodate Solaris 5.10's different diff -u output
8317         * tests/test-init.sh: Also exempt @@ lines from the comparison
8318         of diff output, since Solaris 5.10 and GNU diff formats differ.
8319         Reported by Stefano Lattarini.
8320
8321 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8322
8323         test-posixtm: don't assume signed integer wraparound
8324         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8325         after signed integer overflow.  Inspired by (though it may not
8326         fix) Bruno Haible's bug report in
8327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8328
8329         Spell out "Windows 9x" and "Windows XP".
8330         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8331         "Windows 9x" and "WinXP" with "Windows XP".
8332
8333 2012-01-04  Jim Meyering  <meyering@redhat.com>
8334
8335         test-vc-list-files-cvs.sh: remove obsolete comment
8336         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8337         double exit.  Now that's all encapsulated via skip_ and Exit.
8338
8339 2012-01-04  Bruno Haible  <bruno@clisp.org>
8340
8341         Talk about "native Windows API", not "Win32".
8342         * lib/classpath.c: Update comments to mention native Windows.
8343         * lib/csharpexec.c: Likewise.
8344         * lib/dup2.c: Likewise.
8345         * lib/error.c: Likewise.
8346         * lib/fcntl.c: Likewise.
8347         * lib/filename.h: Likewise.
8348         * lib/findprog.c: Likewise.
8349         * lib/get-rusage-as.c: Likewise.
8350         * lib/get-rusage-data.c: Likewise.
8351         * lib/getpagesize.c: Likewise.
8352         * lib/javaexec.c: Likewise.
8353         * lib/msvc-inval.c: Likewise.
8354         * lib/msvc-nothrow.c: Likewise.
8355         * lib/nanosleep.c: Likewise.
8356         * lib/nonblocking.c: Likewise.
8357         * lib/printf-parse.c: Likewise.
8358         * lib/setlocale.c: Likewise.
8359         * lib/sigaction.c: Likewise.
8360         * lib/strerror_r.c: Likewise.
8361         * lib/tmpdir.c: Likewise.
8362         * lib/vasnprintf.c: Likewise.
8363         * lib/w32spawn.h: Likewise.
8364         * lib/waitpid.c: Likewise.
8365         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8366         * m4/locale-ar.m4: Likewise.
8367         * m4/locale-fr.m4: Likewise.
8368         * m4/locale-ja.m4: Likewise.
8369         * m4/locale-tr.m4: Likewise.
8370         * m4/locale-zh.m4: Likewise.
8371         * m4/printf.m4: Likewise.
8372         * tests/test-cloexec.c: Likewise.
8373         * tests/test-copy-acl.sh: Likewise.
8374         * tests/test-copy-file.sh: Likewise.
8375         * tests/test-file-has-acl.sh: Likewise.
8376         * tests/test-set-mode-acl.sh: Likewise.
8377         * tests/test-dup-safer.c: Likewise.
8378         * tests/test-dup2.c: Likewise.
8379         * tests/test-dup3.c: Likewise.
8380         * tests/test-fcntl.c: Likewise.
8381         * tests/test-nonblocking-pipe.h: Likewise.
8382         * tests/test-nonblocking-socket.h: Likewise.
8383         * tests/test-pipe.c: Likewise.
8384         * tests/test-pipe2.c: Likewise.
8385         * tests/test-spawn-pipe-child.c: Likewise.
8386         * doc/acl-resources.txt: Likewise.
8387         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8388         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8389         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8390         * lib/localcharset.c: Update comments to mention native Windows.
8391         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8392         * lib/localename.c: Likewise.
8393         * lib/progreloc.c: Likewise.
8394         * lib/relocatable.c: Likewise.
8395         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8396         (windows_compute_revents): Renamed from win32_compute_revents.
8397         (windows_compute_revents_socket): Renamed from
8398         win32_compute_revents_socket.
8399         * lib/select.c: Update comments to mention native Windows.
8400         (windows_poll_handle): Renamed from win32_poll_handle.
8401         * m4/threadlib.m4: Update comments to mention native Windows.
8402         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8403         --enable-threads=windows instead of --enable-threads=win32. Set
8404         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8405         * lib/glthread/lock.h: Update comments to mention native Windows.
8406         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8407         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8408         USE_WIN32_THREADS.
8409         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8410         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8411         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8412         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8413         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8414         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8415         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8416         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8417         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8418         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8419         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8420         * tests/test-tls.c: Likewise.
8421         Rationale:
8422         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8423         on both 32-bit and 64-bit Windows systems.
8424         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8425         line of distinction is between "native Windows" on one side and Unix/
8426         POSIX systems on the other side. More details in
8427         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8428         Suggested by Paul Eggert.
8429
8430 2012-01-03  Bruno Haible  <bruno@clisp.org>
8431
8432         isatty: Support for MSVC 9.
8433         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8434         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8435         (_isatty_nothrow): New function.
8436         (isatty): Use it instead of _isatty.
8437         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8438         * lib/poll.c (IsConsoleHandle): Likewise.
8439         * lib/select.c (IsConsoleHandle): Likewise.
8440         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8441         (gl_PREREQ_ISATTY): New macro.
8442         * modules/isatty (Depends-on): Add msvc-inval.
8443         (configure.ac): Invoke gl_PREREQ_ISATTY.
8444
8445 2012-01-03  Jim Meyering  <meyering@redhat.com>
8446
8447         maint.mk: remove temporary transition aid from over 1.5 years ago
8448         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8449         purpose was to aid in the transition (avoiding silent malfunction)
8450         from that old name to the new _sc_search_regexp.  This shim was
8451         added by commit 219c504b.
8452
8453         init.sh: do not try to accommodate compare arguments starting with "-"
8454         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8455         compare arguments that start with "-".  Besides, we do not worry
8456         about this when invoking diff or cmp; why start now with sed?
8457         Using "--" to separate options from argument would trigger sed
8458         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8459         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8460
8461 2012-01-02  Bruno Haible  <bruno@clisp.org>
8462
8463         Enhance tests for module 'isatty'.
8464         * modules/isatty-tests (Depends-on): Add pipe-posix.
8465         * tests/test-isatty.c: Include <fcntl.h>.
8466         (DEV_NULL): New macro.
8467         (main): Test the resut of isatty() also on regular files, pipes, and
8468         /dev/null.
8469
8470         New module 'isatty'.
8471         * lib/unistd.in.h (isatty): New declaration.
8472         * lib/isatty.c: New file, based on an idea of
8473         Bastien Roucariès <roucaries.bastien@gmail.com>.
8474         * m4/isatty.m4: New file.
8475         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8476         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8477         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8478         REPLACE_ISATTY.
8479         * modules/isatty: New file.
8480         * doc/posix-functions/isatty.texi: Mention the new module.
8481         Suggested by Paolo Bonzini.
8482
8483 2012-01-02  Bruno Haible  <bruno@clisp.org>
8484
8485         canonicalize: Tweak 2011-12-29 commit.
8486         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8487         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8488
8489 2012-01-02  Jim Meyering  <meyering@redhat.com>
8490
8491         gitlog-to-changelog: describe input syntax in --help output
8492         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8493
8494         gitlog-to-changelog: fix typo in --help: show backslash before email @
8495         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8496         in sources, but not in actual output.
8497
8498 2011-12-30  Jim Meyering  <meyering@redhat.com>
8499
8500         gitlog-to-changelog: don't malfunction when name contains %-directive
8501         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8502         in a name string cause trouble.  E.g., with a user name of "%s",
8503         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8504
8505 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8506
8507         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8508         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8509         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8510         the "  (tiny change)" notation that is appended to the standard
8511         ChangeLog "date  name  email" header line.
8512
8513 2012-01-01  Jim Meyering  <meyering@redhat.com>
8514
8515         test-framework-sh: init.sh: fix "make dist" failure
8516         When using gnulib-tool's --with-tests option and any module that
8517         depends on test-framework-sh, "make dist" would fail due to the
8518         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8519         in the gltests directory, and not in the gllib/ directory.
8520         One way to work around that is to move the EXTRA_DIST += init.sh
8521         from the primary module to the -tests one:
8522         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8523         * modules/test-framework-sh (Makefile.am): ...not here.
8524         Reported by Tom G. Christensen in
8525         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8526
8527         version-etc: update copyright year reported by --version
8528         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8529
8530 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8531
8532         canonicalize: only stat() if required
8533         * lib/canonicalize.c (canonicalize_filename_mode):
8534         Avoid calling l?stat() when both CAN_MISSING,
8535         and CAN_NOLINKS are set, as we neither need
8536         to resolve symlinks or test component existence.
8537
8538 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8539
8540         doc: cover st_ino issues once; add OpenVMS etc.
8541         * doc/posix-functions/stat.texi (stat):
8542         * doc/posix-functions/lstat.texi (lstat):
8543         * doc/posix-functions/fstatat.texi (fstatat):
8544         * doc/posix-functions/fstat.texi (fstat):
8545         Move general 'struct stat' stuff to sys_stat.texi,
8546         leaving behind a pointer.
8547         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8548         Merge duplicate info about 'struct stat' problems into here.
8549         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8550         and suggest partial workarounds.
8551
8552         same-inode: port to OpenVMS
8553         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8554         three st_ino values.
8555
8556 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8557
8558         canonicalize: fix references to stat() and lstat()
8559         * lib/canonicalize.c (canonicalize_filename_mode):
8560         Ensure references always resolve to a replacement
8561         function if required (even via a macro).
8562
8563 2011-12-30  Jim Meyering  <meyering@redhat.com>
8564
8565         gitlog-to-changelog: remove a little duplication
8566         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8567         rather than twice.
8568
8569 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8570
8571         canonicalize: add support for not resolving symlinks
8572         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8573         indicate we don't want to follow symlinks.  Also
8574         provide CAN_MODE_MASK to aid setting these existing
8575         mutually exclusive values.
8576         * lib/canonicalize.c (canonicalize_filename_mode):
8577         Extract the flags from can_mode parameter, which
8578         are currently just used to select between stat()
8579         and lstat().  Also ensure that mutually exclusive
8580         values are flagged immediately as invalid.
8581         * tests/test-canonicalize.c: Verify symlinks are
8582         not followed, and that invalid flag combinations
8583         are diagnosed.
8584
8585 2011-12-25  Jim Meyering  <meyering@redhat.com>
8586
8587         gitlog-to-changelog: do not clump multi-paragraph entries
8588         Identical header lines (date,name,email+coauthors) are suppressed,
8589         thus putting all entries with those same characteristics under
8590         a single header.  However, when a log entry consists of two or
8591         more paragraphs, it may not be clear where it starts and ends.
8592         This change makes it so that such an entry is always separated
8593         from others by a header line, even when that header would
8594         otherwise be suppressed.
8595         * build-aux/gitlog-to-changelog: Implement the above.
8596         Inspired by a related request from Stefano Lattarini in
8597         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8598
8599 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8600
8601         announce-gen: fix `cmd' typo in diagnostic
8602         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8603         diagnostic: a missing '$' meant that the command was not output.
8604
8605 2011-12-23  Jim Meyering  <meyering@redhat.com>
8606
8607         test-framework-sh: distribute init.sh
8608         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8609         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8610         fail due to the lack of init.sh.
8611
8612         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8613         * modules/atexit-tests: Rather than listing tests/init.sh,
8614         now that there's a module for it, simply depend on that new module.
8615         * modules/closein-tests: Likewise.
8616         * modules/exclude-tests: Likewise.
8617         * modules/getcwd-tests: Likewise.
8618         * modules/perror-tests: Likewise.
8619         * modules/pread-tests: Likewise.
8620         * modules/pwrite-tests: Likewise.
8621         * modules/vc-list-files-tests: Likewise.
8622         * modules/verify-tests: Likewise.
8623         * modules/xalloc-die-tests: Likewise.
8624         * modules/xstrtoimax-tests: Likewise.
8625         * modules/xstrtol-tests: Likewise.
8626         * modules/xstrtoll-tests: Likewise.
8627         * modules/xstrtoumax-tests: Likewise.
8628         * modules/yesno-tests: Likewise.
8629
8630 2011-12-22  Jim Meyering  <meyering@redhat.com>
8631
8632         test-framework-sh: add minimal tests of init.sh's compare function
8633         * modules/test-framework-sh-tests: New file.
8634         * tests/test-init.sh: New file.
8635
8636         test-framework-sh: new module
8637         * modules/test-framework-sh: New file.
8638         * MODULES.html.sh (Support for maintaining and releasing projects):
8639         List it.
8640
8641         init.sh: do not emit simulated diff output to stderr
8642         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8643
8644 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8645
8646         .gitignore: ignore gnulib.dvi and regex.info
8647         * doc/.gitignore:add gnulib.dvi and regex.info
8648
8649 2011-12-22  Jim Meyering  <meyering@redhat.com>
8650
8651         init.sh: correct previous change
8652         * tests/init.sh (compare): My previous change was wrong.
8653         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8654
8655         init.sh: avoid unwarranted test failure when using "set -e"
8656         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8657         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8658         a use like "compare exp out" would get evoke an unconditional failure.
8659
8660 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8661
8662         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8663         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8664         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8665         autoreconf that did not.
8666         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8667         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8668
8669 2011-12-17  Jim Meyering  <meyering@redhat.com>
8670
8671         bootstrap: remove some now-unneeded code
8672         This script arose back when gnulib-tool was young.
8673         Since then, it has seen improvements that render much of this
8674         script unnecessary.  In particular, it can now make symlinks
8675         to the files it uses.  Also, I no longer see as much value in
8676         marking files as read-only via comments.
8677         If you relied on the symlink-creation feature of the preceding
8678         version of this script, you can get most of that functionality
8679         by adding the --symlink option to the definition of
8680         gnulib_tool_option_extras in your bootstrap.conf file.
8681         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8682         Run autopoint and libtoolize *before* gnulib-tool.
8683         After it, run an abbreviated autoreconf, rather than a loop around
8684         all tools.
8685         (slirp, bt_mark_as_generated): Remove functions.
8686
8687 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8688
8689         ftoastr: fix typo
8690         * lib/ftoastr.h: Fix misspelling in comment.
8691
8692 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8693
8694         * top/README-release: fix punctuation.
8695
8696 2011-12-17  Jim Meyering  <meyering@redhat.com>
8697
8698         bootstrap: correct the recent buildreq change
8699         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8700         had no effect.
8701         * build-aux/bootstrap (buildreq): Bracket each search term with
8702         "*...*", so that the shell "case" statement works as intended.
8703         Add comments.
8704
8705 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8706
8707         build: let bootstrap resort to wget when downloading .po files
8708         * build-aux/bootstrap (download_po_files): Fallback to wget when
8709         downloading the .po files via rsync fails.  This is necessary to
8710         bootstrap from behind a strict firewall.
8711
8712 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8713
8714         stdint: don't assume C++11 when compiling with g++
8715         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8717         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8718         work also in C++ before C++11, as that improperly inhibits
8719         generating a substitute stdint.h for that case.
8720
8721 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8722
8723         alloca: protect comment from gnulib-tool
8724         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8725         that gnulib-tool doesn't think it's a license, and munge it to
8726         say "GCC version 3".
8727
8728 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8729
8730         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8731         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8732         $(abs_top_builddir) instead of $(top_builddir).
8733
8734 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8735
8736         strftime-tests: also test nanoseconds
8737         * tests/test-strftime.c (T): Add a test of %N.
8738
8739 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8740
8741         inttypes, stdint: add C++11 support
8742         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8743         when including inttypes.h and stdint.h.  Support this change to
8744         the standard.
8745         * doc/posix-headers/inttypes.texi (inttypes.h):
8746         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8747         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8748         Define if not defined already, for the benefit of pre-C++11 hosts.
8749         Define the standard format macros (e.g., PRId8) always.
8750         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8751         Likewise, if __cpluspus.  Define the standard constant and limit
8752         macros (e.g., INT8_C, INT8_MAX) always.
8753         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8754         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8755         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8756         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8757         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8758         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8759         Likewise.
8760
8761 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8762
8763         nonblocking tests: Fix test failure on Linux/PPC.
8764         Suggested by Prerna Saxena in
8765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8766         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8767         Set to 1100000.
8768
8769 2011-12-12  Jim Meyering  <meyering@redhat.com>
8770
8771         argmatch: don't hard-code `' when listing valid option arguments
8772         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8773         use the quote function to add quotes.  Use fputs rather than
8774         fprintf for the format string with no format directive.
8775
8776 2011-12-07  Eric Blake  <eblake@redhat.com>
8777
8778         bootstrap: detect tools required by gnulib-tool
8779         * build-aux/bootstrap (buildreq): Provide minimum implicit
8780         dependencies.
8781         * DEPENDENCIES: Mention patch as a prereq.
8782
8783 2011-12-04  Bruno Haible  <bruno@clisp.org>
8784
8785         sethostname: Port to Windows platforms.
8786         * lib/sethostname.c: Provide an alternate implementation for Windows
8787         platforms.
8788         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8789         (main): Skip the test if sethostname() fails with EPERM. On Windows
8790         platforms, don't check the result of gethostname().
8791
8792 2011-12-04  Bruno Haible  <bruno@clisp.org>
8793             Jim Meyering  <meyering@redhat.com>
8794
8795         tests: Avoid spurious error message on platforms without mktemp program.
8796         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8797
8798 2011-12-04  Bruno Haible  <bruno@clisp.org>
8799
8800         sethostname: Fix documentation.
8801         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8802         "not fixed" section.
8803
8804 2011-12-03  Bruno Haible  <bruno@clisp.org>
8805
8806         gnulib-tool: Verify that the License field is present and non-empty.
8807         * gnulib-tool (func_get_license_raw): New function, extracted from
8808         func_get_license.
8809         (func_get_license): Use it. Warn if the module is not a test module and
8810         has no license.
8811         Suggested by Jim Meyering.
8812
8813 2011-12-03  Bruno Haible  <bruno@clisp.org>
8814
8815         sethostname tests: Fix link error on mingw.
8816         * tests/test-sethostname1.c: New file, extracted from
8817         tests/test-sethostname.c.
8818         * tests/test-sethostname2.c: New file, extracted from
8819         tests/test-sethostname.c.
8820         * tests/test-sethostname.c: Remove file.
8821         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8822         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8823         (Depends-on): Add gethostname.
8824         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8825         Link the latter with $(GETHOSTNAME_LIB).
8826
8827         sethostname tests: Fix compilation error on mingw.
8828         * tests/test-sethostname.c: Don't include <sys/types.h>.
8829         (geteuid): Use a dummy value without uid_t.
8830         * modules/sethostname-tests (Depends-on): Remove sys_types.
8831
8832         sethostname tests: Avoid a gcc warning.
8833         * tests/test-sethostname.c (main): Remove an unused variable.
8834
8835         Tweak last commit.
8836         * modules/sethostname-tests (Files): Sort by decreasing importance.
8837         (configure.ac): Check for geteuid.
8838         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8839         the test when there's nothing to test. Drop an unnecessary cast.
8840         Improve an error message. Verify that the final sethostname() call
8841         succeeds.
8842
8843 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8844
8845         Add a test suite for the sethostname module.
8846         * modules/sethostname-tests: New file.  A test program
8847         for the sethostname module.
8848         * tests/test-sethostname.c: Likewise.
8849
8850 2011-12-03  Bruno Haible  <bruno@clisp.org>
8851
8852         Tweak last commit.
8853         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8854         Fix preprocessor directives indentation. Fix typos.
8855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8856         * modules/unistd (Makefile): Likewise.
8857
8858 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8859
8860         Integrate the sethostname module into unistd.
8861         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8862         into the unistd.h header.
8863         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8864         preprocessor directives.
8865         * modules/unistd: Setup the Makefile substitutions of the
8866         SETHOSTNAME preprocessor directives.
8867
8868 2011-12-03  Bruno Haible  <bruno@clisp.org>
8869
8870         Tweak last commit.
8871         * lib/sethostname.c: Don't include <string.h>.
8872         (sethostname): No need to copy the argument string to the stack. Don't
8873         call clearerr. Preserve errno when fprintf failed.
8874         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8875         Don't invoke AC_REPLACE_FUNCS.
8876         * modules/sethostname (Link): Remove empty section.
8877         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8878         failure problem.
8879
8880 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8881
8882         New module 'sethostname'.
8883         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8884         for systems that lack it.
8885         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8886         sethostname declaration and function.
8887         * modules/sethostname: New file.  Define the sethostname module.
8888
8889 2011-12-03  Bruno Haible  <bruno@clisp.org>
8890
8891         Tweak last commit.
8892         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8893
8894 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8895
8896         Split the HOST_NAME_MAX detection into a separate m4 macro.
8897         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8898         macro so it can be used by the pending sethostname module.
8899
8900 2011-12-03  Bruno Haible  <bruno@clisp.org>
8901
8902         Fix module descriptions syntax.
8903         * modules/argv-iter (License): Fix syntax.
8904         * modules/di-set (License): Likewise.
8905         * modules/ino-map (License): Likewise.
8906         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8907
8908 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         stdalign: port to Clang 3.0
8911         Problem reported by Simon Josefsson in
8912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8913         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8914         which has <stdalign.h> but which does not define alignof.
8915         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8916
8917 2011-12-01  Eric Blake  <eblake@redhat.com>
8918
8919         mktempd: silence dd usage
8920         * build-aux/mktempd (rand_bytes): Silence dd.
8921
8922 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8923
8924         manywarnings: Don't mention gcc version in docstring.
8925         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8926         Jim Meyering <meyering@redhat.com>.
8927
8928 2011-11-30  Jim Meyering  <meyering@redhat.com>
8929
8930         hash: mark a few floating point constants with "f" suffix
8931         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8932         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8933         floating point constants with "f", since they're destined to be
8934         saved/used as "float"s.
8935
8936 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8937
8938         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8939         * tests/test-float.c (test_long_double): Correct and re-enable the
8940         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8941
8942 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8943
8944         Avoid subtracting two pointers that don't point into the same block.
8945         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8946         only pointers into the same memory block are subtracted. We cannot
8947         assume that sizeof (ptrdiff_t) == sizeof (void *).
8948
8949 2011-11-29  Eric Blake  <eblake@redhat.com>
8950
8951         maint.mk: add syntax check for use of compare from init.sh
8952         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8953         moved here from coreutils.
8954
8955         manywarnings: drop -Wunsuffixed-float-constants
8956         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8957         '1.0D', which is the only way to silence this warning for 'double'.
8958
8959 2011-11-29  Jim Meyering  <meyering@redhat.com>
8960
8961         hash: mark compute_bucket_size with the pure attribute
8962         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8963
8964         quotearg, propername: correct pragma guard expression
8965         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8966         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8967
8968 2011-11-28  Jim Meyering  <meyering@redhat.com>
8969
8970         propername: do not mark proper_name with the const attribute
8971         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8972         since it examines data pointed to by its parameter.
8973         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8974         the suggestion from -Wsuggest-attribute=const.
8975
8976         propername: mark one more function as const
8977         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8978
8979 2011-11-27  Jim Meyering  <meyering@redhat.com>
8980
8981         mark functions with const and pure attributes
8982
8983         Mark functions per suggestions from gcc-4.6 when using these options:
8984         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8985         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8986         Follow these guidelines: when possible, apply the attribute to
8987         an extern declaration, not to its definition.  Apply it to the
8988         definition only when the definition is static.
8989         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8990         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8991         * lib/base64.h (isbase64): Likewise.
8992         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8993         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8994         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8995         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8996         (c_tolower, c_toupper): Likewise.
8997         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8998         * lib/chdir-long.c (find_non_slash): Likewise.
8999         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9000         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9001         * lib/file-type.h (file_type): Likewise.
9002         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9003         * lib/filevercmp.c (verrevcmp): Likewise.
9004         * lib/freadahead.h (freadahead): Likewise.
9005         * lib/fts.c (fts_maxarglen): Likewise.
9006         * lib/hash-pjw.h (hash_pjw): Likewise.
9007         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9008         * lib/hash.c (is_prime, next_prime): Likewise.
9009         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9010         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9011         (hash_table_ok, hash_get_first, hash_string): Likewise.
9012         (compute_bucket_size): Likewise.
9013         * lib/i-ring.h (i_ring_empty): Likewise.
9014         * lib/isnan.c (isnanl): Likewise.
9015         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9016         * lib/memcasecmp.h (memcasecmp): Likewise.
9017         * lib/memchr2.h (memchr2): Likewise.
9018         * lib/memcmp2.h (memcmp2): Likewise.
9019         * lib/parse-datetime.y (lookup_zone): Likewise.
9020         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9021         [!WINDOWS_SOCKETS]: Likewise.
9022         * lib/strnlen1.h (strnlen1): Likewise.
9023         * lib/uniwidth.in.h (uc_width): Likewise.
9024         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9025         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9026         (quoting_options_from_style): Add a comment.
9027         * lib/propername.h (proper_name): Add a comment.
9028
9029 2011-11-27  Bruno Haible  <bruno@clisp.org>
9030
9031         Remove unused macros from !_LIBC code in glibc-borrowed files.
9032         * lib/fnmatch.c (STRCOLL): Remove macro.
9033         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9034         * lib/glob.c (__stat, __readdir64): Remove macros.
9035         * lib/tempname.c (__open64, __xstat64): Remove macros.
9036         Suggested by Paul Eggert.
9037
9038 2011-11-27  Bruno Haible  <bruno@clisp.org>
9039
9040         getcwd: Fix link error on MSVC 9.
9041         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9042
9043 2011-11-27  Bruno Haible  <bruno@clisp.org>
9044
9045         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9046         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9047         HAVE_OPENDIR is 0.
9048         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9049         HAVE_CLOSEDIR is 0.
9050         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9051         is 0.
9052         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9053
9054 2011-11-27  Bruno Haible  <bruno@clisp.org>
9055
9056         getcwd: Fix bug from 2011-08-17.
9057         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9058         platforms that need it.
9059         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9060         code of 4 to be a failure, not a success. This ensures that
9061         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9062
9063 2011-11-27  Bruno Haible  <bruno@clisp.org>
9064
9065         binary-io tests: Avoid test failure on mingw when libtool is used.
9066         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9067         Don't verify the size of t-bin-out1.tmp here.
9068         * tests/test-binary-io.sh: Verify it here.
9069         Reported by Simon Josefsson.
9070
9071 2011-11-26  Bruno Haible  <bruno@clisp.org>
9072
9073         Fix conflict between two instantiations of module 'unistd'.
9074         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9075         ${include_guard_prefix} also in the autoconf snippet.
9076         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9078         GNULIB_UNISTD_H_GETOPT.
9079         * modules/getopt-posix (configure.ac): Set the
9080         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9081         * modules/getopt-gnu (configure.ac): Likewise.
9082         * modules/unistd (Makefile.am): Change the substitution value of
9083         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9084         Reported by Simon Josefsson.
9085
9086 2011-11-25  Bruno Haible  <bruno@clisp.org>
9087
9088         pagealign_alloc: Doc and comments.
9089         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9090         module.
9091         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9092
9093 2011-11-25  Jim Meyering  <meyering@redhat.com>
9094
9095         test-update-copyright.sh: avoid false-positive failure
9096         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9097         around false positive failure on Cygwin/Windows.  The latter was
9098         matching erroneously-created files with names like
9099         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9100
9101 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9102
9103         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9104         * m4/valgrind-tests.m4: Check that the parameters that will be
9105         used works, not just a subset of them.  Reported by Bruno Haible
9106         <bruno@clisp.org>.
9107
9108 2011-11-24  Jim Meyering  <meyering@redhat.com>
9109
9110         test-stdalign.c: comment out long double tests
9111         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9112         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9113         error: '_Alignas' specifiers cannot reduce alignment of \
9114         'static_longdouble_alignas'.
9115
9116 2011-11-22  Jim Meyering  <meyering@redhat.com>
9117
9118         init.sh: make "compare /dev/null FILE" output more readable
9119         * tests/init.sh (compare_): Document the preferred order of arguments.
9120         (emit_diff_u_header_): New function.
9121         (compare_dev_null_): Emit a simulated diff, rather than just the
9122         contents of the unexpected file.  Suggestion from Bruno Haible.
9123
9124 2011-11-21  Jim Meyering  <meyering@redhat.com>
9125             Eric Blake  <eblake@redhat.com>
9126
9127         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9128         * tests/init.sh: Make our compare function slightly more portable.
9129         Reported by Bruno Haible in
9130         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9131
9132 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9133
9134         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9135         before using it, in code that ends up in config.h.
9136
9137 2011-11-20  Bruno Haible  <bruno@clisp.org>
9138
9139         getcwd: Work around getcwd bug on AIX 5..7.
9140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9141         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9142         Use a different value for gl_cv_func_getcwd_path_max. Move the
9143         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9144         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9145         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9146         Define HAVE_MINIMALLY_WORKING_GETCWD.
9147         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9148         where it is not even minimally working, that is, on AIX.
9149         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9150         m4/getcwd-path-max.m4.
9151         (main): Update exit code computation.
9152         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9153         getcwd does not handle long file names.
9154
9155 2011-11-20  Bruno Haible  <bruno@clisp.org>
9156
9157         getcwd: Fix bug from 2009-09-10.
9158         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9159         like "no".
9160
9161 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9162
9163         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9164
9165 2011-11-20  Bruno Haible  <bruno@clisp.org>
9166
9167         fma tests: Avoid shadowing local variables.
9168         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9169         expected.
9170
9171 2011-11-20  Bruno Haible  <bruno@clisp.org>
9172
9173         copysignf tests: Fix.
9174         * tests/test-copysignf.c: Fix signature check.
9175
9176 2011-11-20  Bruno Haible  <bruno@clisp.org>
9177
9178         fma: Remove unused code.
9179         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9180         unused macros.
9181
9182 2011-11-20  Bruno Haible  <bruno@clisp.org>
9183
9184         sethostname: Fix doc about AIX.
9185         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9186         sethostname; it has it.
9187
9188         sethostname: Mention more portability problems.
9189         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9190         problem.
9191         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9192
9193 2011-11-19  Bruno Haible  <bruno@clisp.org>
9194
9195         Depend on module fcntl-h when AT_FDCWD is used.
9196         * modules/utimens (Depends-on): Add fcntl-h.
9197         * modules/areadlinkat (Depends-on): Likewise.
9198         * modules/areadlinkat-with-size (Depends-on): Likewise.
9199         * modules/faccessat (Depends-on): Likewise.
9200         * modules/fchmodat (Depends-on): Likewise.
9201         * modules/fchownat (Depends-on): Likewise.
9202         * modules/getcwd (Depends-on): Likewise.
9203         * modules/mkdirat (Depends-on): Likewise.
9204         * modules/mkfifoat (Depends-on): Likewise.
9205         * modules/readlinkat (Depends-on): Likewise.
9206         * modules/symlinkat (Depends-on): Likewise.
9207         * modules/dup2-tests (Depends-on): Likewise.
9208         * modules/fdutimensat-tests (Depends-on): Likewise.
9209         * modules/futimens-tests (Depends-on): Likewise.
9210
9211 2011-11-19  Bruno Haible  <bruno@clisp.org>
9212
9213         euidaccess: Update a comment.
9214         * lib/euidaccess.c: Update comment about platforms with faccessat.
9215
9216 2011-11-19  Bruno Haible  <bruno@clisp.org>
9217
9218         openat: Fix file list.
9219         * modules/openat (Files): Remove lib/at-func.c.
9220
9221 2011-11-19  Bruno Haible  <bruno@clisp.org>
9222
9223         fstatat: Simplify.
9224         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9225         gnulib should define rpl_fstatat, there is a
9226         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9227
9228 2011-11-19  Bruno Haible  <bruno@clisp.org>
9229
9230         Ensure 'inline' can be used in tests/test-utimens-common.h.
9231         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9232         * modules/futimens-tests (configure.ac): Likewise.
9233         * modules/utimens-tests (configure.ac): Likewise.
9234         * modules/utimensat-tests (configure.ac): Likewise.
9235
9236 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9237
9238         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9239         not hash_insert0.
9240         (hash_insert_if_absent): Doc fix.
9241
9242 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9243
9244         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9245
9246 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9247
9248         test-getcwd: disambiguate exit status
9249         * tests/test-getcwd.c (test_long_name): Return 0..7.
9250         (main): Exit with an unambiguous exit status.  The old
9251         code yielded a mysterious mixture of two failure codes.
9252
9253         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9254         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9255         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9256         rpl_fstatat or fstatat.  This should fix the other problem
9257         reported by Kai Habel in
9258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9259         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9261         and I reproduced it on a Solaris 8 host we still have in production.
9262
9263 2011-11-18  Jim Meyering  <meyering@redhat.com>
9264
9265         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9266         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9267         Add a sentence to the comment.
9268         (hash_insert0): New function that simply calls hash_insert_if_absent.
9269         * lib/hash.h (hash_insert_if_absent): Declare it.
9270         (hash_insert0): Add deprecation attribute.
9271         (_GL_ATTRIBUTE_DEPRECATED): Define.
9272         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9273         not hash_insert0.
9274         * NEWS: Mention it, even though it's not really an incompatible change.
9275
9276 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9277
9278         openat: avoid compilation failure due to lack of <errno.h> inclusion
9279         * lib/openat.c: Include <errno.h>.
9280
9281 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9282
9283         * modules/getcwd (Depends-on): Add fdopendir.
9284         This fixes one of the two problems reported by Kai Habel in
9285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9286
9287         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9288         stdalign problem reported by Ian Beckwith in
9289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9290         * modules/crypto/gc-arcfour (Depends-on):
9291         Depend conditionally on crypto/arcfour.
9292         * modules/crypto/gc-arctwo (Depends-on):
9293         Depend conditionally on crypto/arctwo.
9294         * modules/crypto/gc-des (Depends-on):
9295         Depend conditionally on crypto/des.
9296         * modules/crypto/gc-hmac-md5 (Depends-on):
9297         Depend conditionally on crypto/hmac-md5.
9298         * modules/crypto/gc-hmac-sha1 (Depends-on):
9299         Depend conditionally on crypto/hmac-sha1.
9300         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9301         * modules/crypto/gc-md4 (Depends-on):
9302         Depend conditionally on crypto/md4.
9303         * modules/crypto/gc-md5 (Depends-on):
9304         Depend conditionally on crypto/md5.
9305         * modules/crypto/gc-rijndael (Depends-on):
9306         Depend conditionally on crypto/rijndael.
9307         * modules/crypto/gc-sha1 (Depends-on):
9308         Depend conditionally on crypto/sha1.
9309         * modules/crypto/gc-arcfour:
9310         * modules/crypto/gc-arctwo:
9311         * modules/crypto/gc-des:
9312         * modules/crypto/gc-hmac-md5:
9313         * modules/crypto/gc-hmac-sha1:
9314         * modules/crypto/gc-md2:
9315         * modules/crypto/gc-md4:
9316         * modules/crypto/gc-md5:
9317         * modules/crypto/gc-rijndael:
9318         * modules/crypto/gc-sha1:
9319         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9320         now that the conditional dependencies do the work for us.
9321
9322 2011-11-17  Jim Meyering  <meyering@redhat.com>
9323
9324         tests: factor st_ctime-comparison out of two headers
9325         * tests/test-utimens-common.h (ctime_compare): Define.
9326         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9327         * tests/test-lutimens.h (test_lutimens): Likewise.
9328         * tests/test-utimens.h (test_utimens): Likewise.
9329
9330         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9331         Invoke the test program via an init.sh-using wrapper.
9332         * tests/test-getcwd.sh: New file.
9333         * modules/getcwd-tests (Files): Add it.
9334         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9335
9336 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9337
9338         gitlog-to-changelog: support multi-author commits.
9339         The FSF cares about keeping track of all authors of patches to its
9340         projects, but Git doesn't provide obvious support for multi-author
9341         changesets. Consensus seems to be forming around the use of extra
9342         Signed-off-by inspired lines in the log message formatted as
9343         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9344         multi-author commits between version control systems.
9345         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9346         log message and output in standard ChangeLog multi-author format.
9347         Reported by Peter Rosin <peda@lysator.liu.se>
9348
9349 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9350             Bruno Haible  <bruno@clisp.org>
9351
9352         Fix some modules' file list.
9353         * modules/fstatat (Files): Add m4/lstat.m4.
9354         * modules/openat (Files): Likewise.
9355         * modules/unlinkat (Files): Likewise.
9356
9357 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9358
9359         maint.mk: fix tight-scope.mk generation in VPATH builds.
9360         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9361         reference with $(srcdir) so that the file is found correctly even
9362         when running `make syntax-check' in a VPATH build.
9363
9364 2011-11-13  Bruno Haible  <bruno@clisp.org>
9365             Jim Meyering  <meyering@redhat.com>
9366
9367         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9368         * tests/init.sh (compare): Remove "No differences encountered" or
9369         synonymous output from the 'diff' program.
9370
9371 2011-11-13  Bruno Haible  <bruno@clisp.org>
9372
9373         Makefile: Tweak indentation.
9374         * Makefile: Use tab as first character in every line that contains rule
9375         commands.
9376
9377 2011-11-13  Bruno Haible  <bruno@clisp.org>
9378
9379         Syntax check for copyright statements.
9380         * check-copyright: New file.
9381         * Makefile (sc_check_copyright): New rule.
9382
9383 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9384
9385         * build-aux/git-version-gen: Add --prefix to configure the tag
9386         match string.
9387
9388 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9389
9390         * build-aux/git-version-gen: Add --help and --version.
9391
9392 2011-11-12  Jim Meyering  <meyering@redhat.com>
9393
9394         revamp the other test-exclude?.sh scripts to use init.sh, too
9395         * tests/test-exclude1.sh: Use init.sh.
9396         * tests/test-exclude2.sh: Likewise.
9397         * tests/test-exclude3.sh: Likewise.
9398         * tests/test-exclude4.sh: Likewise.
9399         * tests/test-exclude5.sh: Likewise.
9400         * tests/test-exclude6.sh: Likewise.
9401         * tests/test-exclude7.sh: Likewise.
9402         * tests/test-exclude8.sh: Likewise.
9403         * modules/exclude-tests (Files): List init.sh.
9404
9405         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9406         These shell scripts ignored failure of the binary test-exclude,
9407         so making the latter return 77 didn't cause them to be skipped.
9408         * tests/test-exclude5.sh: Exit with test-exclude's error status
9409         when that program fails.  Revamp to use init.sh.
9410         * tests/test-exclude2.sh: Likewise.
9411
9412         test-exclude: fix a typo
9413         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9414
9415 2011-11-11  Bruno Haible  <bruno@clisp.org>
9416
9417         obstack: Fix compilation error on MSVC 9.
9418         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9419
9420 2011-11-11  Jim Meyering  <meyering@redhat.com>
9421
9422         test-exclude: skip tests rather than failing on deficient systems
9423         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9424         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9425         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9426         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9427
9428 2011-11-10  Bruno Haible  <bruno@clisp.org>
9429
9430         ptsname_r test: Avoid gcc warning on glibc systems.
9431         * tests/test-ptsname_r.c (null_ptr): New function.
9432         (test_errors): Use it.
9433
9434 2011-11-10  Bruno Haible  <bruno@clisp.org>
9435
9436         ptsname_r: Avoid compilation error on OSF/1 5.1.
9437         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9439         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9440         function is not declared or incompatibly declared.
9441         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9442         * modules/ptsname_r (Depends-on, configure.ac): Update.
9443         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9444
9445 2011-11-10  Bruno Haible  <bruno@clisp.org>
9446
9447         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9448         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9449         When cross-compiling, guess yes on all platforms except AIX.
9450         Reported by Ludovic Courtès <ludo@gnu.org>.
9451
9452 2011-11-09  Bruno Haible  <bruno@clisp.org>
9453
9454         ptsname_r tests: Fix bugs.
9455         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9456         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9457
9458 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9459
9460         fstatat: work with cross-compilation
9461         Problem reported by Ludovic Courtès in
9462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9463         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9464         "cross-compiling" and assume the bug is present.  Replace
9465         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9466         an inverted sense, to be more conservative about our assumptions.
9467         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9468
9469 2011-11-09  Bruno Haible  <bruno@clisp.org>
9470
9471         Improve MODULES.html output.
9472         * modules/mkfifoat (Description): Use the word "function".
9473         * modules/readlinkat (Description): Likewise.
9474         * modules/symlinkat (Description): Likewise.
9475
9476 2011-11-09  Eric Blake  <eblake@redhat.com>
9477
9478         ptsname_r-tests: new test module
9479         * modules/ptsname_r-tests: New module.
9480         * tests/test-ptsname_r.c: New file.
9481
9482         ptsname_r: new module
9483         * modules/ptsname_r: New module.
9484         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9485         * lib/ptsname.c (__ptsname_r): Split...
9486         * lib/ptsname_r.c: ...into new file.
9487         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9488         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9489         * modules/stdlib (Makefile.am): Substitute witnesses.
9490         * lib/stdlib.in.h (ptsname_r): Declare it.
9491         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9492         * MODULES.html.sh (Misc): Likewise.
9493         * modules/ptsname (Depends-on): Alter dependency.
9494         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9495
9496 2011-11-09  Jim Meyering  <meyering@redhat.com>
9497
9498         announce-gen: be more concise when there's only one URL+tarball
9499         * build-aux/announce-gen (get_tool_versions): When you distribute
9500         only one type of tarball, combine the first two "Here are..."
9501         sections and make the key-checking grammar independent of
9502         how many tarballs there are.
9503
9504 2011-11-09  Eric Blake  <eblake@redhat.com>
9505
9506         openpty: provide a stub on mingw
9507         * lib/pty.in.h (includes): Provide forward declarations.
9508         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9509
9510         raise: fix mingw handling of SIGPIPE
9511         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9512
9513 2011-11-08  Bruno Haible  <bruno@clisp.org>
9514
9515         More conditional dependencies.
9516         * modules/faccessat (Depends-on): Add conditions.
9517         * modules/fchmodat (Depends-on): Likewise.
9518         * modules/fchownat (Depends-on): Likewise.
9519         * modules/fstatat (Depends-on): Likewise.
9520         * modules/mkfifoat (Depends-on): Likewise.
9521         * modules/readlinkat (Depends-on): Likewise.
9522         * modules/symlinkat (Depends-on): Likewise.
9523         * modules/unlinkat (Depends-on): Likewise.
9524         * modules/utimensat (Depends-on): Likewise.
9525         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9526         * modules/linkat (Depends-on): Refine the conditions.
9527         * modules/renameat (Depends-on): Likewise.
9528
9529 2011-11-08  Bruno Haible  <bruno@clisp.org>
9530
9531         faccessat: Move AC_LIBOBJ invocation to module description.
9532         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9533         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9534         invocation from here...
9535         * modules/faccessat (configure.ac): ... to here. Invoke
9536         gl_PREREQ_FACCESSAT.
9537
9538 2011-11-08  Bruno Haible  <bruno@clisp.org>
9539
9540         faccessat: Simplify autoconf macro.
9541         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9542         gl_FUNC_EUIDACCESS.
9543
9544 2011-11-08  Bruno Haible  <bruno@clisp.org>
9545
9546         renameat: Fix dependencies.
9547         * modules/renameat (Depends-on): Add stdbool.
9548
9549 2011-11-08  Bruno Haible  <bruno@clisp.org>
9550
9551         mkfifoat: Fix module description.
9552         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9553         not gl_UNISTD_MODULE_INDICATOR.
9554
9555 2011-11-08  Bruno Haible  <bruno@clisp.org>
9556
9557         fstatat: Remove unused dependency.
9558         * modules/fstatat (Depends-on): Remove fstat.
9559
9560 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9561
9562         GNUmakefile: behave when Makefile is missing.
9563         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9564
9565 2011-11-08  Bruno Haible  <bruno@clisp.org>
9566
9567         openat: Conditionalize dependencies.
9568         * lib/openat.c: Reduce the scope of some #includes.
9569         * modules/openat (Depends-on): Add conditions.
9570
9571 2011-11-07  Jim Meyering  <meyering@redhat.com>
9572
9573         maint.mk: extract GPG key ID without using a temporary file
9574         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9575         without using a temporary file.  Based on a suggestion from Werner Koch
9576         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9577
9578 2011-11-07  Eric Blake  <eblake@redhat.com>
9579
9580         grantpt: fix typo
9581         * lib/stdlib.in.h (grantpt): Check correct function.
9582
9583         maint.mk: silence new syntax check
9584         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9585
9586 2011-11-06  Bruno Haible  <bruno@clisp.org>
9587
9588         Doc about floating-point and math API.
9589         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9590         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9591
9592 2011-11-06  Bruno Haible  <bruno@clisp.org>
9593
9594         stdalign tests: Skip the test when compiled by Sun C.
9595         * tests/test-stdalign.c (main): Skip the test on Sun C.
9596
9597 2011-11-06  Bruno Haible  <bruno@clisp.org>
9598
9599         ansi-c++-opt: Complete the 2011-06-05 change.
9600         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9601         does not support namespaces, set the variable to "no", not to ":".
9602
9603 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9604
9605         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9606
9607 2011-11-06  Bruno Haible  <bruno@clisp.org>
9608
9609         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9610         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9611         (minus_zerol) [HP-UX]: New macro.
9612         (unary_minus) [HP-UX]: New function.
9613         (copysignl) [HP-UX]: Use unary_minus function.
9614
9615 2011-11-06  Bruno Haible  <bruno@clisp.org>
9616
9617         ldexp, ldexpf, ldexpl: Enhance tests.
9618         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9619         and tests/test-ldexpl.c.
9620         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9621         LDEXP, MIN_EXP, MAX_EXP): New macros.
9622         Include test-ldexp.h.
9623         (main): Just call test_function.
9624         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9625         infinity.h, nan.h.
9626         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9627         MAX_EXP): New macros.
9628         Include test-ldexp.h.
9629         (x, y): Remove variables.
9630         (main): Just call test_function.
9631         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9632         infinity.h, nan.h.
9633         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9634         MAX_EXP): New macros.
9635         Include test-ldexp.h.
9636         (x, y): Remove variables.
9637         (main): Just call test_function.
9638         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9639         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9640         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9641         (Depends-on): Add isnand-nolibm, signbit, float.
9642         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9643         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9644         (Depends-on): Add isnanf-nolibm, signbit, float.
9645
9646 2011-11-06  Bruno Haible  <bruno@clisp.org>
9647
9648         math tests: Cosmetics.
9649         * tests/test-math-c++.cc: Reorder declarations.
9650
9651 2011-11-05  Bruno Haible  <bruno@clisp.org>
9652
9653         fma*: Simplify test.
9654         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9655         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9656
9657         Tests for module 'fmal'.
9658         * modules/fmal-tests: New file.
9659         * tests/test-fmal1.c: New file.
9660         * tests/test-fmal2.c: New file.
9661
9662         New module 'fmal'.
9663         * lib/math.in.h (fmal): New declaration.
9664         * lib/fmal.c: New file.
9665         * m4/fmal.m4: New file.
9666         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9668         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9669         REPLACE_FMAL.
9670         * modules/fmal: New file.
9671         * doc/posix-functions/fmal.texi: Mention the new module and the various
9672         bugs.
9673
9674         Tests for module 'fmaf'.
9675         * modules/fmaf-tests: New file.
9676         * tests/test-fmaf1.c: New file.
9677         * tests/test-fmaf2.c: New file.
9678
9679         New module 'fmaf'.
9680         * lib/math.in.h (fmaf): New declaration.
9681         * lib/fmaf.c: New file.
9682         * m4/fmaf.m4: New file.
9683         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9685         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9686         REPLACE_FMAF.
9687         * modules/fmaf: New file.
9688         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9689         bugs.
9690
9691         Tests for module 'fma'.
9692         * modules/fma-tests: New file.
9693         * tests/test-fma1.c: New file.
9694         * tests/test-fma1.h: New file.
9695         * tests/test-fma2.c: New file.
9696         * tests/test-fma2.h: New file.
9697
9698         New module 'fma'.
9699         * lib/math.in.h (fma): New declaration.
9700         * lib/fma.c: New file.
9701         * m4/fma.m4: New file.
9702         * m4/fegetround.m4: New file.
9703         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9705         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9706         REPLACE_FMA.
9707         * modules/fma: New file.
9708         * doc/posix-functions/fma.texi: Mention the new module and the various
9709         bugs.
9710
9711         Extend gl_MATHFUNC.
9712         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9713         Support 'void' as argument type.
9714         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9715
9716 2011-11-05  Jim Meyering  <meyering@redhat.com>
9717
9718         maint.mk: also prohibit inclusion of dirent.h without use
9719         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9720
9721 2011-11-05  Bruno Haible  <bruno@clisp.org>
9722
9723         ldexpl tests: Avoid test failure on MSVC 9.
9724         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9725         value. Needed in order to enforce the conversion from a value greater
9726         than LDBL_MAX to Infinity.
9727
9728 2011-11-05  Bruno Haible  <bruno@clisp.org>
9729
9730         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9731         * modules/at-internal: New file, extracted from modules/openat.
9732         * modules/openat-h: New file.
9733         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9734         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9735         * modules/openat (Description): Add reference to POSIX function.
9736         (Files): Remove lib/openat.h, lib/openat-proc.c.
9737         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9738         intprops, unistd.
9739         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9740         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9741         gl_FCNTL_MODULE_INDICATOR.
9742         (Include): Remove unistd.h, openat.h.
9743         * modules/areadlinkat (Files): Add lib/at-func.c.
9744         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9745         openat-die, openat-h, save-cwd.
9746         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9747         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9748         openat-die, openat-h, save-cwd, unistd.
9749         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9750         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9751         openat-h, save-cwd. Remove fcntl-h, openat.
9752         * modules/fchmodat (Files): Remove lib/openat.h.
9753         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9754         openat, stdbool, unistd.
9755         * modules/fchownat (Files): Remove lib/openat.h.
9756         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9757         openat, stdbool, sys_stat.
9758         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9759         lib/openat-proc.c.
9760         (Depends-on): Add at-internal.
9761         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9762         * modules/fstatat (Files): Remove lib/openat.h.
9763         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9764         stdbool, unistd.
9765         * modules/fts (Depends-on): Add openat-h.
9766         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9767         openat.
9768         * modules/mkdirat (Files): Remove lib/openat.h.
9769         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9770         openat, stdbool, sys_stat.
9771         * modules/mkfifoat (Files): Add lib/at-func.c.
9772         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9773         openat-h, save-cwd. Remove fcntl-h, openat.
9774         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9775         * modules/readlinkat (Files): Add lib/at-func.c.
9776         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9777         openat-h, save-cwd. Remove fcntl-h, openat.
9778         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9779         openat.
9780         * modules/selinux-at (Files): Add lib/at-func.c.
9781         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9782         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9783         * modules/symlinkat (Files): Add lib/at-func.c.
9784         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9785         openat-h, save-cwd. Remove fcntl-h, openat.
9786         * modules/unlinkat (Files): Remove lib/openat.h.
9787         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9788         stdbool.
9789         * modules/utimensat (Files): Add lib/at-func.c.
9790         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9791         openat-die, openat-h, save-cwd.
9792         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9793         * modules/fdutimensat-tests (Depends-on): Add openat.
9794         * modules/fstatat-tests (Depends-on): Add openat-h.
9795         * modules/readlinkat-tests (Depends-on): Add openat.
9796         * modules/symlinkat-tests (Depends-on): Add openat.
9797
9798 2011-11-05  Bruno Haible  <bruno@clisp.org>
9799
9800         openat: Include <stdbool.h>.
9801         * lib/openat.c: Include <stdbool.h>.
9802
9803 2011-11-04  Bruno Haible  <bruno@clisp.org>
9804
9805         fchownat, renameat, unlinkat: Fix dependencies.
9806         * modules/fchownat (Depends-on): Add fstatat.
9807         * modules/renameat (Depends-on): Likewise.
9808         * modules/unlinkat (Depends-on): Likewise.
9809
9810 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9811
9812         openat: remove direct dependency on dirent
9813         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9814         and hasn't been needed ever since fdopendir was split into its own
9815         module on 2009-08-31.
9816         * modules/openat (Depends-on): Remove dirent.
9817
9818 2011-11-04  Bruno Haible  <bruno@clisp.org>
9819
9820         renameat: Optimize code size.
9821         * modules/renameat (configure.ac): Don't compile at-func2.c if
9822         REPLACE_RENAMEAT is 1.
9823
9824 2011-11-04  Bruno Haible  <bruno@clisp.org>
9825
9826         openat tests: Fix file list.
9827         * modules/openat-tests (Files): Add tests/test-open.h.
9828
9829 2011-11-04  Bruno Haible  <bruno@clisp.org>
9830
9831         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9832         * modules/fchmodat (Depends-on): Add openat-die.
9833         * modules/fchownat (Depends-on): Likewise.
9834         * modules/linkat (Depends-on): Likewise.
9835         * modules/renameat (Depends-on): Likewise.
9836         * modules/openat (Depends-on): Add dirent.
9837
9838 2011-11-04  Jim Meyering  <meyering@redhat.com>
9839
9840         at-func*.c: fix comments
9841         * lib/at-func2.c: Correct/improve first-line comment.
9842         * lib/at-func.c: Correct grammar in first-line comment.
9843
9844 2011-11-04  Bruno Haible  <bruno@clisp.org>
9845
9846         New module 'mkdirat', split off from module 'openat'.
9847         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9848         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9849         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9850         * modules/mkdirat: New file, extracted from modules/openat.
9851         * modules/openat (Files): Remove lib/mkdirat.c.
9852         (Depends-on): Remove mkdir.
9853         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9854         (Include): Remove <sys/stat.h>.
9855         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9856         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9857         tests/test-mkdir.h.
9858         (Depends-on): Remove ignore-value.
9859         (Makefile.am): Remove rules for test-mkdirat.
9860         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9861         of module 'openat'.
9862         * NEWS: Mention the change.
9863
9864 2011-11-04  Bruno Haible  <bruno@clisp.org>
9865
9866         closedir: Avoid warning on mingw.
9867         * lib/closedir.c: Include <unistd.h>.
9868
9869 2011-11-04  Bruno Haible  <bruno@clisp.org>
9870
9871         New module 'fstatat', split off from module 'openat'.
9872         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9873         defined.
9874         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9875         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9876         gl_FUNC_FSTATAT.
9877         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9878         * modules/fstatat: New file, extracted from modules/openat.
9879         * modules/openat (Files): Remove lib/fstatat.c.
9880         (Depends-on): Remove lstat.
9881         (configure.ac): Remove AC_LIBOBJ of fstatat.
9882         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9883         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9884         tests/test-lstat.h, tests/test-stat.h.
9885         (Depends-on): Remove getcwd-lgpl.
9886         (Makefile.am): Remove rules for test-fstatat.
9887         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9888         of module 'openat'.
9889         * NEWS: Mention the change.
9890         * modules/getcwd (Depends-on): Add fstatat.
9891         * modules/linkat (Depends-on): Likewise.
9892         * modules/mkfifoat-tests (Depends-on): Likewise.
9893         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9894
9895 2011-11-03  Bruno Haible  <bruno@clisp.org>
9896
9897         New module 'unlinkat', split off from module 'openat'.
9898         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9899         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9900         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9901         * modules/unlinkat: New file, extracted from modules/openat. Correct
9902         the dependency conditions.
9903         * modules/openat (Files): Remove lib/unlinkat.c.
9904         (Depends-on): Remove rmdir, unlink.
9905         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9906         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9907         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9908         tests/test-rmdir.h, tests/test-unlink.h.
9909         (Depends-on): Remove unlinkdir.
9910         (Makefile.am): Remove rules for test-unlinkat.
9911         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9912         of module 'openat'.
9913         * NEWS: Mention the change.
9914         * modules/linkat-tests (Depends-on): Add unlinkat.
9915         * modules/mkfifoat-tests (Depends-on): Likewise.
9916         * modules/readlinkat-tests (Depends-on): Likewise.
9917
9918 2011-11-02  Bruno Haible  <bruno@clisp.org>
9919
9920         New module 'fchmodat', split off from module 'openat'.
9921         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9922         defined.
9923         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9924         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9925         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9926         * modules/fchmodat: New file, extracted from modules/openat.
9927         * modules/openat (Files): Remove lib/fchmodat.c.
9928         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9929         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9930         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9931         (Makefile.am): Remove rules for test-fchmodat.
9932         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9933         of module 'openat'.
9934         * NEWS: Mention the change.
9935
9936 2011-11-02  Jim Meyering  <meyering@redhat.com>
9937
9938         putenv: indent #definition of "environ" to placate cppi
9939         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9940
9941         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9942         Git logs are often treated as immutable, because editing them
9943         changes the SHA1 checksums of all descendants.  Thus, errors in
9944         git logs tend to stay there forever.  However, when we generate
9945         a ChangeLog file -- typically for distribution -- from that git log,
9946         we can actually make corrections in the generated file.  The key
9947         lies in recording in machine-readable/applicable form the desired
9948         corrections.  See --help for description and an example.
9949         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9950         (usage): Describe it; alphabetize option descriptions.
9951         (main): Honor the new option, carefully.
9952
9953 2011-11-01  Jim Meyering  <meyering@redhat.com>
9954
9955         gitlog-to-changelog: avoid an infloop
9956         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9957         that ends up being empty.
9958
9959 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9960
9961         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9962         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9963         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9964         contains (possibly-quoted) backslashes.  This should avoid
9965         all-too-common shell bugs if COMPLICATED contains backslashes in
9966         the "wrong" places.  Reported by David Evans in
9967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9968         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9969         because we want ASCII ranges.  Is there some reason we don't use
9970         the C locale everywhere in this script?
9971         (func_module, top level): Avoid unwanted pathname expansion when
9972         $repo_url_prefix or $repo_url_suffix_repl contain shell
9973         metacharacters like '?' and '*'.
9974
9975 2011-11-01  Bruno Haible  <bruno@clisp.org>
9976
9977         fchownat: Improve description.
9978         * modules/fchownat (Description): Add link to function.
9979
9980 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9981
9982         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9983         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9985         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9986
9987 2011-11-01  Bruno Haible  <bruno@clisp.org>
9988
9989         alignof: Avoid collision with stdalign module.
9990         * lib/alignof.h (alignof): Remove macro.
9991         * NEWS: Mention the change.
9992         Reported by Paul Eggert.
9993
9994 2011-11-01  Bruno Haible  <bruno@clisp.org>
9995
9996         New module 'fchownat', split off from module 'openat'.
9997         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9998         defined.
9999         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10000         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10001         invoke gl_FUNC_FCHOWNAT.
10002         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10003         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10004         * modules/fchownat: New file, extracted from modules/openat.
10005         * modules/openat (Files): Remove lib/fchownat.c.
10006         (Depends-on): Remove lchown.
10007         (configure.ac): Remove AC_LIBOBJ of fchownat.
10008         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10009         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10010         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10011         (Depends-on): Remove mgetgroups, usleep, stat-time.
10012         (configure.ac): Remove test for getegid.
10013         (Makefile.am): Remove rules for test-fchownat.
10014         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10015         of module 'openat'.
10016         * NEWS: Mention the change.
10017
10018 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10019
10020         stdalign: port better to MSVC and to Sun C 5.11
10021         This fixes some of the problems reported by Bruno Haible in
10022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10023         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10024         shortcomings of MSVC and of Sun C 5.11.
10025         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10026         around __declspec arg.
10027         * modules/stdalign-tests (Files): Add tests/macros.h.
10028         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10029         Include macros.h, for ASSERT.
10030         (DECLARE_ALIGNED): Remove.
10031         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10032         to catch bug), and to 1 if not (simplifies the rest of the code).
10033         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10034         (CHECK_AUTO): Remove.
10035         (CHECK_ALIGNED): Check only the alignment of the static vars,
10036         since auto var alignment isn't supported by Sun C 5.11.
10037         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10038         ASSERT failures are easier to diagnose.
10039
10040 2011-10-31  Bruno Haible  <bruno@clisp.org>
10041
10042         doc about some IRIX 5.3 problems.
10043         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10044         on IRIX 5.3.
10045         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10046         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10047         5.3.
10048         * doc/posix-functions/grantpt.texi: Likewise.
10049         * doc/posix-functions/unlockpt.texi: Likewise.
10050         * doc/posix-functions/lgamma.texi: Likewise.
10051         * doc/posix-functions/nextafter.texi: Likewise.
10052         * doc/posix-functions/remainder.texi: Likewise.
10053         * doc/posix-functions/select.texi: Mention misplaced declaration on
10054         IRIX 5.3.
10055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10056
10057 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10058
10059         gitlog-to-changelog: fix git-log invocation.
10060         git-log mishandles date strings before 1970-01-01 UTC, and there is
10061         no use to specify --since=1970-01-01 by default anyway.
10062         * build-aux/gitlog-to-changelog: By default, when no --since option
10063         was given, do not specify explicit --since option to git-log.
10064
10065 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10066
10067         gitlog-to-changelog: new option --append-dot.
10068         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10069         first non-blank line of each commit message terminated with a dot.
10070
10071 2011-10-30  Bruno Haible  <bruno@clisp.org>
10072
10073         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10074         * lib/ffsl.h: Include <config.h>.
10075         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10076
10077 2011-10-30  Jim Meyering  <meyering@redhat.com>
10078
10079         GNUmakefile: reenable "make syntax-check" for most projects
10080         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10081         build-aux variable", "syntax-check" would do nothing but succeed with
10082         the "No version control files detected..." diagnostic (unless you
10083         happened to override _build-aux via cfg.mk).
10084         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10085         to precede inclusion of maint.mk.  Otherwise, these variables would
10086         be used undefined in any project that does not override the default.
10087
10088 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10089
10090         gitlog-to-changelog: treat a message with only blank lines as empty.
10091         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10092         trailing blank lines before the code that issues a warning about an
10093         empty commit message.
10094
10095 2011-10-30  Jim Meyering  <meyering@redhat.com>
10096
10097         test-parse-datetime.c: avoid new DST-related false positive test failure
10098         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10099         based on the time/date we'll convert, not the current time.
10100         Otherwise, the moment we cross a DST boundary like today's in
10101         Europe, (CEST to CET), that offset ends up being one hour off.
10102
10103 2011-10-27  Bruno Haible  <bruno@clisp.org>
10104
10105         fstat: Tweak documentation.
10106         * modules/fstat (Description): More precise description.
10107
10108 2011-10-27  Bruno Haible  <bruno@clisp.org>
10109
10110         Update documentation regarding 'largefile' module.
10111         * doc/posix-functions/fstat.texi: Tweak wording.
10112         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10113         problems with huge directories and/or small ino_t types.
10114         * doc/posix-functions/readdir.texi: Likewise.
10115         * doc/posix-functions/rewinddir.texi: Likewise.
10116
10117 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10118
10119         maint.mk: don't maintain a second build-aux variable.
10120         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10121         depends on GNUmakefile, which already maintains a cfg.mk
10122         overridable $(_build-aux) for projects with a non-standard
10123         build-aux directory location, although without the $(srcdir)
10124         prefix.  Use that variable consistently instead of introducing a
10125         second one.  Adjust all call sites.
10126
10127 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10128
10129         Add stdalign module and use it in other modules.
10130         This is based on a previous proposal by Bruno Haible
10131         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10132
10133         stdalign: new module
10134         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10135         * modules/stdalign: New files.
10136         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10137         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10138
10139         stdalign-tests: new module
10140         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10141
10142         argp: use stdalign
10143         * lib/argp-parse.c: Include <stdalign.h>.
10144         (alignof): Remove.
10145         * modules/argp (Depends-on): Add stdalign.
10146
10147         crypto libraries: use stdalign
10148         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10149         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10150         Do not include <stdlib.h> twice, in md4.c.
10151         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10152         because we are accessing a pointer's bit-pattern, not a size.
10153         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10154         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10155         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10156         * modules/crypto/sha512: Likewise.
10157
10158         sys_socket: use stdalign, not alignof
10159         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10160         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10161
10162 2011-10-27  Bruno Haible  <bruno@clisp.org>
10163
10164         raise test: Avoid a test failure on Linux/MIPS.
10165         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10166         because 99 is a valid signal on Linux/MIPS.
10167
10168 2011-10-27  Bruno Haible  <bruno@clisp.org>
10169
10170         nonblocking tests: Fix test failure on Linux/MIPS.
10171         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10172         Set to 270000.
10173
10174 2011-10-27  Bruno Haible  <bruno@clisp.org>
10175
10176         utimensat: Work around problem on Linux/hppa.
10177         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10178         values.
10179         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10180
10181 2011-10-25  Jim Meyering  <meyering@redhat.com>
10182
10183         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10184         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10185         after symbols like NULL, size_t, etc.
10186         Reported by Alfred M. Szmidt.
10187
10188         maint.mk: exempt ENODATA from a syntax-check rule
10189         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10190         from the sc_prohibit_always-defined_macros syntax-check rule.
10191         Add a comment.  See this for more details:
10192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10193
10194 2011-10-23  Jim Meyering  <meyering@redhat.com>
10195
10196         fts: close parent dir FD before returning from post-traversal fts_read
10197         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10198         unlink A, even though an FD open on A remained.  This is suboptimal
10199         (holding a file descriptor open longer than needed), but otherwise not
10200         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10201         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10202         that represents a real problem: it causes the removal of A to fail
10203         with e.g., "rm: cannot remove `A': Device or resource busy"
10204
10205         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10206         directory file descriptors.  After completing the final, FTS_DP,
10207         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10208         cache, but then proceeded to add a new FD to it via the subsequent
10209         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10210         final file descriptor would be closed only via fts_close's call to
10211         fd_ring_clear.  Now, it is usually closed earlier, via the final
10212         FTS_DP-returning fts_read call.
10213         * lib/fts.c (restore_initial_cwd): New function, converted from
10214         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10215         Update callers.
10216         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10217         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10218
10219 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10220             Bruno Haible  <bruno@clisp.org>
10221             Jim Meyering  <jim@meyering.net>
10222
10223         readme-release: improve safety of release prep instructions.
10224         * README-release: Don't git pull all branches when only master
10225         is needed for the release process.
10226         Run make maintainer-clean before changing trees and merging.
10227         Don't try to run ./configure right after git pull in case files
10228         that influence the bootstrap process have changed, move the
10229         ./configure step to after running ./bootstrap.
10230         Don't bootstrap "one last time"... it's the first time!
10231
10232 2011-10-22  Bruno Haible  <bruno@clisp.org>
10233
10234         errno, strerror-override: Support for MSVC 10.
10235         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10236         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10237         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10238         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10239         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10240         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10241         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10242         Assign values compatible with MSVC 10.
10243         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10244         New macros.
10245         (GNULIB_defined_EWINSOCK): New macro.
10246         * lib/strerror-override.c (strerror_override): Update accordingly.
10247         * lib/strerror-override.h: Likewise.
10248         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10249         longer equal to the corresponding errno value.
10250         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10251
10252 2011-10-22  Bruno Haible  <bruno@clisp.org>
10253
10254         perror: Recognize when test program crashes.
10255         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10256         strerror, set gl_cv_func_perror_works to no.
10257         Reported by Daniel Richard G. <skunk@iskunk.org>.
10258
10259         perror: Fix indentation.
10260         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10261
10262 2011-10-22  Bruno Haible  <bruno@clisp.org>
10263
10264         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10265         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10266         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10267         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10268         functions, not as a macro.
10269         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10270         macros.
10271         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10272         absence of macro.
10273         Suggested by Eric Blake.
10274         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10275
10276 2011-10-21  Bruno Haible  <bruno@clisp.org>
10277
10278         relocatable-prog-wrapper: Don't leave object files behind.
10279         * build-aux/install-reloc: Re-synchronize list of .o files to be
10280         removed with list of compilation units.
10281
10282 2011-10-20  Bruno Haible  <bruno@clisp.org>
10283
10284         openpty, posix_openpt: Remove code duplication.
10285         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10286         * lib/openpty.c: Include <stdlib.h>.
10287         (openpty): Use posix_openpt on all platforms except IRIX.
10288         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10289
10290 2011-10-20  Bruno Haible  <bruno@clisp.org>
10291
10292         unlockpt: Detect invalid argument.
10293         * lib/unlockpt.c: Include <fcntl.h>.
10294         (unlockpt): Check whether fd is valid, using fcntl().
10295         * modules/unlockpt (Depends-on): Add fcntl-h.
10296
10297 2011-10-20  Bruno Haible  <bruno@clisp.org>
10298
10299         openpty: Avoid compilation error on AIX 6.1.
10300         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10301
10302 2011-10-20  Bruno Haible  <bruno@clisp.org>
10303
10304         posix_openpt: Support for OpenBSD.
10305         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10306         (posix_openpt) [OpenBSD]: New code.
10307         * lib/grantpt.c: Include <fcntl.h>.
10308         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10309         * modules/grantpt (Depends-on): Add fcntl-h.
10310
10311 2011-10-20  Bruno Haible  <bruno@clisp.org>
10312
10313         posix_openpt test: Coding style.
10314         * tests/test-posix_openpt.c: Use GNU coding style.
10315
10316 2011-10-20  Bruno Haible  <bruno@clisp.org>
10317
10318         grantpt: Support --avoid=pt_chown.
10319         * modules/grantpt (Files): Add lib/pty-private.h.
10320
10321 2011-10-20  Bruno Haible  <bruno@clisp.org>
10322
10323         posix_openpt: Fix autoconf macro.
10324         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10325         unneeded check for _getpty.
10326
10327 2011-10-20  Bruno Haible  <bruno@clisp.org>
10328
10329         openpty: Update comments.
10330         * lib/openpty.c: Add comments about Minix.
10331
10332 2011-10-19  Eric Blake  <eblake@redhat.com>
10333
10334         openpty: relax license
10335         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10336
10337         pt_chown: use configmake to simplify build
10338         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10339
10340         ptsname and others: relax license
10341         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10342         * modules/unlockpt (License): Likewise.
10343         * modules/pt_chown (License): Likewise.
10344         * modules/ptsname (License): Likewise.
10345         * modules/ttyname_r (License): Likewise.
10346
10347 2011-10-19  Jim Meyering  <meyering@redhat.com>
10348
10349         posix_openpt: remove spurious #endif
10350         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10351
10352 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10353
10354         maint.mk: Respect $(build_aux) in web-manual rule.
10355         * top/maint.mk (web-manual): Find gen-announce script in user's
10356         $(build_aux) directory instead of hard-coding 'build-aux'.
10357
10358 2011-10-19  Bruno Haible  <bruno@clisp.org>
10359
10360         posix_openpt: Fix compilation error.
10361         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10362         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10363         Mention the openpty module as an alternative.
10364
10365 2011-10-19  Bruno Haible  <bruno@clisp.org>
10366
10367         Support for old NeXTstep 3.3 frexp().
10368         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10369         execution time of the test to 5 seconds.
10370         Reported by Daniel Richard G. <skunk@iskunk.org>.
10371
10372 2011-10-19  Bruno Haible  <bruno@clisp.org>
10373
10374         Support for old NeXTstep 3.3 sed.
10375         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10376         part, use /.../, not \|...|. Escape periods in the header file name.
10377         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10378         Reported by Daniel Richard G. <skunk@iskunk.org>.
10379
10380 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10381
10382         Support for old NeXTstep 3.3 gcc.
10383         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10384         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10385         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10386         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10387         * lib/regex.h (_Restrict_arr_): Likewise.
10388         * lib/regex_internal.h (re_token_t): Likewise.
10389         * lib/regexec.c (check_node_accept_bytes): Likewise.
10390         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10391
10392 2011-10-18  Eric Blake  <eblake@redhat.com>
10393
10394         posix_openpt: new module
10395         * modules/posix_openpt: New module.
10396         * m4/posix_openpt.m4: New file.
10397         * lib/posix_openpt.c: Likewise.
10398         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10399         (gl_STDLIB_H_DEFAULTS): Set defaults.
10400         * modules/stdlib (Makefile.am): Substitute macros.
10401         * lib/stdlib.in.h (posix_openpt): Declare.
10402         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10403         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10404         * modules/posix_openpt-tests: New test module.
10405         * tests/test-posix_openpt.c: New test.
10406
10407 2011-10-15  Bruno Haible  <bruno@clisp.org>
10408
10409         xstrtoll: Fix compilation failure.
10410         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10411         from lib/strtol.c.
10412         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10413         some platforms.
10414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10415
10416 2011-10-15  Bruno Haible  <bruno@clisp.org>
10417
10418         vasnprintf: Optimize bit search operation.
10419         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10421         gl_DOUBLE_EXPONENT_LOCATION.
10422         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10423         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10424         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10425         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10426         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10427         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10428         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10429         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10430         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10431
10432 2011-10-15  Bruno Haible  <bruno@clisp.org>
10433
10434         vasnprintf: Fix comments.
10435         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10436
10437 2011-10-14  Bruno Haible  <bruno@clisp.org>
10438
10439         Tests for module 'integer_length_ll'.
10440         * modules/integer_length_ll-tests: New file.
10441         * tests/test-integer_length_ll.c: New file.
10442
10443         New module 'integer_length_ll'.
10444         * lib/integer_length_ll.c: New file.
10445         * modules/integer_length_ll: New file.
10446
10447 2011-10-14  Bruno Haible  <bruno@clisp.org>
10448
10449         Tests for module 'integer_length_l'.
10450         * modules/integer_length_l-tests: New file.
10451         * tests/test-integer_length_l.c: New file.
10452
10453         New module 'integer_length_l'.
10454         * lib/integer_length_l.c: New file.
10455         * modules/integer_length_l: New file.
10456
10457 2011-10-14  Bruno Haible  <bruno@clisp.org>
10458
10459         Tests for module 'integer_length'.
10460         * modules/integer_length-tests: New file.
10461         * tests/test-integer_length.c: New file.
10462
10463         New module 'integer_length'.
10464         * lib/integer_length.h: New file.
10465         * lib/integer_length.c: New file.
10466         * modules/integer_length: New file.
10467
10468 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10469
10470         popen: Fix dependency conditions.
10471         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10472
10473 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10474
10475         perror: Fix autoconf test.
10476         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10477         <stdlib.h> and <string.h>.
10478
10479 2011-10-14  Bruno Haible  <bruno@clisp.org>
10480
10481         ffsl: Optimize on 64-bit platforms.
10482         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10483         unrolling.
10484
10485 2011-10-13  Bruno Haible  <bruno@clisp.org>
10486
10487         ffsl: Optimize on 32-bit platforms.
10488         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10489         use ffs() without a loop.
10490
10491         ffsl, ffsll: Optimize for GCC.
10492         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10493         * lib/ffsl.c (GCC_BUILTIN): New macro.
10494         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10495
10496 2011-10-13  Bruno Haible  <bruno@clisp.org>
10497
10498         ffs, bcopy, memset: Support symbol renaming via config.h.
10499         * lib/ffs.c: Include <config.h>.
10500         * lib/bcopy.c: Likewise.
10501         * lib/memset.c: Likewise.
10502
10503 2011-10-10  Bruno Haible  <bruno@clisp.org>
10504
10505         atanl: Simplify for platforms where 'long double' == 'double'.
10506         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10507         alternative implementation.
10508         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10509         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10510         * modules/atanl (Depends-on): Add atan. Update conditions.
10511
10512 2011-10-10  Bruno Haible  <bruno@clisp.org>
10513
10514         acosl: Simplify for platforms where 'long double' == 'double'.
10515         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10516         alternative implementation.
10517         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10518         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10519         * modules/acosl (Depends-on): Add acos. Update conditions.
10520
10521 2011-10-10  Bruno Haible  <bruno@clisp.org>
10522
10523         asinl: Simplify for platforms where 'long double' == 'double'.
10524         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10525         alternative implementation.
10526         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10527         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10528         * modules/asinl (Depends-on): Add asin. Update conditions.
10529
10530 2011-10-10  Bruno Haible  <bruno@clisp.org>
10531
10532         tanl: Simplify for platforms where 'long double' == 'double'.
10533         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10534         implementation.
10535         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10536         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10537         * modules/tanl (Depends-on): Add tan. Update conditions.
10538         (configure.ac): Don't compile trigl.c if
10539         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10540
10541 2011-10-10  Bruno Haible  <bruno@clisp.org>
10542
10543         cosl: Simplify for platforms where 'long double' == 'double'.
10544         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10545         implementation.
10546         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10547         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10548         * modules/cosl (Depends-on): Add cos. Update conditions.
10549         (configure.ac): Don't compile sincosl.c and trigl.c if
10550         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10551
10552 2011-10-10  Bruno Haible  <bruno@clisp.org>
10553
10554         sinl: Simplify for platforms where 'long double' == 'double'.
10555         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10556         implementation.
10557         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10558         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10559         * modules/sinl (Depends-on): Add sin. Update conditions.
10560         (configure.ac): Don't compile sincosl.c and trigl.c if
10561         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10562
10563 2011-10-10  Bruno Haible  <bruno@clisp.org>
10564
10565         logl: Simplify for platforms where 'long double' == 'double'.
10566         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10567         implementation.
10568         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10569         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10570         * modules/logl (Depends-on): Add log. Update conditions.
10571
10572 2011-10-10  Bruno Haible  <bruno@clisp.org>
10573
10574         expl: Simplify for platforms where 'long double' == 'double'.
10575         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10576         implementation.
10577         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10578         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10579         * modules/expl (Depends-on): Add exp. Update conditions.
10580
10581 2011-10-10  Bruno Haible  <bruno@clisp.org>
10582
10583         sqrtl: Simplify for platforms where 'long double' == 'double'.
10584         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10585         alternative implementation.
10586         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10587         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10588         * modules/sqrtl (Depends-on): Update conditions.
10589
10590 2011-10-10  Bruno Haible  <bruno@clisp.org>
10591
10592         ldexpl: Simplify for platforms where 'long double' == 'double'.
10593         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10594         alternative implementation.
10595         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10596         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10597         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10598
10599 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10600
10601         ffsll: set correct witness
10602         * modules/ffsll (configure.ac): Fix typo.
10603
10604 2011-10-10  Bruno Haible  <bruno@clisp.org>
10605
10606         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10607         * lib/printf-frexpl.c: Include <config.h>.
10608         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10609         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10610         second time.
10611         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10612         gl_LONG_DOUBLE_VS_DOUBLE.
10613         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10614         conditions.
10615
10616 2011-10-10  Bruno Haible  <bruno@clisp.org>
10617
10618         frexpl: Simplify for platforms where 'long double' == 'double'.
10619         * lib/frexpl.c: Include <config.h>.
10620         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10621         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10622         time.
10623         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10624         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10625         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10626         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10627         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10628         conditions.
10629
10630 2011-10-10  Jim Meyering  <meyering@redhat.com>
10631
10632         test-renameat: don't leave behind a temporary file
10633         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10634           ERROR: files left in build directory after distclean:
10635           ./gltests/test-renameat.too
10636           make[1]: *** [distcleancheck] Error 1
10637         Reported by Tom G. Christensen.
10638
10639 2011-10-09  Bruno Haible  <bruno@clisp.org>
10640
10641         rint: Determine RINT_LIBM correctly on AIX 7.
10642         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10643         directly, not only through a function pointer. Also accept an optional
10644         4th argument with extra code.
10645         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10646         rintf() call by gcc when optimizing.
10647
10648         mathfunc.m4: Refactor.
10649         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10650         m4 variable.
10651
10652 2011-10-09  Bruno Haible  <bruno@clisp.org>
10653
10654         rintl: Simplify for platforms where 'long double' == 'double'.
10655         * lib/rintl.c: Include <config.h>.
10656         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10657         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10658         time.
10659         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10660         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10661         * modules/rintl (Depends-on): Add rint. Update conditions.
10662
10663 2011-10-09  Bruno Haible  <bruno@clisp.org>
10664
10665         roundl: Simplify for platforms where 'long double' == 'double'.
10666         * lib/roundl.c: Include <config.h>.
10667         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10668         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10669         time.
10670         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10671         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10672         * modules/roundl (Depends-on): Add round. Update conditions.
10673
10674 2011-10-09  Bruno Haible  <bruno@clisp.org>
10675
10676         truncl: Simplify for platforms where 'long double' == 'double'.
10677         * lib/truncl.c: Include <config.h>.
10678         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10679         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10680         time.
10681         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10682         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10683         * modules/truncl (Depends-on): Add trunc. Update conditions.
10684
10685 2011-10-09  Bruno Haible  <bruno@clisp.org>
10686
10687         ceill: Simplify for platforms where 'long double' == 'double'.
10688         * lib/ceill.c: Include <config.h>.
10689         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10690         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10691         time.
10692         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10693         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10694         * modules/ceill (Depends-on): Add ceil. Update conditions.
10695
10696 2011-10-09  Bruno Haible  <bruno@clisp.org>
10697
10698         floorl: Simplify for platforms where 'long double' == 'double'.
10699         * lib/floorl.c: Include <config.h>.
10700         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10701         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10702         time.
10703         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10704         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10705         * modules/floorl (Depends-on): Add floor. Update conditions.
10706
10707 2011-10-09  Bruno Haible  <bruno@clisp.org>
10708
10709         rint: Fix ordering constraints.
10710         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10711         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10712         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10713
10714 2011-10-09  Bruno Haible  <bruno@clisp.org>
10715
10716         copysignl: Simplify for platforms where 'long double' == 'double'.
10717         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10718         alternative.
10719         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10720         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10721         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10722
10723 2011-10-09  Bruno Haible  <bruno@clisp.org>
10724
10725         Tests for module 'rintl'.
10726         * modules/rintl-tests: New file.
10727         * tests/test-rintl.c: New file.
10728
10729         New module 'rintl'.
10730         * lib/math.in.h (rintl): New declaration.
10731         * lib/rintl.c: New file.
10732         * m4/rintl.m4: New file.
10733         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10735         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10736         * modules/rintl: New file.
10737         * tests/test-math-c++.cc: Check the declaration of rintl.
10738         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10739         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10740         * doc/posix-functions/rintl.texi: Mention the new module.
10741
10742 2011-10-09  Bruno Haible  <bruno@clisp.org>
10743
10744         Tests for module 'rintf'.
10745         * modules/rintf-tests: New file.
10746         * tests/test-rintf.c: New file.
10747
10748         New module 'rintf'.
10749         * lib/math.in.h (rintf): New declaration.
10750         * lib/rintf.c: New file.
10751         * m4/rintf.m4: New file.
10752         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10754         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10755         * modules/rintf: New file.
10756         * tests/test-math-c++.cc: Check the declaration of rintf.
10757         * doc/posix-functions/rintf.texi: Mention the new module.
10758
10759 2011-10-09  Bruno Haible  <bruno@clisp.org>
10760
10761         rint: Support for MSVC.
10762         * lib/math.in.h (rint): New declaration.
10763         * lib/rint.c: New file.
10764         * m4/rint.m4: New file.
10765         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10767         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10768         * modules/rint (Description): Fix.
10769         (Files): Add lib/rint.c, m4/rint.m4.
10770         (Depends-on): Add math.
10771         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10772         gl_MATH_MODULE_INDICATOR.
10773         * tests/test-math-c++.cc: Check the declaration of rint.
10774         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10775         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10776         * doc/posix-functions/rint.texi: Mention the replacement provided by
10777         the module.
10778
10779         rint tests: More tests.
10780         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10781         minus-zero.h, infinity.h, nan.h.
10782         (main): Skip the test if the current rounding mode is not standard. Add
10783         tests for negative numbers, minus zero, infinity, NaN.
10784         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10785         tests/nan.h.
10786         (Depends-on): Add isnand-nolibm.
10787
10788 2011-10-09  Bruno Haible  <bruno@clisp.org>
10789
10790         Tests for module 'copysignl'.
10791         * modules/copysignl-tests: New file.
10792         * tests/test-copysignl.c: New file.
10793
10794         New module 'copysignl'.
10795         * lib/math.in.h (copysignl): New declaration.
10796         * lib/copysignl.c: New file.
10797         * m4/copysignl.m4: New file.
10798         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10800         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10801         HAVE_COPYSIGNL.
10802         * modules/copysignl: New file.
10803         * tests/test-math-c++.cc: Check the declaration of copysignl.
10804         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10805         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10806         * doc/posix-functions/copysignl.texi: Mention the new module.
10807
10808 2011-10-09  Bruno Haible  <bruno@clisp.org>
10809
10810         Tests for module 'copysignf'.
10811         * modules/copysignf-tests: New file.
10812         * tests/test-copysignf.c: New file.
10813
10814         New module 'copysignf'.
10815         * lib/math.in.h (copysignf): New declaration.
10816         * lib/copysignf.c: New file.
10817         * m4/copysignf.m4: New file.
10818         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10820         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10821         HAVE_COPYSIGNF.
10822         * modules/copysignf: New file.
10823         * tests/test-math-c++.cc: Check the declaration of copysignf.
10824         * doc/posix-functions/copysignf.texi: Mention the new module.
10825
10826 2011-10-09  Bruno Haible  <bruno@clisp.org>
10827
10828         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10829         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10830         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10831         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10832         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10833         gl_SIGNAL_H_DEFAULTS.
10834
10835 2011-10-09  Bruno Haible  <bruno@clisp.org>
10836
10837         poll: Make macro safer.
10838         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10839         ac_cv_header_poll_h is not set.
10840
10841 2011-10-09  Bruno Haible  <bruno@clisp.org>
10842
10843         copysign: Provide replacement.
10844         * lib/math.in.h (copysign): New declaration.
10845         * lib/copysign.c: New file.
10846         * m4/copysign.m4: New file.
10847         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10849         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10850         HAVE_COPYSIGN.
10851         * modules/copysign (Description): Clarify.
10852         (Files): Add lib/copysign.c, m4/copysign.m4.
10853         (Depends-on): Add math, signbit.
10854         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10855         gl_MATH_MODULE_INDICATOR.
10856         * tests/test-math-c++.cc: Check the declaration of copysign.
10857         * doc/posix-functions/copysign.texi: Mention the effects of the module
10858         on Minix and MSVC.
10859
10860 2011-10-09  Bruno Haible  <bruno@clisp.org>
10861
10862         isinf: Ensure macro on AIX 5.1.
10863         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10864         macro.
10865         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10866
10867 2011-10-09  Bruno Haible  <bruno@clisp.org>
10868
10869         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10870         * modules/snprintf-posix-tests (configure.ac): Require
10871         gl_LONG_DOUBLE_VS_DOUBLE.
10872         * modules/sprintf-posix-tests (configure.ac): Likewise.
10873         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10874         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10875         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10876         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10877         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10878         tests on platforms where 'long double' is the same as 'double'.
10879         * tests/test-sprintf-posix.h (test_function): Likewise.
10880         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10881         * tests/test-vasprintf-posix.c (test_function): Likewise.
10882
10883         *printf: Fix for platforms where 'long double' == 'double'.
10884         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10885         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10886         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10887         * modules/fprintf-posix (Files): Likewise.
10888         * modules/obstack-printf-posix (Files): Likewise.
10889         * modules/snprintf-posix (Files): Likewise.
10890         * modules/sprintf-posix (Files): Likewise.
10891         * modules/vasnprintf (Files): Likewise.
10892         * modules/vasnprintf-posix (Files): Likewise.
10893         * modules/vasprintf-posix (Files): Likewise.
10894         * modules/vdprintf-posix (Files): Likewise.
10895         * modules/vfprintf-posix (Files): Likewise.
10896         * modules/vsnprintf-posix (Files): Likewise.
10897         * modules/vsprintf-posix (Files): Likewise.
10898         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10899         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10900         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10901         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10902         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10903         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10904         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10905
10906         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10907         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10908         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10909         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10910         'long double'.
10911         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10912
10913         isinf: Fix for platforms where 'long double' == 'double'.
10914         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10915         Don't blindly assume 80-bit 'long double'.
10916
10917         isfinite: Fix for platforms where 'long double' == 'double'.
10918         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10919         Don't blindly assume 80-bit 'long double'.
10920
10921         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10922         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10923         * modules/isfinite-tests (configure.ac): Require
10924         gl_LONG_DOUBLE_VS_DOUBLE.
10925         * modules/isinf-tests (configure.ac): Likewise.
10926         * modules/isnan-tests (configure.ac): Likewise.
10927         * modules/isnanl-tests (configure.ac): Likewise.
10928         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10929         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10930         tests on platforms where 'long double' is the same as 'double'.
10931         * tests/test-isinf.c (test_isinfl): Likewise.
10932         * tests/test-isnan.c (test_long_double): Likewise.
10933         * tests/test-isnanl.h (main): Likewise.
10934
10935 2011-10-08  Bruno Haible  <bruno@clisp.org>
10936
10937         Tests for module 'tanhf'.
10938         * modules/tanhf-tests: New file.
10939         * tests/test-tanhf.c: New file.
10940
10941         New module 'tanhf'.
10942         * lib/math.in.h (tanhf): New declaration.
10943         * lib/tanhf.c: New file.
10944         * m4/tanhf.m4: New file.
10945         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10947         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10948         * modules/tanhf: New file.
10949         * tests/test-math-c++.cc: Check the declaration of tanhf.
10950         * doc/posix-functions/tanhf.texi: Mention the new module.
10951
10952         tanh: Use a .m4 file.
10953         * m4/tanh.m4: New file.
10954         * modules/tanh (Files): Add it.
10955         (configure.ac): Just invoke gl_FUNC_TANH.
10956
10957 2011-10-08  Bruno Haible  <bruno@clisp.org>
10958
10959         Tests for module 'coshf'.
10960         * modules/coshf-tests: New file.
10961         * tests/test-coshf.c: New file.
10962
10963         New module 'coshf'.
10964         * lib/math.in.h (coshf): New declaration.
10965         * lib/coshf.c: New file.
10966         * m4/coshf.m4: New file.
10967         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10969         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10970         * modules/coshf: New file.
10971         * tests/test-math-c++.cc: Check the declaration of coshf.
10972         * doc/posix-functions/coshf.texi: Mention the new module.
10973
10974         cosh: Use a .m4 file.
10975         * m4/cosh.m4: New file.
10976         * modules/cosh (Files): Add it.
10977         (configure.ac): Just invoke gl_FUNC_COSH.
10978
10979 2011-10-08  Bruno Haible  <bruno@clisp.org>
10980
10981         Tests for module 'sinhf'.
10982         * modules/sinhf-tests: New file.
10983         * tests/test-sinhf.c: New file.
10984
10985         New module 'sinhf'.
10986         * lib/math.in.h (sinhf): New declaration.
10987         * lib/sinhf.c: New file.
10988         * m4/sinhf.m4: New file.
10989         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10991         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10992         * modules/sinhf: New file.
10993         * tests/test-math-c++.cc: Check the declaration of sinhf.
10994         * doc/posix-functions/sinhf.texi: Mention the new module.
10995
10996         sinh: Use a .m4 file.
10997         * m4/sinh.m4: New file.
10998         * modules/sinh (Files): Add it.
10999         (configure.ac): Just invoke gl_FUNC_SINH.
11000
11001 2011-10-08  Bruno Haible  <bruno@clisp.org>
11002
11003         Tests for module 'atan2f'.
11004         * modules/atan2f-tests: New file.
11005         * tests/test-atan2f.c: New file.
11006
11007         New module 'atan2f'.
11008         * lib/math.in.h (atan2f): New declaration.
11009         * lib/atan2f.c: New file.
11010         * m4/atan2f.m4: New file.
11011         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11013         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11014         * modules/atan2f: New file.
11015         * tests/test-math-c++.cc: Check the declaration of atan2f.
11016         * doc/posix-functions/atan2f.texi: Mention the new module.
11017
11018         atan2: Use a .m4 file.
11019         * m4/atan2.m4: New file.
11020         * modules/atan2 (Files): Add it.
11021         (configure.ac): Just invoke gl_FUNC_ATAN2.
11022
11023 2011-10-08  Bruno Haible  <bruno@clisp.org>
11024
11025         Tests for module 'atanf'.
11026         * modules/atanf-tests: New file.
11027         * tests/test-atanf.c: New file.
11028
11029         New module 'atanf'.
11030         * lib/math.in.h (atanf): New declaration.
11031         * lib/atanf.c: New file.
11032         * m4/atanf.m4: New file.
11033         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11035         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11036         * modules/atanf: New file.
11037         * tests/test-math-c++.cc: Check the declaration of atanf.
11038         * doc/posix-functions/atanf.texi: Mention the new module.
11039
11040         atan: Use a .m4 file.
11041         * m4/atan.m4: New file.
11042         * modules/atan (Files): Add it.
11043         (configure.ac): Just invoke gl_FUNC_ATAN.
11044
11045 2011-10-08  Bruno Haible  <bruno@clisp.org>
11046
11047         Tests for module 'acosf'.
11048         * modules/acosf-tests: New file.
11049         * tests/test-acosf.c: New file.
11050
11051         New module 'acosf'.
11052         * lib/math.in.h (acosf): New declaration.
11053         * lib/acosf.c: New file.
11054         * m4/acosf.m4: New file.
11055         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11057         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11058         * modules/acosf: New file.
11059         * tests/test-math-c++.cc: Check the declaration of acosf.
11060         * doc/posix-functions/acosf.texi: Mention the new module.
11061
11062         acos: Use a .m4 file.
11063         * m4/acos.m4: New file.
11064         * modules/acos (Files): Add it.
11065         (configure.ac): Just invoke gl_FUNC_ACOS.
11066
11067 2011-10-08  Bruno Haible  <bruno@clisp.org>
11068
11069         Tests for module 'asinf'.
11070         * modules/asinf-tests: New file.
11071         * tests/test-asinf.c: New file.
11072
11073         New module 'asinf'.
11074         * lib/math.in.h (asinf): New declaration.
11075         * lib/asinf.c: New file.
11076         * m4/asinf.m4: New file.
11077         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11079         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11080         * modules/asinf: New file.
11081         * tests/test-math-c++.cc: Check the declaration of asinf.
11082         * doc/posix-functions/asinf.texi: Mention the new module.
11083
11084         asin: Use a .m4 file.
11085         * m4/asin.m4: New file.
11086         * modules/asin (Files): Add it.
11087         (configure.ac): Just invoke gl_FUNC_ASIN.
11088
11089 2011-10-08  Bruno Haible  <bruno@clisp.org>
11090
11091         Tests for module 'tanf'.
11092         * modules/tanf-tests: New file.
11093         * tests/test-tanf.c: New file.
11094
11095         New module 'tanf'.
11096         * lib/math.in.h (tanf): New declaration.
11097         * lib/tanf.c: New file.
11098         * m4/tanf.m4: New file.
11099         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11101         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11102         * modules/tanf: New file.
11103         * tests/test-math-c++.cc: Check the declaration of tanf.
11104         * doc/posix-functions/tanf.texi: Mention the new module.
11105
11106         tan: Use a .m4 file.
11107         * m4/tan.m4: New file.
11108         * modules/tan (Files): Add it.
11109         (configure.ac): Just invoke gl_FUNC_TAN.
11110
11111 2011-10-08  Bruno Haible  <bruno@clisp.org>
11112
11113         Tests for module 'cosf'.
11114         * modules/cosf-tests: New file.
11115         * tests/test-cosf.c: New file.
11116
11117         New module 'cosf'.
11118         * lib/math.in.h (cosf): New declaration.
11119         * lib/cosf.c: New file.
11120         * m4/cosf.m4: New file.
11121         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11123         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11124         * modules/cosf: New file.
11125         * tests/test-math-c++.cc: Check the declaration of cosf.
11126         * doc/posix-functions/cosf.texi: Mention the new module.
11127
11128         cos: Use a .m4 file.
11129         * m4/cos.m4: New file.
11130         * modules/cos (Files): Add it.
11131         (configure.ac): Just invoke gl_FUNC_COS.
11132
11133 2011-10-08  Bruno Haible  <bruno@clisp.org>
11134
11135         Tests for module 'sinf'.
11136         * modules/sinf-tests: New file.
11137         * tests/test-sinf.c: New file.
11138
11139         New module 'sinf'.
11140         * lib/math.in.h (sinf): New declaration.
11141         * lib/sinf.c: New file.
11142         * m4/sinf.m4: New file.
11143         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11145         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11146         * modules/sinf: New file.
11147         * tests/test-math-c++.cc: Check the declaration of sinf.
11148         * doc/posix-functions/sinf.texi: Mention the new module.
11149
11150         sin: Use a .m4 file.
11151         * m4/sin.m4: New file.
11152         * modules/sin (Files): Add it.
11153         (configure.ac): Just invoke gl_FUNC_SIN.
11154
11155 2011-10-08  Bruno Haible  <bruno@clisp.org>
11156
11157         Tests for module 'powf'.
11158         * modules/powf-tests: New file.
11159         * tests/test-powf.c: New file.
11160
11161         New module 'powf'.
11162         * lib/math.in.h (powf): New declaration.
11163         * lib/powf.c: New file.
11164         * m4/powf.m4: New file.
11165         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11167         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11168         * modules/powf: New file.
11169         * tests/test-math-c++.cc: Check the declaration of powf.
11170         * doc/posix-functions/powf.texi: Mention the new module.
11171
11172         pow: Use a .m4 file.
11173         * m4/pow.m4: New file.
11174         * modules/pow (Files): Add it.
11175         (configure.ac): Just invoke gl_FUNC_POW.
11176
11177 2011-10-08  Bruno Haible  <bruno@clisp.org>
11178
11179         Tests for module 'log10f'.
11180         * modules/log10f-tests: New file.
11181         * tests/test-log10f.c: New file.
11182
11183         New module 'log10f'.
11184         * lib/math.in.h (log10f): New declaration.
11185         * lib/log10f.c: New file.
11186         * m4/log10f.m4: New file.
11187         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11189         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11190         * modules/log10f: New file.
11191         * tests/test-math-c++.cc: Check the declaration of log10f.
11192         * doc/posix-functions/log10f.texi: Mention the new module.
11193
11194         log10: Use a .m4 file.
11195         * m4/log10.m4: New file.
11196         * modules/log10 (Files): Add it.
11197         (configure.ac): Just invoke gl_FUNC_LOG10.
11198
11199 2011-10-08  Bruno Haible  <bruno@clisp.org>
11200
11201         Tests for module 'logf'.
11202         * modules/logf-tests: New file.
11203         * tests/test-logf.c: New file.
11204
11205         New module 'logf'.
11206         * lib/math.in.h (logf): New declaration.
11207         * lib/logf.c: New file.
11208         * m4/logf.m4: New file.
11209         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11211         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11212         * modules/logf: New file.
11213         * tests/test-math-c++.cc: Check the declaration of logf.
11214         * doc/posix-functions/logf.texi: Mention the new module.
11215
11216         log: Use a .m4 file.
11217         * m4/log.m4: New file.
11218         * modules/log (Files): Add it.
11219         (configure.ac): Just invoke gl_FUNC_LOG.
11220
11221 2011-10-08  Bruno Haible  <bruno@clisp.org>
11222
11223         Tests for module 'expf'.
11224         * modules/expf-tests: New file.
11225         * tests/test-expf.c: New file.
11226
11227         New module 'expf'.
11228         * lib/math.in.h (expf): New declaration.
11229         * lib/expf.c: New file.
11230         * m4/expf.m4: New file.
11231         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11233         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11234         * modules/expf: New file.
11235         * tests/test-math-c++.cc: Check the declaration of expf.
11236         * doc/posix-functions/expf.texi: Mention the new module.
11237
11238         exp: Use a .m4 file.
11239         * m4/exp.m4: New file.
11240         * modules/exp (Files): Add it.
11241         (configure.ac): Just invoke gl_FUNC_EXP.
11242
11243 2011-10-08  Bruno Haible  <bruno@clisp.org>
11244
11245         Tests for module 'sqrtf'.
11246         * modules/sqrtf-tests: New file.
11247         * tests/test-sqrtf.c: New file.
11248
11249         New module 'sqrtf'.
11250         * lib/math.in.h (sqrtf): New declaration.
11251         * lib/sqrtf.c: New file.
11252         * m4/sqrtf.m4: New file.
11253         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11255         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11256         * modules/sqrtf: New file.
11257         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11258         * doc/posix-functions/sqrtf.texi: Mention the new module.
11259
11260 2011-10-08  Bruno Haible  <bruno@clisp.org>
11261
11262         Tests: Avoid link failures w.r.t. libintl.
11263         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11264         $(LIBINTL).
11265         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11266         $(LIBINTL).
11267         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11268         against $(LIBINTL).
11269         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11270         $(LIBINTL).
11271         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11272         $(LIBINTL).
11273         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11274
11275 2011-10-08  Bruno Haible  <bruno@clisp.org>
11276
11277         pow tests: Defeat compiler optimizations.
11278         * tests/test-pow.c (main): Assign arguments to x and y before use.
11279
11280 2011-10-08  Bruno Haible  <bruno@clisp.org>
11281
11282         gnulib-tool: Improve last commit.
11283         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11284         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11285         ignore dependencies that are not among the modules list.
11286
11287 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         gnulib-tool: don't follow dependencies to avoided modules
11290         This fixes a bug that is related to the previous one.
11291         * gnulib-tool (func_modules_transitive_closure)
11292         (func_emit_autoconf_snippets):
11293         Check whether a dependency is acceptable before using it.
11294         (--extract-dependencies): Report an error if --avoid is also used,
11295         since this combination of options is not yet supported.
11296
11297         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11298         Problem reported by Peter Dyballa in
11299         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11300         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11301         when echoing "$condition".
11302
11303 2011-10-07  Bruno Haible  <bruno@clisp.org>
11304
11305         Fix documentation about math functions on MacOS X.
11306         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11307         MacOS X 10.5.
11308         * doc/posix-functions/fdim.texi: Likewise.
11309         * doc/posix-functions/feclearexcept.texi: Likewise.
11310         * doc/posix-functions/fegetenv.texi: Likewise.
11311         * doc/posix-functions/fegetround.texi: Likewise.
11312         * doc/posix-functions/feholdexcept.texi: Likewise.
11313         * doc/posix-functions/feraiseexcept.texi: Likewise.
11314         * doc/posix-functions/fesetenv.texi: Likewise.
11315         * doc/posix-functions/fesetround.texi: Likewise.
11316         * doc/posix-functions/fetestexcept.texi: Likewise.
11317         * doc/posix-functions/feupdateenv.texi: Likewise.
11318         * doc/posix-functions/fmax.texi: Likewise.
11319         * doc/posix-functions/fmin.texi: Likewise.
11320         * doc/posix-functions/log2.texi: Likewise.
11321         * doc/posix-functions/modff.texi: Likewise.
11322         * doc/posix-functions/nan.texi: Likewise.
11323         * doc/posix-functions/nanf.texi: Likewise.
11324         * doc/posix-functions/nextafterf.texi: Likewise.
11325         * doc/posix-functions/remquo.texi: Likewise.
11326
11327 2011-10-07  Bruno Haible  <bruno@clisp.org>
11328
11329         modff: Drop assumption about library that defines modff.
11330         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11331         AC_CHECK_FUNCS.
11332         * modules/modff (Files): Add m4/mathfunc.m4.
11333
11334 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11335
11336         raise tests: Avoid a GCC warning.
11337         * tests/test-raise.c (handler): Use _Noreturn.
11338
11339 2011-10-07  Bruno Haible  <bruno@clisp.org>
11340
11341         Tests for module 'ldexpf'.
11342         * modules/ldexpf-tests: New file.
11343         * tests/test-ldexpf.c: New file.
11344
11345         New module 'ldexpf'.
11346         * lib/math.in.h (ldexpf): New declaration.
11347         * lib/ldexpf.c: New file.
11348         * m4/ldexpf.m4: New file.
11349         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11351         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11352         * modules/ldexpf: New file.
11353         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11354         * doc/posix-functions/ldexpf.texi: Mention the new module.
11355
11356 2011-10-06  Bruno Haible  <bruno@clisp.org>
11357
11358         frexpf: Work around problems on IRIX and mingw.
11359         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11361         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11362         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11363         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11364         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11365         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11366
11367 2011-10-06  Bruno Haible  <bruno@clisp.org>
11368
11369         fabsf: Drop assumption about library that defines fabsf.
11370         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11371         AC_CHECK_FUNCS.
11372         * modules/fabsf (Files): Add m4/mathfunc.m4.
11373
11374 2011-10-06  Bruno Haible  <bruno@clisp.org>
11375
11376         frexpf: Drop assumption about library that defines frexpf.
11377         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11378         'int *', 'float *', 'long double *', 'float', 'long double'.
11379         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11380         AC_CHECK_FUNCS.
11381         * modules/frexpf (Files): Add m4/mathfunc.m4.
11382
11383         Tests for module 'frexpf'.
11384         * modules/frexpf-tests: New file.
11385         * tests/test-frexpf.c: New file.
11386
11387         New module 'frexpf'.
11388         * lib/math.in.h (frexpf): New declaration.
11389         * lib/frexpf.c: New file.
11390         * m4/frexpf.m4: New file.
11391         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11393         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11394         * modules/frexpf: New file.
11395         * tests/test-math-c++.cc: Check the declaration of frexpf.
11396         * doc/posix-functions/frexpf.texi: Mention the new module.
11397
11398 2011-10-06  Bruno Haible  <bruno@clisp.org>
11399
11400         math: Sort function declarations of math.in.h.
11401         * lib/math.in.h (frexp, logb): Move declarations.
11402
11403 2011-10-05  Bruno Haible  <bruno@clisp.org>
11404
11405         Tests for module 'modff'.
11406         * modules/modff-tests: New file.
11407         * tests/test-modff.c: New file.
11408
11409         New module 'modff'.
11410         * lib/math.in.h (modff): New declaration.
11411         * lib/modff.c: New file.
11412         * m4/modff.m4: New file.
11413         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11415         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11416         * modules/modff: New file.
11417         * tests/test-math-c++.cc: Check the declaration of modff.
11418         * doc/posix-functions/modff.texi: Mention the new module.
11419
11420         modf tests: Make test sharper.
11421         * tests/test-modf.c (main): Strengthen upper bound.
11422
11423         modf: Use a .m4 file.
11424         * m4/modf.m4: New file.
11425         * modules/modf (Files): Add it.
11426         (configure.ac): Just invoke gl_FUNC_MODF.
11427
11428 2011-10-05  Bruno Haible  <bruno@clisp.org>
11429
11430         Tests for module 'fmodf'.
11431         * modules/fmodf-tests: New file.
11432         * tests/test-fmodf.c: New file.
11433
11434         New module 'fmodf'.
11435         * lib/math.in.h (fmodf): New declaration.
11436         * lib/fmodf.c: New file.
11437         * m4/fmodf.m4: New file.
11438         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11440         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11441         * modules/fmodf: New file.
11442         * tests/test-math-c++.cc: Check the declaration of fmodf.
11443         * doc/posix-functions/fmodf.texi: Mention the new module.
11444
11445         fmod: Use a .m4 file.
11446         * m4/fmod.m4: New file.
11447         * modules/fmod (Files): Add it.
11448         (configure.ac): Just invoke gl_FUNC_FMOD.
11449
11450 2011-10-05  Bruno Haible  <bruno@clisp.org>
11451
11452         Tests for module 'fabsf'.
11453         * modules/fabsf-tests: New file.
11454         * tests/test-fabsf.c: New file.
11455
11456         New module 'fabsf'.
11457         * lib/math.in.h (fabsf): New declaration.
11458         * lib/fabsf.c: New file.
11459         * m4/fabsf.m4: New file.
11460         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11462         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11463         * modules/fabsf: New file.
11464         * tests/test-math-c++.cc: Check the declaration of fabsf.
11465         * doc/posix-functions/fabsf.texi: Mention the new module.
11466
11467         fabs: Use a .m4 file.
11468         * m4/fabs.m4: New file.
11469         * modules/fabs (Files): Add it.
11470         (configure.ac): Just invoke gl_FUNC_FABS.
11471
11472 2011-10-05  Jim Meyering  <meyering@redhat.com>
11473
11474         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11475         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11476         ls -lL regression introduced in coreutils-8.12, it does so at the
11477         cost of an additional stat call in the common case.  Besides, now
11478         that the kernel change that prompted commit 95f7c57f has been reverted
11479         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11480         we have no use for commit 95f7c57f, "file-has-acl: use
11481         acl_extended_file_nofollow if available".
11482
11483 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11484
11485         file-has-acl: revert unintended change in behavior of ls -L
11486         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11487         derived from...
11488         (file_has_acl): ...code here.  Call it.
11489         This problem was introduced with 2011-07-22 commit 95f7c57f,
11490         "file-has-acl: use acl_extended_file_nofollow if available".
11491         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11492
11493 2011-10-03  Bruno Haible  <bruno@clisp.org>
11494
11495         poll: Avoid link errors on MSVC.
11496         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11497         * modules/poll (Depends-on): Add sockets.
11498         (Link): New section.
11499         * NEWS: Mention the change.
11500         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11501         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11502         $(LIB_POLL) instead of $(LIBSOCKET).
11503
11504 2011-10-03  Bruno Haible  <bruno@clisp.org>
11505
11506         sys_select tests: Fix link error on MSVC 9.
11507         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11508         with $(LIB_SELECT) instead of $(LIBSOCKET).
11509
11510 2011-10-03  Bruno Haible  <bruno@clisp.org>
11511
11512         sys_select: Fix compilation error on mingw.
11513         * lib/sys_select.in.h: On native Windows, include <io.h>.
11514
11515 2011-10-03  Bruno Haible  <bruno@clisp.org>
11516
11517         wmemset: Support for MSVC.
11518         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11519         whether wmemset() exists.
11520
11521 2011-10-03  Bruno Haible  <bruno@clisp.org>
11522
11523         wmemmove: Support for MSVC.
11524         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11525         whether wmemmove() exists.
11526
11527 2011-10-03  Bruno Haible  <bruno@clisp.org>
11528
11529         wmemcpy: Support for MSVC.
11530         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11531         whether wmemcpy() exists.
11532
11533 2011-10-03  Bruno Haible  <bruno@clisp.org>
11534
11535         wmemcmp: Support for MSVC.
11536         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11537         whether wmemcmp() exists.
11538
11539 2011-10-03  Bruno Haible  <bruno@clisp.org>
11540
11541         wmemchr: Support for MSVC.
11542         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11543         whether wmemchr() exists.
11544
11545 2011-10-03  Bruno Haible  <bruno@clisp.org>
11546
11547         glthread/*, strsignal: Support for MSVC.
11548         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11549         including <winsock.h> on MSVC 9.
11550         * lib/glthread/lock.h: Likewise.
11551         * lib/glthread/thread.h: Likewise.
11552         * lib/glthread/tls.h: Likewise.
11553         * lib/glthread/yield.h: Likewise.
11554         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11555         if HAVE_UNISTD_H is false.
11556         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11557
11558 2011-10-03  Bruno Haible  <bruno@clisp.org>
11559
11560         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11561         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11562         Set to 100000.
11563
11564 2011-10-03  Bruno Haible  <bruno@clisp.org>
11565
11566         acl: Fix specification.
11567         * lib/file-has-acl.c (file_has_acl): Fix specification.
11568
11569 2011-10-03  Bruno Haible  <bruno@clisp.org>
11570
11571         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11572         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11573         (compute_curr_prefix, shared_library_fullname,
11574         find_shared_library_fullname, get_shared_library_fullname, relocate):
11575         Use it together with PIC && INSTALLDIR.
11576         Reported by <jojelino@gmail.com>
11577         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11578
11579 2011-10-01  Jim Meyering  <meyering@redhat.com>
11580
11581         maint.mk: adjust a release-related rule not to require use of gzip
11582         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11583         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11584         projects that build only .tar.xz files.  Also fix an erroneous test.
11585
11586         test-linkat: don't leave behind a temporary file
11587         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11588         Otherwise, coreutils' "make distcheck" would fail with this:
11589           Only in /c/cu/tests/torture/coreutils/test/\
11590             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11591           make[2]: *** [my-distcheck] Error 1
11592
11593         float, math: add omitted file
11594         * lib/itold.c: Add file, required for yesterday's float change.
11595
11596 2011-10-01  Bruno Haible  <bruno@clisp.org>
11597
11598         isinf: Fix for OpenBSD/x86.
11599         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11600         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11601         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11602
11603 2011-10-01  Bruno Haible  <bruno@clisp.org>
11604
11605         isfinite: Fix syntax error in configure test.
11606         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11607
11608         isfinite: Fix typo.
11609         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11610         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11611
11612 2011-10-01  Bruno Haible  <bruno@clisp.org>
11613
11614         nonblocking tests: Fix test failure on Linux/IA-64.
11615         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11616         Set to 270000.
11617
11618 2011-10-01  Bruno Haible  <bruno@clisp.org>
11619
11620         mkfifoat tests: Fix a test failure on mingw.
11621         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11622         with error ENOSYS.
11623
11624 2011-09-30  Bruno Haible  <bruno@clisp.org>
11625
11626         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11627         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11628         'long double'. Set REPLACE_ITOLD.
11629         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11630         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11631         * lib/itold.c: New file.
11632         * modules/float (Files): Add lib/itold.c.
11633         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11634         (Makefile.am): Substitute REPLACE_ITOLD.
11635         * modules/math (Depends-on): Add float.
11636         (Makefile.am): Substitute REPLACE_ITOLD.
11637         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11638         * doc/posix-headers/math.texi: Likewise.
11639         * doc/posix-functions/logl.texi: Likewise.
11640
11641 2011-09-30  Bruno Haible  <bruno@clisp.org>
11642
11643         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11644         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11645         Set to 140000.
11646
11647 2011-09-30  Bruno Haible  <bruno@clisp.org>
11648
11649         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11650         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11651         invocation, say "right after AC_PROG_CC_STDC", not "right after
11652         AC_PROG_CC".
11653         Reported by Gary V. Vaughan <gary@gnu.org>.
11654
11655 2011-09-30  Bruno Haible  <bruno@clisp.org>
11656
11657         Centralize C99 requirement.
11658         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11659         * modules/stdarg (configure.ac-early): Invoke it instead of
11660         AC_PROG_CC_STDC.
11661         Reported by Gary V. Vaughan and Paul Eggert.
11662
11663 2011-09-29  Bruno Haible  <bruno@clisp.org>
11664
11665         float: Fix LDBL_MAX value on Linux/PowerPC.
11666         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11667         on Linux/PowerPC.
11668         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11669         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11670         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11671         platform.
11672         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11673
11674 2011-09-29  Bruno Haible  <bruno@clisp.org>
11675
11676         doc: Improve doc about gl_EARLY.
11677         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11678         AC_PROG_CC_STDC invocation.
11679         Reported by Gary V. Vaughan <gary@gnu.org>.
11680
11681 2011-09-28  Bruno Haible  <bruno@clisp.org>
11682
11683         fgetc, fputc, fread, fwrite tests: Fix link error.
11684         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11685         on non-MSVC platforms.
11686         * tests/test-fputc.c (main): Likewise.
11687         * tests/test-fread.c (main): Likewise.
11688         * tests/test-fwrite.c (main): Likewise.
11689         Reported by Jim Meyering.
11690
11691 2011-09-27  Bruno Haible  <bruno@clisp.org>
11692
11693         fputc, fwrite tests: Avoid test failure on MSVC.
11694         * tests/test-fgetc.c: Include msvc-inval.h.
11695         (main): Invoke gl_msvc_inval_ensure_handler.
11696         * tests/test-fputc.c: Include msvc-inval.h.
11697         (main): Invoke gl_msvc_inval_ensure_handler.
11698         * tests/test-fread.c: Include msvc-inval.h.
11699         (main): Invoke gl_msvc_inval_ensure_handler.
11700         * tests/test-fwrite.c: Include msvc-inval.h.
11701         (main): Invoke gl_msvc_inval_ensure_handler.
11702         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11703         * modules/fputc-tests (Depends-on): Likewise.
11704         * modules/fread-tests (Depends-on): Likewise.
11705         * modules/fwrite-tests (Depends-on): Likewise.
11706
11707 2011-09-27  Bruno Haible  <bruno@clisp.org>
11708
11709         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11710         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11711         (raise): Remove older, duplicated declaration.
11712         (_gl_raise_SIGPIPE): New declaration.
11713         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11714         (rpl_raise): Remove function.
11715         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11716         a gnulib-defined SIGPIPE here.
11717         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11718         'sigprocmask' has detected missing signal-blocking and the module
11719         'sigpipe' is enabled.
11720         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11721
11722 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11723
11724         base64-tests: avoid memory leak
11725         * tests/test-base64.c (main): Plug memory leak.
11726
11727         base32: new module
11728         * modules/base32: New module.
11729         * lib/base32.c: New file.
11730         * lib/base32.h: Likewise.
11731         * m4/base32.m4: Likewise.
11732         * modules/base32-tests: New test.
11733         * tests/test-base32.c: Likewise.
11734         * MODULES.html.sh (Misc): Mention it.
11735
11736 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11737
11738         gnulib: use more-standard license notice wording
11739         * gnulib-tool (func_emit_copyright_notice): When emitting a
11740         license notice into a file, use the standard wording as suggested
11741         by the current information for GNU maintainers, except say "file"
11742         rather than "program".  The new wording gives a license version
11743         number, which addresses an issue raised by Glenn Morris in
11744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11745         * m4/onceonly.m4: Use that same wording here, too.
11746
11747         dup2: minor simplification
11748         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11749         as lib/dup2.c no longer uses 'inline'.
11750
11751 2011-09-25  Bruno Haible  <bruno@clisp.org>
11752
11753         strings: Fix compilation error on MSVC.
11754         * lib/strings.in.h: Include <stddef.h> for size_t.
11755
11756 2011-09-25  Bruno Haible  <bruno@clisp.org>
11757
11758         fflush et al.: Document limitation on MSVC.
11759         * doc/posix-functions/fflush.texi: Document possible crash in handling
11760         mode other than DEFAULT_HANDLING.
11761         * doc/posix-functions/fgetc.texi: Likewise.
11762         * doc/posix-functions/fputc.texi: Likewise.
11763         * doc/posix-functions/fread.texi: Likewise.
11764         * doc/posix-functions/fwrite.texi: Likewise.
11765
11766 2011-09-25  Bruno Haible  <bruno@clisp.org>
11767
11768         msvc-inval: Allow three invalid parameter handling modes.
11769         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11770         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11771         macros.
11772         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11773         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11774         SANE_LIBRARY_HANDLING as a no-op.
11775         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11776         <stdlib.h>.
11777         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11778
11779 2011-09-25  Bruno Haible  <bruno@clisp.org>
11780
11781         msvc-inval: Make handler multithread-safe.
11782         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11783         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11784         declarations.
11785         (gl_msvc_inval_current): New declaration.
11786         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11787         Operate on the structure returned by gl_msvc_inval_current().
11788         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11789         Remove varaiables.
11790         (tls_index, tls_initialized): New variables.
11791         (not_per_thread): New variable.
11792         (gl_msvc_inval_current): New function.
11793         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11794         returned by gl_msvc_inval_current().
11795
11796 2011-09-25  Bruno Haible  <bruno@clisp.org>
11797
11798         msvc-inval: Install handler globally.
11799         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11800         !_MSC_VER.
11801         (gl_msvc_invalid_parameter_handler): Remove declaration.
11802         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11803         declarations.
11804         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11805         Install the handler globally, don't uninstall it.
11806         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11807         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11808         currently valid, call RaiseException instead.
11809         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11810         for !_MSC_VER.
11811
11812 2011-09-25  Bruno Haible  <bruno@clisp.org>
11813
11814         strerror_r-posix: Fix for MSVC 9.
11815         * lib/strerror_r.c (local_snprintf): New function.
11816         (snprintf): Define to local_snprintf, not to _snprintf.
11817
11818 2011-09-25  Bruno Haible  <bruno@clisp.org>
11819
11820         ftruncate: Support for MSVC 9.
11821         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11822         (chsize_nothrow): New function.
11823         (chsize): Redefine as a macro.
11824         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11825         * modules/ftruncate (Depends-on): Add msvc-inval.
11826
11827 2011-09-25  Bruno Haible  <bruno@clisp.org>
11828
11829         New module 'fstat'.
11830         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11831         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11832         * lib/fchdir.c (rpl_fstat): Remove function.
11833         * m4/fstat.m4: New file.
11834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11836         declared.
11837         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11838         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11839         * modules/fstat: New file.
11840         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11841         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11842         is set.
11843         * doc/posix-functions/fstat.texi: Mention the new module and the
11844         problem on MSVC.
11845         * NEWS: Mention the change.
11846         * modules/acl (Depends-on): Add fstat.
11847         * modules/chdir-safer (Depends-on): Likewise.
11848         * modules/chown (Depends-on): Likewise.
11849         * modules/copy-file (Depends-on): Likewise.
11850         * modules/fchdir (Depends-on): Likewise.
11851         * modules/fdopendir (Depends-on): Likewise.
11852         * modules/fopen (Depends-on): Likewise.
11853         * modules/fts (Depends-on): Likewise.
11854         * modules/getcwd (Depends-on): Likewise.
11855         * modules/isapipe (Depends-on): Likewise.
11856         * modules/linkat (Depends-on): Likewise.
11857         * modules/lseek (Depends-on): Likewise.
11858         * modules/mkdir-p (Depends-on): Likewise.
11859         * modules/open (Depends-on): Likewise.
11860         * modules/openat (Depends-on): Likewise.
11861         * modules/read-file (Depends-on): Likewise.
11862         * modules/renameat (Depends-on): Likewise.
11863         * modules/utimens (Depends-on): Likewise.
11864
11865 2011-09-25  Bruno Haible  <bruno@clisp.org>
11866
11867         linkat: Fix compilation on MSVC 9.
11868         * lib/linkat.c: Don't include <stdint.h>.
11869
11870 2011-09-25  Bruno Haible  <bruno@clisp.org>
11871
11872         fclose: Support for MSVC 9.
11873         * lib/fclose.c: Include msvc-inval.h.
11874         (fclose_nothrow): New function.
11875         (rpl_fclose): Use it.
11876         * modules/fclose (Depends-on): Add msvc-inval.
11877         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11878
11879 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11880
11881         dup2: minor simplifications
11882         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11883         that it's a performance win.
11884         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11885         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11886
11887 2011-09-24  Jim Meyering  <meyering@redhat.com>
11888
11889         test-futimens: avoid a warning from gcc -Wshadow
11890         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11891         to avoid a shadowing warning.
11892
11893 2011-09-24  Bruno Haible  <bruno@clisp.org>
11894
11895         fdopen: Support for MSVC 9.
11896         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11897         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11898         * lib/fdopen.c: Include msvc-inval.h.
11899         (fdopen_nothrow): New function.
11900         (rpl_fdopen): Use it.
11901         * modules/fdopen (Depends-on): Add msvc-inval.
11902         * modules/fclose-tests (Depends-on): Add fdopen.
11903         * modules/fflush-tests (Depends-on): Likewise.
11904         * modules/fgetc-tests (Depends-on): Likewise.
11905         * modules/fputc-tests (Depends-on): Likewise.
11906         * modules/fread-tests (Depends-on): Likewise.
11907         * modules/freopen-tests (Depends-on): Likewise.
11908         * modules/fseeko-tests (Depends-on): Likewise.
11909         * modules/ftello-tests (Depends-on): Likewise.
11910         * modules/fwrite-tests  (Depends-on): Likewise.
11911         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11912
11913 2011-09-24  Bruno Haible  <bruno@clisp.org>
11914
11915         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11916         * modules/fgetc-tests (Depends-on): Add unistd.
11917         * modules/fputc-tests (Depends-on): Likewise.
11918         * modules/fread-tests (Depends-on): Likewise.
11919         * modules/fwrite-tests (Depends-on): Likewise.
11920
11921 2011-09-24  Bruno Haible  <bruno@clisp.org>
11922
11923         dup: Simplify autoconf test.
11924         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11925         on gl_MSVC_INVAL's result.
11926
11927 2011-09-24  Bruno Haible  <bruno@clisp.org>
11928
11929         Tests for function fwrite().
11930         * modules/fwrite-tests: New file.
11931         * tests/test-fwrite.c: New file.
11932         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11933
11934         Tests for function fread().
11935         * modules/fread-tests: New file.
11936         * tests/test-fread.c: New file.
11937         * modules/stdio-tests (Depends-on): Add fread-tests.
11938
11939         Activate fputc tests.
11940         * modules/stdio-tests (Depends-on): Add fputc-tests.
11941
11942         Enhance fgetc, fputc tests.
11943         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11944         * tests/test-fputc.c (main): Likewise.
11945
11946 2011-09-24  Bruno Haible  <bruno@clisp.org>
11947
11948         write: Support for MSVC 9.
11949         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11950         is not 1.
11951         * lib/write.c (write_nothrow): New function.
11952         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11953         not 1. Use write_nothrow.
11954         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11955         invalid parameter handler.
11956         (gl_PREREQ_WRITE): New macro.
11957         * modules/write (Depends-on): Add msvc-inval.
11958         (configure.ac): Invoke gl_PREREQ_WRITE.
11959         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11960
11961 2011-09-24  Bruno Haible  <bruno@clisp.org>
11962
11963         read: Fix last commit.
11964         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11965
11966 2011-09-24  Bruno Haible  <bruno@clisp.org>
11967
11968         dup2: Fix last commit.
11969         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11970         (rpl_dup2): Disable fcntl workaround on native Windows.
11971
11972         sigprocmask: Make code safer.
11973         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11974         section that changes macro definitions for this compilation unit.
11975
11976 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11977
11978         dup2: clarify by coalescing Windows-specific material
11979         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11980         "msvc-nothrow.h"' to the Windows-specific section, so that the
11981         Emacs source need not contain these include files.
11982         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11983         Windows-specific fixes into this function rather than just the
11984         nothrow fix, as this shortens and clarifies the code.  Always
11985         define as a function, as that's a bit cleaner than having it be
11986         sometimes a function and sometimes a macro.
11987         (rpl_dup2): Move the Windows-specific stuff out of here and into
11988         ms_windows_dup2.  Don't protect the Haiku-related fix with
11989         "#if !defined __linux__", as the same code also works around
11990         a Linux kernel bug, and it doesn't add any system calls on any
11991         platform.  Add comment about FreeBSD 6.1.
11992
11993         sigprocmask: move #include directive
11994         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11995         Windows-specific section, so that the Emacs source need not
11996         contain msvc-inval.h.
11997
11998 2011-09-23  Bruno Haible  <bruno@clisp.org>
11999
12000         read: Support for MSVC 9.
12001         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12002         is not 1.
12003         * lib/read.c (read_nothrow): New function.
12004         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12005         read_nothrow.
12006         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12007         invalid parameter handler.
12008         (gl_PREREQ_READ): New macro.
12009         * modules/read (Depends-on): Add msvc-inval.
12010         (configure.ac): Invoke gl_PREREQ_READ.
12011         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12012
12013 2011-09-23  Bruno Haible  <bruno@clisp.org>
12014
12015         close: Support for MSVC 9.
12016         * lib/close.c: Include <errno.h>, msvc-inval.h.
12017         (close_nothrow): New function.
12018         (rpl_close): Use it.
12019         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12020         invalid parameter handler.
12021         * modules/close (Depends-on): Add msvc-inval.
12022         * modules/dup2-tests (Depends-on): Add close.
12023         * modules/dup3-tests (Depends-on): Likewise.
12024         * modules/fcntl-tests (Depends-on): Likewise.
12025         * modules/spawn-pipe-tests (Depends-on): Likewise.
12026         * modules/unistd-safer-tests (Depends-on): Likewise.
12027         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12028
12029 2011-09-23  Bruno Haible  <bruno@clisp.org>
12030
12031         New module 'dup'.
12032         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12033         Allow replacement.
12034         * lib/dup.c: New file.
12035         * lib/fchdir.c (rpl_dup): Remove function.
12036         * m4/dup.m4: New file.
12037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12038         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12039         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12040         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12041         * modules/dup: New file.
12042         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12043         'dup' module is in use.
12044         * modules/fdopendir (Depends-on): Add dup.
12045         * modules/fdutimensat-tests (Depends-on): Likewise.
12046         * modules/fts (Depends-on): Likewise.
12047         * modules/futimens-tests (Depends-on): Likewise.
12048         * modules/posix_spawnp-tests (Depends-on): Likewise.
12049         * modules/unistd-safer-tests (Depends-on): Likewise.
12050         * modules/utimens-tests (Depends-on): Likewise.
12051         * doc/posix-functions/dup.texi: Mention the new module and the problem
12052         on MSVC.
12053
12054 2011-09-23  Bruno Haible  <bruno@clisp.org>
12055
12056         getdtablesize: Support for MSVC 9.
12057         * lib/getdtablesize.c: Include msvc-inval.h.
12058         (_setmaxstdio_nothrow): New function.
12059         (_setmaxstdio): Redefine it.
12060         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12061         * modules/getdtablesize (Depends-on): Add msvc-inval.
12062         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12063
12064 2011-09-23  Bruno Haible  <bruno@clisp.org>
12065
12066         signal-h: Rename from signal.
12067         * modules/signal-h: Renamed from modules/signal.
12068         * modules/pthread_sigmask (Depends-on): Update.
12069         * modules/raise (Depends-on): Likewise.
12070         * modules/sigaction (Depends-on): Likewise.
12071         * modules/sigpipe (Depends-on): Likewise.
12072         * modules/sigprocmask (Depends-on): Likewise.
12073         * modules/sys_select (Depends-on): Likewise.
12074         * modules/signal-h-tests: Renamed from modules/signal-tests.
12075         (Files, Depends-on, Makefile.am): Update.
12076         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12077         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12078         (Files, Makefile.am): Update.
12079         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12080         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12081         * modules/signal: New placeholder file.
12082         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12083         * doc/posix-headers/signal.texi: Update.
12084         * NEWS: Mention the change.
12085
12086 2011-09-23  Bruno Haible  <bruno@clisp.org>
12087
12088         sigprocmask: Avoid crashes through signal() on MSVC 9.
12089         * lib/sigprocmask.c: Include msvc-inval.h.
12090         (signal_nothrow): New function.
12091         (signal): Redefine it.
12092         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12093         * modules/sigprocmask (Depends-on): Add msvc-inval.
12094         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12095
12096 2011-09-23  Bruno Haible  <bruno@clisp.org>
12097
12098         Tests for module 'raise'.
12099         * modules/raise-tests: New file.
12100         * tests/test-raise.c: New file.
12101
12102         raise: Support for MSVC.
12103         * lib/signal.in.h (raise): New declaration.
12104         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12105         for native Windows platforms.
12106         * m4/raise.m4: New file.
12107         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12108         HAVE_RAISE, REPLACE_RAISE.
12109         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12110         REPLACE_RAISE.
12111         * modules/raise (Status, Notice): Remove fields.
12112         (Files): Add m4/raise.m4.
12113         (Depends-on): Add signal, msvc-inval.
12114         (configure.ac): Use the common idioms.
12115         (Maintainer): Add me.
12116         * tests/test-signal-c++.cc: Check the signature of raise.
12117         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12118
12119 2011-09-23  Bruno Haible  <bruno@clisp.org>
12120
12121         pipe2: Fix compilation on pre-C99 compilers.
12122         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12123
12124 2011-09-23  Bruno Haible  <bruno@clisp.org>
12125
12126         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12127         * lib/msvc-nothrow.h: New file.
12128         * lib/msvc-nothrow.c: New file.
12129         * m4/msvc-nothrow.m4: New file.
12130         * modules/msvc-nothrow: New file.
12131         * lib/dup2.c: Include msvc-nothrow.h.
12132         (rpl_dup2): No need to protect _get_osfhandle call here.
12133         * lib/accept4.c: Include msvc-nothrow.h.
12134         * lib/error.c: Likewise.
12135         * lib/fcntl.c: Likewise.
12136         * lib/lseek.c: Likewise.
12137         * lib/nonblocking.c: Likewise.
12138         * lib/poll.c: Likewise.
12139         * lib/read.c: Likewise.
12140         * lib/select.c: Likewise.
12141         * lib/sockets.h: Likewise.
12142         * lib/sockets.c: Likewise.
12143         * lib/stdio-read.c: Likewise.
12144         * lib/stdio-write.c: Likewise.
12145         * lib/write.c: Likewise.
12146         * lib/w32sock.h: Likewise.
12147         * lib/w32spawn.h: Likewise.
12148         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12149         * lib/fsync.c: Likewise.
12150         * lib/isapipe.c: Likewise.
12151         * modules/dup2 (Depends-on): Add msvc-nothrow.
12152         * modules/accept4 (Depends-on): Likewise.
12153         * modules/error (Depends-on): Likewise.
12154         * modules/fcntl (Depends-on): Likewise.
12155         * modules/lseek (Depends-on): Likewise.
12156         * modules/nonblocking (Depends-on): Likewise.
12157         * modules/poll (Depends-on): Likewise.
12158         * modules/read (Depends-on): Likewise.
12159         * modules/select (Depends-on): Likewise.
12160         * modules/sockets (Depends-on): Likewise.
12161         * modules/sigpipe (Depends-on): Likewise.
12162         * modules/write (Depends-on): Likewise.
12163         * modules/accept (Depends-on): Likewise.
12164         * modules/bind (Depends-on): Likewise.
12165         * modules/connect (Depends-on): Likewise.
12166         * modules/gethostname (Depends-on): Likewise.
12167         * modules/getpeername (Depends-on): Likewise.
12168         * modules/getsockname (Depends-on): Likewise.
12169         * modules/getsockopt (Depends-on): Likewise.
12170         * modules/ioctl (Depends-on): Likewise.
12171         * modules/listen (Depends-on): Likewise.
12172         * modules/recv (Depends-on): Likewise.
12173         * modules/recvfrom (Depends-on): Likewise.
12174         * modules/send (Depends-on): Likewise.
12175         * modules/sendto (Depends-on): Likewise.
12176         * modules/setsockopt (Depends-on): Likewise.
12177         * modules/shutdown (Depends-on): Likewise.
12178         * modules/socket (Depends-on): Likewise.
12179         * modules/execute (Depends-on): Likewise.
12180         * modules/spawn-pipe (Depends-on): Likewise.
12181         * modules/flock (Depends-on): Likewise.
12182         * modules/fsync (Depends-on): Likewise.
12183         * modules/isapipe (Depends-on): Likewise.
12184         * tests/test-cloexec.c: Include msvc-nothrow.h.
12185         * tests/test-dup-safer.c: Likewise.
12186         * tests/test-dup2.c: Likewise.
12187         * tests/test-dup3.c: Likewise.
12188         * tests/test-fcntl.c: Likewise.
12189         * tests/test-pipe.c: Likewise.
12190         * tests/test-pipe2.c: Likewise.
12191         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12192         * modules/unistd-safer-tests (Depends-on): Likewise.
12193         * modules/dup2-tests (Depends-on): Likewise.
12194         * modules/dup3-tests (Depends-on): Likewise.
12195         * modules/fcntl-tests (Depends-on): Likewise.
12196         * modules/pipe-posix-tests (Depends-on): Likewise.
12197         * modules/pipe2-tests (Depends-on): Likewise.
12198
12199 2011-09-23  Bruno Haible  <bruno@clisp.org>
12200
12201         dup2: Make code more maintainable.
12202         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12203         (rpl_dup2): Use it.
12204         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12205         * modules/dup2 (configure.ac): Invoke it.
12206         Reported by Paul Eggert.
12207
12208 2011-09-23  Bruno Haible  <bruno@clisp.org>
12209
12210         msvc-inval: Fix compilation error.
12211         * lib/msvc-inval.h: Include <excpt.h>.
12212
12213 2011-09-23  Bruno Haible  <bruno@clisp.org>
12214
12215         mkdir: Tweak for MSVC 9.
12216         * lib/sys_stat.in.h: Update comments.
12217         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12218
12219         Tests for module 'chdir'.
12220         * modules/chdir-tests: New file.
12221         * tests/test-chdir.c: New file.
12222
12223         New module 'chdir'.
12224         * modules/chdir: New file.
12225         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12226         (chdir): New declaration.
12227         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12228         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12229         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12230         * tests/test-unistd-c++.cc: Check signature of chdir.
12231         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12232         * modules/chdir-long (Depends-on): Add chdir.
12233         * modules/fchdir (Depends-on): Likewise.
12234         * modules/rename (Depends-on): Likewise.
12235         * modules/savewd (Depends-on): Likewise.
12236
12237         rmdir: Support for mingw, MSVC 9.
12238         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12239         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12240
12241         getcwd: Tweak for MSVC 9.
12242         * lib/unistd.in.h: Update comments.
12243         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12244
12245 2011-09-22  Bruno Haible  <bruno@clisp.org>
12246
12247         strerror_r-posix: Avoid a link error on MSVC.
12248         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12249         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12250
12251 2011-09-22  Bruno Haible  <bruno@clisp.org>
12252
12253         select: Avoid link errors on MSVC.
12254         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12255         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12256         * modules/pselect (Link): Likewise.
12257         * NEWS: Mention the change.
12258         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12259         test-select-stdin against $(LIB_SELECT).
12260         * modules/pselect-tests (Makefile.am): Link test-pselect against
12261         $(LIB_SELECT).
12262
12263 2011-09-22  Bruno Haible  <bruno@clisp.org>
12264
12265         select: Avoid compilation error on MSVC.
12266         * lib/select.c: Don't include <stdbool.h>.
12267
12268 2011-09-21  Bruno Haible  <bruno@clisp.org>
12269
12270         Consolidate all uses of PATH_MAX in *.m4 files.
12271         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12272         macros.
12273         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12274         and gl_PATHMAX_SNIPPET.
12275         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12276         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12277         * modules/chdir-long (Files): Add m4/pathmax.m4.
12278         * modules/getcwd (Files): Likewise.
12279
12280 2011-09-21  Bruno Haible  <bruno@clisp.org>
12281
12282         ftruncate: Un-deprecate, concentrate on Win32 support.
12283         * modules/ftruncate (Status, Notice): Remove sections.
12284         (Depends-on): Add largefile.
12285         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12286         non-mingw platforms.
12287         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12288         include <io.h>.
12289         * modules/perror-tests (Depends-on): Add ftruncate.
12290         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12291         'ftruncate' module.
12292
12293 2011-09-21  Bruno Haible  <bruno@clisp.org>
12294
12295         Add dependencies to new dirent related modules.
12296         * modules/opendir (Depends-on): Add closedir.
12297         * modules/getcwd (Depends-on): Add opendir, closedir.
12298         * modules/dirent-safer-tests (Depends-on): Likewise.
12299         * modules/fdopendir-tests (Depends-on): Likewise.
12300         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12301         * modules/renameat-tests (Depends-on): Likewise.
12302
12303 2011-09-21  Bruno Haible  <bruno@clisp.org>
12304
12305         opendir: Avoid compilation error on mingw.
12306         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12307         * modules/opendir (Depends-on): Add unistd.
12308
12309 2011-09-21  Bruno Haible  <bruno@clisp.org>
12310
12311         ftruncate tests: Avoid a test failure on mingw.
12312         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12313
12314 2011-09-21  Bruno Haible  <bruno@clisp.org>
12315
12316         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12317         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12318         native Windows.
12319
12320 2011-09-21  Bruno Haible  <bruno@clisp.org>
12321
12322         New module 'fdopen'.
12323         * lib/stdio.in.h (fdopen): New declaration.
12324         * lib/fdopen.c: New file.
12325         * m4/fdopen.m4: New file.
12326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12327         REPLACE_FDOPEN.
12328         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12329         REPLACE_FDOPEN.
12330         * modules/fdopen: New file.
12331         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12332         * tests/test-stdio-c++.cc: Check signature of fdopen.
12333         * doc/posix-functions/fdopen.texi: Mention the new module.
12334
12335 2011-09-21  Bruno Haible  <bruno@clisp.org>
12336
12337         unlockpt tests: Avoid test failure on NetBSD 5.1.
12338         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12339         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12340
12341 2011-09-21  Bruno Haible  <bruno@clisp.org>
12342
12343         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12344         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12345         * tests/test-getlogin_r.c (main): Likewise.
12346
12347 2011-09-20  Bruno Haible  <bruno@clisp.org>
12348
12349         time tests: Don't require pid_t.
12350         * doc/posix-headers/time.texi: Revert last change.
12351         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12352         * tests/test-time.c: Comment out the check for pid_t.
12353
12354 2011-09-20  Bruno Haible  <bruno@clisp.org>
12355
12356         fsync tests: Avoid a test failure on mingw.
12357         * tests/test-fsync.c (main): Allow a failure with EIO.
12358
12359 2011-09-20  Bruno Haible  <bruno@clisp.org>
12360
12361         euidaccess: Update comments.
12362         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12363
12364 2011-09-20  Bruno Haible  <bruno@clisp.org>
12365
12366         Ensure EBADF returns for socket functions on mingw.
12367         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12368         descriptor is invalid.
12369         * lib/bind.c (rpl_bind): Likewise.
12370         * lib/connect.c (rpl_connect): Likewise.
12371         * lib/getpeername.c (rpl_getpeername): Likewise.
12372         * lib/getsockname.c (rpl_getsockname): Likewise.
12373         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12374         * lib/listen.c (rpl_listen): Likewise.
12375         * lib/recv.c (rpl_recv): Likewise.
12376         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12377         * lib/send.c (rpl_send): Likewise.
12378         * lib/sendto.c (rpl_sendto): Likewise.
12379         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12380         * lib/shutdown.c (rpl_shutdown): Likewise.
12381
12382 2011-09-20  Bruno Haible  <bruno@clisp.org>
12383
12384         select tests: EBADF tests.
12385         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12386         test_bad_fd): New functions.
12387         (test_function): Invoke also test_bad_fd.
12388
12389 2011-09-20  Bruno Haible  <bruno@clisp.org>
12390
12391         Tests for module 'posix_spawn_file_actions_addopen.
12392         * modules/posix_spawn_file_actions_addopen-tests: New file.
12393         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12394
12395         Tests for module 'posix_spawn_file_actions_adddup2'.
12396         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12397         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12398
12399         Tests for module 'posix_spawn_file_actions_addclose'.
12400         * modules/posix_spawn_file_actions_addclose-tests: New file.
12401         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12402
12403 2011-09-20  Bruno Haible  <bruno@clisp.org>
12404
12405         Tests for module 'unlockpt'.
12406         * modules/unlockpt-tests: New file.
12407         * tests/test-unlockpt.c: New file.
12408         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12409
12410         Tests for module 'grantpt'.
12411         * modules/grantpt-tests: New file.
12412         * tests/test-grantpt.c: New file.
12413         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12414
12415 2011-09-20  Bruno Haible  <bruno@clisp.org>
12416
12417         freopen tests: EBADF tests.
12418         * tests/test-freopen.c: Include errno.h, unistd.h.
12419         (main): Add tests for EBADF, commented out for the moment.
12420
12421         fclose tests: EBADF tests.
12422         * tests/test-fclose.c (main): Add tests for EBADF.
12423
12424         fflush tests: EBADF tests.
12425         * tests/test-fflush.c: Include errno.h, macros.h.
12426         (main): Add tests for EBADF.
12427
12428         ftello tests: EBADF tests.
12429         * tests/test-ftello4.sh: New file.
12430         * tests/test-ftello4.c: New file.
12431         * modules/ftello-tests (Files): Add them.
12432         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12433
12434         fseeko tests: EBADF tests.
12435         * tests/test-fseeko4.sh: New file.
12436         * tests/test-fseeko4.c: New file.
12437         * modules/fseeko-tests (Files): Add them.
12438         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12439
12440         Tests for function fputc().
12441         * modules/fputc-tests: New file.
12442         * tests/test-fputc.c: New file.
12443         * modules/stdio-tests (Depends-on): Add fputc-tests.
12444
12445         Tests for function fgetc().
12446         * modules/fgetc-tests: New file.
12447         * tests/test-fgetc.c: New file.
12448         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12449
12450         Tests for function fdopen().
12451         * modules/fdopen-tests: New file.
12452         * tests/test-fdopen.c: New file.
12453         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12454
12455         Tests for module 'vdprintf'.
12456         * modules/vdprintf-tests: New file.
12457         * tests/test-vdprintf.c: New file.
12458
12459         Tests for module 'dprintf'.
12460         * modules/dprintf-tests: New file.
12461         * tests/test-dprintf.c: New file.
12462
12463 2011-09-20  Bruno Haible  <bruno@clisp.org>
12464
12465         Tests for module 'ioctl'.
12466         * modules/ioctl-tests: New file.
12467         * tests/test-ioctl.c: New file.
12468
12469 2011-09-20  Bruno Haible  <bruno@clisp.org>
12470
12471         fcntl tests: EBADF tests.
12472         * tests/test-fcntl.c (main): Add more tests for EBADF.
12473
12474 2011-09-20  Bruno Haible  <bruno@clisp.org>
12475
12476         utimensat tests: EBADF tests.
12477         * tests/test-utimensat.c (main): Add tests for EBADF.
12478
12479         renameat tests: EBADF tests.
12480         * tests/test-renameat.c (main): Add tests for EBADF.
12481
12482         mkfifoat tests: EBADF tests.
12483         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12484
12485         readlinkat tests: EBADF tests.
12486         * tests/test-readlinkat.c (main): Add tests for EBADF.
12487
12488         symlinkat tests: EBADF tests.
12489         * tests/test-symlinkat.c (main): Add tests for EBADF.
12490
12491         linkat tests: EBADF tests.
12492         * tests/test-linkat.c (main): Add tests for EBADF.
12493
12494         Tests for module 'faccessat'.
12495         * modules/faccessat-tests: New file.
12496         * tests/test-faccessat.c: New file.
12497
12498         fdopendir tests: EBADF tests.
12499         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12500
12501         openat tests: EBADF tests.
12502         * tests/test-fchownat.c (main): Add tests for EBADF.
12503         * tests/test-fstatat.c (main): Likewise.
12504         * tests/test-mkdirat.c (main): Likewise.
12505         * tests/test-openat.c (main): Likewise.
12506         * tests/test-unlinkat.c (main): Likewise.
12507         * tests/test-fchmodat.c: New file.
12508         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12509         (Makefile.am): Also run 'test-fchmodat'.
12510
12511 2011-09-20  Bruno Haible  <bruno@clisp.org>
12512
12513         utimens, futimens, fdutimensat tests: EBADF tests.
12514         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12515
12516         Tests for function fstat().
12517         * modules/fstat-tests: New file.
12518         * tests/test-fstat.c: New file.
12519         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12520
12521 2011-09-20  Bruno Haible  <bruno@clisp.org>
12522
12523         test-ttyname_r tests: EBADF tests.
12524         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12525
12526         Tests for module 'isatty'.
12527         * modules/isatty-tests: New file.
12528         * tests/test-isatty.c: New file.
12529
12530         Tests for module 'write'.
12531         * modules/write-tests: New file.
12532         * tests/test-write.c: New file.
12533
12534         Tests for module 'read'.
12535         * modules/read-tests: New file.
12536         * tests/test-read.c: New file.
12537
12538         pwrite tests: EBADF tests.
12539         * tests/test-pwrite.c (main): Add tests for EBADF.
12540
12541         pread tests: EBADF tests.
12542         * tests/test-pread.c (main): Add tests for EBADF.
12543
12544         lseek tests: EBADF tests.
12545         * tests/test-lseek.c (main): Add more tests for EBADF.
12546
12547         Tests for module 'ftruncate'.
12548         * modules/ftruncate-tests: New file.
12549         * tests/test-ftruncate.sh: New file.
12550         * tests/test-ftruncate.c: New file.
12551
12552         fsync tests: EBADF tests.
12553         * tests/test-fsync.c (main): Add more tests for EBADF.
12554
12555         fdatasync tests: EBADF tests.
12556         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12557
12558         Tests for module 'fchown'.
12559         * modules/fchown-tests: New file.
12560         * tests/test-fchown.c: New file.
12561
12562         Tests for module 'fchmod'.
12563         * modules/fchmod-tests: New file.
12564         * tests/test-fchmod.c: New file.
12565
12566         fchdir tests: EBADF tests.
12567         * tests/test-fchdir.c (main): Add more tests for EBADF.
12568
12569         dup2 tests: EBADF tests.
12570         * tests/test-dup2.c (main): Add more tests for EBADF.
12571
12572         Tests for module 'dup'.
12573         * modules/dup-tests: New file.
12574         * tests/test-dup.c: New file.
12575
12576         Tests for module 'close'.
12577         * modules/close-tests: New file.
12578         * tests/test-close.c: New file.
12579
12580 2011-09-20  Bruno Haible  <bruno@clisp.org>
12581
12582         Tests for module 'shutdown'.
12583         * modules/shutdown-tests: New file.
12584         * tests/test-shutdown.c: New file.
12585
12586         Tests for module 'setsockopt'.
12587         * modules/setsockopt-tests: New file.
12588         * tests/test-setsockopt.c: New file.
12589
12590         Tests for module 'sendto'.
12591         * modules/sendto-tests: New file.
12592         * tests/test-sendto.c: New file.
12593
12594         Tests for module 'send'.
12595         * modules/send-tests: New file.
12596         * tests/test-send.c: New file.
12597
12598         Tests for module 'recvfrom'.
12599         * modules/recvfrom-tests: New file.
12600         * tests/test-recvfrom.c: New file.
12601
12602         Tests for module 'recv'.
12603         * modules/recv-tests: New file.
12604         * tests/test-recv.c: New file.
12605
12606         Tests for module 'listen'.
12607         * modules/listen-tests: New file.
12608         * tests/test-listen.c: New file.
12609
12610         Tests for module 'getsockopt'.
12611         * modules/getsockopt-tests: New file.
12612         * tests/test-getsockopt.c: New file.
12613
12614         Tests for module 'getsockname'.
12615         * modules/getsockname-tests: New file.
12616         * tests/test-getsockname.c: New file.
12617
12618         Tests for module 'getpeername'.
12619         * modules/getpeername-tests: New file.
12620         * tests/test-getpeername.c: New file.
12621
12622         Tests for module 'connect'.
12623         * modules/connect-tests: New file.
12624         * tests/test-connect.c: New file.
12625
12626         Tests for module 'bind'.
12627         * modules/bind-tests: New file.
12628         * tests/test-bind.c: New file.
12629
12630         accept4 tests: Fix for native Windows.
12631         * tests/test-accept4.c: Include sockets.h.
12632         (main): Invoke gl_sockets_startup.
12633         * modules/accept4-tests (Depends-on): Add sockets.
12634
12635         accept tests: Fix for native Windows.
12636         * tests/test-accept.c: Include sockets.h.
12637         (main): Invoke gl_sockets_startup.
12638         * modules/accept-tests (Depends-on): Add sockets.
12639
12640 2011-09-19  Bruno Haible  <bruno@clisp.org>
12641
12642         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12643         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12644         do...while(0).
12645         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12646         Suggested by Paul Eggert.
12647
12648 2011-09-19  Bruno Haible  <bruno@clisp.org>
12649
12650         sched: Ensure pid_t is defined.
12651         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12652         not define pid_t.
12653         * lib/sched.in.h: Include <sys/types.h>.
12654         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12656
12657 2011-09-19  Bruno Haible  <bruno@clisp.org>
12658
12659         msvc-inval: Ensure the entire expansion is a single statement.
12660         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12661         of braces.
12662
12663 2011-09-19  Jim Meyering  <meyering@redhat.com>
12664
12665         tests: use printf, not echo in init.sh's warn_ function
12666         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12667         misbehave when given strings containing a backslash or starting
12668         with e.g., -n.  James Youngman suggested setting IFS.
12669
12670 2011-09-19  Eric Blake  <eblake@redhat.com>
12671
12672         futimens: enhance test
12673         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12674         closed non-negative fd.
12675
12676         date: accept 'hence' as opposite of 'ago'
12677         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12678         * tests/test-parse-datetime.c (main): Enhance test.
12679         Suggested by Jesse Wilson.
12680
12681 2011-09-19  Jim Meyering  <meyering@redhat.com>
12682
12683         getcwd: don't fail in a deep directory on a system without openat
12684         Before this change, getcwd would fail when called from a directory
12685         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12686         the non-openat implementation used "..", "../..", "../../..", etc.
12687         to access ancestor directories.  With too many, that string would
12688         be longer than PATH_MAX.
12689         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12690         using gnulib's openat replacement.
12691         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12692         we're using the replacement function.
12693
12694 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12695
12696         maint.mk: avoid warnings from perl about missing files
12697         * top/maint.mk (def_sym_regex): Ignore files listed in
12698         $(gl_other_headers_) that do not exist, say because a project
12699         does not use a corresponding module.
12700
12701 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12702
12703         stat: use pathmax.h only if needed
12704         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12705         This is better for Emacs, which does not have a mingw port and
12706         therefore can avoid the pathmax module.
12707
12708         utimens: remove dependency on dup2
12709         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12710         to work around the Linux kernel bug.
12711         * modules/utimens (Depends-on): Remove dup2.
12712
12713 2011-09-18  Bruno Haible  <bruno@clisp.org>
12714
12715         inet_ntop, inet_pton: Look for it also in libresolv.
12716         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12717         libnsl, search for it in libresolv.
12718         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12719         Needed on Solaris 7.
12720
12721 2011-09-18  Bruno Haible  <bruno@clisp.org>
12722
12723         accept, accept4 tests: Avoid link error on Solaris.
12724         * modules/accept-tests (Makefile.am): Link test-accept against
12725         $(LIBSOCKET).
12726         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12727         $(LIBSOCKET).
12728
12729         accept4: Avoid link error on Solaris.
12730         * modules/accept4 (Link): New section.
12731
12732         socket functions: Avoid link errors on Solaris.
12733         * modules/accept (Depends-on): Add socketlib.
12734         (Link): New section.
12735         * modules/bind (Depends-on): Add socketlib.
12736         (Link): New section.
12737         * modules/connect (Depends-on): Add socketlib.
12738         (Link): New section.
12739         * modules/getpeername (Depends-on): Add socketlib.
12740         (Link): New section.
12741         * modules/getsockname (Depends-on): Add socketlib.
12742         (Link): New section.
12743         * modules/getsockopt (Depends-on): Add socketlib.
12744         (Link): New section.
12745         * modules/listen (Depends-on): Add socketlib.
12746         (Link): New section.
12747         * modules/recv (Depends-on): Add socketlib.
12748         (Link): New section.
12749         * modules/recvfrom (Depends-on): Add socketlib.
12750         (Link): New section.
12751         * modules/send (Depends-on): Add socketlib.
12752         (Link): New section.
12753         * modules/sendto (Depends-on): Add socketlib.
12754         (Link): New section.
12755         * modules/setsockopt (Depends-on): Add socketlib.
12756         (Link): New section.
12757         * modules/shutdown (Depends-on): Add socketlib.
12758         (Link): New section.
12759         * modules/socket (Depends-on): Add socketlib.
12760         (Link): New section.
12761
12762 2011-09-18  Bruno Haible  <bruno@clisp.org>
12763
12764         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12765         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12766         than 5 seconds.
12767         * modules/ptsname-tests (configure.ac): Test for alarm.
12768
12769 2011-09-18  Bruno Haible  <bruno@clisp.org>
12770
12771         posix_spawn_file_actions_add*: Fix module dependencies.
12772         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12773         posix_spawn_file_actions_init.
12774         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12775         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12776
12777 2011-09-18  Bruno Haible  <bruno@clisp.org>
12778
12779         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12780         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12781         * tests/test-renameat.c (main): Likewise.
12782
12783 2011-09-18  Bruno Haible  <bruno@clisp.org>
12784
12785         Tests for module 'accept4'.
12786         * modules/accept4-tests: New file.
12787         * tests/test-accept4.c: New file.
12788
12789 2011-09-18  Bruno Haible  <bruno@clisp.org>
12790
12791         Tests for module 'accept'.
12792         * modules/accept-tests: New file.
12793         * tests/test-accept.c: New file.
12794
12795 2011-09-18  Bruno Haible  <bruno@clisp.org>
12796
12797         dup2: Support for MSVC.
12798         * lib/dup2.c: Include msvc-inval.h.
12799         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12800         _get_osfhandle calls.
12801         * modules/dup2 (Depends-on): Add msvc-inval.
12802         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12803
12804         New module 'msvc-inval'.
12805         * lib/msvc-inval.h: New file.
12806         * lib/msvc-inval.c: New file.
12807         * m4/msvc-inval.m4: New file.
12808         * modules/msvc-inval: New file.
12809
12810 2011-09-17  Bruno Haible  <bruno@clisp.org>
12811
12812         Tests for module 'pclose'.
12813         * modules/pclose-tests: New file.
12814
12815         New module 'pclose'.
12816         * lib/stdio.in.h (pclose): New declaration.
12817         * lib/pclose.c: New file.
12818         * m4/pclose.m4: New file.
12819         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12820         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12821         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12822         * modules/pclose: New file.
12823         * modules/popen-tests (Depends-on): Add pclose.
12824         * modules/popen-safer-tests (Depends-on): Likewise.
12825         * doc/posix-functions/pclose.texi: Mention the new module.
12826
12827 2011-09-17  Bruno Haible  <bruno@clisp.org>
12828
12829         popen: Support for MSVC.
12830         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12831         * lib/popen.c (popen): Provide alternate definition for native Windows.
12832         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12834         * modules/popen (Depends-on, configure.ac): Update condition.
12835         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12836         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12837         fixed.
12838
12839 2011-09-17  Bruno Haible  <bruno@clisp.org>
12840
12841         isnanl, isnand, isnanf: Work around MSVC bug.
12842         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12843
12844 2011-09-17  Bruno Haible  <bruno@clisp.org>
12845
12846         sys_socket tests: Fix recent mistake.
12847         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12848
12849 2011-09-17  Bruno Haible  <bruno@clisp.org>
12850
12851         putenv: Support for MSVC.
12852         * modules/putenv (Depends-on): Add environ.
12853         * lib/putenv.c (environ): Disable declaration.
12854         * lib/unistd.in.h: Update comment.
12855
12856 2011-09-17  Bruno Haible  <bruno@clisp.org>
12857
12858         math: Avoid macro redefinition warnings on MSVC.
12859         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12860         Undefine before redefining.
12861
12862 2011-09-17  Bruno Haible  <bruno@clisp.org>
12863
12864         doc: Mention functions which are declared as macros.
12865         * doc/posix-functions/*[fl].texi: Mention that some functions are
12866         defined as macros with arguments only.
12867
12868 2011-09-17  Bruno Haible  <bruno@clisp.org>
12869
12870         Add dependencies to new dirent related modules.
12871         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12872         * modules/fts (Depends-on): Likewise.
12873         * modules/glob (Depends-on): Likewise.
12874         * modules/savedir (Depends-on): Likewise.
12875         * modules/scandir (Depends-on): Likewise.
12876         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12877         * modules/fdopendir (Depends-on): Add opendir.
12878
12879 2011-09-17  Bruno Haible  <bruno@clisp.org>
12880
12881         inet_pton: Support for MSVC on Windows Vista or newer.
12882         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12883         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12884         HAVE_DECL_INET_PTON is defined.
12885         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12886         On platforms with <winsock2.h>, test whether inet_pton is declared in
12887         <ws2tcpip.h>. If so, arrange to replace it.
12888         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12889         REPLACE_INET_PTON.
12890         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12891         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12892         (Depends-on, configure.ac): Update condition.
12893         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12894
12895 2011-09-17  Bruno Haible  <bruno@clisp.org>
12896
12897         inet_ntop: Support for MSVC on Windows Vista or newer.
12898         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12899         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12900         HAVE_DECL_INET_NTOP is defined.
12901         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12902         On platforms with <winsock2.h>, test whether inet_ntop 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_NTOP.
12906         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12907         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12908         (Depends-on, configure.ac): Update condition.
12909         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12910
12911 2011-09-16  Eric Blake  <eblake@redhat.com>
12912
12913         test-fsync: yet another enhancement
12914         * tests/test-fsync.c (main): Also test behavior on read-only text
12915         file.
12916
12917 2011-09-16  Bruno Haible  <bruno@clisp.org>
12918
12919         Enhance fsync, fdatasync tests.
12920         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12921         * tests/test-fdatasync.c (main): Likewise.
12922
12923 2011-09-16  Bruno Haible  <bruno@clisp.org>
12924
12925         Support for MSVC compiler: Ensure mode_t gets defined.
12926         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12927         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12928         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12929         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12930         * tests/test-fcntl-h.c: Check that mode_t is defined.
12931         * tests/test-sys_stat.c: Likewise.
12932         * tests/test-sys_types.c: Likewise.
12933         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12934         * doc/posix-headers/sys_stat.texi: Likewise.
12935         * doc/posix-headers/sys_types.texi: Likewise.
12936
12937 2011-09-16  Bruno Haible  <bruno@clisp.org>
12938
12939         sys_stat: Support for MSVC.
12940         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12941         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12942         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12943         MSVC.
12944
12945 2011-09-16  Bruno Haible  <bruno@clisp.org>
12946
12947         Support for MSVC compiler: Ensure off_t gets defined.
12948         * lib/unistd.in.h: Include <sys/types.h>.
12949         * tests/test-fcntl-h.c: Check that off_t is defined.
12950         * tests/test-sys_stat.c: Likewise.
12951         * tests/test-sys_types.c: Likewise.
12952
12953 2011-09-16  Eric Blake  <eblake@redhat.com>
12954
12955         fdatasync: port to Solaris
12956         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12957         * modules/fdatasync (Link): Document it.
12958         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12959
12960         fdatasync: port to MacOS X 10.7
12961         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12962         declared.
12963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12964         * modules/unistd (Makefile.am): Substitute it.
12965         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12966         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12967
12968         fdatasync: minor improvements
12969         * modules/fdatasync (Depends-on): Add condition for fsync.
12970         * lib/fdatasync.c (fdatasync): Add comment.
12971         * tests/test-unistd-c++.cc: Test fdatasync.
12972
12973         unistd: update refs to newer POSIX
12974         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12975         Suggested by Bruno Haible.
12976
12977         fdatasync: new module
12978         * modules/fsync (Description): Document difference to fdatasync.
12979         * modules/fdatasync: New module.
12980         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12981         * lib/fdatasync.c (fdatasync): Likewise.
12982         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12983         defaults.
12984         * modules/unistd (Makefile.am): Set witnesses.
12985         * lib/unistd.in.h (fdatasync): Declare.
12986         * MODULES.html.sh: Document it.
12987         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12988         * modules/fdatasync-tests: New test.
12989         * tests/test-fdatasync.c: Likewise.
12990
12991 2011-09-16  Eric Blake  <eblake@redhat.com>
12992
12993         test-fsync: enhance tests
12994         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12995         * tests/test-fsync.c (main): Enhance test.
12996
12997 2011-09-15  Bruno Haible  <bruno@clisp.org>
12998
12999         Support for MSVC compiler: Ensure ssize_t gets defined.
13000         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13001         * doc/posix-headers/stdio.texi: Likewise.
13002         * modules/stdio (Depends-on): Add ssize_t.
13003         * modules/sys_socket (Depends-on): Likewise.
13004         * modules/sys_types (Depends-on): Likewise.
13005         * modules/sys_uio (Depends-on): Likewise.
13006         * modules/unistd (Depends-on): Likewise.
13007         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13008         * tests/test-sys_types.c: Check that ssize_t is defined.
13009
13010 2011-09-14  Bruno Haible  <bruno@clisp.org>
13011
13012         Avoid using #, the m4 comment starter character, near brackets.
13013         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13014         delimiter character in sed expressions.
13015         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13016         Suggested by Eric Blake.
13017
13018         Properly quote AC_CHECK_DECLS' 4th argument.
13019         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13020         argument.
13021         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13022         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13023         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13024         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13025         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13026         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13027         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13028         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13029         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13030         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13031         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13032         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13033         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13034         * m4/isinf.m4 (gl_ISINF): Likewise.
13035         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13036         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13037         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13038         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13039         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13040         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13041         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13042         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13043         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13044         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13045         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13046         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13048         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13050         Reported by Eric Blake.
13051
13052         Properly quote AC_CHECK_DECL's 4th argument.
13053         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13054         argument.
13055         * m4/argp.m4 (gl_ARGP): Likewise.
13056         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13057         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13058         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13059         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13060         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13061         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13062         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13063         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13065         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13066         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13067         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13068         Reported by Eric Blake.
13069
13070 2011-09-14  Eric Blake  <eblake@redhat.com>
13071
13072         opendir: avoid compile warning
13073         * lib/opendir.c (includes): Always include errno.h.
13074         Reported by Tatsuro MATSUOKA.
13075
13076 2011-09-14  Jim Meyering  <meyering@redhat.com>
13077
13078         maint.mk: sc_tight_scope: propagate failure from sub-make
13079         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13080         Reported by Martin von Gagern.
13081
13082 2011-09-13  Bruno Haible  <bruno@clisp.org>
13083
13084         tempname: Support for MSVC.
13085         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13086         MSVC.
13087         * modules/tempname (Depends-on): Add fcntl-h.
13088
13089 2011-09-13  Bruno Haible  <bruno@clisp.org>
13090
13091         sys_time: Support for MSVC.
13092         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13093         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13094         include <winsock2.h>.
13095         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13096         function declarations that collide with POSIX.
13097         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13098         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13099
13100 2011-09-13  Bruno Haible  <bruno@clisp.org>
13101
13102         stat: Support for MSVC.
13103         * lib/stat.c: Include pathmax.h.
13104         * modules/stat (Depends-on): Add pathmax.
13105
13106         pathmax: Support for native Windows.
13107         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13108
13109 2011-09-12  Bruno Haible  <bruno@clisp.org>
13110
13111         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13112         * lib/dirent.in.h (struct dirent): New type.
13113         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13114         DT_WHT): New macros.
13115         (DIR): New type.
13116         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13117         (readdir, rewinddir): New declarations.
13118         * lib/dirent-private.h: New file.
13119         * lib/opendir.c: New file.
13120         * lib/readdir.c: New file.
13121         * lib/rewinddir.c: New file.
13122         * lib/closedir.c: New file.
13123         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13124         * m4/opendir.m4: New file.
13125         * m4/readdir.m4: New file.
13126         * m4/rewinddir.m4: New file.
13127         * m4/closedir.m4: New file.
13128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13129         REPLACE_CLOSEDIR here.
13130         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13131         readdir, rewinddir are declared.
13132         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13133         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13134         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13135         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13136         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13137         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13138         * modules/opendir: New file.
13139         * modules/readdir: New file.
13140         * modules/rewinddir: New file.
13141         * modules/closedir: New file.
13142         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13143         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13144         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13145         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13146         * NEWS: Mention the 'fchdir' change.
13147
13148 2011-09-11  Bruno Haible  <bruno@clisp.org>
13149
13150         asm-underscore.m4: Support for MSVC.
13151         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13152         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13153
13154 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13155
13156         Doc about crypt functions.
13157         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13158         needing for _GNU_SOURCE to get crypt.
13159         * doc/posix-functions/encrypt.texi: Likewise.
13160         * doc/posix-functions/setkey.texi: Likewise.
13161
13162 2011-09-11  Bruno Haible  <bruno@clisp.org>
13163
13164         doc: Update regarding MSVC 9.
13165         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13166         tested".
13167         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13168         * doc/posix-headers/*.texi: Likewise.
13169         * doc/pastposix-functions/*.texi: Likewise.
13170         * doc/glibc-functions/*.texi: Likewise.
13171         * doc/glibc-headers/*.texi: Likewise.
13172
13173 2011-09-11  Bruno Haible  <bruno@clisp.org>
13174
13175         unistd et al.: Don't assume <unistd.h> exists.
13176         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13177         does not exist.
13178         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13179         exist. But include <stdlib.h>.
13180         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13181         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13182         symlink() does not exist.
13183         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13184         include <io.h> instead.
13185         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13186         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13187         include <direct.h> instead.
13188         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13189         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13190         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13191         <io.h> instead.
13192         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13193         correctly if the system does not have hard links.
13194         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13195         <direct.h> instead.
13196         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13197         it when looking for function declarations.
13198         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13199         <direct.h> and <io.h> instead.
13200         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13201
13202 2011-09-11  Bruno Haible  <bruno@clisp.org>
13203
13204         strcase: Support for MSVC.
13205         * modules/strcase (Status, Notice): Remove obsoletion mark.
13206         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13207         * doc/posix-functions/strncasecmp.texi: Likewise.
13208
13209         strings: Don't assume <strings.h> exists.
13210         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13211         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13212         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13213         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13214
13215 2011-09-11  Bruno Haible  <bruno@clisp.org>
13216
13217         dirent: Don't assume <dirent.h> exists.
13218         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13219         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13220         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13221         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13222
13223 2011-09-11  Bruno Haible  <bruno@clisp.org>
13224
13225         Fix wint_t on MSVC.
13226         * lib/wchar.in.h (wint_t): On MSVC, override it.
13227         * lib/wctype.in.h (wint_t): Likewise.
13228         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13229         MSVC.
13230         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13231         * doc/posix-headers/wctype.texi: Likewise.
13232
13233 2011-09-11  Bruno Haible  <bruno@clisp.org>
13234
13235         sys_types: Fix typo.
13236         * lib/sys_types.in.h: Fix typo in comment.
13237         Reported by Paul Eggert.
13238
13239         Support for MSVC compiler: Ensure size_t gets defined.
13240         * modules/strings (Depends-on): Add 'sys_types'.
13241         * modules/sys_uio (Depends-on): Likewise.
13242         * lib/sys_uio.in.h: Update comment.
13243
13244         C++ tests for module 'sys_types'.
13245         * modules/sys_types-c++-tests: New file.
13246         * tests/test-sys_types-c++.cc: New file.
13247
13248         Tests for module 'sys_types'.
13249         * modules/sys_types-tests: New file.
13250         * tests/test-sys_types.c: New file.
13251
13252         New module 'sys_types'.
13253         * lib/sys_types.in.h: New file.
13254         * m4/sys_types_h.m4: New file.
13255         * modules/sys_types: New file.
13256         * doc/posix-headers/sys_types.texi: Mention the new module and the
13257         size_t problem on MSVC 9.
13258
13259 2011-09-11  Bruno Haible  <bruno@clisp.org>
13260
13261         Support for MSVC compiler: Avoid division by a literal 0.
13262         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13263         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13264         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13265         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13266         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13267         * tests/infinity.h: New file.
13268         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13269         on MSVC.
13270         * tests/test-ceilf1.c: Include infinity.h.
13271         (main): Use Infinityf.
13272         * tests/test-ceil1.c: Include infinity.h.
13273         (main): Use Infinityd.
13274         * tests/test-ceill.c: Include infinity.h.
13275         (main): Use Infinityl.
13276         * tests/test-dprintf-posix.c: Include infinity.h.
13277         (test_function): Use Infinityd.
13278         * tests/test-floorf1.c: Include infinity.h.
13279         (main): Use Infinityf.
13280         * tests/test-floor1.c: Include infinity.h.
13281         (main): Use Infinityd.
13282         * tests/test-floorl.c: Include infinity.h.
13283         (main): Use Infinityl.
13284         * tests/test-fprintf-posix.c: Include infinity.h.
13285         (test_function): Use Infinityd.
13286         * tests/test-frexp.c: Include infinity.h.
13287         (main): Use Infinityd.
13288         * tests/test-frexpl.c: Include infinity.h.
13289         (main): Use Infinityl.
13290         * tests/test-isfinite.c: Include infinity.h.
13291         (test_isfinitef): Use Infinityf.
13292         (test_isfinited): Use Infinityd.
13293         (test_isfinitel): Use Infinityl.
13294         * tests/test-isinf.c: Include infinity.h.
13295         (test_isinff): Use Infinityf.
13296         (test_isinfd): Use Infinityd.
13297         (test_isinfl): Use Infinityl.
13298         * tests/test-isnan.c: Include infinity.h.
13299         (test_float): Use Infinityf.
13300         (test_double): Use Infinityd.
13301         (test_long_double): Use Infinityl.
13302         * tests/test-isnanf.h: Include infinity.h.
13303         (main): Use Infinityf.
13304         * tests/test-isnand.h: Include infinity.h.
13305         (main): Use Infinityd.
13306         * tests/test-isnanl.h: Include infinity.h.
13307         (main): Use Infinityl.
13308         * tests/test-ldexpl.c: Include infinity.h.
13309         (main): Use Infinityl.
13310         * tests/test-printf-posix.h: Include infinity.h.
13311         (test_function): Use Infinityd.
13312         * tests/test-roundf1.c: Include infinity.h.
13313         (main): Use Infinityf.
13314         * tests/test-round1.c: Include infinity.h.
13315         (main): Use Infinityd.
13316         * tests/test-roundl.c: Include infinity.h.
13317         (main): Use Infinityl.
13318         * tests/test-signbit.c: Include infinity.h.
13319         (test_signbitf): Use Infinityf.
13320         (test_signbitd): Use Infinityd.
13321         (test_signbitl): Use Infinityl.
13322         * tests/test-snprintf-posix.h: Include infinity.h.
13323         (test_function): Use Infinityd, Infinityl.
13324         * tests/test-sprintf-posix.h: Include infinity.h.
13325         (test_function): Use Infinityd, Infinityl.
13326         * tests/test-truncf1.c: Include infinity.h.
13327         (main): Use Infinityf.
13328         * tests/test-trunc1.c: Include infinity.h.
13329         (main): Use Infinityd.
13330         * tests/test-truncl.c: Include infinity.h.
13331         (main): Use Infinityl.
13332         * tests/test-vasnprintf-posix.c: Include infinity.h.
13333         (test_function): Use Infinityd, Infinityl.
13334         * tests/test-vasprintf-posix.c: Include infinity.h.
13335         (test_function): Use Infinityd, Infinityl.
13336         * modules/ceilf-tests (Files): Add tests/infinity.h.
13337         * modules/ceil-tests (Files): Likewise.
13338         * modules/ceill-tests (Files): Likewise.
13339         * modules/dprintf-posix-tests (Files): Likewise.
13340         * modules/floorf-tests (Files): Likewise.
13341         * modules/floor-tests (Files): Likewise.
13342         * modules/floorl-tests (Files): Likewise.
13343         * modules/fprintf-posix-tests (Files): Likewise.
13344         * modules/frexp-tests (Files): Likewise.
13345         * modules/frexp-nolibm-tests (Files): Likewise.
13346         * modules/frexpl-tests (Files): Likewise.
13347         * modules/frexpl-nolibm-tests (Files): Likewise.
13348         * modules/isfinite-tests (Files): Likewise.
13349         * modules/isinf-tests (Files): Likewise.
13350         * modules/isnan-tests (Files): Likewise.
13351         * modules/isnanf-tests (Files): Likewise.
13352         * modules/isnanf-nolibm-tests (Files): Likewise.
13353         * modules/isnand-tests (Files): Likewise.
13354         * modules/isnand-nolibm-tests (Files): Likewise.
13355         * modules/isnanl-tests (Files): Likewise.
13356         * modules/isnanl-nolibm-tests (Files): Likewise.
13357         * modules/ldexpl-tests (Files): Likewise.
13358         * modules/printf-posix-tests (Files): Likewise.
13359         * modules/roundf-tests (Files): Likewise.
13360         * modules/round-tests (Files): Likewise.
13361         * modules/roundl-tests (Files): Likewise.
13362         * modules/signbit-tests (Files): Likewise.
13363         * modules/snprintf-posix-tests (Files): Likewise.
13364         * modules/sprintf-posix-tests (Files): Likewise.
13365         * modules/truncf-tests (Files): Likewise.
13366         * modules/trunc-tests (Files): Likewise.
13367         * modules/truncl-tests (Files): Likewise.
13368         * modules/vasnprintf-posix-tests (Files): Likewise.
13369         * modules/vasprintf-posix-tests (Files): Likewise.
13370         * modules/vdprintf-posix-tests (Files): Likewise.
13371         * modules/vfprintf-posix-tests (Files): Likewise.
13372         * modules/vprintf-posix-tests (Files): Likewise.
13373         * modules/vsnprintf-posix-tests (Files): Likewise.
13374         * modules/vsprintf-posix-tests (Files): Likewise.
13375         * modules/xprintf-posix-tests (Files): Likewise.
13376
13377 2011-09-11  Bruno Haible  <bruno@clisp.org>
13378
13379         Ensure pid_t gets defined.
13380         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13381         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13382         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13383         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13384         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13385         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13386         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13387         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13388         * tests/test-fcntl-h.c: Check that pid_t is defined.
13389         * tests/test-sched.c: Likewise.
13390         * tests/test-termios.c: Likewise.
13391         * tests/test-time.c: Likewise.
13392         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13393         * doc/posix-headers/signal.texi: Likewise.
13394         * doc/posix-headers/sys_types.texi: Likewise.
13395         * doc/posix-headers/time.texi: Likewise.
13396
13397 2011-09-11  Bruno Haible  <bruno@clisp.org>
13398
13399         acl: Fix compilation on Solaris 10 (older version).
13400         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13401         of ACE_EVERYONE.
13402         * lib/set-mode-acl.c (qset_acl): Likewise.
13403         Reported by Christian Jullien <eligis@orange.fr>.
13404
13405 2011-09-10  Bruno Haible  <bruno@clisp.org>
13406
13407         iconv, unsetenv: Add support for MSVC compiler.
13408         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13409         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13410
13411 2011-09-10  Bruno Haible  <bruno@clisp.org>
13412
13413         *printf: Add support for MSVC compiler.
13414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13415         handles the exception caused by the %n directive. When cross-compiling,
13416         guess no on native Windows.
13417         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13418         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13419         emulate it through vsnprintf.
13420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13421         * doc/posix-functions/dprintf.texi: Update documentation regarding
13422         MSVC 9.
13423         * doc/posix-functions/fprintf.texi: Likewise.
13424         * doc/posix-functions/printf.texi: Likewise.
13425         * doc/posix-functions/snprintf.texi: Likewise.
13426         * doc/posix-functions/sprintf.texi: Likewise.
13427         * doc/posix-functions/swprintf.texi: Likewise.
13428         * doc/posix-functions/vdprintf.texi: Likewise.
13429         * doc/posix-functions/vfprintf.texi: Likewise.
13430         * doc/posix-functions/vprintf.texi: Likewise.
13431         * doc/posix-functions/vsnprintf.texi: Likewise.
13432         * doc/posix-functions/vsprintf.texi: Likewise.
13433         * doc/glibc-functions/asprintf.texi: Likewise.
13434         * doc/glibc-functions/obstack_printf.texi: Likewise.
13435         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13436         * doc/glibc-functions/vasprintf.texi: Likewise.
13437
13438 2011-09-10  Bruno Haible  <bruno@clisp.org>
13439
13440         nocrash: Add support for native Windows.
13441         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13442
13443 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13444             Bruno Haible  <bruno@clisp.org>
13445
13446         absolute-header, include-next: Add support for MSVC compiler.
13447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13448         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13449         directory separator in #line directives.
13450         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13451         recognize also backslash as directory separator in #line directives.
13452
13453 2011-09-08  Jim Meyering  <meyering@redhat.com>
13454
13455         maint.mk: mark the post-release commit log with "maint: " prefix
13456         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13457         one-line commit-log summary.
13458
13459 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13460             Bruno Haible  <bruno@clisp.org>
13461
13462         Doc about crypt functions.
13463         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13464         systems.
13465         * doc/posix-functions/encrypt.texi: Likewise.
13466         * doc/posix-functions/setkey.texi: Likewise.
13467
13468 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13469
13470         * lib/gc.h: Fix copyright header.
13471
13472 2011-09-07  Bruno Haible  <bruno@clisp.org>
13473
13474         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13475         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13476         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13477
13478 2011-09-07  Bruno Haible  <bruno@clisp.org>
13479
13480         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13481         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13482         * lib/freopen.c: Likewise.
13483         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13484         * lib/lstat.c: Likewise.
13485         * lib/stat.c: Likewise.
13486         * lib/open.c: Use different syntax for include of <fcntl.h>.
13487         * lib/openat.c: Include fcntl.h again, explicitly.
13488
13489 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13490
13491         parse-datetime: document the newly accepted format
13492         * doc/parse-datetime.texi (Combined date and time of day items):
13493         New section.
13494
13495 2011-09-06  Bruno Haible  <bruno@clisp.org>
13496
13497         acl: Fix a test failure on newer Solaris 10 with ZFS.
13498         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13499         ENOSYS as no ACL.
13500         Reported by Jim Meyering.
13501
13502 2011-09-06  Bruno Haible  <bruno@clisp.org>
13503
13504         acl: Update for AIX >= 5.3 with NFS.
13505         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13506         ENOSYS as no ACL.
13507
13508         acl: Fix a test failure on AIX >= 5.3 with NFS.
13509         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13510         as no ACL.
13511
13512 2011-09-06  Bruno Haible  <bruno@clisp.org>
13513
13514         acl: Fix a test failure on IRIX 6.5 with NFS.
13515         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13516         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13517         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13518         * lib/copy-acl.c (qcopy_acl): Likewise.
13519
13520 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13521
13522         openat: port to AIX 7.1 with large files
13523         AIX 7.1 does a "#define openat open64at" if large files are in use,
13524         so we can't simply #undef openat.  Use the orig_openat trick (similar
13525         to orig_open in lib/open.c) to work around the problem.  Problem
13526         reported by Kevin Brott for GNU tar, in the thread containing
13527         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13528         * lib/openat.c (__need_system_fcntl_h): Define first.
13529         Include <fcntl.h> and <sys/types.h> before undefining.
13530         (orig_openat) [HAVE_OPENAT]: New inline function.
13531         (openat) [HAVE_OPENAT]: Do not undef.
13532         (rpl_openat): Use orig_openat, not openat.
13533
13534 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13535             Bruno Haible  <bruno@clisp.org>
13536
13537         acl: Avoid errors on NonStop Kernel.
13538         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13539         ENOTSUP errors.
13540
13541 2011-09-05  Bruno Haible  <bruno@clisp.org>
13542
13543         acl: Clean up Solaris code.
13544         * lib/acl-internal.h: Remove no-op #if.
13545         * lib/file-has-acl.c: Likewise.
13546         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13547         * lib/copy-acl.c (qcopy_acl): Likewise.
13548
13549 2011-09-05  Bruno Haible  <bruno@clisp.org>
13550
13551         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13552         binaries built on the original Solaris 10.
13553         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13554         trivial.
13555
13556 2011-09-05  Bruno Haible  <bruno@clisp.org>
13557
13558         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13559         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13560         10.
13561         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13562         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13563         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13564         instead of acl_get, facl_get, acl_set, facl_set.
13565
13566 2011-09-05  Bruno Haible  <bruno@clisp.org>
13567
13568         copy-file: Try unit tests on more file systems.
13569         * tests/test-copy-file-1.sh: New file.
13570         * tests/test-copy-file-2.sh: New file.
13571         * modules/copy-file-tests (Files): Add them.
13572         (Makefile.am): Add them to TESTS.
13573
13574         acl: Try unit tests on more file systems.
13575         * tests/test-file-has-acl-1.sh: New file.
13576         * tests/test-file-has-acl-2.sh: New file.
13577         * tests/test-set-mode-acl-1.sh: New file.
13578         * tests/test-set-mode-acl-2.sh: New file.
13579         * tests/test-copy-acl-1.sh: New file.
13580         * tests/test-copy-acl-2.sh: New file.
13581         * modules/acl-tests (Files): Add them.
13582         (Makefile.am): Add them to TESTS.
13583
13584 2011-09-04  Bruno Haible  <bruno@clisp.org>
13585
13586         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13587         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13588         10.
13589         (OLD_ALLOW, OLD_DENY): New macros.
13590         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13591         ACE_ACCESS_ALLOWED_ACE_TYPE.
13592         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13593         ACE_ACCESS_DENIED_ACE_TYPE.
13594         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13595         (NEW_ACE_EXECUTE): Fix value.
13596         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13597         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13598         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13599         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13600         NEW_ACE_SYNCHRONIZE): New macros.
13601         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13602         instead of acl_fromtext, acl_set, facl_set.
13603         Fixes a coreutils/tests/cp/perm failure.
13604
13605 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13606
13607         openat: test for fstatat (..., 0) bug
13608         Further testing with tar suggests that fstatat (..., 0)
13609         does not work in general, on AIX 7.1; see
13610         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13611         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13612         replacement fstatat (which is what older AIX releases were using
13613         anyway).
13614         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13615         use is now changed to orig_fstatat.  This was probably the right
13616         thing to do anyway.
13617         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13618         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13619         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13620         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13621         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13622         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13623         if the bug is found.
13624
13625         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13626         This tests for another fstatat bug on AIX 7.1:
13627         fstatat (AT_FDCWD, ..., 0) does not work.  See
13628         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13629         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13630         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13631         (rpl_fstatat): Adjust so that it works around either (or both)
13632         bugs if present.
13633         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13634
13635 2011-09-03  Karl Berry  <karl@gnu.org>
13636
13637         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13638         in index entries.
13639
13640 2011-09-02  Bruno Haible  <bruno@clisp.org>
13641
13642         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13643         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13644         values of AR, ARFLAGS, RANLIB.
13645         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13646
13647 2011-09-02  Bruno Haible  <bruno@clisp.org>
13648
13649         Find 'ar' program that fits with --host argument.
13650         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13651
13652 2011-09-02  Bruno Haible  <bruno@clisp.org>
13653
13654         tests: init.sh: Support any non-GNU diff.
13655         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13656         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13657         Solaris 8.
13658
13659 2011-09-02  Bruno Haible  <bruno@clisp.org>
13660
13661         tests: init.sh: work also with any non-GNU diff that supports -u
13662         * tests/init.sh: Relax check for diff -u support.
13663         Rather than checking for GNU diff via --version, simply check
13664         for support for -u itself.  Useful at least on OpenBSD 4.9,
13665         AIX 7.1, IRIX 6.5, and Solaris 10.
13666
13667 2011-09-01  Bruno Haible  <bruno@clisp.org>
13668
13669         strtoimax, strtoumax: Document problem on HP-UX 11.
13670         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13671         * doc/posix-functions/strtoumax.texi: Likewise.
13672
13673 2011-09-01  Bruno Haible  <bruno@clisp.org>
13674
13675         strtoumax: Avoid link error on OSF/1 with DTK cc.
13676         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13677         defined as a function.
13678         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13679         strtoumax is defined, not whether it is declared.
13680
13681 2011-09-01  Bruno Haible  <bruno@clisp.org>
13682
13683         strtoimax: Avoid link error on OSF/1 with DTK cc.
13684         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13685         defined as a function.
13686         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13687         strtoimax is defined, not whether it is declared.
13688
13689 2011-09-01  Bruno Haible  <bruno@clisp.org>
13690
13691         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13692         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13693         as a function.
13694         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13695         whether it is declared.
13696
13697 2011-09-01  Bruno Haible  <bruno@clisp.org>
13698
13699         imaxabs: Avoid link error on OSF/1 with DTK cc.
13700         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13701         as a function.
13702         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13703         whether it is declared.
13704
13705 2011-09-01  Bruno Haible  <bruno@clisp.org>
13706
13707         Tests for module 'strtoumax'.
13708         * modules/strtoumax-tests: New file.
13709         * tests/test-strtoumax.c: New file.
13710
13711         Tests for module 'strtoimax'.
13712         * modules/strtoimax-tests: New file.
13713         * tests/test-strtoimax.c: New file.
13714
13715         Tests for module 'imaxdiv'.
13716         * modules/imaxdiv-tests: New file.
13717         * tests/test-imaxdiv.c: New file.
13718
13719         Tests for module 'imaxabs'.
13720         * modules/imaxabs-tests: New file.
13721         * tests/test-imaxabs.c: New file.
13722
13723 2011-09-01  Bruno Haible  <bruno@clisp.org>
13724
13725         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13726         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13727         pthread_create.
13728
13729 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13730
13731         openat: work around AIX 7.1 fstatat issue
13732         This should fix the problem that was not properly fixed
13733         in the previous change, dated 2011-08-30.
13734         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13735         __need_system_stat_h defined.
13736         (orig_fstatat) [HAVE_FSTATAT]: New function.
13737         (rpl_fstatat): Go back to the old way of doing things,
13738         except call orig_fstatat instead of fstatat.
13739         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13740         Remove unnecessary check whether fstatat fills in st_size etc.
13741
13742 2011-09-01  Bruno Haible  <bruno@clisp.org>
13743
13744         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13745         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13746         just include the system's header.
13747
13748 2011-08-31  Jim Meyering  <meyering@redhat.com>
13749
13750         tests: avoid spurious assertion failure in test-float.c on ppc64
13751         * tests/test-float.c (test_long_double): Comment out an assertion,
13752         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13753         with gcc-4.4.4.
13754
13755         maint: indent with spaces, not TABs
13756         I need to get in the habit of running gnulib's "make check".
13757         Both of these would have been caught.
13758         * m4/largefile.m4: Indent with spaces, not TABs.
13759         * lib/parse-datetime.y (iso_8601_time): Likewise.
13760         Spotted by Pádraig Brady.
13761
13762         test-parse-datetime.c: accommodate a relatively strict gcc warning
13763         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13764         to avoid a warning from gcc's -Werror=missing-declarations.
13765         Insert a few spaces-before-funcall-parenthesis.
13766
13767 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13768
13769         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13770         The parser now accepts ISO 8601 date-time strings with "T" as the
13771         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13772         with a space between the date and time strings.  Now it also parses
13773         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13774         variants like "2004-02-29T16:21:42.333-07:00"
13775         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13776         of day representation using the 'T' separator character.
13777         * doc/parse-datetime.texi (General date syntax): replace use of
13778         deprecated --iso-8601 option with --rfc-3339 in example of date
13779         command output formats that can be parsed.
13780         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13781         lib/parse-datetime.y.
13782         (gmt_offset): New function.
13783         (main): Add additional test cases to validate ISO8601 extended
13784         date and time of day parsing.
13785
13786 2011-08-31  Bruno Haible  <bruno@clisp.org>
13787
13788         freopen: Documentation.
13789         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13790         name.
13791         Reported by Claudio Bley <claudio.bley@gmail.com>.
13792
13793 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13794
13795         freopen: Don't crash if the filename argument is NULL.
13796         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13797         NULL.
13798
13799 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         openat: work around AIX 7.1 fstatat bug
13802         Problem reported by Kevin Brott for GNU tar, in the thread containing
13803         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13804         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13805         FSTATAT_ST_SIZE_ETC_BROKEN.
13806         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13807         rpl_fstatat.
13808         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13809         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13810         AC_CHECK_FUNCS_ONCE for fstatat.
13811         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13812         fchmodat, mkdirat, openat and unlinkat.
13813
13814 2011-08-30  Bruno Haible  <bruno@clisp.org>
13815
13816         Avoid endless recursions if config.h includes some header files.
13817         * lib/fopen.c (__need_FILE): Define already before including config.h.
13818         * lib/freopen.c (__need_FILE): Likewise.
13819         * lib/open.c (__need_system_fcntl_h): Likewise.
13820         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13821         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13822         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13823
13824 2011-08-25  Karl Berry  <karl@gnu.org>
13825
13826         * config/srclist.txt (ylwrap): new try.
13827         * build-aux/ylwrap: new file.
13828
13829 2011-08-23  Bruno Haible  <bruno@clisp.org>
13830
13831         tmpdir: Use a good default directory on native Windows.
13832         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13833         (P_tmpdir): Default to _P_tmpdir on native Windows.
13834         (path_search): On native Windows, try the value returned by GetTempPath
13835         before trying P_tmpdir.
13836         * modules/tmpdir (Depends-on): Add pathmax.
13837         Suggested by John Darrington <john@darrington.wattle.id.au>.
13838
13839 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13840
13841         doc: fix typo in README-release
13842         * top/README-release: Capitalize first word of a sentence.
13843
13844 2011-08-19  Jim Meyering  <meyering@redhat.com>
13845
13846         fts: do not exhaust memory when processing million-entry directories
13847         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13848         directory would require about 256*N bytes of memory.  Thus, it was
13849         easy to construct a directory too large to be processed by any of
13850         those tools.  With this change, fts' maximum memory utilization is
13851         now limited to around 30MB.
13852         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13853         (fts_read): When we've processed the final entry (i.e., when
13854         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13855         using the parent entry to read any remaining entries.  Dispatch
13856         depending on what fts_build returns:
13857         - NULL+stop, aka failure: stop
13858         - NULL otherwise: move up in the dir hierarchy
13859         - non-NULL: handle this new entry
13860         (fts_build): Declare and use new local, continue_readdir.
13861         Prepare to be called from fts_read, when the entries
13862         from a partially-read directory have just been exhausted.
13863         In that case, we'll skip the opendir and instead use the parent's
13864         fts_dirp and derive dir_fd from that.
13865         Finally, in the readdir loop, if we read max_entries entries,
13866         exit the loop ensuring *not* to call closedir.  This is required
13867         so that fts_dirp can be reused on a subsequent call.
13868         Prompted by Ben England's report of memory exhaustion in find
13869         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13870
13871         maint: fts: move decl of `dp' down into while loop; split a long line
13872         * lib/fts.c (fts_build): No semantic change.
13873
13874         fts: add/use new struct member, fts_dirp
13875         We are about to use this to manage any directory with
13876         too many entries to read all of them into memory at once.
13877         To do that, we'll need to save the DIR* pointer in each
13878         affected FTSENT struct.
13879         * lib/fts_.h: Include <dirent.h>.
13880         (struct FTSENT) [fts_dirp]: New member.
13881         * lib/fts.c (closedir_and_clear): Define.
13882         Use it in place of closedir so that we are sure to
13883         clear the new fts_dirp member when done with it.
13884         (fts_alloc): Initialize the new member.
13885         (fts_lfree): Free, if needed.
13886
13887         maint: fts: give __opendir2 a new parameter and rename
13888         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13889         than surreptitiously using sole caller's "dir_fd".
13890         (fts_opendir): Rename from __opendir2.
13891
13892         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13893         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13894
13895         maint: fts.c: correct off-by-one indentation
13896         * lib/fts.c (fts_build): Correct indentation, change style
13897         of a couple of block comments, and bracing style.
13898
13899         maint: fts.c: move __opendir2 #define "up" out of function body
13900         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13901
13902         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13903         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13904         out for a long time and besides was useful only on BSD systems.
13905
13906 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13907
13908         regex: port to Stratus OpenVOS
13909         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13910         define to empty, rather than attempting nonportable optimizations.
13911         Problem reported by Paul Green in:
13912         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13913         and fix suggested by Eric Blake in:
13914         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13915
13916 2011-08-17  Eric Blake  <eblake@redhat.com>
13917
13918         getcwd: fix test failures on mingw
13919         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13920         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13921         test if long directory cannot be created, and allow mingw errno.
13922
13923         getcwd-lgpl: fix m4 to match relaxed test for BSD
13924         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13925         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13926         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13927         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13928         signature problem.
13929
13930         getcwd: fix compilation on mingw64
13931         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13932         getcwd.
13933         Reported by Marc-André Lureau.
13934
13935         pipe2: silence compiler warning
13936         * lib/pipe2.c (pipe2): Hide label if it is not used.
13937
13938 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13939
13940         relocatable-prog: fix link error
13941         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13942         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13943         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13944         into modules/relocatable-lib without noticing that
13945         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13946         also needs to build relocatable.c.
13947
13948 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13949
13950         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13951         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13952         shell code: it contained a 'break' that was not in a loop.
13953         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13954         via a shell-language loop; this may have been true in old Autoconf
13955         versions, but it's not true in Autoconf 2.68.  I found this bug
13956         when testing coreutils git on Solaris 8, whose shell complains
13957         about the syntax error.
13958
13959 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13960
13961         * lib/base64.c: Fix comment to reference RFC 4648.
13962         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13963         <gvtulder@gmail.com>.
13964
13965 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13966
13967         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13968
13969         po/Makefile.in.in: fix make -q problem
13970         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13971         rule, since there's no file named 'check-macro-version' and its
13972         use as a file breaks make -q.
13973         (all): Don't depend on check-macro-version.
13974         (CHECK_MACRO_VERSION): New macro.
13975         (stamp-po): Use it.
13976
13977         configmake: fix make -q problem
13978         * modules/configmake (configmake.h): Update configmake.h's time stamp
13979         even if the file does not change.  Otherwise, 'make -q' fails.
13980         Problem reported by Simon Josefsson in
13981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13982
13983 2011-08-11  Jim Meyering  <meyering@redhat.com>
13984
13985         git-version-gen: correct the advice in a comment
13986         * build-aux/git-version-gen: Correct comment.
13987         Don't recommend to list .tarball-version in .gitignore.
13988
13989 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13990
13991         base64: fix off-by-one buffer size bug
13992         Problem and (trivial) fix reported by Gijs van Tulder in
13993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13994         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13995         * tests/test-base64.c (main): Catch the bug.
13996
13997 2011-08-10  Eric Blake  <eblake@redhat.com>
13998
13999         closein: correct comments
14000         * lib/closein.c (close_stdin): Improve comments.
14001
14002 2011-08-09  Bruno Haible  <bruno@clisp.org>
14003
14004         More tests for 'fseeko'.
14005         * tests/test-fseeko3.c: New file, from Eric Blake.
14006         * tests/test-fseeko3.sh: New file.
14007         * modules/fseeko-tests (Files): Add them.
14008         (TESTS): Add test-fseeko3.sh.
14009         (check_PROGRAMS): Add test-fseeko3.
14010
14011 2011-08-09  Eric Blake  <eblake@redhat.com>
14012
14013         fseeko: remove unneeded hack
14014         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14015
14016         fseeko: fix bug on glibc
14017         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14018         Reported by John W. Eaton.
14019
14020 2011-08-08  Bruno Haible  <bruno@clisp.org>
14021
14022         unictype/base: Fix interoperability with preinstalled libunistring.
14023         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14024         Reported by Simon Josefsson.
14025
14026 2011-08-08  Bruno Haible  <bruno@clisp.org>
14027
14028         iswblank: Detect declaration correctly.
14029         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14030         AC_CHECK_DECLS invocation.
14031
14032 2011-08-08  Bruno Haible  <bruno@clisp.org>
14033
14034         tcgetsid: Detect declaration correctly.
14035         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14036         AC_CHECK_DECLS invocation.
14037         Reported by Simon Josefsson.
14038
14039 2011-08-08  Eric Blake  <eblake@redhat.com>
14040
14041         largefile: fix typo that regressed large file support
14042         * modules/largefile (configure.ac-early): Fix section name.
14043
14044 2011-08-06  Karl Berry  <karl@gnu.org>
14045
14046         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14047         a separate module.
14048
14049 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14050
14051         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14052         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14053         get prototype for free.
14054
14055 2011-08-04  Bruno Haible  <bruno@clisp.org>
14056
14057         Tests for module 'pathmax'.
14058         * modules/pathmax-tests: New file.
14059         * tests/test-pathmax.c: New file.
14060
14061         canonicalize-lgpl: Support larger filenames on the Hurd.
14062         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14063         Reported by Paul Eggert.
14064
14065         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14066         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14067         * lib/chdir-long.h: Include pathmax.h.
14068         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14069         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14070         (PATH_MAX): Remove code that is done by pathmax.h.
14071         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14072         * lib/tmpfile.c: Add a comment.
14073         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14074         * modules/chdir-long (Depends-on): Add pathmax.
14075         * modules/getcwd (Depends-on): Add pathmax.
14076         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14077         is not defined.
14078         * doc/posix-headers/limits.texi: Mention the pathmax module.
14079         * NEWS: Mention the change.
14080
14081 2011-08-02  Bruno Haible  <bruno@clisp.org>
14082
14083         pthread_sigmask: Actually use results of gl_THREADLIB.
14084         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14085         gl_THREADLIB, not gl_[]THREADLIB.
14086         Reported by Eric Blake.
14087
14088 2011-08-02  Jim Meyering  <meyering@redhat.com>
14089
14090         maint.mk: relax the default _gl_TS_function_match regexp
14091         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14092         space between function name and "(" in an "extern" declaration.
14093         That would fail to match a decl with no space there: extern void foo();
14094
14095 2011-07-31  Iain Nicol  <iain@thenicols.net>
14096
14097         git-version-gen: document that EXTRA_DIST must include .version
14098         * build-aux/git-version-gen: In the how-to-use comment, document
14099         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14100         will fail when run from an unpacked distribution tarball.
14101
14102 2011-08-01  Bruno Haible  <bruno@clisp.org>
14103
14104         wctype-h: Fix last change.
14105         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14106         REPLACE_TOWLOWER to 0.
14107         Reported by Sam Steingold <sds@gnu.org>.
14108
14109 2011-07-31  Bruno Haible  <bruno@clisp.org>
14110
14111         frexpl: Update autoconf test.
14112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14113         according to changes of 2011-06-20.
14114
14115 2011-07-31  Bruno Haible  <bruno@clisp.org>
14116
14117         sys_utsname: Add support for Minix.
14118         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14119         <sys/utsname.h>.
14120         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14121         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14122
14123 2011-07-31  Bruno Haible  <bruno@clisp.org>
14124
14125         strings: Add support for Minix.
14126         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14127         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14128         * doc/posix-headers/strings.texi: Document the Minix problem.
14129
14130 2011-07-31  Bruno Haible  <bruno@clisp.org>
14131
14132         wctype-h: Add support for Minix.
14133         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14134         REPLACE_TOWLOWER.
14135         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14136         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14137         REPLACE_ISWCNTRL.
14138
14139 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14140
14141         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14142         This is a performance improvement for 64-bit hosts: it causes the
14143         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14144
14145 2011-07-31  Bruno Haible  <bruno@clisp.org>
14146
14147         stdioext: Add support for Minix.
14148         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14149         * lib/fpurge.c (fpurge): Likewise.
14150         * lib/freadahead.c (freadahead): Likewise.
14151         * lib/freadable.c (freadable): Likewise.
14152         * lib/freading.c (freading): Likewise.
14153         * lib/freadptr.c (freadptr): Likewise.
14154         * lib/freadseek.c (freadptrinc): Likewise.
14155         * lib/fseeko.c (rpl_fseeko): Likewise.
14156         * lib/fseterr.c (fseterr): Likewise.
14157         * lib/fwritable.c (fwritable): Likewise.
14158         * lib/fwriting.c (fwriting): Likewise.
14159         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14160         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14161
14162 2011-07-31  Bruno Haible  <bruno@clisp.org>
14163
14164         errno: Port to Minix.
14165         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14166         ECONNABORTED are defined.
14167         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14168         GNULIB_defined_ECONNABORTED): New macros.
14169         * lib/strerror-override.h (strerror_override): Test also
14170         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14171         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14172         ECONNABORTED.
14173         * doc/posix-headers/errno.texi: Mention the Minix problem.
14174
14175 2011-07-31  Bruno Haible  <bruno@clisp.org>
14176
14177         Work around declaration collisions on Minix.
14178         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14179         defined, set REPLACE_MBSINIT.
14180         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14181         defined, set REPLACE_MBRTOWC.
14182         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14183         set REPLACE_MBRLEN.
14184         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14185         defined, set REPLACE_MBSRTOWCS.
14186         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14187         defined, set REPLACE_WCRTOMB.
14188         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14189         defined, set REPLACE_WCSRTOMBS.
14190
14191 2011-07-31  Bruno Haible  <bruno@clisp.org>
14192
14193         Add support for Minix with ACK compiler.
14194         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14195         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14196         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14197
14198 2011-07-31  Bruno Haible  <bruno@clisp.org>
14199
14200         Documentation about Minix.
14201         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14202         * doc/glibc-headers/*.texi: Likewise.
14203         * doc/posix-functions/*.texi: Likewise.
14204         * doc/glibc-functions/*.texi: Likewise.
14205
14206 2011-07-31  Bruno Haible  <bruno@clisp.org>
14207
14208         snippet/warn-on-use: Fix indentation.
14209         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14210
14211 2011-07-25  Jim Meyering  <meyering@redhat.com>
14212
14213         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14214         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14215         commands.
14216
14217 2011-07-27  Jim Meyering  <meyering@redhat.com>
14218
14219         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14220         * top/maint.mk (gl_extract_significant_defines_): Now that
14221         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14222         gnulib/lib/signal.in.h, and now that we recommend to
14223         define-if-undefined those two symbols in application code,
14224         we must filter them out of the "significant" list.
14225         This avoids a "make syntax-check" failure in coreutils.
14226
14227 2011-07-26  Eric Blake  <eblake@redhat.com>
14228
14229         warnings: add comments about previous patch
14230         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14231         * m4/include_next.m4: Likewise.
14232         * m4/warn-on-use.m4: Likewise.
14233         * m4/warnings.m4: Likewise, and simplify use.
14234         Suggested by Stefano Lattarini.
14235
14236         include-next, warnings: support older autoconf
14237         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14238         AS_VAR_PUSHDEF in a way that works with older autoconf.
14239         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14240         Reported by Daniel P. Berrange.
14241
14242 2011-07-25  Bruno Haible  <bruno@clisp.org>
14243
14244         fseek, ftell: Fix doc.
14245         * doc/posix-functions/fseek.texi: Reword statement about
14246         AC_SYS_LARGEFILE.
14247         * doc/posix-functions/ftell.texi: Likewise.
14248
14249 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14250             Bruno Haible  <bruno@clisp.org>
14251
14252         Add dependencies to the 'largefile' module.
14253         * modules/fopen (Depends-on): Add 'largefile'.
14254         * modules/freopen (Depends-on): Likewise.
14255         * modules/fseeko (Depends-on): Likewise.
14256         * modules/ftello (Depends-on): Likewise.
14257         * modules/glob (Depends-on): Likewise.
14258         * modules/lseek (Depends-on): Likewise.
14259         * modules/lstat (Depends-on): Likewise.
14260         * modules/mkostemp (Depends-on): Likewise.
14261         * modules/mkostemps (Depends-on): Likewise.
14262         * modules/mkstemp (Depends-on): Likewise.
14263         * modules/mkstemps (Depends-on): Likewise.
14264         * modules/open (Depends-on): Likewise.
14265         * modules/openat (Depends-on): Likewise.
14266         * modules/pread (Depends-on): Likewise.
14267         * modules/pwrite (Depends-on): Likewise.
14268         * modules/scandir (Depends-on): Likewise.
14269         * modules/stat (Depends-on): Likewise.
14270         * modules/tmpfile (Depends-on): Likewise.
14271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14272         since the containing module now depends on the largefile module.
14273         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14274         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14275         off_t is fixed by gnulib.
14276         * doc/posix-functions/freopen.texi: Likewise.
14277         * doc/posix-functions/fseeko.texi: Likewise.
14278         * doc/posix-functions/fstatat.texi: Likewise.
14279         * doc/posix-functions/ftello.texi: Likewise.
14280         * doc/posix-functions/glob.texi: Likewise.
14281         * doc/posix-functions/lseek.texi: Likewise.
14282         * doc/posix-functions/lstat.texi: Likewise.
14283         * doc/posix-functions/mkstemp.texi: Likewise.
14284         * doc/posix-functions/open.texi: Likewise.
14285         * doc/posix-functions/openat.texi: Likewise.
14286         * doc/posix-functions/pread.texi: Likewise.
14287         * doc/posix-functions/pwrite.texi: Likewise.
14288         * doc/posix-functions/scandir.texi: Likewise.
14289         * doc/posix-functions/stat.texi: Likewise.
14290         * doc/posix-functions/tmpfile.texi: Likewise.
14291         * doc/glibc-functions/mkostemp.texi: Likewise.
14292         * doc/glibc-functions/mkostemps.texi: Likewise.
14293         * doc/glibc-functions/mkstemps.texi: Likewise.
14294
14295 2011-07-25  Bruno Haible  <bruno@clisp.org>
14296
14297         fcntl: Move AC_LIBOBJ invocation to module description.
14298         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14299         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14300
14301         fcntl: Remove call-in from fchdir.m4.
14302         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14304
14305         dup3: Remove potential call-in from fchdir.m4.
14306         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14308
14309         dup2: Move AC_LIBOBJ invocation to module description.
14310         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14311         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14312         Don't invoke AC_LIBOBJ.
14313         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14314
14315         dup2: Remove call-in from fchdir.m4.
14316         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14318
14319         fclose: Move AC_LIBOBJ invocation to module description.
14320         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14321         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14322         to 1.
14323         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14324
14325         fclose: Remove call-in from close.m4.
14326         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14327         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14328
14329         close: Move AC_LIBOBJ invocation to module description.
14330         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14331         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14332         1.
14333         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14334
14335         close: Remove call-in from fchdir.m4.
14336         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14338
14339         open: Move AC_LIBOBJ invocation to module description.
14340         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14341         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14342         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14343
14344         open: Remove call-in from fchdir.m4.
14345         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14347
14348         fchdir: Start to remove gl_REPLACE_* idiom.
14349         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14350         (gl_FUNC_FCHDIR): Invoke it.
14351
14352 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         * lib/ftell.c (ftell): Comment out cast.
14355
14356         close: use gl_REPLACE_FCLOSE only if defined
14357         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14358         is defined.  The close module doesn't depend on the fclose module
14359         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14361         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14362
14363 2011-07-24  Jim Meyering  <meyering@redhat.com>
14364
14365         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14366         * tests/test-select.h (test_function): Declare as "static".
14367
14368 2011-07-24  Bruno Haible  <bruno@clisp.org>
14369
14370         doc: Mention the effects of AC_SYS_LARGEFILE.
14371         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14372         on this function.
14373         * doc/posix-functions/aio_error.texi: Likewise.
14374         * doc/posix-functions/aio_fsync.texi: Likewise.
14375         * doc/posix-functions/aio_read.texi: Likewise.
14376         * doc/posix-functions/aio_return.texi: Likewise.
14377         * doc/posix-functions/aio_suspend.texi: Likewise.
14378         * doc/posix-functions/aio_write.texi: Likewise.
14379         * doc/posix-functions/fgetpos.texi: Likewise.
14380         * doc/posix-functions/fopen.texi: Likewise.
14381         * doc/posix-functions/freopen.texi: Likewise.
14382         * doc/posix-functions/fsetpos.texi: Likewise.
14383         * doc/posix-functions/fstatvfs.texi: Likewise.
14384         * doc/posix-functions/ftruncate.texi: Likewise.
14385         * doc/posix-functions/ftw.texi: Likewise.
14386         * doc/posix-functions/getrlimit.texi: Likewise.
14387         * doc/posix-functions/glob.texi: Likewise.
14388         * doc/posix-functions/lio_listio.texi: Likewise.
14389         * doc/posix-functions/lockf.texi: Likewise.
14390         * doc/posix-functions/mkstemp.texi: Likewise.
14391         * doc/posix-functions/mmap.texi: Likewise.
14392         * doc/posix-functions/nftw.texi: Likewise.
14393         * doc/posix-functions/openat.texi: Likewise.
14394         * doc/posix-functions/opendir.texi: Likewise.
14395         * doc/posix-functions/posix_fadvise.texi: Likewise.
14396         * doc/posix-functions/posix_fallocate.texi: Likewise.
14397         * doc/posix-functions/pread.texi: Likewise.
14398         * doc/posix-functions/pwrite.texi: Likewise.
14399         * doc/posix-functions/readdir.texi: Likewise.
14400         * doc/posix-functions/readdir_r.texi: Likewise.
14401         * doc/posix-functions/rewinddir.texi: Likewise.
14402         * doc/posix-functions/scandir.texi: Likewise.
14403         * doc/posix-functions/seekdir.texi: Likewise.
14404         * doc/posix-functions/setrlimit.texi: Likewise.
14405         * doc/posix-functions/statvfs.texi: Likewise.
14406         * doc/posix-functions/telldir.texi: Likewise.
14407         * doc/posix-functions/tmpfile.texi: Likewise.
14408         * doc/posix-functions/truncate.texi: Likewise.
14409         * doc/glibc-functions/fallocate.texi: Likewise.
14410         * doc/glibc-functions/fstatfs.texi: Likewise.
14411         * doc/glibc-functions/fts_children.texi: Likewise.
14412         * doc/glibc-functions/fts_read.texi: Likewise.
14413         * doc/glibc-functions/getdirentries.texi: Likewise.
14414         * doc/glibc-functions/mkostemp.texi: Likewise.
14415         * doc/glibc-functions/mkostemps.texi: Likewise.
14416         * doc/glibc-functions/mkstemps.texi: Likewise.
14417         * doc/glibc-functions/preadv.texi: Likewise.
14418         * doc/glibc-functions/pwritev.texi: Likewise.
14419         * doc/glibc-functions/sendfile.texi: Likewise.
14420         * doc/glibc-functions/statfs.texi: Likewise.
14421
14422 2011-07-24  Bruno Haible  <bruno@clisp.org>
14423
14424         doc: Fix typo.
14425         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14426
14427 2011-07-24  Bruno Haible  <bruno@clisp.org>
14428
14429         doc: Mention fsusage.
14430         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14431
14432 2011-07-24  Bruno Haible  <bruno@clisp.org>
14433
14434         doc: Mention new glibc headers and functions.
14435         * doc/glibc-headers/gshadow.texi: New file.
14436         * doc/glibc-functions/endsgent.texi: New file.
14437         * doc/glibc-functions/fgetsgent.texi: New file.
14438         * doc/glibc-functions/fgetsgent_r.texi: New file.
14439         * doc/glibc-functions/getsgent.texi: New file.
14440         * doc/glibc-functions/getsgent_r.texi: New file.
14441         * doc/glibc-functions/getsgnam.texi: New file.
14442         * doc/glibc-functions/getsgnam_r.texi: New file.
14443         * doc/glibc-functions/putsgent.texi: New file.
14444         * doc/glibc-functions/setsgent.texi: New file.
14445         * doc/glibc-functions/sgetsgent.texi: New file.
14446         * doc/glibc-functions/sgetsgent_r.texi: New file.
14447         * doc/glibc-functions/malloc_info.texi: New file.
14448         * doc/glibc-functions/preadv.texi: New file.
14449         * doc/glibc-functions/pwritev.texi: New file.
14450         * doc/glibc-functions/register_printf_modifier.texi: New file.
14451         * doc/glibc-functions/register_printf_specifier.texi: New file.
14452         * doc/glibc-functions/register_printf_type.texi: New file.
14453         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14454         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14455         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14456         * doc/glibc-functions/pthread_getname_np.texi: New file.
14457         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14458         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14459         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14460         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14461         * doc/glibc-functions/pthread_setname_np.texi: New file.
14462         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14463         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14464         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14465         * doc/glibc-functions/qsort_r.texi: New file.
14466         * doc/glibc-functions/quick_exit.texi: New file.
14467         * doc/glibc-functions/syncfs.texi: New file.
14468         * doc/gnulib.texi: Include them.
14469         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14470         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14471         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14472         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14473         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14474         * doc/glibc-functions/execvpe.texi: Likewise.
14475
14476 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14477
14478         ftell: don't include <unistd.h>
14479         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14480         guaranteed to define off_t, and the ftell module depends on the
14481         stdio module.
14482
14483         ftell: do not assume wraparound signed arithmetic
14484         * lib/ftell.c: Include <limits.h>.
14485         (ftell): Don't assume wraparound signed arithmetic.
14486
14487 2011-07-24  Bruno Haible  <bruno@clisp.org>
14488
14489         close: No longer depend on module 'fclose'.
14490         * modules/close (Depends-on): Remove fclose.
14491         * NEWS: Mention the change.
14492         Suggested by Sam Steingold <sds@gnu.org>.
14493
14494 2011-07-24  Bruno Haible  <bruno@clisp.org>
14495
14496         fsusage: Enable large volume support on AIX >= 5.2.
14497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14498         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14499         instead of STAT_STATVFS.
14500         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14501
14502         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14503         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14504         f_blocks field only on MacOS X.
14505
14506         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14508         * modules/fsusage (Depends-on): Add largefile.
14509
14510 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14511
14512         * README: Modernize discussion of signed integers.
14513         Assuming overflow wraparound is no longer safe.
14514         Mention ones' complement and signed magnitude.
14515
14516 2011-07-22  Bruno Haible  <bruno@clisp.org>
14517
14518         select tests, pselect tests: Refactor.
14519         * tests/test-select.h: New file, extracted from tests/test-select.c.
14520         (select_fn): New type.
14521         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14522         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14523         test_pipe): Add my_select argument.
14524         (test_function): Renamed from main. Add my_select argument.
14525         * tests/test-select.c: Move most code to tests/test-select.h. Include
14526         test-select.h.
14527         * modules/select-tests (Files): Add tests/test-select.h.
14528         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14529         (my_select, main): New functions.
14530         * modules/pselect-tests (Files): Add tests/test-select.h,
14531         tests/macros.h, tests/signature.h.
14532         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14533         (configure.ac): Check for <sys/wait.h>.
14534
14535 2011-07-22  Bruno Haible  <bruno@clisp.org>
14536
14537         sys_select tests: Check the signature of FD_*.
14538         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14539         signature tests from here...
14540         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14541         here.
14542         * modules/sys_select-tests (Files): Add tests/signature.h.
14543
14544 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14545
14546         largefile: new module, replacing large-inode
14547         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14548         * MODULES.html.sh: Add largefile, remove large-inode.
14549         * modules/largefile, m4/largefile.m4: New files.
14550         * modules/large-inode, m4/large-inode.m4: Remove.
14551
14552         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14554         implementations that use only 32 bits to count blocks.
14555         On typical hosts with 1024-byte blocks, this fails with file
14556         systems as small as 4 TiB.  Problem reported by Herb Wartens
14557         <http://debbugs.gnu.org/9140> and this should also fix a similar
14558         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14559
14560         large-inode: New module
14561         * MODULES.html.sh: Add it.
14562         * modules/large-inode, m4/large-inode.m4: New files.
14563
14564         extensions: Enable extensions on MacOS X 10.5 and later.
14565         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14566
14567 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14568
14569         file-has-acl: use acl_extended_file_nofollow if available
14570         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14571         (acl_extended_file): New macro.
14572         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14573         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14574
14575 2011-07-21  Bruno Haible  <bruno@clisp.org>
14576
14577         Declare system functions in a way that works with C++.
14578         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14579         declare fdopendir as extern "C".
14580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14581         declare frexpl as extern "C".
14582         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14583         declare gai_strerror as extern "C".
14584         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14585         programs, declare gai_strerror as extern "C".
14586         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14587         declare getlogin_r as extern "C".
14588         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14589         as extern "C".
14590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14591         declare ldexpl as extern "C".
14592         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14593         as extern "C".
14594         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14595         program, declare getmntinfo as extern "C".
14596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14597         stpncpy as extern "C".
14598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14599         program, declare __xpg_strerror_r as extern "C".
14600         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14601         strndup as extern "C".
14602         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14603         declare memset and bzero as extern "C".
14604         Reported by Sam Steingold <sds@gnu.org>.
14605
14606 2011-07-12  Jim Meyering  <meyering@redhat.com>
14607
14608         maint.mk: prohibit inclusion of "verify.h" without use
14609         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14610
14611 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14612
14613         timer-time: A new module to check for timer_settime()
14614         * m4/timer_time.m4: Check for the posix function.
14615         * modules/timer-time: Add the new module.
14616         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14617         Mention it.
14618
14619 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14620             Bruno Haible  <bruno@clisp.org>
14621
14622         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14623         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14624         not defined, assume POSIX threads and look for pthread_sigmask in
14625         $LIBS, without changing $CPPFLAGS.
14626
14627 2011-07-19  Bruno Haible  <bruno@clisp.org>
14628
14629         strstr: Update cross-compilation guess.
14630         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14631         CPUs, guess no, in view of glibc
14632         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14633         Suggested by Eric Blake. Reported by Reuben Thomas.
14634
14635 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14636
14637         getopt-gnu: suppress core dumps from detection code
14638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14639         to suppress core dumps that may well occur on glibc systems.
14640         * modules/getopt-gnu: Depend on nocrash.
14641
14642 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14643
14644         pthread_sigmask: ensure usleep is declared
14645         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14646         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14647
14648 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14649
14650         doc: Document NonStop portability issues.
14651         * doc/posix-functions/sigaction.texi (sigaction):
14652         * doc/posix-headers/signal.texi (signal.h):
14653         Document NonStop.  See Joachim Schmitz in
14654         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14655
14656 2011-07-15  Bruno Haible  <bruno@clisp.org>
14657
14658         ffsl, ffsll: Avoid unportable behaviour.
14659         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14660
14661 2011-07-15  Bruno Haible  <bruno@clisp.org>
14662
14663         ffs: More tests.
14664         * tests/test-ffs.c (NBITS): New macro.
14665         (main): Add more tests.
14666         * tests/test-ffsl.c (NBITS): New macro.
14667         (main): Add more tests.
14668         * tests/test-ffsll.c (NBITS): New macro.
14669         (main): Add more tests.
14670
14671 2011-07-15  Eric Blake  <eblake@redhat.com>
14672
14673         ffsl, ffsll: new modules
14674         * modules/ffsl: New file.
14675         * modules/ffsll: Likewise.
14676         * m4/ffsl.m4: Likewise.
14677         * m4/ffsll.m4: Likewise.
14678         * lib/ffsl.c: Likewise.
14679         * lib/ffsl.h: Likewise.
14680         * lib/ffsll.c: Likewise.
14681         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14682         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14683         * modules/string (Makefile.am): Substitute witnesses.
14684         * lib/strings.in.h (ffsl, ffsll): Declare.
14685         * modules/ffsl-tests: New test file.
14686         * modules/ffsll-tests: Likewise.
14687         * tests/test-ffsl.c: Likewise.
14688         * tests/test-ffsll.c: Likewise.
14689         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14690         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14691         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14692
14693         ffs: fix m4 prerequisite
14694         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14695
14696         ffs: avoid undefined behavior
14697         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14698         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14699         Reported by Bruno Haible.
14700
14701 2011-07-12  Bruno Haible  <bruno@clisp.org>
14702
14703         pthread_sigmask: Rely on module 'threadlib'.
14704         * modules/pthread_sigmask (Depends-on): Add threadlib.
14705         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14706         is defined.
14707
14708 2011-07-12  Bruno Haible  <bruno@clisp.org>
14709
14710         regex: Depend on module 'strcase'.
14711         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14712
14713 2011-07-12  Jim Meyering  <meyering@redhat.com>
14714
14715         warn-on-use: fix typo in file name
14716         * modules/snippet/warn-on-use (Files): Correct file name:
14717         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14718
14719 2011-07-12  Bruno Haible  <bruno@clisp.org>
14720
14721         strings: Document module.
14722         * doc/posix-headers/strings.texi: Mention module 'strings'.
14723
14724 2011-07-12  Bruno Haible  <bruno@clisp.org>
14725
14726         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14727         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14728         (Files, Makefile.am): Update.
14729         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14730         * modules/stdlib (Depends-on): Update.
14731
14732 2011-07-12  Bruno Haible  <bruno@clisp.org>
14733
14734         * NEWS: Mention the changes.
14735
14736         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14737         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14738         (Files, Makefile.am): Update.
14739         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14740         * modules/arpa_inet (Depends-on): Update.
14741         * modules/ctype (Depends-on): Update.
14742         * modules/dirent (Depends-on): Update.
14743         * modules/fcntl-h (Depends-on): Update.
14744         * modules/glob (Depends-on): Update.
14745         * modules/iconv-h (Depends-on): Update.
14746         * modules/inttypes-incomplete (Depends-on): Update.
14747         * modules/langinfo (Depends-on): Update.
14748         * modules/locale (Depends-on): Update.
14749         * modules/math (Depends-on): Update.
14750         * modules/netdb (Depends-on): Update.
14751         * modules/poll-h (Depends-on): Update.
14752         * modules/pty (Depends-on): Update.
14753         * modules/search (Depends-on): Update.
14754         * modules/signal (Depends-on): Update.
14755         * modules/spawn (Depends-on): Update.
14756         * modules/stdio (Depends-on): Update.
14757         * modules/stdlib (Depends-on): Update.
14758         * modules/string (Depends-on): Update.
14759         * modules/strings (Depends-on): Update.
14760         * modules/sys_file (Depends-on): Update.
14761         * modules/sys_ioctl (Depends-on): Update.
14762         * modules/sys_select (Depends-on): Update.
14763         * modules/sys_socket (Depends-on): Update.
14764         * modules/sys_stat (Depends-on): Update.
14765         * modules/sys_time (Depends-on): Update.
14766         * modules/sys_times (Depends-on): Update.
14767         * modules/sys_utsname (Depends-on): Update.
14768         * modules/sys_wait (Depends-on): Update.
14769         * modules/termios (Depends-on): Update.
14770         * modules/time (Depends-on): Update.
14771         * modules/unistd (Depends-on): Update.
14772         * modules/wchar (Depends-on): Update.
14773         * modules/wctype-h (Depends-on): Update.
14774         * MODULES.html.sh (Support for building libraries and executables):
14775         Update.
14776
14777         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14778         * modules/snippet/unused-parameter: Renamed from
14779         modules/unused-parameter.
14780         (Files, Makefile.am): Update.
14781         * build-aux/snippet/unused-parameter.h: Renamed from
14782         build-aux/unused-parameter.h.
14783         * modules/selinux-h (Depends-on): Update.
14784         * modules/unistr/base (Depends-on): Update.
14785         * MODULES.html.sh (Core language properties): Update.
14786
14787         Rename module 'link-warning' to 'snippet/link-warning'.
14788         * modules/snippet/link-warning: Renamed from modules/link-warning.
14789         (Files, Makefile.am): Update.
14790         * build-aux/snippet/link-warning.h: Renamed from
14791         build-aux/link-warning.h.
14792         * MODULES.html.sh (Support for building libraries and executables):
14793         Update.
14794
14795         Rename module 'c++defs' to 'snippet/c++defs'.
14796         * modules/snippet/c++defs: Renamed from modules/c++defs.
14797         (Files, Makefile.am): Update.
14798         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14799         * modules/arpa_inet (Depends-on): Update.
14800         * modules/ctype (Depends-on): Update.
14801         * modules/dirent (Depends-on): Update.
14802         * modules/fcntl-h (Depends-on): Update.
14803         * modules/glob (Depends-on): Update.
14804         * modules/iconv-h (Depends-on): Update.
14805         * modules/langinfo (Depends-on): Update.
14806         * modules/locale (Depends-on): Update.
14807         * modules/math (Depends-on): Update.
14808         * modules/netdb (Depends-on): Update.
14809         * modules/poll-h (Depends-on): Update.
14810         * modules/pty (Depends-on): Update.
14811         * modules/search (Depends-on): Update.
14812         * modules/signal (Depends-on): Update.
14813         * modules/spawn (Depends-on): Update.
14814         * modules/stdio (Depends-on): Update.
14815         * modules/stdlib (Depends-on): Update.
14816         * modules/string (Depends-on): Update.
14817         * modules/strings (Depends-on): Update.
14818         * modules/sys_ioctl (Depends-on): Update.
14819         * modules/sys_select (Depends-on): Update.
14820         * modules/sys_socket (Depends-on): Update.
14821         * modules/sys_stat (Depends-on): Update.
14822         * modules/sys_time (Depends-on): Update.
14823         * modules/sys_wait (Depends-on): Update.
14824         * modules/termios (Depends-on): Update.
14825         * modules/time (Depends-on): Update.
14826         * modules/unistd (Depends-on): Update.
14827         * modules/wchar (Depends-on): Update.
14828         * modules/wctype-h (Depends-on): Update.
14829
14830         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14831         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14832         (Files, Makefile.am): Update.
14833         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14834         * modules/argv-iter (Depends-on): Update.
14835         * modules/arpa_inet (Depends-on): Update.
14836         * modules/dirent (Depends-on): Update.
14837         * modules/fcntl-h (Depends-on): Update.
14838         * modules/fnmatch (Depends-on): Update.
14839         * modules/getopt-posix (Depends-on): Update.
14840         * modules/glob (Depends-on): Update.
14841         * modules/iconv-h (Depends-on): Update.
14842         * modules/inttypes-incomplete (Depends-on): Update.
14843         * modules/locale (Depends-on): Update.
14844         * modules/math (Depends-on): Update.
14845         * modules/netdb (Depends-on): Update.
14846         * modules/search (Depends-on): Update.
14847         * modules/signal (Depends-on): Update.
14848         * modules/spawn (Depends-on): Update.
14849         * modules/stdio (Depends-on): Update.
14850         * modules/stdlib (Depends-on): Update.
14851         * modules/string (Depends-on): Update.
14852         * modules/strings (Depends-on): Update.
14853         * modules/sys_socket (Depends-on): Update.
14854         * modules/sys_stat (Depends-on): Update.
14855         * modules/sys_time (Depends-on): Update.
14856         * modules/sys_times (Depends-on): Update.
14857         * modules/sys_utsname (Depends-on): Update.
14858         * modules/time (Depends-on): Update.
14859         * modules/unistd (Depends-on): Update.
14860         * modules/wchar (Depends-on): Update.
14861         * MODULES.html.sh (Support for building libraries and executables):
14862         Update.
14863
14864 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14865
14866         Improvements on _Noreturn and related modules.
14867
14868         modules/_Exit-tests: test _Noreturn too
14869         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14870         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14871         (main): Use them.
14872
14873         stdnoreturn, stdnoreturn-tests: remove modules
14874         They're not needed here and a bit premature for use elsewhere.  See
14875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14876         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14877         * tests/test-stdnoreturn.c: Remove files.
14878         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14879         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14880         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14881         and using noreturn.
14882         * modules/openat, modules/sigpipe-die, modules/xalloc:
14883         * modules/xmemdup0, modules/xstrtol:
14884         Remove dependency on stdnoreturn.
14885
14886         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14887         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14888         Reparenthesize to avoid GCC warning.
14889         Support Microsoft's syntax.
14890         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14891
14892         _Noreturn-tests: remove module
14893         * modules/_Noreturn-tests: Remove.
14894         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14895         * tests/test-_Noreturn.c: Remove.
14896         * tests/test-stdnoreturn.c: Merge from the old
14897         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14898
14899 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14900
14901         _Noreturn, stdnoreturn, and related modules.
14902
14903         * top/maint.mk: Adjust to new noreturn support.
14904         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14905         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14906
14907         xalloc: use stdnoreturn.h
14908         * lib/xalloc.h: Include <stdnoreturn.h>.
14909         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14910         * modules/xalloc (Depends-on): Add stdnoreturn.
14911
14912         xstrtol: use stdnoreturn.h
14913         * lib/xstrtol.h: Include <stdnoreturn.h>.
14914         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14915         * modules/xstrtol (Depends-on): Add stdnoreturn.
14916
14917         xmemdup0: use stdnoreturn.h
14918         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14919         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14920         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14921
14922         sigpipe-die: use stdnoreturn.h
14923         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14924         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14925         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14926
14927         openat: use stdnoreturn.h
14928         * lib/openat.h: Include <stdnoreturn.h>.
14929         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14930         * modules/openat (Depends-on): Add stdnoreturn.
14931
14932         * lib/openat-die.c (openat_save_fail): Modernize comment.
14933
14934         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14935
14936         * lib/glthread/thread.h: Modernize comment.
14937
14938         obstack: use _Noreturn
14939         * lib/obstack.c (__attribute__): Remove macro.
14940         (print_and_abort): Use _Noreturn.
14941
14942         c-stack: use _Noreturn
14943         * lib/c-stack.c (die, overflow_handler, segv_handler):
14944         Use _Noreturn rather than __attribute__((noreturn)).
14945
14946         argmatch-tests, exclude_tests: use _Noreturn
14947         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14948         Remove.
14949         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14950
14951         stdlib: use _Noreturn
14952         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14953         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14954         * modules/stdlib (Depends-on): Add _Noreturn.
14955         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14956
14957         stdnoreturn-tests: new module
14958         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14959
14960         stdnoreturn: new module
14961         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14962         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14963
14964         _Noreturn-tests: new module
14965         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14966
14967         _Noreturn: new module
14968         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14969         New section, mentioning it.
14970         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14971
14972         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14973
14974 2011-07-11  Eric Blake  <eblake@redhat.com>
14975
14976         ffs: new module
14977         * modules/ffs: New file.
14978         * m4/ffs.m4: Likewise.
14979         * lib/ffs.c: Likewise.
14980         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14981         * modules/strings (Makefile.am): Substitute witness.
14982         (Depends-on): Add c++defs.
14983         * lib/strings.in.h (ffs): Declare.
14984         * modules/ffs-tests: New test file.
14985         * tests/test-ffs.c: Test new module.
14986         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14987         * doc/posix-functions/ffs.texi (ffs): Likewise.
14988
14989         regex: avoid compiler warning
14990         * lib/regex.c (includes): Include <strings.h>, for use of
14991         strcasecmp in regcomp.c.
14992         Reported by Joachim Schmitz.
14993
14994 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14995
14996         stdint: respect system's intmax_t if INTMAX_MAX
14997         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14998         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14999         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15000         long but int64_t is long long, and where we will clash with the
15001         system intmax_t if we override it.  See
15002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15003         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15004         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15005         similarly for UINTMAX_C.
15006
15007 2011-07-08  Bruno Haible  <bruno@clisp.org>
15008
15009         pthread_sigmask tests: Avoid a compiler warning.
15010         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15011         non-zero.
15012
15013         sigprocmask tests: A better way to avoid a compiler warning.
15014         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15015         (main): Complain if system() returns non-zero.
15016         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15017
15018 2011-07-08  Bruno Haible  <bruno@clisp.org>
15019
15020         pthread_sigmask: Work around IRIX bug.
15021         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15022         bug.
15023         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15024         there may be unblocked pending signals.
15025         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15026
15027 2011-07-08  Bruno Haible  <bruno@clisp.org>
15028
15029         pthread_sigmask: Work around Cygwin bug.
15030         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15031         bug.
15032         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15033         the system's pthread_sigmask function.
15034         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15035
15036 2011-07-08  Bruno Haible  <bruno@clisp.org>
15037
15038         pthread_sigmask: Work around bug in single-threaded implementation.
15039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15040         FreeBSD, HP-UX, Solaris bug.
15041         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15042         * lib/pthread_sigmask.c: Include <stddef.h>.
15043         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15044         the system's pthread_sigmask function.
15045         * modules/pthread_sigmask (configure.ac): Invoke
15046         gl_PREREQ_PTHREAD_SIGMASK.
15047         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15048         HP-UX, Solaris.
15049
15050 2011-07-08  Eric Blake  <eblake@redhat.com>
15051
15052         test-sigprocmask: avoid compiler warning
15053         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15054         * tests/test-sigprocmask.c (main): Use it to silence warning.
15055         Reported by Jim Meyering.
15056
15057         test-snprintf: avoid compiler warning
15058         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15059         * tests/test-vsnprintf.c (main): Likewise.
15060         Reported by Jim Meyering.
15061
15062 2011-07-08  Bruno Haible  <bruno@clisp.org>
15063
15064         Tests for module 'pthread_sigmask'.
15065         * modules/pthread_sigmask-tests: New file.
15066         * tests/test-pthread_sigmask1.c: New file, based on
15067         tests/test-sigprocmask.c.
15068         * tests/test-pthread_sigmask2.c: New file.
15069
15070 2011-07-08  Jim Meyering  <meyering@redhat.com>
15071
15072         test-getopt.h: avoid warning about an unused variable
15073         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15074
15075 2011-07-07  Jim Meyering  <meyering@redhat.com>
15076
15077         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15078         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15079         now that it no longer contains leading TABs.
15080         Remove unused "url=FIXME" statement.
15081
15082 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15083
15084         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15085         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15086         When gl_THREADLIB is not in use, assume that the POSIX sematics
15087         are desired.  This is better for Emacs, which uses POSIX semantics
15088         on GNUish and/or POSIXish platforms, and does not use threads at
15089         all otherwise.
15090
15091         pthread_sigmask: fix typo when testing for libraries
15092         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15093         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15094
15095 2011-07-08  Eric Blake  <eblake@redhat.com>
15096
15097         fts: introduce FTS_NOATIME
15098         * lib/fts_.h (FTS_NOATIME): New bit flag.
15099         (FTS_OPTIONMASK): Adjust.
15100         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15101         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15102
15103 2011-07-08  Bruno Haible  <bruno@clisp.org>
15104
15105         Tests for module 'thread'.
15106         * modules/thread-tests: New file.
15107         * tests/test-thread_self.c: New file.
15108         * tests/test-thread_create.cc: New file.
15109
15110 2011-07-08  Bruno Haible  <bruno@clisp.org>
15111
15112         thread: Avoid gcc warnings when using gl_thread_self().
15113         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15114         'void *'.
15115         (gl_thread_self_pointer): Update.
15116
15117 2011-07-07  Bruno Haible  <bruno@clisp.org>
15118
15119         signal-c++-tests: Check declaration of pthread_sigmask.
15120         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15121         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15122         $(LIB_PTHREAD_SIGMASK).
15123
15124 2011-07-07  Bruno Haible  <bruno@clisp.org>
15125
15126         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15127         * lib/signal.in.h (pthread_sigmask): Override if
15128         REPLACE_PTHREAD_SIGMASK is 1.
15129         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15130         REPLACE_PTHREAD_SIGMASK.
15131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15132         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15133         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15134         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15135         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15136
15137 2011-07-07  Bruno Haible  <bruno@clisp.org>
15138
15139         pthread_sigmask: Ensure declaration in <signal.h>.
15140         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15141         include <pthread.h>.
15142         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15143         problem.
15144
15145 2011-07-07  Bruno Haible  <bruno@clisp.org>
15146
15147         pthread_sigmask: Document the module.
15148         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15149
15150 2011-07-07  Bruno Haible  <bruno@clisp.org>
15151
15152         pthread_sigmask: Follow gnulib conventions.
15153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15154         gl_PTHREAD_SIGMASK.
15155         * modules/pthread_sigmask (configure.ac): Update.
15156
15157 2011-07-07  Bruno Haible  <bruno@clisp.org>
15158
15159         pthread_sigmask: Make declaration C++ safe.
15160         * lib/signal.in.h: In two special conditions, just do an #include_next.
15161         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15162         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15163         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15164         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15165         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15166         not REPLACE_PTHREAD_MASK.
15167         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15168         not REPLACE_PTHREAD_MASK.
15169         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15170
15171 2011-07-07  Bruno Haible  <bruno@clisp.org>
15172
15173         pthread_sigmask: Fix return value.
15174         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15175         * lib/pthread_sigmask.c: New file.
15176         * modules/pthread_sigmask (Files): Add it.
15177         (configure.ac): Invoke AC_LIBOBJ.
15178
15179 2011-07-07  Eric Blake  <eblake@redhat.com>
15180
15181         getopt: more portable argv creation
15182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15183         const, use char arrays rather than strings.
15184         Suggested by Paul Eggert.
15185
15186 2011-07-07  Bruno Haible  <bruno@clisp.org>
15187
15188         Tests for module 'sigprocmask'.
15189         * modules/sigprocmask-tests: New file.
15190         * tests/test-sigprocmask.c: New file.
15191
15192 2011-07-07  Bruno Haible  <bruno@clisp.org>
15193
15194         float tests: Tweak.
15195         * tests/test-float.c (main): Tweak skip message.
15196
15197 2011-07-07  Eric Blake  <eblake@redhat.com>
15198
15199         getopt: avoid compiler warning during configure
15200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15201         assigning string literals to non-const pointer.
15202
15203         getopt-gnu: avoid crash in glibc getopt
15204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15205         * tests/test-getopt.h (test_getopt): Enhance test.
15206         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15207         * doc/posix-functions/getopt.texi (getopt): Document it.
15208         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15209         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15210         Likewise.
15211
15212 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15213
15214         getopt: handle W; without long options in getopt [BZ #12922]
15215         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15216         but no long options are defined, just return 'W'.
15217
15218 2011-07-07  Bruno Haible  <bruno@clisp.org>
15219
15220         Avoid literal tabs.
15221         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15222         variable containing a tab instead of a literal tab.
15223         Reported by Jim Meyering.
15224
15225 2011-07-07  Bruno Haible  <bruno@clisp.org>
15226
15227         Comments.
15228         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15229
15230 2011-07-06  Bruno Haible  <bruno@clisp.org>
15231
15232         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15233         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15234         <winsock2.h>.
15235         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15236         lib/sys_socket.in.h.
15237         (close, gethostname): Hide declarations from <winsock2.h>.
15238         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15239         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15240         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15241         (select): Don't override if gnulib's <sys/select.h> was already
15242         included.
15243         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15244         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15245         setsockopt, shutdown, select): Tweak indentation.
15246
15247 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15248
15249         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15250         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15251         in an application that does not use the sys_select module.
15252
15253 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15254
15255         poll: do not return 0 on timeout=-1
15256         * lib/poll.c: Loop with yield if no events occurred.
15257
15258 2011-07-06  Eric Blake  <eblake@redhat.com>
15259
15260         pthread_sigmask: always replace when not using pthread
15261         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15262         replacement when using some threading other than pthread.  Fix
15263         logic bug.
15264
15265 2011-07-06  Bruno Haible  <bruno@clisp.org>
15266
15267         Comments.
15268         * m4/printf.m4: Update comments about mingw.
15269
15270 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15271
15272         sys_select: define sigset_t more portably
15273         * lib/sys_select.in.h: Always include <sys/types.h>, since
15274         we now need sigset_t and mingw defines it there.
15275         Include <signal.h> before split inclusion guard, to avoid
15276         mishaps on Solaris, whose <signal.h> eventually includes us.
15277         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15278         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15279         which come from ...
15280         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15281         gl_CHECK_TYPE_SIGSET_T.
15282         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15283         does the real work.
15284         * modules/sys_select (Depends-on): Add 'signal'.
15285
15286         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15287         Suggested by Bruno Haible.
15288
15289         pselect: Use pthread_sigmask, not sigprocmask.
15290         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15291         multithreaded apps better than sigprocmask does.
15292         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15293         sigprocmask directly.
15294
15295 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15296
15297         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15298         Don't #undef,  since we don't need any underlying pselect.
15299         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15300         (Depends-on): Add select.
15301         (Link): Add $(LIBSOCKET).
15302         These changes suggested by Bruno Haible.
15303
15304         pselect: document better
15305         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15306         * doc/posix-functions/pselect.texi (pselect): Document new module.
15307
15308         pthread_sigmask: new module
15309         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15310         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15311         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15312         This is done only as a macro; I don't know how well that'll
15313         work for C++.  Move <sys/types.h> include before the include_next,
15314         to avoid mishap on Solaris.
15315         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15316         * modules/signal (Makefile.am): Substitute the check's results.
15317         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15318
15319         test-pselect: new module
15320         * modules/pselect-tests, tests/test-pselect.c: New files.
15321         * tests/test-select.c, tests/test-sys_select-c++.cc:
15322         If TEST_PSELECT is defined, test pselect instead of testing select.
15323
15324         * tests/test-sys_select.c (sigset_t): Test for it, too.
15325         Suggested by Bruno Haible.
15326
15327 2011-07-05  Eric Blake  <eblake@redhat.com>
15328
15329         snprintf: guarantee %1$d, for libintl
15330         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15331         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15332         * doc/posix-functions/snprintf.texi (snprintf): Update.
15333         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15334         * tests/test-snprintf.c (main): Enhance test.
15335         * tests/test-vsnprintf.c (main): Likewise.
15336
15337 2011-07-05  Jim Meyering  <meyering@redhat.com>
15338
15339         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15340         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15341         per Bruno's request, to accommodate this idiom (no space after "#")
15342         even when the function is inside an #if block:
15343         char *
15344         gets (char *s)
15345         #undef gets
15346         {
15347           ...
15348         }
15349
15350 2011-07-04  Jim Meyering  <meyering@redhat.com>
15351
15352         maint: indent with spaces, not TABs, and add a rule to check this
15353         * tests/test-userspec.c: Indent with spaces, not TABs.
15354         * tests/test-argp.c: Likewise.
15355         * tests/test-c-stack2.sh: Likewise.
15356         * tests/test-parse-duration.sh: Likewise
15357         * m4/strtod.m4: Likewise.
15358         * m4/alloca.m4: Likewise.
15359         * m4/pselect.m4: Likewise.
15360         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15361
15362 2011-07-03  Jim Meyering  <meyering@redhat.com>
15363
15364         maint.mk: correct omissions in prohibit_argmatch_without_use check
15365         This rule would mistakenly report that argmatch.h is included without
15366         use even when both the argmatch and invalid_arg macro were used.
15367         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15368         of argmatch and invalid_arg.
15369
15370 2011-07-03  Bruno Haible  <bruno@clisp.org>
15371
15372         Comments about EINTR.
15373         * lib/safe-read.h: Explain the purpose of this module.
15374         * lib/safe-write.h: Likewise.
15375         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15376         module.
15377         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15378         module.
15379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15380
15381 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15382
15383         xnanosleep: Rewrite to use new dtotimespec module.
15384         It has the conversion code that used to be in xnanosleep.
15385         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15386         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15387         (TIME_T_MAX): Remove.
15388         (xnanosleep): Rewrite in terms of dtotimespec.
15389         * modules/xnanosleep (Depends-on): Add dtotimespec.
15390         Remove intprops, stdbool.
15391
15392         timespec-add, timespec-sub: new modules
15393         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15394         * lib/timespec-add.c, lib/timespec-sub.c:
15395         * modules/timespec-add, modules/timespec-sub: New files.
15396
15397         dtotimespec: new module
15398         * lib/timespec.h (dtotimespec): New decl.
15399         * lib/dtotimespec.c, modules/dtotimespec: New files.
15400
15401         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15402
15403         pselect: new module
15404         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15405         (pselect): New decls.
15406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15407         since the standard pselect decl uses 'restrict'.
15408         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15409         HAVE_PSELECT, REPLACE_PSELECT.
15410         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15411         HAVE_PSELECT, REPLACE_PSELECT.
15412         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15413
15414         sys_select: don't depend on sys_socket
15415         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15417         This fix works on GNU and GNU-like platforms, but has not been tested
15418         on native Windows.
15419         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15420         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15421         gl_HEADER_SYS_SOCKET.
15422         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15423         gl_PREREQ_SYS_H_WINSOCK2.
15424
15425 2011-06-29  Eric Blake  <eblake@redhat.com>
15426
15427         pipe2: fix C89 compile problem
15428         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15429         Reported by Bruno Haible.
15430
15431         pipe, pipe2: don't corrupt fd on error
15432         * lib/pipe.c (pipe): Leave fd unchanged on error.
15433         * lib/pipe2.c (pipe2): Likewise.
15434         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15435         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15436
15437 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15438
15439         mmap-anon: do not use regular expressions inadvertently
15440         * m4/mmap-anon.m4: Remove trailing period from strings sought
15441         in the output.
15442
15443 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15444
15445         nanosleep: fix integer overflow problem
15446         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15447         arithmetic wraps around on overflow.
15448
15449         nanosleep: simplify carrying
15450         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15451         first call to the underyling nanosleep, not for the last one.
15452         This doesn't fix any bugs, but it simplifies the computation of
15453         the remaining delay.  Found while auditing integer overflow issues.
15454
15455         dup2: remove test for existence of fcntl
15456         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15457         "#if HAVE_FCNTL", in the configure-time test program.
15458         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15459         and therefore speeds up "configure" a bit.  Found while
15460         adding the dup2 module to Emacs.
15461
15462 2011-06-24  Eric Blake  <eblake@redhat.com>
15463
15464         maint.mk: enhance useless header checks
15465         * top/maint.mk (_sc_header_without_use): Check both include
15466         styles.
15467         (sc_prohibit_assert_without_use)
15468         (sc_prohibit_close_stream_without_use)
15469         (sc_prohibit_getopt_without_use)
15470         (sc_prohibit_quotearg_without_use)
15471         (sc_prohibit_quote_without_use)
15472         (sc_prohibit_long_options_without_use)
15473         (sc_prohibit_inttostr_without_use)
15474         (sc_prohibit_ignore_value_without_use)
15475         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15476         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15477         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15478         (sc_prohibit_hash_pjw_without_use)
15479         (sc_prohibit_safe_read_without_use)
15480         (sc_prohibit_argmatch_without_use)
15481         (sc_prohibit_canonicalize_without_use)
15482         (sc_prohibit_root_dev_ino_without_use)
15483         (sc_prohibit_openat_without_use)
15484         (sc_prohibit_c_ctype_without_use)
15485         (sc_prohibit_signal_without_use)
15486         (sc_prohibit_stdio--_without_use)
15487         (sc_prohibit_stdio-safer_without_use)
15488         (sc_prohibit_strings_without_use)
15489         (sc_prohibit_intprops_without_use)
15490         (sc_prohibit_stddef_without_use)
15491         (sc_prohibit_xfreopen_without_use): Update clients.
15492
15493 2011-06-24  Jim Meyering  <meyering@redhat.com>
15494
15495         syntax-check: keep one maint.mk rule in sync with its header
15496         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15497         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15498         I prefer to avoid temporary files here, so use <(...), but that
15499         is not supported by /bin/sh, so...
15500         (SHELL): Define to /bin/bash.
15501
15502 2011-06-24  Eric Blake  <eblake@redhat.com>
15503
15504         maint.mk: update sc_prohibit_intprops_without_use
15505         * top/maint.mk (_intprops_names): Match recent changes.
15506
15507 2011-06-24  Bruno Haible  <bruno@clisp.org>
15508
15509         strerror-override: No-op tweak.
15510         * lib/strerror-override.h (strerror_override): Reorder conditions,
15511         for consistency with lib/strerror-override.c.
15512
15513 2011-06-23  Eric Blake  <eblake@redhat.com>
15514
15515         maint.mk: test further PATH_MAX issues
15516         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15517         (sc_prohibit_path_max_allocation): ...and also test alloca.
15518         Suggested by Jim Meyering.
15519
15520 2011-06-22  Eric Blake  <eblake@redhat.com>
15521
15522         maint.mk: add syntax-check to avoid char[PATH_MAX]
15523         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15524
15525         stat: be robust to PATH_MAX definition
15526         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15527         * modules/stat (Depends-on): Add verify.
15528
15529         link: work around IRIX bug
15530         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15531         * lib/link.c (rpl_link): Work around it.
15532         * tests/test-link.h (test_link): Enhance test.
15533         * doc/posix-functions/link.texi (link): Document the bug.
15534
15535         getopt: silence clang warning
15536         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15537         dereference.
15538         Reported by Gustavo Martin Domato.
15539
15540 2011-06-22  Jim Meyering  <meyering@redhat.com>
15541
15542         bootstrap: do not insert a blank line into each .gitignore file
15543         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15544
15545 2011-06-21  Eric Blake  <eblake@redhat.com>
15546
15547         perror: test for output mismatch
15548         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15549         perror on IRIX.
15550
15551         strerror_r: fix OpenBSD behavior on out-of-range
15552         * lib/strerror_r.c (strerror_r): Always use maximal string.
15553         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15554
15555         strerror_r: fix OpenBSD behavior on 0
15556         * lib/strerror-override.c (strerror_override): Also override 0
15557         when needed.
15558         * lib/strerror-override.h (strerror_override): Likewise.
15559         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15560         earlier.
15561         * lib/strerror_r.c (strerror_r): Likewise.
15562         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15563         behavior...
15564         (gl_FUNC_STRERROR_0): ...into new macro.
15565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15566         is overridden.
15567         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15568         * modules/strerror-override (Files): Add strerror.m4.
15569         (configure.ac): Also provide override for 0 when needed.
15570         * doc/posix-functions/strerror.texi (strerror): Document this.
15571         * doc/posix-functions/perror.texi (perror): Likewise.
15572
15573         perror: adjust array size
15574         * modules/perror (Depends-on): Add strerror-override.
15575         * lib/perror.c (perror): Use it to avoid magic number.
15576
15577         strerror-override: reduce size
15578         * lib/strerror-override.c (strerror_override): Use fewer lines.
15579
15580 2011-06-20  Bruno Haible  <bruno@clisp.org>
15581
15582         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15583         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15584
15585 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15586
15587         alloca: port to compilers that can optimize like GCC 4.6.0
15588         * lib/alloca.c (find_stack_direction): New signature, taken from
15589         Autoconf git.  This works with GCC 4.6.0.  This code should never
15590         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15591         be used with other compilers that optimize as well as GCC 4.6.0 does.
15592         (alloca): Adjust to new signature.
15593         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15594         New macro, which patches Autoconf in a similar way.
15595
15596         c-stack: stop worrying about stack direction
15597         * lib/c-stack.c (find_stack_direction): Remove.
15598         (segv_handler): Don't worry about stack direction growth, as it's
15599         too much of a pain to configure this correctly, given how compilers
15600         are optimizing-away our stack-growth detection code.  Instead, assume
15601         that any access to just before or just after the stack is OK.
15602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15603         Don't require AC_FUNC_ALLOCA; no longer needed.
15604
15605 2011-06-20  Eric Blake  <eblake@redhat.com>
15606
15607         test-stat: don't allocate PATH_MAX bytes
15608         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15609         PATH_MAX-sized buffer.
15610         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15611         * modules/stat-tests (Depends-on): Likewise.
15612         * tests/test-fstatat.c (includes): Drop pathmax.h.
15613         * tests/test-stat.c (includes): Likewise.
15614         Reported by Bruno Haible.
15615
15616 2011-06-20  Bruno Haible  <bruno@clisp.org>
15617
15618         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15619         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15620         * lib/float.c: New file.
15621         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15622         REPLACE_FLOAT_LDBL.
15623         * modules/float (Files): Add lib/float.c.
15624         (configure.ac): Invoke AC_LIBOBJ.
15625         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15626
15627 2011-06-20  Bruno Haible  <bruno@clisp.org>
15628
15629         Tests for module 'float'.
15630         * modules/float-tests: New file.
15631         * tests/test-float.c: New file.
15632
15633 2011-06-19  Bruno Haible  <bruno@clisp.org>
15634
15635         isinf: Coding style.
15636         * lib/isinf.c: Use GNU coding style.
15637
15638 2011-06-19  Bruno Haible  <bruno@clisp.org>
15639
15640         linkat test: Avoid test failure on AIX 7.1.
15641         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15642         * tests/test-link.h (test_link): Likewise.
15643
15644 2011-06-19  Bruno Haible  <bruno@clisp.org>
15645
15646         pread test: Avoid test failure on OpenBSD 4.9.
15647         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15648
15649 2011-06-19  Bruno Haible  <bruno@clisp.org>
15650
15651         sprintf-posix: Fix test failure on AIX 7.1.
15652         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15653         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15654         on AIX.
15655         * doc/posix-functions/fprintf.texi: Likewise.
15656         * doc/posix-functions/printf.texi: Likewise.
15657         * doc/posix-functions/snprintf.texi: Likewise.
15658         * doc/posix-functions/sprintf.texi: Likewise.
15659         * doc/posix-functions/vdprintf.texi: Likewise.
15660         * doc/posix-functions/vfprintf.texi: Likewise.
15661         * doc/posix-functions/vprintf.texi: Likewise.
15662         * doc/posix-functions/vsnprintf.texi: Likewise.
15663         * doc/posix-functions/vsprintf.texi: Likewise.
15664
15665 2011-06-19  Bruno Haible  <bruno@clisp.org>
15666
15667         roundl-ieee: Fix test failure on AIX 7.1.
15668         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15669         * doc/posix-functions/roundl.texi: Mention problem with negative
15670         arguments.
15671
15672 2011-06-19  Bruno Haible  <bruno@clisp.org>
15673
15674         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15675         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15676         * doc/posix-functions/round.texi: Mention problem with negative
15677         arguments.
15678         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15679
15680 2011-06-19  Bruno Haible  <bruno@clisp.org>
15681
15682         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15684         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15685         * doc/posix-functions/roundf.texi: Mention problem with negative
15686         arguments.
15687         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15688
15689 2011-06-19  Bruno Haible  <bruno@clisp.org>
15690
15691         ceilf-ieee: Work around bug on MacOS X 10.5.
15692         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15693
15694         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15695         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15696         IEEE compliant, avoid compiler optimizations.
15697         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15698         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15699         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15700         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15701         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15702         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15703         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15704         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15705         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15706         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15707
15708 2011-06-19  Bruno Haible  <bruno@clisp.org>
15709
15710         ceilf-ieee: Work around bug on AIX 7.1.
15711         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15712         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15713
15714 2011-06-19  Bruno Haible  <bruno@clisp.org>
15715
15716         ceil-ieee: Work around bug on AIX 7.1.
15717         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15718         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15719
15720 2011-06-18  Bruno Haible  <bruno@clisp.org>
15721
15722         fsync test: Avoid test failure on MacOS X and AIX.
15723         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15724         EINVAL.
15725
15726 2011-06-18  Bruno Haible  <bruno@clisp.org>
15727
15728         openat, fdopendir tests: Fix link errors.
15729         * modules/openat-tests (Depends-on): Add progname.
15730         * modules/fdopendir-tests (Depends-on): Likewise.
15731         * tests/test-fchownat.c: Include progname.h.
15732         (main): Call set_program_name.
15733         * tests/test-fstatat.c: Include progname.h.
15734         (main): Call set_program_name.
15735         * tests/test-mkdirat.c: Include progname.h.
15736         (main): Call set_program_name.
15737         * tests/test-openat.c: Include progname.h.
15738         (main): Call set_program_name.
15739         * tests/test-unlinkat.c: Include progname.h.
15740         (main): Call set_program_name.
15741         * tests/test-fdopendir.c: Include progname.h.
15742         (main): Call set_program_name.
15743
15744 2011-06-18  Bruno Haible  <bruno@clisp.org>
15745
15746         Doc update.
15747         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15748         HP-UX.
15749         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15750
15751 2011-06-18  Bruno Haible  <bruno@clisp.org>
15752
15753         getcwd tests: Avoid compilation error on HP-UX 11.31.
15754         * modules/getcwd-tests (Depends-on): Add pathmax.
15755         * tests/test-getcwd.c: Include pathmax.h.
15756
15757 2011-06-18  Bruno Haible  <bruno@clisp.org>
15758
15759         isfinite, isinf: Fix link error on AIX 6 and 7.
15760         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15761         needed, also test the macro with a 'float' argument.
15762         * m4/isinf.m4 (gl_ISINF): Likewise.
15763
15764 2011-06-18  Bruno Haible  <bruno@clisp.org>
15765
15766         getloadavg: Don't clobber LIBS. Regression from previous commit.
15767         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15768         AC_CHECK_LIB from here...
15769         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15770         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15771         gl_func_getloadavg_done.
15772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15773
15774 2011-06-18  Bruno Haible  <bruno@clisp.org>
15775
15776         clean-temp: Improve documentation.
15777         * lib/clean-temp.h: Explain better how to use this module.
15778         Reported by John Darrington <john@darrington.wattle.id.au>.
15779
15780 2011-06-17  Bruno Haible  <bruno@clisp.org>
15781
15782         pread, pwrite: Avoid cc warning on AIX.
15783         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15784         (pwrite): Likewise.
15785
15786 2011-06-17  Bruno Haible  <bruno@clisp.org>
15787
15788         spawn-pipe tests: Fix link error.
15789         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15791
15792 2011-06-17  Bruno Haible  <bruno@clisp.org>
15793
15794         Tests: Remove unnecessary dependency.
15795         * modules/canonicalize-tests (Depends-on): Remove progname.
15796         * modules/chown-tests (Depends-on): Likewise.
15797         * modules/dirname-tests (Depends-on): Likewise.
15798         * modules/fdopendir-tests (Depends-on): Likewise.
15799         * modules/fdutimensat-tests (Depends-on): Likewise.
15800         * modules/hash-tests (Depends-on): Likewise.
15801         * modules/lchown-tests (Depends-on): Likewise.
15802         * modules/linkat-tests (Depends-on): Likewise.
15803         * modules/renameat-tests (Depends-on): Likewise.
15804         * modules/spawn-pipe-tests (Depends-on): Likewise.
15805         * modules/utimensat-tests (Depends-on): Likewise.
15806
15807 2011-06-17  Bruno Haible  <bruno@clisp.org>
15808
15809         spawn-pipe tests: Fix link error.
15810         * tests/test-spawn-pipe-child.c: Undefine fflush.
15811
15812 2011-06-17  Bruno Haible  <bruno@clisp.org>
15813
15814         Fix tests link errors.
15815         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15816         * modules/chown-tests (Makefile.am): Don't link test-chown with
15817         LIBINTL.
15818         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15819         LIBINTL.
15820         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15821         LIBINTL.
15822         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15823         LIBINTL.
15824
15825 2011-06-16  Bruno Haible  <bruno@clisp.org>
15826
15827         crypto/gc-sha1: Fix recent regression.
15828         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15829         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15830
15831         crypto/gc-md5: Fix recent regression.
15832         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15833
15834         crypto/gc-md4: Fix recent regression.
15835         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15836         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15837
15838         crypto/gc-arctwo: Fix recent regression.
15839         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15840         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15841
15842         crypto/gc-rijndael: Fix recent regression.
15843         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15844         (configure.ac): Invoke AC_LIBOBJ here.
15845         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15847
15848         crypto/gc-hmac-sha1: Fix recent regression.
15849         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15850         (configure.ac): Invoke AC_LIBOBJ here.
15851         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15853
15854         crypto/gc-hmac-md5: Fix recent regression.
15855         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15856         (configure.ac): Invoke AC_LIBOBJ here.
15857         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15859
15860         crypto/gc-des: Fix recent regression.
15861         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15862         (configure.ac): Invoke AC_LIBOBJ here.
15863         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15865
15866         crypto/gc-arcfour: Fix recent regression.
15867         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15868         (configure.ac): Invoke AC_LIBOBJ here.
15869         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15871
15872 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15873
15874         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15875         After the 2011-05-21 change, this macro requires
15876         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15877         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15878
15879 2011-06-16  Bruno Haible  <bruno@clisp.org>
15880
15881         fprintftime: Move AC_LIBOBJ invocations to module description.
15882         * m4/fprintftime.m4: Remove file.
15883         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15884         (configure.ac): Remove gl_FPRINTFTIME call.
15885         (Makefile.am): Augment lib_SOURCES.
15886         Reported by Jim Meyering.
15887
15888 2011-06-16  Bruno Haible  <bruno@clisp.org>
15889
15890         tmpfile-safer: Finish 2011-05-23 commit.
15891         * m4/stdio-safer.m4: Really remove file.
15892         Reported by Jim Meyering.
15893
15894 2011-06-16  Bruno Haible  <bruno@clisp.org>
15895
15896         syntax-check: Fix typo.
15897         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15898         printf-posix.m4.
15899         Reported by Jim Meyering.
15900
15901 2011-06-13  Jim Meyering  <meyering@redhat.com>
15902
15903         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15904         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15905
15906 2011-05-23  Bruno Haible  <bruno@clisp.org>
15907
15908         yesno: Move AC_LIBOBJ invocations to module description.
15909         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15910         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15911
15912 2011-05-23  Bruno Haible  <bruno@clisp.org>
15913
15914         xstrtol: Move AC_LIBOBJ invocations to module description.
15915         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15916         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15917
15918 2011-05-23  Bruno Haible  <bruno@clisp.org>
15919
15920         xstrtold: Move AC_LIBOBJ invocations to module description.
15921         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15922         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15923
15924 2011-05-23  Bruno Haible  <bruno@clisp.org>
15925
15926         xstrtod: Move AC_LIBOBJ invocations to module description.
15927         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15928         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15929
15930 2011-05-23  Bruno Haible  <bruno@clisp.org>
15931
15932         xnanosleep: Move AC_LIBOBJ invocations to module description.
15933         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15934         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15935
15936 2011-05-23  Bruno Haible  <bruno@clisp.org>
15937
15938         xgetcwd: Move AC_LIBOBJ invocations to module description.
15939         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15940         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15941
15942 2011-05-23  Bruno Haible  <bruno@clisp.org>
15943
15944         xalloc: Move AC_LIBOBJ invocations to module description.
15945         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15946         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15947
15948 2011-05-23  Bruno Haible  <bruno@clisp.org>
15949
15950         write-any-file: Move AC_LIBOBJ invocations to module description.
15951         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15952         invocation.
15953         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15954
15955 2011-05-23  Bruno Haible  <bruno@clisp.org>
15956
15957         utimens: Move AC_LIBOBJ invocations to module description.
15958         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15959         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15960
15961 2011-05-23  Bruno Haible  <bruno@clisp.org>
15962
15963         utimecmp: Move AC_LIBOBJ invocations to module description.
15964         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15965         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15966
15967 2011-05-23  Bruno Haible  <bruno@clisp.org>
15968
15969         userspec: Move AC_LIBOBJ invocations to module description.
15970         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15971         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15972
15973 2011-05-23  Bruno Haible  <bruno@clisp.org>
15974
15975         unlinkdir: Move AC_LIBOBJ invocations to module description.
15976         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15977         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15978
15979 2011-05-23  Bruno Haible  <bruno@clisp.org>
15980
15981         unistd-safer: Move AC_LIBOBJ invocations to module description.
15982         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15983         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15984
15985 2011-05-23  Bruno Haible  <bruno@clisp.org>
15986
15987         tempname: Move AC_LIBOBJ invocations to module description.
15988         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15989         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15990
15991 2011-05-23  Bruno Haible  <bruno@clisp.org>
15992
15993         strftime: Move AC_LIBOBJ invocations to module description.
15994         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15995         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15996
15997 2011-05-23  Bruno Haible  <bruno@clisp.org>
15998
15999         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16000         * m4/stdlib-safer.m4: Remove file.
16001         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16002         (configure.ac): Remove gl_STDLIB_SAFER call.
16003         (Makefile.am): Augment lib_SOURCES.
16004
16005 2011-05-23  Bruno Haible  <bruno@clisp.org>
16006
16007         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16008         * m4/stdio-safer.m4: Remove file.
16009         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16010         (configure.ac): Remove gl_TMPFILE_SAFER call.
16011         (Makefile.am): Augment lib_SOURCES.
16012
16013 2011-05-23  Bruno Haible  <bruno@clisp.org>
16014
16015         popen-safer: Move AC_LIBOBJ invocations to module description.
16016         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16017         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16018         (configure.ac): Remove gl_POPEN_SAFER call.
16019         (Makefile.am): Augment lib_SOURCES.
16020
16021 2011-05-23  Bruno Haible  <bruno@clisp.org>
16022
16023         freopen-safer: Move AC_LIBOBJ invocations to module description.
16024         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16025         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16026         (configure.ac): Remove gl_FREOPEN_SAFER call.
16027         (Makefile.am): Augment lib_SOURCES.
16028
16029 2011-05-23  Bruno Haible  <bruno@clisp.org>
16030
16031         fopen-safer: Move AC_LIBOBJ invocations to module description.
16032         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16033         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16034         (configure.ac): Remove gl_FOPEN_SAFER call.
16035         (Makefile.am): Augment lib_SOURCES.
16036
16037 2011-05-23  Bruno Haible  <bruno@clisp.org>
16038
16039         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16040         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16041         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16042
16043 2011-05-23  Bruno Haible  <bruno@clisp.org>
16044
16045         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16046         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16047         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16048
16049 2011-05-23  Bruno Haible  <bruno@clisp.org>
16050
16051         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16052         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16053         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16054
16055 2011-05-23  Bruno Haible  <bruno@clisp.org>
16056
16057         settime: Move AC_LIBOBJ invocations to module description.
16058         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16059         * modules/settime (Makefile.am): Augment lib_SOURCES.
16060
16061 2011-05-23  Bruno Haible  <bruno@clisp.org>
16062
16063         savedir: Move AC_LIBOBJ invocations to module description.
16064         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16065         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16066
16067 2011-05-23  Bruno Haible  <bruno@clisp.org>
16068
16069         save-cwd: Move AC_LIBOBJ invocations to module description.
16070         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16071         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16072
16073 2011-05-23  Bruno Haible  <bruno@clisp.org>
16074
16075         same: Move AC_LIBOBJ invocations to module description.
16076         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16077         * modules/same (Makefile.am): Augment lib_SOURCES.
16078
16079 2011-05-23  Bruno Haible  <bruno@clisp.org>
16080
16081         safe-write: Move AC_LIBOBJ invocations to module description.
16082         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16083         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16084         instead of gl_SAFE_WRITE.
16085         (Makefile.am): Augment lib_SOURCES.
16086
16087 2011-05-23  Bruno Haible  <bruno@clisp.org>
16088
16089         safe-read: Move AC_LIBOBJ invocations to module description.
16090         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16091         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16092         of gl_SAFE_READ.
16093         (Makefile.am): Augment lib_SOURCES.
16094
16095 2011-05-23  Bruno Haible  <bruno@clisp.org>
16096
16097         safe-alloc: Move AC_LIBOBJ invocations to module description.
16098         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16099         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16100
16101 2011-05-23  Bruno Haible  <bruno@clisp.org>
16102
16103         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16104         * m4/rijndael.m4: Remove file.
16105         * modules/crypto/rijndael (Files): Remove it.
16106         (configure.ac): Remove gl_RIJNDAEL call.
16107         (Makefile.am): Augment lib_SOURCES.
16108
16109 2011-05-23  Bruno Haible  <bruno@clisp.org>
16110
16111         readtokens: Move AC_LIBOBJ invocations to module description.
16112         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16113         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16114
16115 2011-05-23  Bruno Haible  <bruno@clisp.org>
16116
16117         read-file: Move AC_LIBOBJ invocations to module description.
16118         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16119         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16120         of gl_FUNC_READ_FILE.
16121         (Makefile.am): Augment lib_SOURCES.
16122
16123 2011-05-23  Bruno Haible  <bruno@clisp.org>
16124
16125         quotearg: Move AC_LIBOBJ invocations to module description.
16126         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16127         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16128
16129 2011-05-23  Bruno Haible  <bruno@clisp.org>
16130
16131         quote: Move AC_LIBOBJ invocations to module description.
16132         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16133         * modules/quote (Makefile.am): Augment lib_SOURCES.
16134
16135 2011-05-23  Bruno Haible  <bruno@clisp.org>
16136
16137         posixver: Move AC_LIBOBJ invocations to module description.
16138         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16139         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16140
16141 2011-05-23  Bruno Haible  <bruno@clisp.org>
16142
16143         posixtm: Move AC_LIBOBJ invocations to module description.
16144         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16145         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16146
16147 2011-05-23  Bruno Haible  <bruno@clisp.org>
16148
16149         physmem: Move AC_LIBOBJ invocations to module description.
16150         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16151         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16152
16153 2011-05-23  Bruno Haible  <bruno@clisp.org>
16154
16155         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16156         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16157         invocation.
16158         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16159
16160 2011-05-23  Bruno Haible  <bruno@clisp.org>
16161
16162         mpsort: Move AC_LIBOBJ invocations to module description.
16163         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16164         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16165
16166 2011-05-23  Bruno Haible  <bruno@clisp.org>
16167
16168         modechange: Move AC_LIBOBJ invocations to module description.
16169         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16170         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16171
16172 2011-05-23  Bruno Haible  <bruno@clisp.org>
16173
16174         mkdir-p: Move AC_LIBOBJ invocations to module description.
16175         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16176         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16177
16178 2011-05-23  Bruno Haible  <bruno@clisp.org>
16179
16180         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16181         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16182         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16183
16184 2011-05-23  Bruno Haible  <bruno@clisp.org>
16185
16186         mgetgroups: Move AC_LIBOBJ invocations to module description.
16187         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16188         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16189
16190 2011-05-23  Bruno Haible  <bruno@clisp.org>
16191
16192         memxor: Move AC_LIBOBJ invocations to module description.
16193         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16194         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16195
16196 2011-05-23  Bruno Haible  <bruno@clisp.org>
16197
16198         memcoll: Move AC_LIBOBJ invocations to module description.
16199         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16200         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16201
16202 2011-05-23  Bruno Haible  <bruno@clisp.org>
16203
16204         memcasecmp: Move AC_LIBOBJ invocations to module description.
16205         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16206         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16207
16208 2011-05-23  Bruno Haible  <bruno@clisp.org>
16209
16210         crypto/md5: Move AC_LIBOBJ invocations to module description.
16211         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16212         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16213
16214 2011-05-23  Bruno Haible  <bruno@clisp.org>
16215
16216         crypto/md4: Move AC_LIBOBJ invocations to module description.
16217         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16218         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16219
16220 2011-05-23  Bruno Haible  <bruno@clisp.org>
16221
16222         crypto/md2: Move AC_LIBOBJ invocations to module description.
16223         * m4/md2.m4: Remove file.
16224         * modules/crypto/md2 (Files): Remove it.
16225         (configure.ac): Remove gl_MD2 call.
16226         (Makefile.am): Augment lib_SOURCES.
16227
16228 2011-05-23  Bruno Haible  <bruno@clisp.org>
16229
16230         long-options: Move AC_LIBOBJ invocations to module description.
16231         * m4/long-options.m4: Remove file.
16232         * modules/long-options (Files): Remove it.
16233         (configure.ac): Remove gl_LONG_OPTIONS call.
16234         (Makefile.am): Augment lib_SOURCES.
16235
16236 2011-05-23  Bruno Haible  <bruno@clisp.org>
16237
16238         i-ring: Move AC_LIBOBJ invocations to module description.
16239         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16240         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16241
16242 2011-05-23  Bruno Haible  <bruno@clisp.org>
16243
16244         idcache: Move AC_LIBOBJ invocations to module description.
16245         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16246         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16247
16248 2011-05-23  Bruno Haible  <bruno@clisp.org>
16249
16250         human: Move AC_LIBOBJ invocations to module description.
16251         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16252         * modules/human (Makefile.am): Augment lib_SOURCES.
16253
16254 2011-05-23  Bruno Haible  <bruno@clisp.org>
16255
16256         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16257         * m4/hmac-sha1.m4: Remove file.
16258         * modules/crypto/hmac-sha1 (Files): Remove it.
16259         (configure.ac): Remove gl_HMAC_SHA1 call.
16260         (Makefile.am): Augment lib_SOURCES.
16261
16262 2011-05-23  Bruno Haible  <bruno@clisp.org>
16263
16264         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16265         * m4/hmac-md5.m4: Remove file.
16266         * modules/crypto/hmac-md5 (Files): Remove it.
16267         (configure.ac): Remove gl_HMAC_MD5 call.
16268         (Makefile.am): Augment lib_SOURCES.
16269
16270 2011-05-23  Bruno Haible  <bruno@clisp.org>
16271
16272         hash: Move AC_LIBOBJ invocations to module description.
16273         * m4/hash.m4: Remove file.
16274         * modules/hash (Files): Remove it.
16275         (configure.ac): Remove gl_HASH call.
16276         (Makefile.am): Augment lib_SOURCES.
16277
16278 2011-05-23  Bruno Haible  <bruno@clisp.org>
16279
16280         hard-locale: Move AC_LIBOBJ invocations to module description.
16281         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16282         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16283
16284 2011-05-23  Bruno Haible  <bruno@clisp.org>
16285
16286         getugroups: Move AC_LIBOBJ invocations to module description.
16287         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16288         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16289
16290 2011-05-23  Bruno Haible  <bruno@clisp.org>
16291
16292         gettime: Move AC_LIBOBJ invocations to module description.
16293         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16294         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16295
16296 2011-05-23  Bruno Haible  <bruno@clisp.org>
16297
16298         getndelim2: Move AC_LIBOBJ invocations to module description.
16299         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16300         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16301
16302 2011-05-23  Bruno Haible  <bruno@clisp.org>
16303
16304         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16305         * m4/gc-pbkdf2-sha1.m4: Remove file.
16306         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16307         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16308         (Makefile.am): Augment lib_SOURCES.
16309
16310 2011-05-23  Bruno Haible  <bruno@clisp.org>
16311
16312         fts: Move AC_LIBOBJ invocations to module description.
16313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16314         * modules/fts (configure.ac): ... to here.
16315
16316 2011-05-23  Bruno Haible  <bruno@clisp.org>
16317
16318         file-type: Move AC_LIBOBJ invocations to module description.
16319         * m4/file-type.m4: Remove file.
16320         * modules/file-type (Files): Remove it.
16321         (configure.ac): Remove gl_FILE_TYPE call.
16322         (Makefile.am): Augment lib_SOURCES.
16323
16324 2011-05-23  Bruno Haible  <bruno@clisp.org>
16325
16326         filenamecat*: Respect rules for use of AC_LIBOBJ.
16327         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16328         Remove AC_LIBOBJ invocation.
16329         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16330         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16331
16332 2011-05-23  Bruno Haible  <bruno@clisp.org>
16333
16334         filemode: Move AC_LIBOBJ invocations to module description.
16335         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16336         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16337
16338 2011-05-23  Bruno Haible  <bruno@clisp.org>
16339
16340         openat-safer: Move AC_LIBOBJ invocations to module description.
16341         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16342         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16343
16344 2011-05-23  Bruno Haible  <bruno@clisp.org>
16345
16346         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16347         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16348         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16349
16350 2011-05-23  Bruno Haible  <bruno@clisp.org>
16351
16352         exclude: Move AC_LIBOBJ invocations to module description.
16353         * m4/exclude.m4: Remove file.
16354         * modules/exclude (Files): Remove it.
16355         (configure.ac): Remove gl_EXCLUDE call.
16356         (Makefile.am): Augment lib_SOURCES.
16357
16358 2011-05-23  Bruno Haible  <bruno@clisp.org>
16359
16360         dirname*: Respect rules for use of AC_LIBOBJ.
16361         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16362         invocations.
16363         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16364         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16365
16366 2011-05-23  Bruno Haible  <bruno@clisp.org>
16367
16368         dirent-safer: Move AC_LIBOBJ invocations to module description.
16369         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16370         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16371
16372 2011-05-23  Bruno Haible  <bruno@clisp.org>
16373
16374         crypto/des: Move AC_LIBOBJ invocations to module description.
16375         * m4/des.m4: Remove file.
16376         * modules/crypto/des (Files): Remove it.
16377         (configure.ac): Remove gl_DES call.
16378         (Makefile.am): Augment lib_SOURCES.
16379
16380 2011-05-23  Bruno Haible  <bruno@clisp.org>
16381
16382         cycle-check: Move AC_LIBOBJ invocations to module description.
16383         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16384         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16385
16386 2011-05-23  Bruno Haible  <bruno@clisp.org>
16387
16388         c-strtold: Move AC_LIBOBJ invocations to module description.
16389         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16390         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16391
16392 2011-05-23  Bruno Haible  <bruno@clisp.org>
16393
16394         c-strtod: Move AC_LIBOBJ invocations to module description.
16395         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16396         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16397
16398 2011-05-23  Bruno Haible  <bruno@clisp.org>
16399
16400         crc: Move AC_LIBOBJ invocations to module description.
16401         * m4/crc.m4: Remove file.
16402         * modules/crc (Files): Remove it.
16403         (configure.ac): Remove gl_CRC call.
16404         (Makefile.am): Augment lib_SOURCES.
16405
16406 2011-05-23  Bruno Haible  <bruno@clisp.org>
16407
16408         close-stream: Move AC_LIBOBJ invocations to module description.
16409         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16410         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16411
16412 2011-05-23  Bruno Haible  <bruno@clisp.org>
16413
16414         closeout: Move AC_LIBOBJ invocations to module description.
16415         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16416         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16417
16418 2011-05-23  Bruno Haible  <bruno@clisp.org>
16419
16420         closein: Move AC_LIBOBJ invocations to module description.
16421         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16422         * modules/closein (Makefile.am): Augment lib_SOURCES.
16423
16424 2011-05-23  Bruno Haible  <bruno@clisp.org>
16425
16426         cloexec: Move AC_LIBOBJ invocations to module description.
16427         * m4/cloexec.m4: Remove file.
16428         * modules/cloexec (Files): Remove it.
16429         (configure.ac): Remove gl_CLOEXEC call.
16430         (Makefile.am): Augment lib_SOURCES.
16431
16432 2011-05-23  Bruno Haible  <bruno@clisp.org>
16433
16434         check-version: Move AC_LIBOBJ invocations to module description.
16435         * m4/check-version.m4: Remove file.
16436         * modules/check-version (Files): Remove it.
16437         (configure.ac): Remove gl_CHECK_VERSION call.
16438         (Makefile.am): Augment lib_SOURCES.
16439
16440 2011-05-23  Bruno Haible  <bruno@clisp.org>
16441
16442         chdir-safer: Move AC_LIBOBJ invocations to module description.
16443         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16444         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16445
16446 2011-05-23  Bruno Haible  <bruno@clisp.org>
16447
16448         canonicalize: Move AC_LIBOBJ invocations to module description.
16449         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16450         AC_LIBOBJ invocation.
16451         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16452
16453 2011-05-23  Bruno Haible  <bruno@clisp.org>
16454
16455         canon-host: Move AC_LIBOBJ invocations to module description.
16456         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16457         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16458         instead of gl_CANON_HOST.
16459         (Makefile.am): Augment lib_SOURCES.
16460
16461 2011-05-23  Bruno Haible  <bruno@clisp.org>
16462
16463         backupfile: Move AC_LIBOBJ invocations to module description.
16464         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16465         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16466
16467 2011-05-23  Bruno Haible  <bruno@clisp.org>
16468
16469         argmatch: Move AC_LIBOBJ invocations to module description.
16470         * m4/argmatch.m4: Remove file.
16471         * modules/argmatch (Files): Remove it.
16472         (configure.ac): Remove gl_ARGMATCH call.
16473         (Makefile.am): Augment lib_SOURCES.
16474
16475 2011-05-23  Bruno Haible  <bruno@clisp.org>
16476
16477         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16478         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16479         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16480
16481 2011-05-23  Bruno Haible  <bruno@clisp.org>
16482
16483         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16484         * m4/arcfour.m4: Remove file.
16485         * modules/crypto/arcfour (Files): Remove it.
16486         (configure.ac): Remove gl_ARCFOUR call.
16487         (Makefile.am): Augment lib_SOURCES.
16488
16489 2011-05-22  Bruno Haible  <bruno@clisp.org>
16490
16491         write: Move AC_LIBOBJ invocations to module description.
16492         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16493         * modules/write (configure.ac): ... to here.
16494
16495 2011-05-22  Bruno Haible  <bruno@clisp.org>
16496
16497         wmemset: Move AC_LIBOBJ invocations to module description.
16498         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16499         here...
16500         * modules/wmemset (configure.ac): ... to here.
16501
16502 2011-05-22  Bruno Haible  <bruno@clisp.org>
16503
16504         wmemmove: Move AC_LIBOBJ invocations to module description.
16505         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16506         here...
16507         * modules/wmemmove (configure.ac): ... to here.
16508
16509 2011-05-22  Bruno Haible  <bruno@clisp.org>
16510
16511         wmemcpy: Move AC_LIBOBJ invocations to module description.
16512         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16513         here...
16514         * modules/wmemcpy (configure.ac): ... to here.
16515
16516 2011-05-22  Bruno Haible  <bruno@clisp.org>
16517
16518         wmemcmp: Move AC_LIBOBJ invocations to module description.
16519         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16520         here...
16521         * modules/wmemcmp (configure.ac): ... to here.
16522
16523 2011-05-22  Bruno Haible  <bruno@clisp.org>
16524
16525         wmemchr: Move AC_LIBOBJ invocations to module description.
16526         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16527         here...
16528         * modules/wmemchr (configure.ac): ... to here.
16529
16530 2011-05-22  Bruno Haible  <bruno@clisp.org>
16531
16532         wcswidth: Move AC_LIBOBJ invocations to module description.
16533         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16534         here...
16535         * modules/wcswidth (configure.ac): ... to here.
16536
16537 2011-05-22  Bruno Haible  <bruno@clisp.org>
16538
16539         wcwidth: Respect rules for use of AC_LIBOBJ.
16540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16541         invocation from here...
16542         * modules/wcwidth (configure.ac): ... to here.
16543         (Depends-on): Update conditions.
16544
16545 2011-05-22  Bruno Haible  <bruno@clisp.org>
16546
16547         wctype: Move AC_LIBOBJ invocations to module description.
16548         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16549         invocation from here...
16550         * modules/wctype (configure.ac): ... to here.
16551         (Depends-on): Update conditions.
16552
16553 2011-05-22  Bruno Haible  <bruno@clisp.org>
16554
16555         wctrans: Move AC_LIBOBJ invocations to module description.
16556         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16557         invocation from here...
16558         * modules/wctrans (configure.ac): ... to here.
16559
16560 2011-05-22  Bruno Haible  <bruno@clisp.org>
16561
16562         wctomb: Move AC_LIBOBJ invocations to module description.
16563         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16564         invocations from here...
16565         * modules/wctomb (configure.ac): ... to here.
16566
16567 2011-05-22  Bruno Haible  <bruno@clisp.org>
16568
16569         wctob: Move AC_LIBOBJ invocations to module description.
16570         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16571         gl_PREREQ_WCTOB invocations from here...
16572         * modules/wctob (configure.ac): ... to here.
16573         (Depends-on): Update conditions.
16574
16575 2011-05-22  Bruno Haible  <bruno@clisp.org>
16576
16577         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16578         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16579         here...
16580         * modules/wcsxfrm (configure.ac): ... to here.
16581
16582 2011-05-22  Bruno Haible  <bruno@clisp.org>
16583
16584         wcstok: Move AC_LIBOBJ invocations to module description.
16585         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16586         * modules/wcstok (configure.ac): ... to here.
16587
16588 2011-05-22  Bruno Haible  <bruno@clisp.org>
16589
16590         wcsstr: Move AC_LIBOBJ invocations to module description.
16591         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16592         * modules/wcsstr (configure.ac): ... to here.
16593
16594 2011-05-22  Bruno Haible  <bruno@clisp.org>
16595
16596         wcsspn: Move AC_LIBOBJ invocations to module description.
16597         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16598         * modules/wcsspn (configure.ac): ... to here.
16599
16600 2011-05-22  Bruno Haible  <bruno@clisp.org>
16601
16602         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16603         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16604         gl_PREREQ_WCSRTOMBS invocations from here...
16605         * modules/wcsrtombs (configure.ac): ... to here.
16606
16607 2011-05-22  Bruno Haible  <bruno@clisp.org>
16608
16609         wcsrchr: Move AC_LIBOBJ invocations to module description.
16610         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16611         here...
16612         * modules/wcsrchr (configure.ac): ... to here.
16613
16614 2011-05-22  Bruno Haible  <bruno@clisp.org>
16615
16616         wcspbrk: Move AC_LIBOBJ invocations to module description.
16617         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16618         here...
16619         * modules/wcspbrk (configure.ac): ... to here.
16620
16621 2011-05-22  Bruno Haible  <bruno@clisp.org>
16622
16623         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16624         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16625         gl_PREREQ_WCSNRTOMBS invocations from here...
16626         * modules/wcsnrtombs (configure.ac): ... to here.
16627
16628 2011-05-22  Bruno Haible  <bruno@clisp.org>
16629
16630         wcsnlen: Move AC_LIBOBJ invocations to module description.
16631         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16632         here...
16633         * modules/wcsnlen (configure.ac): ... to here.
16634
16635 2011-05-22  Bruno Haible  <bruno@clisp.org>
16636
16637         wcsncpy: Move AC_LIBOBJ invocations to module description.
16638         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16639         here...
16640         * modules/wcsncpy (configure.ac): ... to here.
16641
16642 2011-05-22  Bruno Haible  <bruno@clisp.org>
16643
16644         wcsncmp: Move AC_LIBOBJ invocations to module description.
16645         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16646         here...
16647         * modules/wcsncmp (configure.ac): ... to here.
16648
16649 2011-05-22  Bruno Haible  <bruno@clisp.org>
16650
16651         wcsncat: Move AC_LIBOBJ invocations to module description.
16652         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16653         here...
16654         * modules/wcsncat (configure.ac): ... to here.
16655
16656 2011-05-22  Bruno Haible  <bruno@clisp.org>
16657
16658         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16659         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16660         from here...
16661         * modules/wcsncasecmp (configure.ac): ... to here.
16662
16663 2011-05-22  Bruno Haible  <bruno@clisp.org>
16664
16665         wcslen: Move AC_LIBOBJ invocations to module description.
16666         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16667         * modules/wcslen (configure.ac): ... to here.
16668
16669 2011-05-22  Bruno Haible  <bruno@clisp.org>
16670
16671         wcsdup: Move AC_LIBOBJ invocations to module description.
16672         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16673         * modules/wcsdup (configure.ac): ... to here.
16674
16675 2011-05-22  Bruno Haible  <bruno@clisp.org>
16676
16677         wcscspn: Move AC_LIBOBJ invocations to module description.
16678         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16679         here...
16680         * modules/wcscspn (configure.ac): ... to here.
16681
16682 2011-05-22  Bruno Haible  <bruno@clisp.org>
16683
16684         wcscpy: Move AC_LIBOBJ invocations to module description.
16685         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16686         * modules/wcscpy (configure.ac): ... to here.
16687
16688 2011-05-22  Bruno Haible  <bruno@clisp.org>
16689
16690         wcscoll: Move AC_LIBOBJ invocations to module description.
16691         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16692         here...
16693         * modules/wcscoll (configure.ac): ... to here.
16694
16695 2011-05-22  Bruno Haible  <bruno@clisp.org>
16696
16697         wcscmp: Move AC_LIBOBJ invocations to module description.
16698         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16699         * modules/wcscmp (configure.ac): ... to here.
16700
16701 2011-05-22  Bruno Haible  <bruno@clisp.org>
16702
16703         wcschr: Move AC_LIBOBJ invocations to module description.
16704         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16705         * modules/wcschr (configure.ac): ... to here.
16706
16707 2011-05-22  Bruno Haible  <bruno@clisp.org>
16708
16709         wcscat: Move AC_LIBOBJ invocations to module description.
16710         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16711         * modules/wcscat (configure.ac): ... to here.
16712
16713 2011-05-22  Bruno Haible  <bruno@clisp.org>
16714
16715         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16716         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16717         here...
16718         * modules/wcscasecmp (configure.ac): ... to here.
16719
16720 2011-05-22  Bruno Haible  <bruno@clisp.org>
16721
16722         wcrtomb: Move AC_LIBOBJ invocations to module description.
16723         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16724         invocations from here...
16725         * modules/wcrtomb (configure.ac): ... to here.
16726
16727 2011-05-22  Bruno Haible  <bruno@clisp.org>
16728
16729         wcpncpy: Move AC_LIBOBJ invocations to module description.
16730         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16731         here...
16732         * modules/wcpncpy (configure.ac): ... to here.
16733
16734 2011-05-22  Bruno Haible  <bruno@clisp.org>
16735
16736         wcpcpy: Move AC_LIBOBJ invocations to module description.
16737         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16738         * modules/wcpcpy (configure.ac): ... to here.
16739
16740 2011-05-22  Bruno Haible  <bruno@clisp.org>
16741
16742         waitpid: Move AC_LIBOBJ invocations to module description.
16743         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16744         invocation from here...
16745         * modules/waitpid (configure.ac): ... to here.
16746
16747 2011-05-22  Bruno Haible  <bruno@clisp.org>
16748
16749         utimensat: Move AC_LIBOBJ invocations to module description.
16750         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16751         here...
16752         * modules/utimensat (configure.ac): ... to here.
16753
16754 2011-05-22  Bruno Haible  <bruno@clisp.org>
16755
16756         usleep: Move AC_LIBOBJ invocations to module description.
16757         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16758         here...
16759         * modules/usleep (configure.ac): ... to here.
16760
16761 2011-05-22  Bruno Haible  <bruno@clisp.org>
16762
16763         unlockpt: Move AC_LIBOBJ invocations to module description.
16764         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16765         gl_PREREQ_UNLOCKPT invocations from here...
16766         * modules/unlockpt (configure.ac): ... to here.
16767
16768 2011-05-22  Bruno Haible  <bruno@clisp.org>
16769
16770         unlink: Respect rules for use of AC_LIBOBJ.
16771         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16772         * modules/unlink (configure.ac): ... to here.
16773
16774 2011-05-22  Bruno Haible  <bruno@clisp.org>
16775
16776         uname: Move AC_LIBOBJ invocations to module description.
16777         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16779         here...
16780         * modules/uname (configure.ac): ... to here.
16781
16782 2011-05-22  Bruno Haible  <bruno@clisp.org>
16783
16784         ttyname_r: Move AC_LIBOBJ invocations to module description.
16785         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16786         gl_PREREQ_TTYNAME_R invocations from here...
16787         * modules/ttyname_r (configure.ac): ... to here.
16788
16789 2011-05-22  Bruno Haible  <bruno@clisp.org>
16790
16791         tsearch: Move AC_LIBOBJ invocations to module description.
16792         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16793         invocations from here...
16794         * modules/tsearch (configure.ac): ... to here.
16795
16796 2011-05-22  Bruno Haible  <bruno@clisp.org>
16797
16798         towctrans: Move AC_LIBOBJ invocations to module description.
16799         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16800         AC_LIBOBJ invocation from here...
16801         * modules/towctrans (configure.ac): ... to here.
16802
16803 2011-05-22  Bruno Haible  <bruno@clisp.org>
16804
16805         tmpfile: Move AC_LIBOBJ invocations to module description.
16806         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16807         invocations from here...
16808         * modules/tmpfile (configure.ac): ... to here.
16809
16810 2011-05-22  Bruno Haible  <bruno@clisp.org>
16811
16812         times: Move AC_LIBOBJ invocations to module description.
16813         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16814         * modules/times (configure.ac): ... to here.
16815
16816 2011-05-22  Bruno Haible  <bruno@clisp.org>
16817
16818         time_r: Move AC_LIBOBJ invocations to module description.
16819         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16820         invocations from here...
16821         * modules/time_r (configure.ac): ... to here.
16822
16823 2011-05-22  Bruno Haible  <bruno@clisp.org>
16824
16825         timegm: Move AC_LIBOBJ invocations to module description.
16826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16827         invocations from here...
16828         * modules/timegm (configure.ac): ... to here.
16829
16830 2011-05-22  Bruno Haible  <bruno@clisp.org>
16831
16832         tcgetsid: Move AC_LIBOBJ invocations to module description.
16833         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16834         and gl_PREREQ_TCGETSID invocations from here...
16835         * modules/tcgetsid (configure.ac): ... to here.
16836         (Depends-on): Update conditions.
16837
16838 2011-05-22  Bruno Haible  <bruno@clisp.org>
16839
16840         symlinkat: Move AC_LIBOBJ invocations to module description.
16841         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16842         here...
16843         * modules/symlinkat (configure.ac): ... to here.
16844
16845 2011-05-22  Bruno Haible  <bruno@clisp.org>
16846
16847         symlink: Move AC_LIBOBJ invocations to module description.
16848         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16849         here...
16850         * modules/symlink (configure.ac): ... to here.
16851
16852 2011-05-22  Bruno Haible  <bruno@clisp.org>
16853
16854         strverscmp: Move AC_LIBOBJ invocations to module description.
16855         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16857         from here...
16858         * modules/strverscmp (configure.ac): ... to here.
16859
16860 2011-05-22  Bruno Haible  <bruno@clisp.org>
16861
16862         strtok_r: Move AC_LIBOBJ invocations to module description.
16863         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16864         and gl_PREREQ_STRTOK_R invocations from here...
16865         * modules/strtok_r (configure.ac): ... to here.
16866         (Depends-on): Update conditions.
16867
16868 2011-05-22  Bruno Haible  <bruno@clisp.org>
16869
16870         strtoumax: Move AC_LIBOBJ invocations to module description.
16871         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16873         from here...
16874         * modules/strtoumax (configure.ac): ... to here.
16875
16876 2011-05-22  Bruno Haible  <bruno@clisp.org>
16877
16878         strtoimax: Move AC_LIBOBJ invocations to module description.
16879         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16880         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16881         from here...
16882         * modules/strtoimax (configure.ac): ... to here.
16883
16884 2011-05-22  Bruno Haible  <bruno@clisp.org>
16885
16886         strtoull: Move AC_LIBOBJ invocations to module description.
16887         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16889         from here...
16890         * modules/strtoull (configure.ac): ... to here.
16891
16892 2011-05-22  Bruno Haible  <bruno@clisp.org>
16893
16894         strtoll: Move AC_LIBOBJ invocations to module description.
16895         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16897         here...
16898         * modules/strtoll (configure.ac): ... to here.
16899
16900 2011-05-22  Bruno Haible  <bruno@clisp.org>
16901
16902         strtoul: Move AC_LIBOBJ invocations to module description.
16903         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16904         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16905         * modules/strtoul (configure.ac): ... to here.
16906
16907 2011-05-22  Bruno Haible  <bruno@clisp.org>
16908
16909         strtol: Move AC_LIBOBJ invocations to module description.
16910         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16911         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16912         * modules/strtol (configure.ac): ... to here.
16913
16914 2011-05-22  Bruno Haible  <bruno@clisp.org>
16915
16916         strtod: Move AC_LIBOBJ invocations to module description.
16917         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16918         invocations from here...
16919         * modules/strtod (configure.ac): ... to here.
16920
16921 2011-05-22  Bruno Haible  <bruno@clisp.org>
16922
16923         strstr*: Move AC_LIBOBJ invocations to module description.
16924         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16925         invocations from here...
16926         * modules/strstr-simple (configure.ac): ... to here.
16927         * modules/strstr (configure.ac): ... and here.
16928
16929 2011-05-22  Bruno Haible  <bruno@clisp.org>
16930
16931         strsignal: Move AC_LIBOBJ invocations to module description.
16932         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16933         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16934         * modules/strsignal (configure.ac): ... to here.
16935         (Depends-on): Update conditions.
16936
16937 2011-05-22  Bruno Haible  <bruno@clisp.org>
16938
16939         strsep: Move AC_LIBOBJ invocations to module description.
16940         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16942         here...
16943         * modules/strsep (configure.ac): ... to here.
16944
16945 2011-05-22  Bruno Haible  <bruno@clisp.org>
16946
16947         strptime: Move AC_LIBOBJ invocations to module description.
16948         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16949         gl_PREREQ_STRPTIME invocations from here...
16950         * modules/strptime (configure.ac): ... to here.
16951
16952 2011-05-22  Bruno Haible  <bruno@clisp.org>
16953
16954         strpbrk: Move AC_LIBOBJ invocations to module description.
16955         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16957         here...
16958         * modules/strpbrk (configure.ac): ... to here.
16959
16960 2011-05-22  Bruno Haible  <bruno@clisp.org>
16961
16962         strnlen: Move AC_LIBOBJ invocations to module description.
16963         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16964         invocations from here...
16965         * modules/strnlen (configure.ac): ... to here.
16966
16967 2011-05-22  Bruno Haible  <bruno@clisp.org>
16968
16969         strndup: Move AC_LIBOBJ invocations to module description.
16970         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16971         invocations from here...
16972         * modules/strndup (configure.ac): ... to here.
16973         (Depends-on): Update conditions.
16974
16975 2011-05-22  Bruno Haible  <bruno@clisp.org>
16976
16977         strncat: Move AC_LIBOBJ invocations to module description.
16978         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16979         invocations from here...
16980         * modules/strncat (configure.ac): ... to here.
16981
16982 2011-05-22  Bruno Haible  <bruno@clisp.org>
16983
16984         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16985         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16986         invocations from here...
16987         * modules/strdup (configure.ac): ... to here.
16988         * modules/strdup-posix (configure.ac): ... and here.
16989
16990 2011-05-22  Bruno Haible  <bruno@clisp.org>
16991
16992         strcspn: Move AC_LIBOBJ invocations to module description.
16993         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16995         here...
16996         * modules/strcspn (configure.ac): ... to here.
16997
16998 2011-05-22  Bruno Haible  <bruno@clisp.org>
16999
17000         strchrnul: Move AC_LIBOBJ invocations to module description.
17001         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17002         gl_PREREQ_STRCHRNUL invocations from here...
17003         * modules/strchrnul (configure.ac): ... to here.
17004
17005 2011-05-22  Bruno Haible  <bruno@clisp.org>
17006
17007         strcasestr*: Move AC_LIBOBJ invocations to module description.
17008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17009         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17010         * modules/strcasestr-simple (configure.ac): ... to here.
17011         * modules/strcasestr (configure.ac): ... and here.
17012
17013 2011-05-22  Bruno Haible  <bruno@clisp.org>
17014
17015         strcase: Move AC_LIBOBJ invocations to module description.
17016         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17017         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17018         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17019         gl_PREREQ_STRNCASECMP invocations from here...
17020         * modules/strcase (configure.ac): ... to here.
17021
17022 2011-05-22  Bruno Haible  <bruno@clisp.org>
17023
17024         stpncpy: Move AC_LIBOBJ invocations to module description.
17025         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17026         here...
17027         * modules/stpncpy (configure.ac): ... to here.
17028
17029 2011-05-22  Bruno Haible  <bruno@clisp.org>
17030
17031         stpcpy: Move AC_LIBOBJ invocations to module description.
17032         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17034         here...
17035         * modules/stpcpy (configure.ac): ... to here.
17036
17037 2011-05-21  Bruno Haible  <bruno@clisp.org>
17038
17039         stat: Move AC_LIBOBJ invocations to module description.
17040         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17041         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17042         here...
17043         * modules/stat (configure.ac): ... to here.
17044
17045 2011-05-21  Bruno Haible  <bruno@clisp.org>
17046
17047         sleep: Move AC_LIBOBJ invocations to module description.
17048         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17049         * modules/sleep (configure.ac): ... to here.
17050
17051 2011-05-21  Bruno Haible  <bruno@clisp.org>
17052
17053         signbit: Move AC_LIBOBJ invocations to module description.
17054         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17055         * modules/signbit (configure.ac): ... to here.
17056
17057 2011-05-21  Bruno Haible  <bruno@clisp.org>
17058
17059         sigprocmask: Move AC_LIBOBJ invocations to module description.
17060         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17061         gl_PREREQ_SIGPROMASK invocations from here...
17062         * modules/sigprocmask (configure.ac): ... to here.
17063
17064 2011-05-21  Bruno Haible  <bruno@clisp.org>
17065
17066         sigaction: Move AC_LIBOBJ invocations to module description.
17067         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17068         gl_PREREQ_SIGACTION invocations from here...
17069         * modules/sigaction (configure.ac): ... to here.
17070
17071 2011-05-21  Bruno Haible  <bruno@clisp.org>
17072
17073         sig2str: Move AC_LIBOBJ invocations to module description.
17074         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17076         here...
17077         * modules/sig2str (configure.ac): ... to here.
17078
17079 2011-05-21  Bruno Haible  <bruno@clisp.org>
17080
17081         setlocale: Move AC_LIBOBJ invocations to module description.
17082         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17083         gl_PREREQ_SETLOCALE invocations from here...
17084         * modules/setlocale (configure.ac): ... to here.
17085
17086 2011-05-21  Bruno Haible  <bruno@clisp.org>
17087
17088         unsetenv: Move AC_LIBOBJ invocations to module description.
17089         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17090         and gl_PREREQ_UNSETENV invocations from here...
17091         * modules/unsetenv (configure.ac): ... to here.
17092         (Depends-on): Update.
17093
17094 2011-05-21  Bruno Haible  <bruno@clisp.org>
17095
17096         setenv: Move AC_LIBOBJ invocations to module description.
17097         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17098         here...
17099         * modules/setenv (configure.ac): ... to here.
17100
17101 2011-05-21  Bruno Haible  <bruno@clisp.org>
17102
17103         selinux-h: Move AC_LIBOBJ invocations to module description.
17104         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17105         AC_LIBOBJ invocation from here...
17106         * modules/selinux-h (configure.ac): ... to here.
17107
17108 2011-05-21  Bruno Haible  <bruno@clisp.org>
17109
17110         select: Respect rules for use of AC_LIBOBJ.
17111         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17112         here...
17113         * modules/select (configure.ac): ... to here.
17114
17115 2011-05-21  Bruno Haible  <bruno@clisp.org>
17116
17117         scandir: Move AC_LIBOBJ invocations to module description.
17118         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17119         invocations from here...
17120         * modules/scandir (configure.ac): ... to here.
17121
17122 2011-05-21  Bruno Haible  <bruno@clisp.org>
17123
17124         rpmatch: Move AC_LIBOBJ invocations to module description.
17125         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17126         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17127         here...
17128         * modules/rpmatch (configure.ac): ... to here.
17129
17130 2011-05-21  Bruno Haible  <bruno@clisp.org>
17131
17132         rmdir: Respect rules for use of AC_LIBOBJ.
17133         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17134         * modules/rmdir (configure.ac): ... to here.
17135
17136 2011-05-21  Bruno Haible  <bruno@clisp.org>
17137
17138         renameat: Move AC_LIBOBJ invocations to module description.
17139         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17140         here...
17141         * modules/renameat (configure.ac): ... to here.
17142
17143 2011-05-21  Bruno Haible  <bruno@clisp.org>
17144
17145         rename: Respect rules for use of AC_LIBOBJ.
17146         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17147         here...
17148         * modules/rename (configure.ac): ... to here.
17149
17150 2011-05-21  Bruno Haible  <bruno@clisp.org>
17151
17152         remove: Move AC_LIBOBJ invocations to module description.
17153         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17154         here...
17155         * modules/remove (configure.ac): ... to here.
17156
17157 2011-05-21  Bruno Haible  <bruno@clisp.org>
17158
17159         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17160         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17161         macro.
17162         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17163         * modules/relocatable-lib (configure.ac): ... to here.
17164         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17165         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17166
17167 2011-05-21  Bruno Haible  <bruno@clisp.org>
17168
17169         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17170         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17171         here...
17172         * modules/relocatable-prog (configure.ac): ... to here.
17173
17174 2011-05-21  Bruno Haible  <bruno@clisp.org>
17175
17176         regex: Move AC_LIBOBJ invocations to module description.
17177         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17178         invocations from here...
17179         * modules/regex (configure.ac): ... to here.
17180
17181 2011-05-21  Bruno Haible  <bruno@clisp.org>
17182
17183         realloc-*: Move AC_LIBOBJ invocations to module description.
17184         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17185         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17186         AC_LIBOBJ invocations from here...
17187         * modules/realloc-gnu (configure.ac): ... to here.
17188         * modules/realloc-posix (configure.ac): ... and here.
17189
17190 2011-05-21  Bruno Haible  <bruno@clisp.org>
17191
17192         readutmp: Move AC_LIBOBJ invocations to module description.
17193         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17194         * modules/readutmp (configure.ac): ... to here.
17195
17196 2011-05-21  Bruno Haible  <bruno@clisp.org>
17197
17198         readlinkat: Move AC_LIBOBJ invocations to module description.
17199         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17200         here...
17201         * modules/readlinkat (configure.ac): ... to here.
17202
17203 2011-05-21  Bruno Haible  <bruno@clisp.org>
17204
17205         readlink: Move AC_LIBOBJ invocations to module description.
17206         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17207         gl_PREREQ_READLINK invocations from here...
17208         * modules/readlink (configure.ac): ... to here.
17209
17210 2011-05-21  Bruno Haible  <bruno@clisp.org>
17211
17212         readline: Move AC_LIBOBJ invocations to module description.
17213         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17214         gl_PREREQ_READLINE invocations from here...
17215         * modules/readline (configure.ac): ... to here.
17216
17217 2011-05-21  Bruno Haible  <bruno@clisp.org>
17218
17219         read: Move AC_LIBOBJ invocations to module description.
17220         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17221         * modules/read (configure.ac): ... to here.
17222
17223 2011-05-21  Bruno Haible  <bruno@clisp.org>
17224
17225         rawmemchr: Move AC_LIBOBJ invocations to module description.
17226         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17228         from here...
17229         * modules/rawmemchr (configure.ac): ... to here.
17230
17231 2011-05-21  Bruno Haible  <bruno@clisp.org>
17232
17233         random_r: Move AC_LIBOBJ invocations to module description.
17234         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17235         gl_PREREQ_RANDOM_R invocations from here...
17236         * modules/random_r (configure.ac): ... to here.
17237
17238 2011-05-21  Bruno Haible  <bruno@clisp.org>
17239
17240         pwrite: Move AC_LIBOBJ invocations to module description.
17241         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17242         * modules/pwrite (configure.ac): ... to here.
17243
17244 2011-05-21  Bruno Haible  <bruno@clisp.org>
17245
17246         putenv: Move AC_LIBOBJ invocations to module description.
17247         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17248         * modules/putenv (configure.ac): ... to here.
17249
17250 2011-05-21  Bruno Haible  <bruno@clisp.org>
17251
17252         login_tty: Move AC_LIBOBJ invocations to module description.
17253         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17254         * modules/login_tty (configure.ac): ... to here.
17255
17256 2011-05-21  Bruno Haible  <bruno@clisp.org>
17257
17258         openpty: Move AC_LIBOBJ invocations to module description.
17259         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17260         * modules/openpty (configure.ac): ... to here.
17261
17262 2011-05-21  Bruno Haible  <bruno@clisp.org>
17263
17264         forkpty: Move AC_LIBOBJ invocations to module description.
17265         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17266         * modules/forkpty (configure.ac): ... to here.
17267
17268 2011-05-21  Bruno Haible  <bruno@clisp.org>
17269
17270         ptsname: Move AC_LIBOBJ invocations to module description.
17271         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17272         invocations from here...
17273         * modules/ptsname (configure.ac): ... to here.
17274
17275 2011-05-21  Bruno Haible  <bruno@clisp.org>
17276
17277         pread: Move AC_LIBOBJ invocations to module description.
17278         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17279         * modules/pread (configure.ac): ... to here.
17280
17281 2011-05-21  Bruno Haible  <bruno@clisp.org>
17282
17283         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17284         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17285         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17286         * modules/posix_spawn (configure.ac): ... to here.
17287         * modules/posix_spawnp (configure.ac): ... and here.
17288
17289 2011-05-21  Bruno Haible  <bruno@clisp.org>
17290
17291         popen: Move AC_LIBOBJ invocations to module description.
17292         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17293         invocations from here...
17294         * modules/popen (configure.ac): ... to here.
17295
17296 2011-05-21  Bruno Haible  <bruno@clisp.org>
17297
17298         poll: Move AC_LIBOBJ invocations to module description.
17299         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17300         invocations from here...
17301         * modules/poll (configure.ac): ... to here.
17302
17303 2011-05-21  Bruno Haible  <bruno@clisp.org>
17304
17305         pipe-posix: Move AC_LIBOBJ invocations to module description.
17306         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17307         * modules/pipe-posix (configure.ac): ... to here.
17308
17309 2011-05-21  Bruno Haible  <bruno@clisp.org>
17310
17311         openat: Respect rules for use of AC_LIBOBJ.
17312         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17313         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17314         * modules/openat (configure.ac): ... to here.
17315
17316 2011-05-21  Bruno Haible  <bruno@clisp.org>
17317
17318         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17319         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17320         invocation from here...
17321         * modules/obstack-printf (configure.ac): ... to here.
17322         * modules/obstack-printf-posix (configure.ac): ... and here.
17323
17324 2011-05-21  Bruno Haible  <bruno@clisp.org>
17325
17326         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17327         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17328         from here...
17329         * modules/nl_langinfo (configure.ac): ... to here.
17330
17331 2011-05-21  Bruno Haible  <bruno@clisp.org>
17332
17333         nanosleep: Move AC_LIBOBJ invocations to module description.
17334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17335         gl_PREREQ_NANOSLEEP invocations from here...
17336         * modules/nanosleep (configure.ac): ... to here.
17337
17338 2011-05-21  Bruno Haible  <bruno@clisp.org>
17339
17340         mountlist: Move AC_LIBOBJ invocations to module description.
17341         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17342         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17343         * modules/mountlist (configure.ac): ... to here.
17344
17345 2011-05-21  Bruno Haible  <bruno@clisp.org>
17346
17347         mktime: Respect rules for use of AC_LIBOBJ.
17348         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17349         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17350         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17351         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17352         * modules/mktime (configure.ac): ... to here.
17353         * modules/mktime-internal (configure.ac): ... and here.
17354         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17355
17356 2011-05-21  Bruno Haible  <bruno@clisp.org>
17357
17358         mkstemps: Move AC_LIBOBJ invocations to module description.
17359         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17360         here...
17361         * modules/mkstemps (configure.ac): ... to here.
17362
17363 2011-05-21  Bruno Haible  <bruno@clisp.org>
17364
17365         mkstemp: Move AC_LIBOBJ invocations to module description.
17366         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17367         gl_PREREQ_MKSTEMP invocations from here...
17368         * modules/mkstemp (configure.ac): ... to here.
17369
17370 2011-05-21  Bruno Haible  <bruno@clisp.org>
17371
17372         mkostemps: Move AC_LIBOBJ invocations to module description.
17373         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17374         here...
17375         * modules/mkostemps (configure.ac): ... to here.
17376
17377 2011-05-21  Bruno Haible  <bruno@clisp.org>
17378
17379         mkostemp: Move AC_LIBOBJ invocations to module description.
17380         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17381         gl_PREREQ_MKOSTEMP invocations from here...
17382         * modules/mkostemp (configure.ac): ... to here.
17383
17384 2011-05-21  Bruno Haible  <bruno@clisp.org>
17385
17386         mknod: Move AC_LIBOBJ invocations to module description.
17387         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17388         * modules/mknod (configure.ac): ... to here.
17389
17390 2011-05-21  Bruno Haible  <bruno@clisp.org>
17391
17392         mkfifoat: Move AC_LIBOBJ invocations to module description.
17393         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17394         here...
17395         * modules/mkfifoat (configure.ac): ... to here.
17396
17397 2011-05-21  Bruno Haible  <bruno@clisp.org>
17398
17399         mkfifo: Respect rules for use of AC_LIBOBJ.
17400         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17401         here...
17402         * modules/mkfifo (configure.ac): ... to here.
17403
17404 2011-05-21  Bruno Haible  <bruno@clisp.org>
17405
17406         mkdtemp: Move AC_LIBOBJ invocations to module description.
17407         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17408         invocations from here...
17409         * modules/mkdtemp (configure.ac): ... to here.
17410
17411 2011-05-21  Bruno Haible  <bruno@clisp.org>
17412
17413         mkdir: Move AC_LIBOBJ invocations to module description.
17414         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17415         * modules/mkdir (configure.ac): ... to here.
17416
17417 2011-05-21  Bruno Haible  <bruno@clisp.org>
17418
17419         memset: Move AC_LIBOBJ invocations to module description.
17420         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17421         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17422         here...
17423         * modules/memset (configure.ac): ... to here.
17424
17425 2011-05-21  Bruno Haible  <bruno@clisp.org>
17426
17427         memrchr: Move AC_LIBOBJ invocations to module description.
17428         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17429         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17430         here...
17431         * modules/memrchr (configure.ac): ... to here.
17432
17433 2011-05-21  Bruno Haible  <bruno@clisp.org>
17434
17435         mempcpy: Move AC_LIBOBJ invocations to module description.
17436         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17438         here...
17439         * modules/mempcpy (configure.ac): ... to here.
17440
17441 2011-05-21  Bruno Haible  <bruno@clisp.org>
17442
17443         memmove: Move AC_LIBOBJ invocations to module description.
17444         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17446         here...
17447         * modules/memmove (configure.ac): ... to here.
17448
17449 2011-05-21  Bruno Haible  <bruno@clisp.org>
17450
17451         memmem*: Move AC_LIBOBJ invocations to module description.
17452         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17453         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17454         here...
17455         (gl_FUNC_MEMMEM): ... and here...
17456         * modules/memmem-simple (configure.ac): ... to here.
17457         * modules/memmem (configure.ac): ... and here.
17458
17459 2011-05-21  Bruno Haible  <bruno@clisp.org>
17460
17461         memcpy: Move AC_LIBOBJ invocations to module description.
17462         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17464         here...
17465         * modules/memcpy (configure.ac): ... to here.
17466
17467 2011-05-21  Bruno Haible  <bruno@clisp.org>
17468
17469         memcmp: Simplify autoconf macro.
17470         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17471         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17472         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17473
17474 2011-05-21  Bruno Haible  <bruno@clisp.org>
17475
17476         memcmp: Move AC_LIBOBJ invocations to module description.
17477         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17478         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17479         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17480         * modules/memcmp (configure.ac): ... to here.
17481         (Depends-on): Update conditions.
17482
17483 2011-05-21  Bruno Haible  <bruno@clisp.org>
17484
17485         memchr: Respect rules for use of AC_LIBOBJ.
17486         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17487         invocations from here...
17488         * modules/memchr (configure.ac): ... to here.
17489
17490 2011-05-21  Bruno Haible  <bruno@clisp.org>
17491
17492         mbtowc: Move AC_LIBOBJ invocations to module description.
17493         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17494         invocations from here...
17495         * modules/mbtowc (configure.ac): ... to here.
17496
17497 2011-05-21  Bruno Haible  <bruno@clisp.org>
17498
17499         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17500         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17501         gl_PREREQ_MBSRTOWCS invocations from here...
17502         * modules/mbsrtowcs (configure.ac): ... to here.
17503
17504 2011-05-21  Bruno Haible  <bruno@clisp.org>
17505
17506         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17507         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17508         gl_PREREQ_MBSNRTOWCS invocations from here...
17509         * modules/mbsnrtowcs (configure.ac): ... to here.
17510
17511 2011-05-21  Bruno Haible  <bruno@clisp.org>
17512
17513         mbsinit: Move AC_LIBOBJ invocations to module description.
17514         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17515         invocations from here...
17516         * modules/mbsinit (configure.ac): ... to here.
17517
17518 2011-05-21  Bruno Haible  <bruno@clisp.org>
17519
17520         mbrlen: Move AC_LIBOBJ invocations to module description.
17521         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17522         invocations from here...
17523         * modules/mbrlen (configure.ac): ... to here.
17524
17525 2011-05-21  Bruno Haible  <bruno@clisp.org>
17526
17527         mbrtowc: Respect rules for use of AC_LIBOBJ.
17528         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17529         invocations from here...
17530         * modules/mbrtowc (configure.ac): ... to here.
17531
17532 2011-05-21  Bruno Haible  <bruno@clisp.org>
17533
17534         malloc-*: Move AC_LIBOBJ invocations to module description.
17535         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17536         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17537         AC_LIBOBJ invocations from here...
17538         * modules/malloc-gnu (configure.ac): ... to here.
17539         * modules/malloc-posix (configure.ac): ... and here.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         lstat, openat: Respect rules for use of AC_LIBOBJ.
17544         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17545         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17546         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17547         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17548         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17549         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17550         here.
17551         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17552
17553 2011-05-21  Bruno Haible  <bruno@clisp.org>
17554
17555         lseek: Move AC_LIBOBJ invocations to module description.
17556         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17557         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17558         * modules/lseek (configure.ac): ... to here.
17559
17560 2011-05-21  Bruno Haible  <bruno@clisp.org>
17561
17562         linkat: Move AC_LIBOBJ invocations to module description.
17563         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17564         here...
17565         * modules/linkat (configure.ac): ... to here.
17566
17567 2011-05-21  Bruno Haible  <bruno@clisp.org>
17568
17569         link: Respect rules for use of AC_LIBOBJ.
17570         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17571         * modules/link (configure.ac): ... to here.
17572
17573 2011-05-21  Bruno Haible  <bruno@clisp.org>
17574
17575         lchown: Move AC_LIBOBJ invocations to module description.
17576         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17577         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17578         * modules/lchown (configure.ac): ... to here.
17579
17580 2011-05-21  Bruno Haible  <bruno@clisp.org>
17581
17582         iswctype: Move AC_LIBOBJ invocations to module description.
17583         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17584         here...
17585         * modules/iswctype (configure.ac): ... to here.
17586
17587 2011-05-21  Bruno Haible  <bruno@clisp.org>
17588
17589         iswblank: Move AC_LIBOBJ invocations to module description.
17590         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17591         here...
17592         * modules/iswblank (configure.ac): ... to here.
17593
17594 2011-05-21  Bruno Haible  <bruno@clisp.org>
17595
17596         atanl: Move AC_LIBOBJ invocations to module description.
17597         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17598         * modules/atanl (configure.ac): ... to here.
17599
17600 2011-05-21  Bruno Haible  <bruno@clisp.org>
17601
17602         acosl: Move AC_LIBOBJ invocations to module description.
17603         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17604         * modules/acosl (configure.ac): ... to here.
17605
17606 2011-05-21  Bruno Haible  <bruno@clisp.org>
17607
17608         asinl: Respect rules for use of AC_LIBOBJ.
17609         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17610         * modules/asinl (configure.ac): ... to here.
17611
17612 2011-05-21  Bruno Haible  <bruno@clisp.org>
17613
17614         tanl: Move AC_LIBOBJ invocations to module description.
17615         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17616         * modules/tanl (configure.ac): ... to here.
17617
17618 2011-05-21  Bruno Haible  <bruno@clisp.org>
17619
17620         cosl: Move AC_LIBOBJ invocations to module description.
17621         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17622         * modules/cosl (configure.ac): ... to here.
17623
17624 2011-05-21  Bruno Haible  <bruno@clisp.org>
17625
17626         sinl: Move AC_LIBOBJ invocations to module description.
17627         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17628         * modules/sinl (configure.ac): ... to here.
17629
17630 2011-05-21  Bruno Haible  <bruno@clisp.org>
17631
17632         logl: Move AC_LIBOBJ invocations to module description.
17633         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17634         * modules/logl (configure.ac): ... to here.
17635
17636 2011-05-21  Bruno Haible  <bruno@clisp.org>
17637
17638         expl: Move AC_LIBOBJ invocations to module description.
17639         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17640         * modules/expl (configure.ac): ... to here.
17641
17642 2011-05-21  Bruno Haible  <bruno@clisp.org>
17643
17644         roundl: Move AC_LIBOBJ invocations to module description.
17645         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17646         * modules/roundl (configure.ac): ... to here.
17647
17648 2011-05-21  Bruno Haible  <bruno@clisp.org>
17649
17650         round: Move AC_LIBOBJ invocations to module description.
17651         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17652         * modules/round (configure.ac): ... to here.
17653
17654 2011-05-21  Bruno Haible  <bruno@clisp.org>
17655
17656         roundf: Move AC_LIBOBJ invocations to module description.
17657         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17658         * modules/roundf (configure.ac): ... to here.
17659
17660 2011-05-21  Bruno Haible  <bruno@clisp.org>
17661
17662         truncl: Move AC_LIBOBJ invocations to module description.
17663         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17664         * modules/truncl (configure.ac): ... to here.
17665
17666 2011-05-21  Bruno Haible  <bruno@clisp.org>
17667
17668         trunc: Move AC_LIBOBJ invocations to module description.
17669         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17670         * modules/trunc (configure.ac): ... to here.
17671
17672 2011-05-21  Bruno Haible  <bruno@clisp.org>
17673
17674         truncf: Move AC_LIBOBJ invocations to module description.
17675         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17676         * modules/truncf (configure.ac): ... to here.
17677
17678 2011-05-21  Bruno Haible  <bruno@clisp.org>
17679
17680         ceill: Move AC_LIBOBJ invocations to module description.
17681         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17682         * modules/ceill (configure.ac): ... to here.
17683
17684 2011-05-21  Bruno Haible  <bruno@clisp.org>
17685
17686         ceil: Move AC_LIBOBJ invocations to module description.
17687         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17688         * modules/ceil (configure.ac): ... to here.
17689
17690 2011-05-21  Bruno Haible  <bruno@clisp.org>
17691
17692         ceilf: Move AC_LIBOBJ invocations to module description.
17693         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17694         * modules/ceilf (configure.ac): ... to here.
17695
17696 2011-05-21  Bruno Haible  <bruno@clisp.org>
17697
17698         floorl: Respect rules for use of AC_LIBOBJ.
17699         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17700         * modules/floorl (configure.ac): ... to here.
17701
17702 2011-05-21  Bruno Haible  <bruno@clisp.org>
17703
17704         floor: Respect rules for use of AC_LIBOBJ.
17705         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17706         * modules/floor (configure.ac): ... to here.
17707
17708 2011-05-21  Bruno Haible  <bruno@clisp.org>
17709
17710         floorf: Move AC_LIBOBJ invocations to module description.
17711         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17712         * modules/floorf (configure.ac): ... to here.
17713
17714 2011-05-20  Bruno Haible  <bruno@clisp.org>
17715
17716         sqrtl: Respect rules for use of AC_LIBOBJ.
17717         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17718         * modules/sqrtl (configure.ac): ... to here.
17719
17720 2011-05-20  Bruno Haible  <bruno@clisp.org>
17721
17722         ldexpl: Respect rules for use of AC_LIBOBJ.
17723         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17724         * modules/ldexpl (configure.ac): ... to here.
17725
17726 2011-05-20  Bruno Haible  <bruno@clisp.org>
17727
17728         frexpl*: Respect rules for use of AC_LIBOBJ.
17729         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17730         invocation from here...
17731         * modules/frexpl (configure.ac): ... to here.
17732         * modules/frexpl-nolibm (configure.ac): ... and here.
17733
17734 2011-05-20  Bruno Haible  <bruno@clisp.org>
17735
17736         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17737         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17738         invocation from here...
17739         * modules/frexp (configure.ac): ... to here.
17740         * modules/frexp-nolibm (configure.ac): ... and here.
17741
17742 2011-05-20  Bruno Haible  <bruno@clisp.org>
17743
17744         isnan: Respect rules for use of AC_LIBOBJ.
17745         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17746         invocations here.
17747         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17748         REPLACE_ISNAN.
17749         * modules/isnand (configure.ac): Likewise.
17750         * modules/isnanl (configure.ac): Likewise.
17751
17752 2011-05-20  Bruno Haible  <bruno@clisp.org>
17753
17754         isnanl*: Respect rules for use of AC_LIBOBJ.
17755         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17756         invocation from here...
17757         * modules/isnanl (configure.ac): ... to here.
17758         * modules/isnanl-nolibm (configure.ac): ... and here.
17759
17760 2011-05-20  Bruno Haible  <bruno@clisp.org>
17761
17762         isnand*: Move AC_LIBOBJ invocations to module description.
17763         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17764         invocation from here...
17765         * modules/isnand (configure.ac): ... to here.
17766         * modules/isnand-nolibm (configure.ac): ... and here.
17767
17768 2011-05-20  Bruno Haible  <bruno@clisp.org>
17769
17770         isnanf*: Move AC_LIBOBJ invocations to module description.
17771         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17772         invocation from here...
17773         * modules/isnanf (configure.ac): ... to here.
17774         * modules/isnanf-nolibm (configure.ac): ... and here.
17775
17776 2011-05-20  Bruno Haible  <bruno@clisp.org>
17777
17778         isnan*: Separate the AC_LIBOBJ invocations.
17779         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17780         AC_LIBOBJ invocation.
17781         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17782         here.
17783         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17784         AC_LIBOBJ invocation.
17785         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17786         here.
17787         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17788         AC_LIBOBJ invocation.
17789         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17790         here.
17791         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17792
17793 2011-05-08  Bruno Haible  <bruno@clisp.org>
17794
17795         isinf: Move AC_LIBOBJ invocations to module description.
17796         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17797         * modules/isinf (configure.ac): ... to here.
17798
17799 2011-05-08  Bruno Haible  <bruno@clisp.org>
17800
17801         isfinite: Move AC_LIBOBJ invocations to module description.
17802         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17803         * modules/isfinite (configure.ac): ... to here.
17804
17805 2011-05-08  Bruno Haible  <bruno@clisp.org>
17806
17807         isblank: Move AC_LIBOBJ invocations to module description.
17808         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17809         here...
17810         * modules/isblank (configure.ac): ... to here.
17811
17812 2011-05-08  Bruno Haible  <bruno@clisp.org>
17813
17814         isapipe: Move AC_LIBOBJ invocations to module description.
17815         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17816         gl_PREREQ_ISAPIPE invocations from here...
17817         * modules/isapipe (configure.ac): ... to here.
17818         (Depends-on): Update condition.
17819
17820 2011-05-08  Bruno Haible  <bruno@clisp.org>
17821
17822         ioctl: Move AC_LIBOBJ invocations to module description.
17823         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17824         invocations from here...
17825         * modules/ioctl (configure.ac): ... to here.
17826         (Depends-on): Update condition.
17827
17828 2011-05-08  Bruno Haible  <bruno@clisp.org>
17829
17830         imaxdiv: Move AC_LIBOBJ invocations to module description.
17831         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17832         invocations from here...
17833         * modules/imaxdiv (configure.ac): ... to here.
17834
17835 2011-05-08  Bruno Haible  <bruno@clisp.org>
17836
17837         imaxabs: Move AC_LIBOBJ invocations to module description.
17838         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17839         invocations from here...
17840         * modules/imaxabs (configure.ac): ... to here.
17841
17842 2011-05-08  Bruno Haible  <bruno@clisp.org>
17843
17844         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17845         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17846         AC_LIBOBJ invocations from here...
17847         * modules/getaddrinfo (configure.ac): ... to here.
17848         (Depends-on): Add conditions.
17849
17850 2011-05-08  Bruno Haible  <bruno@clisp.org>
17851
17852         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17853         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17854         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17855         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17856         (gl_PREREQ_INET_PTON): ... from here.
17857         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17858         gl_PREREQ_INET_PTON here.
17859         (Depends-on): Update condition.
17860
17861 2011-05-08  Bruno Haible  <bruno@clisp.org>
17862
17863         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17864         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17865         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17866         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17867         (gl_PREREQ_INET_NTOP): ... from here.
17868         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17869         gl_PREREQ_INET_NTOP here.
17870         (Depends-on): Update condition.
17871
17872 2011-05-08  Bruno Haible  <bruno@clisp.org>
17873
17874         iconv_open: Move AC_LIBOBJ invocations to module description.
17875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17876         AC_LIBOBJ invocations from here...
17877         * modules/iconv_open (configure.ac): ... to here.
17878
17879 2011-05-08  Bruno Haible  <bruno@clisp.org>
17880
17881         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17882         If module 'iconv_open' is among the main modules and module
17883         'iconv_open-utf' is among the tests dependencies, then
17884         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17885         return the special iconv_t values. Therefore iconv() and iconv_close()
17886         must support these special iconv_t values, already in lib, not only in
17887         tests.
17888         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17889         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17890         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17891         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17892         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17893         (Depends-on): Add the dependencies of iconv_open-utf.
17894         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17895         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17896         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17897
17898 2011-05-08  Bruno Haible  <bruno@clisp.org>
17899
17900         group-member: Move AC_LIBOBJ invocations to module description.
17901         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17902         gl_PREREQ_GROUP_MEMBER invocations from here...
17903         * modules/group-member (configure.ac): ... to here.
17904
17905 2011-05-08  Bruno Haible  <bruno@clisp.org>
17906
17907         grantpt: Move AC_LIBOBJ invocations to module description.
17908         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17909         invocations from here...
17910         * modules/grantpt (configure.ac): ... to here.
17911
17912 2011-05-08  Bruno Haible  <bruno@clisp.org>
17913
17914         glob: Move AC_LIBOBJ invocations to module description.
17915         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17916         from here...
17917         * modules/glob (configure.ac): ... to here.
17918
17919 2011-05-08  Bruno Haible  <bruno@clisp.org>
17920
17921         getusershell: Move AC_LIBOBJ invocations to module description.
17922         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17923         Move AC_LIBOBJ invocation from here...
17924         * modules/getusershell (configure.ac): ... to here.
17925         (Depends-on): Update condition.
17926
17927 2011-05-08  Bruno Haible  <bruno@clisp.org>
17928
17929         gettimeofday: Move AC_LIBOBJ invocations to module description.
17930         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17931         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17932         gl_PREREQ_GETTIMEOFDAY invocations from here...
17933         * modules/gettimeofday (configure.ac): ... to here.
17934
17935 2011-05-08  Bruno Haible  <bruno@clisp.org>
17936
17937         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17938         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17939         just gl_FUNC_TZSET.
17940         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17941         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17943         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17944
17945 2011-05-08  Bruno Haible  <bruno@clisp.org>
17946
17947         getsubopt: Move AC_LIBOBJ invocations to module description.
17948         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17949         gl_PREREQ_GETSUBOPT invocations from here...
17950         * modules/getsubopt (configure.ac): ... to here.
17951
17952 2011-05-08  Bruno Haible  <bruno@clisp.org>
17953
17954         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17955         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17956         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17957         * modules/getpass-gnu (configure.ac): ... to here.
17958
17959 2011-05-08  Bruno Haible  <bruno@clisp.org>
17960
17961         getpass: Move AC_LIBOBJ invocations to module description.
17962         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17963         gl_PREREQ_GETPASS invocations from here...
17964         * modules/getpass (configure.ac): ... to here.
17965
17966 2011-05-08  Bruno Haible  <bruno@clisp.org>
17967
17968         getpagesize: Move AC_LIBOBJ invocations to module description.
17969         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17970         from here...
17971         * modules/getpagesize (configure.ac): ... to here.
17972
17973 2011-05-08  Bruno Haible  <bruno@clisp.org>
17974
17975         getopt: Move AC_LIBOBJ invocations to module description.
17976         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17977         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17978         invocations from here...
17979         * modules/getopt-gnu (configure.ac): ... to here.
17980         * modules/getopt-posix (configure.ac): ... and here.
17981         (Depends-on): Update condition.
17982
17983 2011-05-08  Bruno Haible  <bruno@clisp.org>
17984
17985         getopt, argp: Respect rules for use of AC_LIBOBJ.
17986         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17987         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17988         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17989         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17990
17991 2011-05-08  Bruno Haible  <bruno@clisp.org>
17992
17993         getlogin_r: Move AC_LIBOBJ invocations to module description.
17994         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17995         gl_PREREQ_GETLOGIN_R invocations from here...
17996         * modules/getlogin_r (configure.ac): ... to here.
17997
17998 2011-05-08  Bruno Haible  <bruno@clisp.org>
17999
18000         getlogin: Move AC_LIBOBJ invocations to module description.
18001         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18002         here...
18003         * modules/getlogin (configure.ac): ... to here.
18004
18005 2011-05-08  Bruno Haible  <bruno@clisp.org>
18006
18007         getloadavg: Move AC_LIBOBJ invocations to module description.
18008         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18009         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18010         * modules/getloadavg (configure.ac): ... to here.
18011
18012 2011-05-08  Bruno Haible  <bruno@clisp.org>
18013
18014         gethrxtime: Move AC_LIBOBJ invocations to module description.
18015         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18016         LIB_GETHRXTIME from here...
18017         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18018         invocations from here...
18019         * modules/gethrxtime (configure.ac): ... to here.
18020
18021 2011-05-08  Bruno Haible  <bruno@clisp.org>
18022
18023         gethostname: Move AC_LIBOBJ invocations to module description.
18024         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18025         gl_PREREQ_GETHOSTNAME invocations from here...
18026         * modules/gethostname (configure.ac): ... to here.
18027
18028 2011-05-08  Bruno Haible  <bruno@clisp.org>
18029
18030         getgroups: Move AC_LIBOBJ invocations to module description.
18031         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18032         here...
18033         * modules/getgroups (configure.ac): ... to here.
18034
18035 2011-05-08  Bruno Haible  <bruno@clisp.org>
18036
18037         getdtablesize: Move AC_LIBOBJ invocations to module description.
18038         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18039         invocation from here...
18040         * modules/getdtablesize (configure.ac): ... to here.
18041
18042 2011-05-08  Bruno Haible  <bruno@clisp.org>
18043
18044         getdomainname: Move AC_LIBOBJ invocations to module description.
18045         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18046         gl_PREREQ_GETDOMAINNAME invocations from here...
18047         * modules/getdomainname (configure.ac): ... to here.
18048
18049 2011-05-08  Bruno Haible  <bruno@clisp.org>
18050
18051         getline: Move AC_LIBOBJ invocations to module description.
18052         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18053         invocations from here...
18054         * modules/getline (configure.ac): ... to here.
18055
18056 2011-05-08  Bruno Haible  <bruno@clisp.org>
18057
18058         getline: Simplify.
18059         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18060         It's already handled through the module dependency.
18061
18062 2011-05-08  Bruno Haible  <bruno@clisp.org>
18063
18064         getdelim: Move AC_LIBOBJ invocations to module description.
18065         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18066         and gl_PREREQ_GETDELIM invocations from here...
18067         * modules/getdelim (configure.ac): ... to here.
18068         (Depends-on): Fix condition.
18069
18070 2011-05-08  Bruno Haible  <bruno@clisp.org>
18071
18072         getcwd: Move AC_LIBOBJ invocations to module description.
18073         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18074         invocations from here...
18075         * modules/getcwd (configure.ac): ... to here.
18076
18077 2011-05-08  Bruno Haible  <bruno@clisp.org>
18078
18079         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18080         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18081         here...
18082         * modules/getcwd-lgpl (configure.ac): ... to here.
18083
18084 2011-05-07  Bruno Haible  <bruno@clisp.org>
18085
18086         crypto/gc: Move AC_LIBOBJ invocations to module description.
18087         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18088         * modules/crypto/gc (configure.ac): ... to here.
18089
18090 2011-05-07  Bruno Haible  <bruno@clisp.org>
18091
18092         fwriting: Move AC_LIBOBJ invocations to module description.
18093         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18094         here...
18095         * modules/fwriting (configure.ac): ... to here.
18096
18097 2011-05-07  Bruno Haible  <bruno@clisp.org>
18098
18099         fwritable: Move AC_LIBOBJ invocations to module description.
18100         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18101         here...
18102         * modules/fwritable (configure.ac): ... to here.
18103
18104 2011-05-07  Bruno Haible  <bruno@clisp.org>
18105
18106         futimens: Move AC_LIBOBJ invocations to module description.
18107         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18108         here...
18109         * modules/futimens (configure.ac): ... to here.
18110
18111 2011-05-07  Bruno Haible  <bruno@clisp.org>
18112
18113         ftruncate: Move AC_LIBOBJ invocations to module description.
18114         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18115         gl_PREREQ_FTRUNCATE invocations from here...
18116         * modules/ftruncate (configure.ac): ... to here.
18117
18118 2011-05-07  Bruno Haible  <bruno@clisp.org>
18119
18120         fsync: Move AC_LIBOBJ invocations to module description.
18121         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18122         invocations from here...
18123         * modules/fsync (configure.ac): ... to here.
18124
18125 2011-05-07  Bruno Haible  <bruno@clisp.org>
18126
18127         fsusage: Move AC_LIBOBJ invocations to module description.
18128         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18129         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18130         * modules/fsusage (configure.ac): ... to here.
18131
18132 2011-05-07  Bruno Haible  <bruno@clisp.org>
18133
18134         freopen: Move AC_LIBOBJ invocations to module description.
18135         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18136         invocations from here...
18137         * modules/freopen (configure.ac): ... to here.
18138
18139 2011-05-07  Bruno Haible  <bruno@clisp.org>
18140
18141         free: Move AC_LIBOBJ invocations to module description.
18142         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18143         invocations from here...
18144         * modules/free (configure.ac): ... to here.
18145
18146 2011-05-07  Bruno Haible  <bruno@clisp.org>
18147
18148         freadable: Move AC_LIBOBJ invocations to module description.
18149         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18150         here...
18151         * modules/freadable (configure.ac): ... to here.
18152
18153 2011-05-07  Bruno Haible  <bruno@clisp.org>
18154
18155         fpurge: Move AC_LIBOBJ invocations to module description.
18156         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18157         invocations from here...
18158         * modules/fpurge (configure.ac): ... to here.
18159
18160 2011-05-07  Bruno Haible  <bruno@clisp.org>
18161
18162         fpending: Move AC_LIBOBJ invocations to module description.
18163         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18164         gl_FUNC_FPENDING.
18165         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18166         invocations from here...
18167         * modules/fpending (configure.ac): ... to here.
18168
18169 2011-05-07  Bruno Haible  <bruno@clisp.org>
18170
18171         fopen: Move AC_LIBOBJ invocations to module description.
18172         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18173         invocations from here...
18174         * modules/fopen (configure.ac): ... to here.
18175
18176 2011-05-07  Bruno Haible  <bruno@clisp.org>
18177
18178         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18179         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18180         gl_FUNC_FNMATCH_POSIX.
18181         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18182         invocations from here...
18183         * modules/fnmatch (configure.ac): ... to here.
18184         * modules/fnmatch-gnu (configure.ac): ... and here.
18185
18186 2011-05-07  Bruno Haible  <bruno@clisp.org>
18187
18188         flock: Move AC_LIBOBJ invocations to module description.
18189         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18190         invocations from here...
18191         * modules/flock (configure.ac): ... to here.
18192
18193 2011-05-07  Bruno Haible  <bruno@clisp.org>
18194
18195         fileblocks: Move AC_LIBOBJ invocations to module description.
18196         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18197         gl_PREREQ_FILEBLOCKS invocations from here...
18198         * modules/fileblocks (configure.ac): ... to here.
18199
18200 2011-05-06  Bruno Haible  <bruno@clisp.org>
18201
18202         fflush: Move AC_LIBOBJ invocations to module description.
18203         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18204         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18205         invocations from here...
18206         * modules/fflush (configure.ac): ... to here.
18207
18208 2011-05-06  Bruno Haible  <bruno@clisp.org>
18209
18210         fdopendir: Move AC_LIBOBJ invocations to module description.
18211         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18212         here...
18213         * modules/fdopendir (configure.ac): ... to here.
18214         (Depends-on): Improve conditions.
18215
18216 2011-05-06  Bruno Haible  <bruno@clisp.org>
18217
18218         _Exit: Move AC_LIBOBJ invocations to module description.
18219         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18220         invocations from here...
18221         * modules/_Exit (configure.ac): ... to here.
18222
18223 2011-05-21  Bruno Haible  <bruno@clisp.org>
18224
18225         euidaccess: Respect rules for use of AC_LIBOBJ.
18226         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18228         from here...
18229         * modules/euidaccess (configure.ac): ... to here.
18230
18231 2011-05-06  Bruno Haible  <bruno@clisp.org>
18232
18233         error: Move AC_LIBOBJ invocations to module description.
18234         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18235         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18236         invocations from here...
18237         * modules/error (configure.ac): ... to here.
18238
18239 2011-05-06  Bruno Haible  <bruno@clisp.org>
18240
18241         duplocale: Move AC_LIBOBJ invocations to module description.
18242         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18243         gl_PREREQ_DUPLOCALE invocations from here...
18244         * modules/duplocale (configure.ac): ... to here.
18245
18246 2011-05-05  Bruno Haible  <bruno@clisp.org>
18247
18248         dirfd: Move AC_LIBOBJ invocations to module description.
18249         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18250         gl_FUNC_DIRFD.
18251         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18252         here...
18253         * modules/dirfd (configure.ac): ... to here.
18254         (Depends-on): Fix condition.
18255
18256 2011-05-05  Bruno Haible  <bruno@clisp.org>
18257
18258         chown: Respect rules for use of AC_LIBOBJ.
18259         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18260         * modules/chown (configure.ac): ... to here.
18261
18262 2011-05-05  Bruno Haible  <bruno@clisp.org>
18263
18264         chdir-long: Move AC_LIBOBJ invocations to module description.
18265         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18266         gl_PREREQ_CHDIR_LONG invocations from here...
18267         * modules/chdir-long (configure.ac): ... to here.
18268
18269 2011-05-05  Bruno Haible  <bruno@clisp.org>
18270
18271         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18272         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18273         from here...
18274         * modules/canonicalize-lgpl (configure.ac): ... to here.
18275
18276 2011-05-05  Bruno Haible  <bruno@clisp.org>
18277
18278         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18279         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18280         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18281         REPLACE_CALLOC.
18282         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18283         * modules/calloc-gnu (configure.ac): Likewise.
18284
18285 2011-05-05  Bruno Haible  <bruno@clisp.org>
18286
18287         btowc: Move AC_LIBOBJ invocations to module description.
18288         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18289         invocations from here...
18290         * modules/btowc (configure.ac): ... to here.
18291
18292 2011-05-21  Bruno Haible  <bruno@clisp.org>
18293
18294         atexit: Move AC_LIBOBJ invocations to module description.
18295         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18297         here...
18298         * modules/atexit (configure.ac): ... to here.
18299
18300 2011-05-05  Bruno Haible  <bruno@clisp.org>
18301
18302         atoll: Move AC_LIBOBJ invocations to module description.
18303         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18304         invocations from here...
18305         * modules/atoll (configure.ac): ... to here.
18306
18307 2011-05-05  Bruno Haible  <bruno@clisp.org>
18308
18309         argz: Move AC_LIBOBJ invocations to module description.
18310         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18311         * modules/argz (configure.ac): ... to here.
18312
18313 2011-05-05  Bruno Haible  <bruno@clisp.org>
18314
18315         alphasort: Move AC_LIBOBJ invocations to module description.
18316         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18317         gl_PREREQ_ALPHASORT invocations from here...
18318         * modules/alphasort (configure.ac): ... to here.
18319
18320 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18321
18322         verify: new macro verify_expr; verify_true deprecated
18323         * NEWS: Mention this.
18324         * doc/verify.texi (Compile-time Assertions): Document this.
18325         * lib/verify.h (verify_true): Deprecate.
18326         (verify_expr): New macro.
18327         * tests/test-verify.c (function): Test verify_expr.
18328
18329 2011-06-14  Jim Meyering  <meyering@redhat.com>
18330
18331         init.sh: give more portable redirection-related advice in a comment
18332         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18333         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18334         for lots of discussion.  Stefano Lattarini suggested the solution
18335         of putting "9>&2" after the command.  Reported by Bruno Haible.
18336
18337 2011-06-13  Bruno Haible  <bruno@clisp.org>
18338
18339         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18341         'none'.
18342
18343 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18344
18345         ftoastr: use strtof only if HAVE_STRTOF
18346         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18348         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18349         * modules/ftoastr (configure.ac): Check for strtof.
18350
18351 2011-06-13  Bruno Haible  <bruno@clisp.org>
18352
18353         gnulib-tool: Addendum to 2011-06-08 commit.
18354         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18355         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18356
18357 2011-06-13  Bruno Haible  <bruno@clisp.org>
18358
18359         fseeko: Provide a non-inline replacement of fseek().
18360         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18361         * modules/fseeko (Depends-on): Add fseek.
18362         * modules/fseek (License): Change to LGPLv2+.
18363
18364 2011-06-13  Bruno Haible  <bruno@clisp.org>
18365
18366         ftello: Provide a non-inline replacement of ftell().
18367         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18368         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18369         not have ftello() (such as on mingw).
18370         * modules/ftello (Depends-on): Add ftell.
18371         * modules/ftell (License): Change to LGPLv2+.
18372
18373 2011-05-07  Bruno Haible  <bruno@clisp.org>
18374
18375         ftell: Move AC_LIBOBJ invocations to module description.
18376         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18377         * modules/ftell (configure.ac): ... to here.
18378
18379 2011-05-07  Bruno Haible  <bruno@clisp.org>
18380
18381         ftello: Respect rules for use of AC_LIBOBJ.
18382         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18383         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18384         here...
18385         * modules/ftello (configure.ac): ... to here.
18386
18387 2011-05-07  Bruno Haible  <bruno@clisp.org>
18388
18389         fseeko: Simplify.
18390         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18391         (gl_FUNC_FSEEKO): Inline it here.
18392
18393 2011-05-07  Bruno Haible  <bruno@clisp.org>
18394
18395         fseek: Move AC_LIBOBJ invocations to module description.
18396         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18397         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18398         * modules/fseek (configure.ac): ... to here.
18399
18400 2011-05-07  Bruno Haible  <bruno@clisp.org>
18401
18402         fseek: Respect rules for use of AC_LIBOBJ.
18403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18404         here...
18405         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18406
18407 2011-05-07  Bruno Haible  <bruno@clisp.org>
18408
18409         fseeko: Respect rules for use of AC_LIBOBJ.
18410         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18411         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18412         here...
18413         * modules/fseeko (configure.ac): ... to here.
18414
18415 2011-06-13  Bruno Haible  <bruno@clisp.org>
18416
18417         gnulib-tool: Allow comments in the 'Depends-on' section.
18418         * doc/gnulib.texi (Module description): Mention comment syntax in the
18419         Depends-on section.
18420         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18421
18422 2011-06-13  Bruno Haible  <bruno@clisp.org>
18423
18424         file-set.h: guard __attibute__ use, now that it's not always defined
18425         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18426         versions that support it.  This fixes a coreutils build failure with
18427         the vendor cc on HP-UX 11.31.
18428
18429 2011-06-12  Bruno Haible  <bruno@clisp.org>
18430
18431         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18432         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18433         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18434         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18435         (acl, aclsort): New declarations.
18436         (aclv_nontrivial): New declaration.
18437         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18438         (file_has_acl): Read also the second kind of HP-UX ACLs.
18439         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18440         kind of HP-UX ACLs if the first kind fails.
18441         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18442         second kind of HP-UX ACLs.
18443         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18444         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18445         agree.
18446         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18447         hpuxjfs.
18448         Handle hpuxjfs.
18449         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18450         hpuxjfs.
18451         Handle hpuxjfs.
18452         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18453         (func_test_same_acls): Use both lsacl and getacl.
18454         Handle hpuxjfs.
18455         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18456         (func_test_same_acls): Use both lsacl and getacl.
18457         Handle hpuxjfs.
18458
18459 2011-06-12  Bruno Haible  <bruno@clisp.org>
18460
18461         acl: Complete the 2010-08-10 fix.
18462         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18463         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18464         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18465         explicitly.
18466         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18467         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18468
18469 2011-06-12  Bruno Haible  <bruno@clisp.org>
18470
18471         spawn-pipe tests: Comments.
18472         * tests/test-spawn-pipe-child.c (main): Update comment.
18473         Reported by James Youngman <jay@gnu.org>.
18474
18475 2011-06-11  James Youngman  <jay@gnu.org>
18476
18477         New module 'stat-size'.
18478         * modules/stat-size: New module.  Provides macros for accessing
18479         file size information in instances of struct stat.  Depends on the
18480         fileblocks module because it calls st_blocks.
18481         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18482         * doc/gnulib.texi: Include stat-size.texi.
18483         * doc/stat-size.texi: Documentation for this module.
18484         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18485         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18486         AC_STRUCT_ST_BLOCKS.
18487
18488 2011-06-09  Bruno Haible  <bruno@clisp.org>
18489
18490         thread: Support pthreads-win32.
18491         * lib/glthread/thread.h (gl_thread_self): Define differently on
18492         pthreads-win32.
18493         (gl_null_thread): New declaration.
18494         (gl_thread_self_pointer): New macro.
18495         * lib/glthread/thread.c (gl_null_thread): New constant.
18496         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18497         gl_thread_self.
18498         * tests/test-tls.c: Likewise.
18499         Suggested by Paul Eggert. Reported by Eric Blake.
18500
18501 2011-06-09  Bruno Haible  <bruno@clisp.org>
18502
18503         thread: Fix confusion between NULL and 0.
18504         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18505         Reported by Paul Eggert.
18506
18507 2011-06-09  Bruno Haible  <bruno@clisp.org>
18508
18509         spawn-pipe tests: Avoid test failure on HP-UX 11.
18510         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18511         is closed.
18512
18513 2011-06-09  Bruno Haible  <bruno@clisp.org>
18514
18515         acl tests: Fix compilation error on HP-UX 11.
18516         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18517
18518 2011-06-09  Bruno Haible  <bruno@clisp.org>
18519
18520         rmdir: Avoid test failure on HP-UX 10.20.
18521         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18522         EEXIST.
18523
18524 2011-06-08  Eric Blake  <eblake@redhat.com>
18525
18526         perror: fix test on mingw
18527         * modules/perror-tests (Depends-on): Add dup2.
18528
18529         strerror_r-posix: fix on MacOS
18530         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18531         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18532         logic bug.
18533         * lib/strerror_r.c (strerror_r): Fix the bug.
18534         * lib/strerror.c (strerror): Likewise.
18535         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18536         problem.
18537         * doc/posix-functions/strerror.texi (strerror): Likewise.
18538         * doc/posix-functions/perror.texi (perror): Likewise.
18539         * tests/test-strerror.c (main): Enhance test.
18540         * tests/test-strerror_r.c (main): Likewise.
18541
18542 2011-06-08  Bruno Haible  <bruno@clisp.org>
18543
18544         gnulib-tool: Better isolation between different gnulib-tool invocations.
18545         * gnulib-tool: New option --witness-c-macro.
18546         (witness_c_macro): New variable.
18547         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18548         AM_CPPFLAGS define it as a C macro.
18549         (func_emit_tests_Makefile_am): Likewise.
18550         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18551         read it from there.
18552         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18553         m4_define, not AC_DEFUN.
18554         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18555         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18556         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18557         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18558         s|...|...|, to substitute the values of the GNULIB_* module indicator
18559         variables.
18560         * modules/dirent (Makefile.am): Likewise.
18561         * modules/fcntl-h (Makefile.am): Likewise.
18562         * modules/iconv-h (Makefile.am): Likewise.
18563         * modules/langinfo (Makefile.am): Likewise.
18564         * modules/locale (Makefile.am): Likewise.
18565         * modules/math (Makefile.am): Likewise.
18566         * modules/netdb (Makefile.am): Likewise.
18567         * modules/poll-h (Makefile.am): Likewise.
18568         * modules/pty (Makefile.am): Likewise.
18569         * modules/search (Makefile.am): Likewise.
18570         * modules/signal (Makefile.am): Likewise.
18571         * modules/spawn (Makefile.am): Likewise.
18572         * modules/stdio (Makefile.am): Likewise.
18573         * modules/stdlib (Makefile.am): Likewise.
18574         * modules/string (Makefile.am): Likewise.
18575         * modules/sys_ioctl (Makefile.am): Likewise.
18576         * modules/sys_select (Makefile.am): Likewise.
18577         * modules/sys_socket (Makefile.am): Likewise.
18578         * modules/sys_stat (Makefile.am): Likewise.
18579         * modules/sys_times (Makefile.am): Likewise.
18580         * modules/sys_utsname (Makefile.am): Likewise.
18581         * modules/sys_wait (Makefile.am): Likewise.
18582         * modules/termios (Makefile.am): Likewise.
18583         * modules/time (Makefile.am): Likewise.
18584         * modules/unistd (Makefile.am): Likewise.
18585         * modules/wchar (Makefile.am): Likewise.
18586
18587 2011-06-08  Eric Blake  <eblake@redhat.com>
18588
18589         strerror: simplify replacement
18590         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18591         * modules/strerror (configure.ac): No prereqs needed here...
18592         * modules/strerror-override (configure.ac): ...but this needs it.
18593         (Files): Add file for needed prereq macro.
18594
18595 2011-06-08  Bruno Haible  <bruno@clisp.org>
18596
18597         strerror_r-posix: Tweaks.
18598         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18599         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18600         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18601         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18602         (gl_FUNC_STRERROR_R): ... to here.
18603         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18604
18605 2011-06-07  Eric Blake  <eblake@redhat.com>
18606
18607         perror: document fixed bugs
18608         * doc/posix-functions/perror.texi (perror): Document recent
18609         patches.
18610
18611 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18612
18613         stat-time: get_stat_birthtime failure is better-defined
18614         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18615         return a timestamp whose tv_sec and tv_nsec values are both -1.
18616         Previously, the spec said only that the tv_nsec value was negative.
18617         This upward-compatible change simplifies GNU tar a bit.
18618
18619 2011-06-07  Eric Blake  <eblake@redhat.com>
18620
18621         strerror_r-posix: work around cygwin 1.7.9
18622         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18623         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18624         bug without replacing strerror_r.
18625         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18626         strerror_r is buggy, but without requiring strerror_r compilation.
18627         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18628
18629         test-perror: relax test to ignore cygwin bug
18630         * tests/test-perror2.c (main): Relax test on requiring detection
18631         of stream errors, and use unbuffered stream.
18632         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18633         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18634         * doc/posix-functions/fputc.texi (fputc): Likewise.
18635         * doc/posix-functions/fputs.texi (fputs): Likewise.
18636         * doc/posix-functions/fputws.texi (fputws): Likewise.
18637         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18638         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18639         * doc/posix-functions/getopt.texi (getopt): Likewise.
18640         * doc/posix-functions/perror.texi (perror): Likewise.
18641         * doc/posix-functions/printf.texi (printf): Likewise.
18642         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18643         * doc/posix-functions/psignal.texi (psignal): Likewise.
18644         * doc/posix-functions/putc.texi (putc): Likewise.
18645         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18646         Likewise.
18647         * doc/posix-functions/putchar.texi (putchar): Likewise.
18648         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18649         Likewise.
18650         * doc/posix-functions/puts.texi (puts): Likewise.
18651         * doc/posix-functions/putwc.texi (putwc): Likewise.
18652         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18653         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18654         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18655         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18656         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18657         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18658         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18659         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18660
18661 2011-05-22  Bruno Haible  <bruno@clisp.org>
18662
18663         strerror: Move AC_LIBOBJ invocations to module description.
18664         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18665         gl_PREREQ_STRERROR invocations from here...
18666         * modules/strerror (configure.ac): ... to here.
18667
18668 2011-05-21  Bruno Haible  <bruno@clisp.org>
18669
18670         perror: Use common idiom.
18671         * modules/perror (configure.ac): Reorder statements.
18672
18673 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18674
18675         tests: fix usage message in 'mktempd_'
18676         * tests/init.sh (mktempd_): In the usage message, use literal
18677         'mktempd_', not '$ME' (which is even undefined), as the name of
18678         the subroutine.
18679
18680 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18681
18682         tests init: new function 'fatal_', for hard errors
18683         Before this patch, the only way offered by tests/init.sh to
18684         properly signal a hard error was the `framework_failure_'
18685         function.  But the error message issued by that function,
18686         as its name would suggest, refers to a set-up failure in the
18687         testsuite, while hard errors can obviously also be due to
18688         other reasons.  The best way to fix this inconsistency is to
18689         introduce a new function with a more general error message.
18690         * tests/init.sh (fatal_): New function.
18691
18692 2011-06-06  Eric Blake  <eblake@redhat.com>
18693
18694         canonicalize-lgpl: use common idiom
18695         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18696         over newer POSIX -Rf.
18697         Reported by Bruno Haible.
18698
18699         canonicalize-lgpl: work around AIX realpath bug
18700         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18701         * doc/posix-functions/realpath.texi (realpath): Document it.
18702         Reported by Bruno Haible.
18703
18704         strerror: work around FreeBSD bug
18705         * lib/strerror.c (strerror): Special case 0.
18706         Reported by Bruno Haible.
18707
18708         strerror-override: avoid bloating errno module
18709         * modules/errno (Files, configure.ac): Move replacement strings...
18710         * modules/strerror-override: ...to new module.
18711         * modules/strerror (Depends-on): Add strerror-override.
18712         * modules/strerror_r-posix (Depends-on): Likewise.
18713         * MODULES.html.sh: Document new module.
18714         Reported by Bruno Haible.
18715
18716 2011-06-06  Bruno Haible  <bruno@clisp.org>
18717
18718         spawn-pipe tests: Rename program.
18719         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18720         * tests/test-spawn-pipe-child.c: Update comment.
18721         * tests/test-spawn-pipe.sh: Update.
18722         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18723
18724         spawn-pipe tests: Link the child program only against libc.
18725         * tests/test-spawn-pipe-child.c: New file, extracted from
18726         tests/test-spawn-pipe.c.
18727         (main): Expect only one argument.
18728         (is_open): New function, copied from tests/test-pipe.c.
18729         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18730         (child_main): Remove function.
18731         (test_pipe): Pass only one argument to the child program.
18732         (main): Remove child process code. Expect the child program's name as
18733         first argument.
18734         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18735         argument.
18736         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18737         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18738         test-spawn-pipe-child against no libraries.
18739
18740 2011-06-06  Bruno Haible  <bruno@clisp.org>
18741
18742         careadlinkat: Avoid mismatch between ssize_t and int.
18743         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18744         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18745
18746 2011-06-06  Jim Meyering  <meyering@redhat.com>
18747
18748         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18749         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18750         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18751
18752 2011-06-05  Bruno Haible  <bruno@clisp.org>
18753
18754         ansi-c++-opt: Interoperability with libtool.
18755         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18756         set the variable to "no", not to ":".
18757         * NEWS: Mention the change.
18758
18759 2011-06-05  Bruno Haible  <bruno@clisp.org>
18760
18761         acl: Fix test failure on AIX 7.
18762         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18763         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18764
18765 2011-06-05  Bruno Haible  <bruno@clisp.org>
18766
18767         pipe-filter-ii: Fix test failure on AIX and IRIX.
18768         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18769         with EAGAIN, retry with a smaller buffer size.
18770
18771 2011-06-05  Bruno Haible  <bruno@clisp.org>
18772
18773         localename: Fix link dependencies.
18774         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18775         * modules/localename-tests (Makefile.am): Link test-localename with
18776         $(LIBTHREAD).
18777
18778 2011-06-05  Bruno Haible  <bruno@clisp.org>
18779
18780         error: Avoid gcc warning.
18781         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18782
18783 2011-06-05  Bruno Haible  <bruno@clisp.org>
18784
18785         unsetenv: Avoid gcc warning.
18786         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18787
18788 2011-06-05  Bruno Haible  <bruno@clisp.org>
18789
18790         setenv: Avoid gcc warning.
18791         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18792
18793 2011-06-05  Bruno Haible  <bruno@clisp.org>
18794
18795         sys_select: Ensure memset is declared also on AIX 7.
18796         * lib/sys_select.in.h: Include <string.h> also on AIX.
18797         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18798         self-contained also on AIX 7.1.
18799
18800 2011-06-04  Jim Meyering  <meyering@redhat.com>
18801
18802         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18803         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18804         function name, "error".
18805         (_gl_translatable_diag_func_re): New configurable variable.
18806
18807 2011-06-04  Bruno Haible  <bruno@clisp.org>
18808
18809         getopt: Avoid gcc warning.
18810         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18811
18812 2011-06-04  Bruno Haible  <bruno@clisp.org>
18813
18814         strerror_r: Fix comments.
18815         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18816         commit.
18817
18818 2011-06-04  Bruno Haible  <bruno@clisp.org>
18819
18820         perror: Fix compilation error.
18821         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18822         Undefine fprintf, not sprintf.
18823         * modules/perror (Depends-on): Remove intprops, verify.
18824
18825 2011-06-04  Bruno Haible  <bruno@clisp.org>
18826
18827         setlocale: Enable replacement on Cygwin 1.5.
18828         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18829         Cygwin 1.5.x.
18830         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18831         LC_CTYPE category also exists on Cygwin 1.5.x.
18832
18833 2011-06-04  Bruno Haible  <bruno@clisp.org>
18834
18835         strerror-override: Don't disable symbol renamings.
18836         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18837         * lib/strerror-override.c: Include config.h.
18838         (strerror_override): Don't undefine.
18839
18840 2011-06-03  Bruno Haible  <bruno@clisp.org>
18841
18842         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18843         * lib/localename.h: Update copyright header.
18844         * lib/localename.c: Likewise.
18845         * lib/relocatable.h: Likewise.
18846         * lib/relocatable.c: Likewise.
18847
18848 2011-06-02  Bruno Haible  <bruno@clisp.org>
18849
18850         doc: Fix a module name.
18851         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18852
18853 2011-06-02  Bruno Haible  <bruno@clisp.org>
18854
18855         pipe2: Remove dependency on 'nonblocking' module.
18856         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18857         O_NONBLOCK is defined by gnulib.
18858         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18859         is zero.
18860         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18861         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18862         defined by gnulib.
18863         (get_nonblocking_flag): New function.
18864         (main): Test O_NONBLOCK flag only if it is nonzero.
18865         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18866
18867 2011-06-03  Jim Meyering  <meyering@redhat.com>
18868
18869         maint: three new prohibit-header-without-use rules
18870         Prohibit use of cloexec.h, posixver.h, same.h without use.
18871         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18872         (sc_prohibit_posixver_without_use): Likewise.
18873         (sc_prohibit_same_without_use): Likewise.
18874
18875 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18876
18877         allocator: 'die' routine is now given requested size
18878         * lib/allocator.h (struct allocator.die): New size arg.
18879         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18880         If the actual problem is an ssize_t limitation, not a size_t or
18881         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18882
18883 2011-06-01  Eric Blake  <eblake@redhat.com>
18884
18885         strerror: drop strerror_r dependency
18886         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18887         * lib/strerror-override.c (strerror_override): ...to new file.
18888         * lib/strerror-override.h: Add prototype.
18889         * lib/strerror-impl.h: Delete.
18890         * lib/strerror.c (strerror): New implementation.
18891         * modules/errno (Files): Add new files.
18892         (configure.ac): Compile new file as appropriate.
18893         * modules/strerror (Files): Drop unused file.
18894         (Depends-on): Drop strerror_r-posix.
18895         * MODULES.html.sh: Document strerror_r-posix.
18896         Requested by Sam Steingold.
18897
18898         perror: call strerror_r directly
18899         * modules/perror (Files): Drop strerror-impl.h.
18900         * lib/perror.c (perror): Use our own stack buffer, rather than
18901         calling a wrapper that uses static storage.
18902         * doc/posix-functions/perror.texi (perror): Document a limitation
18903         of our replacement.
18904
18905         strerror_r: fix includes for FreeBSD
18906         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18907         since we use abort on some platforms.
18908         Reported by Matthias Bolte.
18909
18910 2011-05-31  Bruno Haible  <bruno@clisp.org>
18911
18912         Fix link errors in tests: openat-die uses gettext-h.
18913         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18914         against $(LIBINTL).
18915         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18916         against $(LIBINTL).
18917         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18918         $(LIBINTL).
18919         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18920         against $(LIBINTL).
18921         * modules/linkat-tests (Makefile.am): Link test-linkat against
18922         $(LIBINTL).
18923         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18924         $(LIBINTL).
18925         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18926         against $(LIBINTL).
18927         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18928         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18929         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18930         $(LIBINTL).
18931         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18932         $(LIBINTL).
18933         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18934         $(LIBINTL).
18935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18936
18937 2011-05-31  Bruno Haible  <bruno@clisp.org>
18938
18939         Fix link errors in tests: wait-process uses gettext-h.
18940         * modules/nonblocking-pipe-tests (Makefile.am): Set
18941         test_nonblocking_pipe_main_LDADD.
18942         * modules/nonblocking-socket-tests (Makefile.am): Link
18943         test-nonblocking-socket-main against $(LIBINTL).
18944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18945
18946 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18947
18948         assert-h: work around 'verify' incompatibility
18949         * lib/verify.h: Use @...@ directives, not ifdef.
18950         * modules/assert-h (assert.h): Implement the directives.
18951         (assert.h): Substitute the symbol-prefix more consistently.
18952
18953 2011-05-29  Jim Meyering  <meyering@redhat.com>
18954
18955         trim: remove three superfluous assignments
18956         * lib/trim.c (trim2): Remove three superfluous assignments
18957         and correct brace positioning.
18958
18959 2011-05-29  Bruno Haible  <bruno@clisp.org>
18960
18961         wctype-h: Avoid namespace pollution on Solaris 2.6.
18962         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18963         identifiers.
18964         * doc/posix-headers/wctype.texi: Mention the problem.
18965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18966
18967 2011-05-28  Jim Meyering  <meyering@redhat.com>
18968
18969         parse-datetime.y: accommodate -Wstrict-overflow
18970         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18971         placate -Wstrict-overflow.
18972
18973         trim: avoid a warning from -O2 -Wstrict-overflow
18974         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18975
18976 2011-05-29  Bruno Haible  <bruno@clisp.org>
18977
18978         gnulib-tool: Fix bug in yesterday's commit.
18979         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18980         twice.
18981
18982 2011-05-29  Bruno Haible  <bruno@clisp.org>
18983
18984         Allow multiple gnulib generated include files to be combined.
18985         * gnulib-tool (func_compute_include_guard_prefix): New function.
18986         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18987         ${gl_include_guard_prefix} references.
18988         (func_import, func_create_testdir): Invoke
18989         func_compute_include_guard_prefix.
18990         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18991         * lib/ctype.in.h: Likewise.
18992         * lib/dirent.in.h: Likewise.
18993         * lib/errno.in.h: Likewise.
18994         * lib/fcntl.in.h: Likewise.
18995         * lib/float.in.h: Likewise.
18996         * lib/getopt.in.h: Likewise.
18997         * lib/iconv.in.h: Likewise.
18998         * lib/langinfo.in.h: Likewise.
18999         * lib/locale.in.h: Likewise.
19000         * lib/math.in.h: Likewise.
19001         * lib/netdb.in.h: Likewise.
19002         * lib/netinet_in.in.h: Likewise.
19003         * lib/poll.in.h: Likewise.
19004         * lib/pthread.in.h: Likewise.
19005         * lib/pty.in.h: Likewise.
19006         * lib/sched.in.h: Likewise.
19007         * lib/se-selinux.in.h: Likewise.
19008         * lib/search.in.h: Likewise.
19009         * lib/signal.in.h: Likewise.
19010         * lib/spawn.in.h: Likewise.
19011         * lib/stdarg.in.h: Likewise.
19012         * lib/stddef.in.h: Likewise.
19013         * lib/stdint.in.h: Likewise.
19014         * lib/stdio.in.h: Likewise.
19015         * lib/stdlib.in.h: Likewise.
19016         * lib/string.in.h: Likewise.
19017         * lib/strings.in.h: Likewise.
19018         * lib/sys_file.in.h: Likewise.
19019         * lib/sys_ioctl.in.h: Likewise.
19020         * lib/sys_select.in.h: Likewise.
19021         * lib/sys_socket.in.h: Likewise.
19022         * lib/sys_stat.in.h: Likewise.
19023         * lib/sys_time.in.h: Likewise.
19024         * lib/sys_times.in.h: Likewise.
19025         * lib/sys_uio.in.h: Likewise.
19026         * lib/sys_utsname.in.h: Likewise.
19027         * lib/sys_wait.in.h: Likewise.
19028         * lib/sysexits.in.h: Likewise.
19029         * lib/termios.in.h: Likewise.
19030         * lib/time.in.h: Likewise.
19031         * lib/unistd.in.h: Likewise.
19032         * lib/wchar.in.h: Likewise.
19033         * lib/wctype.in.h: Likewise.
19034         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19035         * modules/ctype (Makefile.am): Likewise.
19036         * modules/dirent (Makefile.am): Likewise.
19037         * modules/errno (Makefile.am): Likewise.
19038         * modules/fcntl-h (Makefile.am): Likewise.
19039         * modules/float (Makefile.am): Likewise.
19040         * modules/getopt-posix (Makefile.am): Likewise.
19041         * modules/iconv-h (Makefile.am): Likewise.
19042         * modules/langinfo (Makefile.am): Likewise.
19043         * modules/locale (Makefile.am): Likewise.
19044         * modules/math (Makefile.am): Likewise.
19045         * modules/netdb (Makefile.am): Likewise.
19046         * modules/netinet_in (Makefile.am): Likewise.
19047         * modules/poll-h (Makefile.am): Likewise.
19048         * modules/pthread (Makefile.am): Likewise.
19049         * modules/pty (Makefile.am): Likewise.
19050         * modules/sched (Makefile.am): Likewise.
19051         * modules/search (Makefile.am): Likewise.
19052         * modules/selinux-h (Makefile.am): Likewise.
19053         * modules/signal (Makefile.am): Likewise.
19054         * modules/spawn (Makefile.am): Likewise.
19055         * modules/stdarg (Makefile.am): Likewise.
19056         * modules/stddef (Makefile.am): Likewise.
19057         * modules/stdint (Makefile.am): Likewise.
19058         * modules/stdio (Makefile.am): Likewise.
19059         * modules/stdlib (Makefile.am): Likewise.
19060         * modules/string (Makefile.am): Likewise.
19061         * modules/strings (Makefile.am): Likewise.
19062         * modules/sys_file (Makefile.am): Likewise.
19063         * modules/sys_ioctl (Makefile.am): Likewise.
19064         * modules/sys_select (Makefile.am): Likewise.
19065         * modules/sys_socket (Makefile.am): Likewise.
19066         * modules/sys_stat (Makefile.am): Likewise.
19067         * modules/sys_time (Makefile.am): Likewise.
19068         * modules/sys_times (Makefile.am): Likewise.
19069         * modules/sys_uio (Makefile.am): Likewise.
19070         * modules/sys_utsname (Makefile.am): Likewise.
19071         * modules/sys_wait (Makefile.am): Likewise.
19072         * modules/sysexits (Makefile.am): Likewise.
19073         * modules/termios (Makefile.am): Likewise.
19074         * modules/time (Makefile.am): Likewise.
19075         * modules/unistd (Makefile.am): Likewise.
19076         * modules/wchar (Makefile.am): Likewise.
19077         * modules/wctype-h (Makefile.am): Likewise.
19078         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19079
19080 2011-05-29  Bruno Haible  <bruno@clisp.org>
19081
19082         assert-h: Allow multiple gnulib generated replacements to coexist.
19083         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19084
19085 2011-05-29  Bruno Haible  <bruno@clisp.org>
19086
19087         argp: Allow coexistence with strerror_r-posix module.
19088         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19089         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19090         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19091         not the glibc signature.
19092
19093 2011-05-28  Bruno Haible  <bruno@clisp.org>
19094
19095         gnulib-tool: Alternative structure of testdirs, similar to --import.
19096         * gnulib-tool: New option --single-configure.
19097         (func_usage): Document it.
19098         (single_configure): New variable.
19099         (func_modules_transitive_closure_separately,
19100         func_modules_transitive_closure_separately,
19101         func_determine_use_libtests, func_modules_add_dummy_separately,
19102         func_modules_to_filelist_separately): New functions, extracted from
19103         func_import.
19104         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19105         (func_import): Use the new functions.
19106         (func_create_testdir): Set final_modules. Handle $single_configure =
19107         true case.
19108
19109 2011-05-28  Bruno Haible  <bruno@clisp.org>
19110
19111         getloadavg: Remove an unreliable safety check.
19112         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19113         getloadavg.c is in place.
19114         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19115         Reported by Sam Steingold <sds@gnu.org>.
19116
19117 2011-05-28  Bruno Haible  <bruno@clisp.org>
19118
19119         doc: Cleanup yet another file produced by texinfo.tex.
19120         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19121
19122 2011-05-28  Bruno Haible  <bruno@clisp.org>
19123
19124         Finish the conditional dependencies mechanism.
19125         * gnulib-tool: New option --no-conditional-dependencies.
19126         (func_usage): Document it. Don't mark --conditional-dependencies as
19127         experimental.
19128         (cond_dependencies): The possible values can now be true, false, empty.
19129         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19130         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19131         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19132
19133 2011-05-28  Bruno Haible  <bruno@clisp.org>
19134
19135         doc: Use a recent texinfo.tex.
19136         * doc/Makefile (tex_opts): New variable.
19137         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19138
19139 2011-05-28  Jim Meyering  <meyering@redhat.com>
19140
19141         intprops.h: adjust comment to match code change
19142         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19143         only once, it *may* have side effects.  Also fix an unrelated typo.
19144         (_GL_INT_SIGNED): Likewise.
19145
19146 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19147
19148         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19149
19150 2011-05-26  Bruno Haible  <bruno@clisp.org>
19151
19152         mbsrchr: Avoid collision with system function on Interix.
19153         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19154         Reported by Markus Duft <mduft@gentoo.org>.
19155
19156 2011-05-15  James Youngman  <jay@gnu.org>
19157
19158         getopt: for ambiguous options, enumerate the possibilities.
19159         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19160         the ambiguous options when an ambiguous prefix is given. This was
19161         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19162         glibc change was
19163         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19164
19165 2011-05-25  Eric Blake  <eblake@redhat.com>
19166
19167         getcwd: work around mingw bug
19168         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19169         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19170         Reported by Matthias Bolte.
19171
19172 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19173
19174         test-intprops: disable -Wtype-limits diagnostics
19175         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19176         diagnostics.  Otherwise, the integer overflow macros generate many
19177         diagnostics.  Reported by Jim Meyering in
19178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19179
19180         intprops: shorten, to pacify gcc -Woverlength-strings
19181         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19182         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19183         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19184         likely to run afoul of C compiler limits for string constant lengths.
19185         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19186
19187 2011-05-24  Eric Blake  <eblake@redhat.com>
19188
19189         docs: document recently fixed glibc printf bug
19190         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19191         * doc/posix-functions/printf.texi (printf): Likewise.
19192         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19193         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19194
19195         closein-tests: convert to init.sh
19196         * modules/closein-tests (Files): Add init.sh
19197         * tests/test-closein.sh Use it.
19198
19199         yesno-tests: convert to init.sh
19200         * modules/yesno-tests (Files): Add init.sh.
19201         * tests/test-yesno.sh: Use it.
19202
19203         atexit-tests: ensure reliable exit status
19204         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19205         Reported by Bruno Haible.
19206
19207 2011-05-24  Bruno Haible  <bruno@clisp.org>
19208
19209         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19210         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19211         gl_PREREQ_STRERROR_R invocations from here...
19212         * modules/strerror_r-posix (configure.ac): ... to here.
19213
19214 2011-05-24  Eric Blake  <eblake@redhat.com>
19215
19216         strerror_r: fix missing header
19217         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19218
19219         strerror_r: fix AIX test failures
19220         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19221         ERANGE failure.
19222
19223         strerror_r: fix Solaris test failures
19224         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19225         failures.
19226         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19227
19228         strerror_r: enforce POSIX recommendations
19229         * lib/strerror_r.c (safe_copy): New helper method.
19230         (strerror_r): Guarantee a non-empty string.
19231         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19232         recent POSIX rulings and to match our strerror guarantees.
19233         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19234
19235 2011-05-24  Jim Meyering  <meyering@redhat.com>
19236
19237         test-perror2.c: avoid warning about unused variable
19238         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19239
19240 2011-05-24  Eric Blake  <eblake@redhat.com>
19241
19242         perror: avoid spurious test failure on HP-UX
19243         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19244
19245         tests: fix logic bug in init.sh
19246         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19247         shell.
19248
19249 2011-05-24  Jim Meyering  <meyering@redhat.com>
19250
19251         utimensat: do not reference an out-of-scope buffer
19252         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19253         declared in an inner scope, yet "times" would be dereferenced outside
19254         the scope in which "ts" was valid.
19255         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19256         of ts[2] "out/up", so that the use of aliased "times" (via
19257         "times = ts;") does not end up referencing an out-of-scope "ts"
19258
19259         opendir-safer.c: don't clobber errno; don't close negative FD
19260         * lib/opendir-safer.c (opendir_safer):
19261         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19262         file descriptor, and more importantly, don't clobber the
19263         offending errno value with EINVAL.  Before, upon failure
19264         of dup_safer, we would pass the negative file descriptor to
19265         fdopendir, which would clobber errno.
19266
19267 2011-05-23  Bruno Haible  <bruno@clisp.org>
19268
19269         idcache: Fix module description.
19270         * modules/idcache (Include): Set to "idcache.h".
19271
19272 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19273
19274         gnulib-tool: fix portability problem with MacOS sed
19275         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19276         before the "}".  Problem reported by Leo in
19277         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19278         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19279         sed_extract_condition1, sed_extract_condition2.
19280
19281 2011-05-23  Bruno Haible  <bruno@clisp.org>
19282
19283         hash: Simplify autoconf macro.
19284         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19285
19286 2011-05-23  Bruno Haible  <bruno@clisp.org>
19287
19288         getugroups: Fix module description.
19289         * modules/getugroups (Include): Set to "getugroups.h".
19290
19291 2011-05-23  Bruno Haible  <bruno@clisp.org>
19292
19293         linkat: Simplify autoconf macro.
19294         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19295
19296 2011-05-23  Bruno Haible  <bruno@clisp.org>
19297             Eric Blake  <eblake@redhat.com>
19298
19299         linkat, renameat: Update dependencies.
19300         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19301         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19302         symlinkat.
19303
19304 2011-05-23  Jim Meyering  <meyering@redhat.com>
19305
19306         maint.mk: more tight_scope improvements
19307         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19308         (_gl_TS_headers): Define only in if-0'd block.
19309         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19310         sometimes we must *not* use it.  Adjust uses accordingly.
19311         (sc_tight_scope): Use much simpler grep-based test to determine
19312         whether we skip this rule.
19313
19314         maint.mk: generalize/improve the tight-scope rule
19315         * top/maint.mk: Emit a warning when the test is skipped.
19316         (_gl_TS_dir): Add $(srcdir)/ prefix.
19317         (_gl_TS_function_match): Simplify, rather than trying
19318         to enumerate common types.  Otherwise, it would fail to match an
19319         "extern unsigned char const *" declaration in idutils.
19320         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19321         a way to support use of that type of macro.
19322         (_gl_TS_var_match): Simplify regexp.
19323         (_gl_TS_obj_files): New configurable variable.
19324         (_gl_TS_headers): Likewise.
19325
19326 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19327
19328         verify: fix bug when gnulib <assert.h> is also included
19329         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19330         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19331         Perhaps there's a better way, but this fixes the immediate problem.
19332         Problem reported by Bruno Haible in
19333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19334
19335 2011-05-22  Bruno Haible  <bruno@clisp.org>
19336
19337         xgetcwd: Simplify autoconf macro.
19338         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19339
19340 2011-05-22  Bruno Haible  <bruno@clisp.org>
19341
19342         New module 'mktime-internal'.
19343         * modules/mktime-internal: New file.
19344         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19345         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19346         mktime_internal as a C macro if libc has __mktime_internal.
19347         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19348         conditions.
19349         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19350
19351 2011-05-22  Bruno Haible  <bruno@clisp.org>
19352
19353         timegm: Correct mktime replacement statements.
19354         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19355         defining mktime as a C macro. This completes a 2009-07-28 commit.
19356
19357 2011-05-22  Bruno Haible  <bruno@clisp.org>
19358
19359         timegm: Simplify autoconf macro.
19360         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19361
19362 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19363
19364         clock-time: change to LGPLv2+.
19365         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19366         BSD-like but we have no mark for that; this is good enough for now.
19367
19368 2011-05-21  Bruno Haible  <bruno@clisp.org>
19369
19370         strerror_r: Fix comments.
19371         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19372
19373 2011-05-21  Bruno Haible  <bruno@clisp.org>
19374
19375         relocatable-prog-wrapper: Fix possible link error.
19376         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19377         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19378         (gl_FUNC_SETENV): ... to here.
19379         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19380         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19381
19382 2011-05-21  Bruno Haible  <bruno@clisp.org>
19383
19384         relocatable-prog-wrapper: Assume strerror() exists.
19385         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19386         m4/strerror.m4.
19387         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19388         * lib/relocwrapper.c: Remove mention of strerror module.
19389         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19390         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19391         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19392         C macro.
19393
19394 2011-05-21  Bruno Haible  <bruno@clisp.org>
19395
19396         select: Simplify replacement idiom.
19397         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19398         Win32 platforms.
19399         * lib/sys_select.in.h (select): Simplify accordingly.
19400         * modules/select (Depends-on): Likewise.
19401
19402 2011-05-21  Bruno Haible  <bruno@clisp.org>
19403
19404         mkdir-p: Simplify autoconf macro.
19405         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19406         gl_FUNC_LCHOWN.
19407
19408 2011-05-21  Eric Blake  <eblake@redhat.com>
19409
19410         strerror_r: avoid clobbering strerror on cygwin
19411         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19412         fall back instead to sys_errlist.
19413         * modules/strerror (configure.ac): Add witness.
19414         * tests/test-strerror_r.c (main): Enhance test.
19415         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19416         * tests/test-perror2.c (main): Free memory before exit.
19417
19418 2011-05-21  Bruno Haible  <bruno@clisp.org>
19419
19420         mkdtemp: Use gnulib naming conventions.
19421         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19422         * modules/mkdtemp (configure.ac): Update.
19423
19424 2011-05-20  Eric Blake  <eblake@redhat.com>
19425
19426         strerror_r: avoid corrupting errno on Solaris
19427         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19428         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19429
19430         strerror_r: avoid compiler warning
19431         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19432
19433         strerror_r: simplify AIX code
19434         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19435
19436         test-perror: avoid spurious failure on FreeBSD
19437         * modules/perror-tests (Depends-on): Add strerror, now that
19438         strerror_r no longer pulls it in.
19439
19440 2011-05-20  Bruno Haible  <bruno@clisp.org>
19441
19442         strerror_r-posix: Remove unused dependencies.
19443         * modules/strerror_r-posix (Depends-on): Remove strerror.
19444         Reported by Eric Blake.
19445
19446 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19447
19448         intprops: remove assumption about A|B representation
19449         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19450         is a valid integer if both A and B are.  Although this is true for
19451         all known practical hosts, the C standard doesn't guarantee it,
19452         and the code need not assume it.  Also, this change may work around
19453         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19455
19456 2011-05-20  Eric Blake  <eblake@redhat.com>
19457
19458         perror: work around FreeBSD bug
19459         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19460         is broken.  Move AC_LIBOBJ...
19461         * modules/perror (configure.ac): Here.
19462         * doc/posix-functions/perror.texi (perror): Document this.
19463         * tests/test-perror2.c (main): Enhance test.
19464
19465         test-perror: check for strerror interactions
19466         * tests/macros.h (STREQ): Add macro.
19467         * modules/perror-tests (Files): Add second test.
19468         * tests/test-perror2.c (main): New file.
19469         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19470
19471         test-perror: rewrite to use init script
19472         * modules/perror-tests (Files): Add init.sh.
19473         * tests/test-perror.sh: Use temporary directory.
19474
19475 2011-05-20  Jim Meyering  <meyering@redhat.com>
19476
19477         maint: replace misused "a" with "an"
19478         * doc/intprops.texi: "a integer"
19479         * doc/regex.texi: "a explanation"
19480         * lib/alignof.h: "a object"
19481         * lib/argmatch.h: "a explanation"
19482         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19483         * lib/stdint.in.h: "a integer"
19484         * lib/userspec.c: "a owner"
19485         * doc/gnulib.texi: Fix "a idea", and reword.
19486
19487 2011-05-19  Jim Meyering  <meyering@redhat.com>
19488
19489         maint: correct misuse of "a" and "an"
19490         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19491         * lib/argp-help.c: "an docum...": s/an/a/
19492         * lib/argp-parse.c: "An vector": s/An/A/
19493         * lib/execute.c: "an native": s/an/a/
19494         * lib/spawn-pipe.c: Likewise.
19495         * lib/gc.h: "an Gc_rc": s/an/a/
19496         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19497         * lib/fts.c: "an stat.st_dev": s/an/a/
19498
19499 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         intprops-tests: work around HP-UX 11.23 cc bug with constants
19502         * tests/test-intprops.c (VERIFY): New macro.
19503         (main): Use it, instead of verify, to work around the compiler bug; see
19504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19505
19506         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19507         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19508         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19509         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19510         (_GL_REMAINDER_OVERFLOW): Use it.
19511
19512         intprops-tests: revert unsigned part of previous change
19513         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19514         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19515         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19517
19518 2011-05-19  Bruno Haible  <bruno@clisp.org>
19519
19520         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19521         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19522         strerror_r() returned without filling the buffer.
19523         Reported by Eric Blake.
19524
19525 2011-05-19  Eric Blake  <eblake@redhat.com>
19526
19527         strerror_r: guarantee unchanged errno
19528         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19529         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19530         failure.
19531         * tests/test-strerror_r.c (main): Enhance test.
19532
19533 2011-05-19  Bruno Haible  <bruno@clisp.org>
19534
19535         strerror_r: Reorder #if blocks.
19536         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19537         for consistency with the previous commit.
19538
19539 2011-05-19  Bruno Haible  <bruno@clisp.org>
19540
19541         perror: Avoid clobbering the strerror buffer when possible.
19542         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19543         * lib/strerror.c: Include it.
19544         * modules/strerror (Files): Add lib/strerror-impl.h.
19545         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19546         (my_strerror): New function, defined through lib/strerror-impl.h.
19547         (perror): Use it instead of strerror.
19548         * modules/perror (Files): Add lib/strerror-impl.h.
19549         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19550
19551 2011-05-19  Eric Blake  <eblake@redhat.com>
19552
19553         strerror_r: fix on newer cygwin
19554         * lib/strerror_r.c (strerror_r): Cygwin now has
19555         __xpg_strerror_r, use it.
19556
19557 2011-05-19  Bruno Haible  <bruno@clisp.org>
19558
19559         strerror_r: Avoid clobbering the strerror buffer when possible.
19560         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19561         (sys_nerr, sys_errlist): New declarations.
19562         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19563         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19564         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19565
19566 2011-05-19  Bruno Haible  <bruno@clisp.org>
19567
19568         strerror_r: Fix test failure on mingw.
19569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19570         EXTEND_STRERROR_R.
19571         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19572         macros from errno.in.h instead.
19573
19574 2011-05-19  Eric Blake  <eblake@redhat.com>
19575
19576         strerror: relax test for Solaris
19577         * tests/test-strerror.c (main): Permit Solaris behavior.
19578         * tests/test-strerror_r.c (main): Likewise.
19579
19580         strerror: enforce POSIX ruling on strerror(0)
19581         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19582         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19583         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19584         * doc/posix-functions/strerror.texi (strerror): Document it.
19585         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19586         * tests/test-strerror.c (main): Strengthen test.
19587         * tests/test-strerror_r.c (main): Likewise.
19588
19589 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19590
19591         intprop-tests: port to older and more-pedantic compilers
19592         * modules/intprops-tests (Files): Add tests/macros.h.
19593         * tests/test-intprops.c: Include macros.h.
19594         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19595         it's no longer documented to expand to an integer constant expression.
19596         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19597         argument is floating point, as it's no longer documented to expand
19598         to an integer constant expression in that case.
19599         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19600         compiler bugs reported by Bruno Haible.  See
19601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19602         (U0, U1): New constants, to work around the same bugs.  Also,
19603         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19604
19605         intprops: work around C compiler bugs
19606         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19607         bug in Sun C 5.11 2010/08/13 and other compilers; see
19608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19609
19610         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19611         * doc/intprops.texi (Integer Type Determination): Fix
19612         documentation for TYPE_IS_INTEGER: it returns an constant
19613         expression, not an integer constant expression.  Fix doc for
19614         TYPE_SIGNED: it returns an integer constant expression only if its
19615         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19616         hardly worth documented that way....)
19617
19618 2011-05-18  Bruno Haible  <bruno@clisp.org>
19619
19620         strerror_r: Avoid clobbering the strerror buffer when possible.
19621         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19622         Handle gnulib defined errno values here. When strerror() returns NULL
19623         or an empty string, return EINVAL.
19624         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19625         gnulib defined errno values here.
19626         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19627
19628 2011-05-18  Eric Blake  <eblake@redhat.com>
19629
19630         fnmatch: avoid compiler warning
19631         * lib/fnmatch_loop.c (FCT): Use correct type.
19632         Reported by Matthias Bolte.
19633
19634 2011-05-13  Jim Meyering  <meyering@redhat.com>
19635
19636         maint.mk: three new prohibit_<HDR>_without_use rules
19637         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19638         (sc_prohibit_stdio-safer_without_use): Likewise.
19639         (sc_prohibit_xfreopen_without_use): Likewise.
19640
19641 2011-05-17  Jim Meyering  <meyering@redhat.com>
19642
19643         announce-gen: fail if the NEWS delta is empty
19644         If there's nothing noteworthy in NEWS, then either you forgot
19645         or you shouldn't be releasing.
19646         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19647
19648 2011-05-17  Pádraig Brady <P@draigBrady.com>
19649
19650         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19651         reserved symbols starting with double underscore from the check.
19652
19653 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19654
19655         intprops: add doc
19656         * doc/intprops.texi: New file, documenting intprops.
19657         * doc/gnulib.texi (Particular Modules): Include it.
19658
19659         verify: add doc to gnulib manual and fix example
19660         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19661         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19662         (Compile-time Assertions): Fix example so it can't overflow.
19663
19664 2011-05-17  Jim Meyering  <meyering@redhat.com>
19665
19666         warnings.m4: don't usurp save_CPPFLAGS variable name
19667         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19668
19669         doc: fix typo
19670         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19671
19672 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19673             Bruno Haible  <bruno@clisp.org>
19674
19675         doc: Tweak recent change.
19676         * README (Portability guidelines): Tweak new text.
19677         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19678         Interix 6.1.
19679
19680 2011-05-16  Eric Blake  <eblake@redhat.com>
19681
19682         inttypes: avoid autoconf warning
19683         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19684         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19685
19686 2011-05-16  Sam Steingold <sds@gnu.org>
19687         and Eric Blake  <eblake@redhat.com>
19688
19689         vc-list-files: accept multiple directory operands
19690         * build-aux/vc-list-files: Iterate over all remaining operands.
19691
19692 2011-05-16  Bruno Haible  <bruno@clisp.org>
19693
19694         Fix confusion regarding deprecated modules.
19695         * modules/calloc (Status, Notice): Mark module as deprecated, not
19696         obsolete.
19697         * modules/fnmatch-posix (Status, Notice): Likewise.
19698         * modules/getdate (Status, Notice): Likewise.
19699         * modules/getopt (Status, Notice): Likewise.
19700         * modules/malloc (Status, Notice): Likewise.
19701         * modules/pipe (Status, Notice): Likewise.
19702         * modules/realloc (Status, Notice): Likewise.
19703         * modules/rename-dest-slash (Status, Notice): Likewise.
19704         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19705         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19706         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19707         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19708         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19709
19710 2011-05-16  Bruno Haible  <bruno@clisp.org>
19711
19712         doc: List the target platforms.
19713         * doc/gnulib-intro.texi (Target Platforms): New section.
19714         * doc/gnulib.texi (Introduction): Update menu.
19715         * README (Portability guidelines): Refer to the new section. Update
19716         statement about oldest supported environment. Remove rationale why
19717         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19718         unportable C89 function.
19719         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19720         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19721
19722 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19723
19724         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19725
19726 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19727
19728         intprops-tests: new module
19729         * modules/intprops-tests, tests/test-intprops.c: New files.
19730
19731         intprops: add safe, portable integer overflow checking
19732         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19733         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19734         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19735         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19736         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19737         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19738         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19739         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19740         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19741         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19742         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19743
19744 2011-05-12  James Youngman  <jay@gnu.org>
19745
19746         Add a test for glibc's Bugzilla bug #12378.
19747         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19748         doesn't allow the literal matching of a lone "[" (which is
19749         required by POSIX).
19750         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19751
19752 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19753
19754         Sync glibc change fixing Bugzilla bug #12378.
19755         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19756         beginning and fall back to matching as normal character if the
19757         string ends before the matching ']' is found.  This is what POSIX
19758         requires.
19759
19760 2011-05-13  Eric Blake  <eblake@redhat.com>
19761
19762         getcwd-lgpl: relax test for FreeBSD
19763         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19764         issue.
19765         * tests/test-getcwd-lgpl.c (main): Relax test.
19766         Reported by Matthias Bolte.
19767
19768 2011-05-11  Eric Blake  <eblake@redhat.com>
19769
19770         test-fflush: silence compiler warning
19771         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19772
19773 2011-05-11  Bruno Haible  <bruno@clisp.org>
19774
19775         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19777         * modules/canonicalize (Depends-on): Add 'nocrash'.
19778         * modules/canonicalize-lgpl (Depends-on): Likewise.
19779         * doc/posix-functions/realpath.texi: Update platforms list.
19780         Reported by Ryan Schmidt <ryandesign@macports.org>.
19781
19782 2011-05-11  Bruno Haible  <bruno@clisp.org>
19783
19784         group-member: Declare function in <unistd.h>.
19785         * lib/unistd.in.h (group_member): New declaration.
19786         * lib/group-member.h: Remove file.
19787         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19788         * tests/test-unistd-c++.cc: Check signature of group_member.
19789         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19790         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19791         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19792         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19793         HAVE_GROUP_MEMBER.
19794         * modules/group-member (Files): Remove lib/group-member.h.
19795         (Depends-on): Add unistd. Specify conditions.
19796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19797         (Include): Change to <unistd.h>.
19798         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19799         HAVE_GROUP_MEMBER.
19800         * NEWS: Mention the change.
19801         * lib/euidaccess.c: Don't include group-member.h.
19802
19803 2011-05-11  Bruno Haible  <bruno@clisp.org>
19804
19805         group-member: Document module.
19806         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19807         module.
19808
19809 2011-05-11  Bruno Haible  <bruno@clisp.org>
19810
19811         fclose: Fix mistake earlier today.
19812         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19813
19814 2011-05-11  Eric Blake  <eblake@redhat.com>
19815
19816         fclose: preserve fflush errors
19817         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19818         Reported by Jim Meyering.
19819
19820         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19821         * build-aux/bootstrap (check_versions): When no specific version
19822         is required, merely check that the app produces an exit status
19823         that indicates its existence.
19824
19825         maint.mk: drop redundant check
19826         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19827         the same but better.
19828
19829 2011-05-11  Bruno Haible  <bruno@clisp.org>
19830
19831         fclose: Fix possible link error.
19832         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19833         unregister_shadow_fd. Improve comments.
19834         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19835         Eric Blake.
19836
19837 2011-05-11  Jim Meyering  <meyering@redhat.com>
19838
19839         maint.mk: improve "can not" detection and generalize rule name
19840         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19841         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19842         Use the same technique as in sc_prohibit_doubled_word, so that
19843         we recognize "can not" also when the words are separated by a newline.
19844         Suggested by Eric Blake.
19845         (perl_filename_lineno_text_): Define.  Factored out of...
19846         (prohibit_doubled_word_): ...here.  Use the new definition.
19847         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19848         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19849         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19850
19851 2011-05-10  Eric Blake  <eblake@redhat.com>
19852
19853         fclose: avoid double close race when possible
19854         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19855         all but WINDOWS_SOCKETS.
19856
19857 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19858
19859         openat: correct new comment
19860         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19861
19862 2011-05-10  Jim Meyering  <meyering@redhat.com>
19863
19864         openat: add comments
19865         * lib/openat-proc.c (openat_proc_name): Add comments,
19866         mostly from Eric Blake.
19867
19868 2011-05-09  Eric Blake  <eblake@redhat.com>
19869
19870         openat: reduce syscalls in first probe of /proc
19871         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19872         be a directory.  Simplify the probe for .. bugs.
19873         * modules/openat (Depends-on): Drop same-inode.
19874         Reported by Bastien ROUCARIES.
19875
19876 2011-05-09  Jim Meyering  <meyering@redhat.com>
19877
19878         maint.mk: change semantics/name of tight_scope variables
19879         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19880         Rename variables to align with semantics that make them more useful.
19881
19882         maint.mk: tweak new rule's name not to impinge
19883         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19884         (sc_tight_scope): Use new rule name rather than $@-0.
19885
19886         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19887         * top/maint.mk (sc_tight_scope): New rule.
19888         (sc_tight_scope-0): New rule, ifdef'd out.
19889         (_gl_TS_dir): Default.
19890         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19891         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19892
19893 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19894
19895         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19896         Haible <bruno@clisp.org>.
19897
19898 2011-05-08  Bruno Haible  <bruno@clisp.org>
19899
19900         Comments.
19901         * m4/isnanf.m4: Add comment.
19902         * m4/isnanl.m4: Likewise.
19903
19904 2011-05-08  Bruno Haible  <bruno@clisp.org>
19905
19906         glob: Remove obsolete macro.
19907         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19908
19909 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19910
19911         intprops: Sun C 5.11 supports __typeof__
19912         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19913         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19914         which is new.
19915         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19916
19917         intprops: switch to usual gnulib indenting and naming
19918         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19919         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19920
19921         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19922
19923 2011-05-08  Jim Meyering  <meyering@redhat.com>
19924
19925         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19926         * top/maint.mk (release-prep): Use make's --no-print-directory
19927         option when generating the announcement.  This eliminates the
19928         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19929         generated announcement template.
19930
19931 2011-05-08  Bruno Haible  <bruno@clisp.org>
19932
19933         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19934         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19935         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19936
19937 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19938
19939         ignore-value, verify: Omit include files from lib_SOURCES.
19940         * modules/ignore-value, modules/verify (Makefile.am):
19941         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19942         that leads Automake to duplicate use of am__objects_... variables
19943         in Makefile.in.  See
19944         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19945
19946 2011-05-07  Bruno Haible  <bruno@clisp.org>
19947
19948         fclose: Simplify autoconf macro.
19949         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19950         defined.
19951
19952 2011-05-07  Bruno Haible  <bruno@clisp.org>
19953
19954         canonicalize-lgpl: Fix autoconf macro ordering bug.
19955         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19956         gl_STDLIB_H_DEFAULTS.
19957
19958 2011-05-06  Eric Blake  <eblake@redhat.com>
19959
19960         maintainer-makefile: make sc_po_check easier to tune
19961         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19962         to probe for strings, such as an alternate location for gnulib.
19963
19964         fclose: guarantee behavior on seekable stdin
19965         * modules/fclose (Depends-on): Add fflush.
19966         * doc/posix-functions/fclose.texi (fclose): Document this.
19967         * tests/test-fclose.c (main): Make test for this unconditional.
19968
19969 2011-05-06  Bruno Haible  <bruno@clisp.org>
19970
19971         fflush, fpurge: Relicense under LGPLv2+.
19972         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19973         * modules/fpurge (License): Likewise.
19974         With permission from Eric Blake and Jim Meyering.
19975         Suggested by Eric Blake.
19976
19977 2011-05-06  Karl Berry  <karl@gnu.org>
19978
19979         * MODULES.html.sh (func_all_modules): remove exit.
19980
19981 2011-05-06  Jim Meyering  <meyering@redhat.com>
19982
19983         maint.mk: use info-gnu@ as the default only for a stable release
19984         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19985         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19986         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19987         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19988
19989 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19990
19991         assert-h: new module, which supports C1X-style static_assert
19992         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19993         * lib/verify.h: Revamp so that this can be copied into assert.h,
19994         while retaining the ability to use it standalone as before.
19995         Rename private identifiers so as not to encroach on the
19996         standard C namespace, since this is now used by assert.h.
19997         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19998         the old verify_true.
19999         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20000         the old verify_true.  Use _GL_VERIFY_TYPE.
20001         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20002         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20003         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20004         defined when this file is copied into the replacement assert.h.
20005         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20006         and _Static_assert is not built in.
20007         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20008         defined, and use the new macros mentioned above.
20009         * doc/posix-headers/assert.texi: Document this.
20010
20011 2011-05-05  Bruno Haible  <bruno@clisp.org>
20012
20013         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20014         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20015         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20016         gl_REPLACE_FCLOSE here.
20017         * modules/fflush (Depends-on): Remove fclose.
20018         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20019         combination with module 'fclose'.
20020
20021 2011-05-05  Bruno Haible  <bruno@clisp.org>
20022
20023         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20024         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20025         gl_FUNC_FFLUSH.
20026         (gl_FUNC_FFLUSH): Use it.
20027         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20028         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20029         gl_REPLACE_FSEEKO here.
20030
20031 2011-05-05  Bruno Haible  <bruno@clisp.org>
20032
20033         tzset: Relicense under LGPL.
20034         * modules/tzset (License): Change to LGPL.
20035         No agreement needed; it's a no-op.
20036
20037         strtoimax, strtoumax: Relicense under LGPL.
20038         * modules/strtoimax (License): Change to LGPL.
20039         * modules/strtoumax (License): Likewise.
20040         With permission from Jim Meyering, Paul Eggert:
20041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20043
20044         getgroups: Relicense under LGPL.
20045         * modules/getgroups (License): Change to LGPL.
20046         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20050
20051         nanosleep: Relicense under LGPL.
20052         * modules/nanosleep (License): Change to LGPL.
20053         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20054         Haible:
20055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20059
20060         futimens: Relicense under LGPL.
20061         * modules/futimens (License): Change to LGPL.
20062         With permission from Eric Blake:
20063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20064
20065         fflush: Relicense under LGPL.
20066         * modules/fflush (License): Change to LGPL.
20067         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20071
20072         tmpfile: Relicense under LGPL.
20073         * modules/tmpfile (License): Change to LGPL.
20074         With permission from Ben Pfaff:
20075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20076
20077         isfinite: Relicense under LGPL.
20078         * modules/isfinite (License): Change to LGPL.
20079         With permission from Ben Pfaff, Bruno Haible:
20080         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20082
20083         acosl..tanl: Relicense under LGPL.
20084         * modules/acosl (License): Change to LGPL.
20085         * modules/asinl (License): Likewise.
20086         * modules/atanl (License): Likewise.
20087         * modules/cosl (License): Likewise.
20088         * modules/expl (License): Likewise.
20089         * modules/logl (License): Likewise.
20090         * modules/sinl (License): Likewise.
20091         * modules/sqrtl (License): Likewise.
20092         * modules/tanl (License): Likewise.
20093         Source code originally from glibc and Paolo Bonzini. Agreements:
20094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20096
20097 2011-05-05  Bruno Haible  <bruno@clisp.org>
20098
20099         signal: Define sighandler_t.
20100         * lib/signal.in.h (sighandler_t): New type.
20101         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20102         whether sighandler_t is defined.
20103         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20104         * modules/signal (Depends-on): Add extensions.
20105         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20106         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20107         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20108
20109 2011-05-05  Eric Blake  <eblake@redhat.com>
20110
20111         maint: remove useless REPLACE_*_H macros
20112         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20113         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20114         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20115         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20116         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20117         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20118         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20119         * m4/btowc.m4: Update callers.
20120         * m4/dirfd.m4: Likewise.
20121         * m4/duplocale.m4: Likewise.
20122         * m4/fchdir.m4: Likewise.
20123         * m4/fdopendir.m4: Likewise.
20124         * m4/inet_ntop.m4: Likewise.
20125         * m4/inet_pton.m4: Likewise.
20126         * m4/ioctl.m4: Likewise.
20127         * m4/mbrlen.m4: Likewise.
20128         * m4/mbrtowc.m4: Likewise.
20129         * m4/mbsinit.m4: Likewise.
20130         * m4/mbsnrtowcs.m4: Likewise.
20131         * m4/mbsrtowcs.m4: Likewise.
20132         * m4/poll.m4: Likewise.
20133         * m4/setlocale.m4: Likewise.
20134         * m4/wcrtomb.m4: Likewise.
20135         * m4/wcsnrtombs.m4: Likewise.
20136         * m4/wcsrtombs.m4: Likewise.
20137         * m4/wctob.m4: Likewise.
20138         * m4/wcwidth.m4: Likewise.
20139         * modules/posix_spawn: Likewise.
20140         * modules/posix_spawn_file_actions_addclose: Likewise.
20141         * modules/posix_spawn_file_actions_adddup2: Likewise.
20142         * modules/posix_spawn_file_actions_addopen: Likewise.
20143         * modules/posix_spawn_file_actions_destroy: Likewise.
20144         * modules/posix_spawn_file_actions_init: Likewise.
20145         * modules/posix_spawnattr_destroy: Likewise.
20146         * modules/posix_spawnattr_getflags: Likewise.
20147         * modules/posix_spawnattr_getpgroup: Likewise.
20148         * modules/posix_spawnattr_getschedparam: Likewise.
20149         * modules/posix_spawnattr_getschedpolicy: Likewise.
20150         * modules/posix_spawnattr_getsigdefault: Likewise.
20151         * modules/posix_spawnattr_getsigmask: Likewise.
20152         * modules/posix_spawnattr_init: Likewise.
20153         * modules/posix_spawnattr_setflags: Likewise.
20154         * modules/posix_spawnattr_setpgroup: Likewise.
20155         * modules/posix_spawnattr_setschedparam: Likewise.
20156         * modules/posix_spawnattr_setschedpolicy: Likewise.
20157         * modules/posix_spawnattr_setsigdefault: Likewise.
20158         * modules/posix_spawnattr_setsigmask: Likewise.
20159         * modules/posix_spawnp: Likewise.
20160
20161 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20162
20163         Add option to do-release-commit-and-tag to specify branch.
20164         * build-aux/do-release-commit-and-tag: Add --branch.
20165
20166 2011-05-03  Bruno Haible  <bruno@clisp.org>
20167
20168         Avoid unnecessary compilation units, through conditional dependencies.
20169         * modules/accept (Depends-on): Add conditions to the dependencies.
20170         * modules/acosl (Depends-on): Likewise.
20171         * modules/argz (Depends-on): Likewise.
20172         * modules/asinl (Depends-on): Likewise.
20173         * modules/atanl (Depends-on): Likewise.
20174         * modules/atoll (Depends-on): Likewise.
20175         * modules/bind (Depends-on): Likewise.
20176         * modules/btowc (Depends-on): Likewise.
20177         * modules/canonicalize-lgpl (Depends-on): Likewise.
20178         * modules/ceil (Depends-on): Likewise.
20179         * modules/ceilf (Depends-on): Likewise.
20180         * modules/ceill (Depends-on): Likewise.
20181         * modules/chdir-long (Depends-on): Likewise.
20182         * modules/chown (Depends-on): Likewise.
20183         * modules/close (Depends-on): Likewise.
20184         * modules/connect (Depends-on): Likewise.
20185         * modules/cosl (Depends-on): Likewise.
20186         * modules/dirfd (Depends-on): Likewise.
20187         * modules/dprintf (Depends-on): Likewise.
20188         * modules/dprintf-posix (Depends-on): Likewise.
20189         * modules/error (Depends-on): Likewise.
20190         * modules/euidaccess (Depends-on): Likewise.
20191         * modules/expl (Depends-on): Likewise.
20192         * modules/faccessat (Depends-on): Likewise.
20193         * modules/fchdir (Depends-on): Likewise.
20194         * modules/fclose (Depends-on): Likewise.
20195         * modules/fcntl (Depends-on): Likewise.
20196         * modules/fdopendir (Depends-on): Likewise.
20197         * modules/fflush (Depends-on): Likewise.
20198         * modules/floor (Depends-on): Likewise.
20199         * modules/floorf (Depends-on): Likewise.
20200         * modules/floorl (Depends-on): Likewise.
20201         * modules/fnmatch (Depends-on): Likewise.
20202         * modules/fopen (Depends-on): Likewise.
20203         * modules/fprintf-posix (Depends-on): Likewise.
20204         * modules/frexp (Depends-on): Likewise.
20205         * modules/frexp-nolibm (Depends-on): Likewise.
20206         * modules/frexpl (Depends-on): Likewise.
20207         * modules/frexpl-nolibm (Depends-on): Likewise.
20208         * modules/fseek (Depends-on): Likewise.
20209         * modules/fsusage (Depends-on): Likewise.
20210         * modules/ftell (Depends-on): Likewise.
20211         * modules/ftello (Depends-on): Likewise.
20212         * modules/futimens (Depends-on): Likewise.
20213         * modules/getcwd (Depends-on): Likewise.
20214         * modules/getcwd-lgpl (Depends-on): Likewise.
20215         * modules/getdelim (Depends-on): Likewise.
20216         * modules/getdomainname (Depends-on): Likewise.
20217         * modules/getgroups (Depends-on): Likewise.
20218         * modules/gethostname (Depends-on): Likewise.
20219         * modules/getline (Depends-on): Likewise.
20220         * modules/getlogin_r (Depends-on): Likewise.
20221         * modules/getopt-posix (Depends-on): Likewise.
20222         * modules/getpeername (Depends-on): Likewise.
20223         * modules/getsockname (Depends-on): Likewise.
20224         * modules/getsockopt (Depends-on): Likewise.
20225         * modules/getsubopt (Depends-on): Likewise.
20226         * modules/getusershell (Depends-on): Likewise.
20227         * modules/glob (Depends-on): Likewise.
20228         * modules/grantpt (Depends-on): Likewise.
20229         * modules/iconv_open (Depends-on): Likewise.
20230         * modules/iconv_open-utf (Depends-on): Likewise.
20231         * modules/inet_ntop (Depends-on): Likewise.
20232         * modules/inet_pton (Depends-on): Likewise.
20233         * modules/ioctl (Depends-on): Likewise.
20234         * modules/isapipe (Depends-on): Likewise.
20235         * modules/isfinite (Depends-on): Likewise.
20236         * modules/isinf (Depends-on): Likewise.
20237         * modules/lchown (Depends-on): Likewise.
20238         * modules/ldexpl (Depends-on): Likewise.
20239         * modules/link (Depends-on): Likewise.
20240         * modules/linkat (Depends-on): Likewise.
20241         * modules/listen (Depends-on): Likewise.
20242         * modules/logl (Depends-on): Likewise.
20243         * modules/lstat (Depends-on): Likewise.
20244         * modules/mbrlen (Depends-on): Likewise.
20245         * modules/mbrtowc (Depends-on): Likewise.
20246         * modules/mbsinit (Depends-on): Likewise.
20247         * modules/mbsnrtowcs (Depends-on): Likewise.
20248         * modules/mbsrtowcs (Depends-on): Likewise.
20249         * modules/mbtowc (Depends-on): Likewise.
20250         * modules/memcmp (Depends-on): Likewise.
20251         * modules/mkdir (Depends-on): Likewise.
20252         * modules/mkdtemp (Depends-on): Likewise.
20253         * modules/mkfifo (Depends-on): Likewise.
20254         * modules/mkfifoat (Depends-on): Likewise.
20255         * modules/mknod (Depends-on): Likewise.
20256         * modules/mkostemp (Depends-on): Likewise.
20257         * modules/mkostemps (Depends-on): Likewise.
20258         * modules/mkstemp (Depends-on): Likewise.
20259         * modules/mkstemps (Depends-on): Likewise.
20260         * modules/mktime (Depends-on): Likewise.
20261         * modules/nanosleep (Depends-on): Likewise.
20262         * modules/open (Depends-on): Likewise.
20263         * modules/openat (Depends-on): Likewise.
20264         * modules/perror (Depends-on): Likewise.
20265         * modules/poll (Depends-on): Likewise.
20266         * modules/popen (Depends-on): Likewise.
20267         * modules/posix_spawn (Depends-on): Likewise.
20268         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20269         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20270         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20271         * modules/posix_spawnp (Depends-on): Likewise.
20272         * modules/pread (Depends-on): Likewise.
20273         * modules/printf-posix (Depends-on): Likewise.
20274         * modules/ptsname (Depends-on): Likewise.
20275         * modules/putenv (Depends-on): Likewise.
20276         * modules/pwrite (Depends-on): Likewise.
20277         * modules/readline (Depends-on): Likewise.
20278         * modules/readlink (Depends-on): Likewise.
20279         * modules/readlinkat (Depends-on): Likewise.
20280         * modules/recv (Depends-on): Likewise.
20281         * modules/recvfrom (Depends-on): Likewise.
20282         * modules/regex (Depends-on): Likewise.
20283         * modules/remove (Depends-on): Likewise.
20284         * modules/rename (Depends-on): Likewise.
20285         * modules/renameat (Depends-on): Likewise.
20286         * modules/rmdir (Depends-on): Likewise.
20287         * modules/round (Depends-on): Likewise.
20288         * modules/roundf (Depends-on): Likewise.
20289         * modules/roundl (Depends-on): Likewise.
20290         * modules/rpmatch (Depends-on): Likewise.
20291         * modules/select (Depends-on): Likewise.
20292         * modules/send (Depends-on): Likewise.
20293         * modules/sendto (Depends-on): Likewise.
20294         * modules/setenv (Depends-on): Likewise.
20295         * modules/setlocale (Depends-on): Likewise.
20296         * modules/setsockopt (Depends-on): Likewise.
20297         * modules/shutdown (Depends-on): Likewise.
20298         * modules/sigaction (Depends-on): Likewise.
20299         * modules/signbit (Depends-on): Likewise.
20300         * modules/sigprocmask (Depends-on): Likewise.
20301         * modules/sinl (Depends-on): Likewise.
20302         * modules/sleep (Depends-on): Likewise.
20303         * modules/snprintf (Depends-on): Likewise.
20304         * modules/snprintf-posix (Depends-on): Likewise.
20305         * modules/socket (Depends-on): Likewise.
20306         * modules/sprintf-posix (Depends-on): Likewise.
20307         * modules/sqrtl (Depends-on): Likewise.
20308         * modules/stat (Depends-on): Likewise.
20309         * modules/strchrnul (Depends-on): Likewise.
20310         * modules/strdup-posix (Depends-on): Likewise.
20311         * modules/strerror (Depends-on): Likewise.
20312         * modules/strerror_r-posix (Depends-on): Likewise.
20313         * modules/strndup (Depends-on): Likewise.
20314         * modules/strnlen (Depends-on): Likewise.
20315         * modules/strptime (Depends-on): Likewise.
20316         * modules/strsep (Depends-on): Likewise.
20317         * modules/strsignal (Depends-on): Likewise.
20318         * modules/strstr-simple (Depends-on): Likewise.
20319         * modules/strtod (Depends-on): Likewise.
20320         * modules/strtoimax (Depends-on): Likewise.
20321         * modules/strtok_r (Depends-on): Likewise.
20322         * modules/strtoumax (Depends-on): Likewise.
20323         * modules/symlink (Depends-on): Likewise.
20324         * modules/symlinkat (Depends-on): Likewise.
20325         * modules/tanl (Depends-on): Likewise.
20326         * modules/tcgetsid (Depends-on): Likewise.
20327         * modules/tmpfile (Depends-on): Likewise.
20328         * modules/trunc (Depends-on): Likewise.
20329         * modules/truncf (Depends-on): Likewise.
20330         * modules/truncl (Depends-on): Likewise.
20331         * modules/uname (Depends-on): Likewise.
20332         * modules/unlink (Depends-on): Likewise.
20333         * modules/unlockpt (Depends-on): Likewise.
20334         * modules/unsetenv (Depends-on): Likewise.
20335         * modules/usleep (Depends-on): Likewise.
20336         * modules/utimensat (Depends-on): Likewise.
20337         * modules/vasprintf (Depends-on): Likewise.
20338         * modules/vdprintf (Depends-on): Likewise.
20339         * modules/vdprintf-posix (Depends-on): Likewise.
20340         * modules/vfprintf-posix (Depends-on): Likewise.
20341         * modules/vprintf-posix (Depends-on): Likewise.
20342         * modules/vsnprintf (Depends-on): Likewise.
20343         * modules/vsnprintf-posix (Depends-on): Likewise.
20344         * modules/vsprintf-posix (Depends-on): Likewise.
20345         * modules/wcrtomb (Depends-on): Likewise.
20346         * modules/wcscasecmp (Depends-on): Likewise.
20347         * modules/wcscspn (Depends-on): Likewise.
20348         * modules/wcsdup (Depends-on): Likewise.
20349         * modules/wcsncasecmp (Depends-on): Likewise.
20350         * modules/wcsnrtombs (Depends-on): Likewise.
20351         * modules/wcspbrk (Depends-on): Likewise.
20352         * modules/wcsrtombs (Depends-on): Likewise.
20353         * modules/wcsspn (Depends-on): Likewise.
20354         * modules/wcsstr (Depends-on): Likewise.
20355         * modules/wcstok (Depends-on): Likewise.
20356         * modules/wcswidth (Depends-on): Likewise.
20357         * modules/wctob (Depends-on): Likewise.
20358         * modules/wctomb (Depends-on): Likewise.
20359         * modules/wctype (Depends-on): Likewise.
20360         * modules/wcwidth (Depends-on): Likewise.
20361         * modules/write (Depends-on): Likewise.
20362
20363 2011-05-03  Bruno Haible  <bruno@clisp.org>
20364
20365         Support for conditional dependencies.
20366         * doc/gnulib.texi (Module description): Document the syntax of
20367         conditional dependencies.
20368         * gnulib-tool: New option --conditional-dependencies.
20369         (func_usage): Document it.
20370         (cond_dependencies): New variable.
20371         (func_get_automake_snippet_conditional,
20372         func_get_automake_snippet_unconditional): New functions, extracted from
20373         func_get_automake_snippet.
20374         (func_get_automake_snippet): Use them.
20375         (sed_first_32_chars): New variable.
20376         (func_module_shellfunc_name): New function.
20377         (func_module_shellvar_name): New function.
20378         (func_module_conditional_name): New function.
20379         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20380         func_cond_module_condition): New functions.
20381         (func_modules_transitive_closure): Add support for conditional
20382         dependencies.
20383         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20384         conditional automake snippet in an automake conditional.
20385         (func_emit_autoconf_snippets): Emit shell functions that contain the
20386         code for conditional modules.
20387         (func_import, func_create_testdir): Update specification.
20388
20389 2011-05-03  Eric Blake  <eblake@redhat.com>
20390
20391         test-getaddrinfo: report error information
20392         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20393
20394 2011-05-03  Jim Meyering  <meyering@redhat.com>
20395
20396         bootstrap: avoid build failure when $GZIP is set
20397         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20398         program name.  If defined at all, it is supposed to list gzip options.
20399         Reported by Alan Curry in http://debbugs.gnu.org/8609
20400
20401 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20402
20403         readme-release: new module with release instructions
20404         * modules/readme-release: New module.
20405         * top/README-release: New file, from coreutils, grep, diffutils.
20406         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20407
20408 2011-05-02  Eric Blake  <eblake@redhat.com>
20409
20410         fflush: also replace fclose when fixing fflush
20411         * modules/fflush (Depends-on): Add fclose.
20412         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20413         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20414         memstreams with no backing fd.
20415         * doc/posix-functions/fclose.texi (fclose): Document the use of
20416         fflush module to fix the bug.
20417         * tests/test-fclose.c (main): Relax test when fclose is used in
20418         isolation.
20419
20420         fclose: add some tests
20421         * modules/fclose-tests: New test module.
20422         * tests/test-fclose.c: New file.
20423         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20424
20425         fclose: reduced dependencies
20426         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20427         simpler lseek.
20428         * lib/fclose.c (rpl_fclose): Likewise.
20429         Reported by Simon Josefsson.
20430
20431         exit: drop remaining clients
20432         * modules/argmatch (Depends-on): Replace exit with stdlib.
20433         * modules/copy-file (Depends-on): Likewise.
20434         * modules/execute (Depends-on): Likewise.
20435         * modules/exitfail (Depends-on): Likewise.
20436         * modules/obstack (Depends-on): Likewise.
20437         * modules/pagealign_alloc (Depends-on): Likewise.
20438         * modules/pipe-filter-gi (Depends-on): Likewise.
20439         * modules/pipe-filter-ii (Depends-on): Likewise.
20440         * modules/savewd (Depends-on): Likewise.
20441         * modules/spawn-pipe (Depends-on): Likewise.
20442         * modules/wait-process (Depends-on): Likewise.
20443         * modules/xsetenv (Depends-on): Likewise.
20444         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20445         * modules/git-merge-changelog (Depends-on): Likewise.
20446         * modules/long-options (Depends-on): Likewise.
20447         * modules/pt_chown (Depends-on): Likewise.
20448         * modules/sysexits (Depends-on): Likewise.
20449
20450         freading: relax license from LGPLv3+ to LGPLv2+
20451         * modules/freading (License): Relax LGPL version.
20452
20453 2011-05-02  Bruno Haible  <bruno@clisp.org>
20454
20455         fchdir: Remove unused dependencies.
20456         * modules/fchdir (Depends-on): Remove include_next.
20457
20458 2011-05-02  Bruno Haible  <bruno@clisp.org>
20459
20460         gnulib-tool: Refactor.
20461         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20462         from func_emit_autoconf_snippets.
20463         (func_emit_autoconf_snippets): Use it.
20464
20465 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20466
20467         * NEWS: Document removal of 'exit'.
20468         * modules/exit: Remove file.
20469
20470 2011-05-01  Bruno Haible  <bruno@clisp.org>
20471
20472         Update DEPENDENCIES.
20473         * DEPENDENCIES (gettext): Recommend the newest release.
20474         Reported by Simon Josefsson.
20475
20476 2011-05-01  Bruno Haible  <bruno@clisp.org>
20477
20478         gnulib-tool: Reduce code duplication.
20479         * gnulib-tool (func_emit_autoconf_snippets): New function.
20480         (func_import, func_create_testdir): Use it.
20481
20482 2011-04-30  Eric Blake  <eblake@redhat.com>
20483
20484         fclose: don't fail on non-seekable input stream
20485         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20486         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20487         since fflush is allowed to fail in that case.
20488
20489 2011-04-30  Bruno Haible  <bruno@clisp.org>
20490
20491         dup3: cleanup
20492         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20493
20494 2011-04-30  Bruno Haible  <bruno@clisp.org>
20495
20496         netdb: Make it work in C++ mode.
20497         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20498         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20499         module.
20500         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20501         gl_MODULE_INDICATOR_FOR_TESTS.
20502         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20503         * modules/netdb-c++-tests: New file.
20504         * tests/test-netdb-c++.cc: New file.
20505
20506 2011-04-30  Bruno Haible  <bruno@clisp.org>
20507
20508         New modules 'vfscanf', 'vscanf'.
20509         * modules/vfscanf: New file.
20510         * modules/vscanf: New file.
20511         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20512         here.
20513         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20514         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20515
20516 2011-04-30  Bruno Haible  <bruno@clisp.org>
20517
20518         passfd: Add comments.
20519         * lib/passfd.c: Add comments about platforms.
20520
20521 2011-04-30  Bruno Haible  <bruno@clisp.org>
20522
20523         sys_uio: Make <sys/uio.h> self-contained.
20524         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20525         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20526
20527 2011-04-30  Bruno Haible  <bruno@clisp.org>
20528
20529         sys_socket: Ensure 'struct iovec' definition.
20530         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20531         <sys/socket.h>.
20532         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20533
20534 2011-04-30  Bruno Haible  <bruno@clisp.org>
20535
20536         sys_uio: Protect definition of 'struct iovec'.
20537         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20538         it as a C struct.
20539
20540 2011-04-30  Bruno Haible  <bruno@clisp.org>
20541
20542         manywarnings: fix indentation
20543         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20544
20545 2011-04-30  Pádraig Brady <P@draigBrady.com>
20546
20547         manywarnings: add -Wno-missing-field-initializers if needed.
20548         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20549         option if it's needed to allow initialization with { 0, }
20550
20551 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20552
20553         announce-gen: cosmetic improvement
20554         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20555
20556 2011-04-29  Jim Meyering  <meyering@redhat.com>
20557
20558         vc-list-files: indent with spaces, not TABs
20559         * build-aux/vc-list-files: Convert leading TABs to spaces,
20560         to match the style of most other files in gnulib.
20561
20562         announce-gen: indent with spaces, not TABs
20563         * build-aux/announce-gen: Convert all TABs to spaces, to match
20564         the style of most other files in gnulib.
20565
20566 2011-04-29  Eric Blake  <eblake@redhat.com>
20567
20568         quotearg: avoid uninitialized variable use
20569         * lib/quotearg.c (quoting_options_from_style): Initialize
20570         remaining fields, and ensure that custom styles are only used via
20571         quoting_options rather than quoting_style.
20572
20573 2011-04-29  Jim Meyering  <meyering@redhat.com>
20574
20575         maint.mk: remove unused VC-tag variable
20576         * top/maint.mk (VC-tag): Remove unused variable.
20577
20578 2011-04-29  Bruno Haible  <bruno@clisp.org>
20579
20580         netdb: fix gai_strerror replacements
20581         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20582         * modules/netdb: Substitute it.
20583
20584 2011-04-29  Jim Meyering  <meyering@redhat.com>
20585
20586         test-getcwd.c: avoid new set-but-not-used warning
20587         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20588         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20589         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20590         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20591
20592         test-hash.c: avoid a new shadowing warning
20593         * tests/test-hash.c (main): Don't shadow "dup".
20594
20595 2011-04-28  Eric Blake  <eblake@redhat.com>
20596
20597         getaddrinfo: fix gai_strerror signature
20598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20599         and work around mingw with UNICODE defined.
20600         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20601         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20602         * modules/netdb (Makefile.am): Substitute it.
20603         * lib/netdb.in.h (gai_strerror): Declare replacement.
20604         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20605         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20606         the fix.
20607
20608         getsockopt: avoid compiler warning
20609         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20610         Reported by Matthias Bolte.
20611
20612         tests: drop unused link dependency
20613         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20614         * modules/dirent-safer-tests (Makefile.am): Likewise.
20615         * modules/fdopendir-tests (Makefile.am): Likewise.
20616         * modules/mkfifoat-tests (Makefile.am): Likewise.
20617         * modules/openat-safer-tests (Makefile.am): Likewise.
20618         * modules/openat-tests (Makefile.am): Likewise.
20619         * modules/readlinkat-tests (Makefile.am): Likewise.
20620         * modules/symlinkat-tests (Makefile.am): Likewise.
20621         * modules/linkat-tests (Makefile.am): Likewise.
20622         (Depends-on): Switch to filenamecat-lgpl.
20623         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20624         LIBINTL.
20625         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20626         * tests/test-linkat.c (main): Don't require xalloc.
20627
20628         hash, mgetgroups: drop xalloc dependency
20629         * lib/hash.c (includes): Adjust includes.
20630         * lib/mgetgroups.c (includes): Likewise.
20631         (xgetgroups): Move...
20632         * lib/xgetgroups.c: ...to new file.
20633         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20634         * modules/xgetgroups: New file, split from...
20635         * modules/mgetgroups: ...here.
20636         (Depends-on): Add xalloc-oversized.
20637         * modules/hash (Depends-on): Likewise.
20638         * modules/hash-tests (Depends-on): Drop xalloc.
20639         (test_hash_LDADD): Drop unused library.
20640         * tests/test-hash.c (main): Break xalloc dependency.
20641         (includes): Drop unused include.
20642
20643         xalloc-oversized: new module
20644         * modules/xalloc-oversized: New module.
20645         * modules/xalloc (Depends-on): Add it.
20646         * lib/xalloc.h (xalloc_oversized): Move...
20647         * lib/xalloc-oversized.h: ...into new file.
20648
20649         utimecmp: drop dependency on xmalloc
20650         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20651         due to memory pressure.
20652         * modules/utimecmp (Depends-on): Drop xalloc.
20653
20654 2011-04-27  Eric Blake  <eblake@redhat.com>
20655
20656         getcwd: fix mingw bugs
20657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20658         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20659         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20660
20661 2011-04-27  Bruno Haible  <bruno@clisp.org>
20662
20663         mkstemps: Ensure declaration on MacOS X 10.5.
20664         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20665         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20666         MacOS X.
20667
20668 2011-04-27  Bruno Haible  <bruno@clisp.org>
20669
20670         mkstemp: More documentation.
20671         * doc/posix-functions/mkstemp.texi: Document header file problem on
20672         MacOS X.
20673
20674 2011-04-27  Bruno Haible  <bruno@clisp.org>
20675
20676         mkstemp: Tweak configure message when cross-compiling.
20677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20678         result as a guess.
20679
20680 2011-04-27  Bruno Haible  <bruno@clisp.org>
20681
20682         clean-temp: Clarify what it does.
20683         * lib/clean-temp.h: Add more comments.
20684         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20685         module.
20686         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20687         * doc/glibc-functions/mkstemps.texi: Likewise.
20688         * doc/glibc-functions/mkostemps.texi: Likewise.
20689
20690 2011-04-27  Eric Blake  <eblake@redhat.com>
20691
20692         fchdir: avoid extra chdir and fix test
20693         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20694         getcwd-lgpl.
20695         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20696         have to be canonical.
20697         (canonicalize_file_name): Drop unused macro.
20698         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20699
20700         filenamecat-lgpl: fix licence
20701         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20702         when it was first created.
20703
20704         linkat, renameat: add missing dependency
20705         * modules/linkat (Depends-on): Require getcwd-lgpl.
20706         * modules/renameat (Depends-on): Likewise.
20707
20708         tests: reduce dependencies
20709         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20710         * tests/test-renameat.c (main): Likewise.
20711         * modules/linkat-tests (Depends-on): Relax dependency.
20712         * modules/renameat-tests (Depends-on): Likewise.
20713         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20714         dependency explicit.
20715
20716         save-cwd: reduce default dependency
20717         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20718         * lib/save-cwd.c: Update comments.
20719         * NEWS: Document the semantic change.
20720
20721         getcwd: enhance tests
20722         * tests/test-getcwd-lgpl.c: New file, taken from...
20723         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20724         repeat long path stress tests from m4 probe.
20725         * modules/getcwd-lgpl-tests: New module.
20726         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20727         * m4/getcwd-abort-bug.m4: Update comment.
20728         * m4/getcwd-path-max.m4: Likewise.
20729
20730         getcwd-lgpl: new module
20731         * modules/getcwd-lgpl: New module.
20732         * lib/getcwd-lgpl.c: New file.
20733         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20734         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20735         * modules/getcwd (configure.ac): Set C witness.
20736         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20737
20738         getcwd: tweak comments
20739         * m4/getcwd-abort-bug.m4: Fix comments.
20740         * m4/getcwd-path-max.m4: Likewise.
20741         * m4/getcwd.m4: Likewise.
20742
20743 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20744         and Eric Blake  <eblake@redhat.com>
20745
20746         mkstemp: replace if system version uses wrong permissions
20747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20748         read/write mode bits set in file created by mkstemp.
20749         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20750
20751 2011-04-27  Eric Blake  <eblake@redhat.com>
20752
20753         passfd: avoid compiler warning
20754         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20755         Reported by Laine Stump.
20756
20757 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20758
20759         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20760         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20761
20762 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20763         and Eric Blake  <eblake@redhat.com>
20764
20765         mkstemp: mention clean-temp module
20766         * lib/mkstemp.c: Add comment.
20767         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20768
20769 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20770
20771         inttypes: also provide default values for 32-bit tests
20772         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20773         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20774
20775 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20776
20777         strtoumax: remove dependency on strtoimax
20778         This is like the strtoull change of yesterday.
20779         * modules/strtoumax (Files): Add lib/strtoimax.c.
20780         (Depends-on): Remove strtoimax and add verify.
20781
20782         inttypes-incomplete: new module
20783         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20784         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20785         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20786         of gl_INTTYPES_H.
20787         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20788         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20789         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20790         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20791         * modules/strtoumax, modules/xstrtol (Depends-on):
20792         Depend on inttypes-incomplete, not inttypes.
20793         * modules/inttypes-incomplete: New module, containing the contents
20794         of the old modules/inttypes module, except that the Files: section
20795         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20796         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20797         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20798         (Depends-on): Depend only on inttypes-incomplete.
20799         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20800
20801         inttypes: omit now-redundant strtoimax and strtoumax work
20802         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20803         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20804
20805         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20806         This supports apps that need pointers to strtoimax and strtoumax,
20807         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20808         nonexistent functions.  See
20809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20810         et seq.
20811         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20812         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20813         a macro.
20814         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20815
20816 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20817
20818         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20819
20820 2011-04-25  Bruno Haible  <bruno@clisp.org>
20821
20822         strtol, strtoul: Mark modules as obsolete.
20823         * modules/strtol (Status, Notice): New sections.
20824         * modules/strtoul (Status, Notice): New sections.
20825
20826 2011-04-25  Bruno Haible  <bruno@clisp.org>
20827
20828         strtod: Remove check for strtod, unless supporting old platforms.
20829         * modules/strtod-obsolete: New file.
20830         * m4/strtod-obsolete.m4: New file.
20831         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20832         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20833         * modules/strtod (Depends-on): Add strtod-obsolete.
20834         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20835
20836 2011-04-25  Bruno Haible  <bruno@clisp.org>
20837
20838         strcase: Make module obsolete.
20839         * modules/strcase (Status, Notice): New sections.
20840
20841 2011-04-25  Bruno Haible  <bruno@clisp.org>
20842
20843         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20844         * modules/dup2-obsolete: New file.
20845         * m4/dup2-obsolete.m4: New file.
20846         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20847         gl_FUNC_DUP2_OBSOLETE is not also defined.
20848         * modules/dup2 (Depends-on): Add dup2-obsolete.
20849         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20850
20851 2011-04-25  Bruno Haible  <bruno@clisp.org>
20852
20853         strnlen: Avoid memchr related link error on old obsolete platforms.
20854         * modules/memchr-obsolete: New file.
20855         * m4/memchr-obsolete.m4: New file.
20856         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20857         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20858         * modules/memchr (Depends-on): Add memchr-obsolete.
20859         * modules/strnlen (Depends-on): Likewise.
20860         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20861
20862 2011-04-25  Jim Meyering  <meyering@redhat.com>
20863
20864         maint.mk: makefile_at_at_check extend and clean up
20865         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20866         in addition to */Makefile.am.
20867         Exempt legitimate uses of @VAR@ notation, e.g.,
20868         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20869         Remove obsolete coreutils-specific comment.
20870         Prompted by discussion here:
20871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20872
20873 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20874
20875         strtoul: remove dependency on strtol
20876         This is so that 'configure' need not check for strtol merely because
20877         the application needs strtoul.
20878         * modules/strtoul (Files): Add lib/strtol.c.
20879         (Depends-on): Remove strtol.
20880
20881         strtoull: remove dependency on strtoul
20882         This is like the strtoll change.
20883         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20884         (Depends-on): Remove strtoul.
20885
20886         strtoll: remove dependency on strtol
20887         This is so that 'configure' need not check for strtol merely because
20888         the application needs strtoll.
20889         * modules/strtoll (Files): Add lib/strtol.c.
20890         (Depends-on): Remove strtol.
20891
20892 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20893
20894         inttypes: Move some configure check to module 'imaxdiv'.
20895         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20896         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20897         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20898
20899 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20900
20901         inttypes: Move some configure check to module 'imaxabs'.
20902         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20903         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20904         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20905
20906 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20907
20908         inttypes: Remove configure tests that are not needed since 2009-12-31.
20909         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20910         gl_cv_header_working_inttypes_h.
20911
20912 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20913
20914         * modules/strnlen (Depends-on): Remove memchr.
20915         The strnlen implementation doesn't need the memchr module's fixes; see
20916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20917
20918         strtol: remove dependency on wchar
20919         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20920         * modules/strtol (Depends-on): Remove wchar.
20921
20922 2011-04-21  Eric Blake  <eblake@redhat.com>
20923
20924         passfd: fix test regression on Linux
20925         * modules/passfd-tests (configure.ac): Correct socketpair check.
20926
20927         passfd: speed up configure and drop unused code
20928         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20929         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20930         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20931         Instead of probing at configure for unix_scm_rights_bsd44_way,
20932         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20933         check to a struct member probe.
20934         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20935         (sendfd, recvfd): Update preprocessor checks.
20936         * modules/passfd (Files): Reflect rename, and drop unused file.
20937         (Depends-on): Drop unused dependency.
20938
20939         passfd: allow compilation on mingw
20940         * modules/sys_socket (Depends-on): Add sys_uio.
20941         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20942         iovec and a minimal struct msghdr.
20943         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20944         * tests/test-sys_socket.c (main): Enhance test.
20945         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20946         guaranteed to provide what we need.
20947         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20948         * modules/passfd-tests (Depends-on): Add sys_wait.
20949         * tests/test-passfd.c (main): Skip test on mingw, for now.
20950         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20951         partial 'struct msghdr' implementation.
20952
20953         sys_uio: new module
20954         * modules/sys_uio: New module.
20955         * modules/sys_uio-tests: Likewise.
20956         * lib/sys_uio.in.h: New file.
20957         * m4/sys_uio_h.m4: Likewise.
20958         * tests/test-sys_uio.c: Likewise.
20959         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20960         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20961
20962 2011-04-20  Jim Meyering  <meyering@redhat.com>
20963
20964         useless-if-before-free: avoid false-positive
20965         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20966         disjunct so that it too requires a terminating ";".  Without that,
20967         this script would identify as useless one statement from gcc that
20968         was not:
20969           if (aligned_ptr)
20970             free (((void **) aligned_ptr) [-1]);
20971
20972 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20973
20974         doc: update users.txt.
20975         * users.txt: Add barcode.
20976
20977 2011-04-19  Bruno Haible  <bruno@clisp.org>
20978
20979         ioctl: Remove link dependency on native Windows.
20980         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20981         (gl_close_fn, gl_ioctl_fn): New types.
20982         (struct fd_hook): Renamed from struct close_hook. Change type of
20983         private_close_fn field. Add private_ioctl_fn field.
20984         (close_hook_fn): Add parameter for primary close method.
20985         (execute_close_hooks, execute_all_close_hooks): Likewise.
20986         (ioctl_hook_fn): New type.
20987         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20988         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20989         argument.
20990         (unregister_fd_hook): Renamed from unregister_close_hook.
20991         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20992         Don't include <unistd.h>.
20993         (close): Remove undef.
20994         (anchor): Update.
20995         (execute_close_hooks): Add argument for primary close method.
20996         (execute_all_close_hooks): Likewise.
20997         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20998         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20999         argument. Allow each argument to be NULL.
21000         (unregister_fd_hook): Renamed from unregister_close_hook.
21001         * lib/close.c (rpl_close): Pass 'close' function pointer to
21002         execute_all_close_hooks.
21003         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21004         (primary_ioctl): New function.
21005         (ioctl): Don't call ioctlsocket here. Instead, call
21006         execute_all_ioctl_hooks.
21007         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21008         close method.
21009         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21010         (fd_sockets_hook): Renamed from close_sockets_hook.
21011         (gl_sockets_startup, gl_sockets_cleanup): Update.
21012         * modules/fd-hook: Renamed from modules/close-hook. Update.
21013         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21014         * modules/sockets (Depends-on): Likewise.
21015         * modules/ioctl (Depends-on): Add fd-hook.
21016         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21017         GNULIB_SOCKET.
21018
21019 2011-04-19  Bruno Haible  <bruno@clisp.org>
21020
21021         Move the support of O_NONBLOCK in open() to the 'open' module.
21022         * modules/nonblocking (Depends-on): Remove 'open'.
21023         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21024         gl_cv_have_open_O_NONBLOCK.
21025         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21026         O_NONBLOCK support.
21027         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21028
21029 2011-04-17  Bruno Haible  <bruno@clisp.org>
21030
21031         pipe2: Simplify code.
21032         * lib/pipe2.c (pipe2): Reduce code duplication.
21033
21034 2011-04-17  Bruno Haible  <bruno@clisp.org>
21035
21036         nonblocking: Add comment.
21037         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21038
21039 2011-04-17  Bruno Haible  <bruno@clisp.org>
21040
21041         nonblocking: Add tests for sockets.
21042         * tests/test-nonblocking-socket.sh: New file.
21043         * tests/test-nonblocking-socket-main.c: New file.
21044         * tests/test-nonblocking-socket-child.c: New file.
21045         * tests/test-nonblocking-socket.h: New file.
21046         * tests/socket-server.h: New file.
21047         * tests/socket-client.h: New file.
21048         * modules/nonblocking-socket-tests: New file.
21049         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21050
21051 2011-04-17  Bruno Haible  <bruno@clisp.org>
21052
21053         nonblocking: Add tests for pipes.
21054         * tests/test-nonblocking-pipe.sh: New file.
21055         * tests/test-nonblocking-pipe-main.c: New file.
21056         * tests/test-nonblocking-pipe-child.c: New file.
21057         * tests/test-nonblocking-pipe.h: New file.
21058         * tests/test-nonblocking-writer.h: New file.
21059         * tests/test-nonblocking-reader.h: New file.
21060         * tests/test-nonblocking-misc.h: New file.
21061         * modules/nonblocking-pipe-tests: New file.
21062         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21063
21064 2011-04-16  Bruno Haible  <bruno@clisp.org>
21065
21066         gettext: Clarify the needed programmer actions.
21067         * modules/gettext (Notice): New field.
21068         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21069
21070 2011-04-16  Bruno Haible  <bruno@clisp.org>
21071
21072         strchrnul: Tweak last commit.
21073         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21074         bug.
21075         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21076         as in _GL_FUNCDECL_SYS.
21077         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21078         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21079
21080 2011-04-15  Eric Blake  <eblake@redhat.com>
21081
21082         strchrnul: work around cygwin bug
21083         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21086         * modules/string (Makefile.am): Substitute it.
21087         * lib/string.in.h (strchrnul): Use it.
21088
21089 2011-04-15  Bruno Haible  <bruno@clisp.org>
21090
21091         Don't require lib/stdio-write.c when only module 'stdio' is used.
21092         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21093         invocation.
21094         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21095
21096 2011-04-14  Bruno Haible  <bruno@clisp.org>
21097
21098         Support non-blocking pipe I/O in read() on native Windows.
21099         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21100         (read): New declaration.
21101         * lib/read.c: New file.
21102         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21103         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21104         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21105         vscanf): New declarations.
21106         * lib/stdio-read.c: New file.
21107         * m4/read.m4: New file.
21108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21109         REPLACE_READ.
21110         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21111         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21112         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21113         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21114         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21115         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21116         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21117         * modules/read: New file.
21118         * modules/nonblocking (Files): Add lib/stdio-read.c.
21119         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21120         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21121         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21122         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21123         * modules/pread (Depends-on): Add read.
21124         * modules/safe-read (Depends-on): Likewise.
21125         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21126         gets, scanf, vfscanf, vscanf): Verify signatures.
21127         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21128         problem with non-blocking pipes.
21129         * doc/posix-functions/fgetc.texi: Likewise.
21130         * doc/posix-functions/fgets.texi: Likewise.
21131         * doc/posix-functions/fread.texi: Likewise.
21132         * doc/posix-functions/fscanf.texi: Likewise.
21133         * doc/posix-functions/getc.texi: Likewise.
21134         * doc/posix-functions/getchar.texi: Likewise.
21135         * doc/posix-functions/gets.texi: Likewise.
21136         * doc/posix-functions/scanf.texi: Likewise.
21137         * doc/posix-functions/vfscanf.texi: Likewise.
21138         * doc/posix-functions/vscanf.texi: Likewise.
21139
21140 2011-04-14  Bruno Haible  <bruno@clisp.org>
21141
21142         Support non-blocking pipe I/O in write() on native Windows.
21143         * lib/write.c (rpl_write): Split a write request that failed merely
21144         because the byte count was larger than the pipe buffer's size.
21145         * doc/posix-functions/write.texi: Mention the problem with large byte
21146         counts.
21147
21148 2011-04-14  Bruno Haible  <bruno@clisp.org>
21149
21150         wchar: Ensure that wchar_t gets defined on uClibc.
21151         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21152         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21153
21154 2011-04-13  Bruno Haible  <bruno@clisp.org>
21155
21156         safe-write, full-read: Avoid unnecessary compilation units.
21157         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21158         (Depends-on): Remove safe-read. Add ssize_t.
21159         * modules/full-read (Files): Add lib/full-write.c.
21160         (Depends-on): Add full-write.
21161
21162 2011-04-13  Bruno Haible  <bruno@clisp.org>
21163
21164         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21165         * modules/pwrite (Depends-on): Add 'write'.
21166
21167 2011-04-13  Bruno Haible  <bruno@clisp.org>
21168
21169         Support non-blocking pipe I/O in write() on native Windows.
21170         * lib/unistd.in.h (write): Enable replacement also if
21171         GNULIB_UNISTD_H_NONBLOCKING is 1.
21172         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21173         (rpl_write): When failing to write on a non-blocking pipe, change
21174         errno from ENOSPC to EAGAIN.
21175         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21176         putchar, puts, vfprintf, vprintf): Enable replacement also if
21177         GNULIB_STDIO_H_NONBLOCKING is 1.
21178         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21179         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21180         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21181         CALL_WITH_SIGPIPE_EMULATION.
21182         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21183         * m4/nonblocking.m4: New file.
21184         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21185         for non-blocking I/O support.
21186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21187         GNULIB_UNISTD_H_NONBLOCKING.
21188         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21189         required for non-blocking I/O support.
21190         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21191         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21192         lib/stdio-write.c, m4/asm-underscore.m4.
21193         (Depends-on): Add stdio, unistd.
21194         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21195         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21196         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21197         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21198         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21199         problem with non-blocking pipes.
21200         * doc/posix-functions/fputc.texi: Likewise.
21201         * doc/posix-functions/fputs.texi: Likewise.
21202         * doc/posix-functions/fwrite.texi: Likewise.
21203         * doc/posix-functions/printf.texi: Likewise.
21204         * doc/posix-functions/putc.texi: Likewise.
21205         * doc/posix-functions/putchar.texi: Likewise.
21206         * doc/posix-functions/puts.texi: Likewise.
21207         * doc/posix-functions/vfprintf.texi: Likewise.
21208         * doc/posix-functions/vprintf.texi: Likewise.
21209         * doc/posix-functions/write.texi: Likewise.
21210
21211 2011-04-10  Jim Meyering  <meyering@redhat.com>
21212
21213         maint.mk: prohibit doubled words
21214         Detect them also when they're separated by a newline.
21215         There are 3 ways to customize it:
21216           - disable the test on a per file basis, as usual with rules using
21217             $(VC_LIST_EXCEPT)
21218           - replace the default doubled-word-selecting regexp (affects all files)
21219           - ignore a particular file-vs-doubled-word match
21220         I nearly used that last one to ignore the "is is" match in
21221         coreutils' NEWS file, since the text was "ls -is is ..."
21222         To do that, I would have added this line to cfg.mk:
21223           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21224         but it would have ignored any "is is" match in NEWS.
21225         Low probability, but still...
21226         Instead, I changed the text, slightly:
21227           -  ls -is is now consistent with ls -lis in ignoring values returned
21228           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21229         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21230         (prohibit_doubled_word_): Define.
21231         (sc_prohibit_doubled_word): New rule.
21232         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21233
21234 2011-04-10  Jim Meyering  <meyering@redhat.com>
21235
21236         maint: fix doubled-word typo in comment
21237         * m4/gethostname.m4: s/is is/it is/
21238         * m4/getdomainname.m4: Likewise.
21239
21240 2011-04-10  Jim Meyering  <meyering@redhat.com>
21241
21242         maint: remove doubled word: s/it it/it/
21243         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21244
21245 2011-04-10  Jim Meyering  <meyering@redhat.com>
21246
21247         maint.mk: remove useless semicolon and backslash
21248         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21249         semicolon and backslash.
21250
21251 2011-04-10  Bruno Haible  <bruno@clisp.org>
21252
21253         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21254         * modules/stdint-tests (Depends-on): Add wchar.
21255
21256 2011-04-10  Jim Meyering  <meyering@redhat.com>
21257
21258         maint: remove doubled words in comments, e.g., s/a a/a/
21259         * lib/strptime.c (day_of_the_week): s/the the/the/
21260         * tests/test-chown.h (test_chown): s/a a/a/
21261
21262         test-chown.h: correct a cast
21263         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21264         when the destination is a stat.st_gid.
21265
21266 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21267
21268         getaddrinfo: Fix test for sa_len member.
21269         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21270         include <sys/types.h> before <sys/socket.h>.
21271
21272 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21273
21274         maint: change "can not" to "cannot"
21275         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21276         boundaries.
21277
21278 2011-04-09  Jim Meyering  <meyering@redhat.com>
21279
21280         maint: change "a a" to "a"
21281         * tests/test-lchown.h (test_lchown): s/a a/a/
21282
21283         maint.mk: prohibit \<the the\>
21284         * top/maint.mk (sc_prohibit_the_the): New rule.
21285
21286         maint: fix "the the" in comment
21287         * lib/count-one-bits.h: s/the the/the/
21288
21289         maint: change "can not" to "cannot"
21290         But do not change the occurrences in maintain.texi or in
21291         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21292         * doc/gnulib-tool.texi: s/can not/cannot/
21293         * doc/posix-functions/accept.texi (accept): Likewise.
21294         * doc/posix-functions/socket.texi (socket): Likewise.
21295         * lib/mbrtowc.c: Likewise.
21296
21297         maint.mk: prohibit use of "can not"
21298         * top/maint.mk (sc_prohibit_can_not): New rule.
21299         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21300
21301 2011-04-09  Bruno Haible  <bruno@clisp.org>
21302
21303         careadlinkat: Guard against misuse of careadlinkatcwd.
21304         * lib/careadlinkat.c: Include <stdlib.h>.
21305         (careadlinkatcwd): Check that the fd argument is as expected.
21306
21307 2011-04-09  Bruno Haible  <bruno@clisp.org>
21308
21309         careadlinkat: Use common coding style.
21310         * lib/careadlinkat.c: Move gnulib includes after system includes.
21311
21312 2011-04-09  Bruno Haible  <bruno@clisp.org>
21313
21314         careadlinkat: Clarify specification.
21315         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21316         (careadlinkatcwd): Add comment.
21317         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21318
21319 2011-04-09  Bruno Haible  <bruno@clisp.org>
21320
21321         areadlinkat: Avoid link error on many platforms.
21322         * modules/areadlinkat (Depends-on): Add areadlink.
21323
21324 2011-04-09  Bruno Haible  <bruno@clisp.org>
21325
21326         allocator, careadlinkat: Fix double-inclusion guard.
21327         * lib/allocator.h: Fix double-inclusion guard.
21328         * lib/careadlinkat.h: Likewise.
21329
21330 2011-04-09  Bruno Haible  <bruno@clisp.org>
21331
21332         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21333         * lib/relocwrapper.c: Update dependencies hierarchy.
21334         * build-aux/install-reloc: Update list of files to be compiled.
21335         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21336         lib/allocator.[hc].
21337
21338 2011-04-08  Eric Blake  <eblake@redhat.com>
21339
21340         strftime: silence gnulib-tool warning
21341         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21342
21343 2011-04-08  Bruno Haible  <bruno@clisp.org>
21344
21345         verify: Fix syntax error with GCC 4.6 in C++ mode.
21346         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21347         (HAVE_STATIC_ASSERT): New macro.
21348         (verify_true, verify): Use 'static_assert' if it is supported and
21349         '_Static_assert' is not supported.
21350
21351 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21352
21353         allocator: New module.
21354         * modules/allocator, lib/allocator.c: New files.
21355         * lib/allocator.h (stdlib_allocator): New decl.
21356         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21357         Remove.  Do not include <stdlib.h>.
21358         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21359         * modules/careadlinkat (Files): Remove lib/allocator.h.
21360         (Depends-on): Add allocator.
21361
21362         stdlib: let modules use system malloc, realloc
21363         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21364         if !_GL_USE_STDLIB_ALLOC.
21365         (malloc, realloc): Limit this change to a smaller scope.
21366
21367         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21368         (malloc, realloc): Don't #undef; no longer needed.
21369         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21370         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21371         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21372         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21373         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21374         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21375         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21376         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21377
21378         careadlinkat: rename members to avoid problem
21379         * lib/allocator.h (struct allocator): Rename members from
21380         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21381         and realloc are #define'd.  Reported by Eric Blake in
21382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21383         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21384
21385 2011-04-08  Eric Blake  <eblake@redhat.com>
21386
21387         nonblocking: reduce dependency
21388         * tests/test-nonblocking.c: Only test sockets when in use.
21389         * modules/nonblocking-tests (Depends-on): Drop socket.
21390         (Makefile.am): Link even if sockets are not present.
21391         * modules/pipe2-tests (Makefile.am): Likewise.
21392         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21393
21394         pipe2: fix O_NONBLOCK support on mingw
21395         * modules/pipe2 (Depends-on): Add nonblocking.
21396         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21397         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21398         * tests/test-nonblocking.c (main): Likewise.
21399         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21400
21401         fcntl-h: fix O_ACCMODE on cygwin
21402         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21403         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21404
21405         pipe-filter: drop O_NONBLOCK workarounds
21406         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21407         * modules/pipe-filter-ii (Depends-on): Likewise.
21408         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21409
21410         nonblocking: provide O_NONBLOCK for mingw
21411         * modules/nonblocking (Depends-on): Add open.
21412         (configure.ac): Set new witness macro.
21413         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21414         * modules/fcntl-h (Makefile.am): Substitute it.
21415         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21416         nonblocking module is in use.
21417         * lib/nonblocking.c: Adjust portability test.
21418         * lib/open.c (open): Don't let native open see gnulib flag.
21419         * tests/test-fcntl-h.c (main): Enhance test.
21420         * tests/test-open.h (test_open): Likewise.
21421         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21422
21423         careadlinkat: fix compilation error on mingw
21424         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21425         within struct allocator.
21426
21427 2011-04-06  Eric Blake  <eblake@redhat.com>
21428
21429         binary-io: relicense under LGPLv2+
21430         * modules/binary-io (License): Relax to LGPLv2+.
21431         Requested for libvirt, and required by pipe2.
21432
21433 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21434
21435         verify: use _Static_assert if available
21436         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21437         (verify_true, verify): Use it if available.  This generates better
21438         diagnostics with GCC 4.6.0 and later.
21439
21440 2011-04-05  Bruno Haible  <bruno@clisp.org>
21441
21442         Remove leftover generated .h files after config.status changed.
21443
21444         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21445         GL_GENERATE_ALLOCA_H.
21446         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21447         GL_GENERATE_ALLOCA_H evaluates to false.
21448
21449         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21450         GL_GENERATE_ARGZ_H.
21451         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21452         evaluates to false.
21453
21454         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21455         GL_GENERATE_BYTESWAP_H.
21456         * modules/byteswap (Makefile.am): Remove byteswap.h if
21457         GL_GENERATE_BYTESWAP_H evaluates to false.
21458
21459         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21460         GL_GENERATE_ERRNO_H.
21461         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21462         evaluates to false.
21463
21464         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21465         GL_GENERATE_FLOAT_H.
21466         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21467         evaluates to false.
21468
21469         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21470         GL_GENERATE_FNMATCH_H.
21471         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21472         GL_GENERATE_FNMATCH_H evaluates to false.
21473
21474         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21475         GL_GENERATE_GLOB_H.
21476         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21477         evaluates to false.
21478
21479         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21480         automake conditional GL_GENERATE_ICONV_H.
21481         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21482         evaluates to false.
21483
21484         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21485         GL_GENERATE_NETINET_IN_H.
21486         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21487         GL_GENERATE_NETINET_IN_H evaluates to false.
21488
21489         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21490         conditional GL_GENERATE_PTHREAD_H.
21491         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21492         * modules/pthread (Makefile.am): Remove pthread.h if
21493         GL_GENERATE_PTHREAD_H evaluates to false.
21494
21495         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21496         GL_GENERATE_SCHED_H.
21497         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21498         evaluates to false.
21499
21500         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21501         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21502         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21503         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21504
21505         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21506         GL_GENERATE_STDARG_H.
21507         * modules/stdarg (Makefile.am): Remove stdarg.h if
21508         GL_GENERATE_STDARG_H evaluates to false.
21509
21510         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21511         GL_GENERATE_STDBOOL_H.
21512         * modules/stdbool (Makefile.am): Remove stdbool.h if
21513         GL_GENERATE_STDBOOL_H evaluates to false.
21514
21515         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21516         conditional GL_GENERATE_STDDEF_H.
21517         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21518         * modules/stddef (Makefile.am): Remove stddef.h if
21519         GL_GENERATE_STDDEF_H evaluates to false.
21520
21521         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21522         GL_GENERATE_STDINT_H.
21523         * modules/stdint (Makefile.am): Remove stdint.h if
21524         GL_GENERATE_STDINT_H evaluates to false.
21525
21526         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21527         GL_GENERATE_SYSEXITS_H.
21528         * modules/sysexits (Makefile.am): Remove sysexits.h if
21529         GL_GENERATE_SYSEXITS_H evaluates to false.
21530
21531         Reported by Karl Berry and Ralf Wildenhues.
21532
21533 2011-04-05  Bruno Haible  <bruno@clisp.org>
21534
21535         Ensure to rebuild generated .h files when config.status has changed.
21536         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21537         config.status.
21538         * modules/ctype (Makefile.am): Likewise.
21539         * modules/dirent (Makefile.am): Likewise.
21540         * modules/errno (Makefile.am): Likewise.
21541         * modules/fcntl-h (Makefile.am): Likewise.
21542         * modules/float (Makefile.am): Likewise.
21543         * modules/getopt-posix (Makefile.am): Likewise.
21544         * modules/glob (Makefile.am): Likewise.
21545         * modules/iconv-h (Makefile.am): Likewise.
21546         * modules/inttypes (Makefile.am): Likewise.
21547         * modules/langinfo (Makefile.am): Likewise.
21548         * modules/locale (Makefile.am): Likewise.
21549         * modules/math (Makefile.am): Likewise.
21550         * modules/netdb (Makefile.am): Likewise.
21551         * modules/netinet_in (Makefile.am): Likewise.
21552         * modules/poll-h (Makefile.am): Likewise.
21553         * modules/pthread (Makefile.am): Likewise.
21554         * modules/pty (Makefile.am): Likewise.
21555         * modules/sched (Makefile.am): Likewise.
21556         * modules/search (Makefile.am): Likewise.
21557         * modules/selinux-h (Makefile.am): Likewise.
21558         * modules/signal (Makefile.am): Likewise.
21559         * modules/spawn (Makefile.am): Likewise.
21560         * modules/stdarg (Makefile.am): Likewise.
21561         * modules/stdbool (Makefile.am): Likewise.
21562         * modules/stddef (Makefile.am): Likewise.
21563         * modules/stdint (Makefile.am): Likewise.
21564         * modules/stdio (Makefile.am): Likewise.
21565         * modules/stdlib (Makefile.am): Likewise.
21566         * modules/string (Makefile.am): Likewise.
21567         * modules/strings (Makefile.am): Likewise.
21568         * modules/sys_file (Makefile.am): Likewise.
21569         * modules/sys_ioctl (Makefile.am): Likewise.
21570         * modules/sys_select (Makefile.am): Likewise.
21571         * modules/sys_socket (Makefile.am): Likewise.
21572         * modules/sys_stat (Makefile.am): Likewise.
21573         * modules/sys_time (Makefile.am): Likewise.
21574         * modules/sys_times (Makefile.am): Likewise.
21575         * modules/sys_utsname (Makefile.am): Likewise.
21576         * modules/sys_wait (Makefile.am): Likewise.
21577         * modules/sysexits (Makefile.am): Likewise.
21578         * modules/termios (Makefile.am): Likewise.
21579         * modules/time (Makefile.am): Likewise.
21580         * modules/unistd (Makefile.am): Likewise.
21581         * modules/wchar (Makefile.am): Likewise.
21582         * modules/wctype-h (Makefile.am): Likewise.
21583         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21584
21585 2011-04-05  Bruno Haible  <bruno@clisp.org>
21586
21587         pipe2: Relicense under LGPLv2+.
21588         * modules/pipe2 (License): Change to LGPLv2+.
21589         Requested by Eric Blake, for libvirt.
21590
21591 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21592
21593         bootstrap: compute gnulib_extra_files after updating build_aux
21594         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21595         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21596
21597 2011-04-05  Eric Blake  <eblake@redhat.com>
21598
21599         bootstrap: preserve git whitelist item sorting
21600         * build-aux/bootstrap (sort_patterns): New function.
21601         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21602
21603 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21604
21605         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21606         sc_space_tab check.
21607
21608 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21609
21610         areadlink, areadlinkat: rewrite in terms of careadlinkat
21611         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21612         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21613         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21614         (malloc, realloc): Remove #undefs.
21615         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21616         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21617         readlink, ssize_t, stdint, unistd.
21618         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21619         areadlink, stdint.
21620
21621         careadlinkat: new module
21622         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21623         * modules/careadlinkat: New files, written by me with
21624         a review and feedback from Ben Pfaff in
21625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21626
21627 2011-04-01  Bruno Haible  <bruno@clisp.org>
21628
21629         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21630         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21631         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21632         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21633         Reported by Bruce Korb <bruce.korb@gmail.com>.
21634
21635 2011-04-01  Bruno Haible  <bruno@clisp.org>
21636
21637         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21638         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21639         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21640         * modules/wcpcpy (Depends-on): Add extensions.
21641         * modules/wcpncpy (Depends-on): Likewise.
21642         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21643         systems.
21644         * doc/posix-functions/wcpncpy.texi: Likewise.
21645         * doc/posix-functions/wcwidth.texi: Likewise.
21646
21647 2011-03-31  Eric Blake  <eblake@redhat.com>
21648
21649         nonblocking: fix mingw test failures
21650         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21651         non-blocking flag on regular file.
21652         (get_nonblocking_flag): Set errno on invalid fd.
21653         * tests/test-nonblocking.c (main): Avoid test failure on
21654         directories if fchdir is not active.
21655         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21656
21657 2011-03-31  Bruno Haible  <bruno@clisp.org>
21658
21659         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21660         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21661         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21662         Reported by Simon Josefsson <simon@josefsson.org>.
21663
21664 2011-03-31  Bruno Haible  <bruno@clisp.org>
21665         and Eric Blake  <eblake@redhat.com>
21666
21667         nonblocking: new module
21668         * modules/nonblocking: New module.
21669         * modules/nonblocking-tests: Likewise.
21670         * lib/nonblocking.h: New file.
21671         * lib/nonblocking.c: Likewise.
21672         * tests/test-nonblocking.c: New test.
21673         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21674
21675 2011-03-30  Bruno Haible  <bruno@clisp.org>
21676
21677         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21678         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21679         instead of 'printf' format for GCC >= 4.4.
21680         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21681         (fprintf, printf, vfprintf, vprintf): Declare with
21682         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21683         the system's vfprintf() function.
21684         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21685
21686 2011-03-30  Eric Blake  <eblake@redhat.com>
21687
21688         passfd: fix scoping bug
21689         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21690         before sendmsg/recvmsg.
21691
21692         passfd: standardize coding conventions
21693         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21694         can be learned at compile time.
21695         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21696         ifdefs.
21697         (sendfd, recvfd): Follow gnulib code conventions.
21698
21699         passfd: fix incorrect sendmsg arguments
21700         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21701         incorrect msg_controllen value.
21702         * modules/passfd-tests (Depends-on): Check for alarm.
21703         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21704         Reported by Bastien ROUCARIES.
21705
21706 2011-03-30  Bruno Haible  <bruno@clisp.org>
21707
21708         c-strcasestr: Relicense under LGPLv2+.
21709         * modules/c-strcasestr (License): Change to LGPLv2+.
21710         Requested by Eric Blake, for libvirt.
21711
21712 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21713
21714         * users.txt: Add libidn2.  Fix libtasn1 link.
21715
21716 2011-03-30  Jim Meyering  <meyering@redhat.com>
21717
21718         tests: readlink* ("",... fails with EINVAL on newer kernels
21719         readlink and readlinkat have typically failed with ENOENT for
21720         the invalid, empty file name,  "".  However, with the advent
21721         of linux-2.6.39, they fail with EINVAL.
21722         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21723         when operating on the empty file name.
21724         * tests/test-readlink.h (test_readlink): Likewise.
21725
21726 2011-03-29  Bruno Haible  <bruno@clisp.org>
21727
21728         Relicense some modules under LGPLv2+, for libidn2.
21729         * modules/array-mergesort (License): Change to LGPLv2+.
21730         * modules/c-strcaseeq (License): Likewise.
21731         * modules/striconveh (License): Likewise.
21732         * modules/striconveha (License): Likewise.
21733         * modules/uniconv/base (License): Likewise.
21734         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21735         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21736         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21737         * modules/unictype/base (License): Likewise.
21738         * modules/unictype/bidiclass-of (License): Likewise.
21739         * modules/unictype/category-M (License): Likewise.
21740         * modules/unictype/category-none (License): Likewise.
21741         * modules/unictype/category-of (License): Likewise.
21742         * modules/unictype/category-test (License): Likewise.
21743         * modules/unictype/category-test-withtable (License): Likewise.
21744         * modules/unictype/combining-class (License): Likewise.
21745         * modules/unictype/joiningtype-of (License): Likewise.
21746         * modules/unictype/scripts (License): Likewise.
21747         * modules/uninorm/base (License): Likewise.
21748         * modules/uninorm/canonical-decomposition (License): Likewise.
21749         * modules/uninorm/composition (License): Likewise.
21750         * modules/uninorm/decompose-internal (License): Likewise.
21751         * modules/uninorm/decomposition-table (License): Likewise.
21752         * modules/uninorm/nfc (License): Likewise.
21753         * modules/uninorm/nfd (License): Likewise.
21754         * modules/uninorm/u32-normalize (License): Likewise.
21755         * modules/unistr/base (License): Likewise.
21756         * modules/unistr/u32-cpy (License): Likewise.
21757         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21758         * modules/unistr/u32-to-u8 (License): Likewise.
21759         * modules/unistr/u32-uctomb (License): Likewise.
21760         * modules/unistr/u8-check (License): Likewise.
21761         * modules/unistr/u8-mblen (License): Likewise.
21762         * modules/unistr/u8-mbtouc (License): Likewise.
21763         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21764         * modules/unistr/u8-mbtoucr (License): Likewise.
21765         * modules/unistr/u8-prev (License): Likewise.
21766         * modules/unistr/u8-strlen (License): Likewise.
21767         * modules/unistr/u8-to-u32 (License): Likewise.
21768         * modules/unistr/u8-uctomb (License): Likewise.
21769         * modules/unitypes (License): Likewise.
21770         Requested by Simon Josefsson.
21771
21772 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21773
21774         lib-symbol-visibility: Add a notice.
21775         * modules/lib-symbol-visibility (Notice): New field.
21776
21777 2011-03-29  Bruno Haible  <bruno@clisp.org>
21778
21779         getaddrinfo: Doc fix.
21780         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21781         section "fixed in Gnulib".
21782
21783 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21784
21785         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21786         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21787
21788 2011-03-26  Bruno Haible  <bruno@clisp.org>
21789
21790         unictype/property-byname: Reduce the number of load-time relocations.
21791         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21792         (UC_PROPERTY_INDEX_*): New enumeration values.
21793         (uc_property_byname): Convert an index from the lookup table to an
21794         uc_property_t.
21795         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21796         values.
21797
21798 2011-03-26  Bruno Haible  <bruno@clisp.org>
21799
21800         unictype/property-byname: Allow omitted word separators and aliases.
21801         * lib/unictype/pr_byname.gperf: Add property names without word
21802         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21803         for 'space'.
21804
21805 2011-03-26  Bruno Haible  <bruno@clisp.org>
21806
21807         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21808         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21809         also hyphens to space.
21810         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21811         without spaces.
21812         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21813
21814 2011-03-26  Bruno Haible  <bruno@clisp.org>
21815
21816         unictype/joiningtype-byname: Recognize long names as well.
21817         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21818         a long name.
21819         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21820         unictype/joiningtype_byname.h.
21821         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21822         * lib/unictype/joiningtype_byname.gperf: New file.
21823         * modules/unictype/joiningtype-byname (Files): Add
21824         lib/unictype/joiningtype_byname.gperf.
21825         (Depends-on): Add gperf.
21826         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21827         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21828         long names.
21829
21830         Tests for module 'unictype/joiningtype-longname'.
21831         * modules/unictype/joiningtype-longname-tests: New file.
21832         * tests/unictype/test-joiningtype_longname.c: New file.
21833
21834         New module 'unictype/joiningtype-longname'.
21835         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21836         * lib/unictype/joiningtype_longname.c: New file.
21837         * modules/unictype/joiningtype-longname: New file.
21838         * modules/unictype/joiningtype-all (Depends-on): Add
21839         unictype/joiningtype-longname.
21840
21841 2011-03-26  Bruno Haible  <bruno@clisp.org>
21842
21843         unictype/bidiclass-byname: Recognize long names as well.
21844         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21845         name.
21846         * lib/unictype/bidi_byname.c: Include <string.h>,
21847         unictype/bidi_byname.h.
21848         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21849         * lib/unictype/bidi_byname.gperf: New file.
21850         * modules/unictype/bidiclass-byname (Files): Add
21851         lib/unictype/bidi_byname.gperf.
21852         (Depends-on): Add gperf.
21853         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21854         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21855         long names.
21856
21857         Tests for module 'unictype/bidiclass-longname'.
21858         * modules/unictype/bidiclass-longname-tests: New file.
21859         * tests/unictype/test-bidi_longname.c: New file.
21860
21861         New module 'unictype/bidiclass-longname'.
21862         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21863         * lib/unictype/bidi_longname.c: New file.
21864         * modules/unictype/bidiclass-longname: New file.
21865         * modules/unictype/bidiclass-all (Depends-on): Add
21866         unictype/bidiclass-longname.
21867
21868 2011-03-26  Bruno Haible  <bruno@clisp.org>
21869
21870         unictype/bidi*: Rename modules.
21871         * modules/unictype/bidiclass-all: Renamed from
21872         modules/unictype/bidicategory-all.
21873         * modules/unictype/bidiclass-name: Renamed from
21874         modules/unictype/bidiclass-name.
21875         (Description): Update.
21876         * modules/unictype/bidiclass-name-tests: Renamed from
21877         modules/unictype/bidicategory-name-tests.
21878         * modules/unictype/bidiclass-byname: Renamed from
21879         modules/unictype/bidicategory-byname.
21880         (Description): Update.
21881         * modules/unictype/bidiclass-byname-tests: Renamed from
21882         modules/unictype/bidicategory-byname-tests.
21883         * modules/unictype/bidiclass-of: Renamed from
21884         modules/unictype/bidicategory-of.
21885         (Description): Update.
21886         * modules/unictype/bidiclass-of-tests: Renamed from
21887         modules/unictype/bidicategory-of-tests.
21888         * modules/unictype/bidiclass-test: Renamed from
21889         modules/unictype/bidicategory-test.
21890         (Description): Update.
21891         * modules/unictype/bidiclass-test-tests: Renamed from
21892         modules/unictype/bidicategory-test-tests.
21893         * modules/unictype/bidicategory-all: New file, a simple redirection.
21894         * modules/unictype/bidicategory-name: Likewise.
21895         * modules/unictype/bidicategory-byname: Likewise.
21896         * modules/unictype/bidicategory-of: Likewise.
21897         * modules/unictype/bidicategory-test: Likewise.
21898         * modules/unictype/property-bidi-* (Dependencies): Update.
21899         * lib/unictype/bidi_*.c: Update comment.
21900
21901 2011-03-26  Bruno Haible  <bruno@clisp.org>
21902
21903         unictype/bidi*: Rename functions, part 2.
21904         * modules/unictype/bidicategory-name (configure.ac): Update required
21905         libunistring version.
21906         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21907
21908 2011-03-25  Bruno Haible  <bruno@clisp.org>
21909
21910         New module 'unictype/combining-class-all'.
21911         * modules/unictype/combining-class-all: New file.
21912
21913         Tests for module 'unictype/combining-class-byname'.
21914         * modules/unictype/combining-class-byname-tests: New file.
21915         * tests/unictype/test-combiningclass_byname.c: New file.
21916
21917         New module 'unictype/combining-class-byname'.
21918         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21919         * lib/unictype/combiningclass_byname.c: New file.
21920         * lib/unictype/combiningclass_byname.gperf: New file.
21921         * modules/unictype/combining-class-byname: New file.
21922
21923         Tests for module 'unictype/combining-class-longname'.
21924         * modules/unictype/combining-class-longname-tests: New file.
21925         * tests/unictype/test-combiningclass_longname.c: New file.
21926
21927         New module 'unictype/combining-class-longname'.
21928         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21929         * lib/unictype/combiningclass_longname.c: New file.
21930         * modules/unictype/combining-class-longname: New file.
21931
21932         Tests for module 'unictype/combining-class-name'.
21933         * modules/unictype/combining-class-name-tests: New file.
21934         * tests/unictype/test-combiningclass_name.c: New file.
21935
21936         New module 'unictype/combining-class-name'.
21937         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21938         * lib/unictype/combiningclass_name.c: New file.
21939         * modules/unictype/combining-class-name: New file.
21940
21941 2011-03-25  Bruno Haible  <bruno@clisp.org>
21942
21943         unictype/combining-class: Rename source files.
21944         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21945         of unictype/combining.h.
21946         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21947         Update.
21948         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21949         * modules/unictype/combining-class (Description): Fix.
21950         (Files, Makefile.am): Update.
21951         * tests/unictype/test-combiningclass.c: Renamed from
21952         tests/unictype/test-combining.c.
21953         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21954
21955 2011-03-25  Bruno Haible  <bruno@clisp.org>
21956
21957         unictype: Update list of canonical combining classes.
21958         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21959
21960 2011-03-25  Bruno Haible  <bruno@clisp.org>
21961
21962         unictype/category-byname: Recognize long names as well.
21963         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21964         a long name.
21965         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21966         unictype/categ_byname.h.
21967         (UC_CATEGORY_INDEX_*): New enumeration values.
21968         (uc_general_category_byname): Use uc_general_category_lookup and
21969         convert from index to value.
21970         * lib/unictype/categ_byname.gperf: New file.
21971         * modules/unictype/category-byname (Files): Add
21972         lib/unictype/categ_byname.gperf.
21973         (Depends-on): Add gperf.
21974         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21975         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21976         long names.
21977
21978         Tests for module 'unictype/category-longname'.
21979         * modules/unictype/category-longname-tests: New file.
21980         * tests/unictype/test-categ_longname.c: New file.
21981
21982         New module 'unictype/category-longname'.
21983         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21984         * lib/unictype/categ_longname.c: New file.
21985         * modules/unictype/category-longname: New file.
21986         * modules/unictype/category-all (Depends-on): Add it.
21987
21988 2011-03-25  Bruno Haible  <bruno@clisp.org>
21989
21990         Tests for module 'unictype/category-LC'.
21991         * modules/unictype/category-LC-tests: New file.
21992         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21993
21994         New module 'unictype/category-LC'.
21995         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21996         (UC_CATEGORY_LC): New declaration.
21997         (UC_CASED_LETTER): New macro.
21998         * lib/gen-uni-tables.c (is_category_LC): New function.
21999         (output_categories): Also handle category LC.
22000         (UC_CATEGORY_MASK_LC): New enumeration value.
22001         (general_category_byname): Also handle category LC.
22002         * lib/unictype/categ_LC.c: New file.
22003         * lib/unictype/categ_LC.h: New file, automatically generated.
22004         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22005         category LC.
22006         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22007         * modules/unictype/category-LC: New file.
22008         * modules/unictype/category-byname (Depends-on): Add
22009         unictype/category-LC.
22010         * modules/unictype/category-all (Depends-on): Likewise.
22011
22012 2011-03-25  Eric Blake  <eblake@redhat.com>
22013
22014         xmalloc: revert yesterday's regression
22015         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22016         realloc's underlying behavior (allowing allocation of zero-size
22017         objects, especially if malloc-gnu is also in use).
22018
22019 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22020
22021         maint.mk: add missing version to VC-tag
22022         * top/maint.mk: git tag was missing actual tag name; add it.
22023
22024         valgrind: do leak checking, and exit with code 1 on error (not 0)
22025         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22026         to VALGRIND.
22027
22028 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22029
22030         posix-modules: say what it does.
22031         * posix-modules: Add a line to the --help output saying what it does.
22032
22033 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22034
22035         xmalloc: Do not leak if underlying realloc is C99 compatible.
22036         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22037         This avoids a leak on C99-based systems.  See
22038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22039
22040 2011-03-24  Eric Blake  <eblake@redhat.com>
22041
22042         realloc: document portability problem
22043         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22044         passing 0 size to realloc.
22045
22046 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22047
22048         doc: update users.txt
22049         * users.txt: Add cvsps, tmpwatch
22050
22051 2011-03-23  Matt Rice  <ratmice@gmail.com>
22052
22053         doc: update users.txt
22054         * users.txt: Add gdb.
22055
22056 2011-03-23  Jim Meyering  <meyering@redhat.com>
22057
22058         doc: update users.txt
22059         Looking through matches up to the following URL (there are still
22060         several more pages), I found several projects that use gnulib:
22061         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22062         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22063         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22064
22065 2011-03-22  Bruno Haible  <bruno@clisp.org>
22066
22067         unictype/bidi*: Rename functions.
22068         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22069         uc_bidi_class, uc_is_bidi_class): New declarations.
22070         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22071         uc_bidi_category_byname.
22072         (uc_bidi_category_byname): New function.
22073         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22074         u_bidi_category_name.
22075         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22076         (uc_bidi_category_name): New function.
22077         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22078         uc_bidi_category.
22079         (uc_bidi_category): New function.
22080         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22081         uc_is_bidi_category. Invoke uc_bidi_class.
22082         (uc_is_bidi_category): New function.
22083         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22084         instead of uc_bidi_category_byname.
22085         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22086         instead of uc_bidi_category_name.
22087         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22088         uc_bidi_category.
22089         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22090         instead of uc_is_bidi_category.
22091
22092 2011-03-21  Bruno Haible  <bruno@clisp.org>
22093
22094         New module 'unictype/joininggroup-all'.
22095         * modules/unictype/joininggroup-all: New file.
22096
22097         Tests for module 'unictype/joininggroup-of'.
22098         * modules/unictype/joininggroup-of-tests: New file.
22099         * tests/unictype/test-joininggroup_of.c: New file.
22100         * tests/unictype/test-joininggroup_of.h: New file, automatically
22101         generated by gen-uni-tables.
22102
22103         New module 'unictype/joininggroup-of'.
22104         * modules/unictype/joininggroup-of: New file.
22105         * lib/unictype/joininggroup_of.c: New file.
22106         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22107         gen-uni-tables.
22108
22109         Tests for module 'unictype/joininggroup-byname'.
22110         * modules/unictype/joininggroup-byname-tests: New file.
22111         * tests/unictype/test-joininggroup_byname.c: New file.
22112
22113         New module 'unictype/joininggroup-byname'.
22114         * modules/unictype/joininggroup-byname: New file.
22115         * lib/unictype/joininggroup_byname.c: New file.
22116         * lib/unictype/joininggroup_byname.gperf: New file.
22117
22118         Tests for module 'unictype/joininggroup-name'.
22119         * modules/unictype/joininggroup-name-tests: New file.
22120         * tests/unictype/test-joininggroup_name.c: New file.
22121
22122         New module 'unictype/joininggroup-name'.
22123         * modules/unictype/joininggroup-name: New file.
22124         * lib/unictype/joininggroup_name.c: New file.
22125         * lib/unictype/joininggroup_name.h: New file.
22126
22127         New module 'unictype/joiningtype-all'.
22128         * modules/unictype/joiningtype-all: New file.
22129
22130         Tests for module 'unictype/joiningtype-of'.
22131         * modules/unictype/joiningtype-of-tests: New file.
22132         * tests/unictype/test-joiningtype_of.c: New file.
22133         * tests/unictype/test-joiningtype_of.h: New file, automatically
22134         generated by gen-uni-tables.
22135
22136         New module 'unictype/joiningtype-of'.
22137         * modules/unictype/joiningtype-of: New file.
22138         * lib/unictype/joiningtype_of.c: New file.
22139         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22140         gen-uni-tables.
22141
22142         Tests for module 'unictype/joiningtype-byname'.
22143         * modules/unictype/joiningtype-byname-tests: New file.
22144         * tests/unictype/test-joiningtype_byname.c: New file.
22145
22146         New module 'unictype/joiningtype-byname'.
22147         * modules/unictype/joiningtype-byname: New file.
22148         * lib/unictype/joiningtype_byname.c: New file.
22149
22150         Tests for module 'unictype/joiningtype-name'.
22151         * modules/unictype/joiningtype-name-tests: New file.
22152         * tests/unictype/test-joiningtype_name.c: New file.
22153
22154         New module 'unictype/joiningtype-name'.
22155         * modules/unictype/joiningtype-name: New file.
22156         * lib/unictype/joiningtype_name.c: New file.
22157
22158         unictype: Add support for Arabic shaping properties.
22159         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22160         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22161         declarations.
22162         (UC_JOINING_GROUP_*): New enumeration values.
22163         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22164         declarations.
22165         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22166         (unicode_joining_type): New variable.
22167         (UC_JOINING_GROUP_*): New enumeration values.
22168         (unicode_joining_group): New variable.
22169         (fill_arabicshaping, joining_type_as_c_identifier,
22170         output_joining_type_test, output_joining_type,
22171         joining_group_as_c_identifier, output_joining_group_test,
22172         output_joining_group): New functions.
22173         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22174         fill_arabicshaping and output_joining_type_test, output_joining_type,
22175         output_joining_group_test, output_joining_group.
22176         Reported by Simon Josefsson.
22177
22178 2011-03-21  Jim Meyering  <meyering@redhat.com>
22179
22180         strftime: fix a bug in yesterday's change
22181         * lib/strftime.c (add): Accommodate width's initial value of -1.
22182         Otherwise, nstrftime would copy uninitialized data into
22183         the result buffer.
22184
22185 2011-03-21  Jim Meyering  <meyering@redhat.com>
22186
22187         tests: add strftime-tests module
22188         * tests/test-strftime.c: New file.
22189         * modules/strftime-tests: New module.
22190
22191 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22192
22193         strftime: don't assume a byte count fits in 'int'
22194         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22195         found this problem by static analysis, using gcc -Wstrict-overflow
22196         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22197         on an integer overflow having undefined behavior, but it turns out
22198         that the argument is a size, which might not fit in 'int' anyway,
22199
22200 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22201
22202         stdio: don't require ignore_value around fwrite
22203
22204         This patch works around libc bug 11959
22205         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22206         Without this patch, applications must often write
22207         ignore_value (fwrite (...)) even though the ignore_value is
22208         not helpful here.  It's common to write many objects, using
22209         fwrite/printf/etc., and then use ferror to detect output error.
22210
22211         I considered making this patch optional, but decided against it,
22212         because libc is obviously being inconsistent here: there is no
22213         reason libc should insist that user code must inspect fwrite
22214         return's value without also insisting that it inspect printf's,
22215         putchar's, etc.  If user code wants to have a strict style where
22216         all these functions' values are checked (so that ferror need not
22217         be checked), we could add support for that style in a new gnulib
22218         module, but in the meantime it's better to be consistent and to
22219         support common usage.
22220
22221         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22222         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22223         that we are compiling in checking mode, and if not C++, and
22224         if not already wrapping fwrite for some other reason.
22225         (fwrite): #define to rpl_fwrite if the latter is defined.
22226
22227 2011-03-20  Bruno Haible  <bruno@clisp.org>
22228
22229         verror: Fix compilation error introduced on 2011-02-13.
22230         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22231         instead of __attribute__.
22232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22233
22234 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22235             Bruno Haible  <bruno@clisp.org>
22236
22237         socklen: do not depend on sys_socket
22238         While trying to modify Emacs to use gnulib's socklen module,
22239         I discovered a circular dependency: socklen depends on sys_socket
22240         and vice versa.  Emacs can use socklen, but it does not need
22241         sys_socket because it has its own substitute for sys/socket.h.
22242         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22243         gl_TYPE_SOCKLEN_T.
22244         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22245         gl_PREREQ_SYS_H_SOCKET.
22246         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22247         gl_PREREQ_SYS_H_SOCKET.
22248         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22249         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22250         * modules/socklen (Depends-on): Do not depend on sys_socket.
22251         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22252
22253 2011-03-20  Jim Meyering  <meyering@redhat.com>
22254
22255         maint.mk: sort file names *after* new transformation
22256         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22257         prefix would have led to an unwarranted failure in GNU parted.
22258         Sort after that transformation.
22259
22260 2011-03-19  Jim Meyering  <meyering@redhat.com>
22261
22262         maint.mk: fix po-file syntax-check rule
22263         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22264         Patch by Bruno Haible.
22265
22266 2011-03-19  Bruno Haible  <bruno@clisp.org>
22267
22268         socklen: Update comment.
22269         * m4/socklen.m4: Update comment about platforms.
22270
22271 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22272             Bruno Haible  <bruno@clisp.org>
22273
22274         inet_ntop, inet_pton: Simplify.
22275         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22276         documented to provide socklen_t and we already depend on sys_socket.
22277         * modules/inet_pton (Depends-on): Likewise.
22278         * lib/arpa_inet.in.h: Adjust comment.
22279
22280 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22281             Bruno Haible  <bruno@clisp.org>
22282
22283         netdb: Simplify.
22284         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22285         documented to provide socklen_t and we already depend on sys_socket.
22286         * lib/netdb.in.h: Adjust comment.
22287
22288 2011-03-19  Bruno Haible  <bruno@clisp.org>
22289
22290         sys_socket, netdb: Document problem with socklen_t.
22291         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22292         platforms.
22293         * doc/posix-headers/netdb.texi: Likewise.
22294
22295 2011-03-18  Eric Blake  <eblake@redhat.com>
22296
22297         maint.mk: let po check work in VPATH build
22298         * top/maint.mk (po_file): Allow cfg.mk override.
22299         (sc_po_check): Allow VPATH use.
22300         Reported by Jiri Denemark.
22301
22302 2011-03-16  Jim Meyering  <meyering@redhat.com>
22303
22304         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22305         Before, you would have had to create one .x-sc_ file per rule in order
22306         to exempt offending files.  Now, you may instead use a Make variable --
22307         usually defined in cfg.mk -- whose name identifies the affected rule.
22308         * top/maint.mk (_sc_excl): Define.
22309         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22310         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22311
22312 2011-03-13  Bruno Haible  <bruno@clisp.org>
22313
22314         ignore-value tests: Avoid warnings.
22315         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22316         empty for gcc < 3.4.
22317
22318 2011-03-13  Bruno Haible  <bruno@clisp.org>
22319
22320         passfd: Fix link error on Solaris.
22321         * modules/passfd (Description): Correct.
22322         (Depends-on): Add socketlib.
22323         (Link): New section.
22324         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22325
22326 2011-03-13  Bruno Haible  <bruno@clisp.org>
22327
22328         passfd: Fix link error on AIX 5.2.
22329         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22330
22331 2011-03-13  Bruno Haible  <bruno@clisp.org>
22332
22333         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22334         * lib/sys_socket.in.h: Include <stddef.h>.
22335         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22336         CMSG_FIRSTHDR. Remove unused variable.
22337
22338 2011-03-13  Bruno Haible  <bruno@clisp.org>
22339
22340         passfd: Fix compilation error on OpenBSD.
22341         * lib/passfd.c: Include <sys/uio.h>.
22342
22343 2011-03-13  Bruno Haible  <bruno@clisp.org>
22344
22345         passfd test: Fix warnings.
22346         * tests/test-passfd.c: Include <sys/wait.h>.
22347         (main): Fix typo.
22348
22349 2011-03-13  Bruno Haible  <bruno@clisp.org>
22350
22351         passfd module, part 4, tweaks.
22352         * tests/test-passfd.c: Reorder includes.
22353         (main): Fix perror and printf calls.
22354
22355 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22356
22357         passfd module, part 4.
22358         * modules/passfd-tests: New file.
22359         * tests/test-passfd.c: New file.
22360
22361 2011-03-13  Jim Meyering  <meyering@redhat.com>
22362
22363         Makefile: rely on GNU make; derive syntax-check rule names
22364         Rather than requiring that each sc_ rule be listed as a dependent
22365         of "check", use features of GNU make to derive the list.
22366         * Makefile (syntax-check-rules): Define.
22367         (check): Depend on the new variable, not the hard-coded list.
22368
22369 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22370             Bruno Haible  <bruno@clisp.org>
22371
22372         passfd module, part 3.
22373         * lib/passfd.h (recvfd): Add a flags argument.
22374         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22375         (recvfd): Add a flags argument.
22376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22377         exists.
22378         * modules/passfd (Depends-on): Add cloexec.
22379         Suggested by Eric Blake.
22380
22381 2011-03-13  Bruno Haible  <bruno@clisp.org>
22382
22383         passfd module, part 2, tweaks.
22384         * modules/passfd (Files): Reorder.
22385         (Depends-on): Remove errno.
22386         (Include): Remove <sys/socket.h>, <sys/un.h>.
22387         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22388         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22389         specification header. Include <sys/socket.h> always. Don't include
22390         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22391         (sendfd): Clarify that it sets errno when it fails.
22392         (recvfd): Fix specification.
22393
22394 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22395
22396         passfd module, part 2.
22397         * modules/passfd: New file.
22398         * lib/passfd.h: New file.
22399         * lib/passfd.c: New file.
22400
22401 2011-03-12  Bruno Haible  <bruno@clisp.org>
22402
22403         wcswidth, mbswidth: Avoid integer overflow.
22404         * lib/wcswidth.c: Include <limits.h>.
22405         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22406         * lib/mbswidth.c: Include <limits.h>.
22407         (mbsnwidth): Avoid 'int' overflow.
22408         Reported by Jim Meyering.
22409
22410 2011-03-12  Bruno Haible  <bruno@clisp.org>
22411
22412         futimens, utimensat: Avoid endless recursion on Solaris 10.
22413         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22414         Solaris.
22415         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22416         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22417
22418 2011-03-11  Jim Meyering  <meyering@redhat.com>
22419
22420         maint.mk: relax a regexp to accommodate other formatting styles
22421         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22422         between "ngettext" and the following "(".
22423
22424 2011-03-11  Pádraig Brady <P@draigBrady.com>
22425
22426         maint.mk: suppress a false positive warning
22427         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22428         diagnostics are marked with ngettext.
22429
22430 2011-03-10  Eric Blake  <eblake@redhat.com>
22431
22432         wchar: add explicit dependencies, for Tru64
22433         * modules/mbmemcasecoll (Depends-on): Add wchar.
22434         * modules/mbtowc (Depends-on): Likewise.
22435         * modules/vasnprintf (Depends-on): Likewise.
22436         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22437         * modules/wctomb (Depends-on): Likewise.
22438         Reported by Peter O'Gorman.
22439
22440 2011-03-08  Bruno Haible  <bruno@clisp.org>
22441
22442         passfd module, part 1, tweaks.
22443         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22444         Improve indentation. Improve AC_MSG_CHECKING messages.
22445         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22446         gl_SOCKET_FAMILIES.
22447
22448 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22449
22450         passfd module, part 1.
22451         * m4/afunix.m4: New file.
22452         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22453         sockets.
22454
22455 2011-03-08  Bruno Haible  <bruno@clisp.org>
22456
22457         regex-quote: New API.
22458         * lib/regex-quote.h: Include <stdbool.h>.
22459         (struct regex_quote_spec): New type.
22460         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22461         New declarations.
22462         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22463         'const struct regex_quote_spec *' argument.
22464         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22465         (pcre_special): New constant.
22466         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22467         New functions.
22468         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22469         'const struct regex_quote_spec *' argument.
22470         * modules/regex-quote (Depends-on): Add stdbool.
22471         * tests/test-regex-quote.c (check): Update for new API. Add test for
22472         anchored results.
22473         * NEWS: Mention the API change.
22474         Reported by Reuben Thomas and Eric Blake.
22475
22476 2011-03-06  Bruno Haible  <bruno@clisp.org>
22477
22478         regex-quote: Fix creation of POSIX extended regular expressions.
22479         * lib/regex-quote.c (ere_special): Add grouping and alternation
22480         operators.
22481
22482 2011-03-05  Bruno Haible  <bruno@clisp.org>
22483
22484         doc: Improve doc regarding autopoint vs. gnulib.
22485         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22486         disable autopoint while running autoreconf.
22487         Suggested by Ralf Wildenhues.
22488
22489 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22490
22491         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22492         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22493
22494 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22495
22496         parse-duration: remove xalloc.h dependency
22497         * lib/parse-duration.c (parse_period): handle NULL return from
22498         strdup instead of calling xstrdup().
22499         * modules/parse-duration: remove "xalloc" dependency
22500
22501 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22502
22503         bootstrap: honor m4_base when running aclocal
22504         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22505
22506 2011-03-02  Jim Meyering  <meyering@redhat.com>
22507
22508         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22509         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22510         on request from Matt Booth.
22511
22512 2011-03-01  Eric Blake  <eblake@redhat.com>
22513
22514         test-link: work on Hurd
22515         * tests/test-link.h (test_link): Hurd rejects linking directories
22516         with EISDIR instead of the POSIX-mandated EPERM.
22517
22518 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22519
22520         stdio: simplify by moving files to printf-posix, sigpipe
22521         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22522         since this symbol is needed only if printf is replaced.
22523         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22524         Require gl_ASM_SYMBOL_PREFIX.
22525         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22526         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22527         (Depends-on): Add 'raise'.
22528         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22529         * modules/stdio (Files): Remove lib/stdio-write.c,
22530         m4/asm-underscore.m4.
22531         (Depends-on): Remove 'raise'.
22532
22533         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22534         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22535         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22536         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22537
22538 2011-02-28  Bruno Haible  <bruno@clisp.org>
22539
22540         localcharset: Assume ANSI C behaviour of free().
22541         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22542         calling free().
22543         Suggested by Simon Josefsson <simon@josefsson.org>.
22544
22545 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22546             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22547             Bruno Haible  <bruno@clisp.org>  (tiny change)
22548
22549         On Cygwin, use /proc file system instead of win32 API.
22550         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22551         Win32 file names.
22552         (DllMain): Simplify by removing Cygwin specific code.
22553         (find_shared_library_fullname): Use Linux specific implementation also
22554         for Cygwin.
22555         (get_shared_library_fullname): Update accordingly.
22556         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22557         Win32 file names.
22558         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22559         Cygwin specific code.
22560
22561 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22562             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22563
22564         Fix OpenMP flag detection for various Fortran compilers.
22565         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22566         OpenMP-conditional compilation construct, to force compile
22567         failure with missing OpenMP flag.
22568         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22569
22570 2011-02-25  Eric Blake  <eblake@redhat.com>
22571
22572         strstr: expand test coverage
22573         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22574         compilation.
22575         * tests/test-memmem.c (main): Duplicate tests.
22576         * tests/test-strcasestr.c (main): Likewise.
22577         * tests/test-c-strcasestr.c (main): Likewise.
22578
22579 2011-02-25  Jim Meyering  <meyering@redhat.com>
22580
22581         maint.mk: detect missing-NL-at-EOF, too
22582         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22583         it also detects when a file lacks a newline at EOF.
22584         (require_exactly_one_NL_at_EOF_): Renamed from
22585         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22586         since people may well have .x-sc_... file names tied to the
22587         existing name.  Suggested by Eric Blake.
22588
22589 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22590
22591         dirname: move m4/dos.m4 functionality into lib/dosname.h
22592
22593         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22594         extracts symbols from it, puts them into config.h; but it's much
22595         easier to use the symbols directly.  filename.h already does this,
22596         but it disagrees with dos.m4 in some respects.  This patch
22597         introduces a different include file dosname.h that packages up
22598         dos.m4, and then later we can work on merging filename.h and
22599         dosname.h.  Applications that need only the easy-to-configure
22600         symbols should consider including dosname.h rather than dirname.h.
22601         * NEWS: Mention incompatible changes.
22602         * m4/dos.m4: Remove.
22603         * lib/dosname.h, modules/dosname: New files.
22604         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22605         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22606         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22607         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22608         Include dosname.h, not dirname.h.
22609         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22610         Include dosname.h, for definitions of symbols like ISSLASH
22611         that used to be in config.h.
22612         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22613         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22614         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22615         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22616         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22617         * modules/rmdir (Files): Likewise.
22618         * modules/stat (Files): Likewise.
22619         * modules/unlink (Files): Likewise.
22620         * modules/dirname-lgpl (Depends-on): Add dosname.
22621         * modules/lstat (Depends-on): Likewise.
22622         * modules/openat (Depends-on): Likewise.
22623         * modules/rmdir (Depends-on): Likewise.
22624         * modules/savewd (Depends-on): Likewise.
22625         * modules/stat (Depends-on): Likewise.
22626         * modules/unlink (Depends-on): Likewise.
22627         * modules/openat (Depends-on): Remove dirname-lgpl.
22628         * modules/savewd (Depends-on): Likewise.
22629         * tests/test-dirname.c: Do not use removed symbols like
22630         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22631         the remaining symbols, e.g., ISSLASH ('\\').
22632
22633 2011-02-25  Eric Blake  <eblake@redhat.com>
22634
22635         strstr: revert patches that introduced bug and pessimization
22636         * lib/str-two-way.h: Add another reference.
22637         (two_way_short_needle, two_way_long_needle): Revert changes from
22638         2011-02-24; they pessimize search speed.
22639         (critical_factorization): Partially revert changes from
22640         2010-06-22; they violate the requirement that the left half of the
22641         needle be smaller than the period of the needle.
22642
22643 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22644
22645         filenamecat: remove unnecessary dependency on dirname-lgpl
22646         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22647         is no direct dependency, just an indirect one via filenamecat-lgpl.
22648
22649         remove: remove unnecessary use of m4/dos.m4
22650         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22651         * modules/remove (FILES): Remove m4/dos.m4.
22652
22653         * lib/openat-proc.c: Don't include dirname.h; not needed.
22654
22655         backupfile: remove unnecessary use of m4/dos.m4
22656         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22657         of its symbols are used by the backupfile code.  backupfile.c does
22658         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22659         for the rare case of programs that want all their backup file
22660         names to live within 8+3 limits, and dos.m4 doesn't address that.
22661         * modules/backupfile (Files): Remove m4/dos.m4.
22662
22663 2011-02-24  Jim Meyering  <meyering@redhat.com>
22664
22665         strstr: fix a bug whereby strstr would mistakenly return NULL
22666         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22667         in period calculation.
22668         (two_way_long_needle): Likewise.
22669         The original problem was reported by Mike Stump in
22670         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22671         Ralf Wildenhues provided the short needle and haystack.
22672         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22673         Add a more involved test to trigger the bug in two_way_long_needle.
22674
22675 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22676
22677         gnulib-tool: remove use of bold display in help screen
22678         * gnulib-tool (func_usage): Do not use bold display anymore in the
22679         help screen.  That was just meant to be a temporary emphasis for a
22680         backward-incompatible change.
22681
22682 2011-02-23  Bruno Haible  <bruno@clisp.org>
22683
22684         Fix misindentation of preprocessor directives.
22685         * lib/argp-namefrob.h: Reindent preprocessor directives.
22686         * lib/getopt_int.h (struct _getopt_data): Likewise.
22687         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22688         * lib/vasnprintf.c (decode_long_double): Likewise.
22689         * tests/test-argmatch.c: Insert blank lines, for clarity.
22690         * tests/test-exclude.c: Likewise.
22691
22692 2011-02-22  Bruno Haible  <bruno@clisp.org>
22693
22694         ioctl: Fix for MacOS X in 64-bit mode.
22695         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22696         value.
22697         Suggested by Eric Blake.
22698         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22699
22700 2011-02-22  Jim Meyering  <meyering@redhat.com>
22701
22702         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22703         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22704         in lib/.
22705
22706 2011-02-22  Eric Blake  <eblake@redhat.com>
22707
22708         maint: avoid any CDPATH issue
22709         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22710
22711         maint: adjust cpp indentation for my modules, as well
22712         * Makefile (sc_cpp_indent_check): Add my name.
22713         * lib/fbufmode.c: Filter through cppi.
22714         * lib/fpurge.c: Likewise.
22715         * lib/freadable.c: Likewise.
22716         * lib/freading.c: Likewise.
22717         * lib/fwritable.c: Likewise.
22718         * lib/fwriting.c: Likewise.
22719         * lib/sigaction.c: Likewise.
22720
22721 2011-02-22  Jim Meyering  <meyering@redhat.com>
22722
22723         maint: adjust cpp indentation to reflect nesting depth
22724         I.e., in a block of code that begins with an unnested "#if",
22725         put one space between the "#" in column 1 and following token.
22726         For example,
22727         -#include <sys/vfs.h>
22728         +# include <sys/vfs.h>
22729         Do this only in .c files that are part of a module I maintain.
22730         * lib/linkat.c: Filter through cppi.
22731         * lib/nanosleep.c: Likewise.
22732         * lib/openat.c: Likewise.
22733         * lib/openat-die.c: Likewise.
22734         * lib/dup3.c: Likewise.
22735         * lib/fchownat.c: Likewise.
22736         * lib/flock.c: Likewise.
22737         * lib/fsync.c: Likewise.
22738         * lib/fts.c: Likewise.
22739         * lib/getpass.c: Likewise.
22740         * lib/gettimeofday.c: Likewise.
22741         * lib/userspec.c: Likewise.
22742         * Makefile (sc_cpp_indent_check): New rule, to check this.
22743
22744 2011-02-22  Bruno Haible  <bruno@clisp.org>
22745
22746         New module 'wctomb'.
22747         * lib/stdlib.in.h (wctomb): New declaration.
22748         * lib/wctomb.c: New file.
22749         * lib/wctomb-impl.h: New file.
22750         * m4/wctomb.m4: New file.
22751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22752         REPLACE_WCTOMB.
22753         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22754         REPLACE_WCTOMB.
22755         * modules/wctomb: New file.
22756         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22757         * doc/posix-functions/wctomb.texi: Mention the new module.
22758         * modules/wctob (Depends-on): Add wctomb.
22759
22760 2011-02-22  Bruno Haible  <bruno@clisp.org>
22761
22762         New module 'mbtowc'.
22763         * lib/stdlib.in.h (mbtowc): New declaration.
22764         * lib/mbtowc.c: New file.
22765         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22766         * m4/mbtowc.m4: New file.
22767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22768         REPLACE_MBTOWC.
22769         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22770         REPLACE_MBTOWC.
22771         * modules/mbtowc: New file.
22772         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22773         * doc/posix-functions/mbtowc.texi: Mention the new module.
22774         * modules/btowc (Depends-on): Add mbtowc.
22775
22776 2011-02-22  Bruno Haible  <bruno@clisp.org>
22777
22778         wcrtomb: Add more tests for native Windows platforms.
22779         * tests/test-wcrtomb-w32-1.sh: New file.
22780         * tests/test-wcrtomb-w32-2.sh: New file.
22781         * tests/test-wcrtomb-w32-3.sh: New file.
22782         * tests/test-wcrtomb-w32-4.sh: New file.
22783         * tests/test-wcrtomb-w32-5.sh: New file.
22784         * tests/test-wcrtomb-w32.c: New file.
22785         * modules/wcrtomb-tests (Files): Add them.
22786         (Makefile.am): Arrange to run these tests.
22787         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22788         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22789
22790 2011-02-20  Bruno Haible  <bruno@clisp.org>
22791
22792         wcrtomb: Enhance test.
22793         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22794
22795 2011-02-20  Bruno Haible  <bruno@clisp.org>
22796
22797         mbrtowc: Tiny optimization.
22798         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22799
22800 2011-02-20  Jim Meyering  <meyering@redhat.com>
22801
22802         test-exclude.c: remove unmatched #endif
22803         * tests/test-exclude.c: Remove stray #endif, left over from
22804         the change of a week ago.
22805
22806 2011-02-19  Jim Meyering  <meyering@redhat.com>
22807
22808         git-version-gen: skip "-dirty" check when appropriate
22809         * build-aux/git-version-gen: Don't run any git commands when the
22810         version string comes from .tarball-version.  Prior to this, we
22811         would run git update-index --refresh even from a just-unpacked
22812         tarball directory, and that could affect a .git/ directory in a
22813         parent of the build directory.  Reported by Mike Frysinger.
22814
22815 2011-02-19  Bruno Haible  <bruno@clisp.org>
22816
22817         unictype/property-byname: Reduce the size of the 'data' segment.
22818         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22819
22820 2011-02-19  Bruno Haible  <bruno@clisp.org>
22821
22822         unictype/scripts: Reduce the size of the 'data' segment.
22823         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22824         '%pic'.
22825         * lib/unictype/scripts_byname.gperf: Regenerated.
22826
22827 2011-02-19  Bruno Haible  <bruno@clisp.org>
22828
22829         stdint: Update documentation.
22830         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22831
22832 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22833
22834         stdint: omit redundant check for wchar.h
22835         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22836         always tests whether wchar.h exists, so remove the now-redundant test.
22837
22838 2011-02-18  Bruno Haible  <bruno@clisp.org>
22839
22840         stdint: Cut dependency to module 'wchar'.
22841         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22842         include the necessary prerequisites.
22843         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22844         * modules/stdint (Depends-on): Remove wchar.
22845         (Makefile.am): Substitute HAVE_WCHAR_H.
22846         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22847
22848 2011-02-18  Eric Blake  <eblake@redhat.com>
22849
22850         longlong: skip, rather than fail, on cross-compilation
22851         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22852         when cross-compiling; regression from 2011-02-16.
22853
22854 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22855
22856         * NEWS: Mention 2011-02-08 change to stdlib.
22857
22858 2011-02-17  Bruno Haible  <bruno@clisp.org>
22859
22860         getloadavg: Add comments about platforms.
22861         * m4/getloadavg.m4: Add comment.
22862         * lib/getloadavg.c: Likewise.
22863
22864 2011-02-17  Bruno Haible  <bruno@clisp.org>
22865
22866         getloadavg: Fix link error on Solaris 2.6.
22867         * modules/getloadavg (Link): New section.
22868         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22869         linking test-getloadavg.
22870         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22871         getloadavg.
22872
22873 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22874
22875         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22876         It was 'int', but this doesn't match the IRIX 6.5 manual.
22877         Suggested by Bruno Haible in
22878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22879
22880 2011-02-17  Bruno Haible  <bruno@clisp.org>
22881
22882         havelib: Fix comments.
22883         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22884         change.
22885
22886 2011-02-17  Bruno Haible  <bruno@clisp.org>
22887
22888         havelib: Update config.rpath.
22889         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22890
22891 2011-02-17  Bruno Haible  <bruno@clisp.org>
22892
22893         getloadavg test: Add some plausibility checks.
22894         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22895         is improbable.
22896
22897 2011-02-16  Eric Blake  <eblake@redhat.com>
22898
22899         maintainer-makefile: make syntax-check a no-op from tarballs
22900         * top/maint.mk (no-vc-detected): New rule.
22901         (local-checks-available): Use it to avoid hanging if someone tries
22902         'make syntax-check' from a tarball.  Also append to any non-syntax
22903         checks already defined in cfg.mk.
22904
22905 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22906
22907         longlong: tune, particularly for common case of c99
22908
22909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22910         or running anything if c99, or if unsigned long long int does not
22911         work.  In either case, we know the answer without further tests.
22912         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22913         it at most once, and use its results for both long long int and
22914         unsigned long long int.  This is more likely to be efficient in
22915         the common case where the program wants to check for both long
22916         long int and unsigned long long int.
22917         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22918         since the answer is already known.
22919
22920 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22921
22922         getloadavg: set errno
22923         * lib/getloadavg.c: Set errno when returning -1.  If no other
22924         error number looks appropriate, set it to ENOSYS if the getloadavg
22925         looks like it can't possibly ever work, ENOTSUP otherwise.
22926         Suggested by Bruno Haible in
22927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22928
22929         getloadavg: trim unused parts and speed up 'configure'
22930         * NEWS: Document this.
22931         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22932         always compiled if getloadavg is absent.
22933         Move test code to ...
22934         * tests/test-getloadavg.c: New file, containing previous
22935         contents of test from lib/getloadavg.c.  It also contains
22936         suggestions by Bruno Haible in
22937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22938         * modules/getloadavg-tests: New file.
22939         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22940         Do tests in the same order as they're needed for getloadavg.c.
22941         Omit setgid-related tests that generate symbols KMEM_GROUP,
22942         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22943         Do only the tests that are needed to see whether the system has
22944         getloadavg, moving the other tests into ...
22945         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22946         NLIST_NAME_UNION; nobody should be using it.  Do not define
22947         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22948         relevant, as the user of this module shouldn't care how getloadavg
22949         is implemented.
22950
22951         getloadavg: omit unused var
22952         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22953
22954 2011-02-15  Jim Meyering  <meyering@redhat.com>
22955
22956         doc: update users.txt
22957         * users.txt: Update iwhd's URL.
22958
22959 2011-02-13  Bruno Haible  <bruno@clisp.org>
22960
22961         Consistent macro naming for macros that use GCC __attribute__.
22962         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22963         _ATTRIBUTE_NONNULL_.
22964         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22965         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22966         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22967         ATTRIBUTE_DEPRECATED.
22968         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22969         ATTRIBUTE_NORETURN.
22970         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22971         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22972         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22973         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22974         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22975         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22976         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22977         ATTRIBUTE_SENTINEL.
22978         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22979         ATTRIBUTE_RETURN_CHECK.
22980         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22981         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22982         ATTRIBUTE_NORETURN.
22983         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22984         Reported by Paul Eggert.
22985
22986 2011-02-13  Bruno Haible  <bruno@clisp.org>
22987
22988         Don't interfere with a program's definition of __attribute__.
22989         * lib/argp.h (__attribute__): Remove definition.
22990         (_GL_ATTRIBUTE_FORMAT): New macro.
22991         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22992         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22993         (_GL_ATTRIBUTE_FORMAT): New macro.
22994         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22995         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22996         GCC 3 or newer.
22997         * lib/error.h (__attribute__): Remove definition.
22998         (_GL_ATTRIBUTE_FORMAT): New macro.
22999         (error, error_at_line): Use it.
23000         * lib/hash.h (__attribute__): Remove definition.
23001         (ATTRIBUTE_WUR): Update definition. Define always.
23002         * lib/openat.h (__attribute__): Remove definition.
23003         (ATTRIBUTE_NORETURN): Update definition. Define always.
23004         * lib/sigpipe-die.h (__attribute__): Remove definition.
23005         (ATTRIBUTE_NORETURN): Update definition. Define always.
23006         * lib/vasnprintf.h (__attribute__): Remove definition.
23007         (_GL_ATTRIBUTE_FORMAT): New macro.
23008         (asnprintf, vasnprintf): Use it.
23009         * lib/xalloc.h (__attribute__): Remove definition.
23010         (ATTRIBUTE_NORETURN): Update definition. Define always.
23011         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23012         * lib/xmemdup0.h (__attribute__): Remove definition.
23013         (ATTRIBUTE_NORETURN): Update definition. Define always.
23014         * lib/xprintf.h (__attribute__): Remove definition.
23015         (_GL_ATTRIBUTE_FORMAT): New macro.
23016         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23017         * lib/xstrtol.h (__attribute__): Remove definition.
23018         (ATTRIBUTE_NORETURN): Update definition. Define always.
23019         * lib/xvasprintf.h (__attribute__): Remove definition.
23020         (_GL_ATTRIBUTE_FORMAT): New macro.
23021         (xasprintf, xvasprintf): Use it.
23022         * tests/test-argmatch.c (__attribute__): Remove definition.
23023         (ATTRIBUTE_NORETURN): Update definition. Define always.
23024         * tests/test-exclude.c (__attribute__): Remove definition.
23025         (ATTRIBUTE_NORETURN): Update definition. Define always.
23026         Reported by Paul Eggert.
23027
23028 2011-02-13  Bruno Haible  <bruno@clisp.org>
23029
23030         mbrtowc: Add more tests for native Windows platforms.
23031         * tests/test-mbrtowc-w32-1.sh: New file.
23032         * tests/test-mbrtowc-w32-2.sh: New file.
23033         * tests/test-mbrtowc-w32-3.sh: New file.
23034         * tests/test-mbrtowc-w32-4.sh: New file.
23035         * tests/test-mbrtowc-w32-5.sh: New file.
23036         * tests/test-mbrtowc-w32.c: New file.
23037         * modules/mbrtowc-tests (Files): Add them.
23038         (Makefile.am): Arrange to run these tests.
23039         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23040         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23041
23042 2011-02-13  Bruno Haible  <bruno@clisp.org>
23043
23044         mbrtowc: Work around native Windows bug.
23045         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23046         guess when no suitable locale for testing was found.
23047         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23048
23049 2011-02-13  Bruno Haible  <bruno@clisp.org>
23050
23051         mbsinit: Work around mingw bug.
23052         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23053         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23054         Windows.
23055         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23056
23057 2011-02-13  Bruno Haible  <bruno@clisp.org>
23058
23059         mbsinit: Don't crash for a NULL argument.
23060         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23061         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23062
23063 2011-02-13  Bruno Haible  <bruno@clisp.org>
23064
23065         Don't interfere with a program's definition of __attribute__.
23066         * lib/stdio.in.h (__attribute__): Remove definition.
23067         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23068         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23069         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23070         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23071         * lib/string.in.h (__attribute__): Remove definition.
23072         Reported by Paul Eggert.
23073
23074 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23075
23076         stdlib: don't get in the way of non-GCC __attribute__
23077         See thread starting at
23078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23079         Revert previous stdlib change, installing the following instead:
23080         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23081         to get in the way of a non-GCC compiler that supports __attribute__.
23082         (_GL_ATTRIBUTE_RETURN): New macro.
23083         (_Exit): Use it instead of __attribute__.
23084
23085 2011-02-12  Bruno Haible  <bruno@clisp.org>
23086
23087         quotearg test: Avoid test failure on mingw.
23088         * tests/test-quotearg.sh: Convert the locale identifier from native
23089         Windows syntax to Unix syntax.
23090
23091 2011-02-12  Bruno Haible  <bruno@clisp.org>
23092
23093         setlocale: Prefer gnulib's override over libintl's override.
23094         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23095         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23096         GNULIB_defined_setlocale is set.
23097
23098 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23099
23100         stdlib: support non-GCC __attribute__
23101
23102         Fix a serious and tricky problem encountered when attempting to
23103         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23104         5.5, but it crashed due to memory corruption on Solaris 10 with
23105         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23106         bits that are otherwise zero.  This tagging is optional inside
23107         Emacs but is preferred and is used when __attribute__ ((__aligned
23108         (8))) works, as it does with both recent-enough GCC and with Sun C
23109         5.11.  However, Sun C 5.11 is not GCC and does not #define
23110         __GNUC__ and __GNUC_MINOR__.
23111
23112         When I added the getloadavg module to Emacs, it brought in
23113         stdlib.in.h, which contained this fragment:
23114
23115            #ifndef __attribute__
23116            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23117            #  define __attribute__(Spec)   /* empty */
23118            # endif
23119            #endif
23120
23121         When files that include <stdlib.h> were compiled with Sun C 5.11,
23122         the above code disabled __attribute__ ((__aligned (8))), which
23123         caused variables to not be properly aligned, which eventually led
23124         to the pointer corruption mentioned above.  (This was a bit hard
23125         to diagnose, unfortunately.)
23126
23127         Several "#define __attribute__(X) /* empty */" code snippets need
23128         to be eradicated from Gnulib to work with non-GCC compilers that
23129         support __attribute__.  The Autoconf way to do this is to test for
23130         each kind of attribute that we want support for, and selectively
23131         enable that in source code.
23132
23133         Fix this problem just for stdlib.h, by adding a test for the
23134         __noreturn__ attribute, and change stdlib.in.h to use that test
23135         when needed.  This technique can be easily generalized to the
23136         other *.in.h files and attributes, and a similar technique can be
23137         used for *.h and *.c files.  This patch is enough to solve the
23138         problem for Emacs + getloadavg, and I thought I'd publish it for
23139         feedback before undertaking further, similar fixes in other
23140         modules.
23141
23142         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23143         because it's not needed for stdlib.h.  It merely substitutes the
23144         value directly into stdlib.h.  We may well need to #define it, or
23145         similar symbols, for other modules, but it's nice to also have an
23146         option to not #define it for applications like Emacs that do not
23147         need it.
23148
23149         * lib/stdlib.in.h (__attribute__): Do not #define.
23150         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23151         be defined only if the _Exit module is also used.
23152         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23154         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23155         platforms.
23156         * modules/_Exit (Files): Add m4/attribute.m4.
23157         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23158         * m4/attribute.m4: New file.
23159
23160 2011-02-12  Bruno Haible  <bruno@clisp.org>
23161
23162         wcsrtombs: Work around bug on native Windows.
23163         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23164         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23165         instead of len.
23166         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23167
23168 2011-02-12  Bruno Haible  <bruno@clisp.org>
23169
23170         mbsrtowcs: Work around bug on native Windows.
23171         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23172         against mingw bug.
23173         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23174
23175 2011-02-12  Bruno Haible  <bruno@clisp.org>
23176
23177         Avoid setlocale bugs in tests.
23178         * modules/btowc (Dependencies): Add setlocale.
23179         * modules/c-strcase (Dependencies): Likewise.
23180         * modules/mbmemcasecmp (Dependencies): Likewise.
23181         * modules/mbmemcasecoll (Dependencies): Likewise.
23182         * modules/mbrtowc (Dependencies): Likewise.
23183         * modules/mbscasecmp (Dependencies): Likewise.
23184         * modules/mbscasestr (Dependencies): Likewise.
23185         * modules/mbschr (Dependencies): Likewise.
23186         * modules/mbscspn (Dependencies): Likewise.
23187         * modules/mbsinit (Dependencies): Likewise.
23188         * modules/mbsncasecmp (Dependencies): Likewise.
23189         * modules/mbsnrtowcs (Dependencies): Likewise.
23190         * modules/mbspbrk (Dependencies): Likewise.
23191         * modules/mbspcasecmp (Dependencies): Likewise.
23192         * modules/mbsrchr (Dependencies): Likewise.
23193         * modules/mbsrtowcs (Dependencies): Likewise.
23194         * modules/mbsspn (Dependencies): Likewise.
23195         * modules/mbsstr (Dependencies): Likewise.
23196         * modules/nl_langinfo (Dependencies): Likewise.
23197         * modules/quotearg (Dependencies): Likewise.
23198         * modules/unicase/locale-language (Dependencies): Likewise.
23199         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23200         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23201         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23202         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23203         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23204         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23205         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23206         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23207         * modules/vasnprintf-posix (Dependencies): Likewise.
23208         * modules/wcrtomb (Dependencies): Likewise.
23209         * modules/wcsnrtombs (Dependencies): Likewise.
23210         * modules/wcsrtombs (Dependencies): Likewise.
23211
23212 2011-02-12  Bruno Haible  <bruno@clisp.org>
23213
23214         setlocale: Workaround native Windows bug.
23215         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23216         succeeds but sets LC_CTYPE to "C", report a failure.
23217         * tests/test-setlocale2.sh: New file.
23218         * tests/test-setlocale2.c: New file.
23219         * modules/setlocale-tests (Files): Add the new files.
23220         (Makefile.am): Enable test-setlocale2.sh test.
23221         * doc/posix-functions/setlocale.texi: Mention workaround.
23222
23223 2011-02-11  Bruno Haible  <bruno@clisp.org>
23224
23225         Tests for module 'setlocale'.
23226         * modules/setlocale-tests: New file.
23227         * tests/test-setlocale1.sh: New file.
23228         * tests/test-setlocale1.c: New file.
23229
23230         New module 'setlocale'.
23231         * lib/locale.in.h (setlocale): New declaration.
23232         * lib/setlocale.c: New file, based on
23233         gettext/gettext-runtime/intl/setlocale.c.
23234         * m4/setlocale.m4: New file.
23235         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23236         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23237         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23238         REPLACE_SETLOCALE.
23239         * modules/setlocale: New file.
23240         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23241         * doc/posix-functions/setlocale.texi: Mention the new module.
23242
23243 2011-02-11  Bruno Haible  <bruno@clisp.org>
23244
23245         Prepare for locale dependent tests on mingw.
23246         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23247         because it has the wrong locale encoding.
23248         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23249         French_France.1252 instead of "fr".
23250         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23251         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23252         because it has the wrong locale encoding.
23253         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23254         native Windows, try Turkish_Turkey.65001.
23255         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23256         Chinese_China.54936.
23257
23258         Prepare for locale dependent tests on mingw.
23259         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23260         differently.
23261         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23262         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23264         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23265
23266 2011-02-11  Eric Blake  <eblake@redhat.com>
23267
23268         strptime: avoid compiler warnings
23269         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23270         compiler warnings about dead code.
23271         Reported by Daniel P. Berrange.
23272
23273 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23274
23275         doc: update users.txt
23276         * users.txt: Add rcs.
23277
23278 2011-02-10  John W. Eaton  <jwe@gnu.org>
23279
23280         doc: update users.txt
23281         * users.txt: Add octave.
23282
23283 2011-02-10  Jim Meyering  <meyering@redhat.com>
23284
23285         doc: update users.txt
23286         * users.txt: Add iwhd.
23287
23288 2011-02-09  Bruno Haible  <bruno@clisp.org>
23289
23290         gnulib-tool: Make copyright notice adjustment more robust.
23291         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23292         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23293         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23294         License".
23295         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23296
23297 2011-02-06  Bruno Haible  <bruno@clisp.org>
23298
23299         New module 'towctrans'.
23300         * modules/towctrans: New file.
23301         * lib/wctype.in.h (towctrans): New declaration.
23302         * lib/towctrans.c: New file.
23303         * lib/towctrans-impl.h: New file.
23304         * m4/towctrans.m4: New file.
23305         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23306         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23307         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23308         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23309         * doc/posix-functions/towctrans.texi: Mention the new module.
23310
23311 2011-02-06  Bruno Haible  <bruno@clisp.org>
23312
23313         New module 'wctrans'.
23314         * modules/wctrans: New file.
23315         * lib/wctype.in.h (wctrans): New declaration.
23316         * lib/wctrans.c: New file.
23317         * lib/wctrans-impl.h: New file.
23318         * m4/wctrans.m4: New file.
23319         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23320         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23321         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23322         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23323         * doc/posix-functions/wctrans.texi: Mention the new module.
23324
23325 2011-02-06  Bruno Haible  <bruno@clisp.org>
23326
23327         New module 'iswctype'.
23328         * modules/iswctype: New file.
23329         * lib/wctype.in.h (iswctype): New declaration.
23330         * lib/iswctype.c: New file.
23331         * lib/iswctype-impl.h: New file.
23332         * m4/iswctype.m4: New file.
23333         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23334         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23335         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23336         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23337         * doc/posix-functions/iswctype.texi: Mention the new module and the
23338         HP-UX 11.00 problem.
23339
23340 2011-02-06  Bruno Haible  <bruno@clisp.org>
23341
23342         New module 'wctype'.
23343         * modules/wctype: Change to represent the wctype() substitute.
23344         * lib/wctype.in.h (wctype): New declaration.
23345         * lib/wctype.c: New file.
23346         * lib/wctype-impl.h: New file.
23347         * m4/wctype.m4: New file.
23348         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23349         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23350         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23351         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23352         * doc/posix-functions/wctype.texi: Mention the new module and the
23353         HP-UX 11.00 problem.
23354
23355 2011-02-06  Bruno Haible  <bruno@clisp.org>
23356
23357         wctype-h: Ensure wctype_t and wctrans_t are defined.
23358         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23359         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23360         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23361         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23362         HAVE_WCTRANS_T.
23363         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23364
23365 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23366
23367         flock: fix license typo
23368
23369         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23370         omitted.
23371
23372 2011-02-08  Bruno Haible  <bruno@clisp.org>
23373
23374         Split large sed scripts, for HP-UX sed.
23375         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23376         to avoid HP-UX limit of 99 commands, in the near future.
23377         * modules/stdlib (Makefile.am): Likewise.
23378         * modules/unistd (Makefile.am): Likewise.
23379         * modules/wchar (Makefile.am): Likewise.
23380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23381         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23382         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23383
23384 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23385             Bruno Haible  <bruno@clisp.org>
23386
23387         stdlib: improve random_r modularization
23388         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23389         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23390         you also need the random_r module to get this material right.
23391         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23392         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23393         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23394
23395 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23396
23397         stdlib: don't depend on stdint
23398         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23399         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23400         be independent of whether stdint.h is needed.
23401         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23402         here, instead of ...
23403         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23404         struct random_data should be using the random_r module, not just
23405         the stdlib module (which wouldn't make sense: what package needs
23406         just struct random_data without also needing random_r?).
23407         * modules/stdlib (Depends-on): Remove stdint.
23408
23409         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23410         See the thread rooted at
23411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23412         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23413         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23414         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23415         __VMS)); previously it was always included (via fcntl--.h).
23416         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23417         hand; this is good enough for load averages.  Also, do not use
23418         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23419         flags directly if available and don't bother otherwise.  (Packages
23420         that need the extra reliability should use the modules that define
23421         these flags on older platforms that lack them.)
23422         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23423         fcntl-safer.
23424
23425 2011-02-08  Jim Meyering  <meyering@redhat.com>
23426
23427         di-set.h, ino-map.h: add multiple-inclusion guard
23428         Technically, the guard is required only for ino-map.h, due to its
23429         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23430         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23431         * lib/ino-map.h: Likewise.
23432
23433 2011-02-06  Bruno Haible  <bruno@clisp.org>
23434
23435         iswblank: Ensure declaration on glibc systems.
23436         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23437         * modules/iswblank (Dependencies): Add 'extensions'.
23438         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23439
23440 2011-02-06  Bruno Haible  <bruno@clisp.org>
23441
23442         New module 'iswblank'.
23443         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23444         * modules/iswblank: New file.
23445         * modules/wctype-h (Files): Remove lib/iswblank.c.
23446         (Makefile.am): Substitute GNULIB_ISWBLANK.
23447         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23448         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23449         (gl_WCTYPE_H_DEFAULTS): New macro.
23450         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23451         * modules/iswblank-tests: New file.
23452         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23453         * tests/test-wctype-h.c (main): Remove iswblank tests.
23454         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23455         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23456         of 'wctype-h'.
23457         * NEWS: Mention the change.
23458         * modules/mbchar (Depends-on): Add iswblank.
23459
23460 2011-02-08  Bruno Haible  <bruno@clisp.org>
23461
23462         di-set tests: Refactor.
23463         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23464         unnecessary includes.
23465         (ASSERT): Remove macro.
23466         (main): Make C90 compliant by avoiding variable declaration after
23467         statement.
23468         * modules/di-set-tests (Files): Add tests/macros.h.
23469
23470 2011-02-08  Bruno Haible  <bruno@clisp.org>
23471
23472         ino-map tests: Refactor.
23473         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23474         unnecessary includes.
23475         (ASSERT): Remove macro.
23476         (main): Make C90 compliant by avoiding variable declaration after
23477         statement.
23478         * modules/ino-map-tests (Files): Add tests/macros.h.
23479
23480 2011-02-08  Jim Meyering  <meyering@redhat.com>
23481
23482         di-set: add "const" to a cast
23483         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23484         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23485
23486 2011-02-06  Bruno Haible  <bruno@clisp.org>
23487
23488         Rename module 'wctype' to 'wctype-h'.
23489         * modules/wctype-h: Renamed from modules/wctype.
23490         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23491         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23492         (Files, Depends-on, Makefile.am): Update.
23493         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23494         (Files, Makefile.am): Update.
23495         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23496         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23497         * doc/posix-headers/wctype.texi: Update.
23498         * doc/posix-functions/iswalnum.texi: Update.
23499         * doc/posix-functions/iswalpha.texi: Update.
23500         * doc/posix-functions/iswblank.texi: Update.
23501         * doc/posix-functions/iswcntrl.texi: Update.
23502         * doc/posix-functions/iswdigit.texi: Update.
23503         * doc/posix-functions/iswgraph.texi: Update.
23504         * doc/posix-functions/iswlower.texi: Update.
23505         * doc/posix-functions/iswprint.texi: Update.
23506         * doc/posix-functions/iswpunct.texi: Update.
23507         * doc/posix-functions/iswspace.texi: Update.
23508         * doc/posix-functions/iswupper.texi: Update.
23509         * doc/posix-functions/iswxdigit.texi: Update.
23510         * doc/posix-functions/towlower.texi: Update.
23511         * doc/posix-functions/towupper.texi: Update.
23512         * NEWS: Mention the change.
23513         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23514         * modules/mbchar (Dependencies): Likewise.
23515         * modules/mbswidth (Dependencies): Likewise.
23516         * modules/quotearg (Dependencies): Likewise.
23517         * modules/regex (Dependencies): Likewise.
23518         * modules/wcscasecmp (Dependencies): Likewise.
23519         * modules/wcsncasecmp (Dependencies): Likewise.
23520         * modules/wcwidth (Dependencies): Likewise.
23521
23522 2011-02-06  Bruno Haible  <bruno@clisp.org>
23523
23524         New module 'wcswidth'.
23525         * modules/wcswidth: New file.
23526         * lib/wchar.in.h (wcswidth): New declaration.
23527         * lib/wcswidth.c: New file.
23528         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23529         * m4/wcswidth.m4: New file.
23530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23532         REPLACE_WCSWIDTH.
23533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23534         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23535         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23536         * doc/posix-functions/wcswidth.texi: Mention the new module.
23537
23538 2011-02-06  Bruno Haible  <bruno@clisp.org>
23539
23540         New module 'wcstok'.
23541         * modules/wcstok: New file.
23542         * lib/wchar.in.h (wcstok): New declaration.
23543         * lib/wcstok.c: New file.
23544         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23545         * m4/wcstok.m4: New file.
23546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23549         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23550         * doc/posix-functions/wcstok.texi: Mention the new module.
23551
23552 2011-02-06  Bruno Haible  <bruno@clisp.org>
23553
23554         New module 'wcsstr'.
23555         * modules/wcsstr: New file.
23556         * lib/wchar.in.h (wcsstr): New declaration.
23557         * lib/wcsstr.c: New file.
23558         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23559         * m4/wcsstr.m4: New file.
23560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23562         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23563         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23564         * doc/posix-functions/wcsstr.texi: Mention the new module.
23565
23566 2011-02-06  Bruno Haible  <bruno@clisp.org>
23567
23568         New module 'wcspbrk'.
23569         * modules/wcspbrk: New file.
23570         * lib/wchar.in.h (wcspbrk): New declaration.
23571         * lib/wcspbrk.c: New file.
23572         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23573         * m4/wcspbrk.m4: New file.
23574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23577         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23578         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23579
23580 2011-02-06  Bruno Haible  <bruno@clisp.org>
23581
23582         New module 'wcsspn'.
23583         * modules/wcsspn: New file.
23584         * lib/wchar.in.h (wcsspn): New declaration.
23585         * lib/wcsspn.c: New file.
23586         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23587         * m4/wcsspn.m4: New file.
23588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23591         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23592         * doc/posix-functions/wcsspn.texi: Mention the new module.
23593
23594 2011-02-06  Bruno Haible  <bruno@clisp.org>
23595
23596         New module 'wcscspn'.
23597         * modules/wcscspn: New file.
23598         * lib/wchar.in.h (wcscspn): New declaration.
23599         * lib/wcscspn.c: New file.
23600         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23601         * m4/wcscspn.m4: New file.
23602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23605         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23606         * doc/posix-functions/wcscspn.texi: Mention the new module.
23607
23608 2011-02-06  Bruno Haible  <bruno@clisp.org>
23609
23610         New module 'wcsrchr'.
23611         * modules/wcsrchr: New file.
23612         * lib/wchar.in.h (wcsrchr): New declaration.
23613         * lib/wcsrchr.c: New file.
23614         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23615         * m4/wcsrchr.m4: New file.
23616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23619         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23620         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23621
23622 2011-02-06  Bruno Haible  <bruno@clisp.org>
23623
23624         New module 'wcschr'.
23625         * modules/wcschr: New file.
23626         * lib/wchar.in.h (wcschr): New declaration.
23627         * lib/wcschr.c: New file.
23628         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23629         * m4/wcschr.m4: New file.
23630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23633         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23634         * doc/posix-functions/wcschr.texi: Mention the new module.
23635
23636 2011-02-06  Bruno Haible  <bruno@clisp.org>
23637
23638         New module 'wcsdup'.
23639         * modules/wcsdup: New file.
23640         * lib/wchar.in.h (wcsdup): New declaration.
23641         * lib/wcsdup.c: New file.
23642         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23643         * m4/wcsdup.m4: New file.
23644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23647         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23648         * doc/posix-functions/wcsdup.texi: Mention the new module.
23649
23650 2011-02-06  Bruno Haible  <bruno@clisp.org>
23651
23652         New module 'wcsxfrm'.
23653         * modules/wcsxfrm: New file.
23654         * lib/wchar.in.h (wcsxfrm): New declaration.
23655         * lib/wcsxfrm.c: New file.
23656         * lib/wcsxfrm-impl.h: New file.
23657         * m4/wcsxfrm.m4: New file.
23658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23661         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23662         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23663
23664 2011-02-06  Bruno Haible  <bruno@clisp.org>
23665
23666         New module 'wcscoll'.
23667         * modules/wcscoll: New file.
23668         * lib/wchar.in.h (wcscoll): New declaration.
23669         * lib/wcscoll.c: New file.
23670         * lib/wcscoll-impl.h: New file.
23671         * m4/wcscoll.m4: New file.
23672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23675         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23676         * doc/posix-functions/wcscoll.texi: Mention the new module.
23677
23678 2011-02-06  Bruno Haible  <bruno@clisp.org>
23679
23680         New module 'wcsncasecmp'.
23681         * modules/wcsncasecmp: New file.
23682         * lib/wchar.in.h (wcsncasecmp): New declaration.
23683         * lib/wcsncasecmp.c: New file.
23684         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23685         * m4/wcsncasecmp.m4: New file.
23686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23689         HAVE_WCSNCASECMP.
23690         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23691         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23692
23693 2011-02-06  Bruno Haible  <bruno@clisp.org>
23694
23695         New module 'wcscasecmp'.
23696         * modules/wcscasecmp: New file.
23697         * lib/wchar.in.h (wcscasecmp): New declaration.
23698         * lib/wcscasecmp.c: New file.
23699         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23700         * m4/wcscasecmp.m4: New file.
23701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23704         HAVE_WCSCASECMP.
23705         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23706         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23707
23708 2011-02-05  Bruno Haible  <bruno@clisp.org>
23709
23710         New module 'wcsncmp'.
23711         * modules/wcsncmp: New file.
23712         * lib/wchar.in.h (wcsncmp): New declaration.
23713         * lib/wcsncmp.c: New file.
23714         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23715         * m4/wcsncmp.m4: New file.
23716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23719         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23720         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23721
23722 2011-02-05  Bruno Haible  <bruno@clisp.org>
23723
23724         New module 'wcscmp'.
23725         * modules/wcscmp: New file.
23726         * lib/wchar.in.h (wcscmp): New declaration.
23727         * lib/wcscmp.c: New file.
23728         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23729         * m4/wcscmp.m4: New file.
23730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23733         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23734         * doc/posix-functions/wcscmp.texi: Mention the new module.
23735
23736 2011-02-05  Bruno Haible  <bruno@clisp.org>
23737
23738         New module 'wcsncat'.
23739         * modules/wcsncat: New file.
23740         * lib/wchar.in.h (wcsncat): New declaration.
23741         * lib/wcsncat.c: New file.
23742         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23743         * m4/wcsncat.m4: New file.
23744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23747         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23748         * doc/posix-functions/wcsncat.texi: Mention the new module.
23749
23750 2011-02-05  Bruno Haible  <bruno@clisp.org>
23751
23752         New module 'wcscat'.
23753         * modules/wcscat: New file.
23754         * lib/wchar.in.h (wcscat): New declaration.
23755         * lib/wcscat.c: New file.
23756         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23757         * m4/wcscat.m4: New file.
23758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23761         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23762         * doc/posix-functions/wcscat.texi: Mention the new module.
23763
23764 2011-02-05  Bruno Haible  <bruno@clisp.org>
23765
23766         New module 'wcpncpy'.
23767         * modules/wcpncpy: New file.
23768         * lib/wchar.in.h (wcpncpy): New declaration.
23769         * lib/wcpncpy.c: New file.
23770         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23771         * m4/wcpncpy.m4: New file.
23772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23774         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23775         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23776         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23777
23778 2011-02-05  Bruno Haible  <bruno@clisp.org>
23779
23780         New module 'wcsncpy'.
23781         * modules/wcsncpy: New file.
23782         * lib/wchar.in.h (wcsncpy): New declaration.
23783         * lib/wcsncpy.c: New file.
23784         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23785         * m4/wcsncpy.m4: New file.
23786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23789         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23790         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23791
23792 2011-02-05  Bruno Haible  <bruno@clisp.org>
23793
23794         New module 'wcpcpy'.
23795         * modules/wcpcpy: New file.
23796         * lib/wchar.in.h (wcpcpy): New declaration.
23797         * lib/wcpcpy.c: New file.
23798         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23799         * m4/wcpcpy.m4: New file.
23800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23802         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23803         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23804         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23805
23806 2011-02-05  Bruno Haible  <bruno@clisp.org>
23807
23808         New module 'wcscpy'.
23809         * modules/wcscpy: New file.
23810         * lib/wchar.in.h (wcscpy): New declaration.
23811         * lib/wcscpy.c: New file.
23812         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23813         * m4/wcscpy.m4: New file.
23814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23817         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23818         * doc/posix-functions/wcscpy.texi: Mention the new module.
23819
23820 2011-02-05  Bruno Haible  <bruno@clisp.org>
23821
23822         New module 'wcsnlen'.
23823         * modules/wcsnlen: New file.
23824         * lib/wchar.in.h (wcsnlen): New declaration.
23825         * lib/wcsnlen.c: New file.
23826         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23827         * m4/wcsnlen.m4: New file.
23828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23831         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23832         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23833
23834 2011-02-05  Bruno Haible  <bruno@clisp.org>
23835
23836         New module 'wcslen'.
23837         * modules/wcslen: New file.
23838         * lib/wchar.in.h (wcslen): New declaration.
23839         * lib/wcslen.c: New file.
23840         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23841         * m4/wcslen.m4: New file.
23842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23845         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23846         * doc/posix-functions/wcslen.texi: Mention the new module.
23847
23848 2011-02-05  Bruno Haible  <bruno@clisp.org>
23849
23850         New module 'wmemset'.
23851         * modules/wmemset: New file.
23852         * lib/wchar.in.h (wmemset): New declaration.
23853         * lib/wmemset.c: New file.
23854         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23855         * m4/wmemset.m4: New file.
23856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23858         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23859         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23860         * doc/posix-functions/wmemset.texi: Mention the new module.
23861
23862 2011-02-05  Bruno Haible  <bruno@clisp.org>
23863
23864         New module 'wmemmove'.
23865         * modules/wmemmove: New file.
23866         * lib/wchar.in.h (wmemmove): New declaration.
23867         * lib/wmemmove.c: New file.
23868         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23869         * m4/wmemmove.m4: New file.
23870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23872         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23873         HAVE_WMEMMOVE.
23874         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23875         * doc/posix-functions/wmemmove.texi: Mention the new module.
23876
23877 2011-02-05  Bruno Haible  <bruno@clisp.org>
23878
23879         New module 'wmemcpy'.
23880         * modules/wmemcpy: New file.
23881         * lib/wchar.in.h (wmemcpy): New declaration.
23882         * lib/wmemcpy.c: New file.
23883         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23884         * m4/wmemcpy.m4: New file.
23885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23887         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23888         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23889         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23890
23891 2011-02-05  Bruno Haible  <bruno@clisp.org>
23892
23893         New module 'wmemcmp'.
23894         * modules/wmemcmp: New file.
23895         * lib/wchar.in.h (wmemcmp): New declaration.
23896         * lib/wmemcmp.c: New file.
23897         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23898         * m4/wmemcmp.m4: New file.
23899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23901         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23902         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23903         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23904
23905 2011-02-07  Jim Meyering  <meyering@redhat.com>
23906
23907         di-set, ino-map: new modules, from coreutils
23908         * lib/di-set.c: New file.
23909         * lib/di-set.h: Likewise.
23910         * lib/ino-map.c: Likewise.
23911         * lib/ino-map.h: Likewise.
23912         * modules/di-set: Likewise.
23913         * modules/di-set-tests: Likewise.
23914         * modules/ino-map: Likewise.
23915         * modules/ino-map-tests: Likewise.
23916         * tests/test-di-set.c: Likewise.
23917         * tests/test-ino-map.c: Likewise.
23918
23919 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23920
23921         getloadavg: merge minor changes from Emacs
23922
23923         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23924         (getloadavg): Use memset, not bzero.
23925
23926         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23927         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23928         clash (bug#86).
23929
23930 2010-11-14  Bruno Haible  <bruno@clisp.org>
23931
23932         Allow multiple gnulib generated replacements to coexist.
23933         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23934         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23935         * lib/langinfo.in.h (nl_item): Likewise.
23936         * lib/math.in.h (_NaN, NAN): Likewise.
23937         * lib/netdb.in.h (struct addrinfo): Likewise.
23938         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23939         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23940         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23941         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23942         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23943         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23944         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23945         pthread_mutexattr_init, pthread_mutexattr_settype,
23946         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23947         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23948         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23949         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23950         * lib/sched.in.h (struct sched_param): Likewise.
23951         * lib/se-selinux.in.h (security_class_t, security_context_t,
23952         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23953         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23954         lsetfilecon, fsetfilecon, security_check_context,
23955         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23956         Likewise.
23957         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23958         Likewise.
23959         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23960         _gl_function_taking_int_returning_void_t, union sigval,
23961         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23962         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23963         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23964         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23965         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23966         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23967         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23968         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23969         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23970         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23971         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23972         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23973         socklen_t, rpl_fd_isset): Likewise.
23974         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23975         * lib/sys_time.in.h (struct timeval): Likewise.
23976         * lib/sys_times.in.h (struct tms): Likewise.
23977         * lib/sys_utsname.in.h (struct utsname):
23978         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23979         * lib/unistd.in.h (getpagesize): Likewise.
23980         * lib/wchar.in.h (mbstate_t): Likewise.
23981         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23982         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23983         towlower, towupper): Likewise.
23984         Reported by Sam Steingold <sds@gnu.org>.
23985
23986 2011-02-05  Eric Blake  <eblake@redhat.com>
23987
23988         unsetenv: work around Haiku issues
23989         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23990         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23991
23992 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23993
23994         libposix: avoid calling error() within libposix
23995         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23996         is defined.
23997
23998 2011-02-05  Eric Blake  <eblake@redhat.com>
23999
24000         strerror_r-posix: port to cygwin
24001         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24002         implementation.
24003         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24004         * tests/test-strerror_r.c (main): Fix test.
24005         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24006         issue.
24007
24008 2011-02-05  Bruno Haible  <bruno@clisp.org>
24009
24010         New module 'wmemchr'.
24011         * modules/wmemchr: New file.
24012         * lib/wchar.in.h (wmemchr): New declaration.
24013         * lib/wmemchr.c: New file.
24014         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24015         * m4/wmemchr.m4: New file.
24016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24018         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24019         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24020         * doc/posix-functions/wmemchr.texi: Mention the new module.
24021
24022 2011-02-04  Eric Blake  <eblake@redhat.com>
24023
24024         fdopendir: detect FreeBSD bug
24025         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24026         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24027
24028 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24029
24030         stdbool: do not define HAVE_STDBOOL_H
24031         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24032         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24033         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24034         imported from the latest Autoconf git.  It was motivated by Emacs,
24035         which uses gnulib but does not need HAVE_STDBOOL_H.
24036
24037 2011-02-04  Bruno Haible  <bruno@clisp.org>
24038
24039         wcsnrtombs: Prepare for new module wwcsnrtombs.
24040         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24041         * lib/wcsnrtombs.c: Include it.
24042         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24043
24044         wcsrtombs: Prepare for new module wwcsrtombs.
24045         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24046         * lib/wcsrtombs.c: Include it.
24047         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24048
24049         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24050         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24051         * lib/mbsnrtowcs.c: Include it.
24052         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24053
24054         mbsrtowcs: Prepare for new module mbsrtowwcs.
24055         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24056         * lib/mbsrtowcs.c: Include it.
24057         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24058
24059 2011-02-04  Bruno Haible  <bruno@clisp.org>
24060
24061         vasnprintf: Reduce use of malloc for small format strings.
24062         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24063         (arguments): Add room for the first 7 arguments.
24064         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24065         (char_directives, u8_directives, u16_directives, u32_directives): Add
24066         room for the first 7 directives.
24067         * lib/printf-parse.c: Include <string.h>.
24068         (PRINTF_PARSE): Change memory handling code so that it uses the first
24069         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24070         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24071         Reported by Pádraig Brady <P@draigbrady.com>.
24072
24073 2011-01-31  Eric Blake  <eblake@redhat.com>
24074
24075         dup2: work around Haiku bug
24076         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24077         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24078         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24079         * tests/test-dup2.c (main): Enhance test.
24080
24081 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24082
24083         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24084         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24085         declared by eglibc 2.11.2.
24086         * lib/stdio.in.h: Likewise.
24087
24088 2011-01-31  Eric Blake  <eblake@redhat.com>
24089
24090         ignore-value: add missing test dependency
24091         * tests/test-ignore-value.c: Revert previous change; stdio.h
24092         provides off_t.
24093         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24094
24095 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24096
24097         mktime: clarify long_int width checking
24098         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24099         the top level, to make it clearer that the assumption about
24100         long_int width is being checked.  See
24101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24102
24103 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24104
24105         ignore-value: Fix self-test.
24106         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24107
24108 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24109
24110         TYPE_MAXIMUM: avoid theoretically undefined behavior
24111         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24112         negative number, which the C Standard says has undefined behavior.
24113         In practice this is not a problem, but might as well do it by the book.
24114         Reported by Rich Felker and Eric Blake; see
24115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24116         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24117         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24119         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24120         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24121         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24122
24123         mktime: #undef mktime before #defining it
24124         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24125
24126         mktime: systematically normalize tm_isdst comparisons
24127         * lib/mktime.c (isdst_differ): New function.
24128         (__mktime_internal): Use it systematically for all isdst comparisons.
24129         This completes the fix for libc BZ #6723, and removes the need for
24130         normalizing tm_isdst.  See
24131         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24132         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24133
24134         mktime: fix some integer overflow issues and sidestep the rest
24135
24136         This was prompted by a bug report by Benjamin Lindner for MinGW
24137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24138         His bug is due to signed integer overflow (0 - INT_MIN), and I
24139         I scanned through mktime.c looking for other integer overflow
24140         problems, fixing all the bugs I found.
24141
24142         Although the C Standard says the resulting code is still not safe
24143         in the presence of integer overflow, in practice it should be good
24144         enough for all real-world two's-complement implementations, except
24145         for debugging environments that deliberately trap on integer
24146         overflow (e.g., gcc -ftrapv).
24147
24148         * lib/mktime.c (WRAPV): New macro.
24149         (SHR): Also check that long_int and time_t shift right in the
24150         usual way, before using the fast-but-unportable method.
24151         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24152         used.  The code already assumed two's complement, so there's
24153         no need to test for alternatives.  All uses removed.
24154         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24155         the C standard.  Problem reported by Rich Felker in
24156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24157         (twos_complement_arithmetic): Also check long_int and time_t.
24158         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24159         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24160         (__mktime_internal): Avoid integer overflow with unary subtraction
24161         in two instances where -1 - X is an adequate replacement for -X,
24162         since the calculations are approximate.
24163
24164 2011-01-29  Eric Blake  <eblake@redhat.com>
24165
24166         mktime: avoid infinite loop
24167         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24168         type; behavior is still undefined but portable to all known targets.
24169         Reported by Rich Felker.
24170
24171 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24172
24173         rename, unlink, same-inode: Relicense.
24174         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24175         * modules/unlink (License): Likewise.
24176         * modules/same-inode (License): Likewise.
24177
24178 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24179
24180         mktime: avoid problems on NetBSD 5 / i386
24181         * lib/mktime.c (long_int): New type.  This works around a problem
24182         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24183         but time_t is 64 bits, and where I expect the existing code is
24184         wrong in some cases.
24185         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24186         (ydhms_diff): Bring back the compile-time check for wide-enough
24187         year and yday.
24188
24189         mktime: fix misspelling in comment
24190         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24191         This merges all recent glibc changes of importance.
24192
24193 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24194
24195         move-if-change: cope with concurrent mv of identical file.
24196         * build-aux/move-if-change (CMPPROG): Accept environment
24197         variable as an override for `cmp'.
24198         (usage): Document CMPPROG.
24199         Adjust comparison to drop stdout.  Cope with failure of mv if
24200         the target file exists and is identical to the source, for
24201         parallel builds.
24202         Report from H.J. Lu against binutils in PR binutils/12283.
24203
24204 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24205
24206         * users.txt: Mention sharutils.
24207
24208 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24209
24210         * users.txt: Mention OATH Toolkit.
24211
24212 2011-01-27  Bruno Haible  <bruno@clisp.org>
24213
24214         Prepare for supporting FreeBSD 10.
24215         * build-aux/config.libpath: Remove handling of freebsd1*.
24216
24217 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24218
24219         Prepare for supporting FreeBSD 10.
24220         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24221         match FreeBSD 10.0.
24222
24223 2011-01-27  Bruno Haible  <bruno@clisp.org>
24224
24225         vma-iter, get-rusage-as: Add OpenBSD support.
24226         * modules/vma-iter (configure.ac): Test for mquery.
24227         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24228         * lib/vma-iter.c: Include <sys/mman.h>.
24229         (vma_iterate): Add an implementation based on mquery().
24230         * lib/resource-ext.h (get_rusage_as): Update comments.
24231         * lib/get-rusage-as.c: Likewise.
24232         * lib/get-rusage-data.c: Likewise.
24233
24234 2011-01-26  Karl Berry  <karl@gnu.org>
24235
24236         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24237         variables to make it easier to override the makeinfo program used.
24238
24239 2011-01-26  Eric Blake  <eblake@redhat.com>
24240
24241         fcntl: work around Haiku F_DUPFD bugs
24242         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24243         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24244         cloexec bit on duplication.
24245         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24246
24247 2011-01-26  Bruno Haible  <bruno@clisp.org>
24248
24249         Enable memory leak tests on AIX.
24250         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24251         * tests/test-fprintf-posix3.c (main): Likewise.
24252
24253 2011-01-26  Bruno Haible  <bruno@clisp.org>
24254
24255         Tests for module 'get-rusage-data'.
24256         * modules/get-rusage-data-tests: New file.
24257         * tests/test-get-rusage-data.c: New file.
24258
24259         New module 'get-rusage-data'.
24260         * lib/resource-ext.h (get_rusage_data): New declaration.
24261         * lib/get-rusage-data.c: New file.
24262         * modules/get-rusage-data: New file.
24263
24264 2011-01-25  Bruno Haible  <bruno@clisp.org>
24265
24266         get-rusage-as: Allow for easier testing.
24267         * lib/resource-ext.h (get_rusage_as): Add comment.
24268         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24269         (main): New function for interactive testing.
24270
24271 2011-01-25  Bruno Haible  <bruno@clisp.org>
24272
24273         vma-iter: Treat Haiku like BeOS.
24274         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24275         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24276
24277 2011-01-25  Eric Blake  <eblake@redhat.com>
24278
24279         c-stack: fix regression on cygwin when libsigsegv is present
24280         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24281
24282 2011-01-24  Bruno Haible  <bruno@clisp.org>
24283
24284         vma-iter: Avoid empty intervals.
24285         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24286         on an empty interval.
24287
24288 2011-01-24  Jim Meyering  <meyering@redhat.com>
24289
24290         u64: remove unnecessary #include
24291         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24292
24293 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24294
24295         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24296         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24297
24298 2011-01-23  Bruno Haible  <bruno@clisp.org>
24299
24300         New module 'vma-iter'.
24301         * lib/vma-iter.h: New file.
24302         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24303         * modules/vma-iter: New file.
24304         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24305         for get_rusage_as_via_iterator.
24306         (vma_iterate_callback): New function.
24307         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24308         * modules/get-rusage-as (Depends-on): Add vma-iter.
24309
24310 2011-01-23  Bruno Haible  <bruno@clisp.org>
24311
24312         uninorm: Tweak includes.
24313         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24314         Reported by Jim Meyering.
24315
24316 2011-01-23  Bruno Haible  <bruno@clisp.org>
24317
24318         get-rusage-as: Improve on NetBSD.
24319         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24320         /proc, like on FreeBSD.
24321
24322 2011-01-23  Jim Meyering  <meyering@redhat.com>
24323
24324         xreadlink.h: remove unnecessary #include
24325         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24326
24327         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24328         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24329
24330 2011-01-23  Bruno Haible  <bruno@clisp.org>
24331
24332         get-rusage-as: Fix bug.
24333         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24334         original limit when aborting the first loop.
24335
24336 2011-01-23  Bruno Haible  <bruno@clisp.org>
24337
24338         wctype: Ensure valid C syntax.
24339         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24340         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24341
24342 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24343
24344         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24346         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24347         as they are needed only for configure's test case.
24348         This removes two unnecessary symbols from config.h.
24349
24350         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24351         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24353         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24354         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24355         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24356         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24357         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24358         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24359         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24360         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24362         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24363         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24364         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24365         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24366         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24367         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24368
24369 2011-01-21  Eric Blake  <eblake@redhat.com>
24370
24371         maintainer-makefile: work with older git for submodule check
24372         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24373         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24374         Reported by Matthias Bolte.
24375
24376         bootstrap: minor portability fixes
24377         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24378         (usage): Omit leading capital and trailing . on help phrases, per
24379         GNU Coding Standards.
24380         (check_versions, top level): Prefix messages with script name.
24381
24382 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24383
24384         bootstrap: support --no-git option
24385         * build-aux/bootstrap: Add --no-git option, to be used when
24386         --gnulib-srcdir points to the exact desired checkout.
24387
24388 2011-01-21  Eric Blake  <eblake@redhat.com>
24389
24390         strerror_r-posix: work with glibc 2.13
24391         * lib/strerror_r.c (strerror_r): Fix return type.
24392
24393 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24394             Bruno Haible  <bruno@clisp.org>
24395
24396         uN_strstr: New unit tests.
24397         * modules/unistr/u8-strstr-tests: New file.
24398         * modules/unistr/u16-strstr-tests: New file.
24399         * modules/unistr/u32-strstr-tests: New file.
24400         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24401         * tests/unistr/test-u8-strstr.c: New file.
24402         * tests/unistr/test-u16-strstr.c: New file.
24403         * tests/unistr/test-u32-strstr.c: New file.
24404
24405 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24406             Bruno Haible  <bruno@clisp.org>
24407
24408         Make uN_strstr functions O(n) worst-case.
24409         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24410         16-bit and 32-bit unit cases, use the unibyte algorithm from
24411         lib/mbsstr.c.
24412         * lib/unistr/u8-strstr.c: Include <string.h>.
24413         (UNIT_IS_UINT8_T): New macro.
24414         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24415         (U_STRLEN, U_STRNLEN): New macros.
24416         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24417         (U_STRLEN, U_STRNLEN): New macros.
24418         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24419         (configure.ac): Update required libunistring version.
24420         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24421         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24422         malloca.
24423         (configure.ac): Update required libunistring version.
24424         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24425         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24426         malloca.
24427         (configure.ac): Update required libunistring version.
24428
24429 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24430             Bruno Haible  <bruno@clisp.org>
24431
24432         Prepare for faster uN_strstr functions.
24433         * lib/str-kmp.h: Support definable UNITs.
24434         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24435         needle_len argument.
24436         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24437         * lib/mbscasestr.c (mbscasestr): Likewise.
24438
24439 2011-01-21  Pádraig Brady <P@draigBrady.com>
24440
24441         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24442         * tests/test-malloca.c (main): Unset the environment variable
24443         to greatly speed up the test.
24444         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24445         * modules/malloca-tests: Depend on unsetenv.
24446
24447 2011-01-21  Pádraig Brady <P@draigBrady.com>
24448
24449         ignore-value: remove stdint dependency
24450         * lib/ignore-value.h: Remove <stdint.h>
24451         * modules/ignore-value: Remove stdint dependency.
24452
24453 2011-01-21  Jim Meyering  <meyering@redhat.com>
24454
24455         maint.mk: adjust variable name to be consistent with other gl_ vars
24456         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24457         to be lower case.
24458
24459 2011-01-20  Jim Meyering  <meyering@redhat.com>
24460
24461         maint.mk: make "check" depend on public-submodule-commit by default
24462         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24463
24464 2011-01-20  Bruno Haible  <bruno@clisp.org>
24465
24466         mbfile, mbiter: Complete change from 2008-12-21.
24467         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24468         * m4/mbiter.m4 (gl_MBITER): Likewise.
24469
24470 2011-01-20  Jim Meyering  <meyering@redhat.com>
24471
24472         init.sh: insert space between each function name and "()"
24473         * tests/init.sh: Make it a little easier to see that a function's
24474         name is "warn_", and not "warn" when looking at the first part of
24475         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24476
24477 2011-01-20  Jim Meyering  <meyering@redhat.com>
24478
24479         mountlist: clean up code formatting
24480         * lib/mountlist.c (read_file_system_list): Split a long line,
24481         correct bracing style, use NULL in place of "(struct statfs *)0",
24482         don't parenthesize return value, add spaces around "=" and after
24483         ";-in-for-stmt".
24484
24485 2011-01-14  Markus Duft <mduft@gentoo.org>
24486
24487         mountlist: add support for Interix
24488         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24489         Apply statvfs to all entries of /dev/fs.
24490         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24491         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24492
24493 2011-01-20  Jim Meyering  <meyering@redhat.com>
24494
24495         maint.mk: improve the public-submodule-commit rule
24496         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24497         to suppress printing of its commands... unless V=1.
24498         Add git submodule's --quiet option to suppress printing of e.g.,
24499         "Entering gnulib" output.
24500         "cd" into $(srcdir) before running git submodule.
24501
24502 2011-01-20  Bruno Haible  <bruno@clisp.org>
24503
24504         include_next: Fix bug introduced on 2011-01-18.
24505         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24506         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24507         ac_cv_header_... variable if the second argument is not 'check'.
24508         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24509         gl_NEXT_HEADERS_INTERNAL.
24510
24511 2011-01-20  Bruno Haible  <bruno@clisp.org>
24512
24513         Allow the user to avoid the GNULIB_TEST_* macros.
24514         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24515         Suggested by Paul Eggert.
24516
24517 2011-01-14  Jim Meyering  <meyering@redhat.com>
24518
24519         bootstrap: avoid failure when there is no .gitmodules file
24520         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24521         has been assigned to, even when its value is the empty string.
24522         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24523         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24524         Reported by John W. Eaton <jwe@gnu.org>.
24525
24526 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24527
24528         assume <ctype.h>, ..., <time.h> exist
24529         For years gnulib has been assuming the existence of the headers
24530         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24531         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24532         them, since they don't appear to be needed.
24533         * README (Portability guidelines): Document this.
24534         * lib/flock.c: Assume <fcntl.h> exists.
24535         * lib/regex_internal.h: Assume <locale.h> exists.
24536         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24537         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24538         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24539         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24540         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24541         * m4/regex.m4 (gl_REGEX): Likewise.
24542         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24543         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24544         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24545         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24546         * tests/test-argp.c: Likewise.
24547         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24548
24549         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24550         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24551         AA_APPLE_UNIVERSAL_BUILD.  See
24552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24553         * NEWS: Document this.
24554
24555 2011-01-19  Eric Blake  <eblake@redhat.com>
24556
24557         c-stack: assume stack overflow if SA_SIGINFO unsupported
24558         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24559         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24560         sigaction will work.
24561         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24562         behavior match Linux.
24563         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24564
24565         stdbool-tests: accommodate Haiku
24566         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24567
24568         binary-io: fix O_TEXT on Haiku
24569         * modules/binary-io (Depends-on): Add fcntl-h.
24570         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24571         than blindly undefining O_TEXT.
24572         Reported by Scott McCreary.
24573
24574 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24575
24576         include_next: do not check for standard headers like stddef.h
24577
24578         I found this problem when modifying Emacs to use gnulib.
24579         I noticed that it added HAVE_STDDEF_H to config.h, even though
24580         gnulib always assumes <stddef.h> exists as per README and this
24581         symbol is unnecessary.
24582         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24583         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24584         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24585         faster for headers like stddef.h that are known to exist.
24586         (gl_CHECK_NEXT_HEADERS): Use it.
24587         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24588         rather than gl_CHECK_NEXT_HEADERS.
24589         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24590         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24591
24592 2011-01-18  Eric Blake  <eblake@redhat.com>
24593
24594         ansi-c++-opt: skip C++ dependency style if C++ is unused
24595         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24596         tests when we know C++ compilation is not desired.
24597         Reported by Scott McCreary.
24598
24599 2011-01-18  Bruno Haible  <bruno@clisp.org>
24600
24601         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24602         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24603         (main): Perform test also when getrlimit and setrlimit don't exist or
24604         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24605         limiting the address space size using setrlimit, compare the address
24606         space size before and after the the test.
24607         * tests/test-dprintf-posix2.c: Likewise.
24608         * tests/test-fprintf-posix3.sh: Update skip messages.
24609         * tests/test-dprintf-posix2.sh: Likewise.
24610         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24611         * modules/dprintf-posix-tests (Depends-on): Likewise.
24612         Reported by Bruce Korb <bkorb@gnu.org> and
24613         Gary V. Vaughan <gary@gnu.org>.
24614
24615 2011-01-18  Bruno Haible  <bruno@clisp.org>
24616
24617         get-rusage-as: Improvement for Cygwin.
24618         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24619         areas that are merely reserved.
24620
24621 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24622
24623         strftime: remove dependencies on multibyte modules
24624
24625         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24626         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24627         only if __osf__ is defined, and I suspect OSF doesn't need these
24628         other modules.  If my guess is wrong, we'll need to come up with a
24629         variant of strftime that doesn't need the multibyte modules.
24630
24631         I discovered this problem when attempting modify Emacs to use the
24632         strftime module.  With the previous gnulib, this caused Emacs to
24633         need 31 new files, ranging from lib/config.charset to
24634         m4/wint_t.m4.  This was overkill and I expect would be offputting
24635         to the Emacs maintainers.  After this change, only 6 new files are
24636         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24637         stdbool.m4, and tm_gmtoff.m4.
24638
24639         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24640         Suggested by Bruno Haible in
24641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24642         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24643         and do not check for wchar.h.
24644         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24645         (Depends-on): Remove mbrlen, mbsinit, wchar.
24646
24647 2011-01-18  Bruno Haible  <bruno@clisp.org>
24648
24649         Tests for module 'get-rusage-as'.
24650         * modules/get-rusage-as-tests: New file.
24651         * tests/test-get-rusage-as.c: New file.
24652
24653         New module 'get-rusage-as'.
24654         * modules/get-rusage-as: New file.
24655         * lib/resource-ext.h: New file.
24656         * lib/get-rusage-as.c: New file.
24657
24658 2011-01-17  Eric Blake  <eblake@redhat.com>
24659
24660         sigaction: relax license from LGPLv3+ to LGPLv2+
24661         * modules/sigaction (License): Relax to LGPLv2+.
24662
24663 2011-01-14  Bruno Haible  <bruno@clisp.org>
24664
24665         filemode: Make function declarations usable in C++ mode.
24666         * lib/filemode.h: Enclose function declarations in extern "C" block.
24667         Reported by John W. Eaton <jwe@gnu.org>.
24668
24669 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24670
24671         save-cwd: no longer include "xgetcwd.h"
24672         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24673         This avoids a compilation failure in projects that use save-cwd
24674         without also using the xgetcwd module.
24675
24676 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24677
24678         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24679         This is so that a program like Emacs, which needs only dtoastr,
24680         does not have to bother with distributing and compiling ftoastr
24681         and ldtoastr.
24682         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24683         * modules/dtoastr, modules/ldtoastr: New files.
24684         * modules/ftoastr: Now works just for 'float'.
24685         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24686         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24687         dtoastr.c, ldtoastr.c.
24688
24689 2011-01-11  Jim Meyering  <meyering@redhat.com>
24690
24691         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24692         There is no need to work around the lack of the fchdir function,
24693         since gnulib can now provide a replacement when required.
24694         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24695         * modules/save-cwd (Depends-on): Add fchdir.
24696
24697 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24698
24699         openat, save-cwd: avoid xmalloc
24700
24701         This removes a direct (but undocumented) dependency of openat on
24702         xalloc, along with an indirect dependency via save-cwd.  It also
24703         removes a dependency of save-cwd on xgetcwd, and thereby
24704         indirectly on xalloc.  This change causes the openat substitute
24705         to fall back on save_cwd when memory is tight, and for save_cwd to
24706         fail instead of dying when memory is tight, but that's good enough.
24707         Problem and initial idea for fix reported by Bastien Roucaries in
24708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24709
24710         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24711         xalloc.h (for xmalloc).
24712         (openat_proc_name): Use malloc, not xmalloc.
24713         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24714         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24715
24716         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24717         This avoids heap allocation for file names whose lengths are in
24718         the range 512..1023, with the upper bound increasing to at most
24719         4031 depending on the platform's PATH_MAX.  (We do not want
24720         pathmax.h here as it might supply a non-constant PATH_MAX.)
24721         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24722         Perhaps they should be moved to malloca.h?
24723         (OPENAT_BUFFER_SIZE): Use them.
24724
24725 2011-01-10  Bruno Haible  <bruno@clisp.org>
24726
24727         doc: Update users.txt.
24728         * users.txt: Add recutils.
24729
24730 2011-01-09  Karl Berry  <karl@gnu.org>
24731
24732         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24733
24734         * doc/configmake.texi: New file.
24735         * doc/gnulib.texi: Include it.
24736         * modules/configmake: Move documentation from here.
24737
24738 2011-01-09  Bruno Haible  <bruno@clisp.org>
24739
24740         Update to Unicode 6.0.0.
24741         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24742         (get_lbp): Update for Unicode 6.0.0.
24743         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24744         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24745         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24746         U+11001, U+11038..U+11046. Remove U+06DE.
24747         (uc_width): Fix bounds of planes.
24748         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24749         lib/uniwidth/width.c.
24750         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24751         trailing whitespace removed.
24752         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24753         without comments, but with the original copyright notice.
24754         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24755         * lib/unicase/ignorable.h: Likewise.
24756         * lib/unicase/tocasefold.h: Likewise.
24757         * lib/unicase/tolower.h: Likewise.
24758         * lib/unicase/totitle.h: Likewise.
24759         * lib/unicase/toupper.h: Likewise.
24760         * lib/unictype/bidi_of.h: Likewise.
24761         * lib/unictype/blocks.h: Likewise.
24762         * lib/unictype/categ_C.h: Likewise.
24763         * lib/unictype/categ_Cn.h: Likewise.
24764         * lib/unictype/categ_L.h: Likewise.
24765         * lib/unictype/categ_Ll.h: Likewise.
24766         * lib/unictype/categ_Lm.h: Likewise.
24767         * lib/unictype/categ_Lo.h: Likewise.
24768         * lib/unictype/categ_Lu.h: Likewise.
24769         * lib/unictype/categ_M.h: Likewise.
24770         * lib/unictype/categ_Mc.h: Likewise.
24771         * lib/unictype/categ_Me.h: Likewise.
24772         * lib/unictype/categ_Mn.h: Likewise.
24773         * lib/unictype/categ_N.h: Likewise.
24774         * lib/unictype/categ_Nd.h: Likewise.
24775         * lib/unictype/categ_No.h: Likewise.
24776         * lib/unictype/categ_P.h: Likewise.
24777         * lib/unictype/categ_Po.h: Likewise.
24778         * lib/unictype/categ_S.h: Likewise.
24779         * lib/unictype/categ_Sc.h: Likewise.
24780         * lib/unictype/categ_Sk.h: Likewise.
24781         * lib/unictype/categ_Sm.h: Likewise.
24782         * lib/unictype/categ_So.h: Likewise.
24783         * lib/unictype/categ_of.h: Likewise.
24784         * lib/unictype/combining.h: Likewise.
24785         * lib/unictype/ctype_alnum.h: Likewise.
24786         * lib/unictype/ctype_alpha.h: Likewise.
24787         * lib/unictype/ctype_graph.h: Likewise.
24788         * lib/unictype/ctype_lower.h: Likewise.
24789         * lib/unictype/ctype_print.h: Likewise.
24790         * lib/unictype/ctype_punct.h: Likewise.
24791         * lib/unictype/ctype_upper.h: Likewise.
24792         * lib/unictype/decdigit.h: Likewise.
24793         * lib/unictype/digit.h: Likewise.
24794         * lib/unictype/numeric.h: Likewise.
24795         * lib/unictype/pr_alphabetic.h: Likewise.
24796         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24797         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24798         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24799         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24800         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24801         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24802         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24803         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24804         * lib/unictype/pr_case_ignorable.h: Likewise.
24805         * lib/unictype/pr_cased.h: Likewise.
24806         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24807         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24808         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24809         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24810         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24811         * lib/unictype/pr_combining.h: Likewise.
24812         * lib/unictype/pr_composite.h: Likewise.
24813         * lib/unictype/pr_currency_symbol.h: Likewise.
24814         * lib/unictype/pr_decimal_digit.h: Likewise.
24815         * lib/unictype/pr_deprecated.h: Likewise.
24816         * lib/unictype/pr_format_control.h: Likewise.
24817         * lib/unictype/pr_grapheme_base.h: Likewise.
24818         * lib/unictype/pr_grapheme_extend.h: Likewise.
24819         * lib/unictype/pr_grapheme_link.h: Likewise.
24820         * lib/unictype/pr_id_continue.h: Likewise.
24821         * lib/unictype/pr_id_start.h: Likewise.
24822         * lib/unictype/pr_ideographic.h: Likewise.
24823         * lib/unictype/pr_lowercase.h: Likewise.
24824         * lib/unictype/pr_math.h: Likewise.
24825         * lib/unictype/pr_numeric.h: Likewise.
24826         * lib/unictype/pr_other_alphabetic.h: Likewise.
24827         * lib/unictype/pr_other_id_continue.h: Likewise.
24828         * lib/unictype/pr_other_math.h: Likewise.
24829         * lib/unictype/pr_punctuation.h: Likewise.
24830         * lib/unictype/pr_sentence_terminal.h: Likewise.
24831         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24832         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24833         * lib/unictype/pr_unified_ideograph.h: Likewise.
24834         * lib/unictype/pr_uppercase.h: Likewise.
24835         * lib/unictype/pr_xid_continue.h: Likewise.
24836         * lib/unictype/pr_xid_start.h: Likewise.
24837         * lib/unictype/scripts.h: Likewise.
24838         * lib/unictype/scripts_byname.gperf: Likewise.
24839         * lib/unictype/sy_java_ident.h: Likewise.
24840         * lib/unigbrk/gbrkprop.h: Likewise.
24841         * lib/unilbrk/lbrkprop1.h: Likewise.
24842         * lib/unilbrk/lbrkprop2.h: Likewise.
24843         * lib/uninorm/decomposition-table2.h: Likewise.
24844         * lib/uniwbrk/wbrkprop.h: Likewise.
24845         * tests/unicase/test-cased.c: Likewise.
24846         * tests/unicase/test-ignorable.c: Likewise.
24847         * tests/unicase/test-uc_tolower.c: Likewise.
24848         * tests/unicase/test-uc_totitle.c: Likewise.
24849         * tests/unicase/test-uc_toupper.c: Likewise.
24850         * tests/unictype/test-categ_C.c: Likewise.
24851         * tests/unictype/test-categ_Cn.c: Likewise.
24852         * tests/unictype/test-categ_L.c: Likewise.
24853         * tests/unictype/test-categ_Ll.c: Likewise.
24854         * tests/unictype/test-categ_Lm.c: Likewise.
24855         * tests/unictype/test-categ_Lo.c: Likewise.
24856         * tests/unictype/test-categ_Lu.c: Likewise.
24857         * tests/unictype/test-categ_M.c: Likewise.
24858         * tests/unictype/test-categ_Mc.c: Likewise.
24859         * tests/unictype/test-categ_Me.c: Likewise.
24860         * tests/unictype/test-categ_Mn.c: Likewise.
24861         * tests/unictype/test-categ_N.c: Likewise.
24862         * tests/unictype/test-categ_Nd.c: Likewise.
24863         * tests/unictype/test-categ_No.c: Likewise.
24864         * tests/unictype/test-categ_P.c: Likewise.
24865         * tests/unictype/test-categ_Po.c: Likewise.
24866         * tests/unictype/test-categ_S.c: Likewise.
24867         * tests/unictype/test-categ_Sc.c: Likewise.
24868         * tests/unictype/test-categ_Sk.c: Likewise.
24869         * tests/unictype/test-categ_Sm.c: Likewise.
24870         * tests/unictype/test-categ_So.c: Likewise.
24871         * tests/unictype/test-ctype_alnum.c: Likewise.
24872         * tests/unictype/test-ctype_alpha.c: Likewise.
24873         * tests/unictype/test-ctype_graph.c: Likewise.
24874         * tests/unictype/test-ctype_lower.c: Likewise.
24875         * tests/unictype/test-ctype_print.c: Likewise.
24876         * tests/unictype/test-ctype_punct.c: Likewise.
24877         * tests/unictype/test-ctype_upper.c: Likewise.
24878         * tests/unictype/test-decdigit.h: Likewise.
24879         * tests/unictype/test-digit.h: Likewise.
24880         * tests/unictype/test-numeric.h: Likewise.
24881         * tests/unictype/test-pr_alphabetic.c: Likewise.
24882         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24883         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24884         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24885         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24886         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24887         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24888         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24889         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24890         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24891         * tests/unictype/test-pr_cased.c: Likewise.
24892         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24893         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24894         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24895         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24896         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24897         * tests/unictype/test-pr_combining.c: Likewise.
24898         * tests/unictype/test-pr_composite.c: Likewise.
24899         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24900         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24901         * tests/unictype/test-pr_deprecated.c: Likewise.
24902         * tests/unictype/test-pr_format_control.c: Likewise.
24903         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24904         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24905         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24906         * tests/unictype/test-pr_id_continue.c: Likewise.
24907         * tests/unictype/test-pr_id_start.c: Likewise.
24908         * tests/unictype/test-pr_ideographic.c: Likewise.
24909         * tests/unictype/test-pr_lowercase.c: Likewise.
24910         * tests/unictype/test-pr_math.c: Likewise.
24911         * tests/unictype/test-pr_numeric.c: Likewise.
24912         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24913         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24914         * tests/unictype/test-pr_other_math.c: Likewise.
24915         * tests/unictype/test-pr_punctuation.c: Likewise.
24916         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24917         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24918         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24919         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24920         * tests/unictype/test-pr_uppercase.c: Likewise.
24921         * tests/unictype/test-pr_xid_continue.c: Likewise.
24922         * tests/unictype/test-pr_xid_start.c: Likewise.
24923         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24924         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24925         changes.
24926         * lib/unictype/categ_Cc.h: Likewise.
24927         * lib/unictype/categ_Cf.h: Likewise.
24928         * lib/unictype/categ_Co.h: Likewise.
24929         * lib/unictype/categ_Cs.h: Likewise.
24930         * lib/unictype/categ_Lt.h: Likewise.
24931         * lib/unictype/categ_Nl.h: Likewise.
24932         * lib/unictype/categ_Pc.h: Likewise.
24933         * lib/unictype/categ_Pd.h: Likewise.
24934         * lib/unictype/categ_Pe.h: Likewise.
24935         * lib/unictype/categ_Pf.h: Likewise.
24936         * lib/unictype/categ_Pi.h: Likewise.
24937         * lib/unictype/categ_Ps.h: Likewise.
24938         * lib/unictype/categ_Z.h: Likewise.
24939         * lib/unictype/categ_Zl.h: Likewise.
24940         * lib/unictype/categ_Zp.h: Likewise.
24941         * lib/unictype/categ_Zs.h: Likewise.
24942         * lib/unictype/ctype_blank.h: Likewise.
24943         * lib/unictype/ctype_cntrl.h: Likewise.
24944         * lib/unictype/ctype_digit.h: Likewise.
24945         * lib/unictype/ctype_space.h: Likewise.
24946         * lib/unictype/ctype_xdigit.h: Likewise.
24947         * lib/unictype/mirror.h: Likewise.
24948         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24949         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24950         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24951         * lib/unictype/pr_bidi_control.h: Likewise.
24952         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24953         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24954         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24955         * lib/unictype/pr_bidi_pdf.h: Likewise.
24956         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24957         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24958         * lib/unictype/pr_dash.h: Likewise.
24959         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24960         * lib/unictype/pr_diacritic.h: Likewise.
24961         * lib/unictype/pr_extender.h: Likewise.
24962         * lib/unictype/pr_hex_digit.h: Likewise.
24963         * lib/unictype/pr_hyphen.h: Likewise.
24964         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24965         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24966         * lib/unictype/pr_ignorable_control.h: Likewise.
24967         * lib/unictype/pr_iso_control.h: Likewise.
24968         * lib/unictype/pr_join_control.h: Likewise.
24969         * lib/unictype/pr_left_of_pair.h: Likewise.
24970         * lib/unictype/pr_line_separator.h: Likewise.
24971         * lib/unictype/pr_logical_order_exception.h: Likewise.
24972         * lib/unictype/pr_non_break.h: Likewise.
24973         * lib/unictype/pr_not_a_character.h: Likewise.
24974         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24975         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24976         * lib/unictype/pr_other_id_start.h: Likewise.
24977         * lib/unictype/pr_other_lowercase.h: Likewise.
24978         * lib/unictype/pr_other_uppercase.h: Likewise.
24979         * lib/unictype/pr_paired_punctuation.h: Likewise.
24980         * lib/unictype/pr_paragraph_separator.h: Likewise.
24981         * lib/unictype/pr_pattern_syntax.h: Likewise.
24982         * lib/unictype/pr_pattern_white_space.h: Likewise.
24983         * lib/unictype/pr_private_use.h: Likewise.
24984         * lib/unictype/pr_quotation_mark.h: Likewise.
24985         * lib/unictype/pr_radical.h: Likewise.
24986         * lib/unictype/pr_soft_dotted.h: Likewise.
24987         * lib/unictype/pr_space.h: Likewise.
24988         * lib/unictype/pr_titlecase.h: Likewise.
24989         * lib/unictype/pr_variation_selector.h: Likewise.
24990         * lib/unictype/pr_white_space.h: Likewise.
24991         * lib/unictype/pr_zero_width.h: Likewise.
24992         * lib/unictype/sy_c_ident.h: Likewise.
24993         * lib/unictype/sy_c_whitespace.h: Likewise.
24994         * lib/unictype/sy_java_whitespace.h: Likewise.
24995         * lib/uninorm/composition-table.gperf: Likewise.
24996         * lib/uninorm/decomposition-table1.h: Likewise.
24997         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24998         LB8.
24999         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25000         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25001         * modules/unictype/*: Bump version number of expected libunistring
25002         version.
25003
25004 2011-01-09  Bruno Haible  <bruno@clisp.org>
25005
25006         Update to Unicode 5.2.0.
25007         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25008         trailing whitespace removed.
25009
25010 2011-01-09  Bruno Haible  <bruno@clisp.org>
25011
25012         New Unicode character properties, from Unicode 5.2.0.
25013         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25014         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25015         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25016         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25017         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25018         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25019         uc_is_property_cased, uc_is_property_case_ignorable,
25020         uc_is_property_changes_when_lowercased,
25021         uc_is_property_changes_when_uppercased,
25022         uc_is_property_changes_when_titlecased,
25023         uc_is_property_changes_when_casefolded,
25024         uc_is_property_changes_when_casemapped): New declarations.
25025         * lib/unictype/pr_byname.gperf: Add the new properties.
25026         * modules/unictype/property-byname (Depends-on): Depend on the new
25027         properties modules.
25028         * modules/unictype/property-all (Depends-on): Likewise.
25029         * MODULES.html.sh (Unicode string functions): Add
25030         unictype/property-case-ignorable, unictype/property-cased,
25031         unictype/property-changes-when-casefolded,
25032         unictype/property-changes-when-casemapped,
25033         unictype/property-changes-when-lowercased,
25034         unictype/property-changes-when-titlecased,
25035         unictype/property-changes-when-uppercased.
25036
25037         New module 'unictype/property-changes-when-casemapped'.
25038         * modules/unictype/property-changes-when-casemapped: New file.
25039         * lib/unictype/pr_changes_when_casemapped.c: New file.
25040         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25041         generated by gen-uni-tables.
25042         * modules/unictype/property-changes-when-casemapped-tests: New file.
25043         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25044         automatically generated by gen-uni-tables.
25045
25046         New module 'unictype/property-changes-when-casefolded'.
25047         * modules/unictype/property-changes-when-casefolded: New file.
25048         * lib/unictype/pr_changes_when_casefolded.c: New file.
25049         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25050         generated by gen-uni-tables.
25051         * modules/unictype/property-changes-when-casefolded-tests: New file.
25052         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25053         automatically generated by gen-uni-tables.
25054
25055         New module 'unictype/property-changes-when-titlecased'.
25056         * modules/unictype/property-changes-when-titlecased: New file.
25057         * lib/unictype/pr_changes_when_titlecased.c: New file.
25058         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25059         generated by gen-uni-tables.
25060         * modules/unictype/property-changes-when-titlecased-tests: New file.
25061         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25062         automatically generated by gen-uni-tables.
25063
25064         New module 'unictype/property-changes-when-uppercased'.
25065         * modules/unictype/property-changes-when-uppercased: New file.
25066         * lib/unictype/pr_changes_when_uppercased.c: New file.
25067         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25068         generated by gen-uni-tables.
25069         * modules/unictype/property-changes-when-uppercased-tests: New file.
25070         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25071         automatically generated by gen-uni-tables.
25072
25073         New module 'unictype/property-changes-when-lowercased'.
25074         * modules/unictype/property-changes-when-lowercased: New file.
25075         * lib/unictype/pr_changes_when_lowercased.c: New file.
25076         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25077         generated by gen-uni-tables.
25078         * modules/unictype/property-changes-when-lowercased-tests: New file.
25079         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25080         automatically generated by gen-uni-tables.
25081
25082         New module 'unictype/property-case-ignorable'.
25083         * modules/unictype/property-case-ignorable: New file.
25084         * lib/unictype/pr_case_ignorable.c: New file.
25085         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25086         by gen-uni-tables.
25087         * modules/unictype/property-case-ignorable-tests: New file.
25088         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25089         generated by gen-uni-tables.
25090
25091         New module 'unictype/property-cased'.
25092         * modules/unictype/property-cased: New file.
25093         * lib/unictype/pr_cased.c: New file.
25094         * lib/unictype/pr_cased.h: New file, automatically generated by
25095         gen-uni-tables.
25096         * modules/unictype/property-cased-tests: New file.
25097         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25098         gen-uni-tables.
25099
25100 2011-01-09  Bruno Haible  <bruno@clisp.org>
25101
25102         Update to Unicode 5.2.0.
25103         * lib/gen-uni-tables.c (output_predicate, output_category,
25104         output_combclass, output_bidi_category, output_decimal_digit_test,
25105         output_decimal_digit, output_digit_test, output_digit,
25106         output_numeric_test, output_numeric, output_mirror, output_scripts,
25107         output_scripts_byname, output_blocks, output_ident_category): Fix
25108         comment header.
25109         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25110         get_wbp.
25111         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25112         items.
25113         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25114         Changes_When_Lowercased, Changes_When_Uppercased,
25115         Changes_When_Titlecased, Changes_When_Casefolded,
25116         Changes_When_Casemapped.
25117         (is_property_alphabetic, is_property_default_ignorable_code_point):
25118         Update for Unicode 5.2.0.
25119         (is_property_cased, is_property_case_ignorable,
25120         is_property_changes_when_lowercased,
25121         is_property_changes_when_uppercased,
25122         is_property_changes_when_titlecased,
25123         is_property_changes_when_casefolded,
25124         is_property_changes_when_casemapped): New functions.
25125         (output_properties): Output also the properties cased, case_ignorable,
25126         changes_when_lowercased, changes_when_uppercased,
25127         changes_when_titlecased, changes_when_casefolded,
25128         changes_when_casemapped.
25129         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25130         Unicode TR#11 revision 17 -> 19.
25131         (LBP_CP): New enumeration value.
25132         (LBP_*): Adjust values accordingly.
25133         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25134         TR#14 revision 22 -> 24.
25135         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25136         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25137         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25138         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25139         is_WBP_MIDLETTER.
25140         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25141         the code1 and code2 of each composition rule.
25142         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25143         * lib/unicase/ignorable.h: Likewise.
25144         * lib/unicase/tocasefold.h: Likewise.
25145         * lib/unicase/tolower.h: Likewise.
25146         * lib/unicase/totitle.h: Likewise.
25147         * lib/unicase/toupper.h: Likewise.
25148         * lib/unictype/bidi_of.h: Likewise.
25149         * lib/unictype/blocks.h: Likewise.
25150         * lib/unictype/categ_C.h: Likewise.
25151         * lib/unictype/categ_Cf.h: Likewise.
25152         * lib/unictype/categ_Cn.h: Likewise.
25153         * lib/unictype/categ_L.h: Likewise.
25154         * lib/unictype/categ_Ll.h: Likewise.
25155         * lib/unictype/categ_Lm.h: Likewise.
25156         * lib/unictype/categ_Lo.h: Likewise.
25157         * lib/unictype/categ_Lu.h: Likewise.
25158         * lib/unictype/categ_M.h: Likewise.
25159         * lib/unictype/categ_Mc.h: Likewise.
25160         * lib/unictype/categ_Mn.h: Likewise.
25161         * lib/unictype/categ_N.h: Likewise.
25162         * lib/unictype/categ_Nd.h: Likewise.
25163         * lib/unictype/categ_Nl.h: Likewise.
25164         * lib/unictype/categ_No.h: Likewise.
25165         * lib/unictype/categ_P.h: Likewise.
25166         * lib/unictype/categ_Pd.h: Likewise.
25167         * lib/unictype/categ_Po.h: Likewise.
25168         * lib/unictype/categ_S.h: Likewise.
25169         * lib/unictype/categ_Sc.h: Likewise.
25170         * lib/unictype/categ_So.h: Likewise.
25171         * lib/unictype/categ_of.h: Likewise.
25172         * lib/unictype/combining.h: Likewise.
25173         * lib/unictype/ctype_alnum.h: Likewise.
25174         * lib/unictype/ctype_alpha.h: Likewise.
25175         * lib/unictype/ctype_graph.h: Likewise.
25176         * lib/unictype/ctype_lower.h: Likewise.
25177         * lib/unictype/ctype_print.h: Likewise.
25178         * lib/unictype/ctype_punct.h: Likewise.
25179         * lib/unictype/ctype_upper.h: Likewise.
25180         * lib/unictype/decdigit.h: Likewise.
25181         * lib/unictype/digit.h: Likewise.
25182         * lib/unictype/numeric.h: Likewise.
25183         * lib/unictype/pr_alphabetic.h: Likewise.
25184         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25185         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25186         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25187         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25188         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25189         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25190         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25191         * lib/unictype/pr_combining.h: Likewise.
25192         * lib/unictype/pr_composite.h: Likewise.
25193         * lib/unictype/pr_currency_symbol.h: Likewise.
25194         * lib/unictype/pr_dash.h: Likewise.
25195         * lib/unictype/pr_decimal_digit.h: Likewise.
25196         * lib/unictype/pr_deprecated.h: Likewise.
25197         * lib/unictype/pr_diacritic.h: Likewise.
25198         * lib/unictype/pr_extender.h: Likewise.
25199         * lib/unictype/pr_grapheme_base.h: Likewise.
25200         * lib/unictype/pr_grapheme_extend.h: Likewise.
25201         * lib/unictype/pr_grapheme_link.h: Likewise.
25202         * lib/unictype/pr_id_continue.h: Likewise.
25203         * lib/unictype/pr_id_start.h: Likewise.
25204         * lib/unictype/pr_ideographic.h: Likewise.
25205         * lib/unictype/pr_ignorable_control.h: Likewise.
25206         * lib/unictype/pr_logical_order_exception.h: Likewise.
25207         * lib/unictype/pr_lowercase.h: Likewise.
25208         * lib/unictype/pr_numeric.h: Likewise.
25209         * lib/unictype/pr_other_alphabetic.h: Likewise.
25210         * lib/unictype/pr_punctuation.h: Likewise.
25211         * lib/unictype/pr_sentence_terminal.h: Likewise.
25212         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25213         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25214         * lib/unictype/pr_unified_ideograph.h: Likewise.
25215         * lib/unictype/pr_uppercase.h: Likewise.
25216         * lib/unictype/pr_xid_continue.h: Likewise.
25217         * lib/unictype/pr_xid_start.h: Likewise.
25218         * lib/unictype/pr_zero_width.h: Likewise.
25219         * lib/unictype/scripts.h: Likewise.
25220         * lib/unictype/scripts_byname.gperf: Likewise.
25221         * lib/unictype/sy_java_ident.h: Likewise.
25222         * lib/unigbrk/gbrkprop.h: Likewise.
25223         * lib/unilbrk/lbrkprop1.h: Likewise.
25224         * lib/unilbrk/lbrkprop2.h: Likewise.
25225         * lib/unilbrk/lbrktables.h: Likewise.
25226         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25227         LBP_CP. Implement rule LB30.
25228         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25229         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25230         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25231         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25232         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25233         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25234         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25235         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25236         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25237         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25238         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25239         bits instead of 16 bits in the code1 and code2 of each composition
25240         rule.
25241         (uc_composition): Update for Unicode 5.2.0.
25242         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25243         * lib/uninorm/decomposition-table2.h: Likewise.
25244         * lib/uniwbrk/wbrkprop.h: Likewise.
25245         * tests/unicase/test-cased.c: Likewise.
25246         * tests/unicase/test-ignorable.c: Likewise.
25247         * tests/unicase/test-uc_tolower.c: Likewise.
25248         * tests/unicase/test-uc_totitle.c: Likewise.
25249         * tests/unicase/test-uc_toupper.c: Likewise.
25250         * tests/unictype/test-categ_C.c: Likewise.
25251         * tests/unictype/test-categ_Cf.c: Likewise.
25252         * tests/unictype/test-categ_Cn.c: Likewise.
25253         * tests/unictype/test-categ_L.c: Likewise.
25254         * tests/unictype/test-categ_Ll.c: Likewise.
25255         * tests/unictype/test-categ_Lm.c: Likewise.
25256         * tests/unictype/test-categ_Lo.c: Likewise.
25257         * tests/unictype/test-categ_Lu.c: Likewise.
25258         * tests/unictype/test-categ_M.c: Likewise.
25259         * tests/unictype/test-categ_Mc.c: Likewise.
25260         * tests/unictype/test-categ_Mn.c: Likewise.
25261         * tests/unictype/test-categ_N.c: Likewise.
25262         * tests/unictype/test-categ_Nd.c: Likewise.
25263         * tests/unictype/test-categ_Nl.c: Likewise.
25264         * tests/unictype/test-categ_No.c: Likewise.
25265         * tests/unictype/test-categ_P.c: Likewise.
25266         * tests/unictype/test-categ_Pd.c: Likewise.
25267         * tests/unictype/test-categ_Po.c: Likewise.
25268         * tests/unictype/test-categ_S.c: Likewise.
25269         * tests/unictype/test-categ_Sc.c: Likewise.
25270         * tests/unictype/test-categ_So.c: Likewise.
25271         * tests/unictype/test-ctype_alnum.c: Likewise.
25272         * tests/unictype/test-ctype_alpha.c: Likewise.
25273         * tests/unictype/test-ctype_graph.c: Likewise.
25274         * tests/unictype/test-ctype_lower.c: Likewise.
25275         * tests/unictype/test-ctype_print.c: Likewise.
25276         * tests/unictype/test-ctype_punct.c: Likewise.
25277         * tests/unictype/test-ctype_upper.c: Likewise.
25278         * tests/unictype/test-decdigit.h: Likewise.
25279         * tests/unictype/test-digit.h: Likewise.
25280         * tests/unictype/test-numeric.h: Likewise.
25281         * tests/unictype/test-pr_alphabetic.c: Likewise.
25282         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25283         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25284         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25285         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25286         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25287         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25288         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25289         * tests/unictype/test-pr_combining.c: Likewise.
25290         * tests/unictype/test-pr_composite.c: Likewise.
25291         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25292         * tests/unictype/test-pr_dash.c: Likewise.
25293         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25294         * tests/unictype/test-pr_deprecated.c: Likewise.
25295         * tests/unictype/test-pr_diacritic.c: Likewise.
25296         * tests/unictype/test-pr_extender.c: Likewise.
25297         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25298         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25299         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25300         * tests/unictype/test-pr_id_continue.c: Likewise.
25301         * tests/unictype/test-pr_id_start.c: Likewise.
25302         * tests/unictype/test-pr_ideographic.c: Likewise.
25303         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25304         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25305         * tests/unictype/test-pr_lowercase.c: Likewise.
25306         * tests/unictype/test-pr_numeric.c: Likewise.
25307         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25308         * tests/unictype/test-pr_punctuation.c: Likewise.
25309         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25310         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25311         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25312         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25313         * tests/unictype/test-pr_uppercase.c: Likewise.
25314         * tests/unictype/test-pr_xid_continue.c: Likewise.
25315         * tests/unictype/test-pr_xid_start.c: Likewise.
25316         * tests/unictype/test-pr_zero_width.c: Likewise.
25317         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25318         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25319         changed behaviour: line breaking is now disallowed between a letter
25320         or '=' and '('.
25321         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25322         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25323         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25324         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25325         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25326         lib/uniwidth/width.c.
25327         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25328         without comments, but with the original copyright notice.
25329         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25330         changes.
25331         * lib/unictype/categ_Cc.h: Likewise.
25332         * lib/unictype/categ_Co.h: Likewise.
25333         * lib/unictype/categ_Cs.h: Likewise.
25334         * lib/unictype/categ_Lt.h: Likewise.
25335         * lib/unictype/categ_Me.h: Likewise.
25336         * lib/unictype/categ_Pc.h: Likewise.
25337         * lib/unictype/categ_Pe.h: Likewise.
25338         * lib/unictype/categ_Pf.h: Likewise.
25339         * lib/unictype/categ_Pi.h: Likewise.
25340         * lib/unictype/categ_Ps.h: Likewise.
25341         * lib/unictype/categ_Sk.h: Likewise.
25342         * lib/unictype/categ_Sm.h: Likewise.
25343         * lib/unictype/categ_Z.h: Likewise.
25344         * lib/unictype/categ_Zl.h: Likewise.
25345         * lib/unictype/categ_Zp.h: Likewise.
25346         * lib/unictype/categ_Zs.h: Likewise.
25347         * lib/unictype/ctype_blank.h: Likewise.
25348         * lib/unictype/ctype_cntrl.h: Likewise.
25349         * lib/unictype/ctype_digit.h: Likewise.
25350         * lib/unictype/ctype_space.h: Likewise.
25351         * lib/unictype/ctype_xdigit.h: Likewise.
25352         * lib/unictype/mirror.h: Likewise.
25353         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25354         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25355         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25356         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25357         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25358         * lib/unictype/pr_bidi_control.h: Likewise.
25359         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25360         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25361         * lib/unictype/pr_bidi_pdf.h: Likewise.
25362         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25363         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25364         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25365         * lib/unictype/pr_format_control.h: Likewise.
25366         * lib/unictype/pr_hex_digit.h: Likewise.
25367         * lib/unictype/pr_hyphen.h: Likewise.
25368         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25369         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25370         * lib/unictype/pr_iso_control.h: Likewise.
25371         * lib/unictype/pr_join_control.h: Likewise.
25372         * lib/unictype/pr_left_of_pair.h: Likewise.
25373         * lib/unictype/pr_line_separator.h: Likewise.
25374         * lib/unictype/pr_math.h: Likewise.
25375         * lib/unictype/pr_non_break.h: Likewise.
25376         * lib/unictype/pr_not_a_character.h: Likewise.
25377         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25378         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25379         * lib/unictype/pr_other_id_continue.h: Likewise.
25380         * lib/unictype/pr_other_id_start.h: Likewise.
25381         * lib/unictype/pr_other_lowercase.h: Likewise.
25382         * lib/unictype/pr_other_math.h: Likewise.
25383         * lib/unictype/pr_other_uppercase.h: Likewise.
25384         * lib/unictype/pr_paired_punctuation.h: Likewise.
25385         * lib/unictype/pr_paragraph_separator.h: Likewise.
25386         * lib/unictype/pr_pattern_syntax.h: Likewise.
25387         * lib/unictype/pr_pattern_white_space.h: Likewise.
25388         * lib/unictype/pr_private_use.h: Likewise.
25389         * lib/unictype/pr_quotation_mark.h: Likewise.
25390         * lib/unictype/pr_radical.h: Likewise.
25391         * lib/unictype/pr_soft_dotted.h: Likewise.
25392         * lib/unictype/pr_space.h: Likewise.
25393         * lib/unictype/pr_titlecase.h: Likewise.
25394         * lib/unictype/pr_variation_selector.h: Likewise.
25395         * lib/unictype/pr_white_space.h: Likewise.
25396         * lib/unictype/sy_c_ident.h: Likewise.
25397         * lib/unictype/sy_c_whitespace.h: Likewise.
25398         * lib/unictype/sy_java_whitespace.h: Likewise.
25399         * modules/uni*/*: Bump version number of expected libunistring version.
25400         Reported by Simon Josefsson.
25401
25402 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25403
25404         useless-if-before-free: fix typo in --help and make the internal,
25405         automatic version date update process work once again.
25406         --help output contained a NUL character instead of the
25407         backslash-zero that was intended.  Also, the "must lie within
25408         the first 8 lines" line is on line 9, and hence not getting
25409         automatically updated.
25410         * build-aux/useless-if-before-free: Fix the former by adding a
25411         backslash, and the latter by condensing the three lines of what-it-does
25412         to a single line, leaving one line of slack for the future.
25413
25414 2011-01-09  Bruno Haible  <bruno@clisp.org>
25415
25416         uniwidth/width: Fix width of U+1D173..U+1D17A.
25417         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25418         symbolic_width, output_width_property_test): New functions.
25419         (main): Invoke output_nonspacing_property, output_width_property_test.
25420         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25421         U+1D173..U+1D17A.
25422         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25423         1.
25424         * modules/uniwidth/*: Bump version number of expected libunistring
25425         version.
25426         * modules/unilbrk/*: Likewise.
25427
25428 2011-01-08  Bruno Haible  <bruno@clisp.org>
25429
25430         uninorm tests: Preserve copyright of Unicode data file.
25431         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25432         Mention modifications.
25433
25434 2011-01-08  Bruno Haible  <bruno@clisp.org>
25435
25436         gen-uni-tables: Prepare for Unicode 5.2.0.
25437         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25438         (debug_output_lbp, output_lbp): Update.
25439
25440 2011-01-08  Bruno Haible  <bruno@clisp.org>
25441
25442         unilbrk: Clarify gen-uni-tables.c code.
25443         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25444         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25445         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25446
25447 2011-01-07  Bruno Haible  <bruno@clisp.org>
25448
25449         strtod: Restore errno when successfully parsing Infinity or NaN.
25450         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25451         restore the original errno.
25452
25453 2011-01-07  Bruno Haible  <bruno@clisp.org>
25454
25455         remove test: Avoid failure on HP-UX 11.
25456         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25457
25458 2011-01-07  Bruno Haible  <bruno@clisp.org>
25459
25460         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25461         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25462         error code.
25463
25464 2011-01-07  Pádraig Brady <P@draigBrady.com>
25465
25466         ignore-value: fixup comments, and add Eric Blake
25467         as an author since he rewrote the macros.
25468         * lib/ignore-value.h (ignore_value):  State that
25469         we now support aggregates.  Also specify exactly
25470         when the GCC warn_unused_result feature was added.
25471
25472 2011-01-06  Eric Blake  <eblake@redhat.com>
25473
25474         ignore-value: support aggregate types
25475         * lib/ignore-value.h (ignore_value): Provide separate gcc
25476         definition.
25477         * modules/ignore-value-tests: New test module.
25478         * tests/test-ignore-value.c: New test.
25479
25480         maint.mk: improve sc_prohibit_strcmp regex
25481         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25482         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25483         definition of STRNEQ.
25484
25485         signal: work around Haiku issue with SIGBUS
25486         * lib/siglist.h: Add comment.
25487         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25488         strsignal's favoring of SIGSEGV.
25489         * tests/test-signal.c (main): Avoid test failure.
25490         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25491         Reported by Scott McCreary.
25492
25493         maint.mk: add pre-release check to ensure submodule commits are public
25494         * top/maint.mk (public-submodule-commit): New rule.
25495         (submodule-checks): New variable.
25496         (alpha beta stable): Depend on the variable.
25497
25498 2011-01-05  Pádraig Brady <P@draigBrady.com>
25499         and Jim Meyering  <meyering@redhat.com>
25500
25501         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25502         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25503         (ATTRIBUTE_DEPRECATED): Define.
25504         (_ignore_case): New function.
25505         (ignore_value): New macro, to replace the old function.
25506         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25507         * modules/ignore-value (Depends-on): Add stdint.
25508
25509 2011-01-04  Eric Blake  <eblake@redhat.com>
25510
25511         doc: regenerate INSTALL
25512         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25513         @firstparagraphindent support, now that autoconf dropped it.
25514         (INSTALL_PRELUDE): Reinstate old macro.
25515         * doc/install.texi: Resync from autoconf.
25516         * doc/INSTALL: Reflect recent autoconf update.
25517         * doc/INSTALL.ISO: Likewise.
25518         * doc/INSTALL.UTF-8: Likewise.
25519         Reported by Karl Berry.
25520
25521 2011-01-04  Bruce Korb  <address@hidden>
25522
25523         git-version-gen: avoid a sub-shell
25524         * build-aux/git-version-gen: Redirect stderr in `...` via
25525         "exec 2>...", rather than via an added sub-shell.
25526
25527 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25528
25529         git-version-gen: use (...) rather than sh -c '...'
25530         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25531         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25532
25533 2011-01-03  Jim Meyering  <meyering@redhat.com>
25534
25535         git-version-gen: convert leading TABs to spaces
25536         * build-aux/git-version-gen: Expand leading TABs.
25537
25538         git-version-gen: handle failed "git rev-list"
25539         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25540         from git and proceeding as if it had succeeded but printed no SHA1
25541         checksums, suppress the diagnostic and handle the failure.
25542         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25543
25544         git-version-gen: include command name in one more diagnostic
25545         * build-aux/git-version-gen: When the required .tarball-version file
25546         was missing or unreadable, you might see the diagnostic from "cat",
25547         but no trace of the name of the invoking script.  Now, you still see
25548         the diagnostic from cat, but also get one from "git-version-gen: ".
25549         Inspired by a patch from Bruce Korb.
25550
25551         update-copyright: adjust test to match changed code
25552         * tests/test-update-copyright.sh: Change test's expected output
25553         to match new actual output.
25554
25555 2011-01-02  Bruno Haible  <bruno@clisp.org>
25556
25557         getlogin_r: Avoid test failure on HP-UX 11.
25558         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25559         ERANGE when the second argument is zero.
25560         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25561         portability problem.
25562
25563 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25564
25565         * build-aux/update-copyright: doc Simon's changes
25566
25567 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25568
25569         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25570         environment variable.
25571
25572 2011-01-02  Bruno Haible  <bruno@clisp.org>
25573
25574         unigbrk: Avoid gcc warnings.
25575         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25576         unused variable.
25577         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25578         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25579         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25580         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25581         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25582         Change type of first argument to 'const char *'.
25583         (main): Remove unused variable.
25584         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25585         type of first argument to 'const char *'.
25586         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25587         Likewise.
25588         (main): Change type of variable 's'.
25589         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25590         to 'int'.
25591
25592 2011-01-02  Bruno Haible  <bruno@clisp.org>
25593
25594         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25595         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25596         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25597         bug.
25598         * lib/pwrite.c: Undo 2010-12-31 patch.
25599         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25600
25601 2011-01-02  Bruno Haible  <bruno@clisp.org>
25602
25603         pread: Fix test whether it works.
25604         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25605
25606 2011-01-02  Bruno Haible  <bruno@clisp.org>
25607
25608         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25609         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25610         ends in "6". Don't require a specific month name. Try also the locale
25611         names found on HP-UX 11 and Solaris 7.
25612
25613 2011-01-02  Bruno Haible  <bruno@clisp.org>
25614
25615         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25616         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25617         C linkage.
25618         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25619
25620 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25621
25622         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25623         for consistency, since the "cluster" term is not used elsewhere.
25624         * lib/unigbrk.in.h: Update name.
25625         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25626         * lib/unigbrk/u16-grapheme-next.c: Update name.
25627         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25628         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25629         * lib/unigbrk/u32-grapheme-next.c: Update name.
25630         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25631         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25632         * lib/unigbrk/u8-grapheme-next.c: Update name.
25633         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25634         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25635         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25636         Suggested by Bruno Haible.
25637
25638 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25639
25640         Remove module 'u8-grapheme-len' as too redundant with
25641         'u8-grapheme-next'.
25642         * modules/unigbrk/u8-grapheme-len: Delete file.
25643         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25644         * lib/unigbrk.in.h: Remove prototype for deleted function.
25645         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25646         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25647
25648         Remove module 'u16-grapheme-len' as too redundant with
25649         'u16-grapheme-next'.
25650         * modules/unigbrk/u16-grapheme-len: Delete file.
25651         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25652         * lib/unigbrk.in.h: Remove prototype for deleted function.
25653         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25654         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25655
25656         Remove module 'u32-grapheme-len' as too redundant with
25657         'u32-grapheme-next'.
25658         * modules/unigbrk/u32-grapheme-len: Delete file.
25659         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25660         * lib/unigbrk.in.h: Remove prototype for deleted function.
25661         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25662         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25663
25664         Suggested by Bruno Haible.
25665
25666 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25667
25668         * unigbrk.in.h: Fix typo: "ben" => "been".
25669         Reported by Bruno Haible.
25670
25671 2011-01-01  Jim Meyering  <meyering@redhat.com>
25672
25673         maint: update almost all copyright ranges to include 2011
25674         Run the new "make update-copyright" rule.
25675
25676 2011-01-01  Jim Meyering  <meyering@redhat.com>
25677
25678         maint: update-copyright: exempt doc/INSTALL*
25679         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25680         since they are generated.  Suggested by Bruno Haible.
25681
25682 2011-01-01  Jim Meyering  <meyering@redhat.com>
25683
25684         maint: refine the update-copyright rule
25685         * Makefile (update-copyright): Also exclude any file that includes
25686         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25687         code that merely generates the comment.
25688
25689 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25690
25691         New module 'u8-grapheme-len'.
25692         * modules/unigbrk/u8-grapheme-len: New file.
25693         * modules/unigbrk/u8-grapheme-len-tests: New file.
25694         * lib/unigbrk.in.h: Add prototype for new function.
25695         * lib/unigbrk/u8-grapheme-len.c: New file.
25696         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25697
25698         New module 'u16-grapheme-len'.
25699         * modules/unigbrk/u16-grapheme-len: New file.
25700         * modules/unigbrk/u16-grapheme-len-tests: New file.
25701         * lib/unigbrk.in.h: Add prototype for new function.
25702         * lib/unigbrk/u16-grapheme-len.c: New file.
25703         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25704
25705         New module 'u32-grapheme-len'.
25706         * modules/unigbrk/u32-grapheme-len: New file.
25707         * modules/unigbrk/u32-grapheme-len-tests: New file.
25708         * lib/unigbrk.in.h: Add prototype for new function.
25709         * lib/unigbrk/u32-grapheme-len.c: New file.
25710         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25711
25712         New module 'u8-grapheme-next'.
25713         * modules/unigbrk/u8-grapheme-next: New file.
25714         * modules/unigbrk/u8-grapheme-next-tests: New file.
25715         * lib/unigbrk.in.h: Add prototype for new function.
25716         * lib/unigbrk/u8-grapheme-next.c: New file.
25717         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25718
25719         New module 'u16-grapheme-next'.
25720         * modules/unigbrk/u16-grapheme-next: New file.
25721         * modules/unigbrk/u16-grapheme-next-tests: New file.
25722         * lib/unigbrk.in.h: Add prototype for new function.
25723         * lib/unigbrk/u16-grapheme-next.c: New file.
25724         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25725
25726         New module 'u32-grapheme-next'.
25727         * modules/unigbrk/u32-grapheme-next: New file.
25728         * modules/unigbrk/u32-grapheme-next-tests: New file.
25729         * lib/unigbrk.in.h: Add prototype for new function.
25730         * lib/unigbrk/u32-grapheme-next.c: New file.
25731         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25732
25733         New module 'u8-grapheme-prev'.
25734         * modules/unigbrk/u8-grapheme-prev: New file.
25735         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25736         * lib/unigbrk.in.h: Add prototype for new function.
25737         * lib/unigbrk/u8-grapheme-prev.c: New file.
25738         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25739
25740         New module 'u16-grapheme-prev'.
25741         * modules/unigbrk/u16-grapheme-prev: New file.
25742         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25743         * lib/unigbrk.in.h: Add prototype for new function.
25744         * lib/unigbrk/u16-grapheme-prev.c: New file.
25745         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25746
25747         New module 'u32-grapheme-prev'.
25748         * modules/unigbrk/u32-grapheme-prev: New file.
25749         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25750         * lib/unigbrk.in.h: Add prototype for new function.
25751         * lib/unigbrk/u32-grapheme-prev.c: New file.
25752         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25753
25754         New module 'u8-grapheme-breaks'.
25755         * modules/unigbrk/u8-grapheme-breaks: New file.
25756         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25757         * lib/unigbrk.in.h: Add prototype for new function.
25758         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25759         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25760
25761         New module 'u16-grapheme-breaks'.
25762         * modules/unigbrk/u16-grapheme-breaks: New file.
25763         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25764         * lib/unigbrk.in.h: Add prototype for new function.
25765         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25766         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25767
25768         New module 'u32-grapheme-breaks'.
25769         * modules/unigbrk/u32-grapheme-breaks: New file.
25770         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25771         * lib/unigbrk.in.h: Add prototype for new function.
25772         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25773         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25774
25775         New module 'ulc-grapheme-breaks'.
25776         * modules/unigbrk/ulc-grapheme-breaks: New file.
25777         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25778         * m4/locale-ar.m4: New file.
25779         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25780         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25781         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25782
25783 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25784
25785         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25786         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25787         modified how this file was generated before I initially submitted
25788         the module, but failed to regenerate it.  This meant that several
25789         of the level2 entries were wrong.
25790         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25791         Remove the division-by-2 that is folded into the table now that
25792         gbrkprop.h has been regenerated properly.  Now -1 entries are
25793         handled correctly.
25794
25795         New module 'unigbrk/uc-gbrk-prop-tests'.
25796         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25797         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25798         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25799         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25800
25801 2011-01-01  Bruno Haible  <bruno@clisp.org>
25802
25803         Avoid use of hexadecimal escapes.
25804         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25805         instead of hexadecimal escapes.
25806
25807 2011-01-01  Jim Meyering  <meyering@redhat.com>
25808
25809         maint: new rule to update copyright year ranges
25810         * Makefile (update-copyright): New rule.
25811
25812         maint: indent with TABs in Makefile
25813         * Makefile: Expand leading sequences of spaces to TABs
25814
25815         version-etc: update the copyright year it reports
25816         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25817
25818 2010-12-31  Bruno Haible  <bruno@clisp.org>
25819
25820         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25821         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25822         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25823         zero.
25824
25825 2010-12-31  Bruno Haible  <bruno@clisp.org>
25826
25827         pwrite: Work around HP-UX 11.11 bug.
25828         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25829         works and set REPLACE_PWRITE if not.
25830         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25831         function.
25832         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25833
25834 2010-12-31  Bruno Haible  <bruno@clisp.org>
25835
25836         pread: Work around HP-UX 11 bugs.
25837         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25838         and set REPLACE_PREAD if not.
25839         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25840
25841 2010-12-31  Eric Blake  <eblake@redhat.com>
25842
25843         nl_langinfo: fix YESEXPR on Irix 6.5
25844         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25845         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25846         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25847         it.
25848
25849 2010-12-31  Bruno Haible  <bruno@clisp.org>
25850
25851         iconv: Document HP-UX 11 bug.
25852         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25853
25854 2010-12-31  Bruno Haible  <bruno@clisp.org>
25855
25856         ldexpl: Fix link error on HP-UX 11.
25857         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25858         LDEXPL_LIBM, using $ISNANL_LIBM.
25859
25860 2010-12-31  Eric Blake  <eblake@redhat.com>
25861
25862         ftello: avoid compilation failure with SunStudio c89
25863         * lib/ftello.c (ftello): Use lseek, not llseek.
25864
25865         tests: avoid failing coreutils tests on cygwin
25866         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25867         (create_exe_shims_): Return 0 when skipping.
25868
25869 2010-12-31  Bruno Haible  <bruno@clisp.org>
25870
25871         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25872         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25873
25874 2010-12-31  Bruno Haible  <bruno@clisp.org>
25875
25876         waitpid: Fix link error in C++ mode.
25877         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25878
25879 2010-12-31  Bruno Haible  <bruno@clisp.org>
25880
25881         isnan: Use GCC built-ins when possible.
25882         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25883         __builtin_isnan.
25884         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25885         (isnan): Define using GCC built-ins for GCC >= 4.0.
25886
25887 2010-12-31  Bruno Haible  <bruno@clisp.org>
25888
25889         isnand: Fix mistake.
25890         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25891         __builtin_isnand.
25892
25893 2010-12-31  Bruno Haible  <bruno@clisp.org>
25894
25895         open: Avoid C++ error on HP-UX 11.
25896         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25897
25898 2010-12-31  Bruno Haible  <bruno@clisp.org>
25899
25900         time_r: Add missing declarations on HP-UX 11.
25901         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25902         instead of HAVE_LOCALTIME_R.
25903         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25904         HAVE_LOCALTIME_R always.
25905         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25906         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25907         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25908         HAVE_LOCALTIME_R.
25909         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25910         * doc/posix-functions/localtime_r.texi: Likewise.
25911
25912 2010-12-29  Eric Blake  <eblake@redhat.com>
25913
25914         mountlist: tweak previous commit
25915         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25916         Reported by Paul Eggert.
25917
25918         mountlist: fix local drive detection on cygwin
25919         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25920         that works for cygwin.
25921
25922 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25923
25924         ftoastr, snprintf: ftoastr + snprintf module
25925         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25926         since the snprintf module now should be good enough here.
25927         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25928         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25929         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25930         GNULIB_SNPRINTF only for the test directory, and the latter
25931         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25932         seems to suffice by itself.
25933
25934 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         alloca: one step towards thread-safety
25937         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25938         need for a static variable.  All callers changed.  This does not
25939         make the alloca replacement thread-safe, but it's one step.
25940
25941         tests: minor indenting change
25942         * tests/init.sh: Sync from coreutils housekeeping patch
25943         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25944         to keep lines within 80 columns.
25945
25946 2010-12-28  Jim Meyering  <meyering@redhat.com>
25947
25948         regex: don't infloop on persistent failing calloc
25949         * lib/regexec.c (build_trtable): Return failure indication upon
25950         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25951         In glibc, this was fixed for version 2.13:
25952         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25953
25954 2010-12-28  Bruno Haible  <bruno@clisp.org>
25955             Paul Eggert <eggert@cs.ucla.edu>
25956
25957         linkat: Make implementation robust against system behaviour variations.
25958         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25959         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25960         way, and to -2 if it needs a generic runtime test.
25961         * lib/linkat.c (solaris_optimized_link_immediate,
25962         solaris_optimized_link_follow): New functions.
25963         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25964         (check_same_link): Use it.
25965
25966 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25967
25968         New module 'unigbrk/base'.
25969         * modules/unigbrk/base: New file.
25970         * lib/unigbrk.in.h: New file.
25971
25972         New module 'unigbrk/uc-gbrk-prop'.
25973         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25974         * modules/unigbrk/uc-gbrk-prop: New file.
25975         * lib/unigbrk/gbrkprop.h: New file.
25976         * lib/unigbrk/uc-gbrk-prop.c: New file.
25977
25978         New module 'unigbrk/uc-is-grapheme-break'.
25979         * modules/unigbrk/uc-is-grapheme-break: New file.
25980         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25981         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25982         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25983         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25984         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25985
25986         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25987
25988 2010-12-27  Bruno Haible  <bruno@clisp.org>
25989
25990         linkat test: Avoid failure on Solaris 11 2010-11.
25991         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25992
25993 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25994
25995         utimens: work around glibc rounding bug on more platforms
25996         * lib/utimens.c (fdutimens): Work around rounding bug even if
25997         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25998         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25999
26000 2010-12-27  Bruno Haible  <bruno@clisp.org>
26001
26002         select tests: Improve comments.
26003         * tests/test-select.c (do_select): Add comments.
26004
26005 2010-12-27  Bruno Haible  <bruno@clisp.org>
26006
26007         select tests: Safer way of handling timeout.
26008         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26009         at every invocation.
26010
26011 2010-12-27  Bruno Haible  <bruno@clisp.org>
26012
26013         select tests: Use 'bool' where appropriate.
26014         * tests/test-select.c (connect_to_socket): Change argument type to
26015         'bool'.
26016
26017 2010-12-27  Bruno Haible  <bruno@clisp.org>
26018
26019         select tests: Use existing modules.
26020         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26021         (configure.ac): Don't test for unistd.h.
26022         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26023         declared in <unistd.h>.
26024
26025 2010-12-27  Bruno Haible  <bruno@clisp.org>
26026
26027         mbrtowc: Work around a Solaris 7 bug.
26028         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26029         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26030         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26031         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26032         MBRTOWC_NULL_ARG1_BUG.
26033         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26034         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26035         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26036         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26037
26038 2010-12-27  Jim Meyering  <meyering@redhat.com>
26039
26040         read-file.c: tweak syntax
26041         * lib/read-file.c (fread_file): Remove space after "*" in function
26042         definitions.
26043
26044 2010-12-27  Bruno Haible  <bruno@clisp.org>
26045
26046         times test: Avoid gcc warnings on OSF/1.
26047         * tests/test-times.c (main): Cast printf arguments from clock_t to
26048         'long int'.
26049
26050 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26051
26052         utimens: work around glibc rounding bug on older Linux kernels
26053         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26054         on Linux with a glibc whose utimes might not work, then work
26055         around a longstanding glibc bug involving rounding rather than
26056         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26057         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26058
26059 2010-12-26  Bruno Haible  <bruno@clisp.org>
26060
26061         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26062         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26063         _GL_CXXALIAS_SYS.
26064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26065
26066 2010-12-26  Bruno Haible  <bruno@clisp.org>
26067
26068         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26069         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26070         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26071         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26072         looking for the declaration.
26073         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26074         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26075         problem.
26076         * doc/posix-functions/inet_pton.texi: Likewise.
26077
26078 2010-12-26  Bruno Haible  <bruno@clisp.org>
26079
26080         arpa_inet: Use the common idioms with C++ support.
26081         * lib/arpa_inet.in.h: Include c++defs.h.
26082         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26083         support.
26084         * modules/arpa_inet (Depends-on): Add c++defs.
26085         (Makefile.am): Substitute the contents of c++defs.h.
26086         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26087         * modules/arpa_inet-c++-tests: New file.
26088         * tests/test-arpa_inet-c++.cc: New file.
26089
26090 2010-12-25  Bruno Haible  <bruno@clisp.org>
26091
26092         Fix more C++ link errors on Solaris 8.
26093         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26094         $(LIB_EACCESS).
26095         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26096         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26097         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26098         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26099         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26100
26101 2010-12-25  Bruno Haible  <bruno@clisp.org>
26102
26103         printf-posix: Fix link error when a non-GCC compiler is used.
26104         * lib/stdio.in.h (printf): When not using GCC, override printf
26105         correctly.
26106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26107
26108 2010-12-25  Bruno Haible  <bruno@clisp.org>
26109
26110         strerror_r-posix: Update doc.
26111         * doc/posix-functions/strerror_r.texi: Update doc about the return
26112         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26113
26114 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         utimens: simplify the logic of the previous change
26117         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26118         This should not affect whether the test succeeds or fails.
26119
26120         utimens: configure better on hosts with NFS clock skew
26121         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26122         uses the clock of the local host.  It might use the clock of the
26123         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26124         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26125
26126 2010-12-25  Bruno Haible  <bruno@clisp.org>
26127
26128         ptsname test: Avoid failure on Solaris.
26129         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26130         open a pseudo-terminal; don't use BSD-style ptys.
26131         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26132
26133 2010-12-25  Bruno Haible  <bruno@clisp.org>
26134
26135         ptsname: Avoid ERANGE failure on some systems.
26136         * lib/ptsname.c (buffer): Increase size.
26137
26138 2010-12-25  Bruno Haible  <bruno@clisp.org>
26139
26140         rename, renameat: Avoid test failures at NFS mounted locations.
26141         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26142         so that subsequent mkdir calls succeed.
26143
26144 2010-12-25  Bruno Haible  <bruno@clisp.org>
26145
26146         iswblank: Fix C++ link error on Solaris 8.
26147         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26148         _GL_FUNCDECL_SYS.
26149
26150 2010-12-25  Bruno Haible  <bruno@clisp.org>
26151
26152         unistd: Fix C++ link error on Solaris 8.
26153         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26154
26155 2010-12-25  Bruno Haible  <bruno@clisp.org>
26156
26157         readlink doc: Mention an old glibc bug.
26158         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26159
26160 2010-12-25  Bruno Haible  <bruno@clisp.org>
26161
26162         fcntl-h: Fix for use of C++ on glibc systems.
26163         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26164         also on glibc systems in C++ mode.
26165         Reported by Gary V. Vaughan <gary@gnu.org>.
26166
26167 2010-12-25  Bruno Haible  <bruno@clisp.org>
26168
26169         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26170         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26171
26172 2010-12-25  Bruno Haible  <bruno@clisp.org>
26173
26174         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26175         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26176         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26177         test whether truncl works according to ISO C 99 with IEC 60559.
26178         * m4/truncl-ieee.m4: New file.
26179         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26180         m4/signbit.m4.
26181         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26182
26183 2010-12-25  Bruno Haible  <bruno@clisp.org>
26184
26185         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26186         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26187         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26188         test whether ceill works according to ISO C 99 with IEC 60559.
26189         * m4/ceill-ieee.m4: New file.
26190         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26191         m4/signbit.m4.
26192         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26193
26194 2010-12-25  Bruno Haible  <bruno@clisp.org>
26195
26196         Ensure all prerequisites of <wchar.h> are included.
26197         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26198         before <wchar.h>.
26199         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26200         gl_MBRLEN_NUL_RETVAL): Likewise.
26201         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26202         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26203         AC_FUNC_MBRTOWC): Likewise.
26204         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26205         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26206         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26207         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26208         Likewise.
26209         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26210         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26211         (gl_WCHAR_H): Improve comments.
26212         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26213
26214 2010-12-25  Bruno Haible  <bruno@clisp.org>
26215
26216         strtok_r: Fix C syntax error in autoconf macro.
26217         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26218         characters in test program.
26219
26220 2010-12-24  Bruno Haible  <bruno@clisp.org>
26221
26222         ceil, trunc, round: Fix gcc warnings.
26223         * lib/ceil.c (MIN): Undefine before redefining.
26224         * lib/trunc.c (MIN): Likewise.
26225         * lib/round.c (MIN): Likewise.
26226         Include <math.h> first.
26227
26228 2010-12-24  Bruno Haible  <bruno@clisp.org>
26229
26230         select tests: Avoid failures on OSF/1 5.1.
26231         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26232         failure of closing the last socket; it may fail with ECONNRESET.
26233
26234 2010-12-24  Eric Blake  <eblake@redhat.com>
26235
26236         stdint: avoid HP-UX 10.20 preprocessor bug
26237         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26238         than #if.
26239         * tests/test-floor2.c (main): Likewise.
26240         Reported by Peter O'Gorman.
26241
26242         pipe: make obsoletion transition easier
26243         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26244         * modules/pipe (Files): Include revived file.
26245         (Include): Drop reference, to mirror getdate's behavior.
26246
26247 2010-12-24  Bruno Haible  <bruno@clisp.org>
26248
26249         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26250         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26251         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26252         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26253
26254 2010-12-24  Bruno Haible  <bruno@clisp.org>
26255
26256         gethostname: Ensure declaration on NonStop Kernel.
26257         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26258         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26259
26260 2010-12-24  Bruno Haible  <bruno@clisp.org>
26261
26262         sys_select: Ensure all necessary types on NonStop Kernel.
26263         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26264         include <sys/time.h>.
26265         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26266         NonStop Kernel.
26267         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26268
26269 2010-12-24  Bruno Haible  <bruno@clisp.org>
26270
26271         sys_select: Remove unneeded include.
26272         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26273         have <sys/select.h>.
26274
26275 2010-12-24  Bruno Haible  <bruno@clisp.org>
26276
26277         gethostname: Provide a fallback for HOST_NAME_MAX.
26278         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26279         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26280         instead.
26281         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26282
26283 2010-12-24  Bruno Haible  <bruno@clisp.org>
26284
26285         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26286         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26287         (SA_RESTART): Likewise.
26288         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26289
26290 2010-12-24  Bruno Haible  <bruno@clisp.org>
26291
26292         signal: Define NSIG.
26293         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26294         * tests/test-signal.c (nsig): New variable.
26295         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26296
26297 2010-12-24  Bruno Haible  <bruno@clisp.org>
26298
26299         rename, renameat: Avoid test failures on OSF/1 5.1.
26300         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26301         alternative error codes.
26302         * tests/test-renameat.c (main): Likewise.
26303
26304 2010-12-24  Bruno Haible  <bruno@clisp.org>
26305
26306         *printf: Detect large precisions bug on Solaris 10/SPARC.
26307         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26308         by Paul Eggert.
26309         * tests/test-snprintf-posix.h (test_function): Add this test code here
26310         too.
26311         * tests/test-sprintf-posix.h (test_function): Likewise.
26312         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26313         * tests/test-vasprintf-posix.c (test_function): Likewise.
26314         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26315         around by gnulib.
26316         * doc/posix-functions/printf.texi: Likewise.
26317         * doc/posix-functions/snprintf.texi: Likewise.
26318         * doc/posix-functions/sprintf.texi: Likewise.
26319         * doc/posix-functions/vfprintf.texi: Likewise.
26320         * doc/posix-functions/vprintf.texi: Likewise.
26321         * doc/posix-functions/vsnprintf.texi: Likewise.
26322         * doc/posix-functions/vsprintf.texi: Likewise.
26323         * doc/posix-functions/dprintf.texi: Undo last commit.
26324         * doc/posix-functions/vdprintf.texi: Likewise.
26325
26326 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26327
26328         tests: port test-fdutimensat.c to Solaris 8
26329         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26330         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26331         On Solaris 8, it fails with errno == ENOSYS, because there is no
26332         futimens (so it can't use the fd), and there is no lutimens (so it
26333         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26334
26335         vsnprintf: make more consistent with snprintf; doc fixes
26336
26337         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26338         the byte count return problem was promoted from the snprintf-posix
26339         to the snprintf module.
26340         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26341         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26342         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26343         * tests/test-snprintf.c (main): Check the byte count returned.
26344         * tests/test-vsnprintf.c (main): Likewise.
26345
26346 2010-12-23  Eric Blake  <eblake@redhat.com>
26347
26348         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26349         * modules/sigpipe (License): Relax license.
26350
26351 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26352
26353         doc: document Solaris printf bug with large float precisions
26354         * doc/posix-functions/dprintf.texi (dprintf):
26355         * doc/posix-functions/fprintf.texi (fprintf):
26356         * doc/posix-functions/printf.texi (printf):
26357         * doc/posix-functions/snprintf.texi (snprintf):
26358         * doc/posix-functions/sprintf.texi (sprintf):
26359         * doc/posix-functions/vdprintf.texi (vdprintf):
26360         * doc/posix-functions/vfprintf.texi (vfprintf):
26361         * doc/posix-functions/vprintf.texi (vprintf):
26362         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26363         * doc/posix-functions/vsprintf.texi (vsprintf):
26364         Mention that these functions mishandle large floating point
26365         precisions on Solaris 10.  The same bug is also present in Solaris
26366         8, and I assume earlier.  This causes "cd gnulib-tests; make
26367         check" to fail on Solaris 8 (and I assume, later) when building
26368         the latest coreutils, in test-vasprintf-posix's call to
26369         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26370         the wide flavors (e.g., wprintf) so this patch just updates the
26371         documentation for the narrow ones.
26372
26373         test-posixtm.c: add two tests
26374         * tests/test-posixtm.c: Add two tests, to highlight the
26375         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26376         around this bug; this is merely to document it.
26377
26378 2010-12-22  Bruno Haible  <bruno@clisp.org>
26379
26380         getlogin_r: Work around portability problem on OSF/1.
26381         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26382         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26383         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26384         test for a truncated result.
26385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26386         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26387         * modules/getlogin_r (Depends-on): Add memchr.
26388         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26389
26390 2010-12-22  Bruno Haible  <bruno@clisp.org>
26391
26392         ptsname: Avoid test failure on OSF/1 5.1.
26393         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26394         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26395         (same_slave): New function.
26396         (main): Use it to compare ptsname's result with the expected file name.
26397
26398 2010-12-22  Bruno Haible  <bruno@clisp.org>
26399
26400         Port extended stdio modules to HP NonStop Kernel.
26401         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26402         macros.
26403         * lib/fbufmode.c: Update comments.
26404         * lib/fflush.c: Likewise.
26405         * lib/fpurge.c: Likewise.
26406         * lib/freadable.c: Likewise.
26407         * lib/freadahead.c: Likewise.
26408         * lib/freading.c: Likewise.
26409         * lib/freadptr.c: Likewise.
26410         * lib/freadseek.c: Likewise.
26411         * lib/fseeko.c: Likewise.
26412         * lib/fseterr.c: Likewise.
26413         * lib/fwritable.c: Likewise.
26414         * lib/fwriting.c: Likewise.
26415         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26416
26417 2010-12-22  Bruno Haible  <bruno@clisp.org>
26418
26419         ttyname_r: Work around bug on OSF/1 5.1.
26420         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26421         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26422         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26423         present.
26424         * lib/ttyname_r.c (ttyname_r): Update comments.
26425
26426 2010-12-22  Bruno Haible  <bruno@clisp.org>
26427
26428         round: Implement result sign according to IEEE 754.
26429         * lib/round.c (MIN, MINUS_ZERO): New macros.
26430         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26431         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26432         * tests/test-round-ieee.c (main): Likewise.
26433         * tests/test-roundl-ieee.c (main): Likewise.
26434
26435         trunc: Implement result sign according to IEEE 754.
26436         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26437         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26438         * tests/test-trunc2.c: Include minus-zero.h.
26439         (MINUS_ZERO): New macro.
26440         (trunc_reference): Keep in sync with lib/trunc.c.
26441         * tests/test-truncf2.c: Include minus-zero.h.
26442         (MINUS_ZERO): New macro.
26443         (truncf_reference): Keep in sync with lib/trunc.c.
26444         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26445         * tests/test-trunc-ieee.c (main): Likewise.
26446         * tests/test-truncl-ieee.c (main): Likewise.
26447
26448         ceil: Implement result sign according to IEEE 754.
26449         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26450         (FUNC): Return -0.0 for -1 < x < 0.
26451         * tests/test-ceil2.c: Include minus-zero.h.
26452         (MINUS_ZERO): New macro.
26453         (ceil_reference): Keep in sync with lib/ceil.c.
26454         * tests/test-ceilf2.c: Include minus-zero.h.
26455         (MINUS_ZERO): New macro.
26456         (ceilf_reference): Keep in sync with lib/ceil.c.
26457         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26458         * tests/test-ceil-ieee.c (main): Likewise.
26459         * tests/test-ceill-ieee.c (main): Likewise.
26460
26461         floor: Implement result sign according to IEEE 754.
26462         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26463         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26464         * tests/test-floorf2.c (floorf_reference): Likewise.
26465         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26466         * tests/test-floor-ieee.c (main): Likewise.
26467         * tests/test-floorl-ieee.c (main): Likewise.
26468
26469 2010-12-22  Bruno Haible  <bruno@clisp.org>
26470
26471         getaddrinfo: Update doc.
26472         * doc/posix-functions/gai_strerror.texi: Return type is also different
26473         on AIX and HP-UX.
26474
26475 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26476
26477         getaddrinfo, inet_ntop: Update doc for Solaris.
26478         * doc/posix-functions/gai_strerror.texi: Return type is also an
26479         issue on Solaris 9 and earlier.
26480         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26481         on Solaris 10 and earlier.
26482
26483 2010-12-21  Bruno Haible  <bruno@clisp.org>
26484
26485         New module 'roundl-ieee'.
26486         * modules/roundl-ieee: New file.
26487         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26488         test whether roundl works according to ISO C 99 with IEC 60559.
26489         * m4/roundl-ieee.m4: New file.
26490         * modules/roundl-ieee-tests: New file.
26491         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26492         * tests/test-roundl.c (main): Remove signbit tests.
26493         * modules/roundl-tests (Depends-on): Remove signbit.
26494         * doc/posix-functions/roundl.texi: Mention the new module.
26495
26496 2010-12-21  Bruno Haible  <bruno@clisp.org>
26497
26498         New module 'truncl-ieee'.
26499         * modules/truncl-ieee: New file.
26500         * modules/truncl-ieee-tests: New file.
26501         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26502         * tests/test-truncl.c (main): Remove signbit tests.
26503         * modules/truncl-tests (Depends-on): Remove signbit.
26504         * doc/posix-functions/truncl.texi: Mention the new module.
26505
26506 2010-12-21  Bruno Haible  <bruno@clisp.org>
26507
26508         New module 'ceill-ieee'.
26509         * modules/ceill-ieee: New file.
26510         * modules/ceill-ieee-tests: New file.
26511         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26512         * tests/test-ceill.c (main): Remove signbit tests.
26513         * modules/ceill-tests (Depends-on): Remove signbit.
26514         * doc/posix-functions/ceill.texi: Mention the new module.
26515
26516 2010-12-21  Bruno Haible  <bruno@clisp.org>
26517
26518         New module 'floorl-ieee'.
26519         * modules/floorl-ieee: New file.
26520         * modules/floorl-ieee-tests: New file.
26521         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26522         * tests/test-floorl.c (main): Remove signbit tests.
26523         * modules/floorl-tests (Depends-on): Remove signbit.
26524         * doc/posix-functions/floorl.texi: Mention the new module.
26525
26526 2010-12-21  Bruno Haible  <bruno@clisp.org>
26527
26528         New module 'round-ieee'.
26529         * modules/round-ieee: New file.
26530         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26531         whether round works according to ISO C 99 with IEC 60559.
26532         * m4/round-ieee.m4: New file.
26533         * modules/round-ieee-tests: New file.
26534         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26535         * tests/test-round1.c (main): Remove signbit tests.
26536         * modules/round-tests (Depends-on): Remove 'signbit'.
26537         * doc/posix-functions/round.texi: Mention the new module.
26538
26539 2010-12-21  Bruno Haible  <bruno@clisp.org>
26540
26541         New module 'trunc-ieee'.
26542         * modules/trunc-ieee: New file.
26543         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26544         whether trunc works according to ISO C 99 with IEC 60559.
26545         * m4/trunc-ieee.m4: New file.
26546         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26548         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26549         * modules/trunc-ieee-tests: New file.
26550         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26551         * tests/test-trunc1.c (main): Remove signbit tests.
26552         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26553         * doc/posix-functions/trunc.texi: Mention the new module.
26554
26555 2010-12-21  Bruno Haible  <bruno@clisp.org>
26556
26557         New module 'ceil-ieee'.
26558         * modules/ceil-ieee: New file.
26559         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26560         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26561         ISO C 99 with IEC 60559.
26562         * m4/ceil-ieee.m4: New file.
26563         * modules/ceil (Files): Add lib/ceil.c.
26564         (Depends-on): Add 'float'.
26565         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26566         * lib/math.in.h (ceil): New declaration.
26567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26568         REPLACE_CEIL.
26569         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26570         * modules/ceil-ieee-tests: New file.
26571         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26572         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26573         * doc/posix-functions/ceil.texi: Mention the new module.
26574
26575 2010-12-21  Bruno Haible  <bruno@clisp.org>
26576
26577         New module 'floor-ieee'.
26578         * modules/floor-ieee: New file.
26579         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26580         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26581         ISO C 99 with IEC 60559.
26582         * m4/floor-ieee.m4: New file.
26583         * modules/floor (Files): Add lib/floor.c.
26584         (Depends-on): Add 'float'.
26585         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26586         * lib/math.in.h (floor): New declaration.
26587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26588         REPLACE_FLOOR.
26589         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26590         * modules/floor-ieee-tests: New file.
26591         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26592         * tests/test-math-c++.cc: Check the signature of 'floor'.
26593         * doc/posix-functions/floor.texi: Mention the new module.
26594
26595 2010-12-21  Bruno Haible  <bruno@clisp.org>
26596
26597         New module 'roundf-ieee'.
26598         * modules/roundf-ieee: New file.
26599         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26600         test whether roundf works according to ISO C 99 with IEC 60559.
26601         * m4/roundf-ieee.m4: New file.
26602         * modules/roundf-ieee-tests: New file.
26603         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26604         * tests/test-roundf1.c (main): Remove signbit tests.
26605         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26606         * doc/posix-functions/roundf.texi: Mention the new module.
26607
26608 2010-12-21  Bruno Haible  <bruno@clisp.org>
26609
26610         New module 'truncf-ieee'.
26611         * modules/truncf-ieee: New file.
26612         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26613         test whether truncf works according to ISO C 99 with IEC 60559.
26614         * m4/truncf-ieee.m4: New file.
26615         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26617         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26618         * modules/truncf-ieee-tests: New file.
26619         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26620         * tests/test-truncf1.c (main): Remove signbit tests.
26621         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26622         * doc/posix-functions/truncf.texi: Mention the new module.
26623
26624 2010-12-21  Bruno Haible  <bruno@clisp.org>
26625
26626         New module 'ceilf-ieee'.
26627         * modules/ceilf-ieee: New file.
26628         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26629         test whether ceilf works according to ISO C 99 with IEC 60559.
26630         * m4/ceilf-ieee.m4: New file.
26631         * modules/ceilf-ieee-tests: New file.
26632         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26633         * tests/test-ceilf1.c (main): Remove signbit tests.
26634         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26635         * doc/posix-functions/ceilf.texi: Mention the new module.
26636
26637 2010-12-21  Bruno Haible  <bruno@clisp.org>
26638
26639         New module 'floorf-ieee'.
26640         * modules/floorf-ieee: New file.
26641         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26642         test whether floorf works according to ISO C 99 with IEC 60559.
26643         * m4/floorf-ieee.m4: New file.
26644         * modules/floorf-ieee-tests: New file.
26645         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26646         * tests/test-floorf1.c (main): Remove signbit tests.
26647         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26648         * doc/posix-functions/floorf.texi: Mention the new module.
26649
26650 2010-12-21  Bruno Haible  <bruno@clisp.org>
26651
26652         Support for minus zero in autoconf macros.
26653         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26654         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26655         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26656         * tests/minus-zero.h: Update comments.
26657
26658 2010-12-21  Bruno Haible  <bruno@clisp.org>
26659
26660         Tests for module 'ceil'.
26661         * modules/ceil-tests: New file.
26662         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26663         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26664
26665 2010-12-21  Bruno Haible  <bruno@clisp.org>
26666
26667         Tests for module 'floor'.
26668         * modules/floor-tests: New file.
26669         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26670         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26671
26672 2010-12-21  Bruno Haible  <bruno@clisp.org>
26673
26674         math: Fix indentation.
26675         * lib/math.in.h (floorf): Fix indentation.
26676
26677 2010-12-21  Bruno Haible  <bruno@clisp.org>
26678
26679         Fix cross-compilation guesses on Solaris.
26680         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26681         not match "solaris2.10".
26682         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26683         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26684         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26685
26686 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26687
26688         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26689         This fixes a problem observed with the latest coreutils snapshot
26690         that caused a test to fail on Solaris 8.  src/csplit.c's call
26691         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26692         earlier, instead of returning the number of bytes that would have
26693         been generated; this causes csplit to incorrectly report memory
26694         exhaustion.
26695         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26696         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26697         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26698         comments to match.
26699         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26700         Fix typo in matching older versions of Solaris: "solaris2.10"
26701         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26702         only for guessing while cross-compiling.
26703         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26704
26705 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26706
26707         ftoastr: fix comment again
26708         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26710         Also, simplify example a bit by using flags = 0.
26711
26712 2010-12-20  Bruno Haible  <bruno@clisp.org>
26713
26714         round*, trunc*: Update documentation regarding glibc.
26715         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26716         * doc/posix-functions/round.texi: Likewise.
26717         * doc/posix-functions/roundl.texi: Likewise.
26718         * doc/posix-functions/truncf.texi: Likewise.
26719         * doc/posix-functions/trunc.texi: Likewise.
26720         * doc/posix-functions/truncl.texi: Likewise.
26721
26722 2010-12-20  Bruno Haible  <bruno@clisp.org>
26723
26724         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26725         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26726         * doc/posix-functions/round.texi: Likewise.
26727         * doc/posix-functions/roundl.texi: Likewise.
26728
26729 2010-12-20  Bruno Haible  <bruno@clisp.org>
26730
26731         ttyname_r: Add missing declaration on HP-UX 11.
26732         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26733         HAVE_TTYNAME_R.
26734         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26735         declared. Set HAVE_TTYNAME_R always.
26736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26737         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26738         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26739         HAVE_TTYNAME_R.
26740         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26741
26742 2010-12-20  Bruno Haible  <bruno@clisp.org>
26743
26744         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26745         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26746         * doc/posix-functions/getlogin_r.texi: Likewise.
26747         * tests/test-getlogin.c: Include <errno.h>.
26748         (main): Avoid test failure on HP-UX 11.11.
26749         * tests/test-getlogin_r.c (main): Likewise.
26750
26751 2010-12-20  Bruno Haible  <bruno@clisp.org>
26752
26753         getlogin_r: Add missing declaration on HP-UX 11.
26754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26755         declared also when it exists as a function.
26756         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26757
26758 2010-12-20  Bruno Haible  <bruno@clisp.org>
26759
26760         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26761         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26762         through wcrtomb.
26763
26764 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26765
26766         ftoastr: fix comment
26767         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26769
26770 2010-12-19  Bruno Haible  <bruno@clisp.org>
26771
26772         isnan: Ensure it is a macro.
26773         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26774         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26775         Solaris.
26776
26777 2010-12-19  Bruno Haible  <bruno@clisp.org>
26778
26779         ldexpl test: Fix link error on OSF/1 5.1.
26780         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26781
26782 2010-12-19  Bruno Haible  <bruno@clisp.org>
26783
26784         wctype: Make it work in C++ mode on OSF/1 5.1.
26785         * lib/wctype.in.h (iswblank): Declare but not define here.
26786         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26787         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26788         * modules/wctype (Files): Add lib/iswblank.c.
26789
26790 2010-12-19  Bruno Haible  <bruno@clisp.org>
26791
26792         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26793         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26794         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26795
26796 2010-12-19  Bruno Haible  <bruno@clisp.org>
26797
26798         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26800         _POSIX_PII_SOCKET.
26801         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26802         * doc/posix-functions/recvfrom.texi: Likewise.
26803         * doc/posix-functions/send.texi: Likewise.
26804         * doc/posix-functions/sendto.texi: Likewise.
26805
26806 2010-12-19  Bruno Haible  <bruno@clisp.org>
26807
26808         tcgetsid: Add missing declaration on OSF/1 5.1.
26809         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26810         HAVE_TCGETSID.
26811         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26812         Don't set HAVE_TCGETSID.
26813         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26814         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26815         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26816         HAVE_TCGETSID.
26817         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26818
26819 2010-12-19  Bruno Haible  <bruno@clisp.org>
26820
26821         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26822         * lib/stdio.in.h: During the include_next statement, let recursive
26823         includes of this file include only the system header file.
26824
26825 2010-12-19  Bruno Haible  <bruno@clisp.org>
26826
26827         iconv_open: Fix regression from 2010-12-04.
26828         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26829         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26830
26831 2010-12-19  Bruno Haible  <bruno@clisp.org>
26832
26833         stdbool test: Avoid a gcc warning.
26834         * tests/test-stdbool.c (main): Fail if e1 is false.
26835         Reported by Jim Meyering.
26836
26837 2010-12-19  Jim Meyering  <meyering@redhat.com>
26838
26839         setenv: restore to working order
26840         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26841         mistakenly removed.
26842         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26843         HAVE_SETENV.
26844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26845         HAVE_SETENV.
26846
26847 2010-12-19  Bruno Haible  <bruno@clisp.org>
26848
26849         Document some different function declarations on OSF/1 5.1.
26850         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26851         * doc/posix-functions/inet_ntop.texi: Likewise.
26852         * doc/posix-functions/gethostname.texi: Likewise.
26853         * lib/unistd.in.h (gethostname): Update comment.
26854
26855 2010-12-19  Bruno Haible  <bruno@clisp.org>
26856
26857         doc: Mention vasprintf-posix module.
26858         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26859         the 'vasprintf-posix' module.
26860         * doc/glibc-functions/vasprintf.texi: Likewise.
26861
26862 2010-12-19  Bruno Haible  <bruno@clisp.org>
26863
26864         unsetenv: Add missing declaration on OSF/1 5.1.
26865         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26867         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26869         not HAVE_UNSETENV.
26870         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26871         HAVE_UNSETENV.
26872         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26873
26874 2010-12-19  Bruno Haible  <bruno@clisp.org>
26875
26876         setenv: Add missing declaration on OSF/1 5.1.
26877         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26879         declared. Don't set HAVE_SETENV.
26880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26881         not HAVE_SETENV.
26882         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26883         HAVE_SETENV.
26884         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26885
26886 2010-12-19  Bruno Haible  <bruno@clisp.org>
26887
26888         nl_langinfo tests: Avoid gcc warning.
26889         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26890
26891 2010-12-19  Bruno Haible  <bruno@clisp.org>
26892
26893         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26894         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26895         _GL_CXXALIAS_SYS.
26896
26897 2010-12-19  Bruno Haible  <bruno@clisp.org>
26898
26899         stdbool: Relax test.
26900         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26901         address to 'bool' work in static initializer, for compilers other than
26902         GCC.
26903
26904 2010-12-19  Bruno Haible  <bruno@clisp.org>
26905
26906         ftello: Add missing declaration on OSF/1 5.1.
26907         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26908         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26910         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26911         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26912
26913 2010-12-19  Bruno Haible  <bruno@clisp.org>
26914
26915         fseeko: Add missing declaration on OSF/1 5.1.
26916         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26919         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26920         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26921
26922 2010-12-19  Bruno Haible  <bruno@clisp.org>
26923
26924         fchdir: Add missing declaration on OSF/1 5.1.
26925         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26928         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26929         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26930
26931 2010-12-19  Bruno Haible  <bruno@clisp.org>
26932
26933         relocatable-prog-wrapper: Separate from relocatable-prog.
26934         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26935         uninstall-relocwrapper rule here.
26936         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26937         Reported by Ian Beckwith <ianb@erislabs.net>.
26938
26939 2010-12-19  Bruno Haible  <bruno@clisp.org>
26940
26941         unistr/u8-mbsnlen: Add missing dependency.
26942         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26943         Reported by Ian Beckwith <ianb@erislabs.net>.
26944
26945 2010-12-19  Bruno Haible  <bruno@clisp.org>
26946
26947         iconv: Make it possible again to use this module without 'iconv-h'.
26948         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26949         if it is not defined.
26950         Reported by Ian Beckwith <ianb@erislabs.net>.
26951
26952 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26953
26954         acl: port to Solaris 8 when copying from tmpfs to ufs
26955         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26956         error number.  Problem observed on Solaris 8 with latest
26957         coreutils, with "mv A B", where A is on a tmpfs file system and B
26958         is on a ufs file system.  This caused coreutils' mv/part-symlink
26959         test to fail.
26960
26961         tests: set fail=0 at start
26962         * tests/init.sh (setup_): Move fail=0 initialization here ...
26963         (mktempd_): ... from here, so that tests can rely on fail being
26964         set to 0 initially.  This fixes a problem in coreutils; see:
26965         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26966
26967 2010-12-18  Bruno Haible  <bruno@clisp.org>
26968
26969         memmem-simple: Stylistic changes.
26970         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26971         Fix preprocessor directive indentation.
26972
26973 2010-12-15  Pádraig Brady <P@draigBrady.com>
26974
26975         memmem, memmem-simple: reorganize and expand empty needle check
26976         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26977         functional checks to memmem-simple so that one has a fully functional
26978         memmem by using just this module.
26979         Restrict the performance only check to the memmem module.
26980         Also expand the empty needle check to ensure the correct
26981         pointer is returned, not just a non NULL pointer.
26982         * doc/glibc-functions/memmem.texi: Rearrange the portability
26983         documentation to correlate with the rearranged checks.
26984         Clarify exactly how the memmem and memmem-simple modules
26985         relate to each other.
26986
26987 2010-12-15  Pádraig Brady <P@draigBrady.com>
26988             Bruno Haible  <bruno@clisp.org>
26989
26990         Improve cross-compilation guesses for uClibc.
26991         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26992         that uClibc does not have the glibc bug.
26993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26994         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26995
26996 2010-12-14  Eric Blake  <eblake@redhat.com>
26997
26998         configmake: provide fallbacks for oldest supported autotools
26999         * m4/configmake.m4: New file.
27000         * modules/configmake (Files): Ship it.
27001         (configure.ac): Use it to guarantee fallbacks.
27002
27003 2010-12-13  Pádraig Brady <P@draigBrady.com>
27004
27005         read-file: Improve handling of large files
27006         * lib/read-file.c (fread_file): Minimize realloc()s
27007         for regular files, and better manage sizes around SIZE_MAX.
27008
27009 2010-12-13  Eric Blake  <eblake@redhat.com>
27010
27011         cloexec, fcntl: relax license
27012         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27013         consent from all contributors.
27014         * modules/fcntl (License): Likewise.
27015
27016 2010-12-10  Bruno Haible  <bruno@clisp.org>
27017
27018         Tests for module 'pipe-posix'.
27019         * modules/pipe-posix-tests: New file.
27020         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27021
27022 2010-12-10  Bruno Haible  <bruno@clisp.org>
27023
27024         pipe-posix: Make it work in C++ mode.
27025         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27026         (pipe): Use common idiom, not a macro definition.
27027         * lib/pipe.c: New file.
27028         * m4/pipe.m4: New file.
27029         * modules/pipe-posix (Description): Enhance.
27030         (Files): Add lib/pipe.c, m4/pipe.m4.
27031         (configure.ac): Invoke gl_FUNC_PIPE.
27032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27033         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27034         * tests/test-unistd-c++.cc: Check the signature of pipe.
27035
27036 2010-12-10  Bruno Haible  <bruno@clisp.org>
27037
27038         Rename module 'pipe' to 'spawn-pipe'.
27039         * modules/spawn-pipe: New file, renamed from modules/pipe.
27040         (Files, configure.ac, Makefile.am): Update.
27041         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27042         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27043         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27044         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27045         "spawn-pipe.h" instead of "pipe.h".
27046         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27047         to gl_SPAWN_PIPE.
27048         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27049         (Files, Makefile.am): Update.
27050         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27051         Update.
27052         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27053         Include "spawn-pipe.h" instead of "pipe.h".
27054         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27055         * lib/javacomp.c: Likewise.
27056         * lib/javaversion.c: Likewise.
27057         * lib/pipe-filter-gi.c: Likewise.
27058         * lib/pipe-filter-ii.c: Likewise.
27059         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27060         * modules/javacomp (Depends-on): Likewise.
27061         * modules/javaversion (Depends-on): Likewise.
27062         * modules/pipe-filter-gi (Depends-on): Likewise.
27063         * modules/pipe-filter-ii (Depends-on): Likewise.
27064         * MODULES.html.sh (Executing programs): Update.
27065         * NEWS: Mention the change.
27066
27067 2010-12-10  Eric Blake  <eblake@redhat.com>
27068
27069         pipe-posix: new module
27070         * modules/pipe-posix: New file.
27071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27072         (gl_UNISTD_H): Check for declaration.
27073         * modules/unistd (Makefile.am): Substitute it.
27074         * lib/unistd.in.h (pipe): Provide it for mingw.
27075         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27076         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27077
27078 2010-12-07  Bruno Haible  <bruno@clisp.org>
27079
27080         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27081         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27082         u8_strcmp_gnu.
27083         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27084
27085 2010-12-06  Bruno Haible  <bruno@clisp.org>
27086
27087         Update internal documentation.
27088         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27089
27090 2010-12-04  Bruno Haible  <bruno@clisp.org>
27091
27092         Put more information about failed tests into the test return codes.
27093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27094         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27095         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27097         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27098         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27099         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27100         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27101         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27104         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27105         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27106         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27107         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27108         returns a bit mask.
27109         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27110         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27111         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27112         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27113         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27114         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27117         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27118         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27119         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27120         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27121         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27122         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27123         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27124         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27125         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27126         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27127         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27128         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27130         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27132         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27133         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27134         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27135         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27136         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27137         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27138         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27139         gl_PRINTF_PRECISION): Likewise.
27140         * m4/regex.m4 (gl_REGEX): Likewise.
27141         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27143         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27144         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27148         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27149         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27150         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27151         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27152         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27153         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27154         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27155         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27156         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27157         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27160         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27161         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27162         enumerated value.
27163         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27164
27165 2010-12-04  Bruno Haible  <bruno@clisp.org>
27166
27167         Update for Solaris 11 2010-11.
27168         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27169         Express, released in November 2010.
27170
27171 2010-12-04  Bruno Haible  <bruno@clisp.org>
27172
27173         nproc: Relax license.
27174         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27175         and Paul Eggert.
27176         Requested by Ludovic Courtès <ludo@gnu.org>.
27177
27178 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27179
27180         utimecmp: fine-grained src to nearby coarse-grained dest
27181
27182         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27183         and the source is on a file system with higher-resolution time
27184         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27185         not work, and the time stamps are close together, the algorithm to
27186         determine the exact resolution from the read-back mtime was buggy:
27187         it had a "!=" where it should have had an "==".  This bug has been
27188         in the code ever since it was introduced to gnulib.
27189         Problem reported by Dan Jacobson in
27190         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27191
27192 2010-11-30  Bruno Haible  <bruno@clisp.org>
27193
27194         strerror_r-posix: Fix autoconf test.
27195         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27196
27197 2010-11-28  Bruno Haible  <bruno@clisp.org>
27198             Paul Eggert  <eggert@cs.ucla.edu>
27199
27200         Tests for module 'getdomainname'.
27201         * modules/getdomainname-tests: New file.
27202         * tests/test-getdomainname.c: New file, based on
27203         tests/test-gethostname.c.
27204
27205 2010-11-28  Bruno Haible  <bruno@clisp.org>
27206             Paul Eggert  <eggert@cs.ucla.edu>
27207
27208         getdomainname: Use the system function when possible.
27209         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27210         (getdomainname): Replace if needed. Provide the declaration if it is
27211         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27212         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27213         (getdomainname): When the system has getdomainname, call the system
27214         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27215         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27216         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27217         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27218         the function if its second argument is of type 'int' or if it is found
27219         in libnsl.
27220         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27221         <sys/systeminfo.h> and sysinfo().
27222         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27224         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27225         HAVE_GETDOMAINNAME.
27226         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27227         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27228         * doc/glibc-functions/getdomainname.texi: Document the problems with
27229         the getdomainname declaration.
27230
27231 2010-11-28  Bruno Haible  <bruno@clisp.org>
27232
27233         sys_socket: Ensure ss_family field on AIX.
27234         * lib/sys_socket.in.h (ss_family): New macro definition.
27235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27236         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27237         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27238         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27239         * modules/sys_socket (Makefile.am): Substitute
27240         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27241         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27242
27243 2010-11-27  Bruno Haible  <bruno@clisp.org>
27244
27245         readline: Improve configure output.
27246         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27247         "checking for readline..." result understandable.
27248
27249 2010-11-27  Bruno Haible  <bruno@clisp.org>
27250
27251         *printf-posix: Detect a bug on Solaris 10/x86.
27252         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27253         for floating-point output.
27254         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27255         directive.
27256         * tests/test-snprintf-posix.h (test_function): Likewise.
27257         * tests/test-sprintf-posix.h (test_function): Likewise.
27258         * tests/test-vasprintf-posix.c (test_function): Likewise.
27259         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27260         * doc/posix-functions/printf.texi: Likewise.
27261         * doc/posix-functions/snprintf.texi: Likewise.
27262         * doc/posix-functions/sprintf.texi: Likewise.
27263         * doc/posix-functions/vfprintf.texi: Likewise.
27264         * doc/posix-functions/vprintf.texi: Likewise.
27265         * doc/posix-functions/vsnprintf.texi: Likewise.
27266         * doc/posix-functions/vsprintf.texi: Likewise.
27267         * doc/glibc-functions/obstack_printf.texi: Likewise.
27268         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27269
27270 2010-11-27  Bruno Haible  <bruno@clisp.org>
27271
27272         Fix link error when module libunistring-optional is in use.
27273         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27274         * modules/striconveha-tests (Makefile.am): Likewise.
27275
27276 2010-11-27  Bruno Haible  <bruno@clisp.org>
27277
27278         regex: Mention link dependencies.
27279         * modules/regex (Link): New section.
27280         * modules/rpmatch (Link): Likewise.
27281         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27282
27283 2010-11-27  Bruno Haible  <bruno@clisp.org>
27284
27285         ftoastr: Fix compilation error on Solaris.
27286         * lib/ftoastr.c: Include <config.h>.
27287
27288 2010-11-27  Bruno Haible  <bruno@clisp.org>
27289
27290         getloadavg: Update documentation.
27291         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27292
27293 2010-11-27  Bruno Haible  <bruno@clisp.org>
27294
27295         sys_socket: Fix test whether the functions are declared.
27296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27297         not <sys/select.h>.
27298
27299 2010-11-27  Bruno Haible  <bruno@clisp.org>
27300
27301         getpass: Make sure to get system declaration on some platforms.
27302         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27303         gl_USE_SYSTEM_EXTENSIONS.
27304         * modules/getpass (Depends-on): Add extensions.
27305
27306 2010-11-26  Bruno Haible  <bruno@clisp.org>
27307
27308         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27309         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27310         'iconv' module is present.
27311         (ICONV_CONST): New macro.
27312         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27313         ICONV_CONST.
27314         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27315         set ICONV_CONST.
27316         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27317         here.
27318         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27319         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27320         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27321         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27322         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27323         present.
27324
27325 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27326
27327         ftoastr: comment fix
27328         * lib/ftoastr.c: "little" -> "little or no" in comment
27329
27330 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27331
27332         stdint: port to GCC 4.3 + OSX + Octave
27333         On this platform, stdint.h is buggy and defines int64_t to long
27334         long int.  The replacement defined it to long int, causing
27335         problems with C++ style name mangling.  Instead, trust the system
27336         definition if INT64_MAX is defined, and likewise for the unsigned
27337         variant.   Problem reported by Jarno Rajahalme in
27338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27339         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27340         and don't mess with int64_t and INT64_MAX in this case.
27341         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27342
27343 2010-11-24  Bruno Haible  <bruno@clisp.org>
27344
27345         doc: Corrections regarding MacOS X 10.4 and 10.5.
27346         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27347         MacOS X.
27348         Reported by Simon Josefsson.
27349
27350 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27351
27352         Uninstall ".bin" files installed by relocwrapper.
27353         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27354         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27355         unless it is already there.
27356
27357 2010-11-21  Bruno Haible  <bruno@clisp.org>
27358
27359         Update for NetBSD 5.0.
27360         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27361         NetBSD; the test fails on NetBSD 5.0.
27362         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27363         about NetBSD.
27364
27365 2010-11-21  Bruno Haible  <bruno@clisp.org>
27366
27367         Update for HP-UX 11.23 and HP-UX 11.31.
27368         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27369         HP-UX.
27370
27371 2010-11-21  Bruno Haible  <bruno@clisp.org>
27372
27373         Update for MacOS X 10.5.
27374         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27375         MacOS X; the test fails on MacOS X 10.5.8.
27376         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27377         about MacOS X.
27378
27379 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27380
27381         bootstrap: add bootstrap_sync option.
27382         See discussion at
27383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27385         * build-aux/bootstrap: Accept --bootstrap-sync to update
27386         bootstrap if it is not identical to the local gnulib's
27387         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27388         enable this by default.  Accept --no-bootstrap-sync to disable
27389         it.
27390
27391 2010-11-20  Bruno Haible  <bruno@clisp.org>
27392
27393         Ensure that <features.h> is included before __GLIBC__ is tested.
27394         * lib/printf-parse.h: Include <features.h>.
27395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27396         Reported by Mike Frysinger <vapier@gentoo.org>.
27397
27398         Ensure that <features.h> is included before __GLIBC__ is tested.
27399         * lib/wchar.in.h: Include <features.h>.
27400         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27401         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27402         Reported by Mike Frysinger <vapier@gentoo.org>.
27403
27404         Ensure that <features.h> is included before __GLIBC__ is tested.
27405         * lib/arpa_inet.in.h: Include <features.h>.
27406         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27407         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27408         Reported by Mike Frysinger <vapier@gentoo.org>.
27409
27410         Ensure that <features.h> is included before __GLIBC__ is tested.
27411         * build-aux/link-warning.h: Include <features.h>.
27412         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27413         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27414         Reported by Mike Frysinger <vapier@gentoo.org>.
27415
27416         Ensure that <features.h> is included before __GLIBC__ is tested.
27417         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27418         Reported by Mike Frysinger <vapier@gentoo.org>.
27419
27420 2010-11-20  Bruno Haible  <bruno@clisp.org>
27421
27422         memmem: Fix autoconf test.
27423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27424
27425 2010-11-20  Bruno Haible  <bruno@clisp.org>
27426
27427         Port to uClibc.
27428         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27429         * lib/fcntl.in.h: Likewise.
27430         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27431         * lib/mbrtowc.c (mbrtowc): Likewise.
27432         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27433         * lib/strerror_r.c: Likewise.
27434         * lib/unistr/u8-strnlen.c: Likewise.
27435         * lib/vasnprintf.c (decimal_point_char): Likewise.
27436         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27437         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27438         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27439         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27440         * tests/test-sigaction.c (handler, main): Likewise.
27441         * lib/freading.h: Treat uClibc like a non-glibc platform.
27442         * lib/freading.c: Likewise.
27443         * lib/gettext.h: Likewise.
27444         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27445         Likewise.
27446         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27447         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27448         * lib/propername.c (proper_name_utf8): Likewise.
27449         * lib/spawn.in.h: Likewise.
27450         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27451         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27452         mem_cd_iconveh_internal): Likewise.
27453         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27454         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27455         strstr, strcasestr): Likewise.
27456         * lib/unicodeio.c (unicode_to_mb): Likewise.
27457         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27458         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27459         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27460         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27461         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27462         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27463         * lib/unistr/u8-stpncpy.c: Likewise.
27464         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27465         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27466         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27467         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27468         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27469         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27473         Likewise.
27474         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27475         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27479         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27480         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27481         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27482         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27483         * tests/test-striconveha.c (main): Likewise.
27484         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27485         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27486         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27487         * doc/posix-functions/getline.texi: Likewise.
27488         Reported by Mike Frysinger <vapier@gentoo.org>.
27489
27490 2010-11-20  Bruno Haible  <bruno@clisp.org>
27491
27492         nproc: Fix condition.
27493         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27494         HAVE_PTHREAD_AFFINITY_NP.
27495
27496 2010-11-20  Bruno Haible  <bruno@clisp.org>
27497
27498         Fix a comment.
27499         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27500
27501 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27502
27503         ftoastr: don't assume snprintf
27504         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27505         Implement a subset of snprintf here, by using sprintf safely.
27506         * modules/ftoastr (Depends-on): Remove snprintf.
27507
27508 2010-11-19  Jim Meyering  <meyering@redhat.com>
27509
27510         test-rename.h: fix compilation failure
27511         * tests/test-rename.h (test_rename): Add omitted "}".
27512
27513 2010-11-17  Jim Meyering  <meyering@redhat.com>
27514
27515         maint.mk: add a URL discussing the no-@acronym policy
27516         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27517
27518 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27519
27520         ftoastr: depend on snprintf, improve comments
27521         * lib/ftoastr.c: Also mention Loitsch's draft.
27522         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27523         needed in the current implementation, but it might simplify
27524         speeding up the code later.
27525         * modules/ftoastr: Depend on snprintf; this improves portability.
27526         Suggested by Bruno Haible in the same email.
27527
27528         ftoastr: port to hosts lacking strtof and strtold
27529         Problem reported by Bruno Haible in
27530         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27531         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27532         environment and strtold (and presumably strtof) are not available.
27533         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27534         (configure.ac): Require gl_C99_STRTOLD.
27535
27536 2010-11-18  Bruno Haible  <bruno@clisp.org>
27537
27538         c-strtold: Avoid link error on AIX 7.
27539         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27540         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27541         (gl_C_STRTOLD): Test whether strtold_l exists.
27542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27543
27544 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27545
27546         intprops: new macro INT_BITS_STRLEN_BOUND
27547         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27548         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27549         not exposed.  Also, it uses a slightly tighter bound than before;
27550         though this makes no practical difference, we might as well be as
27551         tight as we easily can.
27552
27553         ftoastr: new module, for lossless conversion of floats to short strings
27554         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27555         * modules/ftoastr: New files.
27556
27557 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27558
27559         bootstrap: port to Solaris sed
27560         * build-aux/bootstrap (get_version): Port to Solaris sed.
27561         See Ralf Wildenhues's note in
27562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27563
27564 2010-11-14  Jim Meyering  <meyering@redhat.com>
27565
27566         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27567         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27568         and move definition closer to sole use.
27569
27570 2010-11-13  Jim Meyering  <meyering@redhat.com>
27571
27572         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27573         Now we require at least autoconf-2.59, which means the work-around
27574         is no longer needed.
27575         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27576         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27578         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27579         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27580
27581 2010-11-13  Bruno Haible  <bruno@clisp.org>
27582
27583         rename, renameat: Avoid test failures at NFS mounted locations.
27584         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27585         functions.
27586         (test_rename): Use assert_nonexistent.
27587         * tests/test-rename.c: Include <dirent.h>.
27588         * tests/test-renameat.c: Likewise.
27589         Reported by Gary V. Vaughan <gary@gnu.org>.
27590
27591         rename, renameat: Document Linux bug with NFS
27592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27593         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27594         * doc/posix-functions/renameat.texi: Likewise.
27595         Suggested by Eric Blake.
27596
27597 2010-11-13  Bruno Haible  <bruno@clisp.org>
27598
27599         rename test: Add comments.
27600         * tests/test-rename.h (test_rename): Add structure and comments.
27601
27602 2010-11-13  Eric Blake  <eblake@redhat.com>
27603
27604         maintainer-makefile: cover a few more files
27605         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27606         scripts generated within C files, for libvirt.
27607
27608 2010-11-13  Bruno Haible  <bruno@clisp.org>
27609
27610         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27611         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27612         character, return the number of bytes that belong together, not always
27613         1.
27614         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27615         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27616         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27617         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27618         number of bytes of an invalid character.
27619         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27620         (main): Invoke it.
27621         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27622         results.
27623         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27624         malformed byte sequences.
27625         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27626         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27627         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27628         Reported by Ben Pfaff and Paolo Bonzini.
27629
27630 2010-11-13  Bruno Haible  <bruno@clisp.org>
27631
27632         openat: Work around glibc bug with fchownat() and empty file names.
27633         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27634         (gl_FUNC_FCHOWNAT): Invoke it.
27635         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27636         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27637         Reported by Gary V. Vaughan <gary@gnu.org>.
27638
27639 2010-11-13  Bruno Haible  <bruno@clisp.org>
27640
27641         openat: Ensure autoconf macro ordering.
27642         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27643         gl_USE_SYSTEM_EXTENSIONS.
27644         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27645
27646 2010-11-13  Bruno Haible  <bruno@clisp.org>
27647
27648         Update comments.
27649         * lib/unistr/u8-check.c: Update file name in comments.
27650         * lib/unistr/u8-mblen.c: Likewise.
27651         * lib/unistr/u8-prev.c: Likewise.
27652         * lib/unistr/u8-strmblen.c: Likewise.
27653         * lib/unistr/u8-strmbtouc.c: Likewise.
27654
27655 2010-11-13  Jim Meyering  <meyering@redhat.com>
27656
27657         tests: avoid test failure on Solaris 10 due to lack of PATH export
27658         * tests/test-update-copyright.sh: Don't forget to export PATH.
27659
27660         init.sh: ensure that IFS is defined, just in case...
27661         * tests/init.sh (setup_): Ensure that IFS is defined,
27662         so that saving and restoring it works as expected.  This
27663         appears to be useful at least for an old version of dash
27664         from a long time ago (RH 6).  See here for details:
27665         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27666
27667         maint.mk: tighten "test a == b" check
27668         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27669         test to files that contain something like #!/bin/sh.
27670         Without this, coreutils would get two false positives in
27671         the comments of C source files.
27672
27673 2010-11-12  Eric Blake  <eblake@redhat.com>
27674
27675         bootstrap: fix typo in previous attempt
27676         * build-aux/bootstrap (buildreq): Correct the grouping.
27677         Reported by Paul Eggert.
27678
27679         maintainer-makefile: prohibit test x == x
27680         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27681         Based on a report by Matthias Bolte.
27682
27683         bootstrap: allow FreeBSD gzip
27684         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27685         which has no '.' and goes to stderr.
27686         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27687         Reported by Matthias Bolte.
27688
27689         maintainer-makefile: check for i18n setup
27690         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27691         will likely work.
27692
27693 2010-11-12  Bruno Haible  <bruno@clisp.org>
27694
27695         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27696         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27697         * lib/nanosleep.c (nanosleep): Likewise.
27698
27699 2010-11-11  Bruno Haible  <bruno@clisp.org>
27700
27701         fcntl-h: Fix for use of C++ on glibc systems.
27702         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27703         also on glibc systems in C++ mode.
27704         Reported by Gary V. Vaughan <gary@gnu.org>.
27705
27706 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27707
27708         mknod: avoid false failure with dash
27709         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27710
27711 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27712
27713         unlink: Fix "is it should" typo in diagnostic.
27714         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27716
27717 2010-11-11  Bruno Haible  <bruno@clisp.org>
27718
27719         Tests for module 'strerror_r-posix'.
27720         * modules/strerror_r-posix-tests: New file.
27721         * tests/test-strerror_r.c: New file.
27722         * tests/test-string-c++.cc: Check the signature of strerror_r.
27723
27724         New module 'strerror_r-posix'.
27725         * lib/string.in.h (strerror_r): New declaration.
27726         * lib/strerror_r.c: New file.
27727         * m4/strerror_r.m4: New file.
27728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27729         of strerror_r.
27730         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27731         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27732         * modules/strerror_r-posix: New file.
27733         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27734         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27735         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27736         portability problems.
27737
27738 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27739
27740         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27741         line is also considered for output. Quoted function name in shell
27742         command, so temporary files for functions like MyClass::operator()
27743         are removed correctly without errors.
27744
27745 2010-11-09  Bruno Haible  <bruno@clisp.org>
27746
27747         * doc/posix-functions/strerror.texi: List more failing platforms.
27748
27749         * doc/posix-functions/strerror.texi: Add a comment.
27750
27751 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27752
27753         fdopendir: fix bug on MacOS X when low on file descriptors
27754
27755         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27756         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27757         All callers changed.
27758         (fdopendir): Invoke save_cwd at the top level, not after using
27759         multiple dup() calls to use up file descriptors.  Then retry
27760         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27761         less than the maximum number of open file descriptors, because
27762         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27763         on Mac OS X 10.6.4 for tar 1.24
27764         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27765         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27766         and for tar 1.25
27767         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27768
27769 2010-11-07  Bruno Haible  <bruno@clisp.org>
27770
27771         vasnprintf: Support I flag on glibc systems.
27772         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27773         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27774         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27775         snprintf function.
27776         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27777         glibc systems.
27778         * tests/test-vasnprintf-posix3.c: New file.
27779         * modules/vasnprintf-posix-tests (Files): Add it.
27780         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27781
27782 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27783
27784         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27785         * MODULES.html.sh: For compiler warnings, use name
27786         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27787
27788 2010-11-05  Eric Blake  <eblake@redhat.com>
27789
27790         ceil, floor: avoid spurious failure with icc
27791         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27792         [denormals-as-zero] when optimizing without -mieee-fp option.
27793         * tests/test-floorf2.c (floorf_reference): Likewise.
27794         * tests/test-ceilf1.c (dummy): New function.
27795         (main): Use it to outsmart icc's optimization.
27796         * tests/test-floorf1.c (dummy, main): Likewise.
27797
27798         tests: require working signbit
27799         * modules/ceilf-tests (Depends-on): Add signbit.
27800         * modules/ceill-tests (Depends-on): Likewise.
27801         * modules/floorf-tests (Depends-on): Likewise.
27802         * modules/floorl-tests (Depends-on): Likewise.
27803         * modules/round-tests (Depends-on): Likewise.
27804         * modules/roundf-tests (Depends-on): Likewise.
27805         * modules/roundl-tests (Depends-on): Likewise.
27806         * modules/trunc-tests (Depends-on): Likewise.
27807         * modules/truncf-tests (Depends-on): Likewise.
27808         * modules/truncl-tests (Depends-on): Likewise.
27809
27810         strtod: work around icc bug
27811         * lib/strtod.c (minus_zero): Define to working value.
27812         (strtod): Use it to avoid icc bug.
27813
27814         copysign: enhance tests
27815         * modules/copysign-tests (Files): Add minus-zero.h.
27816         * tests/test-copysign.c (main): Also test zeros.
27817
27818 2010-11-04  Eric Blake  <eblake@redhat.com>
27819
27820         ceil, floor, round, trunc: enhance tests of -0
27821         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27822         * tests/test-ceill.c (main): Likewise.
27823         * tests/test-floorf1.c (main): Likewise.
27824         * tests/test-floorl.c (main): Likewise.
27825         * tests/test-round1.c (main): Likewise.
27826         * tests/test-roundf1.c (main): Likewise.
27827         * tests/test-roundl.c (main): Likewise.
27828         * tests/test-trunc1.c (main): Likewise.
27829         * tests/test-truncf1.c (main): Likewise.
27830         * tests/test-truncl.c (main): Likewise.
27831
27832 2010-11-04  Eric Blake  <eblake@redhat.com>
27833
27834         frexp, tests: work around ICC bug with -zero
27835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27836         works with more compilers.
27837         * tests/minus-zero.h: New file.
27838         * modules/ceilf-tests (Files): Include it.
27839         * modules/ceill-tests (Files): Likewise.
27840         * modules/floorf-tests (Files): Likewise.
27841         * modules/floorl-tests (Files): Likewise.
27842         * modules/frexp-nolibm-tests (Files): Likewise.
27843         * modules/frexp-tests (Files): Likewise.
27844         * modules/frexpl-nolibm-tests (Files): Likewise.
27845         * modules/frexpl-tests (Files): Likewise.
27846         * modules/isnan-tests (Files): Likewise.
27847         * modules/isnand-nolibm-tests (Files): Likewise.
27848         * modules/isnand-tests (Files): Likewise.
27849         * modules/isnanf-nolibm-tests (Files): Likewise.
27850         * modules/isnanf-tests (Files): Likewise.
27851         * modules/isnanl-nolibm-tests (Files): Likewise.
27852         * modules/isnanl-tests (Files): Likewise.
27853         * modules/round-tests (Files): Likewise.
27854         * modules/roundf-tests (Files): Likewise.
27855         * modules/roundl-tests (Files): Likewise.
27856         * modules/ldexpl-tests (Files): Likewise.
27857         * modules/signbit-tests (Files): Likewise.
27858         * modules/snprintf-posix-tests (Files): Likewise.
27859         * modules/sprintf-posix-tests (Files): Likewise.
27860         * modules/strtod-tests (Files): Likewise.
27861         * modules/trunc-tests (Files): Likewise.
27862         * modules/truncf-tests (Files): Likewise.
27863         * modules/truncl-tests (Files): Likewise.
27864         * modules/vsnprintf-posix-tests (Files): Likewise.
27865         * modules/vsprintf-posix-tests (Files): Likewise.
27866         * modules/vasnprintf-posix-tests (Files): Likewise.
27867         * modules/vasprintf-posix-tests (Files): Likewise.
27868         * tests/test-ceilf1.c (main): Use it.
27869         * tests/test-ceill.c (main): Likewise.
27870         * tests/test-floorf1.c (main): Likewise.
27871         * tests/test-floorl.c (main): Likewise.
27872         * tests/test-frexp.c (main): Likewise.
27873         * tests/test-frexpl.c (main): Likewise.
27874         * tests/test-isnan.c (main): Likewise.
27875         * tests/test-isnand.h (main): Likewise.
27876         * tests/test-isnanf.h (main): Likewise.
27877         * tests/test-isnanl.h (main): Likewise.
27878         * tests/test-ldexpl.c (main): Likewise.
27879         * tests/test-round.c (main): Likewise.
27880         * tests/test-roundf.c (main): Likewise.
27881         * tests/test-roundl.c (main): Likewise.
27882         * tests/test-signbit.c (test_signbitf, test_signbitd)
27883         (test_signbitl): Likewise.
27884         * tests/test-snprintf-posix.h (test_function): Likewise.
27885         * tests/test-sprintf-posix.h (test_function): Likewise.
27886         * tests/test-strtod.c (main): Likewise.
27887         * tests/test-trunc1.c (main): Likewise.
27888         * tests/test-truncf1.c (main): Likewise.
27889         * tests/test-truncl.c (main): Likewise.
27890
27891         isnanl: work around icc bug
27892         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27893
27894 2010-11-03  Eric Blake  <eblake@redhat.com>
27895
27896         tests: fix compiler warnings
27897         * tests/test-getopt.h (test_getopt): Fix condition.
27898         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27899         * tests/test-pipe2.c (main): Likewise.
27900         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27901
27902         utimens: fix broken m4 test
27903         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27904
27905 2010-10-28  Bruno Haible  <bruno@clisp.org>
27906
27907         posix_spawn*, getdtablesize: Relax license.
27908         * modules/posix_spawn (License): Change to LGPLv2+.
27909         * modules/posix_spawnp (License): Likewise.
27910         * modules/posix_spawn-internal (License): Likewise.
27911         * modules/posix_spawnattr_init (License): Likewise.
27912         * modules/posix_spawnattr_getflags (License): Likewise.
27913         * modules/posix_spawnattr_setflags (License): Likewise.
27914         * modules/posix_spawnattr_getpgroup (License): Likewise.
27915         * modules/posix_spawnattr_setpgroup (License): Likewise.
27916         * modules/posix_spawnattr_getschedparam (License): Likewise.
27917         * modules/posix_spawnattr_setschedparam (License): Likewise.
27918         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27919         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27920         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27921         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27922         * modules/posix_spawnattr_getsigmask (License): Likewise.
27923         * modules/posix_spawnattr_setsigmask (License): Likewise.
27924         * modules/posix_spawnattr_destroy (License): Likewise.
27925         * modules/posix_spawn_file_actions_init (License): Likewise.
27926         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27927         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27928         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27929         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27930         * modules/getdtablesize (License): Likewise.
27931         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27932
27933 2010-10-26  Bruno Haible  <bruno@clisp.org>
27934
27935         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27936         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27937         Cygwin and mingw.
27938         Suggested by Eric Blake.
27939
27940 2010-10-26  Bruno Haible  <bruno@clisp.org>
27941
27942         stdio: Work around compilation error due to renameat() on Solaris 10.
27943         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27944         * lib/renameat.c: Don't include <unistd.h> here.
27945         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27946         Reported by Paul Eggert and Eric Blake.
27947
27948 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27949
27950         renameat: port to Solaris 10, which declares renameat in unistd.h
27951
27952         * lib/renameat.c: Include unistd.h before stdio.h, because
27953         Solaris 10 declares renameat in unistd.h.  Problem encountered
27954         when building GNU tar 1.24 on Solaris 10.
27955
27956 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27957
27958         fdopendir: fix C89 compilation
27959         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27960         compilers.
27961
27962 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27963
27964         inttostr: simplify by removing unnecessary redundancy
27965         * lib/anytostr.c: Don't include verify.h.
27966         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27967         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27968         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27969         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27970         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27971         Likewise.
27972         * modules/inttostr (Depends-on): Remove 'verify'.
27973
27974 2010-10-23  Bruno Haible  <bruno@clisp.org>
27975
27976         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27977         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27978         Reported by Eric Blake.
27979
27980 2010-10-23  Bruno Haible  <bruno@clisp.org>
27981
27982         Tests: Fix LOCALE_JA on MirBSD 10.
27983         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27984         to an UTF-8 locale.
27985         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27986         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27987         Reported by Eric Blake.
27988
27989 2010-10-21  Bruno Haible  <bruno@clisp.org>
27990
27991         nl_langinfo test: Avoid test failure on NetBSD 5.
27992         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27993         Reported by Eric Blake.
27994
27995 2010-10-21  Eric Blake  <eblake@redhat.com>
27996
27997         c-stack: work around libsigsegv 2.8 bug
27998         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27999         overflow on at least PowerPC64.
28000
28001 2010-10-17  Bruno Haible  <bruno@clisp.org>
28002
28003         userspec: Drop redundant file.
28004         * modules/userspec (Files): Remove lib/inttostr.h.
28005
28006 2010-10-17  Bruno Haible  <bruno@clisp.org>
28007
28008         nl_langinfo tests: Silence some warnings.
28009         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28010         Reported by Jim Meyering.
28011
28012 2010-10-17  Bruno Haible  <bruno@clisp.org>
28013
28014         Make use of GCC's attribute __alloc_size__.
28015         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28016         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28017         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28018         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28019         __alloc_size__.
28020         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28021         Suggested by Jim Meyering.
28022
28023 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28024
28025         bootstrap: anchor .gitignore entries.
28026         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28027         with...
28028         (insert_vc_ignore): ... this new function, which prepends `/' to
28029         all .gitignore entries before passing them to
28030         insert_sorted_if_absent.
28031
28032 2010-10-16  Bruno Haible  <bruno@clisp.org>
28033
28034         nextafter: Fix configure check.
28035         * modules/nextafter (configure.ac): Correct expected prototype.
28036
28037 2010-10-16  Bruno Haible  <bruno@clisp.org>
28038
28039         termios: Update documentation.
28040         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28041
28042 2010-10-16  Bruno Haible  <bruno@clisp.org>
28043
28044         tests: Make them compile with TinyCC.
28045         * tests/test-strstr.c (main): Remove parentheses around array
28046         initializer.
28047
28048 2010-10-15  Eric Blake  <eblake@redhat.com>
28049
28050         ignore-value: make header idempotent
28051         * lib/ignore-value.h: Add double-inclusion guards.
28052         Reported by Stefan Berger.
28053
28054 2010-10-15  Jim Meyering  <meyering@redhat.com>
28055
28056         GNUmakefile: handle "stable" target, not "major"
28057         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28058         lists in maint.mk and announce-gen.  Without this, "make stable"
28059         would fail to ensure that $(VERSION) is up to date.
28060
28061 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28062
28063         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28064         & co.
28065
28066 2010-10-14  Bruno Haible  <bruno@clisp.org>
28067
28068         vasnprintf: Don't set errno to 0.
28069         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28070         block that sets it to 0.
28071         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28072
28073 2010-10-14  Bruno Haible  <bruno@clisp.org>
28074
28075         socketlib: Fix.
28076         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28077         gl_PREREQ_SYS_H_WINSOCK2.
28078         Reported by Ian Beckwith <ianb@erislabs.net>.
28079
28080 2010-10-13  Jim Meyering  <meyering@redhat.com>
28081
28082         test-select-stdin.c: avoid warn_unused_result warnings
28083         * tests/test-select-stdin.c: Include "macros.h".
28084         ASSERT that read and fflush succeed.
28085
28086 2010-10-13  Jim Meyering  <meyering@redhat.com>
28087
28088         git-version-gen: do require git-VC'd files in cwd
28089         * build-aux/git-version-gen: Reject a git version string
28090         if there are no commits associated with the current directory.
28091         This avoids an unlikely false-positive (unrelated dir whose parent
28092         repository also contains a tag matching v*), as pointed out
28093         by Giuseppe Scrivano in
28094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28095
28096 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28097
28098         argv-iter: omit nonconforming declaration
28099         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28100         enum arg_iter_err declaration, which doesn't conform to C99.
28101         Solaris 10 cc warns about this.
28102
28103 2010-10-13  Eric Blake  <eblake@redhat.com>
28104
28105         termios: fix compilation on mingw
28106         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28107         (gl_TERMIOS_H): Adjust it on mingw.
28108         * modules/termios (Makefile.am): Substitute new key.
28109         * lib/termios.in.h (includes): Make include_next conditional.
28110         * doc/posix-headers/termios.texi (termios.h): Update
28111         documentation.
28112         Reported by Daniel P. Berrange.
28113
28114 2010-10-13  Jim Meyering  <meyering@redhat.com>
28115
28116         git-version-gen: don't require that .git/ be in the current dir
28117         * build-aux/git-version-gen: Adjust this script so that it works
28118         when run from any working directory beneath the top-level .git/-
28119         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28120         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28121
28122         test-select: avoid warn_unused_result warnings
28123         * tests/test-select.c: Include "macros.h".
28124         ASSERT that each call to read, write, and pipe succeeds.
28125         While not technically required, also check each "close".
28126         * modules/select-tests (Files): Add tests/macros.h.
28127
28128         test-symlinkat: remove declaration of unused local
28129         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28130
28131         test-inttostr: avoid shadowing warnings
28132         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28133         and use malloc rather than the stack for the same reason as
28134         mentioned in the comment justifying the other allocation.
28135
28136 2010-10-11  Bruno Haible  <bruno@clisp.org>
28137
28138         stdlib: Allow multiple gnulib generated replacements to coexist.
28139         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28140         Reported by Sam Steingold <sds@gnu.org>.
28141
28142 2010-10-11  Jim Meyering  <meyering@redhat.com>
28143
28144         fix a documentation typo
28145         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28146
28147 2010-10-11  Eric Blake  <eblake@redhat.com>
28148
28149         futimens: work around Solaris 11 bug
28150         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28151         * tests/test-futimens.h (test_futimens): Enhance, rather than
28152         weaken test.
28153         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28154
28155 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28156
28157         Indentation.
28158         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28159         higher-level operators more to the left.
28160
28161 2010-10-11  Jim Meyering  <meyering@redhat.com>
28162
28163         test-futimens: avoid unwarranted test failure on Solaris 5.11
28164         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28165         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28166         because it tries to dereference the NULL name argument.
28167
28168 2010-10-11  Bruno Haible  <bruno@clisp.org>
28169
28170         Indentation.
28171         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28172         indentation.
28173
28174 2010-10-11  Jim Meyering  <meyering@redhat.com>
28175
28176         spawn.in.h: make indentation consistent with parentheses
28177         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28178         Make indentation consistent with parentheses.
28179
28180 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28181
28182         Fix mismatched parens in previous commit
28183         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28184         parens.
28185
28186 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28187
28188         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28189
28190         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28191         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28192         * lib/malloca.c: Include "verify.h".
28193         (verify1): Remove, replacing with a verify call.
28194         * lib/relocwrapper.c (verify1): Likewise.
28195         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28196         Likewise.
28197         * modules/malloca (Depends-on): Add 'verify'.
28198         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28199         * modules/vasnprintf (Depends-on): Add 'verify'.
28200         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28201         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28202         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28203         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28204         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28205         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28206         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28207
28208         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28209
28210         Formerly the style was sometimes 2*X - 1, because the C standard
28211         was wrongly thought to disallow ?: in integral constant expressions.
28212         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28213         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28214         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28215         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28216         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28217         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28218         verify that time_t cannot be floating.
28219
28220 2010-10-08  Eric Blake  <eblake@redhat.com>
28221
28222         time: enforce recent POSIX ruling that time_t is integral
28223         * lib/time.in.h (__time_t_must_be_integral): Detect any
28224         problematic systems, allowing the rest of gnulib to assume POSIX.
28225
28226 2010-10-08  Jim Meyering  <meyering@redhat.com>
28227
28228         fdopendir: fix a bug on systems lacking openat and /proc support
28229         OpenBSD 4.7 is one such system.  The most noticeable effect was
28230         failure of any application making nontrivial use of fts: rm, du,
28231         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28232           ./rm: traversal failed: `a': Bad file descriptor
28233         Debugging that, you see that even though FD 6 was closed just
28234         prior to the opendir call in fd_clone_opendir, its resulting
28235         dir->dd_fd was 8, rather than the expected value of 6:
28236
28237         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28238         93                close (fd);
28239         (gdb) n
28240         94                dir = fd_clone_opendir (dupfd);
28241         (gdb) n
28242         95                saved_errno = errno;
28243         (gdb) p dir->dd_fd
28244         $11 = 8
28245
28246         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28247         The problem is that on OpenBSD, fd_clone_opendir has to resort
28248         to using the old-style save/restore CWD mechanism, due to its
28249         lack of openat/proc support, and *that* would steal the FD (6)
28250         that opendir was supposed to use.
28251
28252         The fix is to squirrel away the desired FD so that save_cwd uses a
28253         different one, and then free the dest FD right before calling opendir.
28254         That guarantees opendir will use the required file descriptor.
28255
28256         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28257
28258 2010-10-08  Bruno Haible  <bruno@clisp.org>
28259
28260         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28261         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28262
28263 2010-10-08  Bruno Haible  <bruno@clisp.org>
28264
28265         nanosleep: Make replacement POSIX compliant.
28266         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28267         is out of range.
28268         Reported by Jim Meyering.
28269
28270 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28271
28272         bootstrap: add hook for altering gnulib.mk, for Bison
28273         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28274         the Bison bootstrapping process can rewrite file names and variables
28275         in this file before later parts of 'bootstrap' use the file.
28276         Bison wants to include lib/gnulib.mk from the top-level makefile,
28277         so it needs the file names in this file to be relative to the top
28278         level, not relative to lib; plus it needs variable names to be
28279         rewritten.
28280         (slurp): Use the new function.
28281
28282         bootstrap: reformat for readability
28283         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28284
28285 2010-10-08  Eric Blake  <eblake@redhat.com>
28286
28287         docs: update cygwin progress
28288         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28289         1.7.7.
28290         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28291         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28292         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28293         * doc/posix-functions/carg.texi (carg): Likewise.
28294         * doc/posix-functions/cargf.texi (cargf): Likewise.
28295         * doc/posix-functions/casin.texi (casin): Likewise.
28296         * doc/posix-functions/casinf.texi (casinf): Likewise.
28297         * doc/posix-functions/casinh.texi (casinh): Likewise.
28298         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28299         * doc/posix-functions/catan.texi (catan): Likewise.
28300         * doc/posix-functions/catanf.texi (catanf): Likewise.
28301         * doc/posix-functions/catanh.texi (catanh): Likewise.
28302         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28303         * doc/posix-functions/ccos.texi (ccos): Likewise.
28304         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28305         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28306         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28307         * doc/posix-functions/cexp.texi (cexp): Likewise.
28308         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28309         * doc/posix-functions/cimag.texi (cimag): Likewise.
28310         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28311         * doc/posix-functions/clog.texi (clog): Likewise.
28312         * doc/posix-functions/clogf.texi (clogf): Likewise.
28313         * doc/posix-functions/conj.texi (conj): Likewise.
28314         * doc/posix-functions/conjf.texi (conjf): Likewise.
28315         * doc/posix-functions/cpow.texi (cpow): Likewise.
28316         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28317         * doc/posix-functions/cproj.texi (cproj): Likewise.
28318         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28319         * doc/posix-functions/creal.texi (creal): Likewise.
28320         * doc/posix-functions/crealf.texi (crealf): Likewise.
28321         * doc/posix-functions/csin.texi (csin): Likewise.
28322         * doc/posix-functions/csinf.texi (csinf): Likewise.
28323         * doc/posix-functions/csinh.texi (csinh): Likewise.
28324         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28325         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28326         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28327         * doc/posix-functions/ctan.texi (ctan): Likewise.
28328         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28329         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28330         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28331         * doc/posix-headers/complex.texi (complex.h): Likewise.
28332
28333 2010-10-07  Jim Meyering  <meyering@redhat.com>
28334
28335         parse-datetime: avoid compilation failure on OpenBSD 4.7
28336         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28337         This works around a compilation failure on OpenBSD 4.7:
28338         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28339
28340 2010-10-07  Eric Blake  <eblake@redhat.com>
28341
28342         docs: update cygwin progress
28343         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28344         1.7.6.
28345         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28346         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28347         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28348         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28349         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28350         Likewise.
28351         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28352         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28353         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28354         Likewise.
28355         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28356         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28357         Likewise.
28358         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28359         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28360         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28361         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28362         Likewise.
28363         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28364         Likewise.
28365         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28366
28367         docs: update parse-datetime history
28368         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28369         documentation of this function's history and alternatives.
28370
28371         cygwin: use more robust version check
28372         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28373         exclude an eventual cygwin 1.9.1.
28374         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28376         (gl_FUNC_STRCASESTR): Likewise.
28377         Reported by Bruno Haible.
28378
28379 2010-10-06  Bruno Haible  <bruno@clisp.org>
28380
28381         string, sys_select: Avoid #including large headers unless necessary.
28382         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28383         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28384         OSF/1, BeOS, Haiku.
28385         Reported by Jim Meyering.
28386
28387 2010-10-05  Eric Blake  <eblake@redhat.com>
28388
28389         memmem, strstr, strcasestr: fix bug with long periodic needle
28390         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28391         periodic needle having false positive.
28392         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28393         and cygwin 1.7.7.
28394         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28396         (gl_FUNC_STRCASESTR): Likewise.
28397         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28398         * tests/test-memmem.c (main): Expose the bug.
28399         * tests/test-strcasestr.c (main): Likewise.
28400         * tests/test-strstr.c (main): Likewise.
28401         * tests/test-c-strcasestr.c (main): Likewise.
28402         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28403         * doc/posix-functions/strstr.texi (strstr): Likewise.
28404         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28405         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28406
28407 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28408
28409         parse-datetime: do some more renaming
28410         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28411         parse_datetime, not get_date.  Mention the renaming.
28412         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28413         in comments.
28414         * m4/bison.m4: Likewise.
28415
28416 2010-10-05  Eric Blake  <eblake@redhat.com>
28417
28418         parse-datetime: better name than get_date
28419         * NEWS: Reword the deprecation notice.
28420         * modules/get_date: Rename to modules/parse-datetime.
28421         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28422         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28423         * lib/get_date.y: Rename to lib/parse-datetime.y.
28424         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28425         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28426         * doc/getdate.texi: Provide fallback wrapper.
28427         * lib/getdate.h: Move guts, and wrap...
28428         * lib/parse-datetime.h: ...new file.
28429         * lib/parse-datetime.y (get_date): Rename...
28430         (parse_datetime): ...to this.
28431         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28432         (gl_PARSE_DATETIME): ...to this.
28433         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28434         documentation.
28435         * modules/getdate (Files): Provide fallback docs and header.
28436         (Notice, Depends-on): Update references.
28437         * tests/test-parse-datetime.c: Likewise.
28438         * DEPENDENCIES: Likewise.
28439         * MODULES.html.sh (Date and time <time.h>): Likewise.
28440         * doc/parse-datetime.texi (Date input formats)
28441         (Authors of parse_datetime): Likewise.
28442         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28443         (Include): Likewise.
28444         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28445         * gnulib-tool: Likewise.
28446         * m4/bison.m4 (gl_BISON): Likewise.
28447         Suggested by Bruno Haible.
28448
28449 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28450
28451         more ports to Solaris tr, which needs [] around ranges
28452         * gnulib-tool: Solaris tr needs [] around ranges.
28453         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28454         * tests/test-pipe-filter-gi1.c (main): Likewise.
28455         * tests/test-pipe-filter-ii1.c (main): Likewise.
28456
28457 2010-10-05  Eric Blake  <eblake@redhat.com>
28458
28459         bootstrap: fix Solaris regression
28460         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28461         around ranges.
28462         Reported by Pádraig Brady.
28463
28464         bootstrap: work with pkg-config
28465         * build-aux/bootstrap (check_versions): Also transliterate - in
28466         prerequisite name.
28467         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28468         prerequisites that were already found, to avoid confusion.
28469         Reported by Justin Clift.
28470
28471         faccessat: remove unused wrappers
28472         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28473         presence of these wrappers dragged in -lgen on Solaris.
28474         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28475
28476 2010-10-05  Jim Meyering  <meyering@redhat.com>
28477
28478         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28479         * Makefile (sc_pragma_columns): New syntax-check rule.
28480
28481 2010-10-04  Bruno Haible  <bruno@clisp.org>
28482
28483         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28484         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28485         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28486         Reported by Bruce Korb and Eric Blake.
28487
28488 2010-10-04  Bruno Haible  <bruno@clisp.org>
28489
28490         threadlib: Make option --with-libpth-prefix work.
28491         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28492         use $LIBPTH, not just -lpth.
28493
28494 2010-10-04  Bruno Haible  <bruno@clisp.org>
28495
28496         Avoid line length limitation from HP NonStop system header files.
28497         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28498         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28499         * lib/ctype.in.h: Likewise.
28500         * lib/dirent.in.h: Likewise.
28501         * lib/errno.in.h: Likewise.
28502         * lib/fcntl.in.h: Likewise.
28503         * lib/float.in.h: Likewise.
28504         * lib/getopt.in.h: Likewise.
28505         * lib/iconv.in.h: Likewise.
28506         * lib/inttypes.in.h: Likewise.
28507         * lib/langinfo.in.h: Likewise.
28508         * lib/locale.in.h: Likewise.
28509         * lib/math.in.h: Likewise.
28510         * lib/netdb.in.h: Likewise.
28511         * lib/netinet_in.in.h: Likewise.
28512         * lib/poll.in.h: Likewise.
28513         * lib/pthread.in.h: Likewise.
28514         * lib/pty.in.h: Likewise.
28515         * lib/sched.in.h: Likewise.
28516         * lib/se-selinux.in.h: Likewise.
28517         * lib/search.in.h: Likewise.
28518         * lib/signal.in.h: Likewise.
28519         * lib/spawn.in.h: Likewise.
28520         * lib/stdarg.in.h: Likewise.
28521         * lib/stddef.in.h: Likewise.
28522         * lib/stdint.in.h: Likewise.
28523         * lib/stdio.in.h: Likewise.
28524         * lib/stdlib.in.h: Likewise.
28525         * lib/string.in.h: Likewise.
28526         * lib/strings.in.h: Likewise.
28527         * lib/sys_file.in.h: Likewise.
28528         * lib/sys_ioctl.in.h: Likewise.
28529         * lib/sys_select.in.h: Likewise.
28530         * lib/sys_socket.in.h: Likewise.
28531         * lib/sys_stat.in.h: Likewise.
28532         * lib/sys_time.in.h: Likewise.
28533         * lib/sys_times.in.h: Likewise.
28534         * lib/sys_utsname.in.h: Likewise.
28535         * lib/sys_wait.in.h: Likewise.
28536         * lib/sysexits.in.h: Likewise.
28537         * lib/termios.in.h: Likewise.
28538         * lib/time.in.h: Likewise.
28539         * lib/unistd.in.h: Likewise.
28540         * lib/wchar.in.h: Likewise.
28541         * lib/wctype.in.h: Likewise.
28542         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28543         * modules/ctype (Makefile.am): Likewise.
28544         * modules/dirent (Makefile.am): Likewise.
28545         * modules/errno (Makefile.am): Likewise.
28546         * modules/fcntl-h (Makefile.am): Likewise.
28547         * modules/float (Makefile.am): Likewise.
28548         * modules/getopt-posix (Makefile.am): Likewise.
28549         * modules/iconv-h (Makefile.am): Likewise.
28550         * modules/inttypes (Makefile.am): Likewise.
28551         * modules/langinfo (Makefile.am): Likewise.
28552         * modules/locale (Makefile.am): Likewise.
28553         * modules/math (Makefile.am): Likewise.
28554         * modules/netdb (Makefile.am): Likewise.
28555         * modules/netinet_in (Makefile.am): Likewise.
28556         * modules/poll-h (Makefile.am): Likewise.
28557         * modules/pthread (Makefile.am): Likewise.
28558         * modules/pty (Makefile.am): Likewise.
28559         * modules/sched (Makefile.am): Likewise.
28560         * modules/search (Makefile.am): Likewise.
28561         * modules/selinux-h (Makefile.am): Likewise.
28562         * modules/signal (Makefile.am): Likewise.
28563         * modules/spawn (Makefile.am): Likewise.
28564         * modules/stdarg (Makefile.am): Likewise.
28565         * modules/stddef (Makefile.am): Likewise.
28566         * modules/stdint (Makefile.am): Likewise.
28567         * modules/stdio (Makefile.am): Likewise.
28568         * modules/stdlib (Makefile.am): Likewise.
28569         * modules/string (Makefile.am): Likewise.
28570         * modules/strings (Makefile.am): Likewise.
28571         * modules/sys_file (Makefile.am): Likewise.
28572         * modules/sys_ioctl (Makefile.am): Likewise.
28573         * modules/sys_select (Makefile.am): Likewise.
28574         * modules/sys_socket (Makefile.am): Likewise.
28575         * modules/sys_stat (Makefile.am): Likewise.
28576         * modules/sys_time (Makefile.am): Likewise.
28577         * modules/sys_times (Makefile.am): Likewise.
28578         * modules/sys_utsname (Makefile.am): Likewise.
28579         * modules/sys_wait (Makefile.am): Likewise.
28580         * modules/sysexits (Makefile.am): Likewise.
28581         * modules/termios (Makefile.am): Likewise.
28582         * modules/time (Makefile.am): Likewise.
28583         * modules/unistd (Makefile.am): Likewise.
28584         * modules/wchar (Makefile.am): Likewise.
28585         * modules/wctype (Makefile.am): Likewise.
28586
28587 2010-10-04  Bruno Haible  <bruno@clisp.org>
28588
28589         read-file tests: Avoid a test failure on NonStop Kernel.
28590         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28591         a regular file.
28592         Reported by Joachim Schmitz <schmitz@hp.com>.
28593
28594 2010-10-03  Bruno Haible  <bruno@clisp.org>
28595
28596         gnulib-tool: Fixes for --create-testdir with --libtool.
28597         * gnulib-tool (func_get_automake_snippet): Don't augment
28598         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28599         an executable.
28600         (func_create_testdir): Handle module 'alloca' like func_import.
28601         Reported by Bruce Korb <bruce.korb@gmail.com>.
28602
28603 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28604
28605         Avoid some lines longer than 80 characters.
28606         * lib/stdint.in.h: Break long comment lines.
28607         * lib/math.in.h: Likewise.
28608         (_GL_NUM_UINT_WORDS): New macro, for readability.
28609         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28610         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28611         * lib/stdlib.in.h: Likewise.
28612         * lib/spawn.in.h: Likewise.
28613         * lib/sys_socket.in.h: Update an URL.
28614         * lib/sys_stat.in.h: Break long line.
28615
28616 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28617
28618         Improve pmccabe2html.
28619         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28620         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28621         when the sources change. Remove the line in the HTML about "Used
28622         ranges" (which implied that there might be other unused ranges),
28623         rename "Resume" to "Summary" (easier to understand for more users).
28624         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28625         styles, and some unnecessary blank lines.
28626
28627 2010-10-03  Bruno Haible  <bruno@clisp.org>
28628             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28629
28630         acl: Add support for ACLs on NonStop Kernel.
28631         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28632         Check whether the function aclsort() exists.
28633         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28634         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28635         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28636         (acl_nontrivial [HAVE_ACLSORT]: New function.
28637         (file_has_acl): Implement for NonStop Kernel.
28638         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28639         (qset_acl): Implement for NonStop Kernel.
28640         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28641         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28642         (main): Implement for NonStop Kernel.
28643         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28644         Kernel. Handle this flavor.
28645         * tests/test-set-mode-acl.sh: Likewise.
28646         * tests/test-copy-acl.sh: Likewise.
28647         * tests/test-copy-file.sh: Likewise.
28648
28649 2010-10-03  Bruno Haible  <bruno@clisp.org>
28650
28651         Info about ACLs on NonStop Kernel.
28652         * doc/acl-resources.txt: Add info about NonStop Kernel.
28653         References by Joachim Schmitz <schmitz@hp.com>.
28654
28655 2010-10-02  Bruno Haible  <bruno@clisp.org>
28656
28657         Define missing EDQUOT on NonStop Kernel.
28658         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28659         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28660         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28661         missing.
28662         * doc/posix-headers/errno.texi: Mention the NSK bug.
28663         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28664         Reported by Joachim Schmitz <schmitz@hp.com>.
28665
28666 2010-10-02  Bruno Haible  <bruno@clisp.org>
28667
28668         Update doc for POSIX:2008.
28669         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28670         Update URL of POSIX specification.
28671
28672 2010-10-02  Bruno Haible  <bruno@clisp.org>
28673
28674         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28675         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28676         from gnulib, not from Automake.
28677
28678 2010-10-02  Bruno Haible  <bruno@clisp.org>
28679
28680         New module 'system-posix'.
28681         * modules/system-posix: New file.
28682         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28683         module is present.
28684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28685         GNULIB_SYSTEM_POSIX.
28686         * modules/stdlib (Depends-on): Remove sys_wait.
28687         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28688         * doc/posix-functions/system.texi: Mention the new module.
28689         * doc/posix-headers/stdlib.texi: Likewise.
28690         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28691         define test_sys_wait_macros to a no-op.
28692         Reported by Sam Steingold <sds@gnu.org>.
28693
28694 2010-09-30  Bruno Haible  <bruno@clisp.org>
28695
28696         More renaming from 'getdate' to 'get_date'.
28697         * doc/get_date.texi: Renamed from doc/getdate.texi.
28698         * modules/get_date (Files): Update.
28699         * MODULES.html.sh (Date and time <time.h>): Update.
28700         * DEPENDENCIES: Update.
28701         * gnulib-tool: Update comment.
28702         * m4/bison.m4 (gl_BISON): Likewise.
28703         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28704
28705 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28706
28707         bootstrap: support ACLOCAL_FLAGS during aclocal
28708         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28709         can add additional -I dir for third-party .m4 files.
28710
28711 2010-09-30  Eric Blake  <eblake@redhat.com>
28712
28713         bootstrap: use glibtoolize on MacOS
28714         * build-aux/bootstrap (check_versions): Convert libtool into
28715         libtoolize.
28716         (tool search): Move libtool check earlier, and look for
28717         glibtoolize for MacOS.
28718         (gnulib_tool_options): Auto-add --libtool when appropriate.
28719         Reported by Justin Clift.
28720
28721         poll: fix typo that broke test on MacOS
28722         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28723         Reported by Justin Clift.
28724
28725         getdate: rename to get_date
28726         Note: getdate.h is not renamed, to minimize client impact.
28727         * modules/getdate: Mark obsolete.  Move old contents...
28728         * modules/get_date: ...to new module name.
28729         * modules/getdate-tests: Move...
28730         * modules/get_date-tests: ...here.
28731         * m4/getdate.m4: Move...
28732         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28733         * lib/getdate.y: Move...
28734         * lib/get_date.y: ...here.
28735         * tests/test-getdate.c: Move...
28736         * tests/test-get_date.c: ...here.
28737         * doc/posix-functions/getdate.texi (getdate): Update name.
28738         * NEWS: Mention the change.
28739
28740 2010-09-29  Bruno Haible  <bruno@clisp.org>
28741
28742         Separate the module 'waitpid' from the module 'sys_wait'.
28743         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28744         present.
28745         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28746         gl_MODULE_INDICATOR_FOR_TESTS.
28747         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28748         * modules/sys_wait (Depends-on): Remove waitpid.
28749         (Makefile.am): Substitute GNULIB_WAITPID.
28750         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28751         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28752         signature only if the 'waitpid' module is present.
28753         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28754         * NEWS: Mention the change.
28755         * modules/grantpt (Depends-on): Add waitpid.
28756         * modules/wait-process (Depends-on): Likewise.
28757
28758 2010-09-29  Bruno Haible  <bruno@clisp.org>
28759
28760         More tests for module 'sys_wait'.
28761         * modules/sys_wait-c++-tests: New file.
28762         * tests/test-sys_wait-c++.cc: New file.
28763         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28764         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28765
28766 2010-09-29  Bruno Haible  <bruno@clisp.org>
28767
28768         New module 'waitpid'.
28769         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28770         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28771         Don't include <process.h>.
28772         (waitpid): Declare only, using modern idiom.
28773         * m4/waitpid.m4: New file.
28774         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28775         * modules/waitpid: New file.
28776         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28777         (Makefile.am): Update.
28778         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28779
28780 2010-09-28  Bruno Haible  <bruno@clisp.org>
28781
28782         poll: Assume ANSI C.
28783         * lib/poll.c (poll): Use an ANSI C declaration.
28784
28785 2010-09-28  Bruno Haible  <bruno@clisp.org>
28786
28787         poll-h: Create poll.h on all platforms.
28788         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28789         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28790         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28791         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28792         (gl_REPLACE_POLL_H): Don't set POLL_H.
28793         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28794         * modules/poll-h (Depends-on): Add include_next.
28795         (Makefile.am): Create poll.h unconditionally. Substitute also
28796         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28797
28798 2010-09-28  Bruno Haible  <bruno@clisp.org>
28799
28800         Tests for module 'poll-h'.
28801         * modules/poll-h-c++-tests: New file.
28802         * tests/test-poll-h-c++.cc: New file.
28803
28804         Tests for module 'poll-h'.
28805         * modules/poll-h-tests: New file.
28806         * tests/test-poll-h.c: New file.
28807
28808 2010-09-28  Bruno Haible  <bruno@clisp.org>
28809
28810         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28811         * modules/poll-h (Depends-on): Add 'extensions'.
28812
28813 2010-09-28  Bruno Haible  <bruno@clisp.org>
28814
28815         New module 'poll-h'.
28816         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28817         (poll): Use modern idiom.
28818         * modules/poll-h: New file.
28819         * modules/poll (Files): Remove lib/poll.in.h.
28820         (Depends-on): Add poll-h.
28821         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28822         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28823         * m4/poll_h.m4: New file.
28824         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28825         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28826         and invoke gl_REPLACE_POLL_H.
28827         * lib/poll.c: Use common idiom.
28828         * tests/test-poll.c: Likewise.
28829         * doc/posix-headers/poll.texi: Mention the poll-h module.
28830         Suggested by Eric Blake.
28831
28832 2010-09-26  Bruno Haible  <bruno@clisp.org>
28833
28834         sys_wait: Implement WSTOPSIG.
28835         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28836         Reported by Simon Josefsson.
28837
28838 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28839
28840         stdlib, sys_wait: Avoid compilation error on mingw.
28841         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28842
28843 2010-09-26  Bruno Haible  <bruno@clisp.org>
28844
28845         stdlib tests: Avoid code duplication.
28846         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28847         * modules/sys_wait-tests (Files): Likewise.
28848         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28849         * tests/test-stdlib.c: Include test-sys_wait.h.
28850         (main): Invoke test_sys_wait_macros.
28851         * tests/test-sys_wait.c: Include test-sys_wait.h.
28852         (main): Invoke test_sys_wait_macros.
28853
28854 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28855
28856         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28857         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28858         sure Windows sockets are working before calling getaddrinfo.
28859         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28860         * doc/gnulib.texi (Windows sockets): Fix typo.
28861
28862 2010-09-25  Bruno Haible  <bruno@clisp.org>
28863
28864         Tests for module 'regex-quote'.
28865         * modules/regex-quote-tests: New file.
28866         * tests/test-regex-quote.c: New file.
28867
28868         New module 'regex-quote'.
28869         * lib/regex-quote.h: New file.
28870         * lib/regex-quote.c: New file.
28871         * modules/regex-quote: New file.
28872         Suggested by Reuben Thomas <rrt@sc3d.org>.
28873
28874 2010-09-24  Bruno Haible  <bruno@clisp.org>
28875
28876         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28877         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28878
28879 2010-09-23  Bruno Haible  <bruno@clisp.org>
28880
28881         setenv: Relax license.
28882         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28883         Blake.
28884         Requested by Eric Blake.
28885
28886 2010-09-22  Bruno Haible  <bruno@clisp.org>
28887
28888         termios: Relax license.
28889         * modules/termios (License): Change to LGPLv2+.
28890         Requested by Eric Blake.
28891
28892 2010-09-22  Bruno Haible  <bruno@clisp.org>
28893
28894         threadlib: Allow the package to change the default to 'no'.
28895         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28896         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28897         Reported by Paul Eggert.
28898
28899 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28900             Bruno Haible  <bruno@clisp.org>
28901
28902         Fix endless loop in mbmemcasecoll.
28903         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28904         byte.
28905         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28906
28907 2010-09-22  Bruno Haible  <bruno@clisp.org>
28908
28909         Tests for module 'memcoll'.
28910         * modules/memcoll-tests: New file.
28911         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28912
28913         memcoll, xmemcoll: Clarify size vs. length.
28914         * modules/memcoll.c (memcoll0): Clarify specification.
28915         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28916         passed to collate_error.
28917
28918 2010-09-22  Bruno Haible  <bruno@clisp.org>
28919
28920         Tests for module 'memcasecmp'.
28921         * modules/memcasecmp-tests: New file.
28922         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28923
28924 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28925
28926         * lib/pthread.in.h: Add split double-inclusion guard, and include
28927         system <pthread.h> if there is one.  Use @@-style as in other
28928         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28929         pthread.h doesn't.
28930         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28931         (pthread_mutexattr_settype, pthread_mutex_trylock):
28932         New static inline functions, if there's no system <pthread.h>.
28933         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28934         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28935         Approximate with mutexes if the system lacks spinlocks, as in
28936         MacOS.
28937         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28938         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28939         @@-style.  Check for spinlocks separately.
28940         (gl_PTHREAD_DEFAULTS): New macro.
28941         * modules/pthread: Redo to use a more typical style for in.h files.
28942
28943 2010-09-21  Eric Blake  <eblake@redhat.com>
28944
28945         net_if: enhance tests
28946         * tests/test-net_if.c (main): Move signature checks earlier.
28947         Print failures to stderr.
28948         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28949         Document the bug that we do not yet fix.
28950
28951 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28952
28953         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28954         about gnulib, not GSS.
28955
28956 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28957
28958         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28959         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28960         for Emacs.
28961         * build-aux/pmccabe2html: Make Makefile.am example code more
28962         cut-and-paste friendly.
28963
28964 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28965
28966         * tests/test-net_if.c: New file.
28967         * modules/net_if-tests: New file.
28968
28969 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28970
28971         pthread: add pthread_spin_destroy
28972         * lib/pthread.in.h (pthread_spin_destroy): New function.
28973
28974 2010-09-19  Bruno Haible  <bruno@clisp.org>
28975
28976         gnulib-tool: Fix --help output.
28977         * gnulib-tool (func_usage): Fix help message.
28978         Reported by Reuben Thomas <rrt@sc3d.org>.
28979
28980 2010-09-18  Jim Meyering  <meyering@redhat.com>
28981
28982         maint.mk: avoid unexpanded \n in two diagnostics
28983         * top/maint.mk (sc_prohibit_always_true_header_tests):
28984         Don't use a literal \n in a halt=... assignment.  It would not be
28985         expanded, and the two \n bytes would appear in the diagnostic output
28986         rather than the desired newline.  Use halt=$$(printf ... instead.
28987         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28988
28989 2010-09-18  Bruno Haible  <bruno@clisp.org>
28990
28991         netinet_in: Doc tweak.
28992         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28993         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28994
28995 2010-09-18  Jim Meyering  <meyering@redhat.com>
28996
28997         init.sh: correct an outdated comment
28998         * tests/init.sh (create_exe_shims_):  s/function/alias/
28999
29000         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29001         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29002         a file named "*.exe" is removed between the glob expansion and the
29003         processing of that oddly named file.
29004
29005 2010-09-17  Eric Blake  <eblake@redhat.com>
29006
29007         mirbsd: add some more support
29008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29009         in BSD family.
29010         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29011         devices as OpenBSD.
29012         * m4/host-os.m4 (mirbsd): Add MirBSD.
29013
29014         tests: fix unportable assumption on sys/wait.h
29015         * tests/test-sys_wait.c (main): Relax test.
29016         * tests/test-stdlib.c (main): Likewise.
29017
29018         init.sh: accommodate directory with no .exes
29019         * tests/init.sh: Accomodate directory containing only scripts.
29020
29021         tests: avoid compiler warning
29022         * tests/test-stdlib.c (main): Use the variable.
29023
29024         fdutimens, fdutimensat: update signature, again
29025         * lib/utimens.h (gl_futimens): Delete, and move signature...
29026         (fdutimens): ...here.
29027         (fdutimensat): Rearrange signature.
29028         (lutimensat): Rename variable for clarity.
29029         * lib/fdutimensat.c (fdutimensat): Update signature.
29030         * lib/utimens.c (fdutimens): Likewise.
29031         (gl_futimens): Delete.
29032         (utimens, lutimens): Update callers.
29033         * lib/futimens.c (futimens): Likewise.
29034         * tests/test-fdutimensat.c: Likewise.
29035         * tests/test-utimens.c: Likewise.
29036         * tests/test-futimens.h: Update comment.
29037         * NEWS: Mention this.
29038         Suggested by Paul Eggert.
29039
29040 2010-09-17  Bruno Haible  <bruno@clisp.org>
29041
29042         Take over the maintenance of some older macros from Autoconf.
29043         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29044         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29045         GNU Autoconf.
29046         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29047         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29048
29049 2010-09-17  Eric Blake  <eblake@redhat.com>
29050
29051         fdutimensat: drop atflag validation
29052         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29053         with valid fd, to close a race scenario where futimens is
29054         unsupported and FILE was replaced by a symlink.
29055         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29056         accordingly.
29057         Suggested by Paul Eggert.
29058
29059 2010-09-16  Bruno Haible  <bruno@clisp.org>
29060
29061         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29062         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29063
29064 2010-09-16  Bruno Haible  <bruno@clisp.org>
29065
29066         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29067         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29068         login_tty exists.
29069         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29070
29071 2010-09-16  Bruno Haible  <bruno@clisp.org>
29072
29073         login_tty: Make the replacement code work on BSD systems.
29074         * lib/login_tty.c: Include <sys/ioctl.h>.
29075         (login_tty): Use ioctl TIOCSCTTY when available.
29076         * modules/login_tty (Depends-on): Add sys_ioctl.
29077         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29078
29079 2010-09-16  Bruno Haible  <bruno@clisp.org>
29080
29081         login_tty: Stricter unit test.
29082         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29083         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29084         and tcgetsid() after login_tty.
29085         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29086
29087 2010-09-16  Bruno Haible  <bruno@clisp.org>
29088
29089         New module 'tcgetsid'.
29090         * lib/tcgetsid.c: New file.
29091         * m4/tcgetsid.m4: New file.
29092         * modules/tcgetsid: New file.
29093         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29094         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29095         GNULIB_TCGETSID, HAVE_TCGETSID.
29096         * lib/termios.in.h: Include <sys/types.h>.
29097         (tcgetsid): New declaration.
29098         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29099         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29100         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29101         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29102
29103 2010-09-16  Bruno Haible  <bruno@clisp.org>
29104
29105         Tests for module 'termios'.
29106         * modules/termios-c++-tests: New file.
29107         * modules/termios-tests: New file.
29108         * tests/test-termios-c++.cc: New file.
29109         * tests/test-termios.c: New file.
29110
29111         New module 'termios'.
29112         * modules/termios: New file.
29113         * lib/termios.in.h: New file.
29114         * m4/termios_h.m4: New file.
29115         * doc/posix-headers/termios.texi: Mention the new module.
29116
29117 2010-09-16  Eric Blake  <eblake@redhat.com>
29118
29119         fdutimensat: add an atflag parameter
29120         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29121         * lib/utimens.h (fdutimensat): Update prototype.
29122         * tests/test-fdutimensat.c: Adjust test to match.
29123         * NEWS: Document the change.
29124         Suggested by Paul Eggert.
29125
29126 2010-09-16  Bruno Haible  <bruno@clisp.org>
29127
29128         Fix typos in comments.
29129         * lib/striconveh.h: Fix typo in comment.
29130         * lib/login_tty.c (login_tty): Likewise.
29131
29132 2010-09-15  Bruno Haible  <bruno@clisp.org>
29133
29134         stdlib: clarify MirBSD WEXITSTATUS bug
29135         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29136         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29137
29138 2010-09-15  Eric Blake  <eblake@redhat.com>
29139
29140         stdlib: work around MirBSD WEXITSTATUS bug
29141         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29142         * modules/stdlib (Depends-on): Add sys_wait.
29143         * tests/test-sys_wait.c (main): Enhance test.
29144         * tests/test-stdlib.c (main): Likewise.
29145         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29146
29147         docs: mention MacOS issue with WEXITSTATUS(constant)
29148         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29149         issue.
29150         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29151
29152         strnlen: add tests
29153         * modules/strnlen-tests: New file.
29154         * tests/test-strnlen.c: Likewise.
29155
29156 2010-09-14  Bruno Haible  <bruno@clisp.org>
29157
29158         unistr/base: Avoid link errors when module 'libunistring' is also used.
29159         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29160         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29161         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29162         Declare also when HAVE_LIBUNISTRING is set.
29163         Reported by Pádraig Brady <P@draigbrady.com>.
29164
29165 2010-09-14  Eric Blake  <eblake@redhat.com>
29166
29167         test-rawmemchr: make more robust
29168         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29169         (Depends-on, configure.ac): Add needed prerequisites to use it.
29170         * modules/memchr-tests (Files, Depends-on, configure.ac):
29171         Likewise, to avoid implicit reliance on memchr module prereqs.
29172         * tests/test-memchr.c (main): Ensure proper masking.
29173         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29174         reads.
29175
29176         memchr: detect glibc Alpha bug
29177         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29178         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29179         Alpha.
29180         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29181         * tests/test-memchr.c (main): Enhance test.
29182         Reported by Nelson H. F. Beebe.
29183
29184 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29185
29186         fts, getcwd, glob: audit for dirfd returning -1
29187         * lib/fts.c (opendir): Remove #define; no longer used.
29188         (opendirat): New arg PDIR_FD.  All callers changed.
29189         (fts_build, _opendir2): Use new opendirat to avoid the need for
29190         dirfd, or for checking whether dirfd returns a negative value.
29191         Don't use opendir; always use openat followed by fdopendir.
29192         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29193         it.
29194         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29195         returns -1 here.
29196         * modules/fts (Depends-on): Remove dirfd.
29197         * modules/getcwd (Depends-on): Likewise.
29198
29199 2010-09-13  Eric Blake  <eblake@redhat.com>
29200
29201         float: fix broken MirBSD header
29202         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29203         * doc/posix-headers/float.texi (float.h): Document it.
29204
29205 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29206
29207         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29208         * lib/fts.c (opendirat): New arg extra_flags.
29209         (__opendir2): Use it to avoid following symlinks when opening
29210         a directory, if symlinks are not supposed to be followed.  See
29211         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29212
29213         fdopendir: preserve argument fd before returning
29214         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29215         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29216         (fdopendir): Use them, arranging for FD to be open to the same
29217         directory that it was when it started.  (It might be temporarily
29218         closed while fdopendir is running, so this not thread- or
29219         signal-safe.)  Be careful to do the right thing even when file
29220         descriptors are scarce and dup fails with errno == EMFILE.  See
29221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29222
29223 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29224
29225         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29226         * NEWS: Document change.
29227         * m4/regex.m4: Disable test for regoff_t size.
29228
29229 2010-09-13  Jim Meyering  <meyering@redhat.com>
29230
29231         fts: don't operate on an invalid file descriptor after failed dup
29232         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29233         negative file descriptor.
29234
29235 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29236
29237         savedir: add streamsavedir, deprecate fdsavedir
29238         * NEWS: Mention deprecation of fdsavedir.
29239         * lib/savedir.c (streamsavedir): New extern function, whose name
29240         ends in "savedir" to be consistent with the others.  This differs
29241         from savedirstream in that it doesn't close its argument.  The
29242         next version of GNU tar will use this instead of fdsavedir, to
29243         avoid some race conditions and conserve file descriptors.
29244         (savedirstream): Reimplement as a wrapper around streamsavedir.
29245         (fdsavedir): Add a comment deprecating this function.  As far as
29246         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29247         * lib/savedir.h (streamsavedir): New decl.
29248         (fdsavedir): Add a comment deprecating this.
29249
29250 2010-09-10  Bruno Haible  <bruno@clisp.org>
29251
29252         langinfo: Fix last commit.
29253         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29254         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29256
29257 2010-09-10  Bruno Haible  <bruno@clisp.org>
29258
29259         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29260         * lib/progreloc.c (O_EXEC): Define fallback.
29261
29262 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29263
29264         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29265         * NEWS: Document recent changes to fcntl-h.
29266         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29267         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29268         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29269         Similarly for O_SEARCH; this last was already true, but not documented.
29270         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29271         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29272         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29273         Likewise.
29274         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29275         is zero, not whether it is defined.
29276         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29277         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29278         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29279
29280 2010-09-10  Bruno Haible  <bruno@clisp.org>
29281
29282         langinfo, nl_langinfo: Fix for IRIX 5.3.
29283         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29284         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29285         HAVE_LANGINFO_YESEXPR.
29286         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29287         HAVE_LANGINFO_YESEXPR.
29288         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29289         HAVE_LANGINFO_T_FMT_AMPM is 0.
29290         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29291         HAVE_LANGINFO_YESEXPR is 0.
29292         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29293         NOEXPR.
29294         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29295         * doc/posix-functions/nl_langinfo.texi: Likewise.
29296         Reported by Eric Blake.
29297
29298 2010-09-10  Bruno Haible  <bruno@clisp.org>
29299
29300         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29301         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29302         on FreeBSD 8.0 and OpenBSD 4.6.
29303         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29304         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29305         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29306         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29307         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29308         ac_includes_default.
29309         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29310
29311 2010-09-09  Eric Blake  <eblake@redhat.com>
29312
29313         strsignal: work around NetBSD bug
29314         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29315         * lib/string.in.h (includes): Likewise.
29316         * doc/posix-functions/strsignal.texi (strsignal): Document the
29317         bug.
29318         Reported by Nelson H. F. Beebe.
29319
29320         gnulib-tool: work with NetBSD /bin/sh
29321         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29322         (func_get_description, func_get_comment, func_get_status)
29323         (func_get_notice, func_get_applicability, func_get_filelist)
29324         (func_get_dependencies, func_get_autoconf_early_snippet)
29325         (func_get_autoconf_snippet, func_get_automake_snippet)
29326         (func_get_include_directive, func_get_link_directive)
29327         (func_get_license, func_get_maintainer, func_import): Avoid
29328         shell syntax errors from parsing syntax extensions.
29329
29330 2010-09-09  Bruno Haible  <bruno@clisp.org>
29331
29332         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29333         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29334         a reliable way to determine whether the 'alias' command works.
29335
29336 2010-09-08  Jim Meyering  <meyering@redhat.com>
29337
29338         init.sh: penalize a set-x-impaired shell; don't disqualify it
29339         * tests/init.sh: Too many shells corrupt application stderr when
29340         you set -x, so we can't afford to disqualify them, since at least
29341         on Irix-6.5, that would disqualify all bourne shells.
29342         Instead, use a two-pass approach.
29343         On the first pass, try to find a shell that meets the stricter
29344         condition that set -x does not corrupt stderr.
29345         If no shell meets the stricter condition, retest each candidate
29346         shell, but without that extra condition.  Finally, when
29347         VERBOSE=yes is requested and set -x might cause trouble, simply
29348         issue a warning and refrain from enabling debug output.
29349
29350 2010-09-08  Eric Blake  <eblake@redhat.com>
29351
29352         unsetenv: fix OpenBSD bug
29353         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29354         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29355         documentation.
29356         Reported by Jim Meyering.
29357
29358         strtod: work around IRIX 6.5 bug
29359         * lib/strtod.c (strtod): Reparse number on shorter string if
29360         exponent parse was invalid.
29361         * tests/test-strtod.c (main): Add check for "0x1p 2".
29362         Reported by Tom G. Christensen.
29363
29364         getopt: optimize previous patch
29365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29366         empty variable.  Speed up awk script.
29367         Reported by Paolo Bonzini.
29368
29369 2010-09-08  Jim Meyering  <meyering@redhat.com>
29370
29371         test.sh: disqualify shells for which set -x corrupts stderr
29372         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29373         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29374         appear in stderr output.  For example, this command:
29375             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29376         prints "P=1" on those two systems:
29377
29378 2010-09-08  Bruno Haible  <bruno@clisp.org>
29379
29380         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29381         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29382         commands, because some shells ignore redirections when there is an
29383         error in the command lookup.
29384         Reported by Eric Blake.
29385
29386 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29387
29388         * lib/regex.h: Fix a mention of `regex_compile' (should be
29389         `re_compile_pattern').
29390         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29391         (re_set_registers): Correct name of parameter in comment.
29392
29393         * doc/regex.texi: Add documentation for missing syntax flags.
29394         Remove commented-out documentation of defunct syntax option
29395         RE_NO_EMPTY_ALTS.
29396         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29397         Add documentation of re_set_registers.
29398         Document trick to re-use a pattern buffer by setting fastmap manually.
29399         Update documentation of struct re_pattern_buffer per public members.
29400         Uncomment documentation of equivalence class operators and
29401         collating symbol operators, since they are now implemented,
29402         Explain leftmost-longest matching in relation to alternatives.
29403         Tidy documentation of substring matching.
29404         Remove POSIX documentation, which is done better in
29405         glibc, and refer the reader there. Keep BSD API documentation, as
29406         that is not readily available elsewhere.
29407
29408 2010-09-07  Eric Blake  <eblake@redhat.com>
29409
29410         getopt: handle POSIXLY_CORRECT set but not exported
29411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29412         export state of POSIXLY_CORRECT, due to bash set -o posix.
29413         Reported by Dustin J. Mitchell.
29414
29415 2010-09-05  Bruno Haible  <bruno@clisp.org>
29416
29417         gnulib-tool: Highlight the changed options.
29418         * gnulib-tool (func_usage): Display the --import, --add-import,
29419         --remove-import explanations in bold font.
29420
29421 2010-09-06  Karl Berry  <karl@gnu.org>
29422
29423         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29424
29425 2010-09-05  Bruno Haible  <bruno@clisp.org>
29426
29427         uniwidth/width: Update comment.
29428         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29429         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29430
29431 2010-09-05  Bruno Haible  <bruno@clisp.org>
29432
29433         isinf, isnan: Relax license.
29434         * modules/isinf (License): Change from GPL to LGPL, with consent from
29435         Ben Pfaff.
29436         * modules/isnan (License): Likewise.
29437         Requested by Ludovic Courtès.
29438
29439 2010-09-04  Bruno Haible  <bruno@clisp.org>
29440
29441         gnulib-tool: Help migration from --import to --add-import or --update.
29442         * gnulib-tool: Emit a verbose error message when --import is used
29443         without any module name.
29444
29445 2010-09-04  Bruno Haible  <bruno@clisp.org>
29446
29447         Update doc about gnulib-tool.
29448         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29449         'gnulib-tool --update' in more detail.
29450         Reported by Eric Blake.
29451
29452 2010-09-04  Bruno Haible  <bruno@clisp.org>
29453
29454         gnulib-tool: Change --import. New options --add/remove-import.
29455         * gnulib-tool: New options --add-import, --remove-import.
29456         (func_usage): Document them.
29457         (have_associative): Define always.
29458         (func_import): In import mode, don't merge the specified settings with
29459         the cached settings. Implement remove-import mode.
29460         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29461         Explain when to use them versus --import.
29462         (Simple update): Use --add-import instead of --import.
29463         * NEWS: Mention the change.
29464
29465 2010-09-04  Bruno Haible  <bruno@clisp.org>
29466
29467         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29468         separate gnulib.mk.
29469
29470 2010-09-04  Bruno Haible  <bruno@clisp.org>
29471
29472         gnulib-tool: Don't talk about CVS any more.
29473         * gnulib-tool (func_usage, func_import): Write "version control"
29474         instead of CVS.
29475
29476 2010-09-04  Jim Meyering  <meyering@redhat.com>
29477
29478         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29479         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29480         false positives (whose names may be ill-chosen) when searching
29481         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29482         would cause a false-positive.
29483
29484         avoid coreutils "make distcheck" failure
29485         Coreutils tests with an absolute build directory name that contains
29486         a space.  Not quoting this directory name caused a failure.
29487         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29488         * tests/test-vc-list-files-cvs.sh: Likewise.
29489
29490 2010-09-04  Bruno Haible  <bruno@clisp.org>
29491
29492         gnulib-tool: Avoid error when run in a package without Makefile.am.
29493         * gnulib-tool: When collecting the m4dirs in a package that does not
29494         have a Makefile.am, eliminate those directories that contain no
29495         gnulib-cache.m4. Fix expression that counts these directories.
29496
29497 2010-09-04  Bruno Haible  <bruno@clisp.org>
29498
29499         update-copyright test: Improve output when perl is missing or too old.
29500         * tests/test-update-copyright.sh: Move test of Perl version down after
29501         the test whether Perl exists. Provide an explanation relating Perl's
29502         error message to Automake's SKIP: message.
29503
29504 2010-09-04  Bruno Haible  <bruno@clisp.org>
29505
29506         Don't augment PATH in TESTS_ENVIRONMENT.
29507         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29508         set abs_aux_dir instead of augmenting PATH.
29509         * modules/vc-list-files-tests (Makefile.am): Likewise.
29510         * tests/test-update-copyright.sh: Augment PATH here.
29511         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29512         path_prepend_.
29513         * tests/test-vc-list-files-git.sh: Likewise.
29514
29515 2010-09-04  Jim Meyering  <meyering@redhat.com>
29516
29517         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29518         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29519
29520 2010-09-04  Bruno Haible  <bruno@clisp.org>
29521
29522         strdup: Fix compilation error in C++ mode.
29523         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29524         the macro.
29525
29526 2010-09-04  Bruno Haible  <bruno@clisp.org>
29527
29528         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29529         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29530         macro into a function.
29531         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29532
29533 2010-09-04  Bruno Haible  <bruno@clisp.org>
29534
29535         Set PATH_SEPARATOR the same way autoconf does.
29536         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29537         the value of PATH_SEPARATOR the same way autoconf-generated configure
29538         scripts do.
29539         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29540         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29541
29542 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29543
29544         Set PATH_SEPARATOR the same way autoconf does.
29545         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29546         the same way autoconf-generated configure scripts do.
29547         * posix-modules: Likewise.
29548
29549 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29550
29551         hash: fix safe_hasher const typo
29552         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29553         const; otherwise, there is a type error later.
29554
29555 2010-09-02  Jim Meyering  <meyering@redhat.com>
29556
29557         test-update-copyright.sh: require perl 5.8.0
29558         * tests/test-update-copyright.sh: Require 5.8.0,
29559         which Tom G. Christensen has confirmed is adequate,
29560         while 5.6.1 is not.
29561
29562 2010-09-02  Eric Blake  <eblake@redhat.com>
29563
29564         tests: init.sh improvements for re-exec'ing with zsh
29565         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29566         -vx through shell re-exec.
29567         Reported by Tom G. Christensen.
29568
29569         wctype: fix typo in previous commit
29570         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29571         Reported by Ludovic Courtès.
29572
29573 2010-09-02  Jim Meyering  <meyering@redhat.com>
29574
29575         test-update-copyright.sh: skip test if Perl is too old
29576         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29577         Reported by Tom G. Christensen.
29578
29579 2010-09-02  Bruno Haible  <bruno@clisp.org>
29580
29581         wctype: Avoid compilation error on IRIX 6.5.30.
29582         * lib/wctype.in.h (iswblank): Declare with a replacement if
29583         REPLACE_ISWBLANK is set.
29584         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29585         declared. Set REPLACE_ISWBLANK.
29586         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29587         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29588         * doc/posix-headers/wctype.texi: Likewise.
29589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29590
29591 2010-09-01  Bruno Haible  <bruno@clisp.org>
29592
29593         New module 'socketlib'.
29594         * modules/socketlib: New file.
29595         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29596         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29597         * modules/sockets (Depends-on): Add socketlib.
29598         Suggested by Sam Steingold <sds@gnu.org>.
29599
29600 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29601
29602         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29603
29604         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29605         when one needs search access to a directory but not read access.
29606         On systems where it is available, it works in some cases where
29607         O_RDONLY does not, namely on directories that are searchable but
29608         not readable, and which need only to be searchable.  If O_SEARCH
29609         is not available, fall back to the traditional method of using
29610         O_RDONLY.
29611
29612         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29613         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29614         when opening a directory that needs only to be searchable.
29615         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29616         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29617         * lib/openat-proc.c (openat_proc_name): Likewise.
29618         * lib/openat.c (openat_needs_fchdir): Likewise.
29619         * lib/save-cwd.c (save_cwd): Likewise.
29620         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29621
29622 2010-08-28  Bruno Haible  <bruno@clisp.org>
29623
29624         New module 'host-cpu-c-abi'.
29625         * modules/host-cpu-c-abi: New file.
29626         * m4/host-cpu-c-abi.m4: New file, based on part of
29627         clisp/src/m4/general.m4.
29628         Requested by Sam Steingold <sds@gnu.org>.
29629
29630 2010-08-31  Eric Blake  <eblake@redhat.com>
29631         and Jim Meyering  <meyering@redhat.com>
29632
29633         hash: factor, and guard against misbehaving hasher function
29634         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29635         of table->hasher's return value.  Also protect against a hash value
29636         so large that adding it to table->bucket results in a NULL pointer.
29637         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29638         Use it in place of open-coded check-and-abort.
29639
29640 2010-08-30  Bruno Haible  <bruno@clisp.org>
29641
29642         hash: silence spurious clang warning
29643         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29644         Reported by Eric Blake.
29645
29646 2010-08-30  Eric Blake  <eblake@redhat.com>
29647
29648         strstr, memmem, strcasestr: avoid leaked shell message
29649         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29650         FreeBSD.
29651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29652         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29653
29654         tests: silence clang warning
29655         * tests/test-malloca.c (do_allocation): Avoid dead store.
29656
29657 2010-08-29  Bruno Haible  <bruno@clisp.org>
29658
29659         gettext: Fix recent mistake.
29660         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29661
29662 2010-08-29  Bruno Haible  <bruno@clisp.org>
29663
29664         selinux-h: Offer a --without-selinux option.
29665         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29666         --without-selinux was specified, skip all tests and define
29667         HAVE_SELINUX_SELINUX_H to 0.
29668         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29669         set LIB_SELINUX to empty.
29670         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29671         gl_LIBSELINUX. If --without-selinux was specified, replace
29672         selinux/context.h.
29673         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29674
29675 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29676             Bruno Haible  <bruno@clisp.org>
29677
29678         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29679         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29680         of HAVE_REALLOC.
29681         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29682         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29683         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29684         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29685
29686 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29687             Bruno Haible  <bruno@clisp.org>
29688
29689         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29690         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29691         HAVE_CALLOC.
29692         * lib/xmalloc.c: Update accordingly.
29693         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29694         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29695         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29696
29697 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29698             Bruno Haible  <bruno@clisp.org>
29699
29700         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29701         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29702         HAVE_MALLOC.
29703         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29704         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29705         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29706
29707 2010-08-29  Bruno Haible  <bruno@clisp.org>
29708
29709         Update modules list.
29710         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29711         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29712         (String handling <string.h>): Add astrxfrm.
29713         (File system functions): Add readlinkat.
29714
29715 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29716
29717         Tests for module 'realloc-gnu'.
29718         * modules/realloc-gnu-tests: New file.
29719         * tests/test-realloc-gnu.c: New file.
29720
29721         Tests for module 'calloc-gnu'.
29722         * modules/calloc-gnu-tests: New file.
29723         * tests/test-calloc-gnu.c: New file.
29724
29725         Tests for module 'malloc-gnu'.
29726         * modules/malloc-gnu-tests: New file.
29727         * tests/test-malloc-gnu.c: New file.
29728
29729 2010-08-28  Bruno Haible  <bruno@clisp.org>
29730
29731         Rename module 'realloc' -> 'realloc-gnu'.
29732         * modules/realloc-gnu: New file, copied from modules/realloc.
29733         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29734         obsolete.
29735         * modules/mgetgroups (Depends-on): Update.
29736         * doc/posix-functions/realloc.texi: Update.
29737         * NEWS: Mention the change.
29738
29739         Rename module 'calloc' -> 'calloc-gnu'.
29740         * modules/calloc-gnu: New file, copied from modules/calloc.
29741         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29742         obsolete.
29743         * doc/posix-functions/calloc.texi: Update.
29744         * NEWS: Mention the change.
29745
29746         Rename module 'malloc' -> 'malloc-gnu'.
29747         * modules/malloc-gnu: New file, copied from modules/malloc.
29748         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29749         obsolete.
29750         * modules/argp (Depends-on): Update.
29751         * modules/regex (Depends-on): Update.
29752         * doc/posix-functions/malloc.texi: Update.
29753         * NEWS: Mention the change.
29754
29755 2010-08-28  Eric Blake  <eblake@redhat.com>
29756
29757         pread, pwrite: add missing dependency
29758         * modules/pread (Depends-on): Add extensions.
29759         * modules/pwrite (Depends-on): Likewise.
29760
29761 2010-08-28  Bruno Haible  <bruno@clisp.org>
29762
29763         unistr/u*-strchr: Fix tests dependencies.
29764         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29765         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29766         Reported by Ian Beckwith <ianb@erislabs.net>.
29767
29768 2010-08-28  Bruno Haible  <bruno@clisp.org>
29769
29770         read-file: Don't occupy too much unused memory.
29771         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29772
29773 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29774             Eric Blake  <eblake@redhat.com>
29775             Bruno Haible  <bruno@clisp.org>
29776
29777         read-file: Avoid memory reallocations with regular files.
29778         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29779         (fread_file): With regular files, use the remaining length as the
29780         initial buffer size.  Check against overflow.
29781         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29782         sys_stat.
29783
29784 2010-08-28  Bruno Haible  <bruno@clisp.org>
29785
29786         ftello: Relax license.
29787         * modules/ftello (License): Relax to LGPLv2+.
29788         Reported by Eric Blake.
29789
29790 2010-08-28  Bruno Haible  <bruno@clisp.org>
29791
29792         Avoid relocwrapper link errors due to gnulib replacement functions.
29793         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29794         function.
29795         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29796
29797 2010-08-28  Bruno Haible  <bruno@clisp.org>
29798
29799         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29800         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29801         defined.
29802         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29803         Suggested by Eric Blake.
29804
29805 2010-08-28  Bruno Haible  <bruno@clisp.org>
29806
29807         sys_socket, netdb: Ensure socklen_t gets defined.
29808         * modules/sys_socket (Depends-on): Add socklen.
29809         * modules/netdb (Depends-on): Likewise.
29810         * modules/getaddrinfo (Depends-on): Remove socklen.
29811         * modules/getsockopt (Depends-on): Likewise.
29812         * modules/setsockopt (Depends-on): Likewise.
29813         * tests/test-sys_socket.c: Check that socklen_t is defined.
29814         * tests/test-netdb.c: Likewise.
29815         * m4/socklen.m4: Update comments.
29816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29817
29818 2010-08-27  Eric Blake  <eblake@redhat.com>
29819
29820         login_tty: add missing dependency
29821         * modules/login_tty (Depends-on): Add pty.
29822
29823 2010-08-26  Eric Blake  <eblake@redhat.com>
29824
29825         lib-symbol-versions: fix m4 quoting
29826         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29827         format for AC_LINK_IFELSE.
29828
29829         glob: fix compile test
29830         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29831
29832         btowc: fix missing file
29833         * modules/btowc (Files): Also ship locale-fr.m4.
29834
29835         lseek: fix link test
29836         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29837         AC_LINK_IFELSE.
29838
29839         include_next: silence autoconf 2.68 warning
29840         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29841         AC_COMPILE_IFELSE as special.
29842         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29843         autoconf < 2.68.
29844
29845         acl: fix compilation test
29846         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29847         AC_COMPILE_IFELSE.
29848
29849 2010-08-26  Bruno Haible  <bruno@clisp.org>
29850
29851         Modernize AC_TRY_RUN invocations.
29852         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29853         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29854         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29855         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29856         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29857         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29858         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29859         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29860         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29861         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29862         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29863         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29864         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29865         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29866         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29867         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29868         gl_MBRLEN_NUL_RETVAL): Likewise.
29869         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29870         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29871         Likewise.
29872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29873         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29874         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29875         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29876         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29877         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29878         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29879         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29880         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29881         Likewise.
29882         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29883         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29885         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29886         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29887         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29888         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29889         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29890         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29892
29893 2010-08-26  Bruno Haible  <bruno@clisp.org>
29894
29895         Modernize AC_TRY_LINK invocations.
29896         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29897         AC_TRY_LINK.
29898         * m4/argp.m4 (gl_ARGP): Likewise.
29899         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29900         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29901         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29902         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29903         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29904         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29905         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29906         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29907         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29908         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29909         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29910         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29911         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29912         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29913         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29914         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29915         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29916         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29917         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29918         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29919         Likewise.
29920         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29921         Likewise.
29922         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29923         Likewise.
29924         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29925         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29926         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29927         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29928         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29929         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29930         * m4/servent.m4 (gl_SERVENT): Likewise.
29931         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29932         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29933         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29934         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29935         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29936         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29937         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29938         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29939         * modules/tsearch-tests (configure.ac): Likewise.
29940
29941 2010-08-26  Bruno Haible  <bruno@clisp.org>
29942
29943         Modernize AC_TRY_COMPILE invocations.
29944         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29945         AC_TRY_COMPILE.
29946         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29947         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29948         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29949         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29950         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29951         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29952         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29953         * m4/lock.m4 (gl_LOCK): Likewise.
29954         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29955         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29956         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29957         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29958         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29959         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29960         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29962         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29963         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29964         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29965         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29966         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29967         extraneous semicolon.
29968
29969 2010-08-26  Jim Meyering  <meyering@redhat.com>
29970
29971         stat-time: relax license LGPL
29972         * modules/stat-time (License): Change from GPL to LGPL,
29973         with consent from all contributors, for use in libguile.
29974         Requested by Ludovic Courtès.
29975
29976 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29977
29978         poll: return immediately on POLLHUP.
29979         * lib/poll.c (poll): Always set timeout before wait_timeout is
29980         computed.
29981
29982 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29983
29984         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29985         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29986         rmdir ("dir/.//"), unlinkat.
29987
29988 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29989
29990         stdbool: avoid spurious failure with modern xlc
29991         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29992
29993 2010-08-24  Bruno Haible  <bruno@clisp.org>
29994
29995         getloadavg: simplify code
29996         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29997         gl_have_func. Update comments.
29998
29999 2010-08-24  Eric Blake  <eblake@redhat.com>
30000
30001         getloadavg: don't define SVR4 on cygwin
30002         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30003         only define SVR4 when -lkvm is required.
30004         Reported by Yaakov Selkowitz.
30005
30006 2010-08-24  Bruno Haible  <bruno@clisp.org>
30007
30008         priv-set: fix comment
30009         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30010
30011 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30012
30013         priv-set: fix comments
30014         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30015         to match code, as suggested by David Bartley in:
30016         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30017
30018 2010-08-23  Eric Blake  <eblake@redhat.com>
30019
30020         stdbool: avoid rejecting clang
30021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30022         * tests/test-stdbool.c: Enable more tests if using the system
30023         <stdbool.h> instead of the gnulib replacement.
30024         (main): Move xlc bug test to a runtime test for all compilers.
30025         Reported by Anders Kaseorg.
30026
30027         argz: fix shell quoting issue
30028         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30029         Reported by Charles Wilson.
30030
30031 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30032             Erik Faye-Lund <kusmabite@gmail.com>
30033
30034         poll, select: handle ERROR_BROKEN_PIPE.
30035         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30036         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30037         * lib/select.c (win32_compute_revents): Do not mark a pipe
30038         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30039
30040 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30041
30042         fts: allow compilation with C++
30043         * lib/fts_.h: Specify extern "C" linkage with C++.
30044
30045 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30046
30047         Fix gnulib-tool sed script de-commentation for AIX sed.
30048         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30049         sed.
30050
30051 2010-08-17  Eric Blake  <eblake@redhat.com>
30052
30053         test-stddef: test for (some) offsetof bugs
30054         * tests/test-stddef.c: Enhance test to ensure correct type of
30055         offsetof.
30056         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30057         that we are not fixing at this time.
30058
30059 2010-08-15  Bruno Haible  <bruno@clisp.org>
30060
30061         stpncpy: Allow stpncpy to be defined as a macro.
30062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30063         if it's already correctly declared.
30064         * lib/string.in.h (stpncpy): Undefine before redefining.
30065         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30066
30067 2010-08-14  Bruno Haible  <bruno@clisp.org>
30068
30069         Rename module 'memxfrm' to 'amemxfrm'.
30070         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30071         (amemxfrm): Renamed from memxfrm.
30072         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30073         (amemxfrm): Renamed from memxfrm.
30074         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30075         * NEWS: Mention the change.
30076         * MODULES.html.sh (String handling <string.h>): Update.
30077         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30078         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30079         * lib/unicase/u16-casexfrm.c: Likewise.
30080         * lib/unicase/u32-casexfrm.c: Likewise.
30081         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30082         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30083         * lib/uninorm/u16-normxfrm.c: Likewise.
30084         * lib/uninorm/u32-normxfrm.c: Likewise.
30085         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30086         memxfrm.
30087         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30088         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30089         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30090         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30091         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30092         Suggested by Paul Eggert.
30093
30094 2010-08-14  Bruno Haible  <bruno@clisp.org>
30095
30096         Tests for module 'astrxfrm'.
30097         * modules/astrxfrm-tests: New file.
30098         * tests/test-astrxfrm.c: New file.
30099
30100         New module 'astrxfrm'.
30101         * lib/astrxfrm.h: New file.
30102         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30103         * modules/astrxfrm: New file.
30104
30105 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30106
30107         regex: Tweak doc.
30108         * doc/regex.texi (Overview): Don't mention regex.c.
30109         (GNU Regular Expression Compiling): Likewise.
30110         (Match-end-of-line Operator): Mention 'not_eol'.
30111
30112 2010-08-14  Brian Gough  <bjg@gnu.org>
30113             Bruno Haible  <bruno@clisp.org>
30114
30115         git-merge-changelog: add doc relating to use with bzr and hg.
30116         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30117
30118 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30119
30120         pthread: fix pthread.h creation for srcdir != builddir
30121         * modules/pthread (Makefile.am): Fix the rule to work also in a
30122         non-srcdir build.
30123
30124 2010-08-13  Karl Berry  <karl@gnu.org>
30125
30126         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30127         * doc/posix-*/*: force line break before @url of POSIX
30128         specifications.
30129         Suggested by Werner Lemberg.
30130
30131 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30132
30133         strtod: fix const diagnostic
30134         * lib/strtod.c (strtod): Don't assign const char * to char *,
30135         as this elicits a warning from GCC when warnings are enabled.
30136
30137 2010-08-10  Pádraig Brady <P@draigbrady.com>
30138         and Eric Blake  <eblake@redhat.com>
30139
30140         copy-acl: ignore ENOTSUP on HP-UX
30141         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30142         so that it is available for HP-UX.
30143         * lib/copy-acl.c (qcopy_acl): Use it.
30144         Reported by Patrick M. Callahan.
30145
30146 2010-08-10  Eric Blake  <eblake@redhat.com>
30147
30148         open, chown: relax license
30149         * modules/open (License): Change to LGPLv2+, with consent by all
30150         authors, for use in augeas.
30151         * modules/chown (License): Likewise.
30152         * modules/lchown (Likewise): Likewise.
30153         Requested by Adam Stokes.
30154
30155 2010-08-09  Karl Berry  <karl@gnu.org>
30156
30157         * build-aux/ar-lib: new file, import from Automake.
30158         * config/srclist.txt: autocheck for updates.
30159
30160 2010-08-09  Eric Blake  <eblake@redhat.com>
30161
30162         readlinkat: adjust client modules
30163         * modules/areadlinkat (Depends-on): Use readlinkat, not
30164         symlinkat.
30165         * modules/areadlinkat-with-size (Depends-on): Likewise.
30166
30167         mknod: be more vocal about danger of running tests as root
30168         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30169         root, since that is just asking for problems.
30170         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30171
30172         readlinkat: split into its own module
30173         * modules/symlinkat: Split readlinkat...
30174         * modules/readlinkat: ...into separate module.
30175         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30176         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30177         * lib/symlinkat.c (readlinkat): Move...
30178         * lib/readlinkat.c: ...into new file.
30179         * modules/symlinkat-tests: Split readlinkat test...
30180         * modules/readlinkat-tests: ...into separate module.
30181         * tests/test-symlinkat.c: Split...
30182         * tests/test-readlinkat.c: ...into new file.
30183         * NEWS: Document the split.
30184         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30185         * lib/unistd.in.h (readlinkat): Likewise.
30186         Suggested by Bruno Haible.
30187
30188 2010-08-08  Bruno Haible  <bruno@clisp.org>
30189
30190         memxfrm: Speed up.
30191         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30192         that usually only one call to strxfrm is necessary for each string
30193         part.
30194         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30195
30196 2010-08-07  Karl Berry  <karl@gnu.org>
30197
30198         * doc/posix-headers/limits.texi,
30199         * doc/posix-functions/malloc.texi,
30200         * doc/posix-functions/strsignal.texi: missing @item.
30201         * doc/ld-version-script.texi: spurious leading i.
30202         * doc/regex.texi (Interval Operators): no commas inside @var.
30203
30204 2010-08-01  Bruno Haible  <bruno@clisp.org>
30205
30206         Integrate the regex documentation.
30207         * doc/gnulib.texi: Define 'cn' index.
30208         (Regular expressions): New a chapter that includes regex.texi and
30209         regexprops-generic.texi.
30210         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30211         syntax.
30212
30213         Whitespace cleanup.
30214         * doc/regex.texi: Remove trailing spaces.
30215
30216         Add regex documentation.
30217         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30218         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30219         Written by Kathy A. Hargreaves and Karl Berry.
30220
30221 2010-08-01  Bruno Haible  <bruno@clisp.org>
30222
30223         link: Update documentation.
30224         * doc/posix-functions/link.texi: Update regarding Solaris.
30225
30226 2010-07-31  Bruno Haible  <bruno@clisp.org>
30227
30228         Update modules list.
30229         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30230         (String handling <string.h>): Add memcmp2, memxfrm.
30231         (Container data structures): Add xlist, xsublist, xoset.
30232         (Core language properties): Add alignof, unused-parameter.
30233         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30234         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30235         (Unibyte characters <ctype.h>): New section.
30236         (String handling <string.h>): New section.
30237         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30238         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30239         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30240         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30241         tan, tanh, tanl, y0, y1, yn.
30242         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30243         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30244         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30245         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30246         unlockpt, vdprintf, vdprintf-posix.
30247         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30248         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30249         xconcat-filename.
30250         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30251         getdtablesize, pipe2, pipe2-safer.
30252         (Security): New section.
30253         (Networking functions): Add accept4.
30254         (Signal handling): Add sigpipe.
30255         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30256         mbmemcasecoll.
30257         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30258         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30259         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30260         pipe-filter-ii.
30261         (Misc): Add argp-version-etc, login_tty, parse-duration.
30262
30263 2010-07-31  Bruno Haible  <bruno@clisp.org>
30264
30265         Improve doc in MODULES.html.
30266         * modules/linkat (Description): Add the word "function".
30267         * modules/mkfifo (Description): Likewise.
30268         * modules/mknod (Description): Likewise.
30269         * modules/remove (Description): Likewise.
30270         * modules/renameat (Description): Likewise.
30271         * modules/stat (Description): Likewise.
30272         * modules/symlink (Description): Likewise.
30273         * modules/unlink (Description): Likewise.
30274
30275 2010-07-31  Bruno Haible  <bruno@clisp.org>
30276
30277         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30278         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30279         option --enable/disable-c++ instead of --enable/disable-cxx.
30280         * NEWS: Mention the change.
30281
30282 2010-07-31  Bruno Haible  <bruno@clisp.org>
30283
30284         readlink, areadlink: Relax test a bit.
30285         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30286         alternative to ENOTDIR.
30287         * tests/test-areadlink.h (test_areadlink): Likewise.
30288         Reported by Rainer Tammer.
30289
30290 2010-07-31  Bruno Haible  <bruno@clisp.org>
30291
30292         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30293         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30294         character, perform the search using U_STRCHR.
30295         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30296         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30297         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30298         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30299         Suggested by Paolo Bonzini.
30300
30301 2010-07-31  Bruno Haible  <bruno@clisp.org>
30302
30303         unistr/u*-strstr: Fix dependencies.
30304         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30305         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30306         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30307
30308 2010-07-31  Bruno Haible  <bruno@clisp.org>
30309
30310         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30311         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30312         the beginning of the loop.
30313         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30314         cases in 'switch' statement.
30315
30316         unistr/u8-strchr: Fix several bugs.
30317         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30318         the string. When not found, return NULL, not a pointer near the end.
30319
30320         More tests for unistr/u8-strchr.
30321         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30322         that the function does not read past the first occurrence of the byte
30323         being searched.
30324         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30325         * tests/unistr/test-u16-strchr.c (main): New function.
30326         * tests/unistr/test-u32-strchr.c (main): New function.
30327
30328 2010-07-31  Bruno Haible  <bruno@clisp.org>
30329
30330         posix-modules: Ignore backup files of documentation files.
30331         * posix-modules: grep only through files named *.texi.
30332
30333 2010-07-31  Bruno Haible  <bruno@clisp.org>
30334
30335         symlinkat: Fix documentation.
30336         * doc/posix-functions/readlinkat.texi: Fix module name.
30337
30338 2010-07-31  Bruno Haible  <bruno@clisp.org>
30339
30340         fchownat: Replace also when chown has the trailing slash bug.
30341         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30342         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30343         introduced on 2010-04-10.
30344         Reported by Rainer Tammer.
30345
30346 2010-07-31  Bruno Haible  <bruno@clisp.org>
30347
30348         linkat: Work around AIX 7.1 bug.
30349         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30350         whether linkat handles trailing slash correctly. If not, replace linkat
30351         and define LINKAT_TRAILING_SLASH_BUG.
30352         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30353         check whether (fd1,file1) points to a directory if file1 or file2 ends
30354         in a slash. Code taken from lib/link.c.
30355         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30356         Reported by Rainer Tammer.
30357
30358 2010-07-31  Bruno Haible  <bruno@clisp.org>
30359
30360         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30361         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30362         This disables an xlc optimization that was causing wrong test results.
30363         Reported by Rainer Tammer.
30364
30365 2010-07-31  Bruno Haible  <bruno@clisp.org>
30366
30367         iconv: Work around AIX 6.1..7.1 bug.
30368         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30369         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30370         cross-compiling, guess no on all versions of AIX.
30371         Reported by Rainer Tammer.
30372
30373 2010-07-31  Bruno Haible  <bruno@clisp.org>
30374
30375         readlink: Relax test a bit.
30376         * tests/test-readlink.h (test_readlink): Allow different errno value
30377         when readlink is called with a file name that ends in / and refers to
30378         a file.
30379         Suggested by Eric Blake.
30380         Reported by Rainer Tammer.
30381
30382 2010-07-31  Bruno Haible  <bruno@clisp.org>
30383
30384         copysign: Does not require -lm on glibc systems.
30385         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30386         gl_COMMON_DOUBLE_MATHFUNC.
30387         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30388
30389 2010-07-31  Bruno Haible  <bruno@clisp.org>
30390
30391         duplocale: Work around AIX 7.1 bug.
30392         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30393         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30394         * lib/duplocale.c (rpl_duplocale): Update comment.
30395         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30396         Reported by Rainer Tammer.
30397
30398 2010-07-30  Bruno Haible  <bruno@clisp.org>
30399
30400         dirfd: Avoid link error on AIX 7.1.
30401         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30402         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30403         exist, set REPLACE_DIRFD.
30404         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30405         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30406         * doc/posix-functions/dirfd.texi: Update.
30407         Reported by Rainer Tammer.
30408
30409 2010-07-30  Eric Blake  <eblake@redhat.com>
30410
30411         strtod: next round of AIX fixes
30412         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30413         exponent.
30414         * tests/test-strtod.c (main): Enhance tests.
30415         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30416         Reported by Rainer Tammer.
30417
30418         futimens: fix configure check
30419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30420         Reported by Bruno Haible.
30421
30422 2010-07-30  Bruno Haible  <bruno@clisp.org>
30423
30424         getline: Update regarding AIX.
30425         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30426         Reported by Rainer Tammer.
30427
30428 2010-07-30  Bruno Haible  <bruno@clisp.org>
30429
30430         wcwidth: Drop replacement on AIX 7.
30431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30432         AIX 7.
30433         Reported by Rainer Tammer.
30434
30435 2010-07-30  Bruno Haible  <bruno@clisp.org>
30436
30437         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30438         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30439         a 'char *'.
30440         Reported by Rainer Tammer.
30441
30442 2010-07-30  Bruno Haible  <bruno@clisp.org>
30443
30444         unlink: Update regarding AIX.
30445         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30446         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30447         Reported by Rainer Tammer.
30448
30449 2010-07-30  Bruno Haible  <bruno@clisp.org>
30450
30451         symlink: Update regarding AIX.
30452         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30453         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30454         Reported by Rainer Tammer.
30455
30456 2010-07-30  Bruno Haible  <bruno@clisp.org>
30457
30458         strndup: Update regarding AIX.
30459         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30460         AIX 7.
30461         Reported by Rainer Tammer.
30462
30463 2010-07-30  Bruno Haible  <bruno@clisp.org>
30464
30465         stat: Update regarding AIX.
30466         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30467         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30468         Reported by Rainer Tammer.
30469
30470 2010-07-30  Bruno Haible  <bruno@clisp.org>
30471
30472         truncl: Fix autoconf test.
30473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30474         whether truncl works.
30475         Reported by Rainer Tammer.
30476
30477 2010-07-30  Bruno Haible  <bruno@clisp.org>
30478
30479         round: Update regarding AIX.
30480         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30481         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30482         Reported by Rainer Tammer.
30483
30484 2010-07-30  Bruno Haible  <bruno@clisp.org>
30485
30486         rename: Update regarding AIX.
30487         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30488         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30489         Reported by Rainer Tammer.
30490
30491 2010-07-30  Bruno Haible  <bruno@clisp.org>
30492
30493         printf.m4: Update regarding AIX.
30494         * m4/printf.m4: Update comments regarding AIX.
30495         Reported by Rainer Tammer.
30496
30497 2010-07-30  Bruno Haible  <bruno@clisp.org>
30498
30499         iconv: Update regarding AIX.
30500         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30501         AIX 7.
30502         Reported by Rainer Tammer.
30503
30504 2010-07-30  Bruno Haible  <bruno@clisp.org>
30505
30506         getopt: Update regarding AIX.
30507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30508         no on AIX.
30509         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30510         Reported by Rainer Tammer.
30511
30512 2010-07-30  Bruno Haible  <bruno@clisp.org>
30513
30514         ldexpl; Update regarding AIX.
30515         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30516         on AIX 7.
30517         Reported by Rainer Tammer.
30518
30519 2010-07-30  Bruno Haible  <bruno@clisp.org>
30520
30521         frexpl: Update regarding AIX.
30522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30523         on AIX 7.
30524         Reported by Rainer Tammer.
30525
30526 2010-07-30  Bruno Haible  <bruno@clisp.org>
30527
30528         open, fopen: Update regarding AIX.
30529         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30530         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30531         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30532         * doc/posix-functions/fopen.texi: Likewise.
30533         Reported by Rainer Tammer.
30534
30535 2010-07-30  Bruno Haible  <bruno@clisp.org>
30536
30537         chown: Update doc regarding AIX.
30538         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30539         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30540         Reported by Rainer Tammer.
30541
30542 2010-07-30  Eric Blake  <eblake@redhat.com>
30543
30544         strtod: fix bug in replacement function on AIX
30545         * lib/strtod.c (strtod): Special case broken "0x" parse in
30546         underlying strtod.
30547         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30548         * doc/posix-functions/strtod.texi (strtod): Likewise.
30549         Reported by Rainer Tammer.
30550
30551 2010-07-30  Bruno Haible  <bruno@clisp.org>
30552
30553         mbrlen: Fix cross-compilation guess for AIX.
30554         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30555         guess. Leftover from 2008-12-22.
30556
30557 2010-07-30  Bruno Haible  <bruno@clisp.org>
30558
30559         mbrtowc: Fix cross-compilation guess for AIX.
30560         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30561         guess. Leftover from 2008-12-21.
30562
30563 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30564
30565         init.sh: work around trap limitation of some shells
30566         * tests/init.sh (setup_): Move exit trap outside of shell function.
30567
30568 2010-07-29  Eric Blake  <eblake@redhat.com>
30569
30570         strtod: aid debugging
30571         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30572         understanding why strtod is rejected.
30573
30574 2010-07-28  Bruno Haible  <bruno@clisp.org>
30575
30576         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30577         * lib/unistr/u8-chr.c: Include <string.h>.
30578         * tests/unistr/test-u8-chr.c: Likewise.
30579         * tests/unistr/test-u16-chr.c: Likewise.
30580         * tests/unistr/test-u32-chr.c: Likewise.
30581         * tests/unistr/test-u8-strchr.c: Likewise.
30582         * tests/unistr/test-u16-strchr.c: Likewise.
30583         * tests/unistr/test-u32-strchr.c: Likewise.
30584         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30585         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30586         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30587         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30588
30589 2010-07-28  Bruno Haible  <bruno@clisp.org>
30590
30591         Use spaces for indentation, not tabs.
30592         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30593
30594 2010-07-27  Bruno Haible  <bruno@clisp.org>
30595
30596         mbspcasecmp: Fix function specification.
30597         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30598         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30599         Reported by Eric Blake <eblake@redhat.com>.
30600
30601 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30602
30603         timespec: use cast and not conditional, as truncation isn't possible
30604         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30605         instead of a conditional.  Comment about the situation in more detail.
30606         This undoes most of the 2009-10-29 patch.
30607
30608 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30609
30610         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30611         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30612         * lib/unistr/u8-strchr.c: Likewise.
30613         * modules/unistr/u8-chr: Depend on memchr.
30614
30615         unistr/u*-strchr: add tests
30616         * modules/unistr/u8-strchr-tests: New file.
30617         * modules/unistr/u16-strchr-tests: New file.
30618         * modules/unistr/u32-strchr-tests: New file.
30619         * tests/unistr/test-strchr.h: New file.
30620         * tests/unistr/test-u8-strchr.c: New file.
30621         * tests/unistr/test-u16-strchr.c: New file.
30622         * tests/unistr/test-u32-strchr.c: New file.
30623
30624         unistr/u*-chr: test multibyte sequences more
30625         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30626         test vector.
30627         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30628         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30629         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30630
30631         unistr/u*-chr: test multibyte sequences
30632         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30633
30634         unistr/u*-chr: prepare for multibyte tests
30635         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30636         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30637         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30638         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30639         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30640         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30641
30642 2010-07-18  Bruno Haible  <bruno@clisp.org>
30643
30644         unistr/u8-strchr: Optimize non-ASCII argument case.
30645         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30646         because the first byte often matches anyway.
30647         Reported by Pádraig Brady <P@draigbrady.com>.
30648
30649 2010-07-15  Karl Berry  <karl@gnu.org>
30650
30651         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30652
30653 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30654
30655         getcwd: on Solaris, work better if ancestors are inaccessible
30656         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30657         buffer and size, try again with a large buffer.  This works better
30658         on Solaris, since its getcwd succeeds even if the path to the root
30659         is inaccessible, and this is helpful in common cases such as .zfs
30660         hidden directories.  Problem reported by J Chapman Flack in
30661         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30662         Use system getcwd if it's declared, not merely if it's partly
30663         working; use the partly-working test only to avoid needless effort
30664         if the system getcwd fails.
30665         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30666         comment that was already obsolete and is now even more obsolete.
30667         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30668         now might call strdup.
30669
30670 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30671
30672         pthread: Add enough so that coreutils/src/sort.c compiles.
30673         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30674         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30675         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30676         Include <sys/types.h>, in case it defines pthread_t.
30677         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30678         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30679         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30680         (pthread_rwlockattr_t, pthread_spinlock_t):
30681         New typedefs, if HAVE_PTHREAD_T is not defined.
30682         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30683         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30684         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30685         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30686         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30687         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30688         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30689         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30690         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30691         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30692         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30693         New macros.
30694         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30695         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30696         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30697         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30698         (pthread_spin_unlock): New dummy functions.
30699         (pthread_create): Return EAGAIN; don't set errno.
30700         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30701         require AC_C_INLINE.
30702         * modules/pthread (Depends-on): Add sched, time.
30703         (pthread.h): Use AM_V_GEN.
30704
30705 2010-07-13  Bruno Haible  <bruno@clisp.org>
30706
30707         striconveh: Don't malloc memory if the result buffer is sufficient.
30708         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30709         buffer if its size is sufficient.
30710         Reported by Ludovic Courtès <ludo@gnu.org>.
30711
30712 2010-07-13  Bruno Haible  <bruno@clisp.org>
30713
30714         strtod: Add safety check.
30715         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30716
30717 2010-07-12  Bruno Haible  <bruno@clisp.org>
30718
30719         Unify tests that set gl_cv_func_ldexpl_no_libm.
30720         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30721         gl_FUNC_LDEXPL.
30722         (gl_FUNC_LDEXPL): Invoke it.
30723         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30724
30725 2010-07-12  Bruno Haible  <bruno@clisp.org>
30726
30727         Unify tests that set gl_cv_func_ldexp_no_libm.
30728         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30729         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30730         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30731         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30732         * modules/strtod (Files): Add m4/ldexp.m4.
30733
30734 2010-07-12  Bruno Haible  <bruno@clisp.org>
30735
30736         Unify tests that set gl_cv_func_frexpl_no_libm.
30737         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30738         gl_FUNC_FREXPL_NO_LIBM.
30739         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30740         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30741
30742 2010-07-12  Bruno Haible  <bruno@clisp.org>
30743
30744         Unify tests that set gl_cv_func_frexp_no_libm.
30745         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30746         gl_FUNC_FREXP_NO_LIBM.
30747         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30748         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30749
30750 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30751
30752         memcoll: clarify sizes versus lengths, document better, and tweak perf
30753         * lib/memcoll.c (strcoll_loop, memcoll0):
30754         Improve quality of descriptive comments.  Name variables
30755         consistently as to whether they are lengths (which do not include
30756         terminating null) versus sizes (which do).
30757         * lib/xmemcoll.c (xmemcoll0): Likewise.
30758         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30759         returned when s1size == 0; this is easier to compile and saves
30760         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30761
30762 2010-07-12  Bruno Haible  <bruno@clisp.org>
30763
30764         Tests for module '_Exit'.
30765         * modules/_Exit-tests: New file.
30766         * tests/test-_Exit.sh: New file.
30767         * tests/test-_Exit.c: New file.
30768
30769         New module '_Exit'.
30770         * lib/stdlib.in.h (__attribute__): New macro.
30771         (_Exit): New declaration.
30772         * lib/_Exit.c: New file.
30773         * m4/_Exit.m4: New file.
30774         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30775         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30776         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30777         * modules/_Exit: New file.
30778         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30779         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30780
30781 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30782
30783         strtod: make it more-accurate typically, and don't require libm
30784         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30785         Include limits.h.  Don't include string.h.
30786         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30787         (locale_isspace): New function, so that no casts are needed to
30788         check whether *s is a space.
30789         (ldexp): Provide an unused dummy if not available.
30790         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30791         (strtod): Use them.  This implementation prefers to use the
30792         underlying strtod if available, falling back on our own code
30793         only to fix known bugs.  This is more likely to produce an
30794         accurate result.  Also, it avoids the use of libm functions.
30795         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30796         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30797         was absent, but it caused a test failure with coreutils.
30798         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30799         with libm.
30800         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30801         * modules/strtod-tests (Makefile.am): Likewise.
30802
30803 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30804             Bruno Haible  <bruno@clisp.org>
30805
30806         unistr/u8-strchr: Optimize ASCII argument case.
30807         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30808
30809 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30810
30811         (x)memcoll: minor tweaks
30812         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30813         is after the type that it qualifies.
30814         (memcoll0): Likewise.
30815         * lib/memcoll.h (memcoll0): Likewise.
30816         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30817         * lib/xmemcoll.h (xmemcoll0): Likewise.
30818         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30819         differs from memcoll in that the NUL byte is part of the argument.
30820         Omit the abort-checks, as performance is a real issue here.  Plus,
30821         the checks were wrong anyway (an off-by-one error).  Omit local
30822         variable 'diff', as it's a bit clearer that way.
30823         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30824         no longer needed.
30825
30826 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30827
30828         (x)memcoll: speedup when input is known to be NUL delimited
30829         * lib/memcoll.c: Include stdlib.
30830         (memcoll0): New function.
30831         (strcoll_loop): New function, refactored for use in both memcoll
30832         and memcoll0.
30833         * lib/memcoll.h (memcoll0): Add prototype.
30834         * lib/xmemcoll.c (xmemcoll0): New function.
30835         (collate_error): New function, refactored for use in both xmemcoll
30836         and xmemcoll0.
30837         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30838         * m4/memcoll.m4: add inline invocation.
30839
30840 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30841
30842         * build-aux/bootstrap: Remove any local translations
30843         from the translation project synchronization directory,
30844         so that local only translations are not distributed.
30845
30846 2010-07-04  Bruno Haible  <bruno@clisp.org>
30847
30848         fsusage: Clarify which code applies to which platforms.
30849         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30850         platform.
30851         * lib/fsusage.c (get_fs_usage): Likewise.
30852
30853 2010-07-04  Bruno Haible  <bruno@clisp.org>
30854
30855         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30856         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30857         Reported by Martin Lambers <marlam@marlam.de>.
30858
30859 2010-07-04  Jim Meyering  <meyering@redhat.com>
30860
30861         hash: once again explicitly disallow insertion of NULL
30862         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30863         inserting a NULL pointer cannot work with these functions.
30864         Add a comment with details.
30865         This reverts part of the 2010-07-01 commit, 5bef1a35
30866         "hash: extend module to deal with non-pointer keys".
30867
30868 2010-07-01  Bruno Haible  <bruno@clisp.org>
30869
30870         stdbool: Update doc.
30871         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30872         Info from Christian Weisgerber <naddy@mips.inka.de>.
30873
30874 2010-07-01  Jim Meyering  <meyering@redhat.com>
30875
30876         hash: extend module to deal with non-pointer keys
30877         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30878         but that allows insertion of non-pointer entries.
30879         Do not disallow an ENTRY value of NULL.
30880         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30881         * lib/hash.h (hash_insert0): Declare.
30882
30883 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30884
30885         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30886         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30887         not present (i.e. with autoconf 2.59 and when using gettextize, not
30888         gnulib), require AC_GNU_SOURCE instead.
30889
30890 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30891
30892         idpriv-drop: Fix tests.
30893         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30894         not to the test-idpriv-droptemp program.
30895
30896 2010-06-29  Bruno Haible  <bruno@clisp.org>
30897
30898         string: Fix syntax error with g++ 2.96.
30899         * lib/string.in.h (__pure__): Remove definition.
30900         (_GL_ATTRIBUTE_PURE): New macro.
30901         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30902         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30903         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30904
30905 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30906
30907         unitypes: Fix bug introduced on 2010-05-18.
30908         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30909
30910 2010-06-22  Eric Blake  <eblake@redhat.com>
30911
30912         memmem: slight optimization
30913         * lib/str-two-way.h (critical_factorization): Update comments.
30914         Reduce work during factorization phase.
30915         Reported by Carlos Bueno <carlos@bueno.org>.
30916
30917 2010-06-21  Bruno Haible  <bruno@clisp.org>
30918
30919         Fix HAVE_CALLOC_POSIX misnomer.
30920         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30921         !HAVE_CALLOC_POSIX.
30922         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30923         HAVE_CALLOC_POSIX.
30924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30925         instead of HAVE_CALLOC_POSIX.
30926         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30927         HAVE_CALLOC_POSIX.
30928
30929         Use modern idiom for calloc() replacement.
30930         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30931         AC_FUNC_CALLOC.
30932         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30933         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30934         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30935         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30936         (gl_REPLACE_CALLOC): New macro.
30937
30938 2010-06-21  Bruno Haible  <bruno@clisp.org>
30939
30940         Fix HAVE_REALLOC_POSIX misnomer.
30941         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30942         !HAVE_REALLOC_POSIX.
30943         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30944         HAVE_REALLOC_POSIX.
30945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30946         instead of HAVE_REALLOC_POSIX.
30947         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30948         HAVE_REALLOC_POSIX.
30949
30950         Use modern idiom for realloc() replacement.
30951         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30952         AC_FUNC_REALLOC.
30953         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30954         Autoconf's AC_FUNC_REALLOC.
30955         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30956         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30957         (gl_REPLACE_REALLOC): New macro.
30958         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30959
30960 2010-06-21  Bruno Haible  <bruno@clisp.org>
30961
30962         Fix HAVE_MALLOC_POSIX misnomer.
30963         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30964         !HAVE_MALLOC_POSIX.
30965         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30966         HAVE_MALLOC_POSIX.
30967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30968         instead of HAVE_MALLOC_POSIX.
30969         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30970         HAVE_MALLOC_POSIX.
30971
30972         Use modern idiom for malloc() replacement.
30973         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30974         AC_FUNC_MALLOC.
30975         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30976         Autoconf's AC_FUNC_MALLOC.
30977         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30978         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30979         (gl_REPLACE_MALLOC): New macro.
30980         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30981
30982 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30983
30984         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30985         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30986         This macro takes 3 arguments, not 4.
30987
30988 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30989
30990         ipv6: fix detection under mingw
30991         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30992         in6_addr.
30993
30994 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30995
30996         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30997         that strtod() works when cross-compiling to a glibc version known
30998         to work.
30999
31000 2010-06-15  Bruno Haible  <bruno@clisp.org>
31001
31002         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31003
31004 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31005
31006         select: Correct timeout.
31007         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31008
31009 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31010
31011         git-version-gen: init shell var to avoid env var influence
31012         * build-aux/git-version-gen (v): Init shell var to empty.
31013
31014 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31015
31016         priv-set: Don't assume that priv.h exists merely because getppriv does.
31017         See Jan Andersen's bug report about AIX 5L in
31018         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31019         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31020         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31021         * lib/priv-set.h: Likewise.
31022         * tests/test-priv-set.c: Likewise.
31023
31024 2010-06-13  Bruno Haible  <bruno@clisp.org>
31025
31026         relocatable: Make it easier to test whether to install wrappers.
31027         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31028         RELOCATABLE_VIA_WRAPPER.
31029
31030 2010-06-13  Bruno Haible  <bruno@clisp.org>
31031
31032         gnulib-tool: Display specified modules and dependencies differently.
31033         * gnulib-tool (func_show_module_list): New function.
31034         (func_import, func_create_testdir): Invoke it.
31035         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31036
31037 2010-06-13  Bruno Haible  <bruno@clisp.org>
31038
31039         gnulib-tool: Align code of func_import and func_create_testdir.
31040         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31041         specified_modules.
31042
31043 2010-06-12  Jim Meyering  <meyering@redhat.com>
31044
31045         test-inttostr: avoid spurious failure on Solaris 9
31046         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31047         to accept "%ju".  Reported by Bruno Haible.
31048
31049 2010-06-11  Jim Meyering  <meyering@redhat.com>
31050
31051         test-sys_socket: mark variables as used more readably
31052         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31053         as "used" explicitly via (void) statement casts.  This is more
31054         readable than using them in an artificial return expression.
31055         Suggestion from Bruno Haible.
31056
31057 2010-06-11  Bruno Haible  <bruno@clisp.org>
31058
31059         Avoid some more warnings from "gcc -Wwrite-strings".
31060         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31061         to 'const char *'.
31062         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31063         * tests/test-c-strcasestr.c (main): Likewise.
31064         * tests/test-mbscasestr1.c (main): Likewise.
31065         * tests/test-mbscasestr2.c (main): Likewise.
31066         * tests/test-memmem.c (main): Likewise.
31067         * tests/test-strstr.c (main): Likewise.
31068         * tests/test-strcasestr.c (main): Likewise.
31069
31070 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31071
31072         init.sh: change framework_failure_ to fail with status 99, not 1
31073         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31074         automake's parallel-tests rule that this is an unexpected failure,
31075         even if the test is listed in XFAIL_TESTS.
31076
31077 2010-06-11  Jim Meyering  <meyering@redhat.com>
31078
31079         test-inttostr: avoid warnings about 4-6KB literal strings
31080         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31081         Include "macros.h", for its definition of ASSERT.
31082         (CK): s/assert/ASSERT/
31083         * modules/inttostr-tests (Files): Add macros.h.
31084
31085         init.sh: don't use $ME_ or skip_ before they are defined
31086         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31087         their first uses.  Also hoist their companions: warn_, fail_,
31088         framework_failure_, $stderr_fileno.  Prompted by a patch from
31089         Stefano Lattarini.
31090
31091         test-sys_socket: avoid set-but-not-used warnings from gcc
31092         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31093         avoid warning about set-but-not-used variables.
31094
31095         test-xvasprintf: avoid 'const' discard warnings
31096         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31097         "const" when assigning from literal strings.
31098         (test_xasprintf): Add "void" in function argument list to placate
31099         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31100
31101         tests: avoid compilation warnings in argmatch and exclude tests...
31102         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31103         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31104         Since it always exits, declare with the "noreturn" attribute.
31105         * tests/test-argmatch.c: Likewise.
31106
31107         tests: avoid 'const' discard warnings in mbsstr tests
31108         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31109         * tests/test-mbsstr2.c (main): Likewise.
31110
31111         test-verify: avoid warning from gcc's -Wmissing-declarations
31112         * tests/test-verify.c (function): Declare to be static.
31113
31114         test-inttostr.c: include <string.h> for use of strcmp
31115         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31116
31117         test-linkat: avoid failed assertion on "other" architectures
31118         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31119         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31120         sparc: https://bugs.launchpad.net/bugs/591968
31121
31122 2010-06-11  Jim Meyering  <meyering@redhat.com>
31123
31124         printf.m4: avoid autoconf's "Expanded Before Required" warning
31125         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31126         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31127         autoconf warning.
31128
31129 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31130
31131         Replacement header templates are now named with ".in", not "_".
31132         * doc/gnulib-intro.texi: Correct.
31133
31134 2010-06-10  Jim Meyering  <meyering@redhat.com>
31135
31136         inttostr-tests: depend on snprintf, not snprintf-posix
31137         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31138         snprintf-posix, to avoid this aclocal failure:
31139           missing file gnulib-tests/vasnprintf.c
31140           configure.ac:45: error: expected source file, required through \
31141           AC_LIBSOURCES, not found
31142
31143 2010-06-10  Jim Meyering  <meyering@redhat.com>
31144
31145         inttostr: add a new function, inttostr, and tests
31146         The namesake function was not available.  The existence of the
31147         template file, inttostr.c makes its addition nontrivial.
31148         * lib/anytostr.c: Rename from inttostr.c.
31149         (anytostr): Rename from inttostr.
31150         * lib/inttostr.c: New file.
31151         * modules/inttostr (Files): Add anytostr.c.
31152         (Makefile.am): Set lib_SOURCES instead of ...
31153         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31154         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31155         * lib/offtostr.c: Likewise.
31156         * lib/uinttostr.c: Likewise.
31157         * lib/umaxtostr.c: Likewise.
31158         * modules/inttostr-tests: New file.
31159         * tests/test-inttostr.c: New file.  Test these functions.
31160
31161 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31162             Bruno Haible  <bruno@clisp.org>
31163
31164         Add "Extending Gnulib" chapter to manual.
31165         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31166         chapter.
31167         (Extending Gnulib): New chapter.
31168         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31169         chapter.
31170
31171 2010-06-09  Bruno Haible  <bruno@clisp.org>
31172
31173         Avoid relocwrapper link errors due to gnulib replacement functions.
31174         * lib/areadlink.c: Use the system's malloc, realloc functions.
31175         (areadlink): Set errno to ENOMEM explicitly.
31176         * modules/areadlink (Depends-on): Remove malloc-posix.
31177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31178
31179 2010-06-09  Bruno Haible  <bruno@clisp.org>
31180
31181         Avoid relocwrapper link errors due to gnulib replacement functions.
31182         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31183         * lib/malloca.c: Likewise.
31184         * lib/relocatable.c: Likewise.
31185         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31186         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31187         * lib/setenv.c: Use the system's malloc, realloc functions.
31188         * lib/strerror.c: Use the system's sprintf function.
31189         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31190
31191 2010-06-04  Bruno Haible  <bruno@clisp.org>
31192
31193         Prefer documented low-level autoconf macro names.
31194         * m4/lib-link.m4: Use m4_translit instead of translit.
31195         * m4/environ.m4: Likewise.
31196         * m4/mathfunc.m4: Likewise.
31197         * m4/onceonly.m4: Likewise.
31198         * m4/stdint.m4: Likewise.
31199         Suggested by Eric Blake.
31200
31201 2010-06-04  Martin Lambers  <marlam@marlam.de>
31202             Bruno Haible  <bruno@clisp.org>
31203
31204         havelib: Allow library names with '+' characters.
31205         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31206         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31207
31208 2010-06-09  Bruno Haible  <bruno@clisp.org>
31209
31210         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31211         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31212         realloc failed.
31213
31214 2010-06-08  Peter Simons  <simons@cryp.to>
31215
31216         maint.mk: make the news-check rule more configurable
31217         * top/maint.mk (news-check-lines-spec): New variable.
31218         (news-check): Use "sed -n 1,10p" in place of "head".
31219
31220 2010-06-07  Jim Meyering  <meyering@redhat.com>
31221
31222         do-release-commit-and-tag: fix typo in --help
31223         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31224
31225         regex: avoid new dead-code warning with gcc-4.6.0
31226         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31227         if-block containing a while-loop.  It's been unused for at least
31228         5 years.
31229
31230 2010-06-05  Bruno Haible  <bruno@clisp.org>
31231
31232         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31233         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31234
31235 2010-06-04  Bruno Haible  <bruno@clisp.org>
31236
31237         Update to GNU gettext 0.18.1.
31238         * modules/gettext (configure.ac): Require gettext infrastructure from
31239         version 0.18.1.
31240
31241 2010-06-03  Bruno Haible  <bruno@clisp.org>
31242
31243         Don't use AC_LIBOBJ with file names in subdirectories.
31244         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31245         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31246         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31247         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31248         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31249         gl_LIBUNISTRING_LIBSOURCE.
31250         (Makefile.am): Augment lib_SOURCES here, conditionally.
31251         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31252
31253 2010-06-03  Bruno Haible  <bruno@clisp.org>
31254
31255         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31256         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31257         expansion does not end with a newline.
31258         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31259         unnecessary newline.
31260
31261 2010-06-03  Bruno Haible  <bruno@clisp.org>
31262
31263         Reduce dependencies.
31264         * tests/test-quotearg.h: New file, extracted from
31265         tests/test-quotearg.c.
31266         * tests/test-quotearg-simple.c: New file, extracted from
31267         tests/test-quotearg.c.
31268         * tests/test-quotearg.c: Don't include <ctype.h>.
31269         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31270         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31271         use_quote_double_quotes, use_quotearg_colon): Moved to
31272         tests/test-quotearg.h.
31273         (results_g, flag_results, custom_quotes, custom_results): Moved
31274         to tests/test-quotearg-simple.c.
31275         (main): Moved the part that does not depend on gettext to
31276         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31277         performed.
31278         * modules/quotearg-simple: New file.
31279         * modules/quotearg-simple-tests: New file.
31280         * modules/quotearg (Depends-on): Add quotearg-simple.
31281         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31282         (Files): Add tests/test-quotearg.h.
31283         Reported by Paolo Bonzini.
31284
31285 2010-06-03  Bruno Haible  <bruno@clisp.org>
31286
31287         Reduce dependencies.
31288         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31289
31290 2010-06-03  Bruno Haible  <bruno@clisp.org>
31291
31292         time: Undefine more broken macros.
31293         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31294         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31295         Reported by Eric Blake.
31296
31297 2010-06-03  Bruno Haible  <bruno@clisp.org>
31298
31299         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31300         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31301         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31302         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31303         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31304         Reported by Ludovic Courtès <ludo@gnu.org>.
31305
31306 2010-06-02  Eric Blake  <eblake@redhat.com>
31307
31308         time: work with mingw + pthreads-win32 library
31309         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31310         if timespec is defined only in pthread.h.
31311         * modules/time (Makefile.am): Substitute it.
31312         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31313         <pthread.h>, when needed.
31314         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31315         from the library.
31316
31317 2010-05-31  Bruno Haible  <bruno@clisp.org>
31318
31319         Avoid expanding two macros in the wrong order.
31320         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31321         gl_LIBUNISTRING if it is defined.
31322         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31323         autoconf >= 2.64.
31324         Reported by Ludovic Courtès <ludo@gnu.org>.
31325
31326 2010-05-27  Jim Meyering  <meyering@redhat.com>
31327
31328         maint.mk: also prohibit "#undef" of always-defined symbols
31329         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31330         Allow more than one space before the symbol name.
31331         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31332         the regexp uses alternation.
31333
31334 2010-05-26  Eric Blake  <eblake@redhat.com>
31335
31336         maint.mk: avoid echo -e
31337         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31338         Convert all uses of echo -* to printf.
31339         Reported by Matthias Bolte.
31340
31341 2010-05-25  Bruno Haible  <bruno@clisp.org>
31342
31343         Update to GNU gettext 0.18, part 2.
31344         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31345         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31346
31347 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31348
31349         Add missing include in test-pwrite.c.
31350         * tests/test-pwrite.c: Include string.h, for strcmp.
31351
31352 2010-05-24  Bruno Haible  <bruno@clisp.org>
31353
31354         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31355
31356 2010-05-24  Bruno Haible  <bruno@clisp.org>
31357
31358         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31359         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31360         iconveh_error argument.
31361         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31362         U_STRCONV_TO_LOCALE.
31363         * lib/unistr/u16-strcoll.c: Likewise.
31364         * lib/unistr/u32-strcoll.c: Likewise.
31365         * modules/unistr/u8-strcoll (Depends-on): Add
31366         uniconv/u8-strconv-to-enc, localcharset. Remove
31367         uniconv/u8-strconv-to-locale.
31368         (configure.ac): Bump version number.
31369         * modules/unistr/u16-strcoll (Depends-on): Add
31370         uniconv/u16-strconv-to-enc, localcharset. Remove
31371         uniconv/u16-strconv-to-locale.
31372         (configure.ac): Bump version number.
31373         * modules/unistr/u32-strcoll (Depends-on): Add
31374         uniconv/u32-strconv-to-enc, localcharset. Remove
31375         uniconv/u32-strconv-to-locale.
31376         (configure.ac): Bump version number.
31377
31378 2010-05-24  Bruno Haible  <bruno@clisp.org>
31379
31380         Avoid a test failure on NetBSD 5.0.
31381         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31382         an iconv() bug.
31383
31384 2010-05-24  Bruno Haible  <bruno@clisp.org>
31385
31386         Adjust #include directive style.
31387         * modules/regex (Includes): Recommend to write <regex.h>.
31388
31389 2010-05-24  Bruno Haible  <bruno@clisp.org>
31390
31391         regex: Don't require alloca.
31392         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31393         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31394         only inside if (0).
31395
31396 2010-05-23  Jim Meyering  <meyering@redhat.com>
31397
31398         test-renameat.c: include <sys/stat.h>
31399         * tests/test-renameat.c: Include <sys/stat.h>; required for
31400         definition of S_IS* macros.
31401
31402 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31403
31404         Update maintainer documentation for 'relocatable-prog' module.
31405         * doc/relocatable-maint.texi: Update.
31406         Comments by Bruno Haible.
31407
31408 2010-05-23  Bruno Haible  <bruno@clisp.org>
31409
31410         git-merge-changelog: Enable --split-merged-entry by default.
31411         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31412         (usage): Don't mention this option any more.
31413         Reported by Ralf Wildenhues.
31414
31415 2010-05-23  Jim Meyering  <meyering@redhat.com>
31416
31417         test-pwrite: do not leave behind a test file named "out"
31418         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31419         The trivial-looking use of init.sh is really necessary.
31420         It ensures that the temporary file, "out", is created in
31421         a temporary directory, and removed upon termination.
31422         * tests/test-pwrite.sh: Re-add file.
31423         * modules/pwrite-tests: Reference it.
31424
31425 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31426
31427         Fix output redirection buglet in init.sh.
31428         * tests/init.sh: Fix redirection of stderr.
31429
31430 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31431
31432         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31433
31434 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31435
31436         * modules/valgrind-tests: New file.
31437         * m4/valgrind-tests.m4: New file.
31438         * doc/valgrind-tests.texi: New file.
31439         * doc/gnulib.texi (Running self-tests under valgrind): New
31440         section.
31441
31442 2010-05-19  Bruno Haible  <bruno@clisp.org>
31443
31444         Clean up dead code in recent commit.
31445         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31446         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31447         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31448         Suggested by Paolo Bonzini.
31449
31450 2010-05-19  Bruno Haible  <bruno@clisp.org>
31451
31452         Avoid valgrind error reports from libunistring.
31453         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31454         * modules/libunistring (Files): Add it.
31455         * modules/libunistring-optional (Files): Likewise.
31456
31457 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31458             Bruno Haible  <bruno@clisp.org>
31459
31460         New module 'libunistring-optional'.
31461         * modules/libunistring-optional: New file.
31462         * m4/libunistring-base.m4: New file.
31463         * m4/libunistring-optional.m4: New file.
31464         * lib/unicase.in.h: Renamed from lib/unicase.h.
31465         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31466         * lib/unictype.in.h: Renamed from lib/unictype.h.
31467         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31468         * lib/uniname.in.h: Renamed from lib/uniname.h.
31469         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31470         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31471         * lib/unistr.in.h: Renamed from lib/unistr.h.
31472         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31473         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31474         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31475         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31476         gl_LIBUNISTRING. If the library was found, determine the installed
31477         version and set LIBUNISTRING_VERSION.
31478         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31479         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31480         handle a configuration option --with-included-libunistring.
31481         * modules/libunistring (Files): Add m4/absolute-header.m4.
31482         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31483         Add m4/libunistring-base.m4.
31484         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31485         (Makefile.am): Build unicase.h from unicase.in.h.
31486         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31487         Add m4/libunistring-base.m4.
31488         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31489         (Makefile.am): Build uniconv.h from uniconv.in.h.
31490         * modules/unictype/base (Files): Use unictype.in.h instead of
31491         unictype.h. Add m4/libunistring-base.m4.
31492         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31493         (Makefile.am): Build unictype.h from unictype.in.h.
31494         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31495         Add m4/libunistring-base.m4.
31496         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31497         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31498         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31499         Add m4/libunistring-base.m4.
31500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31501         (Makefile.am): Build uniname.h from uniname.in.h.
31502         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31503         Add m4/libunistring-base.m4.
31504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31505         (Makefile.am): Build uninorm.h from uninorm.in.h.
31506         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31507         unistdio.h. Add m4/libunistring-base.m4.
31508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31509         (Makefile.am): Build unistdio.h from unistdio.in.h.
31510         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31511         Add m4/libunistring-base.m4.
31512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31513         (Makefile.am): Build unistr.h from unistr.in.h.
31514         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31515         Add m4/libunistring-base.m4.
31516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31517         (Makefile.am): Build unitypes.h from unitypes.in.h.
31518         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31519         Add m4/libunistring-base.m4.
31520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31521         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31522         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31523         uniwidth.h. Add m4/libunistring-base.m4.
31524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31525         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31526         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31527         instead of augmenting lib_SOURCES.
31528         * modules/unicase/empty-suffix-context: Likewise.
31529         * modules/unicase/locale-language: Likewise.
31530         * modules/unicase/tolower: Likewise.
31531         * modules/unicase/totitle: Likewise.
31532         * modules/unicase/toupper: Likewise.
31533         * modules/unicase/u8-casecmp: Likewise.
31534         * modules/unicase/u8-casecoll: Likewise.
31535         * modules/unicase/u8-casefold: Likewise.
31536         * modules/unicase/u8-casexfrm: Likewise.
31537         * modules/unicase/u8-ct-casefold: Likewise.
31538         * modules/unicase/u8-ct-tolower: Likewise.
31539         * modules/unicase/u8-ct-totitle: Likewise.
31540         * modules/unicase/u8-ct-toupper: Likewise.
31541         * modules/unicase/u8-is-cased: Likewise.
31542         * modules/unicase/u8-is-casefolded: Likewise.
31543         * modules/unicase/u8-is-lowercase: Likewise.
31544         * modules/unicase/u8-is-titlecase: Likewise.
31545         * modules/unicase/u8-is-uppercase: Likewise.
31546         * modules/unicase/u8-prefix-context: Likewise.
31547         * modules/unicase/u8-suffix-context: Likewise.
31548         * modules/unicase/u8-tolower: Likewise.
31549         * modules/unicase/u8-totitle: Likewise.
31550         * modules/unicase/u8-toupper: Likewise.
31551         * modules/unicase/u16-casecmp: Likewise.
31552         * modules/unicase/u16-casecoll: Likewise.
31553         * modules/unicase/u16-casefold: Likewise.
31554         * modules/unicase/u16-casexfrm: Likewise.
31555         * modules/unicase/u16-ct-casefold: Likewise.
31556         * modules/unicase/u16-ct-tolower: Likewise.
31557         * modules/unicase/u16-ct-totitle: Likewise.
31558         * modules/unicase/u16-ct-toupper: Likewise.
31559         * modules/unicase/u16-is-cased: Likewise.
31560         * modules/unicase/u16-is-casefolded: Likewise.
31561         * modules/unicase/u16-is-lowercase: Likewise.
31562         * modules/unicase/u16-is-titlecase: Likewise.
31563         * modules/unicase/u16-is-uppercase: Likewise.
31564         * modules/unicase/u16-prefix-context: Likewise.
31565         * modules/unicase/u16-suffix-context: Likewise.
31566         * modules/unicase/u16-tolower: Likewise.
31567         * modules/unicase/u16-totitle: Likewise.
31568         * modules/unicase/u16-toupper: Likewise.
31569         * modules/unicase/u32-casecmp: Likewise.
31570         * modules/unicase/u32-casecoll: Likewise.
31571         * modules/unicase/u32-casefold: Likewise.
31572         * modules/unicase/u32-casexfrm: Likewise.
31573         * modules/unicase/u32-ct-casefold: Likewise.
31574         * modules/unicase/u32-ct-tolower: Likewise.
31575         * modules/unicase/u32-ct-totitle: Likewise.
31576         * modules/unicase/u32-ct-toupper: Likewise.
31577         * modules/unicase/u32-is-cased: Likewise.
31578         * modules/unicase/u32-is-casefolded: Likewise.
31579         * modules/unicase/u32-is-lowercase: Likewise.
31580         * modules/unicase/u32-is-titlecase: Likewise.
31581         * modules/unicase/u32-is-uppercase: Likewise.
31582         * modules/unicase/u32-prefix-context: Likewise.
31583         * modules/unicase/u32-suffix-context: Likewise.
31584         * modules/unicase/u32-tolower: Likewise.
31585         * modules/unicase/u32-totitle: Likewise.
31586         * modules/unicase/u32-toupper: Likewise.
31587         * modules/unicase/ulc-casecmp: Likewise.
31588         * modules/unicase/ulc-casecoll: Likewise.
31589         * modules/unicase/ulc-casexfrm: Likewise.
31590         * modules/uniconv/u8-conv-from-enc: Likewise.
31591         * modules/uniconv/u8-conv-to-enc: Likewise.
31592         * modules/uniconv/u8-strconv-from-enc: Likewise.
31593         * modules/uniconv/u8-strconv-from-locale: Likewise.
31594         * modules/uniconv/u8-strconv-to-enc: Likewise.
31595         * modules/uniconv/u8-strconv-to-locale: Likewise.
31596         * modules/uniconv/u16-conv-from-enc: Likewise.
31597         * modules/uniconv/u16-conv-to-enc: Likewise.
31598         * modules/uniconv/u16-strconv-from-enc: Likewise.
31599         * modules/uniconv/u16-strconv-from-locale: Likewise.
31600         * modules/uniconv/u16-strconv-to-enc: Likewise.
31601         * modules/uniconv/u16-strconv-to-locale: Likewise.
31602         * modules/uniconv/u32-conv-from-enc: Likewise.
31603         * modules/uniconv/u32-conv-to-enc: Likewise.
31604         * modules/uniconv/u32-strconv-from-enc: Likewise.
31605         * modules/uniconv/u32-strconv-from-locale: Likewise.
31606         * modules/uniconv/u32-strconv-to-enc: Likewise.
31607         * modules/uniconv/u32-strconv-to-locale: Likewise.
31608         * modules/unictype/bidicategory-byname: Likewise.
31609         * modules/unictype/bidicategory-name: Likewise.
31610         * modules/unictype/bidicategory-of: Likewise.
31611         * modules/unictype/bidicategory-test: Likewise.
31612         * modules/unictype/block-list: Likewise.
31613         * modules/unictype/block-test: Likewise.
31614         * modules/unictype/category-C: Likewise.
31615         * modules/unictype/category-Cc: Likewise.
31616         * modules/unictype/category-Cf: Likewise.
31617         * modules/unictype/category-Cn: Likewise.
31618         * modules/unictype/category-Co: Likewise.
31619         * modules/unictype/category-Cs: Likewise.
31620         * modules/unictype/category-L: Likewise.
31621         * modules/unictype/category-Ll: Likewise.
31622         * modules/unictype/category-Lm: Likewise.
31623         * modules/unictype/category-Lo: Likewise.
31624         * modules/unictype/category-Lt: Likewise.
31625         * modules/unictype/category-Lu: Likewise.
31626         * modules/unictype/category-M: Likewise.
31627         * modules/unictype/category-Mc: Likewise.
31628         * modules/unictype/category-Me: Likewise.
31629         * modules/unictype/category-Mn: Likewise.
31630         * modules/unictype/category-N: Likewise.
31631         * modules/unictype/category-Nd: Likewise.
31632         * modules/unictype/category-Nl: Likewise.
31633         * modules/unictype/category-No: Likewise.
31634         * modules/unictype/category-P: Likewise.
31635         * modules/unictype/category-Pc: Likewise.
31636         * modules/unictype/category-Pd: Likewise.
31637         * modules/unictype/category-Pe: Likewise.
31638         * modules/unictype/category-Pf: Likewise.
31639         * modules/unictype/category-Pi: Likewise.
31640         * modules/unictype/category-Po: Likewise.
31641         * modules/unictype/category-Ps: Likewise.
31642         * modules/unictype/category-S: Likewise.
31643         * modules/unictype/category-Sc: Likewise.
31644         * modules/unictype/category-Sk: Likewise.
31645         * modules/unictype/category-Sm: Likewise.
31646         * modules/unictype/category-So: Likewise.
31647         * modules/unictype/category-Z: Likewise.
31648         * modules/unictype/category-Zl: Likewise.
31649         * modules/unictype/category-Zp: Likewise.
31650         * modules/unictype/category-Zs: Likewise.
31651         * modules/unictype/category-and: Likewise.
31652         * modules/unictype/category-and-not: Likewise.
31653         * modules/unictype/category-byname: Likewise.
31654         * modules/unictype/category-name: Likewise.
31655         * modules/unictype/category-none: Likewise.
31656         * modules/unictype/category-of: Likewise.
31657         * modules/unictype/category-or: Likewise.
31658         * modules/unictype/category-test: Likewise.
31659         * modules/unictype/combining-class: Likewise.
31660         * modules/unictype/ctype-alnum: Likewise.
31661         * modules/unictype/ctype-alpha: Likewise.
31662         * modules/unictype/ctype-blank: Likewise.
31663         * modules/unictype/ctype-cntrl: Likewise.
31664         * modules/unictype/ctype-digit: Likewise.
31665         * modules/unictype/ctype-graph: Likewise.
31666         * modules/unictype/ctype-lower: Likewise.
31667         * modules/unictype/ctype-print: Likewise.
31668         * modules/unictype/ctype-punct: Likewise.
31669         * modules/unictype/ctype-space: Likewise.
31670         * modules/unictype/ctype-upper: Likewise.
31671         * modules/unictype/ctype-xdigit: Likewise.
31672         * modules/unictype/decimal-digit: Likewise.
31673         * modules/unictype/digit: Likewise.
31674         * modules/unictype/mirror: Likewise.
31675         * modules/unictype/numeric: Likewise.
31676         * modules/unictype/property-alphabetic: Likewise.
31677         * modules/unictype/property-ascii-hex-digit: Likewise.
31678         * modules/unictype/property-bidi-arabic-digit: Likewise.
31679         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31680         * modules/unictype/property-bidi-block-separator: Likewise.
31681         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31682         * modules/unictype/property-bidi-common-separator: Likewise.
31683         * modules/unictype/property-bidi-control: Likewise.
31684         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31685         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31686         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31687         * modules/unictype/property-bidi-european-digit: Likewise.
31688         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31689         * modules/unictype/property-bidi-left-to-right: Likewise.
31690         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31691         * modules/unictype/property-bidi-other-neutral: Likewise.
31692         * modules/unictype/property-bidi-pdf: Likewise.
31693         * modules/unictype/property-bidi-segment-separator: Likewise.
31694         * modules/unictype/property-bidi-whitespace: Likewise.
31695         * modules/unictype/property-byname: Likewise.
31696         * modules/unictype/property-combining: Likewise.
31697         * modules/unictype/property-composite: Likewise.
31698         * modules/unictype/property-currency-symbol: Likewise.
31699         * modules/unictype/property-dash: Likewise.
31700         * modules/unictype/property-decimal-digit: Likewise.
31701         * modules/unictype/property-default-ignorable-code-point: Likewise.
31702         * modules/unictype/property-deprecated: Likewise.
31703         * modules/unictype/property-diacritic: Likewise.
31704         * modules/unictype/property-extender: Likewise.
31705         * modules/unictype/property-format-control: Likewise.
31706         * modules/unictype/property-grapheme-base: Likewise.
31707         * modules/unictype/property-grapheme-extend: Likewise.
31708         * modules/unictype/property-grapheme-link: Likewise.
31709         * modules/unictype/property-hex-digit: Likewise.
31710         * modules/unictype/property-hyphen: Likewise.
31711         * modules/unictype/property-id-continue: Likewise.
31712         * modules/unictype/property-id-start: Likewise.
31713         * modules/unictype/property-ideographic: Likewise.
31714         * modules/unictype/property-ids-binary-operator: Likewise.
31715         * modules/unictype/property-ids-trinary-operator: Likewise.
31716         * modules/unictype/property-ignorable-control: Likewise.
31717         * modules/unictype/property-iso-control: Likewise.
31718         * modules/unictype/property-join-control: Likewise.
31719         * modules/unictype/property-left-of-pair: Likewise.
31720         * modules/unictype/property-line-separator: Likewise.
31721         * modules/unictype/property-logical-order-exception: Likewise.
31722         * modules/unictype/property-lowercase: Likewise.
31723         * modules/unictype/property-math: Likewise.
31724         * modules/unictype/property-non-break: Likewise.
31725         * modules/unictype/property-not-a-character: Likewise.
31726         * modules/unictype/property-numeric: Likewise.
31727         * modules/unictype/property-other-alphabetic: Likewise.
31728         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31729         * modules/unictype/property-other-grapheme-extend: Likewise.
31730         * modules/unictype/property-other-id-continue: Likewise.
31731         * modules/unictype/property-other-id-start: Likewise.
31732         * modules/unictype/property-other-lowercase: Likewise.
31733         * modules/unictype/property-other-math: Likewise.
31734         * modules/unictype/property-other-uppercase: Likewise.
31735         * modules/unictype/property-paired-punctuation: Likewise.
31736         * modules/unictype/property-paragraph-separator: Likewise.
31737         * modules/unictype/property-pattern-syntax: Likewise.
31738         * modules/unictype/property-pattern-white-space: Likewise.
31739         * modules/unictype/property-private-use: Likewise.
31740         * modules/unictype/property-punctuation: Likewise.
31741         * modules/unictype/property-quotation-mark: Likewise.
31742         * modules/unictype/property-radical: Likewise.
31743         * modules/unictype/property-sentence-terminal: Likewise.
31744         * modules/unictype/property-soft-dotted: Likewise.
31745         * modules/unictype/property-space: Likewise.
31746         * modules/unictype/property-terminal-punctuation: Likewise.
31747         * modules/unictype/property-test: Likewise.
31748         * modules/unictype/property-titlecase: Likewise.
31749         * modules/unictype/property-unassigned-code-value: Likewise.
31750         * modules/unictype/property-unified-ideograph: Likewise.
31751         * modules/unictype/property-uppercase: Likewise.
31752         * modules/unictype/property-variation-selector: Likewise.
31753         * modules/unictype/property-white-space: Likewise.
31754         * modules/unictype/property-xid-continue: Likewise.
31755         * modules/unictype/property-xid-start: Likewise.
31756         * modules/unictype/property-zero-width: Likewise.
31757         * modules/unictype/scripts: Likewise.
31758         * modules/unictype/syntax-c-ident: Likewise.
31759         * modules/unictype/syntax-c-whitespace: Likewise.
31760         * modules/unictype/syntax-java-ident: Likewise.
31761         * modules/unictype/syntax-java-whitespace: Likewise.
31762         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31763         * modules/unilbrk/u8-width-linebreaks: Likewise.
31764         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31765         * modules/unilbrk/u16-width-linebreaks: Likewise.
31766         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31767         * modules/unilbrk/u32-width-linebreaks: Likewise.
31768         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31769         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31770         * modules/uniname/uniname: Likewise.
31771         * modules/uninorm/canonical-decomposition: Likewise.
31772         * modules/uninorm/composition: Likewise.
31773         * modules/uninorm/decomposing-form: Likewise.
31774         * modules/uninorm/decomposition: Likewise.
31775         * modules/uninorm/filter: Likewise.
31776         * modules/uninorm/nfc: Likewise.
31777         * modules/uninorm/nfd: Likewise.
31778         * modules/uninorm/nfkc: Likewise.
31779         * modules/uninorm/nfkd: Likewise.
31780         * modules/uninorm/u8-normalize: Likewise.
31781         * modules/uninorm/u8-normcmp: Likewise.
31782         * modules/uninorm/u8-normcoll: Likewise.
31783         * modules/uninorm/u8-normxfrm: Likewise.
31784         * modules/uninorm/u16-normalize: Likewise.
31785         * modules/uninorm/u16-normcmp: Likewise.
31786         * modules/uninorm/u16-normcoll: Likewise.
31787         * modules/uninorm/u16-normxfrm: Likewise.
31788         * modules/uninorm/u32-normalize: Likewise.
31789         * modules/uninorm/u32-normcmp: Likewise.
31790         * modules/uninorm/u32-normcoll: Likewise.
31791         * modules/uninorm/u32-normxfrm: Likewise.
31792         * modules/unistdio/u8-asnprintf: Likewise.
31793         * modules/unistdio/u8-asprintf: Likewise.
31794         * modules/unistdio/u8-snprintf: Likewise.
31795         * modules/unistdio/u8-sprintf: Likewise.
31796         * modules/unistdio/u8-u8-asnprintf: Likewise.
31797         * modules/unistdio/u8-u8-asprintf: Likewise.
31798         * modules/unistdio/u8-u8-snprintf: Likewise.
31799         * modules/unistdio/u8-u8-sprintf: Likewise.
31800         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31801         * modules/unistdio/u8-u8-vasprintf: Likewise.
31802         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31803         * modules/unistdio/u8-u8-vsprintf: Likewise.
31804         * modules/unistdio/u8-vasnprintf: Likewise.
31805         * modules/unistdio/u8-vasprintf: Likewise.
31806         * modules/unistdio/u8-vsnprintf: Likewise.
31807         * modules/unistdio/u8-vsprintf: Likewise.
31808         * modules/unistdio/u16-asnprintf: Likewise.
31809         * modules/unistdio/u16-asprintf: Likewise.
31810         * modules/unistdio/u16-snprintf: Likewise.
31811         * modules/unistdio/u16-sprintf: Likewise.
31812         * modules/unistdio/u16-u16-asnprintf: Likewise.
31813         * modules/unistdio/u16-u16-asprintf: Likewise.
31814         * modules/unistdio/u16-u16-snprintf: Likewise.
31815         * modules/unistdio/u16-u16-sprintf: Likewise.
31816         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31817         * modules/unistdio/u16-u16-vasprintf: Likewise.
31818         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31819         * modules/unistdio/u16-u16-vsprintf: Likewise.
31820         * modules/unistdio/u16-vasnprintf: Likewise.
31821         * modules/unistdio/u16-vasprintf: Likewise.
31822         * modules/unistdio/u16-vsnprintf: Likewise.
31823         * modules/unistdio/u16-vsprintf: Likewise.
31824         * modules/unistdio/u32-asnprintf: Likewise.
31825         * modules/unistdio/u32-asprintf: Likewise.
31826         * modules/unistdio/u32-snprintf: Likewise.
31827         * modules/unistdio/u32-sprintf: Likewise.
31828         * modules/unistdio/u32-u32-asnprintf: Likewise.
31829         * modules/unistdio/u32-u32-asprintf: Likewise.
31830         * modules/unistdio/u32-u32-snprintf: Likewise.
31831         * modules/unistdio/u32-u32-sprintf: Likewise.
31832         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31833         * modules/unistdio/u32-u32-vasprintf: Likewise.
31834         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31835         * modules/unistdio/u32-u32-vsprintf: Likewise.
31836         * modules/unistdio/u32-vasnprintf: Likewise.
31837         * modules/unistdio/u32-vasprintf: Likewise.
31838         * modules/unistdio/u32-vsnprintf: Likewise.
31839         * modules/unistdio/u32-vsprintf: Likewise.
31840         * modules/unistdio/ulc-asnprintf: Likewise.
31841         * modules/unistdio/ulc-asprintf: Likewise.
31842         * modules/unistdio/ulc-fprintf: Likewise.
31843         * modules/unistdio/ulc-snprintf: Likewise.
31844         * modules/unistdio/ulc-sprintf: Likewise.
31845         * modules/unistdio/ulc-vasnprintf: Likewise.
31846         * modules/unistdio/ulc-vasprintf: Likewise.
31847         * modules/unistdio/ulc-vfprintf: Likewise.
31848         * modules/unistdio/ulc-vsnprintf: Likewise.
31849         * modules/unistdio/ulc-vsprintf: Likewise.
31850         * modules/unistr/u8-check: Likewise.
31851         * modules/unistr/u8-chr: Likewise.
31852         * modules/unistr/u8-cmp: Likewise.
31853         * modules/unistr/u8-cmp2: Likewise.
31854         * modules/unistr/u8-cpy: Likewise.
31855         * modules/unistr/u8-cpy-alloc: Likewise.
31856         * modules/unistr/u8-endswith: Likewise.
31857         * modules/unistr/u8-mblen: Likewise.
31858         * modules/unistr/u8-mbsnlen: Likewise.
31859         * modules/unistr/u8-mbtouc: Likewise.
31860         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31861         * modules/unistr/u8-mbtoucr: Likewise.
31862         * modules/unistr/u8-move: Likewise.
31863         * modules/unistr/u8-next: Likewise.
31864         * modules/unistr/u8-prev: Likewise.
31865         * modules/unistr/u8-set: Likewise.
31866         * modules/unistr/u8-startswith: Likewise.
31867         * modules/unistr/u8-stpcpy: Likewise.
31868         * modules/unistr/u8-stpncpy: Likewise.
31869         * modules/unistr/u8-strcat: Likewise.
31870         * modules/unistr/u8-strchr: Likewise.
31871         * modules/unistr/u8-strcmp: Likewise.
31872         * modules/unistr/u8-strcoll: Likewise.
31873         * modules/unistr/u8-strcpy: Likewise.
31874         * modules/unistr/u8-strcspn: Likewise.
31875         * modules/unistr/u8-strdup: Likewise.
31876         * modules/unistr/u8-strlen: Likewise.
31877         * modules/unistr/u8-strmblen: Likewise.
31878         * modules/unistr/u8-strmbtouc: Likewise.
31879         * modules/unistr/u8-strncat: Likewise.
31880         * modules/unistr/u8-strncmp: Likewise.
31881         * modules/unistr/u8-strncpy: Likewise.
31882         * modules/unistr/u8-strnlen: Likewise.
31883         * modules/unistr/u8-strpbrk: Likewise.
31884         * modules/unistr/u8-strrchr: Likewise.
31885         * modules/unistr/u8-strspn: Likewise.
31886         * modules/unistr/u8-strstr: Likewise.
31887         * modules/unistr/u8-strtok: Likewise.
31888         * modules/unistr/u8-to-u16: Likewise.
31889         * modules/unistr/u8-to-u32: Likewise.
31890         * modules/unistr/u8-uctomb: Likewise.
31891         * modules/unistr/u16-check: Likewise.
31892         * modules/unistr/u16-chr: Likewise.
31893         * modules/unistr/u16-cmp: Likewise.
31894         * modules/unistr/u16-cmp2: Likewise.
31895         * modules/unistr/u16-cpy: Likewise.
31896         * modules/unistr/u16-cpy-alloc: Likewise.
31897         * modules/unistr/u16-endswith: Likewise.
31898         * modules/unistr/u16-mblen: Likewise.
31899         * modules/unistr/u16-mbsnlen: Likewise.
31900         * modules/unistr/u16-mbtouc: Likewise.
31901         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31902         * modules/unistr/u16-mbtoucr: Likewise.
31903         * modules/unistr/u16-move: Likewise.
31904         * modules/unistr/u16-next: Likewise.
31905         * modules/unistr/u16-prev: Likewise.
31906         * modules/unistr/u16-set: Likewise.
31907         * modules/unistr/u16-startswith: Likewise.
31908         * modules/unistr/u16-stpcpy: Likewise.
31909         * modules/unistr/u16-stpncpy: Likewise.
31910         * modules/unistr/u16-strcat: Likewise.
31911         * modules/unistr/u16-strchr: Likewise.
31912         * modules/unistr/u16-strcmp: Likewise.
31913         * modules/unistr/u16-strcoll: Likewise.
31914         * modules/unistr/u16-strcpy: Likewise.
31915         * modules/unistr/u16-strcspn: Likewise.
31916         * modules/unistr/u16-strdup: Likewise.
31917         * modules/unistr/u16-strlen: Likewise.
31918         * modules/unistr/u16-strmblen: Likewise.
31919         * modules/unistr/u16-strmbtouc: Likewise.
31920         * modules/unistr/u16-strncat: Likewise.
31921         * modules/unistr/u16-strncmp: Likewise.
31922         * modules/unistr/u16-strncpy: Likewise.
31923         * modules/unistr/u16-strnlen: Likewise.
31924         * modules/unistr/u16-strpbrk: Likewise.
31925         * modules/unistr/u16-strrchr: Likewise.
31926         * modules/unistr/u16-strspn: Likewise.
31927         * modules/unistr/u16-strstr: Likewise.
31928         * modules/unistr/u16-strtok: Likewise.
31929         * modules/unistr/u16-to-u32: Likewise.
31930         * modules/unistr/u16-to-u8: Likewise.
31931         * modules/unistr/u16-uctomb: Likewise.
31932         * modules/unistr/u32-check: Likewise.
31933         * modules/unistr/u32-chr: Likewise.
31934         * modules/unistr/u32-cmp: Likewise.
31935         * modules/unistr/u32-cmp2: Likewise.
31936         * modules/unistr/u32-cpy: Likewise.
31937         * modules/unistr/u32-cpy-alloc: Likewise.
31938         * modules/unistr/u32-endswith: Likewise.
31939         * modules/unistr/u32-mblen: Likewise.
31940         * modules/unistr/u32-mbsnlen: Likewise.
31941         * modules/unistr/u32-mbtouc: Likewise.
31942         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31943         * modules/unistr/u32-mbtoucr: Likewise.
31944         * modules/unistr/u32-move: Likewise.
31945         * modules/unistr/u32-next: Likewise.
31946         * modules/unistr/u32-prev: Likewise.
31947         * modules/unistr/u32-set: Likewise.
31948         * modules/unistr/u32-startswith: Likewise.
31949         * modules/unistr/u32-stpcpy: Likewise.
31950         * modules/unistr/u32-stpncpy: Likewise.
31951         * modules/unistr/u32-strcat: Likewise.
31952         * modules/unistr/u32-strchr: Likewise.
31953         * modules/unistr/u32-strcmp: Likewise.
31954         * modules/unistr/u32-strcoll: Likewise.
31955         * modules/unistr/u32-strcpy: Likewise.
31956         * modules/unistr/u32-strcspn: Likewise.
31957         * modules/unistr/u32-strdup: Likewise.
31958         * modules/unistr/u32-strlen: Likewise.
31959         * modules/unistr/u32-strmblen: Likewise.
31960         * modules/unistr/u32-strmbtouc: Likewise.
31961         * modules/unistr/u32-strncat: Likewise.
31962         * modules/unistr/u32-strncmp: Likewise.
31963         * modules/unistr/u32-strncpy: Likewise.
31964         * modules/unistr/u32-strnlen: Likewise.
31965         * modules/unistr/u32-strpbrk: Likewise.
31966         * modules/unistr/u32-strrchr: Likewise.
31967         * modules/unistr/u32-strspn: Likewise.
31968         * modules/unistr/u32-strstr: Likewise.
31969         * modules/unistr/u32-strtok: Likewise.
31970         * modules/unistr/u32-to-u16: Likewise.
31971         * modules/unistr/u32-to-u8: Likewise.
31972         * modules/unistr/u32-uctomb: Likewise.
31973         * modules/uniwbrk/u8-wordbreaks: Likewise.
31974         * modules/uniwbrk/u16-wordbreaks: Likewise.
31975         * modules/uniwbrk/u32-wordbreaks: Likewise.
31976         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31977         * modules/uniwbrk/wordbreak-property: Likewise.
31978         * modules/uniwidth/u8-strwidth: Likewise.
31979         * modules/uniwidth/u8-width: Likewise.
31980         * modules/uniwidth/u16-strwidth: Likewise.
31981         * modules/uniwidth/u16-width: Likewise.
31982         * modules/uniwidth/u32-strwidth: Likewise.
31983         * modules/uniwidth/u32-width: Likewise.
31984         * modules/uniwidth/width: Likewise.
31985         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31986         with $(LIBUNISTRING).
31987         * modules/unicase/ignorable-tests: Likewise.
31988         * modules/unicase/locale-language-tests: Likewise.
31989         * modules/unicase/tolower-tests: Likewise.
31990         * modules/unicase/totitle-tests: Likewise.
31991         * modules/unicase/toupper-tests: Likewise.
31992         * modules/unicase/u8-casecmp-tests: Likewise.
31993         * modules/unicase/u8-casecoll-tests: Likewise.
31994         * modules/unicase/u8-casefold-tests: Likewise.
31995         * modules/unicase/u8-is-cased-tests: Likewise.
31996         * modules/unicase/u8-is-casefolded-tests: Likewise.
31997         * modules/unicase/u8-is-lowercase-tests: Likewise.
31998         * modules/unicase/u8-is-titlecase-tests: Likewise.
31999         * modules/unicase/u8-is-uppercase-tests: Likewise.
32000         * modules/unicase/u8-tolower-tests: Likewise.
32001         * modules/unicase/u8-totitle-tests: Likewise.
32002         * modules/unicase/u8-toupper-tests: Likewise.
32003         * modules/unicase/u16-casecmp-tests: Likewise.
32004         * modules/unicase/u16-casecoll-tests: Likewise.
32005         * modules/unicase/u16-casefold-tests: Likewise.
32006         * modules/unicase/u16-is-cased-tests: Likewise.
32007         * modules/unicase/u16-is-casefolded-tests: Likewise.
32008         * modules/unicase/u16-is-lowercase-tests: Likewise.
32009         * modules/unicase/u16-is-titlecase-tests: Likewise.
32010         * modules/unicase/u16-is-uppercase-tests: Likewise.
32011         * modules/unicase/u16-tolower-tests: Likewise.
32012         * modules/unicase/u16-totitle-tests: Likewise.
32013         * modules/unicase/u16-toupper-tests: Likewise.
32014         * modules/unicase/u32-casecmp-tests: Likewise.
32015         * modules/unicase/u32-casecoll-tests: Likewise.
32016         * modules/unicase/u32-casefold-tests: Likewise.
32017         * modules/unicase/u32-is-cased-tests: Likewise.
32018         * modules/unicase/u32-is-casefolded-tests: Likewise.
32019         * modules/unicase/u32-is-lowercase-tests: Likewise.
32020         * modules/unicase/u32-is-titlecase-tests: Likewise.
32021         * modules/unicase/u32-is-uppercase-tests: Likewise.
32022         * modules/unicase/u32-tolower-tests: Likewise.
32023         * modules/unicase/u32-totitle-tests: Likewise.
32024         * modules/unicase/u32-toupper-tests: Likewise.
32025         * modules/unicase/ulc-casecmp-tests: Likewise.
32026         * modules/unicase/ulc-casecoll-tests: Likewise.
32027         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32028         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32029         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32030         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32031         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32032         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32033         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32034         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32035         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32036         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32037         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32038         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32039         * modules/unictype/bidicategory-byname-tests: Likewise.
32040         * modules/unictype/bidicategory-name-tests: Likewise.
32041         * modules/unictype/bidicategory-of-tests: Likewise.
32042         * modules/unictype/bidicategory-test-tests: Likewise.
32043         * modules/unictype/block-list-tests: Likewise.
32044         * modules/unictype/block-of-tests: Likewise.
32045         * modules/unictype/block-test-tests: Likewise.
32046         * modules/unictype/category-C-tests: Likewise.
32047         * modules/unictype/category-Cc-tests: Likewise.
32048         * modules/unictype/category-Cf-tests: Likewise.
32049         * modules/unictype/category-Cn-tests: Likewise.
32050         * modules/unictype/category-Co-tests: Likewise.
32051         * modules/unictype/category-Cs-tests: Likewise.
32052         * modules/unictype/category-L-tests: Likewise.
32053         * modules/unictype/category-Ll-tests: Likewise.
32054         * modules/unictype/category-Lm-tests: Likewise.
32055         * modules/unictype/category-Lo-tests: Likewise.
32056         * modules/unictype/category-Lt-tests: Likewise.
32057         * modules/unictype/category-Lu-tests: Likewise.
32058         * modules/unictype/category-M-tests: Likewise.
32059         * modules/unictype/category-Mc-tests: Likewise.
32060         * modules/unictype/category-Me-tests: Likewise.
32061         * modules/unictype/category-Mn-tests: Likewise.
32062         * modules/unictype/category-N-tests: Likewise.
32063         * modules/unictype/category-Nd-tests: Likewise.
32064         * modules/unictype/category-Nl-tests: Likewise.
32065         * modules/unictype/category-No-tests: Likewise.
32066         * modules/unictype/category-P-tests: Likewise.
32067         * modules/unictype/category-Pc-tests: Likewise.
32068         * modules/unictype/category-Pd-tests: Likewise.
32069         * modules/unictype/category-Pe-tests: Likewise.
32070         * modules/unictype/category-Pf-tests: Likewise.
32071         * modules/unictype/category-Pi-tests: Likewise.
32072         * modules/unictype/category-Po-tests: Likewise.
32073         * modules/unictype/category-Ps-tests: Likewise.
32074         * modules/unictype/category-S-tests: Likewise.
32075         * modules/unictype/category-Sc-tests: Likewise.
32076         * modules/unictype/category-Sk-tests: Likewise.
32077         * modules/unictype/category-Sm-tests: Likewise.
32078         * modules/unictype/category-So-tests: Likewise.
32079         * modules/unictype/category-Z-tests: Likewise.
32080         * modules/unictype/category-Zl-tests: Likewise.
32081         * modules/unictype/category-Zp-tests: Likewise.
32082         * modules/unictype/category-Zs-tests: Likewise.
32083         * modules/unictype/category-and-not-tests: Likewise.
32084         * modules/unictype/category-and-tests: Likewise.
32085         * modules/unictype/category-byname-tests: Likewise.
32086         * modules/unictype/category-name-tests: Likewise.
32087         * modules/unictype/category-none-tests: Likewise.
32088         * modules/unictype/category-of-tests: Likewise.
32089         * modules/unictype/category-or-tests: Likewise.
32090         * modules/unictype/category-test-withtable-tests: Likewise.
32091         * modules/unictype/combining-class-tests: Likewise.
32092         * modules/unictype/ctype-alnum-tests: Likewise.
32093         * modules/unictype/ctype-alpha-tests: Likewise.
32094         * modules/unictype/ctype-blank-tests: Likewise.
32095         * modules/unictype/ctype-cntrl-tests: Likewise.
32096         * modules/unictype/ctype-digit-tests: Likewise.
32097         * modules/unictype/ctype-graph-tests: Likewise.
32098         * modules/unictype/ctype-lower-tests: Likewise.
32099         * modules/unictype/ctype-print-tests: Likewise.
32100         * modules/unictype/ctype-punct-tests: Likewise.
32101         * modules/unictype/ctype-space-tests: Likewise.
32102         * modules/unictype/ctype-upper-tests: Likewise.
32103         * modules/unictype/ctype-xdigit-tests: Likewise.
32104         * modules/unictype/decimal-digit-tests: Likewise.
32105         * modules/unictype/digit-tests: Likewise.
32106         * modules/unictype/mirror-tests: Likewise.
32107         * modules/unictype/numeric-tests: Likewise.
32108         * modules/unictype/property-alphabetic-tests: Likewise.
32109         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32110         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32111         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32112         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32113         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32114         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32115         * modules/unictype/property-bidi-control-tests: Likewise.
32116         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32117         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32118         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32119         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32120         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32121         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32122         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32123         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32124         * modules/unictype/property-bidi-pdf-tests: Likewise.
32125         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32126         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32127         * modules/unictype/property-byname-tests: Likewise.
32128         * modules/unictype/property-combining-tests: Likewise.
32129         * modules/unictype/property-composite-tests: Likewise.
32130         * modules/unictype/property-currency-symbol-tests: Likewise.
32131         * modules/unictype/property-dash-tests: Likewise.
32132         * modules/unictype/property-decimal-digit-tests: Likewise.
32133         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32134         * modules/unictype/property-deprecated-tests: Likewise.
32135         * modules/unictype/property-diacritic-tests: Likewise.
32136         * modules/unictype/property-extender-tests: Likewise.
32137         * modules/unictype/property-format-control-tests: Likewise.
32138         * modules/unictype/property-grapheme-base-tests: Likewise.
32139         * modules/unictype/property-grapheme-extend-tests: Likewise.
32140         * modules/unictype/property-grapheme-link-tests: Likewise.
32141         * modules/unictype/property-hex-digit-tests: Likewise.
32142         * modules/unictype/property-hyphen-tests: Likewise.
32143         * modules/unictype/property-id-continue-tests: Likewise.
32144         * modules/unictype/property-id-start-tests: Likewise.
32145         * modules/unictype/property-ideographic-tests: Likewise.
32146         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32147         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32148         * modules/unictype/property-ignorable-control-tests: Likewise.
32149         * modules/unictype/property-iso-control-tests: Likewise.
32150         * modules/unictype/property-join-control-tests: Likewise.
32151         * modules/unictype/property-left-of-pair-tests: Likewise.
32152         * modules/unictype/property-line-separator-tests: Likewise.
32153         * modules/unictype/property-logical-order-exception-tests: Likewise.
32154         * modules/unictype/property-lowercase-tests: Likewise.
32155         * modules/unictype/property-math-tests: Likewise.
32156         * modules/unictype/property-non-break-tests: Likewise.
32157         * modules/unictype/property-not-a-character-tests: Likewise.
32158         * modules/unictype/property-numeric-tests: Likewise.
32159         * modules/unictype/property-other-alphabetic-tests: Likewise.
32160         * modules/unictype/property-other-default-ignorable-code-point-tests:
32161         Likewise.
32162         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32163         * modules/unictype/property-other-id-continue-tests: Likewise.
32164         * modules/unictype/property-other-id-start-tests: Likewise.
32165         * modules/unictype/property-other-lowercase-tests: Likewise.
32166         * modules/unictype/property-other-math-tests: Likewise.
32167         * modules/unictype/property-other-uppercase-tests: Likewise.
32168         * modules/unictype/property-paired-punctuation-tests: Likewise.
32169         * modules/unictype/property-paragraph-separator-tests: Likewise.
32170         * modules/unictype/property-pattern-syntax-tests: Likewise.
32171         * modules/unictype/property-pattern-white-space-tests: Likewise.
32172         * modules/unictype/property-private-use-tests: Likewise.
32173         * modules/unictype/property-punctuation-tests: Likewise.
32174         * modules/unictype/property-quotation-mark-tests: Likewise.
32175         * modules/unictype/property-radical-tests: Likewise.
32176         * modules/unictype/property-sentence-terminal-tests: Likewise.
32177         * modules/unictype/property-soft-dotted-tests: Likewise.
32178         * modules/unictype/property-space-tests: Likewise.
32179         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32180         * modules/unictype/property-test-tests: Likewise.
32181         * modules/unictype/property-titlecase-tests: Likewise.
32182         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32183         * modules/unictype/property-unified-ideograph-tests: Likewise.
32184         * modules/unictype/property-uppercase-tests: Likewise.
32185         * modules/unictype/property-variation-selector-tests: Likewise.
32186         * modules/unictype/property-white-space-tests: Likewise.
32187         * modules/unictype/property-xid-continue-tests: Likewise.
32188         * modules/unictype/property-xid-start-tests: Likewise.
32189         * modules/unictype/property-zero-width-tests: Likewise.
32190         * modules/unictype/scripts-tests: Likewise.
32191         * modules/unictype/syntax-c-ident-tests: Likewise.
32192         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32193         * modules/unictype/syntax-java-ident-tests: Likewise.
32194         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32195         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32196         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32197         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32198         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32199         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32200         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32201         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32202         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32203         * modules/uniname/uniname-tests: Likewise.
32204         * modules/uninorm/canonical-decomposition-tests: Likewise.
32205         * modules/uninorm/compat-decomposition-tests: Likewise.
32206         * modules/uninorm/composition-tests: Likewise.
32207         * modules/uninorm/decomposing-form-tests: Likewise.
32208         * modules/uninorm/decomposition-tests: Likewise.
32209         * modules/uninorm/filter-tests: Likewise.
32210         * modules/uninorm/nfc-tests: Likewise.
32211         * modules/uninorm/nfd-tests: Likewise.
32212         * modules/uninorm/nfkc-tests: Likewise.
32213         * modules/uninorm/nfkd-tests: Likewise.
32214         * modules/uninorm/u8-normcmp-tests: Likewise.
32215         * modules/uninorm/u8-normcoll-tests: Likewise.
32216         * modules/uninorm/u16-normcmp-tests: Likewise.
32217         * modules/uninorm/u16-normcoll-tests: Likewise.
32218         * modules/uninorm/u32-normcmp-tests: Likewise.
32219         * modules/uninorm/u32-normcoll-tests: Likewise.
32220         * modules/unistdio/u8-asnprintf-tests: Likewise.
32221         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32222         * modules/unistdio/u8-vasprintf-tests: Likewise.
32223         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32224         * modules/unistdio/u8-vsprintf-tests: Likewise.
32225         * modules/unistdio/u16-asnprintf-tests: Likewise.
32226         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32227         * modules/unistdio/u16-vasprintf-tests: Likewise.
32228         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32229         * modules/unistdio/u16-vsprintf-tests: Likewise.
32230         * modules/unistdio/u32-asnprintf-tests: Likewise.
32231         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32232         * modules/unistdio/u32-vasprintf-tests: Likewise.
32233         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32234         * modules/unistdio/u32-vsprintf-tests: Likewise.
32235         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32236         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32237         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32238         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32239         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32240         * modules/unistr/u8-check-tests: Likewise.
32241         * modules/unistr/u8-chr-tests: Likewise.
32242         * modules/unistr/u8-cmp-tests: Likewise.
32243         * modules/unistr/u8-cmp2-tests: Likewise.
32244         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32245         * modules/unistr/u8-cpy-tests: Likewise.
32246         * modules/unistr/u8-mblen-tests: Likewise.
32247         * modules/unistr/u8-mbsnlen-tests: Likewise.
32248         * modules/unistr/u8-mbtouc-tests: Likewise.
32249         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32250         * modules/unistr/u8-mbtoucr-tests: Likewise.
32251         * modules/unistr/u8-move-tests: Likewise.
32252         * modules/unistr/u8-next-tests: Likewise.
32253         * modules/unistr/u8-prev-tests: Likewise.
32254         * modules/unistr/u8-set-tests: Likewise.
32255         * modules/unistr/u8-stpcpy-tests: Likewise.
32256         * modules/unistr/u8-stpncpy-tests: Likewise.
32257         * modules/unistr/u8-strcat-tests: Likewise.
32258         * modules/unistr/u8-strcmp-tests: Likewise.
32259         * modules/unistr/u8-strcoll-tests: Likewise.
32260         * modules/unistr/u8-strcpy-tests: Likewise.
32261         * modules/unistr/u8-strdup-tests: Likewise.
32262         * modules/unistr/u8-strlen-tests: Likewise.
32263         * modules/unistr/u8-strmblen-tests: Likewise.
32264         * modules/unistr/u8-strmbtouc-tests: Likewise.
32265         * modules/unistr/u8-strncat-tests: Likewise.
32266         * modules/unistr/u8-strncmp-tests: Likewise.
32267         * modules/unistr/u8-strncpy-tests: Likewise.
32268         * modules/unistr/u8-strnlen-tests: Likewise.
32269         * modules/unistr/u8-to-u16-tests: Likewise.
32270         * modules/unistr/u8-to-u32-tests: Likewise.
32271         * modules/unistr/u8-uctomb-tests: Likewise.
32272         * modules/unistr/u16-check-tests: Likewise.
32273         * modules/unistr/u16-chr-tests: Likewise.
32274         * modules/unistr/u16-cmp-tests: Likewise.
32275         * modules/unistr/u16-cmp2-tests: Likewise.
32276         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32277         * modules/unistr/u16-cpy-tests: Likewise.
32278         * modules/unistr/u16-mblen-tests: Likewise.
32279         * modules/unistr/u16-mbsnlen-tests: Likewise.
32280         * modules/unistr/u16-mbtouc-tests: Likewise.
32281         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32282         * modules/unistr/u16-mbtoucr-tests: Likewise.
32283         * modules/unistr/u16-move-tests: Likewise.
32284         * modules/unistr/u16-next-tests: Likewise.
32285         * modules/unistr/u16-prev-tests: Likewise.
32286         * modules/unistr/u16-set-tests: Likewise.
32287         * modules/unistr/u16-stpcpy-tests: Likewise.
32288         * modules/unistr/u16-stpncpy-tests: Likewise.
32289         * modules/unistr/u16-strcat-tests: Likewise.
32290         * modules/unistr/u16-strcmp-tests: Likewise.
32291         * modules/unistr/u16-strcoll-tests: Likewise.
32292         * modules/unistr/u16-strcpy-tests: Likewise.
32293         * modules/unistr/u16-strdup-tests: Likewise.
32294         * modules/unistr/u16-strlen-tests: Likewise.
32295         * modules/unistr/u16-strmblen-tests: Likewise.
32296         * modules/unistr/u16-strmbtouc-tests: Likewise.
32297         * modules/unistr/u16-strncat-tests: Likewise.
32298         * modules/unistr/u16-strncmp-tests: Likewise.
32299         * modules/unistr/u16-strncpy-tests: Likewise.
32300         * modules/unistr/u16-strnlen-tests: Likewise.
32301         * modules/unistr/u16-to-u32-tests: Likewise.
32302         * modules/unistr/u16-to-u8-tests: Likewise.
32303         * modules/unistr/u16-uctomb-tests: Likewise.
32304         * modules/unistr/u32-check-tests: Likewise.
32305         * modules/unistr/u32-chr-tests: Likewise.
32306         * modules/unistr/u32-cmp-tests: Likewise.
32307         * modules/unistr/u32-cmp2-tests: Likewise.
32308         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32309         * modules/unistr/u32-cpy-tests: Likewise.
32310         * modules/unistr/u32-mblen-tests: Likewise.
32311         * modules/unistr/u32-mbsnlen-tests: Likewise.
32312         * modules/unistr/u32-mbtouc-tests: Likewise.
32313         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32314         * modules/unistr/u32-mbtoucr-tests: Likewise.
32315         * modules/unistr/u32-move-tests: Likewise.
32316         * modules/unistr/u32-next-tests: Likewise.
32317         * modules/unistr/u32-prev-tests: Likewise.
32318         * modules/unistr/u32-set-tests: Likewise.
32319         * modules/unistr/u32-stpcpy-tests: Likewise.
32320         * modules/unistr/u32-stpncpy-tests: Likewise.
32321         * modules/unistr/u32-strcat-tests: Likewise.
32322         * modules/unistr/u32-strcmp-tests: Likewise.
32323         * modules/unistr/u32-strcoll-tests: Likewise.
32324         * modules/unistr/u32-strcpy-tests: Likewise.
32325         * modules/unistr/u32-strdup-tests: Likewise.
32326         * modules/unistr/u32-strlen-tests: Likewise.
32327         * modules/unistr/u32-strmblen-tests: Likewise.
32328         * modules/unistr/u32-strmbtouc-tests: Likewise.
32329         * modules/unistr/u32-strncat-tests: Likewise.
32330         * modules/unistr/u32-strncmp-tests: Likewise.
32331         * modules/unistr/u32-strncpy-tests: Likewise.
32332         * modules/unistr/u32-strnlen-tests: Likewise.
32333         * modules/unistr/u32-to-u16-tests: Likewise.
32334         * modules/unistr/u32-to-u8-tests: Likewise.
32335         * modules/unistr/u32-uctomb-tests: Likewise.
32336         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32337         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32338         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32339         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32340         * modules/uniwidth/u8-strwidth-tests: Likewise.
32341         * modules/uniwidth/u8-width-tests: Likewise.
32342         * modules/uniwidth/u16-strwidth-tests: Likewise.
32343         * modules/uniwidth/u16-width-tests: Likewise.
32344         * modules/uniwidth/u32-strwidth-tests: Likewise.
32345         * modules/uniwidth/u32-width-tests: Likewise.
32346         * modules/uniwidth/width-tests: Likewise.
32347
32348 2010-05-18  Richard Jones  <rjones@redhat.com>
32349
32350         doc: users.txt: list hivex
32351         * users.txt: Add hivex.
32352
32353 2010-05-18  Richard Jones  <rjones@redhat.com>
32354
32355         doc: users.txt: list febootstrap
32356         * users.txt: Add febootstrap.
32357
32358 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32359
32360         bootstrap: fix an error when gnulib is not used as a git submodule
32361         * build-aux/bootstrap (gnulib_path): If its length is zero then
32362         assign "gnulib" to it.
32363         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32364
32365 2010-05-16  Bruno Haible  <bruno@clisp.org>
32366
32367         Avoid autoconf warnings about AM_ICONV.
32368         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32369         2.64.
32370
32371 2010-05-16  Bruno Haible  <bruno@clisp.org>
32372
32373         absolute-header: Make the macro usable in more situations.
32374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32375         from gl_ABSOLUTE_HEADER.
32376         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32377
32378 2010-05-16  James Youngman  <jay@gnu.org>
32379
32380         doc: update users.txt
32381         * users.txt: Add CSSC.
32382
32383 2010-05-16  Jim Meyering  <meyering@redhat.com>
32384
32385         init.sh: fix an error in the previous change; add more comments
32386         * tests/init.sh: Compare exit code in loop against 9, not 2.
32387         Patch by Bruno Haible.
32388         Make the two tests more similar by adding an empty "then" clause.
32389         Add comments.
32390
32391         init.sh: avoid unnecessary shell re-exec
32392         * tests/init.sh: Improve the re-exec-required check to first test the
32393         current shell.  If it passes the test, do not search for a shell that
32394         does pass, and do not re-exec.  This test is particularly contorted to
32395         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32396         of $(...) evokes a syntax error and causes immediate shell exit with
32397         status 2.  Bruno Haible reported that the re-exec made it impossible
32398         to single-step through any init.sh-using script.
32399
32400 2010-05-16  Bruno Haible  <bruno@clisp.org>
32401
32402         Fix collision between gnulib's and libintl's printf replacements.
32403         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32404         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32405         (printf): When using GNU C, map the __printf__ function to rpl_printf
32406         via __asm__. When not using GNU C, define rpl_printf instead of
32407         __printf__.
32408         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32409         commit.
32410         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32411         commit.
32412         * m4/asm-underscore.m4: New file.
32413         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32414         * modules/stdio (Files): Add m4/asm-underscore.m4.
32415         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32416         Reported by Ben Pfaff.
32417
32418 2010-05-16  Bruno Haible  <bruno@clisp.org>
32419
32420         verify: Avoid skipping the test on openSUSE 11.0.
32421         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32422
32423 2010-05-13  Bruno Haible  <bruno@clisp.org>
32424
32425         Avoid useless warnings from G++.
32426         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32427         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32428         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32429
32430 2010-05-11  Jim Meyering  <meyering@redhat.com>
32431
32432         maint.mk: tweak preceding change
32433         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32434         regexps tighter by anchoring at EOL, and make the new group "shy"
32435         for slightly decreased overhead.
32436
32437 2010-05-11  Eric Blake  <eblake@redhat.com>
32438
32439         maint.mk: gnulib doesn't guarantee NSIG
32440         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32441
32442 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32443
32444         test-pwrite.c: Remove unused variable declaration.
32445         * tests/test-pwrite.c (main): Remove read_buf declaration.
32446
32447         Remove useless test-pwrite.sh file.
32448         * tests/test-pwrite.sh: Delete file.
32449         * modules/pwrite-tests: Remove references.
32450         Reported by Bruno Haible.
32451
32452 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32453
32454         init.sh: fix a typo
32455         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32456
32457 2010-05-10  Jim Meyering  <meyering@redhat.com>
32458
32459         maint.mk: avoid using a temporary file in the always-defined-macros check
32460         * top/maint.mk (.re-defmac): Remove rule.
32461         (gl_trap_): Remove definition.
32462         (sc_prohibit_always-defined_macros): Rewrite not to create and
32463         depend on a temporary file.  Instead, depend on GNU grep's ability
32464         to read a list of regular expressions from stdin when given "-f -".
32465
32466 2010-05-09  Bruno Haible  <bruno@clisp.org>
32467
32468         Update to GNU gettext 0.18, part 1.
32469         * m4/gettext.m4: Update to GNU gettext 0.18.
32470         * m4/intl.m4: Likewise.
32471         * m4/po.m4: Likewise.
32472         * modules/gettext (Files): Add m4/fcntl-o.m4.
32473         (configure.ac): Require gettext infrastructure from version 0.18.
32474
32475 2010-05-09  Jim Meyering  <meyering@redhat.com>
32476
32477         init.sh: enable MALLOC_PERTURB_
32478         * tests/init.sh: Enable glibc's malloc-perturbing option.
32479
32480         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32481         With my recent change in init.sh from the two-line form:
32482             -#   : ${srcdir=.}
32483             -#   . "$srcdir/init.sh"; path_prepend_ .
32484             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32485         I noticed that using the one-line form would cause this test
32486         to fail with a false-positive, or to stop working altogether,
32487         depending on whether help-version changed or all the tests did.
32488         * top/maint.mk (_hv_regex): Remove this definition.
32489         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32490         (_hv_regex_strong): Use a stronger regex to check for conformance.
32491         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32492         Give a separate diagnostic for lack of conforming use.
32493
32494         maint.mk: prohibit definition of symbols defined by gnulib
32495         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32496         definition of symbols defined by gnulib.
32497
32498 2010-05-09  Bruno Haible  <bruno@clisp.org>
32499
32500         acl: Avoid test failure on Cygwin-hosted mingw.
32501         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32502
32503 2010-05-09  Bruno Haible  <bruno@clisp.org>
32504
32505         error: Use system's fcntl function.
32506         * lib/error.c (fcntl): Undefine.
32507
32508 2010-05-09  Jim Meyering  <meyering@redhat.com>
32509
32510         verify: adjust formatting to be more consistent
32511         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32512         argument-list '('s, and after one comma.
32513
32514 2010-05-09  Bruno Haible  <bruno@clisp.org>
32515
32516         error: More reliable output on mingw.
32517         * lib/error.c: Include <windows.h>.
32518         (is_open): New function.
32519         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32520         defined.
32521
32522 2010-05-09  Bruno Haible  <bruno@clisp.org>
32523
32524         vasnprintf: Fix syntax errors in libintl build on mingw.
32525         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32526         pad_ourselves and prec_ourselves after use.
32527
32528 2010-05-08  Bruno Haible  <bruno@clisp.org>
32529
32530         * lib/config.charset: Update comments for Cygwin 1.7.
32531         * lib/localcharset.c: Likewise.
32532
32533 2010-05-07  Jim Meyering  <meyering@redhat.com>
32534
32535         init.sh: improve comments
32536         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32537         . "${srcdir=.}/init.sh"; path_prepend_ .
32538         Add a note about path_prepend_ and the alternative of using
32539         TESTS_ENVIRONMENT.
32540
32541 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32542
32543         exclude: Unescape hashed patterns in wildcard mode.
32544         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32545         to the hash list.
32546         * tests/test-exclude8.sh: New test case.
32547         * modules/exclude-tests: Add new test.
32548
32549 2010-05-05  Eric Blake  <eblake@redhat.com>
32550
32551         verify: automate tests
32552         * modules/verify-tests: New module.
32553         * tests/test-verify.sh: New file.
32554         * tests/test-verify.c: Guard each negative test with a unique id.
32555         Also avoid warning about unused left hand of comma expressions.
32556
32557 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32558
32559         Further improvements to verify.h, suggested by Eric Blake.
32560         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32561         the GL_* versions, to avoid collision with OpenGL.
32562         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32563         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32564         than testing merely whether it's defined.
32565
32566         Modify verify.h to pacify gcc -Wredundant_decls.
32567         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32568         These use the prefix "GL_" since they're likely to be useful elsewhere.
32569         We may need to break them out into a different .h file.
32570         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32571         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32572         of verify_function__.
32573
32574 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32575
32576         Tests for module pwrite.
32577         * modules/pwrite-tests: New file.
32578         * tests/test-pwrite.sh: New file.
32579         * tests/test-pwrite.c: New file.
32580
32581         New module pwrite.
32582         * lib/unistd.in.h (pwrite): New declaration.
32583         * lib/pwrite.c: New file, from glibc with modifications.
32584         * m4/pwrite.m4: New file.
32585         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32586         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32587         REPLACE_PWRITE.
32588         * modules/pwrite: New file.
32589         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32590         REPLACE_PWRITE.
32591         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32592         * doc/posix-functions/pwrite.texi: Mention the new module.
32593
32594 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32595
32596         pread: Update documentation.
32597         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32598
32599 2010-05-04  Eric Blake  <eblake@redhat.com>
32600
32601         docs: update cygwin progress
32602         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32603         this bug.
32604         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32605         Added in cygwin 1.7.2.
32606         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32607         Likewise.
32608         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32609         Likewise.
32610         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32611         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32612         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32613         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32614         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32615         Mention nproc module.
32616         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32617         bug in cygwin 1.7.5 addition.
32618         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32619         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32620         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32621         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32622         1.7.5.
32623         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32624         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32625         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32626         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32627         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32628         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32629         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32630         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32631         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32632         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32633         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32634         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32635         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32636         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32637         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32638         Likewise.
32639         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32640         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32641         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32642         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32643         Likewise.
32644         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32645         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32646         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32647         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32648         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32649         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32650         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32651         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32652         Likewise.
32653         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32654         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32655         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32656         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32657         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32658         Likewise.
32659         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32660         Likewise.
32661         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32662         Likewise.
32663         * doc/glibc-functions/xdrrec_endofrecord.texi
32664         (xdrrec_endofrecord): Likewise.
32665         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32666         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32667         Likewise.
32668         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32669         Likewise.
32670
32671 2010-05-04  Jim Meyering  <meyering@redhat.com>
32672
32673         gendocs.sh: make its "-s FILE" option more useful
32674         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32675         $PACKAGE to reflect the probably-different basename of "FILE".
32676
32677 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32678
32679         bootstrap: don't ignore download_po_files failure
32680         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32681         failure.
32682
32683 2010-05-03  Jim Meyering  <meyering@redhat.com>
32684
32685         maint.mk: allow to pass options to gendocs.sh
32686         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32687         (gendocs_options_): New overridable variable.
32688
32689         gnu-web-doc-update: don't ignore configure or build failure
32690         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32691
32692         announce-gen: backslash-escape '@'s in --help output
32693         * build-aux/announce-gen: Fix syntax errors.
32694
32695         maint.mk, announce-gen: allow project-specific announcement mail headers
32696         * top/maint.mk (translation_project_): Define default.
32697         (announcement_Cc_, announcement_mail_headers_): Likewise.
32698         (announcement): Invoke announce-gen with new --mail-headers option.
32699         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32700
32701         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32702         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32703         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32704         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32705         line in the "err2" output file when running "make check" in verbose
32706         mode (i.e., with set -x enabled).
32707
32708 2010-05-03  Bruno Haible  <bruno@clisp.org>
32709
32710         wctob: Fix for weird platforms.
32711         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32712         argument value.
32713
32714 2010-05-03  Jim Meyering  <meyering@redhat.com>
32715
32716         maint.mk: prohibit unwarranted use of <strings.h>
32717         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32718         strings.h in a file that does not also use strcasecmp, strncasecmp,
32719         ffs or ffsll.
32720
32721         maint.mk: remove obsolete comments
32722         * top/maint.mk: Remove stale, commented-out rules.
32723
32724 2010-05-02  Bruno Haible  <bruno@clisp.org>
32725
32726         wcwidth: Declare also when it's aliased.
32727         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32728         macro.
32729
32730 2010-05-02  Bruno Haible  <bruno@clisp.org>
32731
32732         Fix regression from 2010-04-25.
32733         * gnulib-tool (func_modules_transitive_closure): Check the status of
32734         all modules, not only of the tests that are of the form foo-tests where
32735         foo is a module.
32736
32737 2010-05-02  Bruno Haible  <bruno@clisp.org>
32738
32739         wctob: Work around nasty Cygwin 1.7.2 bug.
32740         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32741         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32742
32743 2010-05-01  Bruno Haible  <bruno@clisp.org>
32744
32745         fpurge: Sharper test.
32746         * tests/test-fpurge.c (main): Add one more ftell check.
32747         * modules/fpurge-tests (Depends-on): Add ftell.
32748         Suggested by Eric Blake.
32749
32750 2010-05-01  Bruno Haible  <bruno@clisp.org>
32751
32752         ftello: Another test.
32753         * tests/test-ftello3.c: New file.
32754         * modules/ftello-tests (Files): Add it.
32755         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32756         MOSTLYCLEANFILES.
32757
32758         ftell: Another test.
32759         * tests/test-ftell3.c: New file.
32760         * modules/ftell-tests (Files): Add it.
32761         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32762         MOSTLYCLEANFILES.
32763
32764 2010-05-01  Bruno Haible  <bruno@clisp.org>
32765
32766         ftell, ftello: Work around Solaris bug.
32767         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32768         * lib/ftello.c: Include stdio-impl.h.
32769         (ftello): On Solaris, when _IOWRT is set, compute the result without
32770         looking at _IOREAD.
32771         * modules/ftello (Files): Add lib/stdio-impl.h.
32772         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32773         * doc/posix-functions/ftello.texi: Likewise.
32774         Reported by Eric Blake.
32775
32776 2010-05-01  Bruno Haible  <bruno@clisp.org>
32777
32778         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32779         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32780         the _IOWRT flag is also set.
32781
32782 2010-05-01  Bruno Haible  <bruno@clisp.org>
32783
32784         Fix doc about a HP-UX stdio bug.
32785         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32786         * doc/posix-functions/ftello.texi: Likewise.
32787
32788 2010-05-01  Bruno Haible  <bruno@clisp.org>
32789
32790         lseek test: Fix failure on Solaris.
32791         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32792         output.
32793
32794 2010-04-30  Jim Meyering  <meyering@redhat.com>
32795
32796         bootstrap: don't ignore failure to generate po*/Makevars
32797         * build-aux/bootstrap (with_gettext): Don't ignore failure
32798         to create po/Makevars or runtime-po/Makevars.
32799
32800 2010-04-29  Eric Blake  <eblake@redhat.com>
32801
32802         headers: relax license to LGPLv2+
32803         * modules/fcntl-h (License): Relax license.
32804         * modules/getopt-posix (License): Likewise.
32805         * modules/locale (License): Likewise.
32806         * modules/math (License): Likewise.
32807         * modules/pty (License): Likewise.
32808         * modules/sched (License): Likewise.
32809         * modules/search (License): Likewise.
32810         * modules/spawn (License): Likewise.
32811         * modules/stdarg (License): Likewise.
32812         * modules/sysexits (License): Likewise.
32813
32814 2010-04-29  Jim Meyering  <meyering@redhat.com>
32815
32816         inttypes: relax license to LGPLv2+
32817         * modules/inttypes (License): Relax license.
32818
32819 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32820
32821         * top/maint.mk (indent): Run twice to produce idempotent results.
32822
32823 2010-04-28  Bruno Haible  <bruno@clisp.org>
32824
32825         getdate: Generate getdate.c in the source directory.
32826         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32827         MOSTLYCLEANFILES.
32828         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32829
32830 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32831
32832         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32833         is not declared as a const *; avoid warnings in that case.
32834
32835 2010-04-28  Eric Blake  <eblake@redhat.com>
32836
32837         canonicalize-lgpl: avoid compiler warning
32838         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32839         declaration' / 'extraneous semicolon' warning with some compilers.
32840         Reported by Andreas Gruenbacher.
32841
32842 2010-04-28  Jim Meyering  <meyering@redhat.com>
32843
32844         init.sh: ensure a more reliable exit status when exiting via trap
32845         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32846         Inspired by patches from Dmitry V. Levin.
32847         Also trap on signal 3 (SIGQUIT).
32848
32849 2010-04-27  Bruno Haible  <bruno@clisp.org>
32850
32851         Update doc about utimes().
32852         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32853         'utimens' module.
32854         Reported by Andreas Gruenbacher <agruen@suse.de>.
32855
32856 2010-04-27  Eric Blake  <eblake@redhat.com>
32857
32858         full-read, full-write: relax license
32859         * modules/full-read (License): Drop to LGPLv2+.
32860         * modules/full-write (License): Likewise.
32861         * modules/safe-read (License): Likewise.
32862         * modules/safe-write (License): Likewise.
32863
32864         pthread: mention library for linking
32865         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32866
32867 2010-04-27  Jim Meyering  <meyering@redhat.com>
32868
32869         maint.mk: fix a bug introduced in last change
32870         * top/maint.mk (gl_assured_headers_): Now that all names are on
32871         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32872         is not anchored to end of word, it should be adequate.
32873
32874         maint.mk: avoid side-effect in latest syntax-check
32875         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32876         to run commands via $(shell...), and hence to incur cost only when
32877         the new rule is actually run.
32878
32879         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32880         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32881         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32882         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32883         (gl_assured_headers_, az_, AZ_): Define.
32884         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32885
32886 2010-04-26  Jim Meyering  <jim@meyering.net>
32887             Bruno Haible  <bruno@clisp.org>
32888
32889         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32890         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32891         Prompted by an exchange with Gilles Espinasse.
32892
32893 2010-04-26  Jim Meyering  <meyering@redhat.com>
32894
32895         git-version-gen: aesthetic tweak
32896         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32897         so that the command remains on a single line.
32898
32899 2010-04-26  Eric Blake  <eblake@redhat.com>
32900
32901         git-version-gen: allow use on EBCDIC hosts
32902         * build-aux/git-version-gen (dirty): Use literal rather than tying
32903         ourselves to ascii.
32904         Reported by Steve Goetze.
32905
32906 2010-04-25  Bruno Haible  <bruno@clisp.org>
32907
32908         netdb: Add support for GNULIB_POSIXCHECK.
32909         * lib/netdb.in.h: Include warn-on-use.h.
32910         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32911         functions are used when GNULIB_POSIXCHECK is defined and the
32912         getaddrinfo module is not in use.
32913         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32914         freeaddrinfo, gai_strerror, getnameinfo are declared.
32915         * modules/netdb (Depends-on): Add warn-on-use.
32916         (Makefile.am): Include warn-on-use.h in netdb.h.
32917
32918 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32919
32920         build: avoid "make check" failure without .git/ directory
32921         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32922         there is no .git/ directory.
32923
32924 2010-04-25  Bruno Haible  <bruno@clisp.org>
32925
32926         ptsname: Fix misuse of ttyname_r.
32927         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32928         of errno.
32929
32930 2010-04-25  Bruno Haible  <bruno@clisp.org>
32931
32932         ttyname_r: Make it work on Solaris 10.
32933         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32934         if the system function has the POSIX declaration. Test whether the
32935         function fails if the buffer is less than 128 bytes large.
32936         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32937         system's ttyname_r function. Provide a reasonably large buffer.
32938         * modules/ttyname_r (Depends-on): Add extensions.
32939         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32940
32941 2010-04-25  Bruno Haible  <bruno@clisp.org>
32942
32943         Use the 'extensions' module for some more functions on Solaris.
32944         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32945         module.
32946         * doc/posix-functions/ctime_r.texi: Likewise.
32947         * doc/posix-functions/getgrgid_r.texi: Likewise.
32948         * doc/posix-functions/getgrnam_r.texi: Likewise.
32949         * doc/posix-functions/getpwnam_r.texi: Likewise.
32950         * doc/posix-functions/getpwuid_r.texi: Likewise.
32951         * doc/posix-functions/readdir_r.texi: Likewise.
32952         * doc/posix-functions/sigwait.texi: Likewise.
32953         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32954         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32955
32956 2010-04-25  Bruno Haible  <bruno@clisp.org>
32957
32958         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32959         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32960         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32961         * lib/ttyname_r.c: Include <limits.h>.
32962         (ttyname_r): Define using the system's ttyname_r function, if it exists
32963         and not on Solaris.
32964         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32965         set.
32966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32967         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32968         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32969         Reported by Simon Josefsson.
32970
32971 2010-04-25  Bruno Haible  <bruno@clisp.org>
32972
32973         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32974         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32975         * doc/posix-functions/ctime_r.texi: Likewise.
32976         * doc/posix-functions/getgrgid_r.texi: Likewise.
32977         * doc/posix-functions/getgrnam_r.texi: Likewise.
32978         * doc/posix-functions/getlogin_r.texi: Likewise.
32979         * doc/posix-functions/getpwnam_r.texi: Likewise.
32980         * doc/posix-functions/getpwuid_r.texi: Likewise.
32981         * doc/posix-functions/readdir_r.texi: Likewise.
32982         * doc/posix-functions/sigwait.texi: Likewise.
32983         * doc/posix-functions/ttyname_r.texi: Likewise.
32984         Reported by Simon Josefsson.
32985
32986 2010-04-25  Bruno Haible  <bruno@clisp.org>
32987
32988         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32989         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32990         also to --create-testdir.
32991         (func_acceptable): Don't consider the status of *-tests modules here.
32992         (func_modules_transitive_closure): Consider it here, before including a
32993         test module.
32994         (func_import, func_create_testdir): Set inc_all_direct_tests,
32995         inc_all_indirect_tests.
32996         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32997         --create-testdir and --create-megatestdir.
32998
32999 2010-04-25  Bruno Haible  <bruno@clisp.org>
33000
33001         gnulib-tool: Add --without-*-tests options.
33002         * gnulib-tool (func_usage): Document the --without-*-tests options.
33003         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33004         excl_unportable_tests): New variables.
33005         Fail if they are specified with --import or --update.
33006         (func_acceptable): Respect the excl_*_tests variables.
33007         (func_import): Set the excl_*_tests variables to empty.
33008
33009 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33010             Bruno Haible  <bruno@clisp.org>
33011
33012         Work around a MacOS X 10.4 bug with openpty.
33013         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33014         * tests/test-openpty.c (main): Close the master side explicitly.
33015
33016 2010-04-25  Bruno Haible  <bruno@clisp.org>
33017
33018         strnlen: Fix a C++ test error on MacOS X and Solaris.
33019         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33020         the function is not declared.
33021         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33022         Simon Josefsson.
33023
33024 2010-04-24  Bruno Haible  <bruno@clisp.org>
33025
33026         Avoid a gcc warning.
33027         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33028         of correct type for %08lx directive.
33029         Reported by Eric Blake.
33030
33031 2010-04-24  Bruno Haible  <bruno@clisp.org>
33032
33033         vasnprintf: Correct errno value in case of out-of-memory.
33034         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33035         or sprintf. Use the errno value from SNPRINTF or sprintf.
33036         Reported by Ian Beckwith <ianb@erislabs.net>.
33037
33038 2010-04-24  Bruno Haible  <bruno@clisp.org>
33039
33040         ansi-c++-opt: Find correct compiler when cross-compiling.
33041         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33042         AC_CHECK_PROGS.
33043         Reported by Simon Josefsson.
33044
33045 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33046
33047         vc-list-files: Add support for subversion
33048         * build-aux/vc-list-files: Use "svn list" to generate the list of
33049         files controlled by subversion.
33050
33051 2010-04-23  Jim Meyering  <meyering@redhat.com>
33052
33053         vc-list-files tests: convert to use init.sh
33054         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33055         path_prepend_.
33056         Use Exit, not exit.
33057         Use skip_ rather than open coding it.
33058         Remove trap set-up and compare definitions.
33059         * tests/test-vc-list-files-git.sh: Likewise.
33060         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33061
33062 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33063
33064         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33065         backup files.
33066
33067 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33068
33069         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33070
33071 2010-04-20  Eric Blake  <eblake@redhat.com>
33072
33073         tests: be robust to ignored SIGPIPE
33074         * tests/test-select-in.sh: Consume all output.
33075         * tests/test-lseek.sh: Check correct exit status, while avoiding
33076         EPIPE.
33077
33078 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33079             Bruno Haible  <bruno@clisp.org>
33080
33081         visibility: Don't use -fvisibility if it leads to a warning.
33082         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33083         yes, don't pretend that visibility works if it leads to a warning.
33084         Reported by Mike Gran <spk121@yahoo.com>.
33085
33086 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33087
33088         * build-aux/bootstrap: Use "git -h" for testing for supported options
33089         instead of "git --help".  The short-form option only shows a summary,
33090         and doesn't layout the full man page.  Grep for the full option name
33091         in the summary, too.
33092
33093 2010-04-19  Bruno Haible  <bruno@clisp.org>
33094
33095         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33096         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33097         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33098         mention of RELOCATABLE_STRIP.
33099         Reported by Sylvain Beucler <beuc@beuc.net>.
33100
33101 2010-04-19  Bruno Haible  <bruno@clisp.org>
33102
33103         * lib/diffseq.h: Fix typo in comment.
33104         Reported by Eric Blake.
33105
33106 2010-04-19  Bruno Haible  <bruno@clisp.org>
33107
33108         ioctl: Move autoconf macro to a .m4 file.
33109         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33110         * modules/ioctl (Files): Add it.
33111         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33112         Reported by Ian Beckwith <ianb@erislabs.net>.
33113
33114 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33115             Bruno Haible  <bruno@clisp.org>
33116
33117         diffseq: Accommodate use-case with abstract arrays.
33118         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33119         is not defined.
33120         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33121         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33122
33123 2010-04-18  Bruno Haible  <bruno@clisp.org>
33124
33125         * doc/posix-headers/stdbool.texi: More precise wording.
33126
33127 2010-04-17  Jim Meyering  <meyering@redhat.com>
33128
33129         maint.mk: use gnu-style indentation in an embedded perl script
33130         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33131         Rename variable: s/two/last_two_bytes/
33132
33133 2010-04-16  Eric Blake  <eblake@redhat.com>
33134
33135         test-stdbool: skip test that fails with Solaris CC
33136         * tests/test-stdbool.c (f): Skip test that causes compilation
33137         error under buggy C++ compiler.
33138         * lib/stdbool.in.h: Document the limitation.
33139         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33140
33141         setenv: allow compilation with C++
33142         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33143         register keyword.
33144
33145         stdint: allow test to pass with C++
33146         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33147
33148         getopt: allow compilation with C++
33149         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33150         struct.
33151         * lib/getopt.c (_getopt_internal_r): Use correct type.
33152         Reported by Dagobert Michelson, via Joel E. Denny.
33153
33154 2010-04-16  Bruno Haible  <bruno@clisp.org>
33155
33156         Override netdb.h always.
33157         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33158         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33159         Reported by Ludovic Courtès <ludo@gnu.org>.
33160
33161 2010-04-15  Bruno Haible  <bruno@clisp.org>
33162
33163         openpty: Fix mistake from 2010-03-21.
33164         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33165         Reported by Simon Josefsson.
33166
33167 2010-04-15  Eric Blake  <eblake@redhat.com>
33168
33169         test-forkpty: fix expected signature
33170         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33171         Reported by Simon Josefsson.
33172
33173 2010-04-15  Jim Meyering  <meyering@redhat.com>
33174
33175         maint.mk: texinfo_suffix_re_: correct the default regexp
33176         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33177
33178         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33179         make it configurable via texinfo_suffix_re_.
33180
33181 2010-04-14  Eric Blake  <eblake@redhat.com>
33182
33183         strtok_r: relax license to LGPLv2+
33184         * modules/strtok_r (License): Relax license.
33185         Reported by Matthias Bolte.
33186
33187 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33188
33189         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33190         version 1.4.4 by default instead of requiring the libgcrypt
33191         version used during build.  This makes it possible to use the
33192         application with older but still binary compatible libgcrypt
33193         versions.
33194
33195 2010-04-13  Eric Blake  <eblake@redhat.com>
33196
33197         getopt-gnu: match recent glibc fixes and posix ruling
33198         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33199         '+' handling, when requesting extensions.
33200         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33201         'W;' handling.
33202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33203         * doc/posix-functions/getopt.texi (getopt): Document this.
33204         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33205         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33206         Likewise.
33207
33208         getopt: merge bug fixes from glibc
33209         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33210         diagnostics.  Honor '+:' correctly.  Reject ';'.
33211
33212         getopt-posix: detect MacOS bug
33213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33214         optind when missing a required argument.
33215         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33216         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33217         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33218         Likewise.
33219
33220         getopt-posix: avoid spurious failure on Solaris
33221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33222         an indicator that setting optind=1 is sufficient for reset.
33223
33224         getopt-posix: avoid spurious failure on FreeBSD
33225         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33226         in POSIX mode, since the m4 test uses it.
33227
33228         gnulib-tool: silence warning on BSD sh
33229         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33230
33231 2010-04-13  Jim Meyering  <meyering@redhat.com>
33232
33233         doc: users.txt: GNU patch now uses gnulib
33234         * users.txt: Add patch.
33235
33236 2010-04-12  Jim Meyering  <meyering@redhat.com>
33237
33238         maint.mk: generate more concise timing data for syntax-check rules
33239         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33240         " done" from each line that reports a syntax-check test duration.
33241
33242 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33243
33244         git-version-gen: use "git update-index..." rather than "git status"
33245         * build-aux/git-version-gen: Use git update-index --refresh, not
33246         "git status".  With some versions of git, "git status" would fail
33247         to update the index and result in an unwarranted "-dirty" suffix.
33248
33249 2010-04-11  Jim Meyering  <meyering@redhat.com>
33250
33251         openat: correct formatting (no semantic change)
33252         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33253         Suggested by Bruno Haible.
33254
33255 2010-04-11  Bruno Haible  <bruno@clisp.org>
33256
33257         Stricter declaration checking in testdirs.
33258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33259         If for_tests is true, augment AM_CPPFLAGS to define
33260         GNULIB_STRICT_CHECKING.
33261         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33262         GNULIB_STRICT_CHECKING is defined, verify that the function is
33263         declared.
33264
33265 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33266             Bruno Haible  <bruno@clisp.org>
33267
33268         libunistring: Improve configure output.
33269         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33270         Don't say "consider installing GNU libunistring" when checking again
33271         with libiconv.
33272
33273 2010-04-11  Bruno Haible  <bruno@clisp.org>
33274
33275         libunistring: Correct value of $LTLIBUNISTRING.
33276         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33277         correct the value of $LTLIBUNISTRING.
33278
33279 2010-04-11  Bruno Haible  <bruno@clisp.org>
33280
33281         havelib: Add static libraries to LIBS in the right order.
33282         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33283         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33284
33285 2010-04-11  Bruno Haible  <bruno@clisp.org>
33286
33287         libunistring: Detect libunistring also when it depends on libiconv.
33288         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33289         the second AC_LIB_HAVE_LINKFLAGS invocation.
33290
33291 2010-04-11  James Youngman  <jay@gnu.org>
33292
33293         close-stream: declare local scalars to be "const"
33294         * lib/close-stream.c (close_stream): Make boolean variables const
33295         to document the fact that we set but do not change them.
33296
33297 2010-04-11  Bruno Haible  <bruno@clisp.org>
33298
33299         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33300
33301 2010-04-11  Jim Meyering  <meyering@redhat.com>
33302
33303         maint.mk: don't include dist-check.mk
33304         * top/maint.mk: Remove bogus include directive.
33305
33306         maint.mk: improve empty-line-at-EOF check
33307         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33308         solution, rather than tail+Perl-based one.  The latter would read
33309         a few kilobytes from the end of each file, and did not handle empty
33310         files properly.
33311
33312         maint.mk: print the elapsed time for each syntax-check rule
33313         * top/maint.mk (sc_m_rules_): Save start time in a file.
33314         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33315         (local-check): Interpose the .z rules
33316
33317 2010-04-11  Jim Meyering  <meyering@redhat.com>
33318
33319         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33320         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33321         empty file with one that ends in an empty line.
33322
33323 2010-04-10  Bruno Haible  <bruno@clisp.org>
33324
33325         mkdir: Make it work on mingw64.
33326         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33327         * lib/mkdir.c: Update comment.
33328         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33329
33330 2010-04-10  Bruno Haible  <bruno@clisp.org>
33331
33332         Don't override improved macro from newer autoconf.
33333         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33334         autoconf >= 2.62.
33335         Reported by Joel E. Denny <jdenny@clemson.edu>.
33336
33337 2010-04-10  Jim Meyering  <meyering@redhat.com>
33338
33339         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33340         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33341
33342         maint.mk: correct a diagnostic
33343         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33344         in diagnostic; now use $prohibit.
33345
33346 2010-04-10  Bruno Haible  <address@hidden>
33347
33348         fchownat: Fix a C++ test error on Solaris 8.
33349         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33350         the function does not exist.
33351
33352 2010-04-10  Bruno Haible  <bruno@clisp.org>
33353
33354         vasnprintf: Add more tests.
33355         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33356         (test_function): Test converting an invalid wide string.
33357
33358         vasnprintf: Correct handling of unconvertible wide string arguments.
33359         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33360         VASNPRINTF.
33361         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33362         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33363         smaller than the expected maximum need for the directive. Set errno to
33364         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33365         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33367         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33368         * modules/vasnprintf (Files): Add m4/printf.m4.
33369         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33370
33371 2010-04-10  Bruno Haible  <bruno@clisp.org>
33372
33373         vasnprintf: Fix crash in %ls directive.
33374         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33375         string is passed as argument to %ls, with no precision and no width.
33376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33377
33378 2010-04-10  Bruno Haible  <bruno@clisp.org>
33379
33380         vasnprintf: Fix multiple test failures on mingw.
33381         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33382         _snprintf, or snwprintf, not _snwprintf.
33383
33384 2010-04-10  Bruno Haible  <bruno@clisp.org>
33385
33386         write: Fix a C++ test error on mingw.
33387         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33388
33389 2010-04-10  Bruno Haible  <bruno@clisp.org>
33390
33391         vasnprintf test: Reduce code duplication.
33392         * tests/test-vasnprintf.c (test_function): New function, extracted from
33393         test_vasnprintf.
33394         (test_vasnprintf, test_asnprintf): Invoke it.
33395
33396 2010-04-10  Bruno Haible  <bruno@clisp.org>
33397
33398         strnlen: Fix warning in C++ mode on MacOS X.
33399         * lib/string.in.h (strnlen): Use the modern idiom.
33400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33401         defining strnlen as a macro already in <config.h>.
33402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33403         REPLACE_STRNLEN.
33404         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33405         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33406
33407 2010-04-08  James Youngman  <jay@gnu.org>
33408
33409         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33410         the example.
33411
33412 2010-04-09  Jim Meyering  <meyering@redhat.com>
33413
33414         maint.mk: print better diagnostic when there is no $(_hv_file)
33415         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33416         announce that when $(_hv_file) (aka help-version) does not exist.
33417
33418         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33419         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33420         not try to interpret its random input bytes.  Jarno Rajahalme reported
33421         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33422         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33423         (mktempd_): Likewise, just in case.
33424
33425         ftruncate: add two years to projected module removal date: 2012
33426         * m4/ftruncate.m4: Adjust comments.
33427
33428         ftruncate: mark module as obsolete; even MinGW provides it, now
33429         * modules/ftruncate (Status): Obsolete.
33430         (Notice): Say that.
33431         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33432         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33433
33434 2010-04-08  Bruno Haible  <bruno@clisp.org>
33435
33436         Fix side effects from tests-related modules.
33437         * modules/dprintf-posix (Comment): New section.
33438         * modules/fprintf-posix (Comment): Likewise.
33439         * modules/obstack-printf-posix (Comment): Likewise.
33440         * modules/printf-posix (Comment): Likewise.
33441         * modules/snprintf-posix (Comment): Likewise.
33442         * modules/sprintf-posix (Comment): Likewise.
33443         * modules/vasnprintf-posix (Comment): Likewise.
33444         * modules/vasprintf-posix (Comment): Likewise.
33445         * modules/vdprintf-posix (Comment): Likewise.
33446         * modules/vfprintf-posix (Comment): Likewise.
33447         * modules/vprintf-posix (Comment): Likewise.
33448         * modules/vsnprintf-posix (Comment): Likewise.
33449         * modules/vsprintf-posix (Comment): Likewise.
33450         * modules/xprintf-posix (Comment): Likewise.
33451         * modules/xvasprintf-posix (Comment): Likewise.
33452         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33453         * modules/floorf-tests (Depends-on): Likewise.
33454         * modules/round-tests (Depends-on): Likewise.
33455         * modules/roundf-tests (Depends-on): Likewise.
33456         * modules/trunc-tests (Depends-on): Likewise.
33457         * modules/truncf-tests (Depends-on): Likewise.
33458         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33459         'fprintf-posix' module is not present.
33460         * tests/test-floorf2.c (check): Likewise.
33461         * tests/test-trunc2.c (check): Likewise.
33462         * tests/test-truncf2.c (check): Likewise.
33463         * tests/test-round2.c (equal): Likewise.
33464         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33465
33466 2010-04-07  Karl Berry  <karl@gnu.org>
33467
33468         * config/srclist.txt,
33469         * config/srclistvars.sh,
33470         * config/srclist-update: doc fixes.
33471
33472 2010-04-07  Jim Meyering  <meyering@redhat.com>
33473
33474         maint.mk: add a PATH crosschecking syntax-check rule
33475         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33476         Useful if you use a test like the one in help-version (coreutils,
33477         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33478         printed by prog --version.
33479
33480 2010-04-06  Bruno Haible  <bruno@clisp.org>
33481
33482         Fix link error on mingw.
33483         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33484         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33485
33486 2010-04-06  Bruno Haible  <bruno@clisp.org>
33487
33488         Assume rmdir exists.
33489         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33490
33491 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33492
33493         doc: update users.txt
33494         * users.txt: Add gcal.
33495
33496 2010-04-06  Jim Meyering  <meyering@redhat.com>
33497
33498         init.sh: simply unset TMPDIR rather than risking env -i
33499         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33500         although it probably works fine on all Unix-based systems, some
33501         systems (Cygwin?) cannot tolerate a totally cleared environment.
33502         Suggestion from Eric Blake.
33503
33504 2010-04-06  Jim Meyering  <meyering@redhat.com>
33505
33506         init.sh: portability fix: use env's POSIX-specified -i option not -u
33507         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33508         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33509
33510 2010-04-05  Bruno Haible  <bruno@clisp.org>
33511
33512         btowc: Work around Cygwin 1.7.2 bug.
33513         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33514         does not map NUL to 0.
33515         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33516
33517 2010-04-05  Bruno Haible  <bruno@clisp.org>
33518
33519         Make the multithread modules work on Cygwin 1.7.2.
33520         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33521         imported symbols can be declared weak, so that it returns "no" on
33522         Cygwin 1.7.2.
33523
33524 2010-04-05  Bruno Haible  <bruno@clisp.org>
33525
33526         Use the module 'strncat'.
33527         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33528
33529         Tests for module 'strncat'.
33530         * modules/strncat-tests: New file.
33531         * tests/test-strncat.c: New file.
33532
33533         New module 'strncat'.
33534         * lib/string.in.h (strncat): New declaration.
33535         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33536         * m4/strncat.m4: New file, based on m4/memchr.m4.
33537         * modules/strncat: New file.
33538         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33539         is declared.
33540         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33541         REPLACE_STRNCAT.
33542         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33543         REPLACE_STRNCAT.
33544         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33545         module.
33546         * tests/test-string-c++.cc: Check signature of strncat.
33547
33548 2010-04-05  Jim Meyering  <meyering@redhat.com>
33549
33550         xstrtoumax-tests: convert to use init.sh
33551         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33552         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33553         Use Exit, not exit.
33554         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33555
33556         xstrtoimax-tests: convert to use init.sh
33557         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33558         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33559         Use Exit, not exit.
33560         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33561
33562 2010-04-05  Bruno Haible  <bruno@clisp.org>
33563
33564         sys_socket: Avoid #define replacements in C++ mode.
33565         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33566         warning to the function if possible, rather than #defining the symbol
33567         to a dysfunctional alias.
33568
33569 2010-04-05  Bruno Haible  <bruno@clisp.org>
33570
33571         fseeko: Fix C++ test error on mingw.
33572         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33573         gl_FUNC_FSEEKO.
33574         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33575         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33576         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33577         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33578
33579 2010-04-05  Bruno Haible  <bruno@clisp.org>
33580
33581         duplocale: Improve test output.
33582         * tests/test-duplocale.c (main): Print reason for skipped test.
33583
33584 2010-04-05  Bruno Haible  <bruno@clisp.org>
33585
33586         Assume rmdir exists.
33587         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33588         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33589
33590 2010-04-05  Bruno Haible  <bruno@clisp.org>
33591
33592         Fix link error on Solaris 8 with cc.
33593         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33594
33595 2010-04-05  Bruno Haible  <bruno@clisp.org>
33596
33597         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33598         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33599
33600 2010-04-05  Bruno Haible  <bruno@clisp.org>
33601
33602         vasprintf: Update documentation.
33603         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33604
33605 2010-04-05  Bruno Haible  <bruno@clisp.org>
33606
33607         ptsname: Improve test.
33608         * tests/test-ptsname.c (main): Also try the various master names of BSD
33609         systems.
33610
33611 2010-04-05  Bruno Haible  <bruno@clisp.org>
33612
33613         memchr: Avoid a possible C++ test error.
33614         * lib/string.in.h (memchr): Provide declaration if function is missing.
33615         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33616         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33618         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33619
33620 2010-04-05  Bruno Haible  <bruno@clisp.org>
33621
33622         strtok_r: Improve idiom.
33623         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33624         AC_LIBOBJ is used.
33625
33626 2010-04-05  Bruno Haible  <bruno@clisp.org>
33627
33628         strdup: Improve idiom.
33629         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33630         AC_LIBOBJ is used.
33631         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33632         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33633         when AC_LIBOBJ is used.
33634
33635 2010-04-05  Bruno Haible  <bruno@clisp.org>
33636
33637         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33638         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33639         don't set REPLACE_MBSINIT to 1.
33640         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33641         don't set REPLACE_MBRTOWC to 1.
33642         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33643         exist, don't set REPLACE_MBSRTOWCS to 1.
33644         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33645         exist, don't set REPLACE_MBSNRTOWCS to 1.
33646         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33647         don't set REPLACE_WCRTOMB to 1.
33648         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33649         exist, don't set REPLACE_WCSRTOMBS to 1.
33650         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33651         exist, don't set REPLACE_WCSNRTOMBS to 1.
33652
33653 2010-04-05  Bruno Haible  <bruno@clisp.org>
33654
33655         ldexpl: Improve idiom.
33656         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33657         make sure to set HAVE_DECL_LDEXPL to 0.
33658
33659 2010-04-05  Jim Meyering  <meyering@redhat.com>
33660
33661         xstrtol-tests: convert to use init.sh
33662         * modules/xstrtol-tests (Files): Add tests/init.sh.
33663         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33664         Use Exit, not exit.
33665         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33666
33667         atexit-tests: convert to use init.sh
33668         * modules/atexit-tests (Files): Add tests/init.sh.
33669         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33670         Use Exit, not exit.
33671         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33672
33673         init.sh: fix typo
33674         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33675
33676         init.sh: make it easier for a test script to write to the tty, ...
33677         when using automake's parallel-tests mode.
33678         * tests/init.sh (stderr_fileno_): Define overridable variable.
33679         (warn_): New function, to use it.
33680         (fail_, skip_, framework_failure_): Use warn_.
33681
33682 2010-04-04  Bruno Haible  <bruno@clisp.org>
33683
33684         btowc: Avoid warning.
33685         * lib/btowc.c: Include <stdlib.h>.
33686         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33687
33688 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33689             Bruno Haible  <bruno@clisp.org>
33690
33691         wchar: Port to NetBSD 1.5.
33692         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33693         * lib/wctype.in.h (WEOF): Likewise.
33694
33695 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33696             Bruno Haible  <bruno@clisp.org>
33697
33698         Port extended stdio to NetBSD 1.5.
33699         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33700         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33701         older.
33702
33703 2010-04-04  Bruno Haible  <bruno@clisp.org>
33704
33705         string: Remove unused substitution.
33706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33707         HAVE_DECL_STRERROR.
33708         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33709
33710 2010-04-04  Bruno Haible  <bruno@clisp.org>
33711
33712         strtod: Avoid a possible C++ test error.
33713         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33714         set REPLACE_STRTOD.
33715
33716 2010-04-04  Bruno Haible  <bruno@clisp.org>
33717
33718         strerror: Update documentation.
33719         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33720
33721 2010-04-04  Bruno Haible  <bruno@clisp.org>
33722
33723         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33724         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33725         _GL_CXXALIAS_SYS_CAST.
33726
33727 2010-04-04  Bruno Haible  <bruno@clisp.org>
33728
33729         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33730         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33731         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33732         REPLACE_FREXPL to 1.
33733         * doc/posix-functions/frexpl.texi: Update documentation.
33734
33735 2010-04-04  Bruno Haible  <bruno@clisp.org>
33736
33737         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33738         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33739
33740 2010-04-04  Bruno Haible  <bruno@clisp.org>
33741
33742         Implement nanosleep for native Windows.
33743         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33744
33745 2010-04-04  Bruno Haible  <bruno@clisp.org>
33746
33747         math: Fix some C++ test errors on Solaris 8.
33748         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33749
33750 2010-04-04  Bruno Haible  <bruno@clisp.org>
33751
33752         math: Fix some C++ test errors on Cygwin.
33753         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33754         truncl): Provide declaration if the system does not have it.
33755         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33756         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33757         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33758         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33759         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33760         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33761         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33762         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33763         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33764         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33765         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33766         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33767         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33768         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33769         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33770         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33772         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33773         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33774         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33775         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33776         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33777
33778 2010-04-04  Bruno Haible  <bruno@clisp.org>
33779
33780         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33781         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33782         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33783         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33784         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33785         * m4/isinf.m4 (gl_ISINF): Likewise.
33786         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33787
33788 2010-04-04  Bruno Haible  <bruno@clisp.org>
33789
33790         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33791         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33792
33793 2010-04-04  Bruno Haible  <bruno@clisp.org>
33794
33795         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33796         * modules/tmpfile (configure.ac): Update.
33797
33798         tmpfile: Fix C++ test error on mingw.
33799         * lib/stdio.in.h (tmpfile): New declaration.
33800         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33801         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33802         * modules/tmpfile (Depends-on): Add stdio.
33803         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33804         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33805         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33806         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33807         REPLACE_TMPFILE.
33808         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33809
33810 2010-04-04  Bruno Haible  <bruno@clisp.org>
33811
33812         ioctl: Fix C++ test error on mingw.
33813         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33814         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33815         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33816
33817 2010-04-03  Bruno Haible  <bruno@clisp.org>
33818
33819         wcwidth: Fix C++ test error on mingw.
33820         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33822         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33823
33824 2010-04-03  Bruno Haible  <bruno@clisp.org>
33825
33826         nanosleep: Fix C++ test error on mingw.
33827         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33828         * lib/time.in.h (nanosleep): Use modern idiom.
33829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33830         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33831         REPLACE_NANOSLEEP to 1.
33832         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33833         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33834
33835 2010-04-03  Bruno Haible  <bruno@clisp.org>
33836
33837         strptime: Fix C++ test error on mingw.
33838         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33839         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33840         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33841         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33843         not REPLACE_STRPTIME.
33844         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33845         REPLACE_STRPTIME.
33846
33847 2010-04-03  Bruno Haible  <bruno@clisp.org>
33848
33849         timegm: Fix C++ test error on mingw.
33850         * lib/time.in.h (timegm): Use modern idiom.
33851         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33852         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33853         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33854         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33855
33856 2010-04-03  Bruno Haible  <bruno@clisp.org>
33857
33858         timegm: Assume declaration if function exists.
33859         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33860         if it exists. Don't clobber ac_cv_func_timegm.
33861
33862 2010-04-03  Bruno Haible  <bruno@clisp.org>
33863
33864         time_r: Fix C++ test error on mingw.
33865         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33866         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33867         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33869         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33870
33871 2010-04-03  Bruno Haible  <bruno@clisp.org>
33872
33873         time_r: Minor updates.
33874         * modules/time_r (Description): Mention the provided functions.
33875         * lib/time_r.c: Don't include <string.h>.
33876         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33877         * doc/posix-functions/localtime_r.texi: Likewise.
33878
33879 2010-04-03  Bruno Haible  <bruno@clisp.org>
33880
33881         time: Fix regression introduced on 2010-03-08.
33882         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33883         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33884
33885 2010-04-03  Jim Meyering  <meyering@redhat.com>
33886
33887         maint.mk: don't silently disable project-specific syntax-check rules
33888         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33889         that they need to convert their project-specific syntax-check rules
33890         to use the new _sc_search_regexp.
33891
33892 2010-04-03  Bruno Haible  <bruno@clisp.org>
33893
33894         fchdir: Fix regression introduced on 2010-03-08.
33895         * lib/unistd.in.h (fchdir): Fix declaration.
33896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33898         REPLACE_FCHDIR.
33899         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33900         REPLACE_FCHDIR.
33901
33902 2010-04-03  Bruno Haible  <bruno@clisp.org>
33903
33904         getpagesize: Fix C++ test error on mingw.
33905         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33906         system does not declare the function.
33907         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33908         declared.
33909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33910         HAVE_DECL_GETPAGESIZE.
33911         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33912
33913 2010-04-03  Bruno Haible  <bruno@clisp.org>
33914
33915         stdio: Make C++ tests work on mingw.
33916         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33917         does not declare the function.
33918
33919 2010-04-03  Bruno Haible  <bruno@clisp.org>
33920
33921         ftello: Fix C++ test error on mingw.
33922         * lib/stdio.in.h (ftello): Use modern idiom.
33923         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33924         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33925         is missing and that it needs to be replaced.
33926         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33928         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33929
33930 2010-04-03  Bruno Haible  <bruno@clisp.org>
33931
33932         fseeko: Fix C++ test error on mingw.
33933         * lib/stdio.in.h (fseeko): Use modern idiom.
33934         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33936         is missing and that it needs to be replaced.
33937         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33939         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33940
33941 2010-04-03  Bruno Haible  <bruno@clisp.org>
33942
33943         mkstemp: Fix C++ test error on mingw.
33944         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33946         function is missing and that it needs to be replaced.
33947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33948         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33949
33950 2010-04-03  Bruno Haible  <bruno@clisp.org>
33951
33952         stpncpy: Fix C++ test error on mingw.
33953         * lib/string.in.h (stpncpy): Use modern idiom.
33954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33955         function is missing and that it needs to be replaced.
33956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33957         REPLACE_STPNCPY.
33958         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33959
33960 2010-04-03  Bruno Haible  <bruno@clisp.org>
33961
33962         sys_stat: Fix C++ test error on mingw.
33963         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33964         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33965
33966 2010-04-03  Bruno Haible  <bruno@clisp.org>
33967
33968         pty: Update doc.
33969         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33970
33971 2010-04-03  Bruno Haible  <bruno@clisp.org>
33972
33973         unistd: Fix C++ test error on mingw.
33974         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33975
33976 2010-04-03  Bruno Haible  <bruno@clisp.org>
33977
33978         Update doc regarding mingw.
33979         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33980         * doc/glibc-functions/login_tty.texi: Likewise.
33981         * doc/glibc-functions/forkpty.texi: Likewise.
33982
33983 2010-04-03  Bruno Haible  <bruno@clisp.org>
33984
33985         stdlib: Avoid compilation failure of c-strtold on mingw.
33986         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33987
33988 2010-04-03  Bruno Haible  <bruno@clisp.org>
33989
33990         locale: Make C++ tests work on Cygwin and mingw.
33991         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33992         cannot provide the function.
33993         Reported by Simon Josefsson.
33994
33995 2010-04-03  Bruno Haible  <bruno@clisp.org>
33996
33997         localename: Port to MacOS X 10.6.
33998         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33999         memory layout of the locales in MacOS X 10.6 as well.
34000         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34001
34002 2010-04-02  Bruno Haible  <bruno@clisp.org>
34003
34004         gnulib-tool: Ensure that long-running tests are executed last.
34005         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34006         running tests after the one for the other tests.
34007
34008 2010-04-02  Bruno Haible  <bruno@clisp.org>
34009
34010         gnulib-tool: Ensure the tests in the main directory are executed first.
34011         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34012         start with the current directory.
34013
34014 2010-04-02  Bruno Haible  <bruno@clisp.org>
34015
34016         Tests for module 'havelib', moved here from GNU gettext.
34017         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34018         modifications.
34019         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34020         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34021         with modifications.
34022         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34023         modifications.
34024         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34025         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34026         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34027         with modifications.
34028         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34029         with modifications.
34030         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34031         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34032         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34033         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34034         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34035         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34036         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34037         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34038         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34039         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34040         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34041         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34042         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34043         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34044         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34045         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34046         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34047         with modifications.
34048         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34049         with modifications.
34050         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34051         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34052         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34053         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34054         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34055         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34056         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34057         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34058         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34059         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34060         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34061         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34062         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34063         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34064         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34065         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34066         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34067         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34068         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34069         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34070         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34071         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34072         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34073         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34074         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34075         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34076         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34077         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34078         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34079         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34080         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34081         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34082         * tests/havelib/rpathx/rpathx.c: New file, from
34083         gettext/autoconf-lib-link.
34084         * tests/havelib/rpathx/Makefile.am: New file, from
34085         gettext/autoconf-lib-link.
34086         * tests/havelib/rpathx/configure.ac: New file, from
34087         gettext/autoconf-lib-link with modifications.
34088         * tests/havelib/rpathy/rpathy.c: New file, from
34089         gettext/autoconf-lib-link.
34090         * tests/havelib/rpathy/Makefile.am: New file, from
34091         gettext/autoconf-lib-link.
34092         * tests/havelib/rpathy/configure.ac: New file, from
34093         gettext/autoconf-lib-link with modifications.
34094         * tests/havelib/rpathz/rpathz.c: New file, from
34095         gettext/autoconf-lib-link.
34096         * tests/havelib/rpathz/Makefile.am: New file, from
34097         gettext/autoconf-lib-link.
34098         * tests/havelib/rpathz/configure.ac: New file, from
34099         gettext/autoconf-lib-link with modifications.
34100         * tests/havelib/rpathlx/usex.c: New file, from
34101         gettext/autoconf-lib-link.
34102         * tests/havelib/rpathlx/Makefile.am: New file, from
34103         gettext/autoconf-lib-link.
34104         * tests/havelib/rpathlx/configure.ac: New file, from
34105         gettext/autoconf-lib-link with modifications.
34106         * tests/havelib/rpathly/usey.c: New file, from
34107         gettext/autoconf-lib-link.
34108         * tests/havelib/rpathly/Makefile.am: New file, from
34109         gettext/autoconf-lib-link.
34110         * tests/havelib/rpathly/configure.ac: New file, from
34111         gettext/autoconf-lib-link with modifications.
34112         * tests/havelib/rpathlz/usez.c: New file, from
34113         gettext/autoconf-lib-link.
34114         * tests/havelib/rpathlz/Makefile.am: New file, from
34115         gettext/autoconf-lib-link.
34116         * tests/havelib/rpathlz/configure.ac: New file, from
34117         gettext/autoconf-lib-link with modifications.
34118         * tests/havelib/rpathlyx/usey.c: New file, from
34119         gettext/autoconf-lib-link.
34120         * tests/havelib/rpathlyx/Makefile.am: New file, from
34121         gettext/autoconf-lib-link.
34122         * tests/havelib/rpathlyx/configure.ac: New file, from
34123         gettext/autoconf-lib-link with modifications.
34124         * tests/havelib/rpathlzyx/usez.c: New file, from
34125         gettext/autoconf-lib-link.
34126         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34127         gettext/autoconf-lib-link.
34128         * tests/havelib/rpathlzyx/configure.ac: New file, from
34129         gettext/autoconf-lib-link with modifications.
34130         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34131         with modifications.
34132
34133 2010-04-02  Bruno Haible  <bruno@clisp.org>
34134
34135         gnulib-tool: Create distributed built sources also for the tests.
34136         * gnulib-tool (func_create_testdir): Also generate distributed built
34137         sources in the tests directory.
34138
34139 2010-04-02  Bruno Haible  <bruno@clisp.org>
34140
34141         gnulib-tool: Obey user's environment variables.
34142         * gnulib-tool (func_create_testdir): When creating built sources,
34143         respect the environment variables for autoconf, automake, etc. given by
34144         the user.
34145
34146 2010-04-02  Bruno Haible  <bruno@clisp.org>
34147
34148         gnulib-tool: Provide the value of --m4-base to modules.
34149         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34150         of gl_m4_base.
34151
34152 2010-04-02  Eric Blake  <eblake@redhat.com>
34153
34154         maint.mk: fix some fallout
34155         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34156         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34157
34158 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34159
34160         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34161         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34162         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34163         (sc_cast_of_x_alloc_return_value): Likewise.
34164         (sc_cast_of_alloca_return_value): Likewise.
34165         (sc_space_tab): Likewise.
34166         (sc_prohibit_atoi_atof): Likewise.
34167         (sc_prohibit_magic_number_exit): Likewise.
34168         (sc_error_exit_success): Likewise.
34169         (sc_file_system): Likewise.
34170         (sc_prohibit_have_config_h): Likewise.
34171         (sc_require_config_h): Likewise.
34172         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34173         (sc_obsolete_symbols): Likewise.
34174         (sc_changelog): Likewise.
34175         (sc_program_name): Likewise.
34176         (sc_the_the): Likewise.
34177         (sc_trailing_blank): Likewise.
34178         (sc_two_space_separator_in_usage): Likewise.
34179         (sc_useless_cpp_parens): Likewise.
34180         (sc_GPL_version): Likewise.
34181         (sc_GFDL_version): Likewise.
34182         (sc_texinfo_acronym): Likewise.
34183         (sc_prohibit_cvs_keyword): Likewise.
34184         (sc_prohibit_stat_st_blocks): Likewise.
34185         (sc_prohibit_S_IS_definition): Likewise.
34186         (sc_redundant_const): Likewise.
34187         (sc_makefile_TAB_only_indentation): Likewise.
34188         (sc_m4_quote_check): Likewise.
34189         (sc_makefile_path_separator_check): Likewise.
34190         (sc_copyright_check): Likewise.
34191         (sc_Wundef_boolean): Likewise.
34192         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34193
34194         maint.mk: match 0 or more whitespace-before-function-call '('
34195         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34196         that have zero or two-and-more spaces between the function name
34197         and the open parenthesis.
34198         (sc_error_message_warn_fatal): Likewise.
34199         (sc_error_message_uppercase): Likewise.
34200         (sc_error_message_period): Likewise.
34201
34202 2010-03-31  Eric Blake  <eblake@redhat.com>
34203
34204         maint.mk: check for [ as well as test
34205         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34206         Based on a libvirt report by Matthias Bolte.
34207
34208         gnumakefile: don't squelch _version output
34209         * top/GNUmakefile (_version): Create one-shot dependency rather
34210         than using $(shell) when version must be regenerated.
34211         (_autoreconf): Run verbosely, by default.
34212
34213         sys_time: avoid compiler warnings
34214         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34215         unconditional, fixing regression from 2010-03-29.
34216         Reported by Simon Josefsson.
34217
34218 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34219
34220         maint.mk: s/_header_without_use/_sc_header_without_use/
34221         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34222         (sc_prohibit_assert_without_use): Use the new name.
34223         (sc_prohibit_close_stream_without_use): Likewise.
34224         (sc_prohibit_getopt_without_use): Likewise.
34225         (sc_prohibit_quotearg_without_use): Likewise.
34226         (sc_prohibit_quote_without_use): Likewise.
34227         (sc_prohibit_long_options_without_use): Likewise.
34228         (sc_prohibit_inttostr_without_use): Likewise.
34229         (sc_prohibit_ignore_value_without_use): Likewise.
34230         (sc_prohibit_error_without_use): Likewise.
34231         (sc_prohibit_xalloc_without_use): Likewise.
34232         (sc_prohibit_hash_without_use): Likewise.
34233         (sc_prohibit_hash_pjw_without_use): Likewise.
34234         (sc_prohibit_safe_read_without_use): Likewise.
34235         (sc_prohibit_argmatch_without_use): Likewise.
34236         (sc_prohibit_canonicalize_without_use): Likewise.
34237         (sc_prohibit_root_dev_ino_without_use): Likewise.
34238         (sc_prohibit_openat_without_use): Likewise.
34239         (sc_prohibit_c_ctype_without_use): Likewise.
34240         (sc_prohibit_signal_without_use): Likewise.
34241         (sc_prohibit_intprops_without_use): Likewise.
34242
34243 2010-03-30  Eric Blake  <eblake@redhat.com>
34244
34245         maint: improve module indicators
34246         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34247         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34248         columns, and avoid extra macro expansion.
34249
34250         fdopendir: work around FreeBSD bug
34251         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34253         * modules/dirent (Makefile.am): Substitute it.
34254         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34255         declaration.
34256         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34257         fix.
34258         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34259
34260 2010-03-29  Bruno Haible  <bruno@clisp.org>
34261
34262         Emit #pragma system_header after the inclusion guard, not before.
34263         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34264         guard that spans the entire file, not before. This enables an
34265         optimization in GCC's preprocessor.
34266         * lib/ctype.in.h: Likewise.
34267         * lib/dirent.in.h: Likewise.
34268         * lib/errno.in.h: Likewise.
34269         * lib/float.in.h: Likewise.
34270         * lib/getopt.in.h: Likewise.
34271         * lib/iconv.in.h: Likewise.
34272         * lib/langinfo.in.h: Likewise.
34273         * lib/locale.in.h: Likewise.
34274         * lib/math.in.h: Likewise.
34275         * lib/netdb.in.h: Likewise.
34276         * lib/netinet_in.in.h: Likewise.
34277         * lib/pty.in.h: Likewise.
34278         * lib/sched.in.h: Likewise.
34279         * lib/se-selinux.in.h: Likewise.
34280         * lib/search.in.h: Likewise.
34281         * lib/spawn.in.h: Likewise.
34282         * lib/stdarg.in.h: Likewise.
34283         * lib/stdint.in.h: Likewise.
34284         * lib/string.in.h: Likewise.
34285         * lib/strings.in.h: Likewise.
34286         * lib/sys_file.in.h: Likewise.
34287         * lib/sys_ioctl.in.h: Likewise.
34288         * lib/sys_time.in.h: Likewise.
34289         * lib/sys_times.in.h: Likewise.
34290         * lib/sys_utsname.in.h: Likewise.
34291         * lib/sys_wait.in.h: Likewise.
34292         * lib/sysexits.in.h: Likewise.
34293         * lib/wctype.in.h: Likewise.
34294
34295 2010-03-28  James Youngman  <jay@gnu.org>
34296
34297         save-cwd: don't leak a file descriptor when the caller execs.
34298         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34299         saved file descriptor.
34300         * modules/save-cwd (Depends-on): Depend on cloexec.
34301
34302 2010-03-29  Bruno Haible  <bruno@clisp.org>
34303
34304         Remove vestiges of fts-lgpl module.
34305         * lib/fts_.h: Assume GNULIB_FTS is 1.
34306         * lib/fts.c: Likewise.
34307         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34308
34309 2010-03-28  Bruno Haible  <bruno@clisp.org>
34310
34311         Fix definition of tests witness macro.
34312         * gnulib-tool (func_import): Fix definition of witness macro.
34313
34314 2010-03-28  Bruno Haible  <bruno@clisp.org>
34315
34316         Fix ioctl's protoype on glibc systems.
34317         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34318         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34319         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34320         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34321         signature. If not, arrange to replace the ioctl function.
34322         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34323         REPLACE_IOCTL.
34324         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34325         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34326         Reported by Ludovic Courtès <ludo@gnu.org>.
34327
34328 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34329
34330         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34331         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34332         made it so grep -r --include=GLOB* ... did not work.
34333
34334 2010-03-26  Jim Meyering  <meyering@redhat.com>
34335             Eric Blake  <eblake@redhat.com>
34336
34337         maint.mk: prohibit use of test's -o and -a operators
34338         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34339
34340 2010-03-28  Bruno Haible  <bruno@clisp.org>
34341
34342         Remove unused GNULIB_XYZ macro definitions.
34343         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34344         invocation.
34345
34346 2010-03-28  Bruno Haible  <bruno@clisp.org>
34347
34348         Mark privileged tests modules.
34349         * modules/idpriv-drop-tests (Status): New section.
34350         * modules/idpriv-droptemp-tests (Status): New section.
34351
34352 2010-03-28  Bruno Haible  <bruno@clisp.org>
34353
34354         Split C++ tests into separate tests modules.
34355         * modules/dirent-c++-tests: New file, extracted from
34356         modules/dirent-tests.
34357         * modules/dirent-tests: Depend on it.
34358         * modules/fcntl-h-c++-tests: New file, extracted from
34359         modules/fcntl-h-tests.
34360         * modules/fcntl-h-tests: Depend on it.
34361         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34362         * modules/glob-tests: Depend on it.
34363         * modules/iconv-h-c++-tests: New file, extracted from
34364         modules/iconv-h-tests.
34365         * modules/iconv-h-tests: Depend on it.
34366         * modules/langinfo-c++-tests: New file, extracted from
34367         modules/langinfo-tests.
34368         * modules/langinfo-tests: Depend on it.
34369         * modules/locale-c++-tests: New file, extracted from
34370         modules/locale-tests.
34371         * modules/locale-tests: Depend on it.
34372         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34373         * modules/math-tests: Depend on it.
34374         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34375         * modules/pty-tests: Depend on it.
34376         * modules/search-c++-tests: New file, extracted from
34377         modules/search-tests.
34378         * modules/search-tests: Depend on it.
34379         * modules/signal-c++-tests: New file, extracted from
34380         modules/signal-tests.
34381         * modules/signal-tests: Depend on it.
34382         * modules/spawn-c++-tests: New file, extracted from
34383         modules/spawn-tests.
34384         * modules/spawn-tests: Depend on it.
34385         * modules/stdio-c++-tests: New file, extracted from
34386         modules/stdio-tests.
34387         * modules/stdio-tests: Depend on it.
34388         * modules/stdlib-c++-tests: New file, extracted from
34389         modules/stdlib-tests.
34390         * modules/stdlib-tests: Depend on it.
34391         * modules/string-c++-tests: New file, extracted from
34392         modules/string-tests.
34393         * modules/string-tests: Depend on it.
34394         * modules/sys_ioctl-c++-tests: New file, extracted from
34395         modules/sys_ioctl-tests.
34396         * modules/sys_ioctl-tests: Depend on it.
34397         * modules/sys_select-c++-tests: New file, extracted from
34398         modules/sys_select-tests.
34399         * modules/sys_select-tests: Depend on it.
34400         * modules/sys_socket-c++-tests: New file, extracted from
34401         modules/sys_socket-tests.
34402         * modules/sys_socket-tests: Depend on it.
34403         * modules/sys_stat-c++-tests: New file, extracted from
34404         modules/sys_stat-tests.
34405         * modules/sys_stat-tests: Depend on it.
34406         * modules/sys_time-c++-tests: New file, extracted from
34407         modules/sys_time-tests.
34408         * modules/sys_time-tests: Depend on it.
34409         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34410         * modules/time-tests: Depend on it.
34411         * modules/unistd-c++-tests: New file, extracted from
34412         modules/unistd-tests.
34413         * modules/unistd-tests: Depend on it.
34414         * modules/wchar-c++-tests: New file, extracted from
34415         modules/wchar-tests.
34416         * modules/wchar-tests: Depend on it.
34417         * modules/wctype-c++-tests: New file, extracted from
34418         modules/wctype-tests.
34419         * modules/wctype-tests: Depend on it.
34420         Reported by Simon Josefsson.
34421
34422 2010-03-28  Bruno Haible  <bruno@clisp.org>
34423
34424         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34425         * gnulib-tool (func_exists_module): New function, extracted from
34426         func_verify_module.
34427         (func_verify_module): Use it.
34428         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34429         'foo' only if 'foo' exists.
34430         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34431         module.
34432
34433 2010-03-28  Bruno Haible  <bruno@clisp.org>
34434
34435         gnulib-tool: Add support for special categories of tests.
34436         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34437         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34438         (func_usage): Document them.
34439         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34440         inc_unportable_tests, inc_all_tests): New variables.
34441         (func_acceptable): Consider these variables.
34442         (func_modules_transitive_closure): Make it work when the 'Status' field
34443         consists of multiple words.
34444         (func_import): Store and restore the values of inc_cxx_tests,
34445         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34446         inc_all_tests in gnulib-comp.m4.
34447         (func_create_testdir): Set inc_all_tests to true.
34448         * doc/gnulib.texi (Extra tests modules): New section.
34449         Suggested by Jim Meyering.
34450
34451 2010-03-28  Bruno Haible  <bruno@clisp.org>
34452
34453         ansi-c++-opt: Allow turning off the C++ build by default.
34454         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34455         gl_CXX_CHOICE_DEFAULT_NO is defined.
34456         Requested by Eric Blake.
34457
34458 2010-03-28  Bruno Haible  <bruno@clisp.org>
34459
34460         unistd: Avoid #define replacements in C++ mode.
34461         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34462         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34463         setsockopt, shutdown, select): In C++, attach a warning to the function
34464         if possible, rather than #defining the symbol to a dysfunctional alias.
34465         Reported by John W. Eaton <jwe@gnu.org>.
34466
34467 2010-03-28  Bruno Haible  <bruno@clisp.org>
34468
34469         Fix link errors on mingw.
34470         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34471         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34472         $(LIBSOCKET).
34473         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34474         $(LIBSOCKET).
34475
34476 2010-03-28  Bruno Haible  <bruno@clisp.org>
34477             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34478
34479         lib-ignore: Determine different options for different compilers.
34480         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34481         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34482         Add comments.
34483         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34484         * NEWS: Mention the change.
34485
34486 2010-03-27  Bruno Haible  <bruno@clisp.org>
34487
34488         Remove unused GNULIB_XYZ macro definitions.
34489         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34490         * modules/fseek (configure.ac): Likewise.
34491         * modules/ioctl (configure.ac): Likewise.
34492         * modules/open (configure.ac): Likewise.
34493         * modules/stdlib-safer (configure.ac): Likewise.
34494
34495 2010-03-27  Bruno Haible  <bruno@clisp.org>
34496
34497         Add a remark about certain modules.
34498         * modules/malloc (Comment): New section.
34499         * modules/realloc (Comment): Likewise.
34500         * modules/sigpipe (Comment): Likewise.
34501
34502 2010-03-27  Bruno Haible  <bruno@clisp.org>
34503
34504         Resolve conflict between the two kinds of module indicators.
34505         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34506         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34507         * modules/canonicalize (configure.ac): Invoke
34508         gl_MODULE_INDICATOR_FOR_TESTS.
34509         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34510         GNULIB_XYZ.
34511         * tests/test-dirent-c++.cc: Likewise.
34512         * tests/test-dirent-safer.c: Likewise.
34513         * tests/test-dup2.c: Likewise.
34514         * tests/test-fchdir.c: Likewise.
34515         * tests/test-fcntl-h-c++.cc: Likewise.
34516         * tests/test-getopt.c: Likewise.
34517         * tests/test-getopt.h: Likewise.
34518         * tests/test-langinfo-c++.cc: Likewise.
34519         * tests/test-locale-c++.cc: Likewise.
34520         * tests/test-math-c++.cc: Likewise.
34521         * tests/test-pty-c++.cc: Likewise.
34522         * tests/test-search-c++.cc: Likewise.
34523         * tests/test-signal-c++.cc: Likewise.
34524         * tests/test-spawn-c++.cc: Likewise.
34525         * tests/test-stdio-c++.cc: Likewise.
34526         * tests/test-stdlib-c++.cc: Likewise.
34527         * tests/test-string-c++.cc: Likewise.
34528         * tests/test-sys_ioctl-c++.cc: Likewise.
34529         * tests/test-sys_select-c++.cc: Likewise.
34530         * tests/test-sys_socket-c++.cc: Likewise.
34531         * tests/test-sys_stat-c++.cc: Likewise.
34532         * tests/test-sys_time-c++.cc: Likewise.
34533         * tests/test-time-c++.cc: Likewise.
34534         * tests/test-unistd-c++.cc: Likewise.
34535         * tests/test-wchar-c++.cc: Likewise.
34536         * tests/uninorm/test-u8-nfc.c: Likewise.
34537         * tests/uninorm/test-u8-nfd.c: Likewise.
34538         * tests/uninorm/test-u8-nfkc.c: Likewise.
34539         * tests/uninorm/test-u8-nfkd.c: Likewise.
34540         * tests/uninorm/test-u16-nfc.c: Likewise.
34541         * tests/uninorm/test-u16-nfd.c: Likewise.
34542         * tests/uninorm/test-u16-nfkc.c: Likewise.
34543         * tests/uninorm/test-u16-nfkd.c: Likewise.
34544         * tests/uninorm/test-u32-nfc.c: Likewise.
34545         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34546         * tests/uninorm/test-u32-nfd.c: Likewise.
34547         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34548         * tests/uninorm/test-u32-nfkc.c: Likewise.
34549         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34550         * tests/uninorm/test-u32-nfkd.c: Likewise.
34551         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34552         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34553
34554 2010-03-27  Bruno Haible  <bruno@clisp.org>
34555
34556         Distinguish two kinds of module indicators.
34557         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34558         gl_MODULE_INDICATOR.
34559         (gl_MODULE_INDICATOR): New macro.
34560         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34561         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34562         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34563         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34564         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34565         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34566         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34567         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34568         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34569         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34570         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34571         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34573         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34574         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34575         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34576         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34577         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34578         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34579         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34580         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34581         * modules/cloexec (configure.ac): Likewise.
34582         * modules/getopt-gnu (configure.ac): Likewise.
34583         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34584         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34585         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34586         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34587
34588 2010-03-27  Bruno Haible  <bruno@clisp.org>
34589
34590         New module description field 'Comment'.
34591         * gnulib-tool: New option --extract-comment.
34592         (func_usage): Document it.
34593         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34594         (func_get_comment): New function.
34595         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34596
34597 2010-03-27  Bruno Haible  <bruno@clisp.org>
34598
34599         Addendum to 2010-02-07 commit.
34600         * gnulib-tool (func_usage): Document --extract-applicability option.
34601
34602 2010-03-27  Bruno Haible  <bruno@clisp.org>
34603
34604         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34605         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34606         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34607         rather than link errors.
34608
34609 2010-03-27  Bruno Haible  <bruno@clisp.org>
34610
34611         Avoid side effects from tests-related modules on the compilation of lib.
34612         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34613         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34614         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34615         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34616         macro.
34617         (func_import): Define a witness macro. Assign it a value that depends
34618         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34619         tests-related modules.
34620         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34621         Reported by Jim Meyering.
34622
34623 2010-03-27  Bruno Haible  <bruno@clisp.org>
34624
34625         Factorize common .m4 code.
34626         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34627         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34628         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34629         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34630         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34631         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34632         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34633         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34634         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34635         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34636         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34637         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34638         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34639         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34640         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34641         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34642         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34643         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34645         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34646         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34648         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34649         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34650         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34651         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34652         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34653         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34654         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34655         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34656         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34657         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34658
34659 2010-03-27  Bruno Haible  <bruno@clisp.org>
34660
34661         Fix a compilation error on Cygwin with g++ >= 4.3.
34662         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34663         if it is undefined or if we alias it to chmod.
34664         (lstat): Don't warn about the use of this function if it is undefined
34665         or if we alias it to stat.
34666         Reported by Simon Josefsson.
34667
34668 2010-03-27  Bruno Haible  <bruno@clisp.org>
34669
34670         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34671         * modules/getlogin (configure.ac): Update.
34672
34673         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34674         * modules/getlogin_r (configure.ac): Update.
34675
34676         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34678         * modules/inet_ntop (configure.ac): Update.
34679
34680         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34681         * modules/inet_pton (configure.ac): Update.
34682
34683         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34684         * modules/mbslen (configure.ac): Update.
34685
34686         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34687         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34688         * modules/forkpty (configure.ac): Update.
34689         * modules/openpty (configure.ac): Update.
34690
34691 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34692
34693         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34694         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34695
34696 2010-03-25  Eric Blake  <eblake@redhat.com>
34697
34698         maint: use pragma consistently across replacement headers
34699         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34700         * lib/dirent.in.h (system_header): Likewise.
34701         * lib/errno.in.h (system_header): Likewise.
34702         * lib/float.in.h (system_header): Likewise.
34703         * lib/getopt.in.h (system_header): Likewise.
34704         * lib/iconv.in.h (system_header): Likewise.
34705         * lib/inttypes.in.h (system_header): Likewise.
34706         * lib/langinfo.in.h (system_header): Likewise.
34707         * lib/locale.in.h (system_header): Likewise.
34708         * lib/math.in.h (system_header): Likewise.
34709         * lib/netdb.in.h (system_header): Likewise.
34710         * lib/netinet_in.in.h (system_header): Likewise.
34711         * lib/pty.in.h (system_header): Likewise.
34712         * lib/sched.in.h (system_header): Likewise.
34713         * lib/se-selinux.in.h (system_header): Likewise.
34714         * lib/search.in.h (system_header): Likewise.
34715         * lib/spawn.in.h (system_header): Likewise.
34716         * lib/stdarg.in.h (system_header): Likewise.
34717         * lib/stdint.in.h (system_header): Likewise.
34718         * lib/string.in.h (system_header): Likewise.
34719         * lib/strings.in.h (system_header): Likewise.
34720         * lib/sys_file.in.h (system_header): Likewise.
34721         * lib/sys_ioctl.in.h (system_header): Likewise.
34722         * lib/sys_socket.in.h (system_header): Likewise.
34723         * lib/sys_times.in.h (system_header): Likewise.
34724         * lib/sys_utsname.in.h (system_header): Likewise.
34725         * lib/sys_wait.in.h (system_header): Likewise.
34726         * lib/sysexits.in.h (system_header): Likewise.
34727         * lib/unistd.in.h (system_header): Likewise.
34728         * lib/wctype.in.h (system_header): Likewise.
34729
34730         arpa/inet: fix mingw compilation warning
34731         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34732         Reported by Matthew Bolte.
34733
34734 2010-03-25  Bruno Haible  <bruno@clisp.org>
34735
34736         Avoid collision between gnulib wrapper and libintl wrapper.
34737         * lib/printf.c (printf): Don't define if a printf wrapper is already
34738         defined in intl/printf.c.
34739         Reported by Michel Boaventura <michel@michelboaventura.com>.
34740
34741 2010-03-25  Bruno Haible  <bruno@clisp.org>
34742
34743         Use ANSI C.
34744         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34745
34746 2010-03-25  Bruno Haible  <bruno@clisp.org>
34747
34748         Minor formatting changes.
34749         * lib/acosl.c: Insert space before function argument list.
34750         * lib/argz.c: Likewise.
34751         * lib/asinl.c: Likewise.
34752         * lib/expl.c: Likewise.
34753         * lib/gen-uni-tables.c: Likewise.
34754         * lib/gettext.h: Likewise.
34755         * lib/glthread/lock.h: Likewise.
34756         * lib/tanl.c: Likewise.
34757         * lib/uniname/uniname.c: Likewise.
34758         * tests/test-idpriv-drop.c: Likewise.
34759         * tests/test-idpriv-droptemp.c: Likewise.
34760         * tests/test-lock.c: Likewise.
34761         * tests/test-tls.c: Likewise.
34762         * lib/argp-help.c: Insert space before function-like macro argument
34763         list.
34764         * lib/memcmp.c: Likewise.
34765         * tests/test-base64.c: Likewise.
34766         * lib/localename.c: Insert space before sizeof's argument list.
34767         * lib/safe-alloc.h: Likewise.
34768         * lib/file-set.h: Insert space before macro argument list.
34769         * tests/test-argp.c: Likewise.
34770         * lib/argp-namefrob.h: Insert space before function parameter list.
34771         * lib/getaddrinfo.c: Likewise.
34772         * lib/netdb.in.h: Likewise.
34773         * lib/parse-duration.h: Likewise.
34774         * lib/parse-duration.c: Likewise.
34775         * lib/poll.c: Likewise.
34776         * lib/select.c: Likewise.
34777         * lib/trim.h: Likewise.
34778         * tests/test-usleep.c: Likewise.
34779         * lib/ldexpl.c: Insert space before function parameter list and before
34780         function argument list.
34781         * lib/logl.c: Likewise.
34782         * lib/sqrtl.c: Likewise.
34783         * lib/trim.c: Likewise.
34784         * lib/cosl.c: Use GNU style indentation. Insert space before function
34785         argument list.
34786         * lib/sinl.c: Likewise.
34787         * lib/tsearch.c: Insert space after 'for'.
34788         Reported by Jim Meyering.
34789
34790 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34791
34792         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34793         config header before grepping, as it's not present before
34794         autoreconf/configure are run.  Reported by Simon Josefsson.
34795
34796 2010-03-23  Bruno Haible  <bruno@clisp.org>
34797
34798         pt_chown: Make it work with automake < 1.11.
34799         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34800         Reported by Simon Josefsson.
34801
34802 2010-03-23  Bruno Haible  <bruno@clisp.org>
34803
34804         pt_chown: Don't depend on GPLed modules.
34805         * lib/pt_chown.c: Don't include idpriv.h.
34806         (main): Don't drop privileges.
34807         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34808         Reported by Simon Josefsson.
34809
34810 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34811
34812         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34813         suggestions from karl@freefriends.org (Karl Berry).
34814
34815 2010-03-22  Eric Blake  <eblake@redhat.com>
34816
34817         gethostname: further tweaks
34818         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34819         are overriding gethostname.
34820         Suggested by Bruno Haible.
34821
34822 2010-03-21  Bruno Haible  <bruno@clisp.org>
34823
34824         Fix comments.
34825         * lib/forkpty.c (rpl_forkpty): Fix comment.
34826         * lib/openpty.c (rpl_openpty): Likewise.
34827         Reported by Eric Blake.
34828
34829 2010-03-22  Eric Blake  <eblake@redhat.com>
34830
34831         gethostname: fix build on mingw
34832         * lib/unistd.in.h (includes): Work around fact that mingw
34833         <winsock2.h> re-includes <unistd.h>, by avoiding any
34834         redeclarations if we are being included by <winsock2.h>.
34835         Reported by Matthias Bolte.
34836
34837 2010-03-21  Bruno Haible  <bruno@clisp.org>
34838
34839         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34840         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34841         modifications.
34842         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34843         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34844         provide the replacement.
34845         * modules/forkpty (Depends-on): Add openpty, login_tty.
34846         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34847         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34848         * doc/glibc-functions/forkpty.texi: More supported platforms.
34849         * config/srclist.txt: Add forkpty.c (commented).
34850
34851 2010-03-21  Bruno Haible  <bruno@clisp.org>
34852
34853         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34854         (Makefile.am): Verify that PTY_LIB is defined.
34855
34856         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34857
34858 2010-03-21  Bruno Haible  <bruno@clisp.org>
34859
34860         Tests for module 'login_tty'.
34861         * modules/login_tty-tests: New file.
34862         * tests/test-login_tty.c: New file.
34863
34864         New module 'login_tty'.
34865         * lib/login_tty.c: New file.
34866         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34867         * modules/login_tty: New file.
34868         * doc/glibc-functions/login_tty.texi: Mention the new module.
34869
34870 2010-03-21  Bruno Haible  <bruno@clisp.org>
34871
34872         login_tty: Documentation.
34873         * doc/glibc-functions/login_tty.texi: New file.
34874         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34875
34876 2010-03-21  Bruno Haible  <bruno@clisp.org>
34877
34878         pty: Consistent macro naming.
34879         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34880         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34881         * modules/pty (configure.ac): Update.
34882
34883 2010-03-21  Bruno Haible  <bruno@clisp.org>
34884
34885         Tests for openpty: Make stricter.
34886         * tests/test-openpty.c (main): Add test of canonical processing and
34887         erase.
34888         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34889
34890         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34891         * lib/openpty.c (openpty): New replacement function.
34892         * lib/pty.in.h: Include <termios.h>.
34893         (openpty): Update declaration. Add comments.
34894         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34895         is not declared, arrange to provide the replacement. Check for _getpty
34896         and posix_openpt.
34897         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34898         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34899         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34900         * modules/pty-tests (test_pty_c___LDADD): New variable.
34901         * doc/glibc-functions/openpty.texi: More supported platforms.
34902
34903 2010-03-21  Bruno Haible  <bruno@clisp.org>
34904
34905         setenv: Tweaks.
34906         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34907         the test program.
34908         * doc/posix-functions/setenv.texi: Update platforms list.
34909
34910 2010-03-21  Bruno Haible  <bruno@clisp.org>
34911
34912         New module 'unlockpt'.
34913         * lib/unlockpt.c: New file, from glibc with modifications.
34914         * m4/unlockpt.m4: New file.
34915         * modules/unlockpt: New file.
34916         * lib/stdlib.in.h (unlockpt): New declaration.
34917         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34918         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34919         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34920         HAVE_UNLOCKPT.
34921         * doc/posix-functions/unlockpt.texi: Mention the new module.
34922         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34923         * config/srclist.txt: Add unlockpt.c (commented).
34924
34925 2010-03-21  Jim Meyering  <meyering@redhat.com>
34926
34927         maint.mk: prohibit inclusion of "intprops.h" without use
34928         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34929
34930 2010-03-21  Bruno Haible  <bruno@clisp.org>
34931
34932         New module 'grantpt'.
34933         * lib/grantpt.c: New file, from glibc with modifications.
34934         * m4/grantpt.m4: New file.
34935         * modules/grantpt: New file.
34936         * lib/stdlib.in.h (grantpt): New declaration.
34937         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34938         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34939         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34940         HAVE_GRANTPT.
34941         * doc/posix-functions/grantpt.texi: Mention the new module.
34942         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34943         * config/srclist.txt: Add grantpt.c (commented).
34944
34945 2010-03-21  Bruno Haible  <bruno@clisp.org>
34946
34947         New module 'pt_chown'.
34948         * lib/pt_chown.c: New file, from glibc with modifications.
34949         * lib/pty-private.h: New file, from glibc with modifications.
34950         * modules/pt_chown: New file.
34951         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34952
34953 2010-03-21  Bruno Haible  <bruno@clisp.org>
34954
34955         Tests for module 'ptsname'.
34956         * modules/ptsname-tests: New file.
34957         * tests/test-ptsname.c: New file.
34958
34959         New module 'ptsname'.
34960         * lib/ptsname.c: New file, from glibc with modifications.
34961         * m4/ptsname.m4: New file.
34962         * modules/ptsname: New file.
34963         * lib/stdlib.in.h (ptsname): New declaration.
34964         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34965         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34966         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34967         HAVE_PTSNAME.
34968         * doc/posix-functions/ptsname.texi: Mention the new module.
34969         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34970         * config/srclist.txt: Add ptsname.c (commented).
34971
34972 2010-03-21  Bruno Haible  <bruno@clisp.org>
34973
34974         Tests for module 'ttyname_r'.
34975         * modules/ttyname_r-tests: New file.
34976         * tests/test-ttyname_r.c: New file.
34977
34978         New module 'ttyname_r'.
34979         * lib/ttyname_r.c: New file.
34980         * m4/ttyname_r.m4: New file.
34981         * modules/ttyname_r: New file.
34982         * lib/unistd.in.h (ttyname_r): New declaration.
34983         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34984         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34985         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34986         HAVE_TTYNAME_R.
34987         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34988         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34989
34990 2010-03-20  Bruno Haible  <bruno@clisp.org>
34991
34992         signal: Undefine macro definitions in C++ mode.
34993         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34994         sigfillset): Undefine macro definitions from the system header in C++
34995         mode.
34996         Reported by John W. Eaton <jwe@gnu.org>.
34997
34998 2010-03-20  Bruno Haible  <bruno@clisp.org>
34999
35000         Ensure no #include statements inside extern "C" { ... }.
35001         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35002         contain #include statements.
35003         * lib/time.in.h: Likewise.
35004
35005 2010-03-20  Bruno Haible  <bruno@clisp.org>
35006
35007         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35008         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35009         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35010         Reported by John W. Eaton <jwe@gnu.org>.
35011
35012 2010-03-20  Bruno Haible  <bruno@clisp.org>
35013
35014         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35015         Reported by Jim Meyering.
35016
35017 2010-03-20  Bruno Haible  <bruno@clisp.org>
35018
35019         pipe: Set errno upon failure.
35020         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35021         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35022         errno value in error message.
35023
35024 2010-03-20  Bruno Haible  <bruno@clisp.org>
35025             Jim Meyering  <meyering@redhat.com>
35026
35027         lchown: Avoid "unused variable" warning.
35028         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35029
35030 2010-03-20  Bruno Haible  <bruno@clisp.org>
35031
35032         Work around unlink() bug on MacOS X 10.5.6.
35033         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35034         attempting to unlink a parent directory.
35035         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35036         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35037         activate for the replacement function.
35038         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35039
35040 2010-03-20  Bruno Haible  <bruno@clisp.org>
35041
35042         Fix link errors on Solaris 8.
35043         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35044         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35045
35046 2010-03-19  Jim Meyering  <meyering@redhat.com>
35047
35048         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35049         The _LIBC implementation of build_range_exp correctly honors the
35050         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35051         However, the non-_LIBC implementation would ignore that syntax-bit
35052         flag and return REG_ERANGE unconditionally.
35053         This change makes it honor that flag.
35054         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35055         Make two pointer parameters "const".
35056         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35057         (parse_bracket_exp): Update caller.
35058
35059         regex.m4: correct the reversed range endpoint ([b-a]) test
35060         * m4/regex.m4: When requiring that [b-a] evoke failure,
35061         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35062         test pass once again for x86-based systems.
35063
35064 2010-03-19  Bruno Haible  <bruno@clisp.org>
35065
35066         scandir: Fix link error on Solaris 8.
35067         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35068         macros.
35069
35070 2010-03-19  Bruno Haible  <bruno@clisp.org>
35071
35072         getusershell: Fix documentation.
35073         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35074         module.
35075         * doc/glibc-functions/setusershell.texi: Likewise.
35076
35077         getusershell: Provide declaration, missing on Solaris 9.
35078         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35079         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35080         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35081         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35083         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35084         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35085         HAVE_GETUSERSHELL.
35086         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35087
35088 2010-03-19  Bruno Haible  <bruno@clisp.org>
35089
35090         wctype: Provide iswblank function.
35091         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35092         exists and is fine.
35093         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35094         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35095         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35096         * doc/posix-functions/iswblank.texi: Update.
35097
35098 2010-03-19  Bruno Haible  <bruno@clisp.org>
35099
35100         Tests of module 'pty' in C++ mode.
35101         * modules/pty-tests: New file.
35102         * tests/test-pty-c++.cc: New file.
35103         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35104
35105 2010-03-19  Eric Blake  <eblake@redhat.com>
35106
35107         logb: fix documentation
35108         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35109         1.5 declaration bug.
35110
35111         forkpty, openpty: prefer glibc's const-safe prototype
35112         * lib/forkpty.c (rpl_forkpty): New file.
35113         * lib/openpty.c (rpl_openpty): Likewise.
35114         * modules/forkpty (Files): Distribute it.
35115         * modules/openpty (Files): Likewise.
35116         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35117         check...
35118         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35119         replacement for for non-const BSD signature.
35120         * modules/pty (Makefile.am): Substitute witnesses.
35121         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35122         * tests/test-forkpty.c: Update signature check.
35123         * tests/test-openpty.c: Likewise.
35124         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35125         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35126
35127         forkpty, openpty: split functions into new modules
35128         * modules/pty (Makefile.am): Substitute new witnesses.
35129         (Libraries): Move library detection...
35130         * modules/forkpty: ...into new module.
35131         * modules/openpty: Another new module.
35132         * modules/pty-tests: Rename and split...
35133         * modules/forkpty-tests: ...to this...
35134         * modules/openpty-tests: ...and this.
35135         * tests/test-pty.c: Rename and split...
35136         * tests/test-forkpty.c: ...to this...
35137         * tests/test-openpty.c: ...and this.
35138         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35139         (gl_PTY): Split library searching...
35140         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35141         (gl_FORKPTY, gl_OPENPTY): New macros.
35142         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35143         * NEWS: Mention the split.
35144         * MODULES.html.sh (Misc): Document the modules.
35145         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35146         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35147
35148         pty: improve replacement header
35149         * lib/pty.in.h: New file.
35150         * modules/pty (Files): Ship it.
35151         (Makefile.am): Always build replacement.
35152         * m4/pty.m4: Rename...
35153         * m4/pty_h.m4: ...to this.
35154         (gl_PTY): Modernize setting of witness macros; update check of
35155         forkpty to take proper advantage of cache.
35156         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35157
35158         getopt: avoid compiler warning
35159         * lib/getopt.c (attribute_hidden): Remove unused macro.
35160
35161 2010-03-18  Bruno Haible  <bruno@clisp.org>
35162
35163         Fix link errors on Solaris 8.
35164         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35165         * modules/search-tests (test_search_c___LDADD): Likewise.
35166         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35167         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35168         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35169         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35170         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35171         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35172         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35173
35174 2010-03-18  Bruno Haible  <bruno@clisp.org>
35175
35176         Fix bug introduced on 2010-03-14.
35177         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35178         (gl_SPAWN_H): Require it.
35179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35180         Reported by Simon Josefsson.
35181
35182 2010-03-18  Bruno Haible  <bruno@clisp.org>
35183
35184         Fix typo introduced on 2009-12-31.
35185         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35186         posix_spawn_file_actions_adddup2.
35187
35188 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35189         and Eric Blake  <eblake@redhat.com>
35190
35191         test-vc-list-files-git: make more robust
35192         * tests/test-vc-list-files-git.sh: Unset problematic environment
35193         variables.  Chain commands together.
35194
35195 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35196
35197         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35198         `AC_CHECK_DECL' invocation.
35199
35200 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35201
35202         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35203         appears before executable statements. Suggested by Petr Sumbera
35204         <Petr.Sumbera@Sun.COM>.
35205
35206 2010-03-14  Bruno Haible  <bruno@clisp.org>
35207
35208         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35209         portability problems. Instead use a simpler test.
35210         (main): Check that invalid arguments are rejected only on Linux.
35211
35212 2010-03-14  Bruno Haible  <bruno@clisp.org>
35213
35214         Fix bug introduced on 2009-12-31.
35215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35216         gl_PREREQ_SYS_H_WINSOCK2 always.
35217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35218         SYS_SOCKET_H variable.
35219         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35220         Update comments.
35221         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35222         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35223         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35224         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35225         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35226
35227 2010-03-14  Bruno Haible  <bruno@clisp.org>
35228
35229         Fix values returned by sinl, cosl.
35230         * lib/trigl.h: Add specification comments.
35231         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35232         that combines the values from the precomputed table with the values of
35233         the Chebyshev polynomials.
35234
35235 2010-03-14  Bruno Haible  <bruno@clisp.org>
35236
35237         Fix compilation error when modules 'posix_spawn[p]' are not used.
35238         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35240
35241 2010-03-14  Bruno Haible  <bruno@clisp.org>
35242
35243         Fix compilation error on mingw when module 'time_r' is not used.
35244         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35245         is 1.
35246         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35247         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35248         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35249         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35250
35251 2010-03-14  Bruno Haible  <bruno@clisp.org>
35252
35253         Fix compilation error with Sun C.
35254         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35255         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35256         instead of GCC specific ULONG_LONG_MAX.
35257         * lib/xstrtoll.c: Likewise.
35258         * lib/xstrtoull.c: Likewise.
35259
35260 2010-03-13  Bruno Haible  <bruno@clisp.org>
35261
35262         Allow the user to disable C++ code and tests.
35263         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35264         (gl_PROG_ANSI_CXX): Require it.
35265
35266 2010-03-13  Bruno Haible  <bruno@clisp.org>
35267
35268         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35269         cases.
35270
35271 2010-03-13  Bruno Haible  <bruno@clisp.org>
35272
35273         Test that gnulib does not break the standard C++ headers.
35274         * tests/test-locale-c++2.cc: New file.
35275         * modules/locale-tests (Files): Add it.
35276         (Makefile.am): Compile it for test-locale-c++.
35277         * tests/test-math-c++2.cc: New file.
35278         * modules/math-tests (Files): Add it.
35279         (Makefile.am): Compile it for test-math-c++.
35280         * tests/test-signal-c++2.cc: New file.
35281         * modules/signal-tests (Files): Add it.
35282         (Makefile.am): Compile it for test-signal-c++.
35283         * tests/test-stdio-c++2.cc: New file.
35284         * modules/stdio-tests (Files): Add it.
35285         (Makefile.am): Compile it for test-stdio-c++.
35286         * tests/test-stdlib-c++2.cc: New file.
35287         * modules/stdlib-tests (Files): Add it.
35288         (Makefile.am): Compile it for test-stdlib-c++.
35289         * tests/test-string-c++2.cc: New file.
35290         * modules/string-tests (Files): Add it.
35291         (Makefile.am): Compile it for test-string-c++.
35292         * tests/test-time-c++2.cc: New file.
35293         * modules/time-tests (Files): Add it.
35294         (Makefile.am): Compile it for test-time-c++.
35295         Reported by John W. Eaton <jwe@gnu.org>.
35296
35297 2010-03-13  Bruno Haible  <bruno@clisp.org>
35298
35299         * gnulib-tool (func_usage): Clarify which options are available for
35300         --create-testdir and --create-megatestdir.
35301
35302 2010-03-13  Bruno Haible  <bruno@clisp.org>
35303
35304         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35305         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35306         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35307         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35308         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35309         when appropriate.
35310         Reported by Jim Meyering.
35311
35312 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35313
35314         * gnulib-tool (func_import): Explain origin of code.
35315
35316 2010-03-12  Bruno Haible  <bruno@clisp.org>
35317
35318         Fix problem with automake's definition of CXXLINK.
35319         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35320         Reported by Simon Josefsson and Ludovic Courtès.
35321
35322 2010-03-12  Bruno Haible  <bruno@clisp.org>
35323
35324         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35325         stable releases.
35326
35327 2010-03-11  Bruno Haible  <bruno@clisp.org>
35328
35329         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35330         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35331         whether the system provides one variant or multiple variants of the
35332         function.
35333         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35334         C++ compilers.
35335         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35336         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35337         Reported by Jim Meyering.
35338
35339 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35340
35341         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35342
35343 2010-03-08  Bruno Haible  <bruno@clisp.org>
35344
35345         gnulib-tool: Add support for --libtool in --create-testdir.
35346         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35347         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35348
35349 2010-03-08  Eric Blake  <eblake@redhat.com>
35350
35351         gnulib-tool.texi: mention possibility of git submodule
35352         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35353         submodules.
35354         * doc/.gitignore: Ignore another generated file.
35355
35356 2010-03-08  Karl Berry  <karl@gnu.org>
35357
35358         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35359         of committing gnulib files while skipping others.
35360
35361 2010-03-07  Bruno Haible  <bruno@clisp.org>
35362
35363         Tests of module 'wctype' in C++ mode.
35364         * tests/test-wctype-c++.cc: New file.
35365         * modules/wctype-tests (Files): Add it and tests/signature.h.
35366         (Depends-on): Add ansi-c++-opt.
35367         (Makefile.am): Arrange to compile and run test-wctype-c++.
35368
35369         Tests of module 'wchar' in C++ mode.
35370         * tests/test-wchar-c++.cc: New file.
35371         * modules/wchar-tests (Files): Add it and tests/signature.h.
35372         (Depends-on): Add ansi-c++-opt.
35373         (Makefile.am): Arrange to compile and run test-wchar-c++.
35374         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35375         gl_MODULE_INDICATOR.
35376
35377         Tests of module 'unistd' in C++ mode.
35378         * tests/test-unistd-c++.cc: New file.
35379         * modules/unistd-tests (Files): Add it and tests/signature.h.
35380         (Depends-on): Add ansi-c++-opt.
35381         (Makefile.am): Arrange to compile and run test-unistd-c++.
35382         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35383         gl_MODULE_INDICATOR.
35384
35385         Tests of module 'time' in C++ mode.
35386         * tests/test-time-c++.cc: New file.
35387         * modules/time-tests (Files): Add it and tests/signature.h.
35388         (Depends-on): Add ansi-c++-opt.
35389         (Makefile.am): Arrange to compile and run test-time-c++.
35390         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35391
35392         Tests of module 'sys_time' in C++ mode.
35393         * tests/test-sys_time-c++.cc: New file.
35394         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35395         (Depends-on): Add ansi-c++-opt.
35396         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35397         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35398         gl_MODULE_INDICATOR.
35399
35400         Tests of module 'sys_stat' in C++ mode.
35401         * tests/test-sys_stat-c++.cc: New file.
35402         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35403         (Depends-on): Add ansi-c++-opt.
35404         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35405         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35406         gl_MODULE_INDICATOR.
35407
35408         Tests of module 'sys_socket' in C++ mode.
35409         * tests/test-sys_socket-c++.cc: New file.
35410         * modules/sys_socket-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_socket-c++.
35413         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35414         gl_MODULE_INDICATOR.
35415
35416         Tests of module 'sys_select' in C++ mode.
35417         * tests/test-sys_select-c++.cc: New file.
35418         * modules/sys_select-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_select-c++.
35421         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35422         gl_MODULE_INDICATOR.
35423
35424         Tests of module 'sys_ioctl' in C++ mode.
35425         * tests/test-sys_ioctl-c++.cc: New file.
35426         * modules/sys_ioctl-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_ioctl-c++.
35429         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35430         gl_MODULE_INDICATOR.
35431
35432         Tests of module 'string' in C++ mode.
35433         * tests/test-string-c++.cc: New file.
35434         * modules/string-tests (Files): Add it and tests/signature.h.
35435         (Depends-on): Add ansi-c++-opt.
35436         (Makefile.am): Arrange to compile and run test-string-c++.
35437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35438         gl_MODULE_INDICATOR.
35439
35440         Tests of module 'stdlib' in C++ mode.
35441         * tests/test-stdlib-c++.cc: New file.
35442         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35443         (Depends-on): Add ansi-c++-opt.
35444         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35445         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35446         gl_MODULE_INDICATOR.
35447
35448         Tests of module 'stdio' in C++ mode.
35449         * tests/test-stdio-c++.cc: New file.
35450         * modules/stdio-tests (Files): Add it and tests/signature.h.
35451         (Depends-on): Add ansi-c++-opt.
35452         (Makefile.am): Arrange to compile and run test-stdio-c++.
35453         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35454         gl_MODULE_INDICATOR.
35455
35456         Tests of module 'spawn' in C++ mode.
35457         * tests/test-spawn-c++.cc: New file.
35458         * modules/spawn-tests (Files): Add it and tests/signature.h.
35459         (Depends-on): Add ansi-c++-opt.
35460         (Makefile.am): Arrange to compile and run test-spawn-c++.
35461         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35462         gl_MODULE_INDICATOR.
35463
35464         Tests of module 'signal' in C++ mode.
35465         * tests/test-signal-c++.cc: New file.
35466         * modules/signal-tests (Files): Add it and tests/signature.h.
35467         (Depends-on): Add ansi-c++-opt.
35468         (Makefile.am): Arrange to compile and run test-signal-c++.
35469         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35470         gl_MODULE_INDICATOR.
35471
35472         Tests of module 'search' in C++ mode.
35473         * tests/test-search-c++.cc: New file.
35474         * modules/search-tests (Files): Add it and tests/signature.h.
35475         (Depends-on): Add ansi-c++-opt.
35476         (Makefile.am): Arrange to compile and run test-search-c++.
35477         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35478         gl_MODULE_INDICATOR.
35479
35480         Tests of module 'math' in C++ mode.
35481         * tests/test-math-c++.cc: New file.
35482         * modules/math-tests (Files): Add it and tests/signature.h.
35483         (Depends-on): Add ansi-c++-opt.
35484         (Makefile.am): Arrange to compile and run test-math-c++.
35485         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35486
35487         Tests of module 'locale' in C++ mode.
35488         * tests/test-locale-c++.cc: New file.
35489         * modules/locale-tests (Files): Add it and tests/signature.h.
35490         (Depends-on): Add ansi-c++-opt.
35491         (Makefile.am): Arrange to compile and run test-locale-c++.
35492         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35493         gl_MODULE_INDICATOR.
35494
35495         Tests of module 'langinfo' in C++ mode.
35496         * tests/test-langinfo-c++.cc: New file.
35497         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35498         (Depends-on): Add ansi-c++-opt.
35499         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35500         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35501         gl_MODULE_INDICATOR.
35502
35503         Tests of module 'iconv-h' in C++ mode.
35504         * tests/test-iconv-h-c++.cc: New file.
35505         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35506         (Depends-on): Add ansi-c++-opt.
35507         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35508
35509         Tests of module 'glob' in C++ mode.
35510         * tests/test-glob-c++.cc: New file.
35511         * modules/glob-tests (Files): Add it.
35512         (Depends-on): Add ansi-c++-opt.
35513         (Makefile.am): Arrange to compile and run test-glob-c++.
35514
35515         Tests of module 'fcntl-h' in C++ mode.
35516         * tests/test-fcntl-h-c++.cc: New file.
35517         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35518         (Depends-on): Add ansi-c++-opt.
35519         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35520         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35521         gl_MODULE_INDICATOR.
35522
35523         Tests of module 'dirent' in C++ mode.
35524         * tests/test-dirent-c++.cc: New file.
35525         * modules/dirent-tests (Files): Add it and tests/signature.h.
35526         (Depends-on): Add ansi-c++-opt.
35527         (Makefile.am): Arrange to compile and run test-dirent-c++.
35528         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35529         gl_MODULE_INDICATOR.
35530
35531         New module 'ansi-c++-opt'.
35532         * modules/ansi-c++-opt: New file.
35533         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35534
35535         Document C++ namespace mode.
35536         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35537
35538         wctype: Avoid #define replacements in C++ mode.
35539         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35540         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35541         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35542         In C++, define a namespaced alias symbol.
35543         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35544         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35545         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35546         rule.
35547
35548         wchar: Avoid #define replacements in C++ mode.
35549         * lib/wchar.in.h: Include c++defs.h.
35550         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35551         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35552         symbol.
35553         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35554         * modules/wchar (Depends-on): Add c++defs.
35555         (Makefile.am): Update wchar.h rule.
35556
35557         unistd: Avoid #define replacements in C++ mode.
35558         * lib/unistd.in.h: Include c++defs.h.
35559         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35560         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35561         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35562         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35563         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35564         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35565         symbol.
35566         (environ): Update.
35567         * modules/unistd (Depends-on): Add c++defs.
35568         (Makefile.am): Update unistd.h rule.
35569
35570         time: Avoid #define replacements in C++ mode.
35571         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35572         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35573         define a namespaced alias symbol.
35574         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35575         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35576         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35577         * modules/time (Depends-on): Add c++defs, warn-on-use.
35578         (Makefile.am): Update time.h rule.
35579         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35580         * modules/nanosleep (configure.ac): Likewise.
35581         * modules/strptime (configure.ac): Likewise.
35582         * modules/timegm (configure.ac): Likewise.
35583
35584         sys_time: Avoid #define replacements in C++ mode.
35585         * lib/sys_time.in.h: Include c++defs.h.
35586         (gettimeofday): In C++, define a namespaced alias symbol.
35587         * modules/sys_time (Depends-on): Add c++defs.
35588         (Makefile.am): Update sys/time.h rule.
35589
35590         sys_stat: Avoid #define replacements in C++ mode.
35591         * lib/sys_stat.in.h: Include c++defs.h.
35592         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35593         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35594         namespaced alias symbol.
35595         In C++, define a namespaced alias symbol.
35596         * modules/sys_stat (Depends-on): Add c++defs.
35597         (Makefile.am): Update sys/stat.h rule.
35598
35599         sys_socket: Avoid #define replacements in C++ mode.
35600         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35601         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35602         definitions also when the system has a <sys/socket.h>.
35603         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35604         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35605         In C++, define a namespaced alias symbol.
35606         * modules/sys_socket (Depends-on): Add c++defs.
35607         (Makefile.am): Update sys/socket.h rule.
35608
35609         sys_select: Avoid #define replacements in C++ mode.
35610         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35611         definitions also when the system has a <sys/select.h>.
35612         (select): In C++, define a namespaced alias symbol.
35613         * modules/sys_select (Depends-on): Add c++defs.
35614         (Makefile.am): Update sys/select.h rule.
35615
35616         sys_ioctl: Avoid #define replacements in C++ mode.
35617         * lib/sys_ioctl.in.h: Include c++defs.h.
35618         (ioctl): In C++, define a namespaced alias symbol.
35619         * modules/sys_ioctl (Depends-on): Add c++defs.
35620         (Makefile.am): Update sys/ioctl.h rule.
35621
35622         string: Avoid #define replacements in C++ mode.
35623         * lib/string.in.h: Include c++defs.h.
35624         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35625         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35626         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35627         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35628         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35629         * modules/string (Depends-on): Add c++defs.
35630         (Makefile.am): Update string.h rule.
35631
35632         stdlib: Avoid #define replacements in C++ mode.
35633         * lib/stdlib.in.h: Include c++defs.h.
35634         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35635         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35636         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35637         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35638         symbol.
35639         * modules/stdlib (Depends-on): Add c++defs.
35640         (Makefile.am): Update stdlib.h rule.
35641
35642         stdio: Avoid #define replacements in C++ mode.
35643         * lib/stdio.in.h: Include c++defs.h.
35644         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35645         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35646         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35647         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35648         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35649         namespaced alias symbol.
35650         * modules/stdio (Depends-on): Add c++defs.
35651         (Makefile.am): Update stdio.h rule.
35652
35653         spawn: Avoid #define replacements in C++ mode.
35654         * lib/spawn.in.h: Include c++defs.h.
35655         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35656         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35657         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35658         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35659         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35660         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35661         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35662         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35663         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35664         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35665         In C++, define a namespaced alias symbol.
35666         * modules/spawn (Depends-on): Add c++defs.
35667         (Makefile.am): Update spawn.h rule.
35668
35669         signal: Avoid #define replacements in C++ mode.
35670         * lib/signal.in.h: Include c++defs.h.
35671         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35672         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35673         namespaced alias symbol.
35674         * modules/signal (Depends-on): Add c++defs.
35675         (Makefile.am): Update signal.h rule.
35676
35677         search: Avoid #define replacements in C++ mode.
35678         * lib/search.in.h: Include c++defs.h.
35679         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35680         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35681         symbol.
35682         * modules/search (Depends-on): Add c++defs.
35683         (Makefile.am): Update search.h rule.
35684
35685         math: Avoid #define replacements in C++ mode.
35686         * lib/math.in.h: Include c++defs.h.
35687         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35688         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35689         trunc, truncl): In C++, define a namespaced alias symbol.
35690         * modules/math (Depends-on): Add c++defs.
35691         (Makefile.am): Update math.h rule.
35692
35693         locale: Avoid #define replacements in C++ mode.
35694         * lib/locale.in.h: Include c++defs.h.
35695         (duplocale): In C++, define a namespaced alias symbol.
35696         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35697         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35698         * modules/locale (Depends-on): Add c++defs.
35699         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35700
35701         langinfo: Avoid #define replacements in C++ mode.
35702         * lib/langinfo.in.h: Include c++defs.h.
35703         (nl_langinfo): In C++, define a namespaced alias symbol.
35704         * modules/langinfo (Depends-on): Add c++defs.
35705         (Makefile.am): Update langinfo.h rule.
35706
35707         iconv-h: Avoid #define replacements in C++ mode.
35708         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35709         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35710         symbol.
35711         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35712         whenever iconv is present.
35713         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35714         (Makefile.am): Update iconv.h rule.
35715
35716         glob: Avoid #define replacements in C++ mode.
35717         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35718         (_gl_glob_errfunc_fn): New type.
35719         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35720         symbol.
35721         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35722         (Makefile.am): Update glob.h rule.
35723
35724         fcntl-h: Avoid #define replacements in C++ mode.
35725         * lib/fcntl.in.h: Include c++defs.h.
35726         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35727         * modules/fcntl-h (Depends-on): Add c++defs.
35728         (Makefile.am): Update fcntl.h rule.
35729
35730         dirent: Avoid #define replacements in C++ mode.
35731         * lib/dirent.in.h: Include c++defs.h.
35732         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35733         namespaced alias symbol.
35734         (dirfd): Update declaration.
35735         * modules/dirent (Depends-on): Add c++defs.
35736         (Makefile.am): Update dirent.h rule.
35737
35738         ctype: Make it usable in C++ code.
35739         * lib/ctype.in.h: Include c++defs.h.
35740         (isblank): Declare as extern "C".
35741         * modules/ctype (Depends-on): Add c++defs.
35742         (Makefile.am): Update ctype.h rule.
35743
35744         New module 'c++defs'.
35745         * modules/c++defs: New file.
35746         * build-aux/c++defs.h: New file.
35747         Reported by John W. Eaton <jwe@gnu.org>.
35748
35749 2010-03-07  Bruno Haible  <bruno@clisp.org>
35750
35751         logb: Provide missing declaration for Cygwin.
35752         * lib/math.in.h (logb): New declaration.
35753         * m4/logb.m4: New file.
35754         * modules/logb (Files): Add m4/logb.m4.
35755         (Depends-on): Add math.
35756         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35757         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35759         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35760         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35761
35762 2010-03-07  Bruno Haible  <bruno@clisp.org>
35763
35764         Fix test-cond link error.
35765         * tests/test-cond.c: Include <stdio.h>.
35766
35767 2010-03-07  Bruno Haible  <bruno@clisp.org>
35768
35769         Fix test-dirent-safer link error.
35770         * modules/dirent-safer-tests (Makefile.am): Define
35771         test_dirent_safer_LDADD.
35772
35773 2010-03-07  Bruno Haible  <bruno@clisp.org>
35774
35775         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35776         among default module list.
35777
35778 2010-03-07  Bruno Haible  <bruno@clisp.org>
35779
35780         Fix link error on platforms with GNU libiconv.
35781         * modules/unistr/u8-strcoll-tests (Makefile): Define
35782         test_u8_strcoll_LDADD.
35783         * modules/unistr/u16-strcoll-tests (Makefile): Define
35784         test_u16_strcoll_LDADD.
35785         * modules/unistr/u32-strcoll-tests (Makefile): Define
35786         test_u32_strcoll_LDADD.
35787
35788 2010-03-07  Bruno Haible  <bruno@clisp.org>
35789
35790         Use POSIX declarations for socket functions.
35791         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35792         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35793         rpl_sendto): Change declaration to match POSIX.
35794         * lib/connect.c (rpl_connect): Likewise.
35795         * lib/accept.c (rpl_accept): Likewise.
35796         * lib/bind.c (rpl_bind): Likewise.
35797         * lib/getpeername.c (rpl_getpeername): Likewise.
35798         * lib/getsockname.c (rpl_getsockname): Likewise.
35799         * lib/recv.c (rpl_recv): Likewise.
35800         * lib/send.c (rpl_send): Likewise.
35801         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35802         * lib/sendto.c (rpl_sendto): Likewise.
35803
35804 2010-03-06  Bruno Haible  <bruno@clisp.org>
35805
35806         Clarify access, euidaccess, faccessat.
35807         * doc/posix-functions/faccessat.texi: Mention security problem under
35808         "Other problems", not "Portability problems".
35809         * doc/posix-functions/access.texi: Likewise. Mention a related security
35810         problem.
35811         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35812         * lib/euidaccess.c: Add comments about platforms.
35813         * lib/unistd.in.h (access, euidaccess): Add warnings.
35814
35815 2010-03-07  Bruno Haible  <bruno@clisp.org>
35816
35817         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35818         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35819         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35820         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35821         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35822         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35823         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35824         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35825         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35826         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35827         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35828         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35829         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35830         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35831         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35832         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35833         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35834         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35835         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35836         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35837         Likewise.
35838         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35839         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35840         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35841         Likewise.
35842         * tests/test-spawn.c (main): Make it work when
35843         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35844
35845 2010-03-07  Bruno Haible  <bruno@clisp.org>
35846
35847         Fix incorrect Makefile.am generation in German locale.
35848         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35849         Execute sed command with character range in C locale.
35850
35851 2010-03-06  Bruno Haible  <bruno@clisp.org>
35852
35853         Tests for module 'iconv-h'.
35854         * modules/iconv-h-tests: New file.
35855         * tests/test-iconv-h.c: New file.
35856
35857         New module 'iconv-h'.
35858         * modules/iconv-h: New file.
35859         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35860         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35861         (configure.ac): Remove gl_ICONV_H.
35862         (Makefile.am): Remove rule for iconv.h.
35863
35864 2010-03-06  Bruno Haible  <bruno@clisp.org>
35865
35866         More consistent naming of *.m4 files.
35867         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35868         * modules/wctype (Files): Update.
35869
35870         More consistent naming of *.m4 files.
35871         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35872         * modules/wchar (Files): Update.
35873
35874 2010-03-06  Jim Meyering  <meyering@redhat.com>
35875
35876         euidaccess: relax license to LGPLv2+
35877         * modules/euidaccess (License): Relax to LGPLv2+.
35878
35879 2010-03-06  Bruno Haible  <bruno@clisp.org>
35880
35881         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35882         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35883         (Makefile.am): Augment lib_SOURCES instead.
35884
35885 2010-03-04  Jim Meyering  <meyering@redhat.com>
35886
35887         utime: remove obsolete module
35888         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35889         unnecessary for years, and has been marked as obsolete for 10 months.
35890         * modules/utime: Remove file.
35891         * lib/utime.c: Remove file.
35892         * m4/utime.m4: Remove file.
35893         * m4/utimes-null.m4: Remove file.
35894         * doc/posix-functions/utime.texi (utime): Remove reference to
35895         the module.  Move the sole "fixed by gnulib" item into the
35896         "problems not fixed by Gnulib" list.
35897         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35898
35899 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35900
35901         * modules/exit (License): Relax license to LGPLv2+.
35902         (Status): Mark as obsolete.
35903         * NEWS: Mention deprecated 'exit' module.
35904         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35905         of now obsolete 'exit'.
35906
35907 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35908
35909         fts-lgpl: remove unused module
35910         * modules/fts-lgpl: Remove.
35911         * MODULES.html.sh (func_all_modules): Adjust.
35912         * check-module (find_included_lib_files): Adjust.
35913         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35914
35915 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35916
35917         copy-acl: enhance Solaris ACL error handling
35918         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35919         * lib/set-mode-acl.c (qset_acl): Likewise.
35920
35921 2010-03-02  Bruno Haible  <bruno@clisp.org>
35922
35923         spawn: Don't override the system defined values on FreeBSD 8.
35924         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35925         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35926         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35927         if HAVE_POSIX_SPAWN is 1.
35928         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35929
35930 2010-03-01  Bruno Haible  <bruno@clisp.org>
35931
35932         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35933         regarding Automake.
35934
35935 2010-02-25  Bruno Haible  <bruno@clisp.org>
35936
35937         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35938         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35939         setting, not afterwards.
35940         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35941
35942 2010-02-24  Eric Blake  <eblake@redhat.com>
35943
35944         bootstrap, git-version-gen: use timestamp
35945         * build-aux/git-version-gen (scriptversion): Force UTC.
35946         * build-aux/bootstrap (scriptversion): New variable.
35947
35948         bootstrap: allow older git
35949         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35950         older than 1.6.4.  Requested by the libvirt project.
35951
35952 2010-02-23  Eric Blake  <eblake@redhat.com>
35953
35954         warn-on-use: work with old autoconf
35955         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35956         AS_VAR semantics of autoconf 2.60.
35957         Reported by Bruno Haible.
35958
35959         bootstrap: improve some comments
35960         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35961         clarification comments.
35962
35963         gettimeofday: provide correct function
35964         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35965         when replacement is declared, otherwise provide gettimeofday.
35966         Reported by Michael Goffioul.
35967
35968 2010-02-23  Jim Meyering  <meyering@redhat.com>
35969
35970         lib-ignore: relax license to "unlimited", not LGPLv2+
35971         * modules/lib-ignore (License): Relax to "unlimited".
35972
35973 2010-02-23  Jim Meyering  <meyering@redhat.com>
35974
35975         lib-ignore: relax license to LGPLv2+
35976         * modules/lib-ignore (License): Relax to LGPLv2+.
35977
35978 2010-02-22  Eric Blake  <eblake@redhat.com>
35979
35980         lseek: avoid bash 3.2 broken pipe bug
35981         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35982         warning from bash 3.2.
35983         Reported by Ben Pfaff, with analysis from Bruno Haible.
35984
35985         bootstrap: support non-FSF copyright holder
35986         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35987         bootstrap.conf override of COPYRIGHT_HOLDER.
35988         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35989
35990         bootstrap: interoperate with gettext 0.14.1
35991         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35992
35993         bootstrap: allow for alternate submodule location
35994         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35995         hardcoding submodule location.
35996         (gnulib_mk): Allow direct use of Makefile.am.
35997
35998         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35999         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36000         rather than reconfiguring where the submodule points.
36001
36002         gettimeofday: restore support for platforms that lack function
36003         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36004         replacement if function is missing.
36005         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36006         * modules/sys_time (Makefile.am): Substitute it.
36007         * lib/sys_time.in.h (gettimeofday): Check it.
36008         Reported by Michael Goffioul.
36009
36010 2010-02-21  Bruno Haible  <bruno@clisp.org>
36011
36012         * lib/stdio.in.h (obstack_printf): Fix typo.
36013
36014 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36015
36016         vc-list-files: use bzr ls's -R option
36017         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36018         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36019
36020 2010-02-21  Jim Meyering  <meyering@redhat.com>
36021
36022         init.sh: fix EXEEXT shims to work also for names like test-prog
36023         * tests/init.sh: Re-exec a better shell, when needed.
36024         If the current shell lacks support for posix $(...), an init.sh-using
36025         test will now try to find a shell that supports that.  If EXEEXT is
36026         nonempty, we also require support for hyphen-in-alias-name and shell
36027         substitutions like ${var#glob}.  Failure to find such a shell results
36028         in a skipped test.
36029
36030 2010-02-21  Bruno Haible  <bruno@clisp.org>
36031
36032         Really work around around "broken pipe" error message from bash 3.2.
36033         * gnulib-tool (func_reset_sigpipe): Remove function.
36034         (echo): In bash 3.2, define to a function that uses printf.
36035         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36036
36037 2010-02-20  Bruno Haible  <bruno@clisp.org>
36038
36039         Restore support for automake 1.9.6 with autoconf 2.61.
36040         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36041         Reported by James Youngman <jay@gnu.org>.
36042
36043 2010-02-20  Bruno Haible  <bruno@clisp.org>
36044
36045         Improve *printf warning condition.
36046         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36047         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36048         and the function is overridden due to SIGPIPE emulation.
36049
36050 2010-02-20  Bruno Haible  <bruno@clisp.org>
36051
36052         * lib/stdio.in.h: Tweak comments.
36053
36054 2010-02-19  Bruno Haible  <bruno@clisp.org>
36055
36056         Make it easier to find modules. New gnulib-tool option '--find'.
36057         * gnulib-tool: New option --find.
36058         (func_usage): Document it.
36059         (func_sanitize_modulelist): New function, extracted from
36060         func_all_modules.
36061         (func_all_modules): Invoke it.
36062         * doc/gnulib-tool.texi (Which modules?): New node.
36063
36064 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36065
36066         * lib/sys_select.in.h: Provide select replacement even if
36067         sys/select.h exists on a system, for Interix.
36068
36069 2010-02-18  Jim Meyering  <meyering@redhat.com>
36070
36071         init.sh: don't use $(...) just yet
36072         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36073         to accommodate e.g., Solaris' /bin/sh.
36074
36075 2010-02-17  Bruno Haible  <bruno@clisp.org>
36076
36077         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36078         Reported by Ludovic Courtès <ludo@gnu.org>.
36079
36080 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36081
36082         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36083         linking with -lintl.
36084
36085 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36086
36087         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36088         if not provided by the system's netdb.h.  Reported by
36089         ludo@gnu.org (Ludovic Courtès).
36090
36091 2010-02-15  Jim Meyering  <meyering@redhat.com>
36092
36093         init.sh: improve portability and efficiency
36094         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36095         "dummy" in a for loop.
36096         Use '!', not '^' to select the complement of a character set used
36097         in a "case" statement.
36098         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36099         Suggestions from Eric Blake.
36100
36101         init.sh: automatically accommodate programs with the .exe suffix
36102         Automatically arrange for an invocation of "prog" to execute the
36103         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36104         may use the simpler "prog", yet still work when built on a system
36105         that requires specifying the added suffix.
36106         Do this by constructing a function named "prog" that invokes
36107         "prog.exe" for each .exe file in selected directories.
36108         * tests/init.sh (find_exe_basenames_): New function.
36109         (create_exe_shim_functions_): New function.
36110         (path_prepend_): Use it.
36111
36112         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36113         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36114         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36115
36116 2010-02-14  Jim Meyering  <meyering@redhat.com>
36117
36118         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36119         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36120         (sc_prohibit_hash_pjw_without_use): New rule.
36121
36122         maint.mk: allow the default upload destination dir to be overridden
36123         * top/maint.mk (upload_dest_dir_): Define with a default that
36124         preserves the status quo.
36125         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36126         Reported by Peter Simons.
36127
36128         maint.mk: prohibit inclusion of "hash.h" without_use
36129         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36130
36131 2010-02-10  Jim Meyering  <meyering@redhat.com>
36132
36133         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36134         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36135
36136 2010-02-09  Eric Blake  <ebb9@byu.net>
36137         and Bruno Haible  <bruno@clisp.org>
36138
36139         obstack-printf-posix: ensure declaration
36140         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36141         extracted from gl_FUNC_OBSTACK_PRINTF.
36142         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36143         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36144         Likewise.
36145         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36146         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36147         0.
36148
36149 2010-02-08  Bruno Haible  <bruno@clisp.org>
36150
36151         gnulib-tool: Fix typo in 2010-02-07 commit.
36152         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36153         Reported by Eric Blake.
36154
36155 2010-02-07  Bruno Haible  <bruno@clisp.org>
36156
36157         gnulib-tool: Fix up caching patches.
36158         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36159         option --no-cache. Use associative arrays when supported by the shell.
36160         (sed_comments): New variable.
36161         (modcache): Renamed from do_cache.
36162         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36163         abbreviate unnecessarily.
36164         (have_associative): New variable.
36165         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36166         way also for ksh and zsh.
36167         (func_init_sed_convert_to_cache_statements): New function, extracted
36168         from func_cache_lookup_module. Add support for associative arrays.
36169         Don't set the c_MODULE_cached variable here. Ignore all lines before
36170         the first field header. Remove only the final newline, not all trailing
36171         newlines. Support empty fields correctly. Limit the use of 'eval' to
36172         assignments.
36173         (func_get_description, func_get_status, func_get_notice,
36174         func_get_applicability, func_get_filelist, func_get_dependencies,
36175         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36176         func_get_automake_snippet, func_get_include_directive,
36177         func_get_link_directive, func_get_license, func_get_maintainer):
36178         Update documentation. List the unoptimized code first. Add support for
36179         associative arrays. Limit the use of 'eval' to assignments.
36180         (func_get_applicability): Undo stylistic pessimisations.
36181         (func_get_automake_snippet, func_get_include_directive): Reduce code
36182         duplication.
36183         (func_modules_transitive_closure, func_modules_add_dummy,
36184         func_modules_notice, func_modules_to_filelist, func_add_file,
36185         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36186         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36187         func_create_testdir, func_create_megatestdir): Update documentation.
36188
36189 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36190
36191         * gnulib-tool (func_cache_lookup_module): Store the module name
36192         belonging to the cache variable; error out if two different
36193         module names map to the same cache variable name.
36194
36195 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36196
36197         gnulib-tool: Make caching optional.
36198         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36199         Update matching short versions of --no-changelog.
36200         (func_usage): Update.
36201         (sed_extract_cache_prog): Renamed from ...
36202         (sed_extract_prog): ... this; revert to old extraction script.
36203         (func_get_description, func_get_status)
36204         (func_get_notice, func_get_applicability, func_get_filelist)
36205         (func_get_dependencies, func_get_autoconf_early_snippet)
36206         (func_get_autoconf_snippet, func_get_automake_snippet)
36207         (func_get_include_directive, func_get_link_directive)
36208         (func_get_license, func_get_maintainer): If $do_cache is false,
36209         use old, non-caching extraction scripts.
36210         Suggestion by Bruno Haible.
36211
36212 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36213
36214         gnulib-tool: cache module metainformation.
36215         * gnulib-tool (sed_extract_prog): Match newline before each
36216         header, and rewrite header to a shell variable suffix.
36217         (func_cache_var, func_cache_lookup_module): New functions,
36218         to turn a module name into a cache variable prefix, and to
36219         look up and cache module metainformation.
36220         (func_get_description, func_get_status)
36221         (func_get_notice, func_get_applicability, func_get_filelist)
36222         (func_get_dependencies, func_get_autoconf_early_snippet)
36223         (func_get_autoconf_snippet, func_get_automake_snippet)
36224         (func_get_include_directive, func_get_link_directive)
36225         (func_get_license, func_get_maintainer): Use
36226         func_cache_lookup_module.
36227
36228 2010-02-07  Bruno Haible  <bruno@clisp.org>
36229
36230         fnctl: Fix missing dependency.
36231         * modules/fcntl (Depends-on): Add getdtablesize.
36232         Reported by John W. Eaton <jwe@gnu.org>.
36233
36234 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36235
36236         Argp: fix recognition of short alias options.
36237
36238         * lib/argp-parse.c (convert_options): Fix improper use of
36239         `|' between character values.
36240         * tests/test-argp.c (group1_option): New alias option
36241         --read (-r).
36242         (group1_parser): Special handling for 'r'.
36243         (test15): New test case.
36244         (test_fun): Add test15.
36245         * tests/test-argp-2.sh: Update expected --help and --usage
36246         outputs.
36247
36248 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36249
36250         * tests/test-argp.c: Fix indentation.
36251
36252 2010-02-04  Eric Blake  <ebb9@byu.net>
36253
36254         gettimeofday: expose type of second argument
36255         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36256         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36257         * tests/test-gettimeofday.c: Use it to silence warning.
36258         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36259         the issue.
36260
36261 2010-02-03  Jim Meyering  <meyering@redhat.com>
36262
36263         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36264         * lib/regcomp.c (TYPE_SIGNED): Define.
36265         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36266
36267         regcomp.c: avoid a new -Wshadow warning
36268         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36269
36270 2010-02-01  Jim Meyering  <meyering@redhat.com>
36271
36272         removing useless parentheses in cpp #define directives
36273         For motivation, see commit c0221df4, "define STREQ(a,b)
36274         consistently, removing useless parentheses"
36275         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36276         * lib/mountlist.c (MNT_IGNORE): Likewise.
36277         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36278
36279 2010-02-01  Eric Blake  <ebb9@byu.net>
36280
36281         sys_time: use link-warning
36282         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36283         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36284         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36285         * modules/sys_time (Depends-on): Add warn-on-use.
36286         (Makefile.am): Always build replacement.
36287         (configure.ac): Update substitutions.
36288         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36289         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36290         bother with SYS_TIME_H.
36291         * modules/gettimeofday (configure.ac): Declare indicator.
36292         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36293         in use.
36294
36295         closein-tests: silence compiler warning
36296         * tests/test-closein.c (main): Ignore fread result.
36297         * modules/closein-tests (Depends-on): Add ignore-value.
36298
36299         tests: silence warning about system return
36300         * tests/test-areadlink-with-size.c (main): Ignore system result.
36301         * tests/test-areadlink.c (main): Likewise.
36302         * tests/test-areadlinkat-with-size.c (main): Likewise.
36303         * tests/test-areadlinkat.c (main): Likewise.
36304         * tests/test-canonicalize-lgpl.c (main): Likewise.
36305         * tests/test-canonicalize.c (main): Likewise.
36306         * tests/test-chown.c (main): Likewise.
36307         * tests/test-fchownat.c (main): Likewise.
36308         * tests/test-fdutimensat.c (main): Likewise.
36309         * tests/test-fstatat.c (main): Likewise.
36310         * tests/test-futimens.c (main): Likewise.
36311         * tests/test-lchown.c (main): Likewise.
36312         * tests/test-link.c (main): Likewise.
36313         * tests/test-linkat.c (main): Likewise.
36314         * tests/test-lstat.c (main): Likewise.
36315         * tests/test-mkdir.c (main): Likewise.
36316         * tests/test-mkdirat.c (main): Likewise.
36317         * tests/test-mkfifo.c (main): Likewise.
36318         * tests/test-mkfifoat.c (main): Likewise.
36319         * tests/test-mknod.c (main): Likewise.
36320         * tests/test-readlink.c (main): Likewise.
36321         * tests/test-remove.c (main): Likewise.
36322         * tests/test-rename.c (main): Likewise.
36323         * tests/test-renameat.c (main): Likewise.
36324         * tests/test-rmdir.c (main): Likewise.
36325         * tests/test-symlink.c (main): Likewise.
36326         * tests/test-symlinkat.c (main): Likewise.
36327         * tests/test-unlink.c (main): Likewise.
36328         * tests/test-unlinkat.c (main): Likewise.
36329         * tests/test-utimens.c (main): Likewise.
36330         * tests/test-utimensat.c (main): Likewise.
36331         * modules/areadlink-tests (Depends-on): Add ignore-value.
36332         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36333         * modules/areadlinkat-tests (Depends-on): Likewise.
36334         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36335         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36336         * modules/canonicalize-tests (Depends-on): Likewise.
36337         * modules/chown-tests (Depends-on): Likewise.
36338         * modules/fdutimensat-tests (Depends-on): Likewise.
36339         * modules/futimens-tests (Depends-on): Likewise.
36340         * modules/lchown-tests (Depends-on): Likewise.
36341         * modules/link-tests (Depends-on): Likewise.
36342         * modules/linkat-tests (Depends-on): Likewise.
36343         * modules/lstat-tests (Depends-on): Likewise.
36344         * modules/mkdir-tests (Depends-on): Likewise.
36345         * modules/mkfifo-tests (Depends-on): Likewise.
36346         * modules/mkfifoat-tests (Depends-on): Likewise.
36347         * modules/mknod-tests (Depends-on): Likewise.
36348         * modules/openat-tests (Depends-on): Likewise.
36349         * modules/readlink-tests (Depends-on): Likewise.
36350         * modules/remove-tests (Depends-on): Likewise.
36351         * modules/rename-tests (Depends-on): Likewise.
36352         * modules/renameat-tests (Depends-on): Likewise.
36353         * modules/rmdir-tests (Depends-on): Likewise.
36354         * modules/symlink-tests (Depends-on): Likewise.
36355         * modules/symlinkat-tests (Depends-on): Likewise.
36356         * modules/unlink-tests (Depends-on): Likewise.
36357         * modules/utimens-tests (Depends-on): Likewise.
36358         * modules/utimensat-tests (Depends-on): Likewise.
36359
36360 2010-01-31  Bruno Haible  <bruno@clisp.org>
36361
36362         Perform the same test for many <math.h> functions.
36363         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36364         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36365         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36366         of gl_MATHFUNC.
36367         * modules/acos (configure.ac): Likewise.
36368         * modules/asin (configure.ac): Likewise.
36369         * modules/atan (configure.ac): Likewise.
36370         * modules/atan2 (configure.ac): Likewise.
36371         * modules/cbrt (configure.ac): Likewise.
36372         * modules/copysign (configure.ac): Likewise.
36373         * modules/cos (configure.ac): Likewise.
36374         * modules/cosh (configure.ac): Likewise.
36375         * modules/erf (configure.ac): Likewise.
36376         * modules/erfc (configure.ac): Likewise.
36377         * modules/exp (configure.ac): Likewise.
36378         * modules/fmod (configure.ac): Likewise.
36379         * modules/hypot (configure.ac): Likewise.
36380         * modules/j0 (configure.ac): Likewise.
36381         * modules/j1 (configure.ac): Likewise.
36382         * modules/jn (configure.ac): Likewise.
36383         * modules/lgamma (configure.ac): Likewise.
36384         * modules/log (configure.ac): Likewise.
36385         * modules/log10 (configure.ac): Likewise.
36386         * modules/log1p (configure.ac): Likewise.
36387         * modules/pow (configure.ac): Likewise.
36388         * modules/remainder (configure.ac): Likewise.
36389         * modules/sin (configure.ac): Likewise.
36390         * modules/sinh (configure.ac): Likewise.
36391         * modules/tan (configure.ac): Likewise.
36392         * modules/tanh (configure.ac): Likewise.
36393         * modules/y0 (configure.ac): Likewise.
36394         * modules/y1 (configure.ac): Likewise.
36395         * modules/yn (configure.ac): Likewise.
36396         Suggested by Paolo Bonzini.
36397
36398 2010-01-31  Bruno Haible  <bruno@clisp.org>
36399
36400         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36401
36402 2010-01-31  Bruno Haible  <bruno@clisp.org>
36403
36404         Work around getdelim() bug on FreeBSD 8.0.
36405         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36406         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36407         not work.
36408         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36409         is 1.
36410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36411         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36412         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36413         a non-zero size.
36414         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36415
36416 2010-01-31  Bruno Haible  <bruno@clisp.org>
36417
36418         Work around getline() bug on FreeBSD 8.0.
36419         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36420         and a non-zero size.
36421         * tests/test-getline.c (main): Likewise.
36422         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36423         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36424
36425 2010-01-28  Eric Blake  <ebb9@byu.net>
36426
36427         regex: fix build failure
36428         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36429         platforms.
36430
36431 2010-01-28  Jim Meyering  <meyering@redhat.com>
36432
36433         regex: do not ignore memory allocation failure
36434         * lib/regex_internal.c (create_cd_newstate): Detect
36435         re_node_set_init_copy failure.   Extracted from glibc commit
36436         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36437
36438         regex: sync more white-space changes from libc
36439         * lib/regex_internal.c: White-space only changes.
36440         * lib/regexec.c: Likewise.
36441
36442         regex: add many uses of __attribute_warn_unused_result__
36443         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36444         * lib/regexec.c: Likewise.
36445         Extracted from a messy glibc commit.
36446
36447         regcomp.c: spelling and merge-artifact from glibc
36448         * lib/regcomp.c: Merge remainder of glibc's
36449         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36450
36451         regcomp.c: sync white-space changes from glibc
36452         * lib/regcomp.c: Merge to accommodate white space
36453         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36454
36455         regcomp.c: do not ignore internal return values
36456         * lib/regcomp.c: Do not ignore internal return values.
36457         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36458         but without its white-space changes and spelling fixes.
36459
36460         regex_internal.h: define __attribute_warn_unused_result__
36461         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36462
36463         maint: add a syntax-check rule to check for vulnerable Makefile.in
36464         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36465
36466 2010-01-27  Jim Meyering  <meyering@redhat.com>
36467
36468         ncftpput-ftp: clean up spaces
36469         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36470         Remove trailing blanks.
36471
36472 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36473
36474         * build-aux/git-version-gen: Fix copyright statement.
36475         * build-aux/gnupload: Likewise.
36476         * tests/test-arcfour.c: Likewise.
36477         * tests/test-arctwo.c: Likewise.
36478         * tests/test-count-one-bits.c: Likewise.
36479         * tests/test-crc.c: Likewise.
36480         * tests/test-des.c: Likewise.
36481         * tests/test-gc-arcfour.c: Likewise.
36482         * tests/test-gc-arctwo.c: Likewise.
36483         * tests/test-gc-des.c: Likewise.
36484         * tests/test-gc-hmac-md5.c: Likewise.
36485         * tests/test-gc-hmac-sha1.c: Likewise.
36486         * tests/test-gc-md2.c: Likewise.
36487         * tests/test-gc-md4.c: Likewise.
36488         * tests/test-gc-md5.c: Likewise.
36489         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36490         * tests/test-gc-rijndael.c: Likewise.
36491         * tests/test-gc-sha1.c: Likewise.
36492         * tests/test-gc.c: Likewise.
36493         * tests/test-gethostname.c: Likewise.
36494         * tests/test-gettimeofday.c: Likewise.
36495         * tests/test-hash.c: Likewise.
36496         * tests/test-hmac-md5.c: Likewise.
36497         * tests/test-hmac-sha1.c: Likewise.
36498         * tests/test-md2.c: Likewise.
36499         * tests/test-md4.c: Likewise.
36500         * tests/test-md5.c: Likewise.
36501         * tests/test-memchr.c: Likewise.
36502         * tests/test-memchr2.c: Likewise.
36503         * tests/test-memcmp.c: Likewise.
36504         * tests/test-memmem.c: Likewise.
36505         * tests/test-memrchr.c: Likewise.
36506         * tests/test-rawmemchr.c: Likewise.
36507         * tests/test-read-file.c: Likewise.
36508         * tests/test-rijndael.c: Likewise.
36509         * tests/test-sockets.c: Likewise.
36510         * tests/test-strchrnul.c: Likewise.
36511         * tests/test-strstr.c: Likewise.
36512         * tests/test-strtod.c: Likewise.
36513         * build-aux/ncftpput-ftp: Likewise.
36514
36515 2010-01-26  Eric Blake  <ebb9@byu.net>
36516
36517         ignore-value: update recommended header name
36518         * modules/ignore-value (Include): Only use <> for headers that
36519         exist in glibc.
36520
36521 2010-01-26  Jim Meyering  <meyering@redhat.com>
36522
36523         test-userspec.c: avoid compiler warnings
36524         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36525         and "initialization discards qualifiers..." warnings.
36526         Put the first "uid" in its own scope, and make char* members "const".
36527
36528 2010-01-25  Bruno Haible  <bruno@clisp.org>
36529
36530         gnulib-tool: Make warning diagnostics consistent.
36531         * gnulib-tool (func_warning): New function.
36532         Use it everywhere where gnulib-tool produces output to stderr and it is
36533         not a fatal error.
36534
36535 2010-01-25  Bruno Haible  <bruno@clisp.org>
36536
36537         Fix test dependencies.
36538         * modules/xstrtol-tests (Depends-on): Add inttypes.
36539         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36540
36541 2010-01-25 Pádraig Brady <P@draigBrady.com>
36542
36543         syntax-check: detect incorrect boolean macro values in config.h
36544         * modules/maintainer-makefile (configure.ac): Parameterize the location
36545         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36546         The logic is from Eric Blake and the location indicated by Jim Meyering.
36547         Note the more natural CONFIG_HEADER name is prohibited by automake
36548         for backwards compatibility reasons.
36549         * top/maint.mk (sc_Wundef_boolean): New rule.
36550
36551 2010-01-25  Jim Meyering  <meyering@redhat.com>
36552
36553         bootstrap: detect MacOS 10.6's shasum, too
36554         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36555         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36556
36557 2010-01-23  Jim Meyering  <meyering@redhat.com>
36558
36559         xstrtoll: new module
36560         * modules/xstrtoll: New file.
36561         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36562         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36563         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36564         ./configure fails if you use this module and lack "long long".
36565         * modules/xstrtoll-tests: New module.
36566         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36567         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36568         new init.sh-based test framework.
36569
36570 2010-01-24  Bruno Haible  <bruno@clisp.org>
36571
36572         Tests for module 'yn'.
36573         * modules/yn-tests: New file.
36574         * tests/test-yn.c: New file.
36575
36576         Tests for module 'y1'.
36577         * modules/y1-tests: New file.
36578         * tests/test-y1.c: New file.
36579
36580         Tests for module 'y0'.
36581         * modules/y0-tests: New file.
36582         * tests/test-y0.c: New file.
36583
36584         Tests for module 'tanh'.
36585         * modules/tanh-tests: New file.
36586         * tests/test-tanh.c: New file.
36587
36588         Tests for module 'tan'.
36589         * modules/tan-tests: New file.
36590         * tests/test-tan.c: New file.
36591
36592         Tests for module 'sqrt'.
36593         * modules/sqrt-tests: New file.
36594         * tests/test-sqrt.c: New file.
36595
36596         Tests for module 'sinh'.
36597         * modules/sinh-tests: New file.
36598         * tests/test-sinh.c: New file.
36599
36600         Tests for module 'sin'.
36601         * modules/sin-tests: New file.
36602         * tests/test-sin.c: New file.
36603
36604         Tests for module 'rint'.
36605         * modules/rint-tests: New file.
36606         * tests/test-rint.c: New file.
36607
36608         Tests for module 'remainder'.
36609         * modules/remainder-tests: New file.
36610         * tests/test-remainder.c: New file.
36611
36612         Tests for module 'pow'.
36613         * modules/pow-tests: New file.
36614         * tests/test-pow.c: New file.
36615
36616         Tests for module 'nextafter'.
36617         * modules/nextafter-tests: New file.
36618         * tests/test-nextafter.c: New file.
36619
36620         Tests for module 'modf'.
36621         * modules/modf-tests: New file.
36622         * tests/test-modf.c: New file.
36623
36624         Tests for module 'logb'.
36625         * modules/logb-tests: New file.
36626         * tests/test-logb.c: New file.
36627
36628         Tests for module 'log1p'.
36629         * modules/log1p-tests: New file.
36630         * tests/test-log1p.c: New file.
36631
36632         Tests for module 'log10'.
36633         * modules/log10-tests: New file.
36634         * tests/test-log10.c: New file.
36635
36636         Tests for module 'log'.
36637         * modules/log-tests: New file.
36638         * tests/test-log.c: New file.
36639
36640         Tests for module 'lgamma'.
36641         * modules/lgamma-tests: New file.
36642         * tests/test-lgamma.c: New file.
36643
36644         Tests for module 'ldexp'.
36645         * modules/ldexp-tests: New file.
36646         * tests/test-ldexp.c: New file.
36647
36648         Tests for module 'jn'.
36649         * modules/jn-tests: New file.
36650         * tests/test-jn.c: New file.
36651
36652         Tests for module 'j1'.
36653         * modules/j1-tests: New file.
36654         * tests/test-j1.c: New file.
36655
36656         Tests for module 'j0'.
36657         * modules/j0-tests: New file.
36658         * tests/test-j0.c: New file.
36659
36660         Tests for module 'hypot'.
36661         * modules/hypot-tests: New file.
36662         * tests/test-hypot.c: New file.
36663
36664         Tests for module 'fmod'.
36665         * modules/fmod-tests: New file.
36666         * tests/test-fmod.c: New file.
36667
36668         Tests for module 'fabs'.
36669         * modules/fabs-tests: New file.
36670         * tests/test-fabs.c: New file.
36671
36672         Tests for module 'exp'.
36673         * modules/exp-tests: New file.
36674         * tests/test-exp.c: New file.
36675
36676         Tests for module 'erfc'.
36677         * modules/erfc-tests: New file.
36678         * tests/test-erfc.c: New file.
36679
36680         Tests for module 'erf'.
36681         * modules/erf-tests: New file.
36682         * tests/test-erf.c: New file.
36683
36684         Tests for module 'cosh'.
36685         * modules/cosh-tests: New file.
36686         * tests/test-cosh.c: New file.
36687
36688         Tests for module 'cos'.
36689         * modules/cos-tests: New file.
36690         * tests/test-cos.c: New file.
36691
36692         Tests for module 'copysign'.
36693         * modules/copysign-tests: New file.
36694         * tests/test-copysign.c: New file.
36695
36696         Tests for module 'cbrt'.
36697         * modules/cbrt-tests: New file.
36698         * tests/test-cbrt.c: New file.
36699
36700         Tests for module 'atan2'.
36701         * modules/atan2-tests: New file.
36702         * tests/test-atan2.c: New file.
36703
36704         Tests for module 'atan'.
36705         * modules/atan-tests: New file.
36706         * tests/test-atan.c: New file.
36707
36708         Tests for module 'asin'.
36709         * modules/asin-tests: New file.
36710         * tests/test-asin.c: New file.
36711
36712         Tests for module 'acos'.
36713         * modules/acos-tests: New file.
36714         * tests/test-acos.c: New file.
36715
36716 2010-01-24  Bruno Haible  <bruno@clisp.org>
36717
36718         Fix tests for common <math.h> functions.
36719         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36720         code snippet that references the function pointer, rather than merely
36721         calling the function. Substitute the FUNC_LIBM variable.
36722         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36723         * modules/acos (configure.ac): Likewise.
36724         * modules/asin (configure.ac): Likewise.
36725         * modules/atan (configure.ac): Likewise.
36726         * modules/atan2 (configure.ac): Likewise.
36727         * modules/cbrt (configure.ac): Likewise.
36728         * modules/copysign (configure.ac): Likewise.
36729         * modules/cos (configure.ac): Likewise.
36730         * modules/cosh (configure.ac): Likewise.
36731         * modules/erf (configure.ac): Likewise.
36732         * modules/erfc (configure.ac): Likewise.
36733         * modules/exp (configure.ac): Likewise.
36734         * modules/fabs (configure.ac): Likewise.
36735         * modules/fmod (configure.ac): Likewise.
36736         * modules/hypot (configure.ac): Likewise.
36737         * modules/j0 (configure.ac): Likewise.
36738         * modules/j1 (configure.ac): Likewise.
36739         * modules/jn (configure.ac): Likewise.
36740         * modules/ldexp (configure.ac): Likewise.
36741         * modules/lgamma (configure.ac): Likewise.
36742         * modules/log (configure.ac): Likewise.
36743         * modules/log10 (configure.ac): Likewise.
36744         * modules/log1p (configure.ac): Likewise.
36745         * modules/logb (configure.ac): Likewise.
36746         * modules/modf (configure.ac): Likewise.
36747         * modules/nextafter (configure.ac): Likewise.
36748         * modules/pow (configure.ac): Likewise.
36749         * modules/remainder (configure.ac): Likewise.
36750         * modules/rint (configure.ac): Likewise.
36751         * modules/sin (configure.ac): Likewise.
36752         * modules/sinh (configure.ac): Likewise.
36753         * modules/tan (configure.ac): Likewise.
36754         * modules/tanh (configure.ac): Likewise.
36755         * modules/y0 (configure.ac): Likewise.
36756         * modules/y1 (configure.ac): Likewise.
36757         * modules/yn (configure.ac): Likewise.
36758
36759 2010-01-24  Bruno Haible  <bruno@clisp.org>
36760
36761         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36762         * tests/test-acosl.c (x): New variable.
36763         (main): Store argument in x and fetch it from x.
36764         * tests/test-asinl.c (x): New variable.
36765         (main): Store argument in x and fetch it from x.
36766         * tests/test-atanl.c (x): New variable.
36767         (main): Store argument in x and fetch it from x.
36768         * tests/test-cosl.c (x): New variable.
36769         (main): Store argument in x and fetch it from x.
36770         * tests/test-expl.c (x): New variable.
36771         (main): Store argument in x and fetch it from x.
36772         * tests/test-logl.c (x): New variable.
36773         (main): Store argument in x and fetch it from x.
36774         * tests/test-sinl.c (x): New variable.
36775         (main): Store argument in x and fetch it from x.
36776         * tests/test-sqrtl.c (x): New variable.
36777         (main): Store argument in x and fetch it from x.
36778         * tests/test-tanl.c (x): New variable.
36779         (main): Store argument in x and fetch it from x.
36780
36781 2010-01-24  Bruno Haible  <bruno@clisp.org>
36782
36783         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36784         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36785         assignments to the initial TESTS_ENVIRONMENT.
36786         * doc/gnulib.texi (Unit test modules): Document it.
36787         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36788         TESTS_ENVIRONMENT.
36789         * modules/btowc-tests (Makefile.am): Likewise.
36790         * modules/c-stack-tests (Makefile.am): Likewise.
36791         * modules/c-strcase-tests (Makefile.am): Likewise.
36792         * modules/copy-file-tests (Makefile.am): Likewise.
36793         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36794         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36795         * modules/mbrtowc-tests (Makefile.am): Likewise.
36796         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36797         * modules/mbscasestr-tests (Makefile.am): Likewise.
36798         * modules/mbschr-tests (Makefile.am): Likewise.
36799         * modules/mbscspn-tests (Makefile.am): Likewise.
36800         * modules/mbsinit-tests (Makefile.am): Likewise.
36801         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36802         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36803         * modules/mbspbrk-tests (Makefile.am): Likewise.
36804         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36805         * modules/mbsrchr-tests (Makefile.am): Likewise.
36806         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36807         * modules/mbsspn-tests (Makefile.am): Likewise.
36808         * modules/mbsstr-tests (Makefile.am): Likewise.
36809         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36810         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36811         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36812         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36813         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36814         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36815         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36816         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36817         * modules/wcrtomb-tests (Makefile.am): Likewise.
36818         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36819         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36820         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36821         assignments from TESTS_ENVIRONMENT.
36822         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36823         augmentation.
36824         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36825         * modules/atexit-tests (Makefile.am): Likewise.
36826         * modules/binary-io-tests (Makefile.am): Likewise.
36827         * modules/closein-tests (Makefile.am): Likewise.
36828         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36829         * modules/exclude-tests (Makefile.am): Likewise.
36830         * modules/fflush-tests (Makefile.am): Likewise.
36831         * modules/fpending-tests (Makefile.am): Likewise.
36832         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36833         * modules/freadahead-tests (Makefile.am): Likewise.
36834         * modules/freadptr-tests (Makefile.am): Likewise.
36835         * modules/freadseek-tests (Makefile.am): Likewise.
36836         * modules/fseek-tests (Makefile.am): Likewise.
36837         * modules/fseeko-tests (Makefile.am): Likewise.
36838         * modules/ftell-tests (Makefile.am): Likewise.
36839         * modules/ftello-tests (Makefile.am): Likewise.
36840         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36841         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36842         * modules/lseek-tests (Makefile.am): Likewise.
36843         * modules/parse-duration-tests (Makefile.am): Likewise.
36844         * modules/perror-tests (Makefile.am): Likewise.
36845         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36846         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36847         * modules/pipe-tests (Makefile.am): Likewise.
36848         * modules/pread-tests (Makefile.am): Likewise.
36849         * modules/printf-posix-tests (Makefile.am): Likewise.
36850         * modules/select-tests (Makefile.am): Likewise.
36851         * modules/sigpipe-tests (Makefile.am): Likewise.
36852         * modules/tsearch-tests (Makefile.am): Likewise.
36853         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36854         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36855         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36856         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36857         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36858         * modules/version-etc-tests (Makefile.am): Likewise.
36859         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36860         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36861         * modules/xalloc-die-tests (Makefile.am): Likewise.
36862         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36863         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36864         * modules/xstrtol-tests (Makefile.am): Likewise.
36865         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36866         * modules/yesno-tests (Makefile.am): Likewise.
36867         Suggested by Jim Meyering.
36868
36869 2010-01-24  Bruno Haible  <bruno@clisp.org>
36870
36871         More documentation.
36872         * doc/gnulib.texi (Writing modules): New chapter.
36873         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36874         the new chapter.
36875
36876 2010-01-24  Jim Meyering  <meyering@redhat.com>
36877
36878         maint.mk: do not prepend "./" after filtering
36879         * top/maint.mk (_prepend_srcdir_prefix): New variable
36880         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36881         "./" when $(srcdir) is ".".
36882
36883         define STREQ(a,b) consistently, removing useless parentheses
36884         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36885         since the only risk is that "a" or "b" contains an unparenthesized
36886         comma, but if either did that, STREQ would have 3 or more arguments.
36887         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36888         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36889         * lib/hash-triple.c (STREQ): Likewise.
36890         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36891         * lib/getugroups.c (STREQ): Likewise.
36892
36893 2010-01-23  Jim Meyering  <meyering@redhat.com>
36894
36895         maint.mk: fix syntax-check in a non-srcdir build directory
36896         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36897         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36898
36899 2010-01-22  Jim Meyering  <meyering@redhat.com>
36900
36901         userspec: add unit tests
36902         * tests/test-userspec.c: New file.
36903         * modules/userspec-tests: Likewise.
36904
36905 2010-01-21  Jim Meyering  <meyering@redhat.com>
36906
36907         maint.mk: handle source file names containing "." robustly
36908         * top/maint.mk (_dot_escaped_srcdir): Define.
36909         (VC_LIST): Use it in LHS of sed substitution.
36910
36911 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36912
36913         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36914         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36915         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36916         from a non-srcdir build.
36917
36918 2010-01-20  Eric Blake  <ebb9@byu.net>
36919
36920         warn-on-use: use instead of link-warning
36921         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36922         * modules/unistd (Depends-on, Makefile.am): Likewise.
36923         * modules/arpa_inet (Depends-on): Replace link-warning with
36924         warn-on-use.
36925         (Makefile.am): Update rules accordingly.
36926         * modules/ctype (Depends-on, Makefile.am): Likewise.
36927         * modules/dirent (Depends-on, Makefile.am): Likewise.
36928         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36929         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36930         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36931         * modules/locale (Depends-on, Makefile.am): Likewise.
36932         * modules/math (Depends-on, Makefile.am): Likewise.
36933         * modules/search (Depends-on, Makefile.am): Likewise.
36934         * modules/signal (Depends-on, Makefile.am): Likewise.
36935         * modules/spawn (Depends-on, Makefile.am): Likewise.
36936         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36937         * modules/string (Depends-on, Makefile.am): Likewise.
36938         * modules/strings (Depends-on, Makefile.am): Likewise.
36939         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36940         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36941         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36942         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36943         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36944         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36945         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36946         * modules/wchar (Depends-on, Makefile.am): Likewise.
36947         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36948         should be poisoned.
36949         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36950         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36951         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36952         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36953         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36954         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36955         * m4/math_h.m4 (gl_MATH_H): Likewise.
36956         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36957         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36958         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36959         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36960         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36961         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36962         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36963         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36964         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36965         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36968         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36969         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36970         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36971         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36972         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36973         GL_LINK_WARNING.
36974         * lib/ctype.in.h: Likewise.
36975         * lib/dirent.in.h: Likewise.
36976         * lib/fcntl.in.h: Likewise.
36977         * lib/inttypes.in.h: Likewise.
36978         * lib/langinfo.in.h: Likewise.
36979         * lib/locale.in.h: Likewise.
36980         * lib/math.in.h: Likewise.
36981         * lib/search.in.h: Likewise.
36982         * lib/signal.in.h: Likewise.
36983         * lib/spawn.in.h: Likewise.
36984         * lib/stdio.in.h: Likewise.
36985         * lib/stdlib.in.h: Likewise.
36986         * lib/string.in.h: Likewise.
36987         * lib/strings.in.h: Likewise.
36988         * lib/sys_file.in.h: Likewise.
36989         * lib/sys_ioctl.in.h: Likewise.
36990         * lib/sys_select.in.h: Likewise.
36991         * lib/sys_socket.in.h: Likewise.
36992         * lib/sys_stat.in.h: Likewise.
36993         * lib/sys_times.in.h: Likewise.
36994         * lib/sys_utsname.in.h: Likewise.
36995         * lib/unistd.in.h: Likewise.
36996         * lib/wchar.in.h: Likewise.
36997
36998 2010-01-20  Bruno Haible  <bruno@clisp.org>
36999
37000         Avoid duplicate -lm.
37001         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37002         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37003         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37004         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37005         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37006         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37007         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37008         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37009         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37010         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37011         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37012         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37013         Reported by Paolo Bonzini.
37014
37015 2010-01-19  Bruno Haible  <bruno@clisp.org>
37016
37017         langinfo, nl_langinfo: Relicense under LGPLv2+.
37018         * modules/langinfo (License): Change to LGPLv2+.
37019         * modules/nl_langinfo (License): Likewise.
37020         Patch by David Lutterkort <lutter@redhat.com>.
37021
37022 2010-01-19  Bruno Haible  <bruno@clisp.org>
37023
37024         Avoid compilation error with cc on OSF/1 5.1.
37025         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37026         statement, not before.
37027         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37028
37029 2010-01-18  Bruno Haible  <bruno@clisp.org>
37030
37031         Avoid a link error due to the __printf__ symbol.
37032         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37033         and 2.6.x.
37034         (__format__, __printf__): Remove definitions.
37035         * lib/argp-fmtstream.h: Likewise.
37036         * lib/argp.h: Likewise.
37037         * lib/error.h: Likewise.
37038         * lib/vasnprintf.h: Likewise.
37039         * lib/xprintf.h: Likewise.
37040         * lib/xvasprintf.h: Likewise.
37041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37042
37043 2010-01-18  Bruno Haible  <bruno@clisp.org>
37044
37045         Tests for module 'tanl'.
37046         * modules/tanl-tests: New file.
37047         * tests/test-tanl.c: New file.
37048
37049         Tests for module 'sqrtl'.
37050         * modules/sqrtl-tests: New file.
37051         * tests/test-sqrtl.c: New file.
37052
37053         Tests for module 'sinl'.
37054         * modules/sinl-tests: New file.
37055         * tests/test-sinl.c: New file.
37056
37057         Tests for module 'logl'.
37058         * modules/logl-tests: New file.
37059         * tests/test-logl.c: New file.
37060
37061         Tests for module 'expl'.
37062         * modules/expl-tests: New file.
37063         * tests/test-expl.c: New file.
37064
37065         Tests for module 'cosl'.
37066         * modules/cosl-tests: New file.
37067         * tests/test-cosl.c: New file.
37068
37069         Tests for module 'atanl'.
37070         * modules/atanl-tests: New file.
37071         * tests/test-atanl.c: New file.
37072
37073         Tests for module 'asinl'.
37074         * modules/asinl-tests: New file.
37075         * tests/test-asinl.c: New file.
37076
37077         Tests for module 'acosl'.
37078         * modules/acosl-tests: New file.
37079         * tests/test-acosl.c: New file.
37080
37081         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37082         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37083         tanl): Use the standard gnulib idiom.
37084         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37085         * lib/sinl.c: Likewise.
37086         * lib/tanl.c: Don't include trigl.c.
37087         (kernel_tanl): Make static.
37088         * lib/sincosl.c: Include trigl.h first.
37089         * lib/trigl.c: Likewise.
37090         * m4/acosl.m4: New file.
37091         * m4/asinl.m4: New file.
37092         * m4/atanl.m4: New file.
37093         * m4/cosl.m4: New file.
37094         * m4/expl.m4: New file.
37095         * m4/logl.m4: New file.
37096         * m4/sinl.m4: New file.
37097         * m4/sqrtl.m4: New file.
37098         * m4/tanl.m4: New file.
37099         * m4/mathl.m4: Remove file.
37100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37101         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37102         Don't initialize GNULIB_MATHL.
37103         * modules/acosl: New file.
37104         * modules/asinl: New file.
37105         * modules/atanl: New file.
37106         * modules/cosl: New file.
37107         * modules/expl: New file.
37108         * modules/logl: New file.
37109         * modules/sinl: New file.
37110         * modules/sqrtl: New file.
37111         * modules/tanl: New file.
37112         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37113         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37114         substitute GNULIB_MATHL.
37115         * modules/mathl: Rewritten.
37116         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37117         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37118         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37119         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37120         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37121         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37122         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37123         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37124         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37125
37126 2010-01-18  Bruno Haible  <bruno@clisp.org>
37127
37128         sqrt: Make gl_FUNC_SQRT requirable.
37129         * m4/sqrt.m4: New file.
37130         * modules/sqrt (Files): Add it.
37131         (configure.ac): Invoke gl_FUNC_SQRT.
37132
37133 2010-01-18  Bruno Haible  <bruno@clisp.org>
37134
37135         New modules for common <math.h> functions.
37136         * m4/mathfunc.m4: New file.
37137         * modules/acos: New file.
37138         * modules/asin: New file.
37139         * modules/atan: New file.
37140         * modules/atan2: New file.
37141         * modules/cbrt: New file.
37142         * modules/copysign: New file.
37143         * modules/cos: New file.
37144         * modules/cosh: New file.
37145         * modules/erf: New file.
37146         * modules/erfc: New file.
37147         * modules/exp: New file.
37148         * modules/fabs: New file.
37149         * modules/fmod: New file.
37150         * modules/hypot: New file.
37151         * modules/j0: New file.
37152         * modules/j1: New file.
37153         * modules/jn: New file.
37154         * modules/ldexp: New file.
37155         * modules/lgamma: New file.
37156         * modules/log: New file.
37157         * modules/log10: New file.
37158         * modules/log1p: New file.
37159         * modules/logb: New file.
37160         * modules/modf: New file.
37161         * modules/nextafter: New file.
37162         * modules/pow: New file.
37163         * modules/remainder: New file.
37164         * modules/rint: New file.
37165         * modules/sin: New file.
37166         * modules/sinh: New file.
37167         * modules/sqrt: New file.
37168         * modules/tan: New file.
37169         * modules/tanh: New file.
37170         * modules/y0: New file.
37171         * modules/y1: New file.
37172         * modules/yn: New file.
37173         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37174         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37175         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37176         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37177         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37178         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37179         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37180         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37181         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37182         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37183         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37184         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37185         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37186         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37187         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37188         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37189         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37190         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37191         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37192         * doc/posix-functions/log.texi: Mention the 'log' module.
37193         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37194         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37195         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37196         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37197         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37198         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37199         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37200         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37201         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37202         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37203         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37204         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37205         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37206         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37207         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37208         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37209
37210 2010-01-18  Jim Meyering  <meyering@redhat.com>
37211
37212         ignore-value: relax license to LGPLv2+
37213         * modules/ignore-value (License): Relax to LGPLv2+.
37214
37215         getdate: don't leak when TZ contains two or more '"'s
37216         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37217         double quote in TZ after the first one.
37218
37219         readtokens: do not leak internal token_lengths buffer
37220         * lib/readtokens.c (readtokens): Free the local, lengths,
37221         when the supplied "token_lengths" parameter is NULL.
37222
37223 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37224
37225         Fix a couple of missing LIBTHREAD link failures on AIX.
37226         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37227         $(LIBTHREAD).
37228         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37229
37230         Link test-poll against INET_PTON_LIB.
37231         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37232         for inet_pton on Solaris 10.
37233
37234 2010-01-17  Bruno Haible  <bruno@clisp.org>
37235
37236         unistdio/*-sprintf: Fix typo in module description.
37237         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37238         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37239         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37240         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37241         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37242         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37243         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37245
37246 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37247
37248         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37249         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37250         variables in shell case patterns, for AIX and HP-UX ksh.
37251
37252         Split large sed scripts, for HP-UX sed.
37253         * modules/stdio: Split sed scripts around 50 sed commands,
37254         to avoid HP-UX limit of 99 commands, in the near future.
37255         * modules/string: Likewise.
37256         * modules/unistd: Likewise.
37257
37258         gnulib-tool: avoid writing in the current directory.
37259         * gnulib-tool (func_emit_lib_Makefile_am)
37260         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37261         not in the current directory, so concurrent gnulib-tool
37262         instances do not interfere.
37263
37264 2010-01-16  Jim Meyering  <meyering@redhat.com>
37265
37266         doc: update users.txt
37267         * users.txt: Add grep.
37268         (diffutils, gzip): Update URLs.
37269
37270 2010-01-12  Bruno Haible  <bruno@clisp.org>
37271
37272         posix_spawn: Avoid test failure on Cygwin.
37273         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37274         characters.
37275         Reported by Simon Josefsson.
37276
37277 2010-01-12  Bruno Haible  <bruno@clisp.org>
37278
37279         * tests/test-cond.c (main): When skipping the test, show the reason.
37280
37281 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37282
37283         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37284
37285 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37286
37287         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37288         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37289
37290 2010-01-12  Eric Blake  <ebb9@byu.net>
37291
37292         build: guarantee AS_VAR_IF
37293         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37294         (gl_AS_VAR_IF): Move...
37295         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37296         Reported by Simon Josefsson.
37297
37298 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37299
37300         * lib/stdio.in.h: Fix typo.
37301
37302 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37303
37304         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37305         libgpg-error.
37306
37307 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37308
37309         * tests/test-xalloc-die.sh: Use $EXEEXT.
37310
37311 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37312             Bruno Haible  <bruno@clisp.org>
37313
37314         getlogin, getlogin_r: Avoid test failure.
37315         * tests/test-getlogin.c: Include <stdio.h>.
37316         (main): Skip the test when the function fails because stdin is not a
37317         tty.
37318         * tests/test-getlogin_r.c: Include <stdio.h>.
37319         (main): Skip the test when the function fails because stdin is not a
37320         tty.
37321
37322 2010-01-11  Eric Blake  <ebb9@byu.net>
37323
37324         tests: avoid more large file warnings
37325         * tests/test-fflush.c: Avoid warning about ftell use.
37326         * tests/test-fseek.c: Avoid warning about fseek use.
37327
37328 2010-01-10  Bruno Haible  <bruno@clisp.org>
37329
37330         nproc: Work better on Linux when /proc and /sys are not mounted.
37331         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37332         as lower bound when, on glibc/Linux systems,
37333         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37334         Suggested by Pádraig Brady <P@draigbrady.com>.
37335         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37336
37337         nproc: Refactor.
37338         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37339         extracted from num_processors.
37340         (num_processors): Call it.
37341
37342 2010-01-11  Jim Meyering  <meyering@redhat.com>
37343
37344         utimecmp: avoid new warning from upcoming gcc-4.5.0
37345         * lib/utimecmp.c (BILLION): Define using #define rather than an
37346         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37347
37348 2010-01-11  Eric Blake  <ebb9@byu.net>
37349
37350         math: add portability warnings for classification macros
37351         * modules/math (Depends-on): Add warn-on-use.
37352         (Makefile.am): Provide new substitutions.
37353         * m4/math_h.m4 (gl_MATH_H): Require inline.
37354         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37355         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37356         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37357         implement warnings.
37358
37359         unistd: warn on use of environ without module
37360         * modules/unistd (Depends-on): Add warn-on-use.
37361         (Makefile.am): Provide new substitutions.
37362         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37363         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37364
37365         stdio: warn on suspicious uses
37366         * modules/stdio (Depends-on): Add warn-on-use.
37367         (Makefile.am): Provide new substitutions.
37368         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37369         fseeko.
37370         * lib/stdio.in.h (gets): Always warn on use.
37371         (fseek, ftell): Adjust when warnings are issued, and honor
37372         _GL_NO_LARGE_FILES as a way to silence the warning.
37373         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37374         any warning about large file offsets.
37375         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37376         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37377         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37378         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37379         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37380         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37381         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37382         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37383
37384         warn-on-use: new module
37385         * modules/warn-on-use: New file.
37386         * build-aux/warn-on-use.h: Likewise.
37387         * m4/warn-on-use.m4: Likewise.
37388         * MODULES.html.sh (Support for building): Mention it.
37389
37390 2010-01-10  Bruno Haible  <bruno@clisp.org>
37391
37392         Tests for module 'unistr/u32-strdup'.
37393         * modules/unistr/u32-strdup-tests: New file.
37394         * tests/unistr/test-u32-strdup.c: New file.
37395
37396         Tests for module 'unistr/u16-strdup'.
37397         * modules/unistr/u16-strdup-tests: New file.
37398         * tests/unistr/test-u16-strdup.c: New file.
37399
37400         Tests for module 'unistr/u8-strdup'.
37401         * modules/unistr/u8-strdup-tests: New file.
37402         * tests/unistr/test-u8-strdup.c: New file.
37403         * tests/unistr/test-strdup.h: New file.
37404
37405         Tests for module 'unistr/u32-strncmp'.
37406         * modules/unistr/u32-strncmp-tests: New file.
37407         * tests/unistr/test-u32-strncmp.c: New file.
37408
37409         Tests for module 'unistr/u16-strncmp'.
37410         * modules/unistr/u16-strncmp-tests: New file.
37411         * tests/unistr/test-u16-strncmp.c: New file.
37412
37413         Tests for module 'unistr/u8-strncmp'.
37414         * modules/unistr/u8-strncmp-tests: New file.
37415         * tests/unistr/test-u8-strncmp.c: New file.
37416         * tests/unistr/test-strncmp.h: New file.
37417
37418         Tests for module 'unistr/u32-strcoll'.
37419         * modules/unistr/u32-strcoll-tests: New file.
37420         * tests/unistr/test-u32-strcoll.c: New file.
37421
37422         Tests for module 'unistr/u16-strcoll'.
37423         * modules/unistr/u16-strcoll-tests: New file.
37424         * tests/unistr/test-u16-strcoll.c: New file.
37425
37426         Tests for module 'unistr/u8-strcoll'.
37427         * modules/unistr/u8-strcoll-tests: New file.
37428         * tests/unistr/test-u8-strcoll.c: New file.
37429
37430         Tests for module 'unistr/u32-strcmp'.
37431         * modules/unistr/u32-strcmp-tests: New file.
37432         * tests/unistr/test-u32-strcmp.c: New file.
37433         * tests/unistr/test-u32-strcmp.h: New file.
37434
37435         Tests for module 'unistr/u16-strcmp'.
37436         * modules/unistr/u16-strcmp-tests: New file.
37437         * tests/unistr/test-u16-strcmp.c: New file.
37438         * tests/unistr/test-u16-strcmp.h: New file.
37439
37440         Tests for module 'unistr/u8-strcmp'.
37441         * modules/unistr/u8-strcmp-tests: New file.
37442         * tests/unistr/test-u8-strcmp.c: New file.
37443         * tests/unistr/test-u8-strcmp.h: New file.
37444         * tests/unistr/test-strcmp.h: New file.
37445
37446         Tests for module 'unistr/u32-strncat'.
37447         * modules/unistr/u32-strncat-tests: New file.
37448         * tests/unistr/test-u32-strncat.c: New file.
37449
37450         Tests for module 'unistr/u16-strncat'.
37451         * modules/unistr/u16-strncat-tests: New file.
37452         * tests/unistr/test-u16-strncat.c: New file.
37453
37454         Tests for module 'unistr/u8-strncat'.
37455         * modules/unistr/u8-strncat-tests: New file.
37456         * tests/unistr/test-u8-strncat.c: New file.
37457         * tests/unistr/test-strncat.h: New file.
37458
37459         Tests for module 'unistr/u32-strcat'.
37460         * modules/unistr/u32-strcat-tests: New file.
37461         * tests/unistr/test-u32-strcat.c: New file.
37462
37463         Tests for module 'unistr/u16-strcat'.
37464         * modules/unistr/u16-strcat-tests: New file.
37465         * tests/unistr/test-u16-strcat.c: New file.
37466
37467         Tests for module 'unistr/u8-strcat'.
37468         * modules/unistr/u8-strcat-tests: New file.
37469         * tests/unistr/test-u8-strcat.c: New file.
37470         * tests/unistr/test-strcat.h: New file.
37471
37472         Tests for module 'unistr/u32-stpncpy'.
37473         * modules/unistr/u32-stpncpy-tests: New file.
37474         * tests/unistr/test-u32-stpncpy.c: New file.
37475
37476         Tests for module 'unistr/u16-stpncpy'.
37477         * modules/unistr/u16-stpncpy-tests: New file.
37478         * tests/unistr/test-u16-stpncpy.c: New file.
37479
37480         Tests for module 'unistr/u8-stpncpy'.
37481         * modules/unistr/u8-stpncpy-tests: New file.
37482         * tests/unistr/test-u8-stpncpy.c: New file.
37483         * tests/unistr/test-stpncpy.h: New file.
37484
37485         Tests for module 'unistr/u32-strncpy'.
37486         * modules/unistr/u32-strncpy-tests: New file.
37487         * tests/unistr/test-u32-strncpy.c: New file.
37488
37489         Tests for module 'unistr/u16-strncpy'.
37490         * modules/unistr/u16-strncpy-tests: New file.
37491         * tests/unistr/test-u16-strncpy.c: New file.
37492
37493         Tests for module 'unistr/u8-strncpy'.
37494         * modules/unistr/u8-strncpy-tests: New file.
37495         * tests/unistr/test-u8-strncpy.c: New file.
37496         * tests/unistr/test-strncpy.h: New file.
37497
37498         Tests for module 'unistr/u32-stpcpy'.
37499         * modules/unistr/u32-stpcpy-tests: New file.
37500         * tests/unistr/test-u32-stpcpy.c: New file.
37501
37502         Tests for module 'unistr/u16-stpcpy'.
37503         * modules/unistr/u16-stpcpy-tests: New file.
37504         * tests/unistr/test-u16-stpcpy.c: New file.
37505
37506         Tests for module 'unistr/u8-stpcpy'.
37507         * modules/unistr/u8-stpcpy-tests: New file.
37508         * tests/unistr/test-u8-stpcpy.c: New file.
37509         * tests/unistr/test-stpcpy.h: New file.
37510
37511         Tests for module 'unistr/u32-strcpy'.
37512         * modules/unistr/u32-strcpy-tests: New file.
37513         * tests/unistr/test-u32-strcpy.c: New file.
37514
37515         Tests for module 'unistr/u16-strcpy'.
37516         * modules/unistr/u16-strcpy-tests: New file.
37517         * tests/unistr/test-u16-strcpy.c: New file.
37518
37519         Tests for module 'unistr/u8-strcpy'.
37520         * modules/unistr/u8-strcpy-tests: New file.
37521         * tests/unistr/test-u8-strcpy.c: New file.
37522         * tests/unistr/test-strcpy.h: New file.
37523
37524         Tests for module 'unistr/u32-strnlen'.
37525         * modules/unistr/u32-strnlen-tests: New file.
37526         * tests/unistr/test-u32-strnlen.c: New file.
37527
37528         Tests for module 'unistr/u16-strnlen'.
37529         * modules/unistr/u16-strnlen-tests: New file.
37530         * tests/unistr/test-u16-strnlen.c: New file.
37531
37532         Tests for module 'unistr/u8-strnlen'.
37533         * modules/unistr/u8-strnlen-tests: New file.
37534         * tests/unistr/test-u8-strnlen.c: New file.
37535         * tests/unistr/test-strnlen.h: New file.
37536
37537         Tests for module 'unistr/u32-strlen'.
37538         * modules/unistr/u32-strlen-tests: New file.
37539         * tests/unistr/test-u32-strlen.c: New file.
37540
37541         Tests for module 'unistr/u16-strlen'.
37542         * modules/unistr/u16-strlen-tests: New file.
37543         * tests/unistr/test-u16-strlen.c: New file.
37544
37545         Tests for module 'unistr/u8-strlen'.
37546         * modules/unistr/u8-strlen-tests: New file.
37547         * tests/unistr/test-u8-strlen.c: New file.
37548
37549         Tests for module 'unistr/u32-prev'.
37550         * modules/unistr/u32-prev-tests: New file.
37551         * tests/unistr/test-u32-prev.c: New file.
37552
37553         Tests for module 'unistr/u16-prev'.
37554         * modules/unistr/u16-prev-tests: New file.
37555         * tests/unistr/test-u16-prev.c: New file.
37556
37557         Tests for module 'unistr/u8-prev'.
37558         * modules/unistr/u8-prev-tests: New file.
37559         * tests/unistr/test-u8-prev.c: New file.
37560
37561         Tests for module 'unistr/u32-next'.
37562         * modules/unistr/u32-next-tests: New file.
37563         * tests/unistr/test-u32-next.c: New file.
37564
37565         Tests for module 'unistr/u16-next'.
37566         * modules/unistr/u16-next-tests: New file.
37567         * tests/unistr/test-u16-next.c: New file.
37568
37569         Tests for module 'unistr/u8-next'.
37570         * modules/unistr/u8-next-tests: New file.
37571         * tests/unistr/test-u8-next.c: New file.
37572
37573         Tests for module 'unistr/u32-strmbtouc'.
37574         * modules/unistr/u32-strmbtouc-tests: New file.
37575         * tests/unistr/test-u32-strmbtouc.c: New file.
37576
37577         Tests for module 'unistr/u16-strmbtouc'.
37578         * modules/unistr/u16-strmbtouc-tests: New file.
37579         * tests/unistr/test-u16-strmbtouc.c: New file.
37580
37581         Tests for module 'unistr/u8-strmbtouc'.
37582         * modules/unistr/u8-strmbtouc-tests: New file.
37583         * tests/unistr/test-u8-strmbtouc.c: New file.
37584
37585         Tests for module 'unistr/u32-strmblen'.
37586         * modules/unistr/u32-strmblen-tests: New file.
37587         * tests/unistr/test-u32-strmblen.c: New file.
37588
37589         Tests for module 'unistr/u16-strmblen'.
37590         * modules/unistr/u16-strmblen-tests: New file.
37591         * tests/unistr/test-u16-strmblen.c: New file.
37592
37593         Tests for module 'unistr/u8-strmblen'.
37594         * modules/unistr/u8-strmblen-tests: New file.
37595         * tests/unistr/test-u8-strmblen.c: New file.
37596
37597         Tests for module 'unistr/u32-cpy-alloc'.
37598         * modules/unistr/u32-cpy-alloc-tests: New file.
37599         * tests/unistr/test-u32-cpy-alloc.c: New file.
37600
37601         Tests for module 'unistr/u16-cpy-alloc'.
37602         * modules/unistr/u16-cpy-alloc-tests: New file.
37603         * tests/unistr/test-u16-cpy-alloc.c: New file.
37604
37605         Tests for module 'unistr/u8-cpy-alloc'.
37606         * modules/unistr/u8-cpy-alloc-tests: New file.
37607         * tests/unistr/test-u8-cpy-alloc.c: New file.
37608         * tests/unistr/test-cpy-alloc.h: New file.
37609
37610         Tests for module 'unistr/u32-mbsnlen'.
37611         * modules/unistr/u32-mbsnlen-tests: New file.
37612         * tests/unistr/test-u32-mbsnlen.c: New file.
37613
37614         Tests for module 'unistr/u16-mbsnlen'.
37615         * modules/unistr/u16-mbsnlen-tests: New file.
37616         * tests/unistr/test-u16-mbsnlen.c: New file.
37617
37618         Tests for module 'unistr/u8-mbsnlen'.
37619         * modules/unistr/u8-mbsnlen-tests: New file.
37620         * tests/unistr/test-u8-mbsnlen.c: New file.
37621
37622         Tests for module 'unistr/u32-chr'.
37623         * modules/unistr/u32-chr-tests: New file.
37624         * tests/unistr/test-u32-chr.c: New file.
37625
37626         Tests for module 'unistr/u16-chr'.
37627         * modules/unistr/u16-chr-tests: New file.
37628         * tests/unistr/test-u16-chr.c: New file.
37629
37630         Tests for module 'unistr/u8-chr'.
37631         * modules/unistr/u8-chr-tests: New file.
37632         * tests/unistr/test-u8-chr.c: New file.
37633         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37634
37635         Tests for module 'unistr/u32-cmp2'.
37636         * modules/unistr/u32-cmp2-tests: New file.
37637         * tests/unistr/test-u32-cmp2.c: New file.
37638
37639         Tests for module 'unistr/u16-cmp2'.
37640         * modules/unistr/u16-cmp2-tests: New file.
37641         * tests/unistr/test-u16-cmp2.c: New file.
37642
37643         Tests for module 'unistr/u8-cmp2'.
37644         * modules/unistr/u8-cmp2-tests: New file.
37645         * tests/unistr/test-u8-cmp2.c: New file.
37646         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37647
37648         Tests for module 'unistr/u32-cmp'.
37649         * modules/unistr/u32-cmp-tests: New file.
37650         * tests/unistr/test-u32-cmp.c: New file.
37651
37652         Tests for module 'unistr/u16-cmp'.
37653         * modules/unistr/u16-cmp-tests: New file.
37654         * tests/unistr/test-u16-cmp.c: New file.
37655
37656         Tests for module 'unistr/u8-cmp'.
37657         * modules/unistr/u8-cmp-tests: New file.
37658         * tests/unistr/test-u8-cmp.c: New file.
37659         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37660
37661         Tests for module 'unistr/u32-set'.
37662         * modules/unistr/u32-set-tests: New file.
37663         * tests/unistr/test-u32-set.c: New file.
37664
37665         Tests for module 'unistr/u16-set'.
37666         * modules/unistr/u16-set-tests: New file.
37667         * tests/unistr/test-u16-set.c: New file.
37668
37669         Tests for module 'unistr/u8-set'.
37670         * modules/unistr/u8-set-tests: New file.
37671         * tests/unistr/test-u8-set.c: New file.
37672         * tests/unistr/test-set.h: New file.
37673
37674         Tests for module 'unistr/u32-move'.
37675         * modules/unistr/u32-move-tests: New file.
37676         * tests/unistr/test-u32-move.c: New file.
37677
37678         Tests for module 'unistr/u16-move'.
37679         * modules/unistr/u16-move-tests: New file.
37680         * tests/unistr/test-u16-move.c: New file.
37681
37682         Tests for module 'unistr/u8-move'.
37683         * modules/unistr/u8-move-tests: New file.
37684         * tests/unistr/test-u8-move.c: New file.
37685         * tests/unistr/test-move.h: New file.
37686
37687         Tests for module 'unistr/u32-cpy'.
37688         * modules/unistr/u32-cpy-tests: New file.
37689         * tests/unistr/test-u32-cpy.c: New file.
37690
37691         Tests for module 'unistr/u16-cpy'.
37692         * modules/unistr/u16-cpy-tests: New file.
37693         * tests/unistr/test-u16-cpy.c: New file.
37694
37695         Tests for module 'unistr/u8-cpy'.
37696         * modules/unistr/u8-cpy-tests: New file.
37697         * tests/unistr/test-u8-cpy.c: New file.
37698         * tests/unistr/test-cpy.h: New file.
37699
37700 2010-01-09  Bruno Haible  <bruno@clisp.org>
37701
37702         Tests for module 'unistr/u32-uctomb'.
37703         * modules/unistr/u32-uctomb-tests: New file.
37704         * tests/unistr/test-u32-uctomb.c: New file.
37705
37706         Tests for module 'unistr/u16-uctomb'.
37707         * modules/unistr/u16-uctomb-tests: New file.
37708         * tests/unistr/test-u16-uctomb.c: New file.
37709
37710         Tests for module 'unistr/u8-uctomb'.
37711         * modules/unistr/u8-uctomb-tests: New file.
37712         * tests/unistr/test-u8-uctomb.c: New file.
37713
37714         Tests for module 'unistr/u32-mbtoucr'.
37715         * modules/unistr/u32-mbtoucr-tests: New file.
37716         * tests/unistr/test-u32-mbtoucr.c: New file.
37717
37718         Tests for module 'unistr/u16-mbtoucr'.
37719         * modules/unistr/u16-mbtoucr-tests: New file.
37720         * tests/unistr/test-u16-mbtoucr.c: New file.
37721
37722         Tests for module 'unistr/u8-mbtoucr'.
37723         * modules/unistr/u8-mbtoucr-tests: New file.
37724         * tests/unistr/test-u8-mbtoucr.c: New file.
37725
37726         Tests for module 'unistr/u32-mbtouc'.
37727         * modules/unistr/u32-mbtouc-tests: New file.
37728         * tests/unistr/test-u32-mbtouc.c: New file.
37729
37730         Tests for module 'unistr/u16-mbtouc'.
37731         * modules/unistr/u16-mbtouc-tests: New file.
37732         * tests/unistr/test-u16-mbtouc.c: New file.
37733
37734         Tests for module 'unistr/u8-mbtouc'.
37735         * modules/unistr/u8-mbtouc-tests: New file.
37736         * tests/unistr/test-u8-mbtouc.c: New file.
37737
37738         Tests for module 'unistr/u32-mbtouc-unsafe'.
37739         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37740         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37741         * tests/unistr/test-u32-mbtouc.h: New file.
37742
37743         Tests for module 'unistr/u16-mbtouc-unsafe'.
37744         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37745         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37746         * tests/unistr/test-u16-mbtouc.h: New file.
37747
37748         Tests for module 'unistr/u8-mbtouc-unsafe'.
37749         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37750         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37751         * tests/unistr/test-u8-mbtouc.h: New file.
37752
37753         Tests for module 'unistr/u32-mblen'.
37754         * modules/unistr/u32-mblen-tests: New file.
37755         * tests/unistr/test-u32-mblen.c: New file.
37756
37757         Tests for module 'unistr/u16-mblen'.
37758         * modules/unistr/u16-mblen-tests: New file.
37759         * tests/unistr/test-u16-mblen.c: New file.
37760
37761         Tests for module 'unistr/u8-mblen'.
37762         * modules/unistr/u8-mblen-tests: New file.
37763         * tests/unistr/test-u8-mblen.c: New file.
37764
37765         Tests for module 'unistr/u32-to-u16'.
37766         * modules/unistr/u32-to-u16-tests: New file.
37767         * tests/unistr/test-u32-to-u16.c: New file.
37768
37769         Tests for module 'unistr/u32-to-u8'.
37770         * modules/unistr/u32-to-u8-tests: New file.
37771         * tests/unistr/test-u32-to-u8.c: New file.
37772
37773         Tests for module 'unistr/u16-to-u32'.
37774         * modules/unistr/u16-to-u32-tests: New file.
37775         * tests/unistr/test-u16-to-u32.c: New file.
37776
37777         Tests for module 'unistr/u16-to-u8'.
37778         * modules/unistr/u16-to-u8-tests: New file.
37779         * tests/unistr/test-u16-to-u8.c: New file.
37780
37781         Tests for module 'unistr/u8-to-u32'.
37782         * modules/unistr/u8-to-u32-tests: New file.
37783         * tests/unistr/test-u8-to-u32.c: New file.
37784
37785         Tests for module 'unistr/u8-to-u16'.
37786         * modules/unistr/u8-to-u16-tests: New file.
37787         * tests/unistr/test-u8-to-u16.c: New file.
37788
37789         Tests for module 'unistr/u32-check'.
37790         * modules/unistr/u32-check-tests: New file.
37791         * tests/unistr/test-u32-check.c: New file.
37792
37793         Tests for module 'unistr/u16-check'.
37794         * modules/unistr/u16-check-tests: New file.
37795         * tests/unistr/test-u16-check.c: New file.
37796
37797         Tests for module 'unistr/u8-check'.
37798         * modules/unistr/u8-check-tests: New file.
37799         * tests/unistr/test-u8-check.c: New file.
37800
37801         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37802         (category_equals): New function.
37803         (main): Add more tests.
37804         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37805
37806         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37807
37808 2010-01-10  Bruno Haible  <bruno@clisp.org>
37809
37810         unistr/u*-strcoll: Try harder to distinguish different strings.
37811         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37812         compare s1 and s2 to see if they are different.
37813
37814 2010-01-10  Bruno Haible  <bruno@clisp.org>
37815
37816         unistr/u*-stpncpy: Fix the return value.
37817         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37818         description of the return value consistent with stpncpy in glibc.
37819         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37820         written non-NUL unit.
37821
37822 2010-01-10  Bruno Haible  <bruno@clisp.org>
37823
37824         unistr/u*-next: Add missing dependencies.
37825         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37826         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37827         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37828
37829 2010-01-10  Bruno Haible  <bruno@clisp.org>
37830
37831         unistr/u8-mbsnlen: Fix return value for incomplete character.
37832         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37833         u8_mblen.
37834         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37835         Remove unistr/u8-mblen.
37836         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37837         u16_mblen.
37838         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37839         Remove unistr/u16-mblen.
37840
37841 2010-01-10  Bruno Haible  <bruno@clisp.org>
37842
37843         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37844         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37845         Reported by Brian Gough <bjg@gnu.org> and
37846         Chris Clayton <chris2553@googlemail.com> via
37847         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37848
37849 2010-01-09  Bruno Haible  <bruno@clisp.org>
37850
37851         unistr/u16-to-u32: Reject invalid input.
37852         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37853         u16_mbtouc.
37854         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37855         Remove unistr/u16-mbtouc.
37856
37857         unistr/u16-to-u8: Reject invalid input.
37858         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37859         u16_mbtouc.
37860         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37861         Remove unistr/u16-mbtouc.
37862
37863         unistr/u8-to-u32: Reject invalid input.
37864         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37865         u8_mbtouc.
37866         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37867         Remove unistr/u8-mbtouc.
37868
37869         unistr/u8-to-u16: Reject invalid input.
37870         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37871         u8_mbtouc.
37872         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37873         Remove unistr/u8-mbtouc.
37874
37875 2010-01-09  Bruno Haible  <bruno@clisp.org>
37876
37877         Tests for module 'getlogin'.
37878         * modules/getlogin-tests: New file.
37879         * tests/test-getlogin.c: New file.
37880
37881         New module 'getlogin'.
37882         * lib/unistd.in.h (getlogin): New declaration.
37883         * lib/getlogin.c: New file.
37884         * m4/getlogin.m4: New file.
37885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37886         HAVE_GETLOGIN.
37887         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37888         HAVE_GETLOGIN.
37889         * modules/getlogin: New file.
37890         * doc/posix-functions/getlogin.texi: Mention the new module.
37891         Reported by John W. Eaton <jwe@gnu.org>.
37892
37893 2010-01-09  Bruno Haible  <bruno@clisp.org>
37894
37895         getlogin_r: Support for native Windows.
37896         * lib/getlogin_r.c: Include <windows.h>
37897         (getlogin_r): Implement for native Windows.
37898         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37899         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37900         via John W. Eaton <jwe@gnu.org>.
37901
37902 2010-01-09  Bruno Haible  <bruno@clisp.org>
37903
37904         getlogin_r: Small fixes.
37905         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37906         succeeds.
37907         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37908         before testing whether getlogin_r is declared. No need to set
37909         HAVE_DECL_GETLOGIN_R to 1.
37910         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37911
37912 2010-01-09  Bruno Haible  <bruno@clisp.org>
37913
37914         * lib/unistd.in.h (getlogin_r): Add comment.
37915
37916 2010-01-09  Bruno Haible  <bruno@clisp.org>
37917
37918         Tests for module 'getlogin_r'.
37919         * modules/getlogin_r-tests: New file.
37920         * tests/test-getlogin_r.c: New file.
37921
37922 2010-01-09  Jim Meyering  <meyering@redhat.com>
37923
37924         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37925         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37926         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37927
37928 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37929
37930         * lib/dup2.c (rpl_dup2): Improve comment.
37931
37932 2010-01-08  Eric Blake  <ebb9@byu.net>
37933
37934         maint.mk: allow packages to add makefile @@ exceptions
37935         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37936         (sc_makefile_check): Rename...
37937         (sc_makefile_at_at_check): ...to this, and use hook.
37938
37939         dup2: work around mingw bug
37940         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37941         Reported by Simon Josefsson.
37942
37943 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37944
37945         glob: Fix C++ compilation.
37946         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37947         C++.
37948
37949 2010-01-07  Bruno Haible  <bruno@clisp.org>
37950
37951         Fix indentation of wctype.in.h, broken since 2007-01-06.
37952         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37953
37954 2010-01-07  Bruno Haible  <bruno@clisp.org>
37955
37956         mbslen: Avoid collision with system function.
37957         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37958         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37959         * m4/mbslen.m4: New file.
37960         * modules/mbslen (Files): Add it.
37961         (configure.ac): Invoke gl_MBSLEN.
37962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37963         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37964         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37965         via Ian Beckwith <ianb@erislabs.net>.
37966
37967 2010-01-07  Bruno Haible  <bruno@clisp.org>
37968
37969         dirent: Document the last fix.
37970         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37971
37972 2010-01-07  Bruno Haible  <bruno@clisp.org>
37973
37974         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37975         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37976         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37977         va_list are defined.
37978         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37979         Reported by Eric Blake.
37980
37981 2010-01-07  Bruno Haible  <bruno@clisp.org>
37982
37983         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37984         * modules/xlist (Depends-on): Add 'list',
37985         * modules/xoset (Depends-on): Add 'oset'.
37986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37987
37988 2010-01-07  Bruno Haible  <bruno@clisp.org>
37989
37990         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37991         * doc/posix-functions/strncasecmp.texi: Likewise.
37992
37993 2010-01-07  Bruno Haible  <bruno@clisp.org>
37994
37995         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37996
37997 2010-01-07  John W. Eaton  <jwe@octave.org>
37998
37999         wctype: allow C++ use
38000         * lib/wctype.in.h: Add extern "C" block for C++.
38001
38002 2010-01-06  Eric Blake  <ebb9@byu.net>
38003
38004         maint.mk: detect incorrect GFDL usage
38005         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38006
38007 2010-01-06  Jim Meyering  <meyering@redhat.com>
38008         and Eric Blake  <ebb9@byu.net>
38009
38010         maint.mk: ignore multi-line copyright in NEWS
38011         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38012
38013 2010-01-06  Eric Blake  <ebb9@byu.net>
38014
38015         select: add missing dependency
38016         * modules/select-tests (Depends-on): Move sockets dependency...
38017         * modules/select (Depends-on): ...here.
38018         Reported by Ian Beckwith.
38019
38020         doc: regenerate INSTALL
38021         * doc/INSTALL: Reflect recent autoconf update.
38022         * doc/INSTALL.ISO: Likewise.
38023         * doc/INSTALL.UTF-8: Likewise.
38024
38025         pread: fix compilation on glibc
38026         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38027         Reported by Ralf Wildenhues.
38028
38029         dirent: fix test failure
38030         * lib/dirent.in.h (includes): Guarantee ino_t.
38031         Reported by Ralf Wildenhues.
38032
38033 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38034
38035         linkat, renameat: avoid bad free
38036         * lib/at-func2.c (at_func2): Fix typo.
38037         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38038
38039 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38040
38041         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38042         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38043         to avoid failure of symlink test later.
38044
38045 2010-01-06  Eric Blake  <ebb9@byu.net>
38046
38047         stdio, unistd: guarantee ssize_t
38048         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38049         2008 are exposed when needed.
38050         * lib/stdio.in.h (includes): Likewise.
38051         Reported by Ralf Wildenhues.
38052
38053 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38054
38055         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38056         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38057         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38058
38059 2010-01-06  Jim Meyering  <meyering@redhat.com>
38060
38061         readtokens: this module *does* require xalloc.h
38062         It uses only functions that were omitted by the old syntax-check rule.
38063         * lib/readtokens.c: Include "xalloc.h" once again.
38064         * modules/readtokens (Depends-on): Add xalloc.
38065         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38066
38067 2010-01-05  Eric Blake  <ebb9@byu.net>
38068
38069         maint: support 'make announcement' from a VPATH build
38070         * top/maint.mk (announcement): Look for correct NEWS file.
38071
38072 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38073
38074         utimens (fdutimens): ignore a negative FD, per contract
38075         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38076         when we have a valid file descriptor.  Otherwise, using a brand
38077         new glibc (with just-patched futimens that now fails with EBADF)
38078         would cause this function to fail with ENOSYS.
38079         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38080         See also http://bugzilla.redhat.com/552320.
38081
38082 2010-01-05  Eric Blake  <ebb9@byu.net>
38083
38084         strcase: document what it provides
38085         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38086         gnulib module.
38087         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38088         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38089
38090 2010-01-05  Jim Meyering  <meyering@redhat.com>
38091
38092         maint: remove useless inclusions of "xalloc.h"
38093         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38094         * lib/readtokens.c: Likewise.
38095         * lib/same.c: Likewise.
38096         * modules/getloadavg (Depends-on): Remove xalloc.
38097         * modules/readtokens: Likewise.
38098         * modules/same: Likewise.
38099
38100         maint.mk: include 4 more function names in alloca.h-checking regexp
38101         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38102         regexp.  Before, we would give a false-positive (saying alloca.h
38103         is included unnecessarily) when the only uses involved omitted symbols.
38104
38105         xalloc.h: use consistent formatting
38106         * lib/xalloc.h: Move declarations to start in the first column.
38107
38108 2010-01-05  Eric Blake  <ebb9@byu.net>
38109
38110         mkdir: avoid xalloc
38111         * lib/mkdir.c (includes): Drop unused header.
38112         Reported by John W. Eaton.
38113
38114 2010-01-04  Jim Meyering  <meyering@redhat.com>
38115
38116         nl_langinfo: avoid configure-time syntax error
38117         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38118         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38119         the empty string.  Don't let that provoke a shell syntax error.
38120
38121         regcomp, regexec, fnmatch: avoid array bounds read error
38122         * lib/regcomp.c (build_equiv_class): From glibc:
38123         Use only the low 24 bits of a findidx return value as an index
38124         into the weights array.  Patch by Ulrich Drepper:
38125         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38126         * lib/regexec.c (check_node_accept_bytes): Likewise.
38127         * lib/fnmatch_loop.c (FCT): Likewise.
38128
38129         regcomp: skip collseq lookup when there are no rules
38130         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38131         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38132
38133         regcomp: recognize ill-formed { } expressions
38134         * lib/regcomp.c (parse_dup_op): From glibc:
38135         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38136
38137         regcomp: fix typo in comment
38138         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38139         s/satisfy/satisfies/.
38140
38141         regcomp: sync from glibc: remove dead store
38142         * lib/regcomp.c (duplicate_node_closure): Remove useless
38143         search_duplicated_node call and dead store.
38144
38145         regcomp: sync from glibc; always use nl_langinfo
38146         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38147         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38148         * modules/regex (Depends-on): Add nl_langinfo.
38149
38150 2010-01-04  Eric Blake  <ebb9@byu.net>
38151
38152         fdopendir: fix configure test
38153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38154
38155 2010-01-01  Bruno Haible  <bruno@clisp.org>
38156
38157         wchar: Remove unused configure check.
38158         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38159
38160 2010-01-01  Eric Blake  <ebb9@byu.net>
38161
38162         headers: make check of system header explicit
38163         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38164         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38165         ourselves.
38166         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38168         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38169         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38170         internals.
38171         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38172         missing.
38173         Suggested by Bruno Haible.
38174
38175 2010-01-01  Jim Meyering  <meyering@redhat.com>
38176
38177         ChangeLog: tweak to eliminate unnecessary copyright line
38178         * ChangeLog: Remove a copyright line that was mistakenly updated
38179         by today's update-copyright run.  Reported by Eric Blake.
38180
38181         test-update-copyright: don't let envvar setting cause test failure
38182         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38183
38184 2010-01-01  Bruno Haible  <bruno@clisp.org>
38185
38186         localename: Avoid gcc warning.
38187         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38188         function if it is not used.
38189
38190 2010-01-01  Jim Meyering  <meyering@redhat.com>
38191
38192         update nearly all FSF copyright year lists to include 2010
38193         Use the same procedure as for 2009, outlined in
38194         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38195
38196         version-etc: set COPYRIGHT_YEAR to 2010
38197         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38198
38199 2009-12-31  Eric Blake  <ebb9@byu.net>
38200
38201         doc: correct availability of cygwin 1.5.x getopt
38202         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38203         variables.
38204         * doc/posix-functions/opterr.texi (opterr): Likewise.
38205         * doc/posix-functions/optind.texi (optind): Likewise.
38206         * doc/posix-functions/optopt.texi (optopt): Likewise.
38207         * doc/posix-functions/tzname.texi (tzname): Likewise.
38208
38209         openat: update maintainer
38210         * modules/openat (Maintainer): Add myself.
38211
38212         utimens: avoid shadowing warning
38213         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38214         buffers into one, to avoid shadowing, as well as avoiding a
38215         redundant stat.
38216         Reported by Jim Meyering.
38217
38218         test-dup2: avoid compiler warning
38219         * tests/test-dup2.c (is_inheritable): Only define if used.
38220
38221 2010-01-01  Bruno Haible  <bruno@clisp.org>
38222
38223         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38224         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38225         defined, use wctomb instead of wcrtomb.
38226
38227 2010-01-01  Bruno Haible  <bruno@clisp.org>
38228
38229         iconv: Reject native Solaris iconv.
38230         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38231         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38232
38233 2009-12-31  Bruno Haible  <bruno@clisp.org>
38234
38235         * tests/test-signal.c (main): Remove test of 'SIG'.
38236
38237 2009-12-31  Bruno Haible  <bruno@clisp.org>
38238
38239         spawn: Fix incomplete fix.
38240         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38241         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38242         warnings for GNULIB_POSIXCHECK again.
38243         Reported by Eric Blake.
38244
38245 2009-12-31  Bruno Haible  <bruno@clisp.org>
38246
38247         Avoid namespace pollution on glibc systems.
38248         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38249         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38250         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38251         glibc systems.
38252
38253 2009-12-31  Bruno Haible  <bruno@clisp.org>
38254
38255         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38256         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38257         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38258         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38259         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38260         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38261         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38262
38263 2009-12-31  Bruno Haible  <bruno@clisp.org>
38264
38265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38266         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38267         afterwards.
38268
38269 2009-12-31  Bruno Haible  <bruno@clisp.org>
38270
38271         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38272         SYS_UTSNAME_H.
38273
38274 2009-12-31  Bruno Haible  <bruno@clisp.org>
38275
38276         spawn: Fix misapplied patch.
38277         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38278         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38279         warnings for GNULIB_POSIXCHECK.
38280
38281 2009-12-31  Bruno Haible  <bruno@clisp.org>
38282
38283         times: Update after sys_times changed.
38284         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38285         * modules/times (Files): Add it.
38286         (configure.ac): Invoke gl_FUNC_TIMES.
38287
38288 2009-12-31  Bruno Haible  <bruno@clisp.org>
38289
38290         Use AC_C_INLINE where necessary.
38291         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38292         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38293         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38294         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38295         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38296         * m4/mbiter.m4 (gl_MBITER): Likewise.
38297         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38298         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38299         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38300         * modules/u64 (configure.ac): Likewise.
38301
38302 2009-12-31  Bruno Haible  <bruno@clisp.org>
38303
38304         Use AC_C_INLINE instead of module 'inline' where possible.
38305         * modules/inline (Description): Clarify purpose.
38306         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38307         * modules/count-one-bits (Depends-on): Remove inline.
38308         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38309         * modules/openat (Depends-on): Remove inline.
38310         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38311         instead of depending on module 'inline'.
38312         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38313         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38314         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38315         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38316         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38317         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38318         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38319         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38320         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38321         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38322         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38323         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38324         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38325         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38326         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38327         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38328         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38329         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38330         Likewise.
38331         * modules/unictype/property-ascii-hex-digit (Depends-on,
38332         configure.ac): Likewise.
38333         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38334         configure.ac): Likewise.
38335         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38336         configure.ac): Likewise.
38337         * modules/unictype/property-bidi-block-separator (Depends-on,
38338         configure.ac): Likewise.
38339         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38340         configure.ac): Likewise.
38341         * modules/unictype/property-bidi-common-separator (Depends-on,
38342         configure.ac): Likewise.
38343         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38344         Likewise.
38345         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38346         configure.ac): Likewise.
38347         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38348         configure.ac): Likewise.
38349         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38350         configure.ac): Likewise.
38351         * modules/unictype/property-bidi-european-digit (Depends-on,
38352         configure.ac): Likewise.
38353         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38354         configure.ac): Likewise.
38355         * modules/unictype/property-bidi-left-to-right (Depends-on,
38356         configure.ac): Likewise.
38357         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38358         configure.ac): Likewise.
38359         * modules/unictype/property-bidi-other-neutral (Depends-on,
38360         configure.ac): Likewise.
38361         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38362         Likewise.
38363         * modules/unictype/property-bidi-segment-separator (Depends-on,
38364         configure.ac): Likewise.
38365         * modules/unictype/property-bidi-whitespace (Depends-on,
38366         configure.ac): Likewise.
38367         * modules/unictype/property-combining (Depends-on, configure.ac):
38368         Likewise.
38369         * modules/unictype/property-composite (Depends-on, configure.ac):
38370         Likewise.
38371         * modules/unictype/property-currency-symbol (Depends-on,
38372         configure.ac): Likewise.
38373         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38374         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38375         Likewise.
38376         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38377         configure.ac): Likewise.
38378         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38379         Likewise.
38380         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38381         Likewise.
38382         * modules/unictype/property-extender (Depends-on, configure.ac):
38383         Likewise.
38384         * modules/unictype/property-format-control (Depends-on, configure.ac):
38385         Likewise.
38386         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38387         Likewise.
38388         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38389         Likewise.
38390         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38391         Likewise.
38392         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38393         Likewise.
38394         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38395         Likewise.
38396         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38397         Likewise.
38398         * modules/unictype/property-id-start (Depends-on, configure.ac):
38399         Likewise.
38400         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38401         Likewise.
38402         * modules/unictype/property-ids-binary-operator (Depends-on,
38403         configure.ac): Likewise.
38404         * modules/unictype/property-ids-trinary-operator (Depends-on,
38405         configure.ac): Likewise.
38406         * modules/unictype/property-ignorable-control (Depends-on,
38407         configure.ac): Likewise.
38408         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38409         Likewise.
38410         * modules/unictype/property-join-control (Depends-on, configure.ac):
38411         Likewise.
38412         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38413         Likewise.
38414         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38415         Likewise.
38416         * modules/unictype/property-logical-order-exception (Depends-on,
38417         configure.ac): Likewise.
38418         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38419         Likewise.
38420         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38421         * modules/unictype/property-non-break (Depends-on, configure.ac):
38422         Likewise.
38423         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38424         Likewise.
38425         * modules/unictype/property-numeric (Depends-on, configure.ac):
38426         Likewise.
38427         * modules/unictype/property-other-alphabetic (Depends-on,
38428         configure.ac): Likewise.
38429         * modules/unictype/property-other-default-ignorable-code-point
38430         (Depends-on, configure.ac): Likewise.
38431         * modules/unictype/property-other-grapheme-extend (Depends-on,
38432         configure.ac): Likewise.
38433         * modules/unictype/property-other-id-continue (Depends-on,
38434         configure.ac): Likewise.
38435         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38436         Likewise.
38437         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38438         Likewise.
38439         * modules/unictype/property-other-math (Depends-on, configure.ac):
38440         Likewise.
38441         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38442         Likewise.
38443         * modules/unictype/property-paired-punctuation (Depends-on,
38444         configure.ac): Likewise.
38445         * modules/unictype/property-paragraph-separator (Depends-on,
38446         configure.ac): Likewise.
38447         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38448         Likewise.
38449         * modules/unictype/property-pattern-white-space (Depends-on,
38450         configure.ac): Likewise.
38451         * modules/unictype/property-private-use (Depends-on, configure.ac):
38452         Likewise.
38453         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38454         Likewise.
38455         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38456         Likewise.
38457         * modules/unictype/property-radical (Depends-on, configure.ac):
38458         Likewise.
38459         * modules/unictype/property-sentence-terminal (Depends-on,
38460         configure.ac): Likewise.
38461         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38462         Likewise.
38463         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38464         * modules/unictype/property-terminal-punctuation (Depends-on,
38465         configure.ac): Likewise.
38466         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38467         Likewise.
38468         * modules/unictype/property-unassigned-code-value (Depends-on,
38469         configure.ac): Likewise.
38470         * modules/unictype/property-unified-ideograph (Depends-on,
38471         configure.ac): Likewise.
38472         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38473         Likewise.
38474         * modules/unictype/property-variation-selector (Depends-on,
38475         configure.ac): Likewise.
38476         * modules/unictype/property-white-space (Depends-on, configure.ac):
38477         Likewise.
38478         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38479         Likewise.
38480         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38481         Likewise.
38482         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38483         Likewise.
38484         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38485         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38486         Likewise.
38487
38488 2009-12-31  Bruno Haible  <bruno@clisp.org>
38489
38490         Remove unnecessary AC_C_INLINE invocation.
38491         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38492         since 2009-08-21.
38493
38494 2009-12-31  Jim Meyering  <meyering@redhat.com>
38495
38496         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38497         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38498         With this change, we can all remove the gpg_key_ID = ... definition
38499         from our respective cfg.mk files.
38500
38501         maint.mk: create announcement template in ~/, not in /tmp
38502         * top/maint.mk (emit_upload_commands): Adjust.
38503         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38504         Remove temporary file, .ci-msg.
38505
38506 2009-12-31  Eric Blake  <ebb9@byu.net>
38507
38508         link-warning: always build headers with link warnings
38509         * modules/arpa_inet (Makefile.am): Always build replacement
38510         header.
38511         * modules/ctype (Makefile.am): Likewise.
38512         * modules/dirent (Makefile.am): Likewise.
38513         * modules/inttypes (Makefile.am): Likewise.
38514         * modules/langinfo (Makefile.am): Likewise.
38515         * modules/locale (Makefile.am): Likewise.
38516         * modules/spawn (Makefile.am): Likewise.
38517         * modules/sys_file (Makefile.am): Likewise.
38518         * modules/sys_ioctl (Makefile.am): Likewise.
38519         * modules/sys_select (Makefile.am): Likewise.
38520         * modules/sys_socket (Makefile.am): Likewise.
38521         * modules/sys_times (Makefile.am): Likewise.
38522         * modules/sys_utsname (Makefile.am): Likewise.
38523         * modules/sys_wait (Makefile.am): Likewise.
38524         * modules/wchar (Makefile.am): Likewise.
38525         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38526         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38527         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38528         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38529         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38530         Likewise.
38531         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38532         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38533         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38534         Likewise.
38535         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38536         Likewise.
38537         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38538         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38539         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38541         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38542         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38543         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38544         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38545         (gl_WCHAR_H_DEFAULTS): Likewise.
38546
38547 2009-12-31  Eric Blake  <ebb9@byu.net>
38548
38549         signal, spawn: use link warnings
38550         * lib/signal.in.h (sigset_t): Make unconditional.
38551         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38552         (sigpending, sigprocmask, sigaction): Add link warnings.
38553         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38554         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38555         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38556         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38557         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38558         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38559         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38560         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38561         (posix_spawn_file_actions_destroy)
38562         (posix_spawn_file_actions_addopen)
38563         (posix_spawn_file_actions_addclose)
38564         (posix_spawn_file_actions_adddup2): Likewise.
38565         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38566         * tests/test-signal.c (main): Enhance test.
38567
38568         spawn: improve wrapper support
38569         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38570         (gl_SPAWN_H_DEFAULTS): New defaults.
38571         * modules/spawn (Makefile.am): Substitute them.
38572         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38573         Only declare if missing or broken.
38574
38575         sys_times, sys_utsname: use include_next
38576         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38577         header.
38578         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38579         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38580         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38581         * modules/sys_times (Depends-on): Add include_next.
38582         (Makefile.am): Substitute additional values.
38583         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38584         * lib/sys_times.in.h (includes): Include native header, if
38585         available.
38586         * lib/sys_utsname.in.h (includes): Likewise.
38587         * tests/test-sys_times.c (main): Enhance test.
38588
38589         fdutimensat: revert prior patch
38590         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38591         utimens.h.
38592         Reported by Bruno Haible.
38593
38594 2009-12-30  Eric Blake  <ebb9@byu.net>
38595
38596         sys_wait: drop link-warning dependency
38597         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38598         link-warning efforts.
38599         * lib/sys_wait.in.h: Likewise.
38600
38601         fdutimensat: remove bogus dependency
38602         * modules/fdutimensat (Depends-on): Drop inline.
38603
38604         unistd: fix typo
38605         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38606
38607 2009-12-30  Bruno Haible  <bruno@clisp.org>
38608
38609         Fix compilation error with Solaris cc.
38610         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38611         * lib/unicase/u16-is-invariant.c: Likewise.
38612         * lib/unicase/u32-is-invariant.c: Likewise.
38613         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38614
38615 2009-12-30  Bruno Haible  <bruno@clisp.org>
38616
38617         Fix test crash.
38618         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38619         locales.
38620         Reported by Simon Josefsson <simon@josefsson.org>.
38621
38622 2009-12-30  Bruno Haible  <bruno@clisp.org>
38623
38624         Fix compilation error on most platforms.
38625         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38626         Reported by Simon Josefsson <simon@josefsson.org>
38627         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38628
38629 2009-12-30  Eric Blake  <ebb9@byu.net>
38630
38631         futimens, utimensat: work around ntfs-3g bug
38632         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38633         a ctime bug is present, and expand workaround to cover ntfs-3g.
38634         * lib/utimens.c (fdutimens, lutimens): Likewise.
38635         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38636         (validate_timespec): Adjust return value.
38637         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38638         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38639         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38640
38641 2009-12-29  Eric Blake  <ebb9@byu.net>
38642
38643         link-warning: make usage consistent
38644         * modules/ctype (Depends-on): Add link-warning.
38645         (Makefile.am): Update rules accordingly.
38646         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38647         * modules/locale (Depends-on, Makefile.am): Likewise.
38648         * modules/sys_file (Makefile.am): Likewise.
38649         * modules/getopt-posix (Makefile.am): Delete unused link warning
38650         efforts.
38651         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38652         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38653         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38654         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38655
38656         stdio: remove unused variables
38657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38659         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38660
38661         tests: test more substitute headers
38662         * modules/ctype-tests: New file.
38663         * modules/dirent-tests: Likewise.
38664         * modules/spawn-tests: Likewise.
38665         * modules/sys_file-tests: Likewise.
38666         * modules/sys_ioctl-tests: Likewise.
38667         * modules/sys_wait-tests: Likewise.
38668         * tests/test-ctype.c: Likewise.
38669         * tests/test-dirent.c: Likewise.
38670         * tests/test-spawn.c: Likewise.
38671         * tests/test-sys_file.c: Likewise.
38672         * tests/test-sys_ioctl.c: Likewise.
38673         * tests/test-sys_wait.c: Likewise.
38674         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38675         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38676         whether or not flock is in use.
38677
38678         tests: remove License section from module
38679         * modules/arpa_inet-tests: Remove unneeded section.
38680         * modules/byteswap-tests: Likewise.
38681         * modules/ceilf-tests: Likewise.
38682         * modules/ceill-tests: Likewise.
38683         * modules/crypto/des-tests: Likewise.
38684         * modules/crypto/gc-arcfour-tests: Likewise.
38685         * modules/crypto/gc-arctwo-tests: Likewise.
38686         * modules/crypto/gc-des-tests: Likewise.
38687         * modules/crypto/gc-hmac-md5-tests: Likewise.
38688         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38689         * modules/crypto/gc-md2-tests: Likewise.
38690         * modules/crypto/gc-md4-tests: Likewise.
38691         * modules/crypto/gc-md5-tests: Likewise.
38692         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38693         * modules/crypto/gc-rijndael-tests: Likewise.
38694         * modules/crypto/gc-sha1-tests: Likewise.
38695         * modules/crypto/gc-tests: Likewise.
38696         * modules/crypto/md2-tests: Likewise.
38697         * modules/crypto/md4-tests: Likewise.
38698         * modules/fcntl-h-tests: Likewise.
38699         * modules/floorf-tests: Likewise.
38700         * modules/floorl-tests: Likewise.
38701         * modules/frexp-nolibm-tests: Likewise.
38702         * modules/frexp-tests: Likewise.
38703         * modules/frexpl-nolibm-tests: Likewise.
38704         * modules/frexpl-tests: Likewise.
38705         * modules/getaddrinfo-tests: Likewise.
38706         * modules/inttypes-tests: Likewise.
38707         * modules/isfinite-tests: Likewise.
38708         * modules/isinf-tests: Likewise.
38709         * modules/ldexpl-tests: Likewise.
38710         * modules/locale-tests: Likewise.
38711         * modules/math-tests: Likewise.
38712         * modules/netdb-tests: Likewise.
38713         * modules/netinet_in-tests: Likewise.
38714         * modules/printf-frexp-tests: Likewise.
38715         * modules/printf-frexpl-tests: Likewise.
38716         * modules/priv-set-tests: Likewise.
38717         * modules/random_r-tests: Likewise.
38718         * modules/round-tests: Likewise.
38719         * modules/roundf-tests: Likewise.
38720         * modules/roundl-tests: Likewise.
38721         * modules/search-tests: Likewise.
38722         * modules/select-tests: Likewise.
38723         * modules/signal-tests: Likewise.
38724         * modules/stdbool-tests: Likewise.
38725         * modules/stddef-tests: Likewise.
38726         * modules/stdint-tests: Likewise.
38727         * modules/stdio-tests: Likewise.
38728         * modules/stdlib-tests: Likewise.
38729         * modules/string-tests: Likewise.
38730         * modules/strings-tests: Likewise.
38731         * modules/sys_select-tests: Likewise.
38732         * modules/sys_socket-tests: Likewise.
38733         * modules/sys_stat-tests: Likewise.
38734         * modules/sys_time-tests: Likewise.
38735         * modules/sys_utsname-tests: Likewise.
38736         * modules/sysexits-tests: Likewise.
38737         * modules/time-tests: Likewise.
38738         * modules/trunc-tests: Likewise.
38739         * modules/truncf-tests: Likewise.
38740         * modules/truncl-tests: Likewise.
38741         * modules/tsearch-tests: Likewise.
38742         * modules/unistd-tests: Likewise.
38743         * modules/wchar-tests: Likewise.
38744         * modules/wctype-tests: Likewise.
38745
38746         tests: fix license on several tests
38747         * tests/test-des.c: Update to GPLv3+.
38748         * tests/test-flock.c: Likewise.
38749         * tests/test-fsync.c: Likewise.
38750         * tests/test-futimens.h: Likewise.
38751         * tests/test-gc-arcfour.c: Likewise.
38752         * tests/test-gc-arctwo.c: Likewise.
38753         * tests/test-gc-des.c: Likewise.
38754         * tests/test-gc-hmac-md5.c: Likewise.
38755         * tests/test-gc-hmac-sha1.c: Likewise.
38756         * tests/test-gc-md2.c: Likewise.
38757         * tests/test-gc-md4.c: Likewise.
38758         * tests/test-gc-md5.c: Likewise.
38759         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38760         * tests/test-gc-rijndael.c: Likewise.
38761         * tests/test-gc-sha1.c: Likewise.
38762         * tests/test-gc.c: Likewise.
38763         * tests/test-getcwd.c: Likewise.
38764         * tests/test-link.c: Likewise.
38765         * tests/test-link.h: Likewise.
38766         * tests/test-lutimens.h: Likewise.
38767         * tests/test-md2.c: Likewise.
38768         * tests/test-md4.c: Likewise.
38769         * tests/test-mkdir.h: Likewise.
38770         * tests/test-rename.c: Likewise.
38771         * tests/test-rename.h: Likewise.
38772         * tests/test-safe-alloc.c: Likewise.
38773         * tests/test-utimens-common.h: Likewise.
38774         * tests/test-utimens.h: Likewise.
38775
38776         maint: sync license texts
38777         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38778         * doc/gpl-3.0.texi: Revert copyright year update.
38779         * doc/lgpl-3.0.texi: Likewise.
38780
38781 2009-12-29  Jim Meyering  <meyering@redhat.com>
38782
38783         update nearly all FSF copyright year lists to include 2009
38784         The files named by the following are exempted:
38785             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38786               test -f "$dst" && { echo "$dst"; continue; }
38787               test -d "$dst" || continue
38788               echo "$dst"/$(basename "$src")
38789             done > exempt
38790             git ls-files tests/unictype >> exempt
38791         In the remaining files, convert to all-interval notation if
38792         - there is already at least one year interval like 2000-2003
38793         - the file is maintained by me
38794         - the file is in lib/uni*/, where that style already prevails
38795         Otherwise, use update-copyright's default.
38796
38797 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38798         and Eric Blake  <ebb9@byu.net>
38799
38800         tests: don't require debug system() to pass
38801         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38802         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38803         * tests/test-unlink.h (test_unlink_func): Likewise.
38804         * tests/test-fstatat.c (main): ...into callers.
38805         * tests/test-lstat.c (main): Likewise.
38806         * tests/test-rmdir.c (main): Likewise.
38807         * tests/test-unlink.c (main): Likewise.
38808         * tests/test-unlinkat.c (main): Likewise.
38809         * tests/test-areadlink-with-size.c (main): Don't require a
38810         debug-only system call to pass, aiding cross-testing to mingw.
38811         * tests/test-areadlink.c (main): Likewise.
38812         * tests/test-areadlinkat-with-size.c (main): Likewise.
38813         * tests/test-areadlinkat.c (main): Likewise.
38814         * tests/test-canonicalize-lgpl.c (main): Likewise.
38815         * tests/test-canonicalize.c (main): Likewise.
38816         * tests/test-chown.c (main): Likewise.
38817         * tests/test-fchownat.c (main): Likewise.
38818         * tests/test-lchown.c (main): Likewise.
38819         * tests/test-fdutimensat.c (main): Likewise.
38820         * tests/test-futimens.c (main): Likewise.
38821         * tests/test-link.c (main): Likewise.
38822         * tests/test-linkat.c (main): Likewise.
38823         * tests/test-mkdir.c (main): Likewise.
38824         * tests/test-mkdirat.c (main): Likewise.
38825         * tests/test-mkfifo.c (main): Likewise.
38826         * tests/test-mkfifoat.c (main): Likewise.
38827         * tests/test-mknod.c (main): Likewise.
38828         * tests/test-readlink.c (main): Likewise.
38829         * tests/test-remove.c (main): Likewise.
38830         * tests/test-rename.c (main): Likewise.
38831         * tests/test-renameat.c (main): Likewise.
38832         * tests/test-symlink.c (main): Likewise.
38833         * tests/test-symlinkat.c (main): Likewise.
38834         * tests/test-utimens.c (main): Likewise.
38835         * tests/test-utimensat.c (main): Likewise.
38836
38837 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38838
38839         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38840         on $(UNUSED_PARAMETER_H) to avoid build failure.
38841
38842 2009-12-28  Jim Meyering  <meyering@redhat.com>
38843
38844         update-copyright: you may specify a max. line length other than 72
38845         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38846
38847         maint: use consistent FSF copyright line syntax
38848         * lib/posixtm.c: Add missing comma in FSF copyright line.
38849         * lib/posixtm.h: Likewise.
38850         * lib/getugroups.c: Add missing ", Inc.".
38851
38852         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38853         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38854         FSF copyright line.  Remove trailing blanks.
38855
38856 2009-12-28  Eric Blake  <ebb9@byu.net>
38857
38858         test-dup2: reduce dependencies
38859         * modules/cloexec (Configure.ac): Set witness.
38860         * modules/dup2-tests (Depends-on): Drop cloexec.
38861         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38862         not present.
38863         Suggested by Bruno Haible.
38864
38865 2009-12-26  Bruno Haible  <bruno@clisp.org>
38866
38867         Remove an unneeded dependency.
38868         * modules/fseterr (Depends-on): Remove dup2.
38869
38870 2009-12-26  Eric Blake  <ebb9@byu.net>
38871
38872         tests: use macros.h in more places
38873         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38874         (ASSERT_STREAM): Provide default of stderr.
38875         * tests/test-dirent-safer.c: Include macros.h, using alternate
38876         stream for assertions.
38877         * tests/test-dup-safer.c: Likewise.
38878         * tests/test-freopen-safer.c: Likewise.
38879         * tests/test-getopt.c: Likewise.
38880         * tests/test-openat-safer.c: Likewise.
38881         * tests/test-pipe.c: Likewise.
38882         * tests/test-popen-safer.c: Likewise.
38883         * modules/dirent-safer-tests (Files): Include macros.h.
38884         * modules/unistd-safer-tests (Files): Likewise.
38885         * modules/freopen-safer-tests (Files): Likewise.
38886         * modules/getopt-posix-tests (Files): Likewise.
38887         * modules/openat-safer-tests (Files): Likewise.
38888         * modules/pipe-tests (Files): Likewise.
38889
38890 2009-12-26  Bruno Haible  <bruno@clisp.org>
38891
38892         javacomp: Portability fix.
38893         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38894         that it also works on Solaris.
38895
38896 2009-12-26  Bruno Haible  <bruno@clisp.org>
38897
38898         localename: Fix storage allocation of gl_locale_name_thread's result.
38899         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38900         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38901         all platforms that have 'uselocale'.
38902         (gl_locale_name_thread_unsafe): New function, extracted from
38903         gl_locale_name_thread.
38904         (gl_locale_name_thread): Call struniq on all platforms that have
38905         'uselocale'.
38906         * tests/test-localename.c (test_locale_name_thread): Check that the
38907         resulting strings are permanently allocated.
38908         * modules/localename-tests (Depends-on): Add strdup.
38909
38910 2009-12-26  Bruno Haible  <bruno@clisp.org>
38911
38912         * tests/test-localename.c (categories): Fill in the strings.
38913
38914 2009-12-26  Jim Meyering  <meyering@redhat.com>
38915
38916         isdir: complete the removal of m4/isdir.m4
38917         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38918
38919         isdir: clean up, since at least grep still uses it
38920         * lib/isdir.c: Include "isdir.h".
38921         (S_ISDIR): Remove now-unneeded definition.
38922         * modules/isdir (Files): Add lib/isdir.h.
38923         * lib/isdir.h: New file, with declaration.
38924         * m4/isdir.m4: Remove file -- unneeded.
38925
38926 2009-12-25  Bruno Haible  <bruno@clisp.org>
38927
38928         selinux-h: Make generated .h files standalone.
38929         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38930         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38931         * lib/se-selinux.in.h: Likewise.
38932         * modules/selinux-h (Depends-on): Add unused-parameter.
38933         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38934         selinux/selinux.h and selinux/context.h.
38935         Suggested by Eric Blake.
38936
38937 2009-12-25  Bruno Haible  <bruno@clisp.org>
38938
38939         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38940         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38941         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38942         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38943         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38944
38945 2009-12-24  Bruno Haible  <bruno@clisp.org>
38946
38947         openat: Fix warning.
38948         * lib/openat-proc.c: Include <unistd.h>.
38949
38950 2009-12-24  Bruno Haible  <bruno@clisp.org>
38951
38952         New module 'unused-parameter'.
38953         * build-aux/unused-parameter.h: New file, extracted from earlier
38954         gnulib-common.m4.
38955         * modules/unused-parameter: New file.
38956         * lib/unistr.h: Include unused-parameter.h.
38957         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38958         _GL_UNUSED.
38959         * modules/unistr/base (Depends-on): Add unused-parameter.
38960
38961 2009-12-24  Bruno Haible  <bruno@clisp.org>
38962
38963         Add missing dependencies to 'extensions' module.
38964         * m4/extensions.m4: Add comment.
38965         * modules/accept4 (Depends-on): Add extensions.
38966         * modules/dup3 (Depends-on): Likewise.
38967         * modules/fcntl (Depends-on): Likewise.
38968         * modules/futimens (Depends-on): Likewise.
38969         * modules/mknod (Depends-on): Likewise.
38970         * modules/pipe2 (Depends-on): Likewise.
38971         * modules/stat-time (Depends-on): Likewise.
38972         * modules/strcasestr-simple (Depends-on): Likewise.
38973         * modules/strsignal (Depends-on): Likewise.
38974         * modules/utimensat (Depends-on): Likewise.
38975         * modules/localcharset (Depends-on): Likewise. Needed because of
38976         gl_FCNTL_O_FLAGS.
38977         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38978         AC_TYPE_MBSTATE_T.
38979         * modules/wcsnrtombs (Depends-on): Likewise.
38980         * modules/wcsrtombs (Depends-on): Likewise.
38981
38982 2009-12-24  Bruno Haible  <bruno@clisp.org>
38983
38984         binary-io: Avoid gcc warning due to SET_BINARY.
38985         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38986         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38987
38988 2009-12-24  Bruno Haible  <bruno@clisp.org>
38989
38990         Avoid future namespace pollution on glibc systems.
38991         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38992         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38993         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38994         glibc systems.
38995
38996 2009-12-24  Bruno Haible  <bruno@clisp.org>
38997
38998         Refactor common macros used in tests.
38999         * tests/macros.h: New file.
39000         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39001         and/or <stdlib.h>, if appropriate.
39002         (ASSERT, SIZEOF): Remove macros.
39003         * tests/test-areadlink-with-size.c: Likewise.
39004         * tests/test-areadlinkat.c: Likewise.
39005         * tests/test-areadlinkat-with-size.c: Likewise.
39006         * tests/test-argmatch.c: Likewise.
39007         * tests/test-argv-iter.c: Likewise.
39008         * tests/test-array-mergesort.c: Likewise.
39009         * tests/test-array_list.c: Likewise.
39010         * tests/test-array_oset.c: Likewise.
39011         * tests/test-avltree_list.c: Likewise.
39012         * tests/test-avltree_oset.c: Likewise.
39013         * tests/test-avltreehash_list.c: Likewise.
39014         * tests/test-base64.c: Likewise.
39015         * tests/test-binary-io.c: Likewise.
39016         * tests/test-bitrotate.c: Likewise.
39017         * tests/test-btowc.c: Likewise.
39018         * tests/test-byteswap.c: Likewise.
39019         * tests/test-c-ctype.c: Likewise.
39020         * tests/test-c-stack.c: Likewise.
39021         * tests/test-c-strcasecmp.c: Likewise.
39022         * tests/test-c-strcasestr.c: Likewise.
39023         * tests/test-c-strncasecmp.c: Likewise.
39024         * tests/test-c-strstr.c: Likewise.
39025         * tests/test-canonicalize-lgpl.c: Likewise.
39026         * tests/test-canonicalize.c: Likewise.
39027         * tests/test-carray_list.c: Likewise.
39028         * tests/test-ceilf1.c: Likewise.
39029         * tests/test-ceilf2.c: Likewise.
39030         * tests/test-ceill.c: Likewise.
39031         * tests/test-chown.c: Likewise.
39032         * tests/test-cloexec.c: Likewise.
39033         * tests/test-copy-acl.c: Likewise.
39034         * tests/test-copy-file.c: Likewise.
39035         * tests/test-count-one-bits.c: Likewise.
39036         * tests/test-dprintf-posix.c: Likewise.
39037         * tests/test-dup2.c: Likewise.
39038         * tests/test-dup3.c: Likewise.
39039         * tests/test-duplocale.c: Likewise.
39040         * tests/test-fbufmode.c: Likewise.
39041         * tests/test-fchdir.c: Likewise.
39042         * tests/test-fchownat.c: Likewise.
39043         * tests/test-fcntl-safer.c: Likewise.
39044         * tests/test-fcntl.c: Likewise.
39045         * tests/test-fdopendir.c: Likewise.
39046         * tests/test-fdutimensat.c: Likewise.
39047         * tests/test-fflush2.c: Likewise.
39048         * tests/test-file-has-acl.c: Likewise.
39049         * tests/test-filevercmp.c: Likewise.
39050         * tests/test-flock.c: Likewise.
39051         * tests/test-floorf1.c: Likewise.
39052         * tests/test-floorf2.c: Likewise.
39053         * tests/test-floorl.c: Likewise.
39054         * tests/test-fnmatch.c: Likewise.
39055         * tests/test-fopen.h: Likewise.
39056         * tests/test-fpending.c: Likewise.
39057         * tests/test-fprintf-posix.c: Likewise.
39058         * tests/test-fpurge.c: Likewise.
39059         * tests/test-freadable.c: Likewise.
39060         * tests/test-freadahead.c: Likewise.
39061         * tests/test-freading.c: Likewise.
39062         * tests/test-freadptr.c: Likewise.
39063         * tests/test-freadptr2.c: Likewise.
39064         * tests/test-freadseek.c: Likewise.
39065         * tests/test-freopen.c: Likewise.
39066         * tests/test-frexp.c: Likewise.
39067         * tests/test-frexpl.c: Likewise.
39068         * tests/test-fseek.c: Likewise.
39069         * tests/test-fseeko.c: Likewise.
39070         * tests/test-fstatat.c: Likewise.
39071         * tests/test-fstrcmp.c: Likewise.
39072         * tests/test-fsync.c: Likewise.
39073         * tests/test-ftell.c: Likewise.
39074         * tests/test-ftello.c: Likewise.
39075         * tests/test-func.c: Likewise.
39076         * tests/test-futimens.c: Likewise.
39077         * tests/test-fwritable.c: Likewise.
39078         * tests/test-fwriting.c: Likewise.
39079         * tests/test-getcwd.c: Likewise.
39080         * tests/test-getdate.c: Likewise.
39081         * tests/test-getdelim.c: Likewise.
39082         * tests/test-getdtablesize.c: Likewise.
39083         * tests/test-getgroups.c: Likewise.
39084         * tests/test-getline.c: Likewise.
39085         * tests/test-getndelim2.c: Likewise.
39086         * tests/test-glob.c: Likewise.
39087         * tests/test-hash.c: Likewise.
39088         * tests/test-i-ring.c: Likewise.
39089         * tests/test-iconv-utf.c: Likewise.
39090         * tests/test-iconv.c: Likewise.
39091         * tests/test-idpriv-drop.c: Likewise.
39092         * tests/test-idpriv-droptemp.c: Likewise.
39093         * tests/test-inet_ntop.c: Likewise.
39094         * tests/test-inet_pton.c: Likewise.
39095         * tests/test-isblank.c: Likewise.
39096         * tests/test-isfinite.c: Likewise.
39097         * tests/test-isinf.c: Likewise.
39098         * tests/test-isnan.c: Likewise.
39099         * tests/test-isnand.h: Likewise.
39100         * tests/test-isnanf.h: Likewise.
39101         * tests/test-isnanl.h: Likewise.
39102         * tests/test-lchown.c: Likewise.
39103         * tests/test-ldexpl.c: Likewise.
39104         * tests/test-link.c: Likewise.
39105         * tests/test-linkat.c: Likewise.
39106         * tests/test-linked_list.c: Likewise.
39107         * tests/test-linkedhash_list.c: Likewise.
39108         * tests/test-localename.c: Likewise.
39109         * tests/test-lseek.c: Likewise.
39110         * tests/test-lstat.c: Likewise.
39111         * tests/test-mbmemcasecmp.c: Likewise.
39112         * tests/test-mbmemcasecoll.c: Likewise.
39113         * tests/test-mbrtowc.c: Likewise.
39114         * tests/test-mbscasecmp.c: Likewise.
39115         * tests/test-mbscasestr1.c: Likewise.
39116         * tests/test-mbscasestr2.c: Likewise.
39117         * tests/test-mbscasestr3.c: Likewise.
39118         * tests/test-mbscasestr4.c: Likewise.
39119         * tests/test-mbschr.c: Likewise.
39120         * tests/test-mbscspn.c: Likewise.
39121         * tests/test-mbsinit.c: Likewise.
39122         * tests/test-mbsncasecmp.c: Likewise.
39123         * tests/test-mbsnrtowcs.c: Likewise.
39124         * tests/test-mbspbrk.c: Likewise.
39125         * tests/test-mbspcasecmp.c: Likewise.
39126         * tests/test-mbsrchr.c: Likewise.
39127         * tests/test-mbsrtowcs.c: Likewise.
39128         * tests/test-mbsspn.c: Likewise.
39129         * tests/test-mbsstr1.c: Likewise.
39130         * tests/test-mbsstr2.c: Likewise.
39131         * tests/test-mbsstr3.c: Likewise.
39132         * tests/test-memchr.c: Likewise.
39133         * tests/test-memchr2.c: Likewise.
39134         * tests/test-memcmp.c: Likewise.
39135         * tests/test-memmem.c: Likewise.
39136         * tests/test-memrchr.c: Likewise.
39137         * tests/test-mkdir.c: Likewise.
39138         * tests/test-mkdirat.c: Likewise.
39139         * tests/test-mkfifo.c: Likewise.
39140         * tests/test-mkfifoat.c: Likewise.
39141         * tests/test-mknod.c: Likewise.
39142         * tests/test-nanosleep.c: Likewise.
39143         * tests/test-nl_langinfo.c: Likewise.
39144         * tests/test-obstack-printf.c: Likewise.
39145         * tests/test-open.c: Likewise.
39146         * tests/test-openat.c: Likewise.
39147         * tests/test-pipe-filter-gi1.c: Likewise.
39148         * tests/test-pipe-filter-gi2-main.c: Likewise.
39149         * tests/test-pipe-filter-ii1.c: Likewise.
39150         * tests/test-pipe-filter-ii2-main.c: Likewise.
39151         * tests/test-pipe2.c: Likewise.
39152         * tests/test-popen.h: Likewise.
39153         * tests/test-posixtm.c: Likewise.
39154         * tests/test-pread.c: Likewise.
39155         * tests/test-printf-frexp.c: Likewise.
39156         * tests/test-printf-frexpl.c: Likewise.
39157         * tests/test-printf-posix.c: Likewise.
39158         * tests/test-priv-set.c: Likewise.
39159         * tests/test-quotearg.c: Likewise.
39160         * tests/test-random_r.c: Likewise.
39161         * tests/test-rawmemchr.c: Likewise.
39162         * tests/test-rbtree_list.c: Likewise.
39163         * tests/test-rbtree_oset.c: Likewise.
39164         * tests/test-rbtreehash_list.c: Likewise.
39165         * tests/test-readlink.c: Likewise.
39166         * tests/test-remove.c: Likewise.
39167         * tests/test-rename.c: Likewise.
39168         * tests/test-renameat.c: Likewise.
39169         * tests/test-rmdir.c: Likewise.
39170         * tests/test-round1.c: Likewise.
39171         * tests/test-roundf1.c: Likewise.
39172         * tests/test-roundl.c: Likewise.
39173         * tests/test-safe-alloc.c: Likewise.
39174         * tests/test-sameacls.c: Likewise.
39175         * tests/test-set-mode-acl.c: Likewise.
39176         * tests/test-setenv.c: Likewise.
39177         * tests/test-sigaction.c: Likewise.
39178         * tests/test-signbit.c: Likewise.
39179         * tests/test-sleep.c: Likewise.
39180         * tests/test-snprintf-posix.c: Likewise.
39181         * tests/test-snprintf.c: Likewise.
39182         * tests/test-sprintf-posix.c: Likewise.
39183         * tests/test-stat-time.c: Likewise.
39184         * tests/test-stat.c: Likewise.
39185         * tests/test-strcasestr.c: Likewise.
39186         * tests/test-strchrnul.c: Likewise.
39187         * tests/test-strerror.c: Likewise.
39188         * tests/test-striconv.c: Likewise.
39189         * tests/test-striconveh.c: Likewise.
39190         * tests/test-striconveha.c: Likewise.
39191         * tests/test-strsignal.c: Likewise.
39192         * tests/test-strstr.c: Likewise.
39193         * tests/test-strtod.c: Likewise.
39194         * tests/test-strverscmp.c: Likewise.
39195         * tests/test-symlink.c: Likewise.
39196         * tests/test-symlinkat.c: Likewise.
39197         * tests/test-trunc1.c: Likewise.
39198         * tests/test-trunc2.c: Likewise.
39199         * tests/test-truncf1.c: Likewise.
39200         * tests/test-truncf2.c: Likewise.
39201         * tests/test-truncl.c: Likewise.
39202         * tests/test-uname.c: Likewise.
39203         * tests/test-unlink.c: Likewise.
39204         * tests/test-unlinkat.c: Likewise.
39205         * tests/test-unsetenv.c: Likewise.
39206         * tests/test-usleep.c: Likewise.
39207         * tests/test-utimens.c: Likewise.
39208         * tests/test-utimensat.c: Likewise.
39209         * tests/test-vasnprintf-posix.c: Likewise.
39210         * tests/test-vasnprintf-posix2.c: Likewise.
39211         * tests/test-vasnprintf.c: Likewise.
39212         * tests/test-vasprintf-posix.c: Likewise.
39213         * tests/test-vasprintf.c: Likewise.
39214         * tests/test-vdprintf-posix.c: Likewise.
39215         * tests/test-vfprintf-posix.c: Likewise.
39216         * tests/test-vprintf-posix.c: Likewise.
39217         * tests/test-vsnprintf-posix.c: Likewise.
39218         * tests/test-vsnprintf.c: Likewise.
39219         * tests/test-vsprintf-posix.c: Likewise.
39220         * tests/test-wcrtomb.c: Likewise.
39221         * tests/test-wcsnrtombs.c: Likewise.
39222         * tests/test-wcsrtombs.c: Likewise.
39223         * tests/test-wctype.c: Likewise.
39224         * tests/test-wcwidth.c: Likewise.
39225         * tests/test-xfprintf-posix.c: Likewise.
39226         * tests/test-xmemdup0.c: Likewise.
39227         * tests/test-xprintf-posix.c: Likewise.
39228         * tests/test-xvasprintf.c: Likewise.
39229         * tests/unicase/test-locale-language.c: Likewise.
39230         * tests/unicase/test-mapping-part1.h: Likewise.
39231         * tests/unicase/test-predicate-part1.h: Likewise.
39232         * tests/unicase/test-u8-casecmp.c: Likewise.
39233         * tests/unicase/test-u8-casecoll.c: Likewise.
39234         * tests/unicase/test-u8-casefold.c: Likewise.
39235         * tests/unicase/test-u8-is-cased.c: Likewise.
39236         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39237         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39238         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39239         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39240         * tests/unicase/test-u8-tolower.c: Likewise.
39241         * tests/unicase/test-u8-totitle.c: Likewise.
39242         * tests/unicase/test-u8-toupper.c: Likewise.
39243         * tests/unicase/test-u16-casecmp.c: Likewise.
39244         * tests/unicase/test-u16-casecoll.c: Likewise.
39245         * tests/unicase/test-u16-casefold.c: Likewise.
39246         * tests/unicase/test-u16-is-cased.c: Likewise.
39247         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39248         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39249         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39250         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39251         * tests/unicase/test-u16-tolower.c: Likewise.
39252         * tests/unicase/test-u16-totitle.c: Likewise.
39253         * tests/unicase/test-u16-toupper.c: Likewise.
39254         * tests/unicase/test-u32-casecmp.c: Likewise.
39255         * tests/unicase/test-u32-casecoll.c: Likewise.
39256         * tests/unicase/test-u32-casefold.c: Likewise.
39257         * tests/unicase/test-u32-is-cased.c: Likewise.
39258         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39259         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39260         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39261         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39262         * tests/unicase/test-u32-tolower.c: Likewise.
39263         * tests/unicase/test-u32-totitle.c: Likewise.
39264         * tests/unicase/test-u32-toupper.c: Likewise.
39265         * tests/unicase/test-ulc-casecmp.c: Likewise.
39266         * tests/unicase/test-ulc-casecoll.c: Likewise.
39267         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39268         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39269         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39270         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39271         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39272         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39273         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39274         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39275         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39276         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39277         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39278         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39279         * tests/unictype/test-bidi_byname.c: Likewise.
39280         * tests/unictype/test-bidi_name.c: Likewise.
39281         * tests/unictype/test-bidi_of.c: Likewise.
39282         * tests/unictype/test-bidi_test.c: Likewise.
39283         * tests/unictype/test-block_list.c: Likewise.
39284         * tests/unictype/test-block_of.c: Likewise.
39285         * tests/unictype/test-block_test.c: Likewise.
39286         * tests/unictype/test-categ_and.c: Likewise.
39287         * tests/unictype/test-categ_and_not.c: Likewise.
39288         * tests/unictype/test-categ_byname.c: Likewise.
39289         * tests/unictype/test-categ_name.c: Likewise.
39290         * tests/unictype/test-categ_none.c: Likewise.
39291         * tests/unictype/test-categ_of.c: Likewise.
39292         * tests/unictype/test-categ_or.c: Likewise.
39293         * tests/unictype/test-categ_test_withtable.c: Likewise.
39294         * tests/unictype/test-combining.c: Likewise.
39295         * tests/unictype/test-decdigit.c: Likewise.
39296         * tests/unictype/test-digit.c: Likewise.
39297         * tests/unictype/test-mirror.c: Likewise.
39298         * tests/unictype/test-numeric.c: Likewise.
39299         * tests/unictype/test-pr_byname.c: Likewise.
39300         * tests/unictype/test-pr_test.c: Likewise.
39301         * tests/unictype/test-predicate-part1.h: Likewise.
39302         * tests/unictype/test-scripts.c: Likewise.
39303         * tests/unictype/test-sy_c_ident.c: Likewise.
39304         * tests/unictype/test-sy_java_ident.c: Likewise.
39305         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39306         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39307         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39308         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39309         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39310         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39311         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39312         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39313         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39314         * tests/uninorm/test-compat-decomposition.c: Likewise.
39315         * tests/uninorm/test-composition.c: Likewise.
39316         * tests/uninorm/test-decomposing-form.c: Likewise.
39317         * tests/uninorm/test-decomposition.c: Likewise.
39318         * tests/uninorm/test-u8-nfc.c: Likewise.
39319         * tests/uninorm/test-u8-nfd.c: Likewise.
39320         * tests/uninorm/test-u8-nfkc.c: Likewise.
39321         * tests/uninorm/test-u8-nfkd.c: Likewise.
39322         * tests/uninorm/test-u8-normcmp.c: Likewise.
39323         * tests/uninorm/test-u8-normcoll.c: Likewise.
39324         * tests/uninorm/test-u16-nfc.c: Likewise.
39325         * tests/uninorm/test-u16-nfd.c: Likewise.
39326         * tests/uninorm/test-u16-nfkc.c: Likewise.
39327         * tests/uninorm/test-u16-nfkd.c: Likewise.
39328         * tests/uninorm/test-u16-normcmp.c: Likewise.
39329         * tests/uninorm/test-u16-normcoll.c: Likewise.
39330         * tests/uninorm/test-u32-nfc.c: Likewise.
39331         * tests/uninorm/test-u32-nfd.c: Likewise.
39332         * tests/uninorm/test-u32-nfkc.c: Likewise.
39333         * tests/uninorm/test-u32-nfkd.c: Likewise.
39334         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39335         * tests/uninorm/test-u32-normcmp.c: Likewise.
39336         * tests/uninorm/test-u32-normcoll.c: Likewise.
39337         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39338         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39339         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39340         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39341         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39342         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39343         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39344         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39345         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39346         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39347         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39348         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39349         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39350         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39351         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39352         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39353         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39354         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39355         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39356         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39357         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39358         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39359         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39360         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39361         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39362         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39363         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39364         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39365         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39366         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39367         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39368         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39369         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39370         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39371         * tests/uniwidth/test-u8-width.c: Likewise.
39372         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39373         * tests/uniwidth/test-u16-width.c: Likewise.
39374         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39375         * tests/uniwidth/test-u32-width.c: Likewise.
39376         * tests/uniwidth/test-uc_width.c: Likewise.
39377         * tests/uniwidth/test-uc_width2.c: Likewise.
39378         * modules/acl-tests (Files): Add tests/macros.h.
39379         * modules/areadlink-tests (Files): Likewise.
39380         * modules/areadlink-with-size-tests (Files): Likewise.
39381         * modules/areadlinkat-tests (Files): Likewise.
39382         * modules/areadlinkat-with-size-tests (Files): Likewise.
39383         * modules/argmatch-tests (Files): Likewise.
39384         * modules/argv-iter-tests (Files): Likewise.
39385         * modules/array-list-tests (Files): Likewise.
39386         * modules/array-mergesort-tests (Files): Likewise.
39387         * modules/array-oset-tests (Files): Likewise.
39388         * modules/avltree-list-tests (Files): Likewise.
39389         * modules/avltree-oset-tests (Files): Likewise.
39390         * modules/avltreehash-list-tests (Files): Likewise.
39391         * modules/base64-tests (Files): Likewise.
39392         * modules/binary-io-tests (Files): Likewise.
39393         * modules/bitrotate-tests (Files): Likewise.
39394         * modules/btowc-tests (Files): Likewise.
39395         * modules/byteswap-tests (Files): Likewise.
39396         * modules/c-ctype-tests (Files): Likewise.
39397         * modules/c-stack-tests (Files): Likewise.
39398         * modules/c-strcase-tests (Files): Likewise.
39399         * modules/c-strcasestr-tests (Files): Likewise.
39400         * modules/c-strstr-tests (Files): Likewise.
39401         * modules/canonicalize-lgpl-tests (Files): Likewise.
39402         * modules/canonicalize-tests (Files): Likewise.
39403         * modules/carray-list-tests (Files): Likewise.
39404         * modules/ceilf-tests (Files): Likewise.
39405         * modules/ceill-tests (Files): Likewise.
39406         * modules/chown-tests (Files): Likewise.
39407         * modules/cloexec-tests (Files): Likewise.
39408         * modules/copy-file-tests (Files): Likewise.
39409         * modules/count-one-bits-tests (Files): Likewise.
39410         * modules/dprintf-posix-tests (Files): Likewise.
39411         * modules/dup2-tests (Files): Likewise.
39412         * modules/dup3-tests (Files): Likewise.
39413         * modules/duplocale-tests (Files): Likewise.
39414         * modules/fbufmode-tests (Files): Likewise.
39415         * modules/fchdir-tests (Files): Likewise.
39416         * modules/fcntl-safer-tests (Files): Likewise.
39417         * modules/fcntl-tests (Files): Likewise.
39418         * modules/fdopendir-tests (Files): Likewise.
39419         * modules/fdutimensat-tests (Files): Likewise.
39420         * modules/fflush-tests (Files): Likewise.
39421         * modules/filevercmp-tests (Files): Likewise.
39422         * modules/flock-tests (Files): Likewise.
39423         * modules/floorf-tests (Files): Likewise.
39424         * modules/floorl-tests (Files): Likewise.
39425         * modules/fnmatch-tests (Files): Likewise.
39426         * modules/fopen-safer-tests (Files): Likewise.
39427         * modules/fopen-tests (Files): Likewise.
39428         * modules/fpending-tests (Files): Likewise.
39429         * modules/fprintf-posix-tests (Files): Likewise.
39430         * modules/fpurge-tests (Files): Likewise.
39431         * modules/freadable-tests (Files): Likewise.
39432         * modules/freadahead-tests (Files): Likewise.
39433         * modules/freading-tests (Files): Likewise.
39434         * modules/freadptr-tests (Files): Likewise.
39435         * modules/freadseek-tests (Files): Likewise.
39436         * modules/freopen-tests (Files): Likewise.
39437         * modules/frexp-nolibm-tests (Files): Likewise.
39438         * modules/frexp-tests (Files): Likewise.
39439         * modules/frexpl-nolibm-tests (Files): Likewise.
39440         * modules/frexpl-tests (Files): Likewise.
39441         * modules/fseek-tests (Files): Likewise.
39442         * modules/fseeko-tests (Files): Likewise.
39443         * modules/fstrcmp-tests (Files): Likewise.
39444         * modules/fsync-tests (Files): Likewise.
39445         * modules/ftell-tests (Files): Likewise.
39446         * modules/ftello-tests (Files): Likewise.
39447         * modules/func-tests (Files): Likewise.
39448         * modules/futimens-tests (Files): Likewise.
39449         * modules/fwritable-tests (Files): Likewise.
39450         * modules/fwriting-tests (Files): Likewise.
39451         * modules/getcwd-tests (Files): Likewise.
39452         * modules/getdate-tests (Files): Likewise.
39453         * modules/getdelim-tests (Files): Likewise.
39454         * modules/getdtablesize-tests (Files): Likewise.
39455         * modules/getgroups-tests (Files): Likewise.
39456         * modules/getline-tests (Files): Likewise.
39457         * modules/getndelim2-tests (Files): Likewise.
39458         * modules/glob-tests (Files): Likewise.
39459         * modules/hash-tests (Files): Likewise.
39460         * modules/i-ring-tests (Files): Likewise.
39461         * modules/iconv-tests (Files): Likewise.
39462         * modules/iconv_open-utf-tests (Files): Likewise.
39463         * modules/idpriv-drop-tests (Files): Likewise.
39464         * modules/idpriv-droptemp-tests (Files): Likewise.
39465         * modules/inet_ntop-tests (Files): Likewise.
39466         * modules/inet_pton-tests (Files): Likewise.
39467         * modules/isblank-tests (Files): Likewise.
39468         * modules/isfinite-tests (Files): Likewise.
39469         * modules/isinf-tests (Files): Likewise.
39470         * modules/isnan-tests (Files): Likewise.
39471         * modules/isnand-nolibm-tests (Files): Likewise.
39472         * modules/isnand-tests (Files): Likewise.
39473         * modules/isnanf-nolibm-tests (Files): Likewise.
39474         * modules/isnanf-tests (Files): Likewise.
39475         * modules/isnanl-nolibm-tests (Files): Likewise.
39476         * modules/isnanl-tests (Files): Likewise.
39477         * modules/lchown-tests (Files): Likewise.
39478         * modules/ldexpl-tests (Files): Likewise.
39479         * modules/link-tests (Files): Likewise.
39480         * modules/linkat-tests (Files): Likewise.
39481         * modules/linked-list-tests (Files): Likewise.
39482         * modules/linkedhash-list-tests (Files): Likewise.
39483         * modules/localename-tests (Files): Likewise.
39484         * modules/lseek-tests (Files): Likewise.
39485         * modules/lstat-tests (Files): Likewise.
39486         * modules/mbmemcasecmp-tests (Files): Likewise.
39487         * modules/mbmemcasecoll-tests (Files): Likewise.
39488         * modules/mbrtowc-tests (Files): Likewise.
39489         * modules/mbscasecmp-tests (Files): Likewise.
39490         * modules/mbscasestr-tests (Files): Likewise.
39491         * modules/mbschr-tests (Files): Likewise.
39492         * modules/mbscspn-tests (Files): Likewise.
39493         * modules/mbsinit-tests (Files): Likewise.
39494         * modules/mbsncasecmp-tests (Files): Likewise.
39495         * modules/mbsnrtowcs-tests (Files): Likewise.
39496         * modules/mbspbrk-tests (Files): Likewise.
39497         * modules/mbspcasecmp-tests (Files): Likewise.
39498         * modules/mbsrchr-tests (Files): Likewise.
39499         * modules/mbsrtowcs-tests (Files): Likewise.
39500         * modules/mbsspn-tests (Files): Likewise.
39501         * modules/mbsstr-tests (Files): Likewise.
39502         * modules/memchr-tests (Files): Likewise.
39503         * modules/memchr2-tests (Files): Likewise.
39504         * modules/memcmp-tests (Files): Likewise.
39505         * modules/memmem-tests (Files): Likewise.
39506         * modules/memrchr-tests (Files): Likewise.
39507         * modules/mkdir-tests (Files): Likewise.
39508         * modules/mkfifo-tests (Files): Likewise.
39509         * modules/mkfifoat-tests (Files): Likewise.
39510         * modules/mknod-tests (Files): Likewise.
39511         * modules/nanosleep-tests (Files): Likewise.
39512         * modules/nl_langinfo-tests (Files): Likewise.
39513         * modules/obstack-printf-tests (Files): Likewise.
39514         * modules/open-tests (Files): Likewise.
39515         * modules/openat-tests (Files): Likewise.
39516         * modules/pipe-filter-gi-tests (Files): Likewise.
39517         * modules/pipe-filter-ii-tests (Files): Likewise.
39518         * modules/pipe2-tests (Files): Likewise.
39519         * modules/popen-safer-tests (Files): Likewise.
39520         * modules/popen-tests (Files): Likewise.
39521         * modules/posixtm-tests (Files): Likewise.
39522         * modules/pread-tests (Files): Likewise.
39523         * modules/printf-frexp-tests (Files): Likewise.
39524         * modules/printf-frexpl-tests (Files): Likewise.
39525         * modules/printf-posix-tests (Files): Likewise.
39526         * modules/priv-set-tests (Files): Likewise.
39527         * modules/quotearg-tests (Files): Likewise.
39528         * modules/random_r-tests (Files): Likewise.
39529         * modules/rawmemchr-tests (Files): Likewise.
39530         * modules/rbtree-list-tests (Files): Likewise.
39531         * modules/rbtree-oset-tests (Files): Likewise.
39532         * modules/rbtreehash-list-tests (Files): Likewise.
39533         * modules/readlink-tests (Files): Likewise.
39534         * modules/remove-tests (Files): Likewise.
39535         * modules/rename-tests (Files): Likewise.
39536         * modules/renameat-tests (Files): Likewise.
39537         * modules/rmdir-tests (Files): Likewise.
39538         * modules/round-tests (Files): Likewise.
39539         * modules/roundf-tests (Files): Likewise.
39540         * modules/roundl-tests (Files): Likewise.
39541         * modules/safe-alloc-tests (Files): Likewise.
39542         * modules/setenv-tests (Files): Likewise.
39543         * modules/sigaction-tests (Files): Likewise.
39544         * modules/signbit-tests (Files): Likewise.
39545         * modules/sleep-tests (Files): Likewise.
39546         * modules/snprintf-posix-tests (Files): Likewise.
39547         * modules/snprintf-tests (Files): Likewise.
39548         * modules/sprintf-posix-tests (Files): Likewise.
39549         * modules/stat-tests (Files): Likewise.
39550         * modules/stat-time-tests (Files): Likewise.
39551         * modules/strcasestr-tests (Files): Likewise.
39552         * modules/strchrnul-tests (Files): Likewise.
39553         * modules/strerror-tests (Files): Likewise.
39554         * modules/striconv-tests (Files): Likewise.
39555         * modules/striconveh-tests (Files): Likewise.
39556         * modules/striconveha-tests (Files): Likewise.
39557         * modules/strsignal-tests (Files): Likewise.
39558         * modules/strstr-tests (Files): Likewise.
39559         * modules/strtod-tests (Files): Likewise.
39560         * modules/strverscmp-tests (Files): Likewise.
39561         * modules/symlink-tests (Files): Likewise.
39562         * modules/symlinkat-tests (Files): Likewise.
39563         * modules/trunc-tests (Files): Likewise.
39564         * modules/truncf-tests (Files): Likewise.
39565         * modules/truncl-tests (Files): Likewise.
39566         * modules/uname-tests (Files): Likewise.
39567         * modules/unicase/cased-tests (Files): Likewise.
39568         * modules/unicase/ignorable-tests (Files): Likewise.
39569         * modules/unicase/locale-language-tests (Files): Likewise.
39570         * modules/unicase/tolower-tests (Files): Likewise.
39571         * modules/unicase/totitle-tests (Files): Likewise.
39572         * modules/unicase/toupper-tests (Files): Likewise.
39573         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39574         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39575         * modules/unicase/u8-casefold-tests (Files): Likewise.
39576         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39577         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39578         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39579         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39580         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39581         * modules/unicase/u8-tolower-tests (Files): Likewise.
39582         * modules/unicase/u8-totitle-tests (Files): Likewise.
39583         * modules/unicase/u8-toupper-tests (Files): Likewise.
39584         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39585         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39586         * modules/unicase/u16-casefold-tests (Files): Likewise.
39587         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39588         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39589         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39590         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39591         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39592         * modules/unicase/u16-tolower-tests (Files): Likewise.
39593         * modules/unicase/u16-totitle-tests (Files): Likewise.
39594         * modules/unicase/u16-toupper-tests (Files): Likewise.
39595         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39596         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39597         * modules/unicase/u32-casefold-tests (Files): Likewise.
39598         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39599         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39600         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39601         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39602         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39603         * modules/unicase/u32-tolower-tests (Files): Likewise.
39604         * modules/unicase/u32-totitle-tests (Files): Likewise.
39605         * modules/unicase/u32-toupper-tests (Files): Likewise.
39606         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39607         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39608         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39609         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39610         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39611         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39612         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39613         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39614         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39615         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39616         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39617         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39618         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39619         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39620         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39621         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39622         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39623         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39624         * modules/unictype/block-list-tests (Files): Likewise.
39625         * modules/unictype/block-of-tests (Files): Likewise.
39626         * modules/unictype/block-test-tests (Files): Likewise.
39627         * modules/unictype/category-C-tests (Files): Likewise.
39628         * modules/unictype/category-Cc-tests (Files): Likewise.
39629         * modules/unictype/category-Cf-tests (Files): Likewise.
39630         * modules/unictype/category-Cn-tests (Files): Likewise.
39631         * modules/unictype/category-Co-tests (Files): Likewise.
39632         * modules/unictype/category-Cs-tests (Files): Likewise.
39633         * modules/unictype/category-L-tests (Files): Likewise.
39634         * modules/unictype/category-Ll-tests (Files): Likewise.
39635         * modules/unictype/category-Lm-tests (Files): Likewise.
39636         * modules/unictype/category-Lo-tests (Files): Likewise.
39637         * modules/unictype/category-Lt-tests (Files): Likewise.
39638         * modules/unictype/category-Lu-tests (Files): Likewise.
39639         * modules/unictype/category-M-tests (Files): Likewise.
39640         * modules/unictype/category-Mc-tests (Files): Likewise.
39641         * modules/unictype/category-Me-tests (Files): Likewise.
39642         * modules/unictype/category-Mn-tests (Files): Likewise.
39643         * modules/unictype/category-N-tests (Files): Likewise.
39644         * modules/unictype/category-Nd-tests (Files): Likewise.
39645         * modules/unictype/category-Nl-tests (Files): Likewise.
39646         * modules/unictype/category-No-tests (Files): Likewise.
39647         * modules/unictype/category-P-tests (Files): Likewise.
39648         * modules/unictype/category-Pc-tests (Files): Likewise.
39649         * modules/unictype/category-Pd-tests (Files): Likewise.
39650         * modules/unictype/category-Pe-tests (Files): Likewise.
39651         * modules/unictype/category-Pf-tests (Files): Likewise.
39652         * modules/unictype/category-Pi-tests (Files): Likewise.
39653         * modules/unictype/category-Po-tests (Files): Likewise.
39654         * modules/unictype/category-Ps-tests (Files): Likewise.
39655         * modules/unictype/category-S-tests (Files): Likewise.
39656         * modules/unictype/category-Sc-tests (Files): Likewise.
39657         * modules/unictype/category-Sk-tests (Files): Likewise.
39658         * modules/unictype/category-Sm-tests (Files): Likewise.
39659         * modules/unictype/category-So-tests (Files): Likewise.
39660         * modules/unictype/category-Z-tests (Files): Likewise.
39661         * modules/unictype/category-Zl-tests (Files): Likewise.
39662         * modules/unictype/category-Zp-tests (Files): Likewise.
39663         * modules/unictype/category-Zs-tests (Files): Likewise.
39664         * modules/unictype/category-and-not-tests (Files): Likewise.
39665         * modules/unictype/category-and-tests (Files): Likewise.
39666         * modules/unictype/category-byname-tests (Files): Likewise.
39667         * modules/unictype/category-name-tests (Files): Likewise.
39668         * modules/unictype/category-none-tests (Files): Likewise.
39669         * modules/unictype/category-of-tests (Files): Likewise.
39670         * modules/unictype/category-or-tests (Files): Likewise.
39671         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39672         * modules/unictype/combining-class-tests (Files): Likewise.
39673         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39674         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39675         * modules/unictype/ctype-blank-tests (Files): Likewise.
39676         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39677         * modules/unictype/ctype-digit-tests (Files): Likewise.
39678         * modules/unictype/ctype-graph-tests (Files): Likewise.
39679         * modules/unictype/ctype-lower-tests (Files): Likewise.
39680         * modules/unictype/ctype-print-tests (Files): Likewise.
39681         * modules/unictype/ctype-punct-tests (Files): Likewise.
39682         * modules/unictype/ctype-space-tests (Files): Likewise.
39683         * modules/unictype/ctype-upper-tests (Files): Likewise.
39684         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39685         * modules/unictype/decimal-digit-tests (Files): Likewise.
39686         * modules/unictype/digit-tests (Files): Likewise.
39687         * modules/unictype/mirror-tests (Files): Likewise.
39688         * modules/unictype/numeric-tests (Files): Likewise.
39689         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39690         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39691         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39692         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39693         Likewise.
39694         * modules/unictype/property-bidi-block-separator-tests (Files):
39695         Likewise.
39696         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39697         Likewise.
39698         * modules/unictype/property-bidi-common-separator-tests (Files):
39699         Likewise.
39700         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39701         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39702         Likewise.
39703         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39704         Likewise.
39705         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39706         Likewise.
39707         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39708         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39709         Likewise.
39710         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39711         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39712         Likewise.
39713         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39714         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39715         * modules/unictype/property-bidi-segment-separator-tests (Files):
39716         Likewise.
39717         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39718         * modules/unictype/property-byname-tests (Files): Likewise.
39719         * modules/unictype/property-combining-tests (Files): Likewise.
39720         * modules/unictype/property-composite-tests (Files): Likewise.
39721         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39722         * modules/unictype/property-dash-tests (Files): Likewise.
39723         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39724         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39725         Likewise.
39726         * modules/unictype/property-deprecated-tests (Files): Likewise.
39727         * modules/unictype/property-diacritic-tests (Files): Likewise.
39728         * modules/unictype/property-extender-tests (Files): Likewise.
39729         * modules/unictype/property-format-control-tests (Files): Likewise.
39730         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39731         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39732         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39733         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39734         * modules/unictype/property-hyphen-tests (Files): Likewise.
39735         * modules/unictype/property-id-continue-tests (Files): Likewise.
39736         * modules/unictype/property-id-start-tests (Files): Likewise.
39737         * modules/unictype/property-ideographic-tests (Files): Likewise.
39738         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39739         * modules/unictype/property-ids-trinary-operator-tests (Files):
39740         Likewise.
39741         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39742         * modules/unictype/property-iso-control-tests (Files): Likewise.
39743         * modules/unictype/property-join-control-tests (Files): Likewise.
39744         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39745         * modules/unictype/property-line-separator-tests (Files): Likewise.
39746         * modules/unictype/property-logical-order-exception-tests (Files):
39747         Likewise.
39748         * modules/unictype/property-lowercase-tests (Files): Likewise.
39749         * modules/unictype/property-math-tests (Files): Likewise.
39750         * modules/unictype/property-non-break-tests (Files): Likewise.
39751         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39752         * modules/unictype/property-numeric-tests (Files): Likewise.
39753         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39754         * modules/unictype/property-other-default-ignorable-code-point-tests
39755         (Files): Likewise.
39756         * modules/unictype/property-other-grapheme-extend-tests (Files):
39757         Likewise.
39758         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39759         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39760         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39761         * modules/unictype/property-other-math-tests (Files): Likewise.
39762         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39763         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39764         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39765         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39766         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39767         * modules/unictype/property-private-use-tests (Files): Likewise.
39768         * modules/unictype/property-punctuation-tests (Files): Likewise.
39769         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39770         * modules/unictype/property-radical-tests (Files): Likewise.
39771         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39772         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39773         * modules/unictype/property-space-tests (Files): Likewise.
39774         * modules/unictype/property-terminal-punctuation-tests (Files):
39775         Likewise.
39776         * modules/unictype/property-test-tests (Files): Likewise.
39777         * modules/unictype/property-titlecase-tests (Files): Likewise.
39778         * modules/unictype/property-unassigned-code-value-tests (Files):
39779         Likewise.
39780         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39781         * modules/unictype/property-uppercase-tests (Files): Likewise.
39782         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39783         * modules/unictype/property-white-space-tests (Files): Likewise.
39784         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39785         * modules/unictype/property-xid-start-tests (Files): Likewise.
39786         * modules/unictype/property-zero-width-tests (Files): Likewise.
39787         * modules/unictype/scripts-tests (Files): Likewise.
39788         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39789         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39790         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39791         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39792         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39793         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39794         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39795         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39796         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39797         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39798         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39799         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39800         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39801         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39802         * modules/uninorm/composition-tests (Files): Likewise.
39803         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39804         * modules/uninorm/decomposition-tests (Files): Likewise.
39805         * modules/uninorm/filter-tests (Files): Likewise.
39806         * modules/uninorm/nfc-tests (Files): Likewise.
39807         * modules/uninorm/nfd-tests (Files): Likewise.
39808         * modules/uninorm/nfkc-tests (Files): Likewise.
39809         * modules/uninorm/nfkd-tests (Files): Likewise.
39810         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39811         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39812         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39813         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39814         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39815         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39816         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39817         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39818         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39819         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39820         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39821         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39822         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39823         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39824         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39825         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39826         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39827         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39828         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39829         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39830         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39831         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39832         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39833         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39834         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39835         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39836         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39837         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39838         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39839         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39840         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39841         * modules/uniwidth/u8-width-tests (Files): Likewise.
39842         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39843         * modules/uniwidth/u16-width-tests (Files): Likewise.
39844         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39845         * modules/uniwidth/u32-width-tests (Files): Likewise.
39846         * modules/uniwidth/width-tests (Files): Likewise.
39847         * modules/unlink-tests (Files): Likewise.
39848         * modules/unsetenv-tests (Files): Likewise.
39849         * modules/usleep-tests (Files): Likewise.
39850         * modules/utimens-tests (Files): Likewise.
39851         * modules/utimensat-tests (Files): Likewise.
39852         * modules/vasnprintf-posix-tests (Files): Likewise.
39853         * modules/vasnprintf-tests (Files): Likewise.
39854         * modules/vasprintf-posix-tests (Files): Likewise.
39855         * modules/vasprintf-tests (Files): Likewise.
39856         * modules/vdprintf-posix-tests (Files): Likewise.
39857         * modules/vfprintf-posix-tests (Files): Likewise.
39858         * modules/vprintf-posix-tests (Files): Likewise.
39859         * modules/vsnprintf-posix-tests (Files): Likewise.
39860         * modules/vsnprintf-tests (Files): Likewise.
39861         * modules/vsprintf-posix-tests (Files): Likewise.
39862         * modules/wcrtomb-tests (Files): Likewise.
39863         * modules/wcsnrtombs-tests (Files): Likewise.
39864         * modules/wcsrtombs-tests (Files): Likewise.
39865         * modules/wctype-tests (Files): Likewise.
39866         * modules/wcwidth-tests (Files): Likewise.
39867         * modules/xmemdup0-tests (Files): Likewise.
39868         * modules/xprintf-posix-tests (Files): Likewise.
39869         * modules/xvasprintf-tests (Files): Likewise.
39870
39871 2009-12-24  Eric Blake  <ebb9@byu.net>
39872
39873         test-nanosleep: fix typo
39874         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39875         patch.
39876         Reported by Bruno Haible.
39877
39878 2009-12-24  Bruno Haible  <bruno@clisp.org>
39879
39880         Reduce namespace pollution on glibc systems.
39881         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39882         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39883         systems.
39884         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39885         <getopt.h> on glibc systems.
39886         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39887         systems.
39888         * lib/fcntl.c: Include <unistd.h> here instead.
39889
39890 2009-12-24  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39893
39894 2009-12-24  Eric Blake  <ebb9@byu.net>
39895
39896         tests: add signature checks
39897         * tests/signature.h (SIGNATURE_CHECK): New file.
39898         * modules/atexit-tests (Files): Use it.
39899         * modules/btowc-tests (Files): Likewise.
39900         * modules/canonicalize-lgpl-tests (Files): Likewise.
39901         * modules/ceilf-tests (Files): Likewise.
39902         * modules/ceill-tests (Files): Likewise.
39903         * modules/chown-tests (Files): Likewise.
39904         * modules/dprintf-posix-tests (Files): Likewise.
39905         * modules/dup2-tests (Files): Likewise.
39906         * modules/dup3-tests (Files): Likewise.
39907         * modules/duplocale-tests (Files): Likewise.
39908         * modules/fchdir-tests (Files): Likewise.
39909         * modules/fcntl-tests (Files): Likewise.
39910         * modules/fdopendir-tests (Files): Likewise.
39911         * modules/fflush-tests (Files): Likewise.
39912         * modules/flock-tests (Files): Likewise.
39913         * modules/floorf-tests (Files): Likewise.
39914         * modules/floorl-tests (Files): Likewise.
39915         * modules/fnmatch-tests (Files): Likewise.
39916         * modules/fopen-tests (Files): Likewise.
39917         * modules/fprintf-posix-tests (Files): Likewise.
39918         * modules/freopen-tests (Files): Likewise.
39919         * modules/frexp-nolibm-tests (Files): Likewise.
39920         * modules/frexp-tests (Files): Likewise.
39921         * modules/frexpl-nolibm-tests (Files): Likewise.
39922         * modules/frexpl-tests (Files): Likewise.
39923         * modules/fseek-tests (Files): Likewise.
39924         * modules/fseeko-tests (Files): Likewise.
39925         * modules/fsync-tests (Files): Likewise.
39926         * modules/ftell-tests (Files): Likewise.
39927         * modules/ftello-tests (Files): Likewise.
39928         * modules/futimens-tests (Files): Likewise.
39929         * modules/getaddrinfo-tests (Files): Likewise.
39930         * modules/getcwd-tests (Files): Likewise.
39931         * modules/getdelim-tests (Files): Likewise.
39932         * modules/getdtablesize-tests (Files): Likewise.
39933         * modules/getgroups-tests (Files): Likewise.
39934         * modules/gethostname-tests (Files): Likewise.
39935         * modules/getline-tests (Files): Likewise.
39936         * modules/getopt-posix-tests (Files): Likewise.
39937         * modules/gettimeofday-tests (Files): Likewise.
39938         * modules/glob-tests (Files): Likewise.
39939         * modules/iconv-tests (Files): Likewise.
39940         * modules/inet_ntop-tests (Files): Likewise.
39941         * modules/inet_pton-tests (Files): Likewise.
39942         * modules/isblank-tests (Files): Likewise.
39943         * modules/lchown-tests (Files): Likewise.
39944         * modules/ldexpl-tests (Files): Likewise.
39945         * modules/link-tests (Files): Likewise.
39946         * modules/linkat-tests (Files): Likewise.
39947         * modules/lseek-tests (Files): Likewise.
39948         * modules/lstat-tests (Files): Likewise.
39949         * modules/mbrtowc-tests (Files): Likewise.
39950         * modules/mbsinit-tests (Files): Likewise.
39951         * modules/mbsnrtowcs-tests (Files): Likewise.
39952         * modules/mbsrtowcs-tests (Files): Likewise.
39953         * modules/memchr-tests (Files): Likewise.
39954         * modules/memcmp-tests (Files): Likewise.
39955         * modules/memmem-tests (Files): Likewise.
39956         * modules/memrchr-tests (Files): Likewise.
39957         * modules/mkdir-tests (Files): Likewise.
39958         * modules/mkfifo-tests (Files): Likewise.
39959         * modules/mkfifoat-tests (Files): Likewise.
39960         * modules/mknod-tests (Files): Likewise.
39961         * modules/nanosleep-tests (Files): Likewise.
39962         * modules/nl_langinfo-tests (Files): Likewise.
39963         * modules/obstack-printf-tests (Files): Likewise.
39964         * modules/open-tests (Files): Likewise.
39965         * modules/openat-tests (Files): Likewise.
39966         * modules/perror-tests (Files): Likewise.
39967         * modules/pipe2-tests (Files): Likewise.
39968         * modules/poll-tests (Files): Likewise.
39969         * modules/popen-tests (Files): Likewise.
39970         * modules/posix_spawn-tests (Files): Likewise.
39971         * modules/posix_spawnp-tests (Files): Likewise.
39972         * modules/pread-tests (Files): Likewise.
39973         * modules/printf-posix-tests (Files): Likewise.
39974         * modules/pty-tests (Files): Likewise.
39975         * modules/random_r-tests (Files): Likewise.
39976         * modules/rawmemchr-tests (Files): Likewise.
39977         * modules/readlink-tests (Files): Likewise.
39978         * modules/remove-tests (Files): Likewise.
39979         * modules/rename-tests (Files): Likewise.
39980         * modules/renameat-tests (Files): Likewise.
39981         * modules/rmdir-tests (Files): Likewise.
39982         * modules/round-tests (Files): Likewise.
39983         * modules/roundf-tests (Files): Likewise.
39984         * modules/roundl-tests (Files): Likewise.
39985         * modules/select-tests (Files): Likewise.
39986         * modules/setenv-tests (Files): Likewise.
39987         * modules/sigaction-tests (Files): Likewise.
39988         * modules/sleep-tests (Files): Likewise.
39989         * modules/snprintf-posix-tests (Files): Likewise.
39990         * modules/snprintf-tests (Files): Likewise.
39991         * modules/sprintf-posix-tests (Files): Likewise.
39992         * modules/stat-tests (Files): Likewise.
39993         * modules/strcasestr-tests (Files): Likewise.
39994         * modules/strchrnul-tests (Files): Likewise.
39995         * modules/strerror-tests (Files): Likewise.
39996         * modules/strsignal-tests (Files): Likewise.
39997         * modules/strstr-tests (Files): Likewise.
39998         * modules/strtod-tests (Files): Likewise.
39999         * modules/strverscmp-tests (Files): Likewise.
40000         * modules/symlink-tests (Files): Likewise.
40001         * modules/symlinkat-tests (Files): Likewise.
40002         * modules/times-tests (Files): Likewise.
40003         * modules/trunc-tests (Files): Likewise.
40004         * modules/truncf-tests (Files): Likewise.
40005         * modules/truncl-tests (Files): Likewise.
40006         * modules/tsearch-tests (Files): Likewise.
40007         * modules/uname-tests (Files): Likewise.
40008         * modules/unlink-tests (Files): Likewise.
40009         * modules/unsetenv-tests (Files): Likewise.
40010         * modules/usleep-tests (Files): Likewise.
40011         * modules/utimensat-tests (Files): Likewise.
40012         * modules/vasprintf-tests (Files): Likewise.
40013         * modules/vdprintf-posix-tests (Files): Likewise.
40014         * modules/vfprintf-posix-tests (Files): Likewise.
40015         * modules/vprintf-posix-tests (Files): Likewise.
40016         * modules/vsnprintf-posix-tests (Files): Likewise.
40017         * modules/vsnprintf-tests (Files): Likewise.
40018         * modules/vsprintf-posix-tests (Files): Likewise.
40019         * modules/wcrtomb-tests (Files): Likewise.
40020         * modules/wcsnrtombs-tests (Files): Likewise.
40021         * modules/wcsrtombs-tests (Files): Likewise.
40022         * modules/wcwidth-tests (Files): Likewise.
40023         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40024         * tests/test-isinf.c (isinf): Likewise.
40025         * tests/test-isnan.c (isnan): Likewise.
40026         * tests/test-signbit.c (signbit): Likewise.
40027         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40028         declaration, either as macro or with correct signature.
40029         (select): Ensure function under test is declared with correct
40030         signature in correct header.
40031         * tests/test-atexit.c (atexit): Likewise.
40032         * tests/test-btowc.c (btowc): Likewise.
40033         * tests/test-canonicalize-lgpl.c (realpath)
40034         (canonicalize_file_name): Likewise.
40035         * tests/test-ceilf1.c (ceilf): Likewise.
40036         * tests/test-ceill.c (ceill): Likewise.
40037         * tests/test-chown.c (chown): Likewise.
40038         * tests/test-dprintf-posix.c (dprintf): Likewise.
40039         * tests/test-dup2.c (dup2): Likewise.
40040         * tests/test-dup3.c (dup3): Likewise.
40041         * tests/test-duplocale.c (duplocale): Likewise.
40042         * tests/test-fchdir.c (fchdir): Likewise.
40043         * tests/test-fchownat.c (fchownat): Likewise.
40044         * tests/test-fcntl.c (fcntl): Likewise.
40045         * tests/test-fdopendir.c (fdopendir): Likewise.
40046         * tests/test-fflush.c (fflush): Likewise.
40047         * tests/test-flock.c (flock): Likewise.
40048         * tests/test-floorf1.c (floorf): Likewise.
40049         * tests/test-floorl.c (floorl): Likewise.
40050         * tests/test-fnmatch.c (fnmatch): Likewise.
40051         * tests/test-fopen.c (fopen): Likewise.
40052         * tests/test-fprintf-posix.c (fprintf): Likewise.
40053         * tests/test-freopen.c (freopen): Likewise.
40054         * tests/test-frexp.c (frexp): Likewise.
40055         * tests/test-frexpl.c (frexpl): Likewise.
40056         * tests/test-fseek.c (fseek): Likewise.
40057         * tests/test-fseeko.c (fseeko): Likewise.
40058         * tests/test-fstatat.c (fstatat): Likewise.
40059         * tests/test-fsync.c (fsync): Likewise.
40060         * tests/test-ftell.c (ftell): Likewise.
40061         * tests/test-ftello.c (ftello): Likewise.
40062         * tests/test-futimens.c (futimens): Likewise.
40063         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40064         (gai_strerror): Likewise.
40065         * tests/test-getcwd.c (getcwd): Likewise.
40066         * tests/test-getdelim.c (getdelim): Likewise.
40067         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40068         * tests/test-getgroups.c (getgroups): Likewise.
40069         * tests/test-gethostname.c (gethostname): Likewise.
40070         * tests/test-getline.c (getline): Likewise.
40071         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40072         Likewise.
40073         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40074         * tests/test-glob.c (glob, globfree): Likewise.
40075         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40076         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40077         * tests/test-inet_pton.c (inet_pton): Likewise.
40078         * tests/test-isblank.c (isblank): Likewise.
40079         * tests/test-lchown.c (lchown): Likewise.
40080         * tests/test-ldexpl.c (ldexpl): Likewise.
40081         * tests/test-link.c (link): Likewise.
40082         * tests/test-linkat.c (linkat): Likewise.
40083         * tests/test-lseek.c (lseek): Likewise.
40084         * tests/test-lstat.c (lstat): Likewise.
40085         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40086         * tests/test-mbsinit.c (mbsinit): Likewise.
40087         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40088         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40089         * tests/test-memchr.c (memchr): Likewise.
40090         * tests/test-memcmp.c (memcmp): Likewise.
40091         * tests/test-memmem.c (memmem): Likewise.
40092         * tests/test-memrchr.c (memrchr): Likewise.
40093         * tests/test-mkdir.c (mkdir): Likewise.
40094         * tests/test-mkdirat.c (mkdirat): Likewise.
40095         * tests/test-mkfifo.c (mkfifo): Likewise.
40096         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40097         * tests/test-mknod.c (mknod): Likewise.
40098         * tests/test-nanosleep.c (nanosleep): Likewise.
40099         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40100         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40101         Likewise.
40102         * tests/test-open.c (open): Likewise.
40103         * tests/test-openat.c (openat): Likewise.
40104         * tests/test-perror.c (perror): Likewise.
40105         * tests/test-pipe2.c (pipe2): Likewise.
40106         * tests/test-poll.c (poll): Likewise.
40107         * tests/test-popen.c (popen, pclose): Likewise.
40108         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40109         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40110         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40111         (posix_spawn_file_actions_destroy)
40112         (posix_spawn_file_actions_addclose)
40113         (posix_spawn_file_actions_addopen)
40114         (posix_spawn_file_actions_adddup2): Likewise.
40115         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40116         * tests/test-pread.c (pread): Likewise.
40117         * tests/test-printf-posix.c (printf): Likewise.
40118         * tests/test-pty.c (openpty, forkpty): Likewise.
40119         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40120         (random_r): Likewise.
40121         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40122         * tests/test-readlink.c (readlink): Likewise.
40123         * tests/test-remove.c (remove): Likewise.
40124         * tests/test-rename.c (rename): Likewise.
40125         * tests/test-renameat.c (renameat): Likewise.
40126         * tests/test-rmdir.c (rmdir): Likewise.
40127         * tests/test-round1.c (round): Likewise.
40128         * tests/test-roundf1.c (roundf): Likewise.
40129         * tests/test-roundl.c (roundl): Likewise.
40130         * tests/test-setenv.c (setenv): Likewise.
40131         * tests/test-sigaction.c (sigaction): Likewise.
40132         * tests/test-sleep.c (sleep): Likewise.
40133         * tests/test-snprintf.c (snprintf): Likewise.
40134         * tests/test-sprintf-posix.c (sprintf): Likewise.
40135         * tests/test-stat.c (stat): Likewise.
40136         * tests/test-stpncpy.c (stpncpy): Likewise.
40137         * tests/test-strcasestr.c (strcasestr): Likewise.
40138         * tests/test-strchrnul.c (strchrnul): Likewise.
40139         * tests/test-strerror.c (strerror): Likewise.
40140         * tests/test-strsignal.c (strsignal): Likewise.
40141         * tests/test-strstr.c (strstr): Likewise.
40142         * tests/test-strtod.c (strtod): Likewise.
40143         * tests/test-strverscmp.c (strverscmp): Likewise.
40144         * tests/test-symlink.c (symlink): Likewise.
40145         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40146         * tests/test-times.c (times): Likewise.
40147         * tests/test-trunc1.c (trunc): Likewise.
40148         * tests/test-truncf1.c (truncf): Likewise.
40149         * tests/test-truncl.c (truncl): Likewise.
40150         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40151         Likewise.
40152         * tests/test-uname.c (uname): Likewise.
40153         * tests/test-unlink.c (unlink): Likewise.
40154         * tests/test-unlinkat.c (unlinkat): Likewise.
40155         * tests/test-unsetenv.c (unsetenv): Likewise.
40156         * tests/test-usleep.c (usleep): Likewise.
40157         * tests/test-utimensat.c (utimensat): Likewise.
40158         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40159         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40160         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40161         * tests/test-vprintf-posix.c (vprintf): Likewise.
40162         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40163         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40164         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40165         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40166         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40167         * tests/test-wcwidth.c (wcwidth): Likewise.
40168
40169         build: pull in conditional headers during GNULIB_POSIXCHECK
40170         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40171         definitions from any conditionally-included headers.
40172         * lib/stdlib.in.h (includes): Likewise.
40173         * lib/unistd.in.h (includes): Likewise.
40174
40175 2009-12-24  Bruno Haible  <bruno@clisp.org>
40176
40177         * tests/test-argv-iter.c: Include header file being tested immediately
40178         after config.h.
40179         * tests/test-base64.c: Likewise.
40180         * tests/test-flock.c: Likewise.
40181         * tests/test-fsync.c: Likewise.
40182         * tests/test-getdate.c: Likewise.
40183         * tests/test-getndelim2.c: Likewise.
40184         * tests/test-isfinite.c: Likewise.
40185         * tests/test-isinf.c: Likewise.
40186         * tests/test-strerror.c: Likewise.
40187         * tests/test-strsignal.c: Likewise.
40188
40189 2009-12-23  Eric Blake  <ebb9@byu.net>
40190
40191         unistd: work around cygwin bug
40192         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40193         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40194         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40195
40196 2009-12-23  Bruno Haible  <bruno@clisp.org>
40197
40198         localename: More tests.
40199         * tests/test-localename.c (SIZEOF): New macro.
40200         (categories): New variable.
40201         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40202         test_locale_name_default): Add test w.r.t. thread locale.
40203         (test_locale_name_thread): New function.
40204         (main): Invoke it.
40205
40206         localename: Make aware of thread locale.
40207         * lib/localename.h (gl_locale_name_thread): New declaration.
40208         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40209         behaviour with respect to thread locale.
40210         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40211         <langinfo.h>, glthread/lock.h.
40212         (SIZE_BITS): New macro.
40213         (string_hash): New function.
40214         (struct hash_node): New type.
40215         (HASH_TABLE_SIZE): New macro.
40216         (struniq_hash_table, struniq_lock): New variables.
40217         (struniq): New function.
40218         (gl_locale_name_thread): New function.
40219         (gl_locale_name): Invoke it.
40220         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40221         * modules/localename (Depends-on): Add lock.
40222         Reported by Mike Gran <spk121@yahoo.com>.
40223
40224 2009-12-23  Eric Blake  <ebb9@byu.net>
40225
40226         va-args: new module
40227         * modules/va-args: New file.
40228         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40229         * MODULES.html.sh (Core language properties): Mention it.
40230
40231         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40232         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40233         named alias for __attribute__((__unused__)).
40234         * lib/chown.c: Update client.
40235         * lib/fchmodat.c: Likewise.
40236         * lib/fts.c: Likewise.
40237         * lib/getdate.y: Likewise.
40238         * lib/getgroups.c: Likewise.
40239         * lib/getopt.c: Likewise.
40240         * lib/getugroups.c: Likewise.
40241         * lib/mkdir.c: Likewise.
40242         * lib/mkfifo.c: Likewise.
40243         * lib/mkfifoat.c: Likewise.
40244         * lib/mknod.c: Likewise.
40245         * lib/mknodat.c: Likewise.
40246         * lib/readlink.c: Likewise.
40247         * lib/se-context.in.h: Likewise.
40248         * lib/se-selinux.in.h: Likewise.
40249         * lib/sockets.c: Likewise.
40250         * lib/symlink.c: Likewise.
40251         * lib/symlinkat.c: Likewise.
40252         * lib/unicodeio.c: Likewise.
40253         * lib/unistr.h: Likewise.
40254         * tests/test-areadlink.c: Likewise.
40255         * tests/test-areadlinkat.c: Likewise.
40256         * tests/test-filenamecat.c: Likewise.
40257         * tests/test-fseeko.c: Likewise.
40258         * tests/test-ftello.c: Likewise.
40259         * tests/test-getdate.c: Likewise.
40260         * tests/test-getgroups.c: Likewise.
40261         * tests/test-gethostname.c: Likewise.
40262         * tests/test-quotearg.c: Likewise.
40263         * tests/test-version-etc.c: Likewise.
40264         * tests/test-xalloc-die.c: Likewise.
40265         * tests/test-xfprintf-posix.c: Likewise.
40266         * tests/test-xprintf-posix.c: Likewise.
40267         * tests/test-xvasprintf.c: Likewise.
40268
40269         tests: avoid compiler warnings
40270         * tests/test-fcntl.c (main): Delete unused parameters.
40271         * tests/test-freopen-safer.c (main): Likewise.
40272         * tests/test-xalloc-die.c (main): Mark unused parameters.
40273         * tests/test-fseeko.c (main): Likewise.
40274         * tests/test-ftello.c (main): Likewise.
40275         * tests/test-nanosleep.c (main): Avoid declaration warning.
40276         * tests/test-sleep.c (main): Likewise.
40277         * tests/test-unsetenv.c (main): Silence warning about string
40278         literal.
40279         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40280
40281 2009-12-23  Bruno Haible  <bruno@clisp.org>
40282
40283         * tests/test-localename.c (test_locale_name): New function, extracted
40284         from main. Also test mixed situations.
40285         (test_locale_name_posix, test_locale_name_environ,
40286         test_locale_name_default): New functions.
40287         (main): Invoke them all.
40288         * modules/localename-tests (configure.ac): Test for newlocale.
40289
40290 2009-12-23  Bruno Haible  <bruno@clisp.org>
40291
40292         unistd: Ensure getcwd gets declared before being overridden.
40293         * lib/unistd.in.h: Conditionally include <io.h>.
40294
40295 2009-12-22  Bruno Haible  <bruno@clisp.org>
40296
40297         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40298         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40299         (gl_WCHAR_H): Invoke it.
40300         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40301         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40302         Reported by Karl Berry <karl@freefriends.org>.
40303
40304 2009-12-22  Eric Blake  <ebb9@byu.net>
40305
40306         math, unistd: avoid redundant includes
40307         * lib/math.in.h (isnan): No need to re-include <math.h>.
40308         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40309
40310         getsubopt: work around cygwin bug
40311         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40312         avoid conflicting with system getsubopt.
40313         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40314         bug.
40315
40316         getopt: synchronize from glibc
40317         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40318         parameter order.  Adjust all callers.
40319         (_getopt_internal_r, main): Adjust quoting in error messages.
40320         Drop considerations for outdated POSIX 1003.2 error message.
40321         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40322         callers.
40323         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40324
40325         test-getopt: test stderr behavior
40326         * modules/getopt-posix-tests (Depends-on): Add dup2.
40327         * tests/test-getopt.c (ASSERT): Avoid stderr.
40328         (main): Move stderr to a temporary file.
40329         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40330         Instead, add parameter to inform caller if output occurred.
40331         (test_getopt): Adjust all existing tests to expect silence, and
40332         add new tests of leading ":".
40333         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40334         glibc shortcomings with leading "-:" or "+:" in optstring.
40335         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40336         Likewise.
40337         * doc/posix-functions/getopt.texi (getopt): Likewise.
40338
40339         test-getopt: enhance test
40340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40341         supports optind=0.
40342         * tests/test-getopt.c (OPTIND_MIN): Move...
40343         * tests/test-getopt.h (OPTIND_MIN): ...here.
40344         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40345         Require that optind=0 works, since modern BSD supports it in
40346         addition to optreset, and since coreutils expects it.
40347         (test_getopt_long_only): New test.
40348         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40349         glibc shortcomings with 'W;', and enforcement of optind=0.
40350         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40351         Likewise.
40352
40353 2009-12-21  Bruno Haible  <bruno@clisp.org>
40354
40355         localename: Improvements for MacOS X and Cygwin.
40356         * lib/localename.h (gl_locale_name_environ): New declaration.
40357         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40358         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40359         (gl_locale_name_posix): Invoke it.
40360         (gl_locale_name_default): Add comments. Use Windows native API also on
40361         Cygwin.
40362
40363 2009-12-21  Bruno Haible  <bruno@clisp.org>
40364
40365         Update list of Win32 locale ids.
40366         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40367         (LANG_SAMI): Renamed from LANG_SAAMI.
40368         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40369         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40370         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40371         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40372         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40373         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40374         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40375         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40376         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40377         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40378         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40379         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40380         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40381         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40382         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40383         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40384         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40385         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40386         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40387         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40388         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40389         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40390         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40391         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40392         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40393         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40394         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40395         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40396         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40397         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40398         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40399         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40400         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40401         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40402         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40403         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40404         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40405         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40406         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40407         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40408         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40409         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40410         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40411         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40412         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40413         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40414         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40415         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40416         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40417         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40418         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40419         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40420         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40421         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40422         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40423         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40424         Add more languages and countries for Sami, Sorbian. Add more countries
40425         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40426         for Pashto. Change country for Syriac, Tswana.
40427
40428 2009-12-21  Eric Blake  <ebb9@byu.net>
40429
40430         test-utimens: avoid spurious failure
40431         * tests/test-chown.h (nap): Factor...
40432         * tests/nap.h: ...into new file.
40433         * tests/test-lchown.h (nap): Avoid duplication.
40434         * tests/test-utimens-common.h (nap): Use shared implementation,
40435         necessary on file systems with 1-second resolution.
40436         * modules/chown-tests (Files): Include new file.
40437         * modules/fdutimensat-tests (Files): Likewise.
40438         * modules/futimens-tests (Files): Likewise.
40439         * modules/lchown-tests (Files): Likewise.
40440         * modules/openat-tests (Files): Likewise.
40441         * modules/utimens-tests (Files): Likewise.
40442         * modules/utimensat-tests (Files): Likewise.
40443
40444 2009-12-19  Eric Blake  <ebb9@byu.net>
40445
40446         futimens, utimensat: work around Linux bug
40447         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40448         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40449         * lib/utimensat.c (rpl_utimensat): Work around it.
40450         * lib/futimens.c (rpl_futimens): Adjust comment.
40451
40452         utimens: work around Linux ctime bug
40453         * lib/utimens.c (detect_ctime_bug): New helper function.
40454         (update_timespec): Differentiate between workaround needed for
40455         this bug vs. what is needed for systems that lack utimensat.
40456         (fdutimens, lutimens): Work around bug.
40457
40458         utimens: check for ctime update
40459         * tests/test-utimens-common.h (check_ctime): Define.
40460         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40461         * tests/test-futimens.h (test_futimens): Likewise.
40462         * tests/test-lutimens.h (test_lutimens): Likewise.
40463         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40464         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40465
40466 2009-12-19  Bruno Haible  <bruno@clisp.org>
40467
40468         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40469         * tests/test-dprintf-posix2.sh: New file.
40470         * tests/test-dprintf-posix2.c: New file.
40471         * modules/dprintf-posix-tests (Files): Add them.
40472         (configure.ac): Check for getrlimit and setrlimit.
40473         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40474
40475 2009-12-19  Bruno Haible  <bruno@clisp.org>
40476
40477         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40478         * tests/test-fprintf-posix3.sh: New file.
40479         * tests/test-fprintf-posix3.c: New file.
40480         * modules/fprintf-posix-tests (Files): Add them.
40481         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40482
40483 2009-12-19  Eric Blake  <ebb9@byu.net>
40484
40485         dirfd: fix prototype
40486         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40487         * lib/dirfd.c (dirfd): Likewise.
40488
40489         canonicalize: reduce memory usage
40490         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40491         allocation to size.
40492         Reported by Solar Designer <solar@openwall.com>.
40493
40494 2009-12-19  Bruno Haible  <bruno@clisp.org>
40495
40496         New module attribute 'Applicability'.
40497         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40498         * gnulib-tool: New option --extract-applicability.
40499         (func_usage): Document it.
40500         (sed_extract_prog): Recognize it.
40501         (func_get_applicability): New function.
40502         (func_import): Generalize handling of 'link-warning' module.
40503         * modules/link-warning (Applicability): New section.
40504         * modules/arg-nonnull (Applicability): New section.
40505         Repoted by Simon Josefsson <simon@josefsson.org>.
40506
40507 2009-12-19  Bruno Haible  <bruno@clisp.org>
40508
40509         fflush: tweak
40510         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40511         * lib/fseeko.c (rpl_fseeko): Likewise.
40512
40513 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40514
40515         * lib/gl_list.h: Fix typo in comment.
40516
40517 2009-12-16  Eric Blake  <ebb9@byu.net>
40518
40519         fcntl: use to simplify other modules
40520         * modules/cloexec (Depends-on): Add fcntl.
40521         * modules/fchdir (Depends-on): Likewise.
40522         * modules/fd-safer-flag (Depends-on): Likewise.
40523         * modules/unistd-safer (Depends-on): Likewise.
40524         * modules/dup3 (configure.ac): Set module indicator.
40525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40526         missing.
40527         * lib/fchdir.c (_gl_register_dup): Fix comment.
40528         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40529         * lib/dup-safer.c (dup_safer): Likewise.
40530         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40531         * lib/dup3.c (dup3): Likewise.
40532         * tests/test-fchdir.c (main): Enhance test.
40533         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40534
40535         fcntl: port portions of fcntl to mingw
40536         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40537         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40538         replacement for mingw.
40539         * modules/fcntl (Description): Update.
40540         (Depends-on): Add dup2.
40541         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40542         * modules/fcntl-h (Makefile.am): Substitute it.
40543         * lib/fcntl.in.h (fcntl): Update declaration.
40544         (F_DUPFD, F_GETFD): New macros, when needed.
40545         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40546         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40547         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40548         we now guarantee.
40549
40550         fcntl: work around cygwin bug in F_DUPFD
40551         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40552         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40553         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40554         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40555         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40556
40557         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40558         * modules/fcntl (Files): List new files.
40559         (configure.ac): Run a test.
40560         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40561         * lib/fcntl.c (rpl_fcntl): Likewise.
40562         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40563         (gl_FCNTL_H): Always replace fcntl.h.
40564         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40565         * lib/fcntl.in.h (fcntl): Declare replacement.
40566         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40567         needed, plus a witness.
40568         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40569         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40570         * tests/test-fcntl.c: New file.
40571         * modules/fcntl-tests: Likewise.
40572
40573         binary-io: avoid potential compilation warning
40574         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40575         directives.
40576
40577         fflush: avoid compilation error on NetBSD
40578         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40579         between off_t and fpos_t, since the latter is sometimes a struct.
40580         * lib/fseeko.c (rpl_fseeko): Likewise.
40581         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40582
40583 2009-12-15  Eric Blake  <ebb9@byu.net>
40584
40585         fcntl-h, stdio, sys_ioctl: fix declarations
40586         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40587         function must not take arguments.
40588         * lib/sys_ioctl.in.h (ioctl): Likewise.
40589         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40590         (open): Add a link warning.
40591
40592 2009-12-15  Jim Meyering  <meyering@redhat.com>
40593
40594         areadlink, areadlink-with-size: relax license to LGPLv2+
40595         * modules/areadlink (License): Relax to LGPLv2+.
40596         * modules/areadlink-with-size (License): Likewise.
40597
40598 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40599             Bruno Haible  <bruno@clisp.org>
40600
40601         *printf: Fix memory leak.
40602         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40603         * lib/vfprintf.c (vfprintf): Likewise.
40604         * lib/dprintf.c (dprintf): Likewise.
40605         * lib/vdprintf.c (vdprintf): Likewise.
40606
40607 2009-12-14  Eric Blake  <ebb9@byu.net>
40608
40609         accept4: adjust module dependencies
40610         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40611
40612         utimens: one more try at avoiding compiler warning
40613         * lib/utimens.c (lutimens): Lower scope of result.
40614
40615 2009-12-13  Bruno Haible  <bruno@clisp.org>
40616
40617         Move the malloc checking from module 'list' to new module 'xlist'.
40618         * modules/xlist: New file.
40619         * lib/gl_xlist.h: New file.
40620         * lib/gl_xlist.c: New file.
40621         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40622         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40623         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40624         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40625         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40626         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40627         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40628         gl_sortedlist_nx_add): New declarations.
40629         (struct gl_list_implementation): Rename and change methods accordingly.
40630         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40631         (gl_list_nx_create): Renamed from gl_list_create.
40632         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40633         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40634         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40635         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40636         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40637         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40638         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40639         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40640         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40641         gl_list_create_empty.
40642         (gl_list_nx_create): Renamed from gl_list_create.
40643         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40644         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40645         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40646         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40647         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40648         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40649         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40650         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40651         * lib/gl_array_list.c: Don't include xalloc.h.
40652         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40653         NULL upon out-of-memory.
40654         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40655         out-of-memory.
40656         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40657         Change return type to 'int'.
40658         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40659         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40660         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40661         upon out-of-memory.
40662         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40663         upon out-of-memory.
40664         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40665         upon out-of-memory.
40666         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40667         upon out-of-memory.
40668         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40669         out-of-memory.
40670         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40671         Update.
40672         (gl_array_list_implementation): Update.
40673         * lib/gl_carray_list.c: Don't include xalloc.h.
40674         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40675         Return NULL upon out-of-memory.
40676         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40677         out-of-memory.
40678         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40679         Change return type to 'int'.
40680         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40681         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40682         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40683         upon out-of-memory.
40684         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40685         upon out-of-memory.
40686         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40687         out-of-memory.
40688         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40689         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40690         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40691         Update.
40692         (gl_carray_list_implementation): Update.
40693         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40694         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40695         gl_linked_create_empty. Return NULL upon out-of-memory.
40696         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40697         out-of-memory.
40698         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40699         Change return type to 'int'. Return -1 upon out-of-memory.
40700         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40701         out-of-memory.
40702         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40703         upon out-of-memory.
40704         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40705         upon out-of-memory.
40706         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40707         NULL upon out-of-memory.
40708         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40709         upon out-of-memory.
40710         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40711         out-of-memory.
40712         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40713         Update.
40714         * lib/gl_linked_list.c: Don't include xalloc.h.
40715         (gl_linked_list_implementation): Update.
40716         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40717         (add_to_bucket): Change return type to 'int'.
40718         (gl_linkedhash_list_implementation): Update.
40719         * lib/gl_anytree_list1.h (free_subtree): New function.
40720         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40721         gl_tree_create_empty. Return NULL upon out-of-memory.
40722         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40723         Change return type to 'int'. Return -1 upon out-of-memory.
40724         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40725         out-of-memory.
40726         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40727         (gl_tree_remove_node): New function, moved here from
40728         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40729         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40730         Update.
40731         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40732         malloc, not xmalloc. Return NULL upon out-of-memory.
40733         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40734         out-of-memory.
40735         (gl_tree_remove_node_from_tree): New function, extracted from
40736         gl_tree_remove_node.
40737         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40738         upon out-of-memory.
40739         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40740         out-of-memory.
40741         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40742         upon out-of-memory.
40743         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40744         upon out-of-memory.
40745         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40746         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40747         not xmalloc. Return NULL upon out-of-memory.
40748         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40749         out-of-memory.
40750         (gl_tree_remove_node_from_tree): New function, extracted from
40751         gl_tree_remove_node.
40752         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40753         upon out-of-memory.
40754         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40755         out-of-memory.
40756         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40757         upon out-of-memory.
40758         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40759         upon out-of-memory.
40760         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40761         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40762         gl_anytree_list1.h before gl_anyavltree_list2.h.
40763         (gl_avltree_list_implementation): Update.
40764         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40765         gl_anytree_list1.h before gl_anyavltree_list2.h.
40766         (gl_rbtree_list_implementation): Update.
40767         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40768         Change return type to 'int'. Return -1 upon out-of-memory. Use
40769         __builtin_expect.
40770         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40771         (gl_avltreehash_list_implementation): Update.
40772         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40773         (gl_rbtreehash_list_implementation): Update.
40774         * modules/array-list (Depends-on): Remove xalloc.
40775         * modules/carray-list (Depends-on): Likewise.
40776         * modules/linked-list (Depends-on): Likewise.
40777         * modules/linkedhash-list (Depends-on): Likewise.
40778         * modules/avltree-list (Depends-on): Likewise.
40779         * modules/rbtree-list (Depends-on): Likewise.
40780         * modules/avltreehash-list (Depends-on): Likewise.
40781         * modules/rbtreehash-list (Depends-on): Likewise.
40782
40783         * modules/xsublist: New file.
40784         * lib/gl_xsublist.h: New file.
40785         * lib/gl_xsublist.c: New file.
40786         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40787         (gl_sublist_nx_create): New declaration.
40788         * lib/gl_sublist.c: Don't include xalloc.h.
40789         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40790         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40791         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40792         Change return type to 'int'. Return -1 upon out-of-memory.
40793         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40794         upon out-of-memory.
40795         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40796         NULL upon out-of-memory.
40797         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40798         upon out-of-memory.
40799         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40800         NULL upon out-of-memory.
40801         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40802         NULL upon out-of-memory.
40803         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40804         upon out-of-memory.
40805         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40806         (gl_sublist_list_implementation): Update.
40807         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40808         upon out-of-memory.
40809         * modules/sublist (Depends-on): Remove xalloc.
40810
40811         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40812         * tests/test-carray_list.c: Likewise.
40813         * tests/test-linked_list.c: Likewise.
40814         * tests/test-linkedhash_list.c: Likewise.
40815         * tests/test-avltree_list.c: Likewise.
40816         * tests/test-rbtree_list.c: Likewise.
40817         * tests/test-avltreehash_list.c: Likewise.
40818         * tests/test-rbtreehash_list.c: Likewise.
40819         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40820         * modules/carray-list-tests (Makefile.am): Likewise.
40821         * modules/linked-list-tests (Makefile.am): Likewise.
40822         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40823         * modules/avltree-list-tests (Makefile.am): Likewise.
40824         * modules/rbtree-list-tests (Makefile.am): Likewise.
40825         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40826         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40827
40828         * NEWS: Mention the changes.
40829
40830         * lib/clean-temp.c: Include gl_xlist.h.
40831         * modules/clean-temp (Depends-on): Add xlist.
40832
40833         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40834         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40835
40836         * tests/test-array_oset.c: Include gl_xlist.h.
40837         * modules/array-oset-tests (Depends-on): Add xlist.
40838
40839         Reported by José E. Marchesi <jemarch@gnu.org>.
40840
40841 2009-12-13  Bruno Haible  <bruno@clisp.org>
40842
40843         Move the malloc checking from module 'oset' to new module 'xoset'.
40844         * modules/xoset: New file.
40845         * lib/gl_xoset.h: New file.
40846         * lib/gl_xoset.c: New file.
40847         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40848         declarations.
40849         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40850         (struct gl_oset_implementation): Rename and change methods accordingly.
40851         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40852         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40853         'int'. Mark as __warn_unused_result__.
40854         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40855         gl_oset_create_empty.
40856         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40857         'int'.
40858         * lib/gl_array_oset.c: Don't include xalloc.h.
40859         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40860         malloc, not xmalloc.
40861         (grow): Change return type to 'int'. Don't call xalloc_die.
40862         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40863         to 'int'.
40864         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40865         'int'.
40866         (gl_array_oset_implementation): Update.
40867         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40868         gl_tree_create_empty.
40869         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40870         'int'.
40871         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40872         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40873         xmalloc.
40874         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40875         not xmalloc.
40876         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40877         xmalloc.
40878         (gl_avltree_oset_implementation): Update.
40879         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40880         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40881         xmalloc.
40882         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40883         not xmalloc.
40884         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40885         xmalloc.
40886         (gl_rbtree_oset_implementation): Update.
40887         * modules/array-oset (Depends-on): Remove xalloc.
40888         * modules/avltree-oset (Depends-on): Likewise.
40889         * modules/rbtree-oset (Depends-on): Likewise.
40890         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40891         * tests/test-avltree_oset.c: Likewise.
40892         * tests/test-rbtree_oset.c: Likewise.
40893         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40894         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40895         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40896         * NEWS: Mention the change.
40897
40898 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40899
40900         maint.mk: allow a project to override release-prep commands
40901         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40902         commands into a new rule.
40903         (release-prep): New rule.
40904         (release-prep-hook): New overridable variable.
40905
40906 2009-12-13  Bruno Haible  <bruno@clisp.org>
40907
40908         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40909
40910 2009-12-13  Jim Meyering  <meyering@redhat.com>
40911
40912         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40913         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40914
40915 2009-12-12  Bruno Haible  <bruno@clisp.org>
40916
40917         duplocale: Tweak.
40918         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40919
40920 2009-12-12  Karl Berry  <karl@gnu.org>
40921
40922         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40923
40924 2009-12-12  Bruno Haible  <bruno@clisp.org>
40925
40926         * m4/po.m4: Undo incorrect untabification.
40927
40928 2009-12-12  Bruno Haible  <bruno@clisp.org>
40929
40930         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40931         * modules/c-strtod (Depends-on): Add locale.
40932         * modules/c-strtold (Depends-on): Likewise.
40933
40934 2009-12-12  Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40937
40938 2009-12-11  Eric Blake  <ebb9@byu.net>
40939
40940         setenv: relax requirement in light of POSIX ruling
40941         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40942         not NULL.
40943         * tests/test-setenv.c (main): Relax test.
40944         * tests/test-unsetenv.c (main): Likewise.
40945         * doc/posix-functions/setenv.texi (setenv): Document this.
40946         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40947
40948 2009-12-11  Bruno Haible  <bruno@clisp.org>
40949
40950         New module 'fd-safer-flag'.
40951         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40952         * lib/dup-safer.c (dup_safer_flag): Remove function.
40953         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40954         * lib/fd-safer.c (fd_safer_flag): Remove function.
40955         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40956         * modules/cloexec (configure.ac): Drop indicator macro.
40957         * modules/fd-safer-flag: New file.
40958         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40959         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40960         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40961
40962 2009-12-11  Bruno Haible  <bruno@clisp.org>
40963
40964         Tests for module 'nl_langinfo'.
40965         * modules/nl_langinfo-tests: New file.
40966         * tests/test-nl_langinfo.sh: New file.
40967         * tests/test-nl_langinfo.c: New file.
40968
40969         New module 'nl_langinfo'.
40970         * lib/nl_langinfo.c: New file.
40971         * m4/nl_langinfo.m4: New file.
40972         * modules/nl_langinfo: New file.
40973         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40974
40975 2009-12-11  Bruno Haible  <bruno@clisp.org>
40976
40977         Tests for module 'langinfo'.
40978         * modules/langinfo-tests: New file.
40979         * tests/test-langinfo.c: New file.
40980
40981         New module 'langinfo'.
40982         * lib/langinfo.in.h: New file.
40983         * m4/langinfo_h.m4: New file.
40984         * modules/langinfo: New file.
40985         * doc/posix-headers/langinfo.texi: Mention the new module.
40986
40987 2009-12-11  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/config.charset: Untabify.
40990
40991 2009-12-11  Bruno Haible  <bruno@clisp.org>
40992
40993         * modules/unistd-safer (configure.ac): Drop indicator macro.
40994
40995 2009-12-11  Bruno Haible  <bruno@clisp.org>
40996
40997         Move pipe2-safer code to its own file.
40998         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40999         * lib/pipe-safer.c (pipe2_safer): Remove function.
41000         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41001         (Makefile.am): Add it to lib_SOURCES.
41002
41003 2009-12-10  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41006
41007 2009-12-10  Bruno Haible  <bruno@clisp.org>
41008
41009         Declare which arguments expect non-NULL values, for GCC and clang.
41010         * build-aux/arg-nonnull.h: New file.
41011         * modules/arg-nonnull: New file.
41012         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41013         (inet_ntop, inet_pton): Use it.
41014         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41015         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41016         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41017         (open, openat): Use it.
41018         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41019         (fnmatch): Use it.
41020         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41021         (getopt, getopt_long, getopt_long_only): Use it.
41022         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41023         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41024         Use it.
41025         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41026         (iconv_open): Use it.
41027         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41028         (strtoimax, strtoumax): Use it.
41029         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41030         (duplocale): Use it.
41031         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41032         (frexp, frexpl): Use it.
41033         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41034         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41035         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41036         (tsearch, tfind, tdelete, twalk): Use it.
41037         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41038         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41039         sigpending): Use it.
41040         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41041         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41042         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41043         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41044         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41045         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41046         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41047         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41048         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41049         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41050         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41051         Use it.
41052         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41053         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41054         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41055         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41056         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41057         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41058         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41059         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41060         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41061         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41062         strtoull, unsetenv): Use it.
41063         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41064         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41065         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41066         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41067         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41068         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41069         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41070         (strcasecmp, strncasecmp): Use it.
41071         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41072         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41073         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41074         rpl_setsockopt): Use it.
41075         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41076         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41077         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41078         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41079         (gettimeofday): Use it.
41080         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41081         (times): Use it.
41082         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41083         (uname): Use it.
41084         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41085         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41086         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41087         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41088         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41089         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41090         unlinkat, write): Use it.
41091         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41092         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41093         * lib/argv-iter.h: Include arg-nonnull.h.
41094         (_ATTRIBUTE_NONNULL_): Remove macro.
41095         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41096         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41097         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41098         optimization.
41099         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41100         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41101         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41102         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41103         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41104         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41105         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41106         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41107         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41108         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41109         * modules/dirent (Depends-on): Add arg-nonnull.
41110         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41111         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41112         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41113         * modules/fnmatch (Depends-on): Add arg-nonnull.
41114         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41115         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41116         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41117         * modules/glob (Depends-on): Add arg-nonnull.
41118         (Makefile.am): Insert arg-nonnull.h into glob.h.
41119         * modules/iconv_open (Depends-on): Add arg-nonnull.
41120         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41121         * modules/inttypes (Depends-on): Add arg-nonnull.
41122         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41123         * modules/locale (Depends-on): Add arg-nonnull.
41124         (Makefile.am): Insert arg-nonnull.h into locale.h.
41125         * modules/math (Depends-on): Add arg-nonnull.
41126         (Makefile.am): Insert arg-nonnull.h into math.h.
41127         * modules/netdb (Depends-on): Add arg-nonnull.
41128         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41129         * modules/search (Depends-on): Add arg-nonnull.
41130         (Makefile.am): Insert arg-nonnull.h into search.h.
41131         * modules/signal (Depends-on): Add arg-nonnull.
41132         (Makefile.am): Insert arg-nonnull.h into signal.h.
41133         * modules/spawn (Depends-on): Add arg-nonnull.
41134         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41135         * modules/stdio (Depends-on): Add arg-nonnull.
41136         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41137         * modules/stdlib (Depends-on): Add arg-nonnull.
41138         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41139         * modules/string (Depends-on): Add arg-nonnull.
41140         (Makefile.am): Insert arg-nonnull.h into string.h.
41141         * modules/strings (Depends-on): Add arg-nonnull.
41142         (Makefile.am): Insert arg-nonnull.h into strings.h.
41143         * modules/sys_socket (Depends-on): Add arg-nonnull.
41144         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41145         * modules/sys_stat (Depends-on): Add arg-nonnull.
41146         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41147         * modules/sys_time (Depends-on): Add arg-nonnull.
41148         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41149         * modules/sys_times (Depends-on): Add arg-nonnull.
41150         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41151         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41152         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41153         * modules/time (Depends-on): Add arg-nonnull.
41154         (Makefile.am): Insert arg-nonnull.h into time.h.
41155         * modules/unistd (Depends-on): Add arg-nonnull.
41156         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41157         * modules/wchar (Depends-on): Add arg-nonnull.
41158         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41159         * modules/argv-iter (Depends-on): Add arg-nonnull.
41160         * tests/test-canonicalize.c (null_ptr): New function.
41161         (main): Use it.
41162         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41163         (main): Use it.
41164         * tests/test-memmem.c (null_ptr): New function.
41165         (main): Use it.
41166         Reported by Jim Meyering.
41167
41168 2009-12-10  Bruno Haible  <bruno@clisp.org>
41169
41170         Use spaces for indentation, not tabs.
41171         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41172         * m4/*.m4: Untabify.
41173         * build-aux/*.h: Untabify.
41174         * tests/**/*.[hc]: Untabify.
41175         * README: New section "Indent with spaces, not TABs", based on
41176         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41177         * NEWS: Mention the change.
41178
41179 2009-12-10  Bruno Haible  <bruno@clisp.org>
41180
41181         pty test: Fix link error.
41182         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41183         test_pty_LDADD.
41184
41185 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41186
41187         * modules/pty: New file.
41188         * modules/pty-tests: New file.
41189         * m4/pty.m4: New file.
41190         * tests/test-pty.c: New file.
41191         * doc/glibc-headers/pty.texi: Modified.
41192         * doc/glibc-functions/forkpty.texi: Modified.
41193         * doc/glibc-functions/openpty.texi: Modified.
41194
41195 2009-12-10  Bruno Haible  <bruno@clisp.org>
41196
41197         Avoid syntax error in C++ mode.
41198         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41199
41200 2009-12-10  Bruno Haible  <bruno@clisp.org>
41201
41202         Use sed with option -e.
41203         * gnulib-tool (func_version, func_emit_copyright_notice,
41204         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41205         option -e to sed.
41206         * modules/link-warning (Makefile.am): Likewise.
41207
41208 2009-12-10  Jim Meyering  <meyering@redhat.com>
41209
41210         mgetgroups: do not write bytes beyond end of malloc'd buffer
41211         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41212         username, we call getgroups with a one-element-shorter buffer,
41213         but still told it the length was original, max_n_groups.
41214
41215 2009-12-09  Eric Blake  <ebb9@byu.net>
41216
41217         cloexec: relax license
41218         * modules/cloexec (Maintainer): Add myself.
41219         (License): Use LGPL, not GPL.
41220
41221         link-warning: optimize generation
41222         * modules/link-warning (Makefile.am): Reduce process usage.
41223
41224 2009-12-09  Bruno Haible  <bruno@clisp.org>
41225
41226         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41227         workaround was added on 2009-11-17.
41228
41229 2009-12-09  Jim Meyering  <meyering@redhat.com>
41230             Bruno Haible  <bruno@clisp.org>
41231
41232         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41233         * modules/link-warning (Makefile.am): Make the comment-removing sed
41234         command more robust in the face of bootstrap-prepended comment lines.
41235
41236 2009-12-09  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41239         most one group.
41240
41241 2009-12-09  Simon Josefsson <simon@josefsson.org>
41242             Bruno Haible  <bruno@clisp.org>
41243
41244         * build-aux/link-warning.h: Add copyright notice.
41245         * modules/link-warning (Makefile.am): Generate link-warning.h from
41246         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41247         * NEWS: Mention change in link-warning module.
41248         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41249         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41250         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41251         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41252         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41253         * modules/math (Makefile.am): Add dependency to math.h.
41254         * modules/search (Makefile.am): Add dependency to search.h.
41255         * modules/signal (Makefile.am): Add dependency to signal.h.
41256         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41257         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41258         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41259         * modules/string (Makefile.am): Add dependency to string.h.
41260         * modules/strings (Makefile.am): Add dependency to strings.h.
41261         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41262         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41263         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41264         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41265         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41266         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41267         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41268         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41269         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41270
41271 2009-12-09  Bruno Haible  <bruno@clisp.org>
41272
41273         fchdir: Optimize away rpl_fstat when possible.
41274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41275         REPLACE_OPEN_DIRECTORY.
41276         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41277
41278 2009-12-09  Bruno Haible  <bruno@clisp.org>
41279
41280         * lib/fchdir.c: Update comment.
41281
41282 2009-12-09  Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41285
41286 2009-12-08  Eric Blake  <ebb9@byu.net>
41287
41288         fchdir: avoid memory leak on re-registration.
41289         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41290
41291 2009-12-08  Jim Meyering  <meyering@redhat.com>
41292
41293         init.sh: avoid Solaris 10 /bin/sh portability problem
41294         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41295         sourced script:
41296           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41297           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41298           bar
41299         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41300         and two tests used that idiom.
41301         * tests/init.sh: Update suggested usage comments.
41302         (path_prepend_): New function, to be used in place
41303         of the --src-path=DIR option.
41304         (setup_): Move PATH-prepending code into path_prepend_.
41305         * tests/test-pread.sh: Adapt to new usage.
41306         * tests/test-xalloc-die.sh: Likewise.
41307
41308 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41309
41310         * doc/gnulib.texi (Glibc pty.h): Add.
41311         * doc/glibc-functions/forkpty.texi: Add.
41312         * doc/glibc-functions/openpty.texi: Add.
41313         Suggested by Bruno Haible.
41314
41315 2009-12-08  Eric Blake  <ebb9@byu.net>
41316
41317         fchdir: fix logic bugs
41318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41319         * tests/test-fchdir.c (main): Enhance test.
41320         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41321         is in use.
41322
41323         dup2: fix logic bugs
41324         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41325         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41326         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41327         exists.
41328         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41329
41330 2009-12-07  Eric Blake  <ebb9@byu.net>
41331
41332         unlink: fix m4 detection
41333         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41334
41335         unistd-safer: add unit test
41336         * modules/unistd-safer-tests: New file.
41337         * tests/test-dup-safer.c: Likewise.
41338         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41339         * tests/test-dup2.c (setmode): Likewise.
41340         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41341
41342         cloexec: preserve text vs. binary across dup_cloexec
41343         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41344         mode.
41345         * modules/dup2-tests (Depends-on): Add binary-io.
41346         * modules/cloexec-tests (Depends-on): Likewise.
41347         * tests/test-dup2.c (setmode, is_mode): New helpers.
41348         (main): Add tests that translation mode is preserved.
41349         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41350         Reported by Bruno Haible.
41351
41352         mgetgroups: reduce duplicate listings
41353         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41354         resulting array.
41355         * tests/test-chown.h (test_chown): Simplify client.
41356         * tests/test-lchown.h (test_lchown): Likewise.
41357
41358 2009-12-06  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41361         value.
41362
41363 2009-12-06  Bruno Haible  <bruno@clisp.org>
41364
41365         * lib/progname.c: Include stdio.h, stdlib.h.
41366         (set_program_name): Reject a NULL argument.
41367
41368 2009-12-05  Eric Blake  <ebb9@byu.net>
41369
41370         pipe2-safer: new module
41371         * modules/pipe2-safer: New file.
41372         * lib/unistd-safer.h (pipe2_safer): New prototype.
41373         * lib/unistd--.h (pipe2): New wrapper.
41374         * lib/pipe-safer.c (pipe2_safer): New function.
41375         * modules/pipe (Depends-on): Add pipe2-safer.
41376         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41377
41378         stdlib-safer: preserve cloexec flag for mkostemp[s]
41379         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41380         fd_safer_flag.
41381
41382         unistd-safer: allow preservation of cloexec status via flag
41383         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41384         prototypes.
41385         * lib/dup-safer.c (dup_safer_flag): New function.
41386         * lib/fd-safer.c (fd_safer_flag): Likewise.
41387         * modules/cloexec (configure.ac): Set witness.
41388
41389         test-dup2: enhance test
41390         * modules/dup2-tests (Depends-on): Add cloexec.
41391         * tests/test-dup2.c (main): Enhance test.
41392
41393         cloexec: add dup_cloexec
41394         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41395         header and comments.
41396         * lib/cloexec.c (set_cloexec_flag): Add comments.
41397         (dup_cloexec): New function, with mingw implementation borrowed
41398         from...
41399         * lib/w32spawn.h (dup_noinherit): ...here.
41400         * modules/execute (Depends-on): Add cloexec.
41401         * modules/pipe (Depends-on): Likewise.
41402         * modules/cloexec (Depends-on): Add dup2.
41403         * modules/cloexec-tests (Files): New file.
41404         * tests/test-cloexec.c: Likewise.
41405
41406         test-xalloc-die: fix test for mingw
41407         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41408         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41409         directory and .exe suffix off argv[0] output.
41410
41411         test-fseeko: fix test for mingw
41412         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41413         than undefining fseek, so test will pass on mingw.
41414
41415 2009-12-05  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/progname.h (set_program_name): Clarify specification.
41418         * lib/progname.c (set_program_name): Likewise.
41419         Reported by Jim Meyering.
41420
41421 2009-12-05  Jim Meyering  <meyering@redhat.com>
41422
41423         maint.mk: backslash-escape parens in default regexp
41424         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41425         backslash-escape the literal parentheses.
41426
41427         maint.mk: news-date-check: use grep -E
41428         * top/maint.mk (today): Define a Make variable, not a...
41429         (news-date-check): ...shell variable.
41430         (news-date-regexp): Use the Make variable.
41431         Use grep's -E option.  Change the failing diagnostic to mention
41432         the variable, $(news-date-regexp).
41433
41434 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41435
41436         maintainer-makefile: allow customization of NEWS entry format
41437         * top/maint.mk (news-date-regexp): New overridable variable.
41438         (news-date-check): Use it.
41439
41440 2009-12-04  Eric Blake  <ebb9@byu.net>
41441
41442         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41443         * lib/mgetgroups.h (xgetgroups): New prototype.
41444         * lib/mgetgroups.c (xgetgroups): New wrapper.
41445         (mgetgroups): Handle ENOSYS.
41446         * modules/mgetgroups (Depends-on): Add realloc.
41447         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41448
41449         mgetgroups: avoid argument promotion issues with -1
41450         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41451         for invalid gid_t.
41452         * tests/test-chown.h (getegid, test_chown): Likewise.
41453         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41454
41455 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41456
41457         exclude: Fix header file problems.
41458         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41459
41460 2009-12-01  Jim Meyering  <meyering@redhat.com>
41461
41462         fts: fts_open: do not let an empty string cause immediate failure
41463         This is required in support of GNU rm, for which the command
41464         "rm A '' B" must process and remove both A and B, in spite of
41465         the empty string argument.
41466         * lib/fts.c (fts_open): Do not let the presence of an empty string
41467         cause fts_open to fail immediately.  Most fts-using tools must be
41468         able to process all arguments, in order, and can be expected to
41469         diagnose such arguments themselves.
41470
41471 2009-11-30  Eric Blake  <ebb9@byu.net>
41472
41473         utimens: fix compilation error
41474         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41475         Declare variable at right scope.
41476
41477 2009-11-29  Jim Meyering  <meyering@redhat.com>
41478
41479         bootstrap: handle perl-5.11's changed --version output
41480         * build-aux/bootstrap (get_version): Handle perl separately,
41481         since perl-5.11's --version output is different.
41482
41483 2009-11-28  Jim Meyering  <meyering@redhat.com>
41484
41485         userspec: depend on the inttostr module, too
41486         * modules/userspec (Depends-on): Add inttostr.
41487
41488         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41489         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41490         number of MAXUID when it evaluates to (uid_t) -1.
41491         Likewise for group ID.  Reported by Matt McCutchen in
41492         <http://savannah.gnu.org/bugs/?28113>
41493
41494         userspec: reformat to use spaces, not TABs
41495         * lib/userspec.c: Expand TABs to spaces.
41496         Add Emacs' "indent-tabs-mode: nil" hint.
41497
41498 2009-11-27  Eric Blake  <ebb9@byu.net>
41499
41500         getopt-gnu: flush out another BSD bug
41501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41502         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41503         flush out BSD bug.
41504         * tests/test-getopt.h (test_getopt): End lists with NULL.
41505         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41506         (test_getopt_long_posix): Enhance test.
41507         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41508         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41509         getopt-gnu.
41510         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41511         Likewise.
41512
41513 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41514
41515         * modules/idpriv-droptemp-tests (Notice): Fix text.
41516
41517 2009-11-27  Jim Meyering  <meyering@redhat.com>
41518
41519         test-xalloc-die: avoid spurious failure due to libtool argv difference
41520         In a libtool-enabled project, this test would fail due to a difference
41521         in the emitted program name, e.g.,
41522         -test-xalloc-die: memory exhausted
41523         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41524         Use program to avoid that.
41525         * modules/xalloc-die-tests (Depends-on): Add progname.
41526         * tests/test-xalloc-die.c: Include progname.h".
41527         (program_name): Remove decl.
41528         (main): Call set_program_name.
41529         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41530
41531 2009-11-26  Richard Jones  <rjones@redhat.com>
41532
41533         w32sock: leave win32 error in place.
41534         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41535
41536 2009-11-26  Eric Blake  <ebb9@byu.net>
41537
41538         init.sh: suggest to use skip_ and fail_ functions in comments
41539         * tests/init.sh: Add a sentence.
41540
41541 2009-11-25  Bruno Haible  <bruno@clisp.org>
41542
41543         init.sh: add documentation in comments
41544         * tests/init.sh: Add some developer and user documentation.
41545
41546 2009-11-26  Jim Meyering  <meyering@redhat.com>
41547
41548         init.sh: accommodate even those who specify bogus srcdir manually
41549         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41550         configure-time tests to be sanitized, so that there is no need to
41551         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41552         (with no double quotes) suffices.  However, since tests may be
41553         invoked manually, and since you may explicitly set srcdir to the
41554         name of a directory containing spaces, do quote its uses here.
41555         * tests/test-pread.sh: Likewise.
41556         Suggested by Bruno Haible.
41557
41558         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41559         * tests/test-pread.sh: Write no data into the pipe, because
41560         test-pread actually reads none.  This avoids a diagnostic,
41561         "bash: echo: write error: Broken pipe", that arises in the unusual
41562         event something is ignoring SIGPIPE, and might be interpreted
41563         as some sort of failure.  Reported by Bruno Haible.
41564
41565 2009-11-25  Jim Meyering  <meyering@redhat.com>
41566
41567         test-pread: cover failure with ESPIPE and EINVAL
41568         * tests/test-pread.c (main): Test for failure, too.
41569         * tests/test-pread.sh: Invoke with stdin on a pipe.
41570         Suggested by Eric Blake.
41571
41572         pread: improvement and fix
41573         * modules/pread (Depends-on): Depend on lseek, for portability to
41574         e.g., mingw.  Suggested by Eric Blake.
41575         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41576
41577         unistd.in.h: correct declaration of pread
41578         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41579         Reported by Richard W.M. Jones.
41580
41581         test-pread.sh: distribute the test script
41582         * modules/pread-tests (Files): Include test-pread.sh.
41583
41584         test-pread.sh: clean up
41585         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41586         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41587         That is unnecessary, since it's always ".".
41588         Suggestion from Eric Blake.
41589
41590         test-pread.sh: make executable
41591         * tests/test-pread.sh: Set executable bit.
41592         Reported by Eric Blake.
41593
41594         correct typo in test-pread.sh
41595         * tests/test-pread.sh: Add #! line.
41596
41597         test pread
41598         * tests/test-pread.c: New file.
41599         * tests/test-pread.sh: Likewise.
41600         * modules/pread-tests: Likewise.
41601
41602         pread: new module
41603         * modules/pread: New file.
41604         * lib/unistd.in.h (pread): Define/declare.
41605         * lib/pread.c (pread): New file.
41606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41607         * modules/unistd (Makefile.am): Substitute witnesses.
41608         * doc/posix-functions/pread.texi (pread): Update.
41609         * MODULES.html.sh: Add pread.
41610
41611 2009-11-25  Jim Meyering  <meyering@redhat.com>
41612
41613         tests/init.sh: new file to be used via most *.sh tests
41614         * tests/init.sh: New file.
41615
41616 2009-11-25  Eric Blake  <ebb9@byu.net>
41617
41618         utimens: work around older Linux failure with symlinks
41619         * lib/utimens.c (lutimensat_works_really): New variable.
41620         (fdutimens, lutimens): Use it to manage kernels that support
41621         nanosecond times on files, but not on symlinks.
41622         Reported by OndÅ™ej Vašík.
41623
41624         utimes: fix configure grammar
41625         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41626
41627 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41628
41629         regex: Fix fastmap for multibyte character ranges.
41630         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41631         characters when a multibyte character range is included.
41632
41633 2009-11-22  Andy Wingo  <wingo@pobox.com>
41634
41635         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41636         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41637
41638 2009-11-24  Bruno Haible  <bruno@clisp.org>
41639
41640         doc: Most *_l functions exist in MacOS X 10.5.
41641         * doc/posix-functions/duplocale.texi: Update platforms list.
41642         * doc/posix-functions/freelocale.texi: Likewise.
41643         * doc/posix-functions/newlocale.texi: Likewise.
41644         * doc/posix-functions/uselocale.texi: Likewise.
41645         * doc/posix-functions/isalnum_l.texi: Likewise.
41646         * doc/posix-functions/isalpha_l.texi: Likewise.
41647         * doc/posix-functions/isblank_l.texi: Likewise.
41648         * doc/posix-functions/iscntrl_l.texi: Likewise.
41649         * doc/posix-functions/isdigit_l.texi: Likewise.
41650         * doc/posix-functions/isgraph_l.texi: Likewise.
41651         * doc/posix-functions/islower_l.texi: Likewise.
41652         * doc/posix-functions/isprint_l.texi: Likewise.
41653         * doc/posix-functions/ispunct_l.texi: Likewise.
41654         * doc/posix-functions/isspace_l.texi: Likewise.
41655         * doc/posix-functions/isupper_l.texi: Likewise.
41656         * doc/posix-functions/iswalnum_l.texi: Likewise.
41657         * doc/posix-functions/iswalpha_l.texi: Likewise.
41658         * doc/posix-functions/iswblank_l.texi: Likewise.
41659         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41660         * doc/posix-functions/iswctype_l.texi: Likewise.
41661         * doc/posix-functions/iswdigit_l.texi: Likewise.
41662         * doc/posix-functions/iswgraph_l.texi: Likewise.
41663         * doc/posix-functions/iswlower_l.texi: Likewise.
41664         * doc/posix-functions/iswprint_l.texi: Likewise.
41665         * doc/posix-functions/iswpunct_l.texi: Likewise.
41666         * doc/posix-functions/iswspace_l.texi: Likewise.
41667         * doc/posix-functions/iswupper_l.texi: Likewise.
41668         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41669         * doc/posix-functions/isxdigit_l.texi: Likewise.
41670         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41671         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41672         * doc/posix-functions/strcoll_l.texi: Likewise.
41673         * doc/posix-functions/strfmon_l.texi: Likewise.
41674         * doc/posix-functions/strftime_l.texi: Likewise.
41675         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41676         * doc/posix-functions/strxfrm_l.texi: Likewise.
41677         * doc/posix-functions/tolower_l.texi: Likewise.
41678         * doc/posix-functions/toupper_l.texi: Likewise.
41679         * doc/posix-functions/towctrans_l.texi: Likewise.
41680         * doc/posix-functions/towlower_l.texi: Likewise.
41681         * doc/posix-functions/towupper_l.texi: Likewise.
41682         * doc/posix-functions/wcscoll_l.texi: Likewise.
41683         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41684         * doc/posix-functions/wctrans_l.texi: Likewise.
41685         * doc/posix-functions/wctype_l.texi: Likewise.
41686         * doc/glibc-functions/strptime_l.texi: Likewise.
41687         * doc/glibc-functions/strtod_l.texi: Likewise.
41688         * doc/glibc-functions/strtof_l.texi: Likewise.
41689         * doc/glibc-functions/strtol_l.texi: Likewise.
41690         * doc/glibc-functions/strtold_l.texi: Likewise.
41691         * doc/glibc-functions/strtoll_l.texi: Likewise.
41692         * doc/glibc-functions/strtoul_l.texi: Likewise.
41693         * doc/glibc-functions/strtoull_l.texi: Likewise.
41694         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41695         * doc/glibc-functions/wcstod_l.texi: Likewise.
41696         * doc/glibc-functions/wcstof_l.texi: Likewise.
41697         * doc/glibc-functions/wcstol_l.texi: Likewise.
41698         * doc/glibc-functions/wcstold_l.texi: Likewise.
41699         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41700         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41701         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41702
41703 2009-11-24  Bruno Haible  <bruno@clisp.org>
41704
41705         duplocale: Fix logic bug.
41706         * lib/duplocale.c: Don't include <langinfo.h>.
41707         (_NL_LOCALE_NAME): Remove macro.
41708         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41709         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41710
41711 2009-11-23  Jim Meyering  <meyering@redhat.com>
41712
41713         test-update-copyright: don't hard-code /usr/bin/perl
41714         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41715         perl to print the current year.  Gilles Espinasse reported that
41716         the replaced use of perl was hard-coded as /usr/bin/perl.
41717
41718 2009-11-23  Bruno Haible  <bruno@clisp.org>
41719
41720         duplocale: Add support for glibc 2.3.x.
41721         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41722
41723 2009-11-22  Bruno Haible  <bruno@clisp.org>
41724
41725         vasnprintf: Tiny optimization.
41726         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41727         MacOS X.
41728
41729 2009-11-22  Bruno Haible  <bruno@clisp.org>
41730
41731         Tests for module 'duplocale'.
41732         * modules/duplocale-tests: New file.
41733         * tests/test-duplocale.c: New file.
41734
41735         New module 'duplocale'.
41736         * m4/duplocale.m4: New file.
41737         * lib/locale.in.h (duplocale): New declaration.
41738         * lib/duplocale.c: New file.
41739         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41740         gl_LOCALE_H_DEFAULTS): New macros.
41741         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41742         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41743         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41744         REPLACE_DUPLOCALE.
41745         * modules/duplocale: New file.
41746         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41747
41748 2009-11-22  Bruno Haible  <bruno@clisp.org>
41749
41750         * modules/locale-tests (configure.ac): Test for newlocale function.
41751         * tests/test-locale.c: When the system has extended locale functions,
41752         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41753
41754         locale: Make locale_t available when possible.
41755         * lib/locale.in.h: Include <xlocale.h> when it exists.
41756         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41757         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41758         * modules/locale (Depends-on): Add extensions.
41759         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41760         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41761
41762 2009-11-22  Bruno Haible  <bruno@clisp.org>
41763
41764         Add comments.
41765         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41766         invocation.
41767         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41768         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41769         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41770
41771 2009-11-22  Bruno Haible  <bruno@clisp.org>
41772
41773         error: account for the possibility of freopen (stdout).
41774         * lib/error.c: Include <unistd.h>.
41775         (flush_stdout): New function, extracted from error and error_at_line.
41776         Determine stdout's fd dynamically.
41777         (error, error_at_line): Invoke flush_stdout.
41778         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41779         * modules/error (Depends-on): Add unistd.
41780
41781 2009-11-22  Bruno Haible  <bruno@clisp.org>
41782
41783         diffseq: Add comment.
41784         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41785
41786 2009-11-22  Jim Meyering  <meyering@redhat.com>
41787
41788         c-stack: avoid defining an unused static function
41789         * lib/c-stack.c (find_stack_direction): Do not define this function
41790         when it will not be used.
41791
41792         diffseq: avoid spurious gcc warnings
41793         * lib/diffseq.h (IF_LINT2): Define.
41794         (compareseq): Use it to initialize two members of "part".
41795         This avoids two used-uninitialized warnings.
41796
41797 2009-11-21  Jim Meyering  <meyering@redhat.com>
41798
41799         c-stack: avoid "ignoring return value of `write'" warning
41800         * lib/c-stack.c: Include "ignore-value.h".
41801         (die): Explicitly ignore each write return value.
41802         * modules/c-stack (Depends-on): Add ignore-value.
41803
41804 2009-11-21  Bruno Haible  <bruno@clisp.org>
41805
41806         diffseq: reduce scope of variable 'best'.
41807         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41808         variable, earlier used for two different purposes.
41809
41810 2009-11-21  Jim Meyering  <meyering@redhat.com>
41811
41812         diffseq: remove useless assignment to "best"
41813         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41814         assignment.  At that point "best" is already guaranteed to be zero.
41815
41816 2009-11-20  Eric Blake  <ebb9@byu.net>
41817
41818         build: mention ftp redirector in release announcements
41819         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41820         values that used to come from cfg.mk; mention FTP redirect URL.
41821         * build-aux/announce-gen: Mention the mirror list.
41822         Suggested by Karl Berry.
41823
41824         nanosleep: improve port to mingw
41825         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41827         LIB_NANOSLEEP, but only when needed.
41828         * modules/select (Link): Document LIBSOCKET.
41829         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41830         enough.
41831
41832         nanosleep: work around cygwin bug
41833         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41834         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41835         bug.
41836         (getnow): Delete, not needed.
41837         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41838         LIB_CLOCK_GETTIME.
41839         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41840         clock-time, gettime.
41841         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41842         bug.
41843         * modules/nanosleep-tests: New test.
41844         * tests/test-nanosleep.c: New file.
41845
41846         sleep: work around cygwin bug
41847         * lib/sleep.c (rpl_sleep): Work around the bug.
41848         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41849         (gl_PREREQ_SLEEP): Delete unused macro.
41850         * modules/sleep (Depends-on): Add verify.
41851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41852         * modules/unistd (Makefile.am): Substitute witness.
41853         * lib/unistd.in.h (sleep): Update prototype.
41854         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41855         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41856         * modules/sleep-tests (Depends-on): Check for alarm.
41857
41858 2009-11-20  Jim Meyering  <meyering@redhat.com>
41859
41860         maint.mk: improve sc_prohibit_magic_number_exit
41861         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41862         so it does not match uses like System.exit(1).
41863         Add comments showing how to correct all offenders.
41864
41865 2009-11-19  Eric Blake  <ebb9@byu.net>
41866
41867         xalloc-die-tests: add missing library
41868         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41869
41870         test-xvasprintf: silence compiler warnings
41871         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41872         empty string from gcc.
41873
41874 2009-11-19  Jim Meyering  <meyering@redhat.com>
41875
41876         xfreopen: new module, from coreutils
41877         * modules/xfreopen: New module.
41878         * lib/xfreopen.c: New file.
41879         * lib/xfreopen.h: New file.
41880         * MODULES.html.sh (File stream based Input/Output"): Add it.
41881
41882 2009-11-19  Eric Blake  <ebb9@byu.net>
41883
41884         manywarnings: depend on warnings
41885         * modules/manywarnings (Depends-on): Add warnings.
41886
41887         build: avoid compiler warnings
41888         * lib/select.c (rpl_select): Delete unused variable.
41889         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41890
41891 2009-11-18  Eric Blake  <ebb9@byu.net>
41892
41893         tests: avoid false negative with --with-packager
41894         * tests/test-version-etc.sh: Discard packager information.
41895         * tests/test-argp-version-etc-1.sh: Likewise.
41896         Reported by Mike Frysinger.
41897
41898         utimens: fix regression on Solaris
41899         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41900         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41901         can only change fd timestamps via futimesat.  Instead, use an
41902         additional witness macro to avoid BSD bug.
41903         Reported by Jim Meyering.
41904
41905 2009-11-17  Eric Blake  <ebb9@byu.net>
41906
41907         usleep: use it to simplify tests
41908         * modules/stat-time-tests (Depends-on): Add usleep.
41909         (configure.ac): Drop usleep check.
41910         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41911         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41912         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41913         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41914         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41915         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41916         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41917         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41918         Likewise.
41919         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41920         * tests/test-lchown.h (nap): Likewise.
41921         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41922         * tests/test-stat-time.c (nap): Likewise.
41923         * tests/test-utimens-common.h (nap): Update comments.
41924
41925         usleep: new module
41926         * modules/usleep: New file.
41927         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41928         * lib/usleep.c (usleep): Likewise.
41929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41930         * modules/unistd (Makefile.am): Substitute witnesses.
41931         * lib/unistd.in.h (usleep): Add declaration.
41932         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41933         * MODULES.html.sh (Date and time): Likewise.
41934         * modules/usleep-tests (Depends-on): New test.
41935         * tests/test-usleep.c: New file.
41936
41937         chown: work around OpenBSD bug
41938         * lib/chown.c (rpl_chown): Work around the bug.
41939         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41940         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41942         * modules/chown (Depends-on): Add stdbool.
41943         * modules/lchown (Depends-on): Likewise.
41944         * doc/posix-functions/chown.texi (chown): Document the bug.
41945         * doc/posix-functions/lchown.texi (lchown): Likewise.
41946         * tests/test-lchown.h (test_chown): Relax test.
41947
41948         mkstemp: avoid conflict with C++ keyword template
41949         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41950         * lib/mkostemp.c (mkostemp): Likewise.
41951         * lib/mkostemps.c (mkostemps): Likewise.
41952         * lib/mkstemp.c (mkstemp): Likewise.
41953         * lib/mkstemps.c (mkstemps): Likewise.
41954
41955         xalloc-die-tests: optimize
41956         * tests/test-xalloc-die.sh: Reduce number of processes.
41957
41958 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41959
41960         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41961         patch from ludo@gnu.org (Ludovic Courtès).
41962
41963 2009-11-17  Jim Meyering  <meyering@redhat.com>
41964
41965         version-etc: use proper license string
41966         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41967         * modules/version-etc-fsf: Likewise.
41968
41969 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41970
41971         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41972         printed to stdout.  Deal with EOL differences.
41973
41974 2009-11-17  Eric Blake  <ebb9@byu.net>
41975
41976         unsetenv: work around Solaris bug
41977         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41978         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41979         Reported by Jim Meyering.
41980
41981         vasnprintf: avoid compiler warnings
41982         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41983         variables.
41984         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41985
41986 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41987
41988         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41989         settings since xalloc-die is no longer the self test,
41990         xalloc-die.sh is.
41991
41992 2009-11-17  Jim Meyering  <meyering@redhat.com>
41993
41994         test-xalloc-die.sh: make the code agree with the commit log
41995         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41996         at the end, just in case you happen to have a test-xalloc-die
41997         program in some other PATH directory.
41998
41999         test-xalloc-die.sh: fix a portability bug
42000         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42001         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42002         Otherwise, argv[0] (as often seen in diagnostics) would be too
42003         system-dependent, sometimes with, and sometimes without the leading "./".
42004
42005         version-etc-fsf: relax license to LGPLv3+
42006         * modules/version-etc-fsf (License): Relax license.
42007
42008 2009-11-16  Eric Blake  <ebb9@byu.net>
42009
42010         xalloc-die-tests: avoid printing null pointer
42011         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42012         shell script.
42013         * tests/test-xalloc-die.c (program_name): Declare.
42014         * tests/test-xalloc-die.sh (tmpfiles): New file.
42015
42016         setenv, unsetenv: work around various bugs
42017         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42018         (setenv) [HAVE_SETENV]: Work around bugs.
42019         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42020         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42021         for bugs.
42022         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42023         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42025         * modules/stdlib (Makefile.am): Update substitutions.
42026         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42027         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42028         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42029         * modules/setenv-tests: New test.
42030         * modules/unsetenv-tests: Likewise.
42031         * tests/test-setenv.c: New file.
42032         * tests/test-unsetenv.c: Likewise.
42033
42034 2009-11-16  Jim Meyering  <meyering@redhat.com>
42035
42036         version-etc: relax license to LGPLv3+
42037         * modules/version-etc (License): Relax license.
42038
42039         better AC_REQUIRE expanded-before-required-warning avoidance
42040         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42041         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42042         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42043         which is no longer needed.
42044
42045 2009-11-16  Eric Blake  <ebb9@byu.net>
42046
42047         test-freading: clean up temporary file
42048         * tests/test-freading.c (main): Remove file on success, and use
42049         ASSERT more liberally.
42050         Reported by Jim Meyering.
42051
42052 2009-11-16  Jim Meyering  <meyering@redhat.com>
42053
42054         avoid new AC_REQUIRE expanded-before-required warnings
42055         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42056         merely using it.
42057         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42058         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42059
42060 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42061
42062         * tests/test-xalloc-die.c: New file.
42063         * modules/xalloc-die-tests: New file.
42064         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42065         XFAIL_TESTS so it can be appended by modules.
42066
42067 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42068
42069         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42070         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42071
42072 2009-11-14  Eric Blake  <ebb9@byu.net>
42073
42074         fnmatch: avoid compiler warning
42075         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42076         to silence compiler warning about mismatch signedness in ?:.
42077         Reported by Robert Millan.
42078
42079         intprops: add double-inclusion guard
42080         * lib/intprops.h: Allow idempotent includes.
42081         Suggested by Bruce Korb.
42082
42083         openat: detect Solaris fchownat bug
42084         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42085         penalizing glibc chownat when only lchownat is broken.
42086         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42087         trailing slash bugs.
42088         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42089         * modules/openat-tests (Files): Include more files.
42090         (Depends-on): Add mgetgroups, sleep, stat-time.
42091         (configure.ac): Add additional checks.
42092         (Makefile.am): Build new test.
42093         * tests/test-fchownat.c: New file.
42094
42095         lchown: detect Solaris and FreeBSD bug
42096         * lib/lchown.c (rpl_lchown): Work around bug.
42097         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42099         * modules/unistd (Makefile.am): Populate it.
42100         * lib/unistd.in.h (lchown): Update declaration.
42101         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42102         * modules/lchown-tests: New file.
42103         * tests/test-lchown.h (test_lchown): Likewise.
42104         * tests/test-lchown.c (main): Likewise.
42105
42106         chown: detect Solaris and FreeBSD bug
42107         * lib/chown.c (rpl_chown): Work around bug.
42108         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42109         (gl_PREREQ_CHOWN): Delete.
42110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42111         * modules/unistd (Makefile.am): Populate it.
42112         * lib/unistd.in.h (chown): Update declaration.
42113         * lib/lchown.c (chown): Update client.
42114         * modules/lchown (Depends-on): Add lstat.
42115         * doc/posix-functions/chown.texi (chown): Document the bug.
42116         * doc/posix-functions/getgroups.texi (getgroups): Document
42117         getgroups pitfall.
42118         * modules/chown-tests: New file.
42119         * tests/test-chown.h (test_chown): Likewise.
42120         * tests/test-chown.c (main): Likewise.
42121
42122 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42123
42124         gnulib-tool: correctly detect absence of m4 directories
42125         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42126
42127 2009-11-14  Jim Meyering  <meyering@redhat.com>
42128
42129         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42130         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42131
42132 2009-11-14  John W. Eaton  <jwe@gnu.org>
42133
42134         strftime.h: wrap function declaration in extern "C" block
42135         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42136
42137 2009-11-13  Eric Blake  <ebb9@byu.net>
42138
42139         getgroups: avoid compiler warning
42140         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42141
42142         getgroups: work around FreeBSD bug
42143         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42144         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42145         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42146         * tests/test-getgroups.c (main): Fix buffer overrun.
42147
42148         getgroups: avoid compilation failure
42149         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42150         * modules/getgroups (Depends-on): Add stdint.
42151
42152 2009-11-13  Jim Meyering  <meyering@redhat.com>
42153
42154         test-getgroups: avoid compilation failure
42155         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42156
42157 2009-11-13  Eric Blake  <ebb9@byu.net>
42158
42159         mgetgroups: new module, taken from coreutils
42160         * modules/mgetgroups: New file.
42161         * lib/mgetgroups.h: Likewise.
42162         * lib/mgetgroups.c (mgetgroups): Likewise.
42163         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42164         * MODULES.html.sh (Users and groups): Mention it.
42165
42166         getgroups: don't expose GETGROUPS_T to user
42167         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42168         an element at a time if GETGROUPS_T is wrong size.
42169         * lib/getugroups.h (getugroups): Change signature.
42170         * lib/unistd.in.h (getgroups): Likewise.
42171         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42172         signature needs fixing.
42173         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42174         AC_TYPE_GETGROUPS.
42175         * modules/group-member (Depends-on): Add getgroups.
42176         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42177         (group_member): Rely on getgroups replacement.
42178         * lib/getugroups.c (getugroups): Use gid_t.
42179         * tests/test-getgroups.c (main): Likewise.
42180         * NEWS: Mention the signature change.
42181         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42182         problem with signature.
42183         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42184         GETGROUPS_T is still useful for setgroups.
42185
42186         getgroups, getugroups: provide stubs for mingw
42187         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42188         * lib/getugroups.c (getugroups): Likewise.
42189         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42190         function.  Modernize replacement scheme.
42191         (gl_PREREQ_GETGROUPS): Delete.
42192         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42193         * modules/getgroups (configure.ac): Declare witness.
42194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42195         * modules/unistd (Depends-on): Substitute witness.
42196         * lib/unistd.in.h (getgroups): Declare replacement.
42197
42198         getgroups: avoid calling exit
42199         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42200         drop xalloc.
42201         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42202         dependencies.
42203         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42204         exiting, in the rare case of malloc failure.
42205
42206         getgroups: fix logic error
42207         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42208         has more than 20 groups.
42209         * modules/getgroups-tests: New test.
42210         * tests/test-getgroups.c: New file.
42211
42212 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42213
42214         * tests/test-base64.c: Improve.
42215
42216 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42217
42218         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42219         Blake <ebb9@byu.net>.
42220
42221 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42222
42223         * tests/test-xvasprintf.c: Add %s%s related checks.
42224
42225 2009-11-12  Eric Blake  <ebb9@byu.net>
42226
42227         version-etc: match standards.texi style
42228         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42229         and use <> only for URLs.
42230
42231 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42232
42233         fts: do not fail on a submount during traversal
42234         * lib/fts.c (fts_build): Read the stat info again after opening
42235         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42236         Original report at http://bugzilla.redhat.com/501848.
42237
42238 2009-11-12  Jim Meyering  <meyering@redhat.com>
42239
42240         bootstrap: sync from coreutils
42241         * build-aux/bootstrap (bootstrap_epilogue): New function.
42242         Use git_modules_config in one more place.  This make bootstrap's
42243         --gnulib-srcdir option more useful for testing.
42244
42245         bootstrap: generalize autoheader check
42246         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42247         AC_CONFIG_HEADERS.
42248
42249 2009-11-11  Eric Blake  <ebb9@byu.net>
42250
42251         mkfifoat: use new modules for Solaris and BSD bugs
42252         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42253         * lib/mkfifoat.c (mknodat): Split...
42254         * lib/mknodat.c (mknodat): ...into new file.
42255         * modules/mkfifoat (Files): Ship new file.
42256         (Depends-on): Add mkfifo, mknod.
42257         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42258         (Depends-on): Add symlink.
42259         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42260         redundant with test_mkfifo.h.
42261         (do_mkfifoat, do_mknodat): New helpers.
42262
42263         mknod: new module
42264         * modules/mknod: New file.
42265         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42266         * lib/mknod.c (mknod): Likewise.
42267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42268         defaults.
42269         * modules/sys_stat (Makefile.am): Substitute them.
42270         * lib/sys_stat.in.h (mknod): Declare replacement.
42271         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42272         Document it.
42273         * doc/posix-functions/mknod.texi (mknod): Likewise.
42274         * modules/mknod-tests: New test.
42275         * tests/test-mknod.c: Likewise.
42276
42277         mkfifo: new module
42278         * modules/mkfifo: New file.
42279         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42280         * lib/mkfifo.c (mkfifo): Likewise.
42281         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42282         defaults.
42283         * modules/sys_stat (Makefile.am): Substitute them.
42284         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42285         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42286         Document it.
42287         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42288         * modules/mkfifo-tests: New test.
42289         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42290         from test-mkfifoat.c.
42291         * tests/test-mkfifo.c: New file.
42292
42293         readlink: detect FreeBSD bug
42294         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42295         slash on symlink.
42296         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42297         * tests/test-readlink.h (test_readlink): Enhance test.
42298
42299         symlink: detect FreeBSD bug
42300         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42301         slash on symlink.
42302         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42303         * tests/test-symlink.h (test_symlink): Enhance test.
42304
42305 2009-11-10  Eric Blake  <ebb9@byu.net>
42306
42307         link: detect FreeBSD bug
42308         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42309         symlink.
42310         * doc/posix-functions/link.texi (link): Document the bug.
42311         * tests/test-link.h (test_link): Enhance test.
42312         * tests/test-linkat.c (main): Update caller.
42313
42314         unlink, remove: detect FreeBSD bug
42315         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42316         slash on symlink.
42317         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42318         * doc/posix-functions/remove.texi (remove): Likewise.
42319         * tests/test-unlink.h (test_unlink): Enhance test.
42320         * tests/test-remove.c (main): Likewise.
42321
42322 2009-11-09  Eric Blake  <ebb9@byu.net>
42323
42324         rename: detect FreeBSD bug
42325         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42326         slash on symlink.
42327         * modules/renameat-tests (Depends-on): Add filenamecat.
42328         * tests/test-rename.h (test_rename): Allow one more errno.
42329         * tests/test-renameat.c (main): Likewise.
42330         * doc/posix-functions/rename.texi (rename): Document the bug.
42331
42332         open: detect FreeBSD bug
42333         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42334         symlink.
42335         * doc/posix-functions/open.texi (open): Document the bug.
42336         * doc/posix-functions/utimes.texi (utimes): Likewise.
42337         * tests/test-open.h (test_open): Add parameters, and test symlink
42338         handling.
42339         * tests/test-open.c (main): Adjust caller.
42340         * tests/test-fcntl-safer.c (main): Likewise.
42341         * modules/open-tests (Depends-on): Add stdbool, symlink.
42342         * modules/fcntl-safer-tests (Depends-on): Likewise.
42343         * tests/test-openat.c (main): Add test-open tests.
42344
42345         stat: detect FreeBSD bug
42346         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42347         symlink.
42348         * doc/posix-functions/stat.texi (stat): Document the bug.
42349         * tests/test-stat.h (test_stat_func): Add argument.
42350         * tests/test-stat.c (main): Adjust caller.
42351         * tests/test-fstatat.c (main): Likewise.
42352         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42353         Reported by Jim Meyering.
42354
42355 2009-11-09  James Youngman  <jay@gnu.org>
42356
42357         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42358         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42359
42360 2009-11-08  Jim Meyering  <meyering@redhat.com>
42361
42362         utimens: remove invalid futimesat call
42363         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42364         It used the file descriptor of the target file as the DIR_FD
42365         parameter and NULL as the file name.  That caused failure with
42366         errno == EFAULT on FreeBSD-8.0-rc2
42367
42368 2009-11-07  Eric Blake  <ebb9@byu.net>
42369
42370         fflush, freadseek: use fseeko, not fseek
42371         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42372         (clear_ungetc_buffer): Avoid potential problems on large files.
42373         * lib/freadseek.c (freadseek): Likewise.
42374         * modules/freadseek (Depends-on): Add fseeko.
42375         * modules/fseek (configure.ac): Set a witness.
42376         * tests/test-fflush.c (main): Use fseeko.
42377         * tests/test-fpurge.c (fseek): Disable link warning.
42378         * tests/test-freadable.c (fseek): Likewise.
42379         * tests/test-freading.c (fseek): Likewise.
42380         * tests/test-fseeko.c (fseek): Likewise.
42381         * tests/test-ftell.c (fseek): Likewise.
42382         * tests/test-ftello.c (fseek): Likewise.
42383         * tests/test-fwritable.c (fseek): Likewise.
42384         * tests/test-fwriting.c (fseek): Likewise.
42385
42386 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42387
42388         * modules/memchr (Depends-on): Drop getpagesize dependency.
42389
42390 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42391
42392         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42393         Reported by Ludovic Courtès.
42394         * build-aux/pmccabe2html: Improve example usage.
42395         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42396
42397 2009-11-06  Jim Meyering  <meyering@redhat.com>
42398
42399         do-release-commit-and-tag: New module.
42400         Automate the release-commit and tag process.
42401         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42402         * modules/do-release-commit-and-tag: New file.
42403         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42404
42405 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42406
42407         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42408         because test-select.c uses inet_pton.
42409
42410 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42411
42412         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42413         GETADDRINFO_LIB.  Bump serial number.
42414         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42415         Suggested by Eric Blake <ebb9@byu.net>.
42416
42417 2009-11-05  Eric Blake  <ebb9@byu.net>
42418
42419         strtod: detect darwin bug
42420         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42421         Reported by Leo Davis.
42422
42423         freopen-safer: new module
42424         * modules/freopen-safer: New module.
42425         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42426         * lib/freopen-safer.c (freopen_safer): New file.
42427         * lib/stdio-safer.h (freopen_safer): New declaration.
42428         * lib/stdio--.h (freopen): New override.
42429         * MODULES.html.sh (File stream based Input/Output): Mention it.
42430         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42431         freopen-safer module.
42432         * doc/posix-functions/stderr.texi (stderr): Likewise.
42433         * doc/posix-functions/stdin.texi (stdin): Likewise.
42434         * doc/posix-functions/stdout.texi (stdout): Likewise.
42435         * modules/freopen-safer-tests: New test.
42436         * tests/test-reopen-safer.c: New file.
42437
42438 2009-11-05  Jim Meyering  <meyering@redhat.com>
42439
42440         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42441         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42442
42443 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42444
42445         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42446
42447 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42448
42449         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42450
42451 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42452
42453         Fix link error.
42454         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42455         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42456
42457 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42458
42459         * tests/test-func.c: Also test value of __func__.
42460
42461 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42462
42463         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42464         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42465
42466 2009-11-05  Bruno Haible  <bruno@clisp.org>
42467
42468         Fix link error.
42469         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42470         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42471         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42472
42473 2009-11-05  Bruno Haible  <bruno@clisp.org>
42474
42475         Tests for module 'inet_pton'.
42476         * modules/inet_pton-tests: New file.
42477         * tests/test-inet_pton.c: New file.
42478
42479 2009-11-05  Bruno Haible  <bruno@clisp.org>
42480
42481         Tests for module 'inet_ntop'.
42482         * modules/inet_ntop-tests: New file.
42483         * tests/test-inet_ntop.c: New file.
42484
42485 2009-11-04  Eric Blake  <ebb9@byu.net>
42486
42487         stdlib-safer: wrap all mkstemp variants
42488         * modules/mkostemp (configure.ac): Set witness.
42489         * modules/mkostemps (configure.ac): Likewise.
42490         * modules/mkstemps (configure.ac): Likewise.
42491         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42492         (mkstemps_safer): Wrap more functions.
42493         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42494         wrapping.
42495         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42496         (mkstemps_safer): Implement the wrappers.
42497
42498         mkstemps, mkostemps: new modules
42499         * modules/mkostemps: New module.
42500         * modules/mkstemps: Likewise.
42501         * lib/mkostemps.c (mkostemps): New file.
42502         * lib/mkstemps.c (mkstemps): Likewise.
42503         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42504         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42506         * modules/stdlib (Makefile.am): Substitute them.
42507         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42508         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42509         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42510         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42511         * MODULES.html.sh (File system functions): Mention them.
42512
42513         tempname: resync from glibc
42514         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42515         same values for __GT_FILE as glibc.  Abort even when assertions
42516         are disabled.
42517         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42518         match its value otherwise.  Allow idempotent inclusion.
42519         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42520         * lib/mkostemp.c (mkostemp): Likewise.
42521         * lib/mkstemp.c (mkstemp): Likewise.
42522         * lib/tmpfile.c (tmpfile): Likewise.
42523         * NEWS: Document this.
42524
42525         utimens: fix use of futimens on older Linux
42526         * lib/utimens.c (fdutimens): Use updated, rather than original,
42527         timespec to avoid bug in older Linux kernel.
42528         Reported by Simon Josefsson.
42529
42530 2009-11-04  Bruno Haible  <bruno@clisp.org>
42531
42532         Make num_processors more flexible and consistent.
42533         * lib/nproc.h (enum nproc_query): New type.
42534         (num_processors): Add a 'query' argument.
42535         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42536         (num_processors): Add a 'query' argument. Test the value of the
42537         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42538         mingw, count the number of CPUs available for the current process.
42539         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42540         Check for sched_getaffinity and sched_getaffinity_np.
42541         * modules/nproc (Depends-on): Add c-ctype, extensions.
42542         * NEWS: Mention the change.
42543
42544 2009-11-03  Bruno Haible  <bruno@clisp.org>
42545
42546         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42547
42548 2009-11-03  Jim Meyering  <meyering@redhat.com>
42549
42550         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42551         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42552         if it is defined.
42553
42554 2009-11-02  Eric Blake  <ebb9@byu.net>
42555
42556         mktime, timegm: share common declaration
42557         * lib/mktime-internal.h: New file.
42558         * lib/mktime.c: Use it rather than open-coding a declaration.
42559         * lib/timegm.c: Likewise.
42560         * modules/mktime (Files): Ship it.
42561         * modules/timegm (Files): Likewise.
42562         Suggested by Bruno Haible.
42563
42564         test-update-copyright: update test to match script changes
42565         * tests/test-update-copyright.sh: Avoid hard-coding perl
42566         location.  Don't update *.bak created by earlier runs.
42567
42568 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42569             Simon Josefsson  <simon@josefsson.org>
42570             Bruno Haible  <bruno@clisp.org>
42571
42572         Fix link error on Solaris 8.
42573         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42574         also in libnsl. Define also INET_PTON_LIB.
42575         * modules/inet_pton (Link): New section.
42576
42577 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42578             Bruno Haible  <bruno@clisp.org>
42579
42580         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42581         * modules/inet_ntop (Link): New section.
42582         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42583
42584 2009-11-02  Eric Blake  <ebb9@byu.net>
42585
42586         maint: avoid compiler warnings in m4 macros
42587         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42588         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42589
42590 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42591
42592         * m4/pmccabe2html.m4: Remove file.
42593         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42594         function.  Change maintainer.
42595         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42596         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42597         Courtès).
42598
42599 2009-10-31  Eric Blake  <ebb9@byu.net>
42600
42601         fseeko: fix m4 regression
42602         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42603         regression from 2009-10-27.
42604         Reported by Ralf Wildenhues.
42605
42606 2009-10-31  Jim Meyering  <meyering@redhat.com>
42607
42608         inttostr: aesthetics and improved (compile-time) safety
42609         Define inttype_is_signed rather than inttype_is_unsigned,
42610         since the sole use is via "#if inttype_is_signed".
42611         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42612         inttype_is_unsigned.
42613         * lib/offtostr.c (inttype_is_signed): Likewise.
42614         * lib/uinttostr.c (inttype_is_signed): Likewise.
42615         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42616         * lib/inttostr.c (inttostr): Use verify to cross-check the
42617         inttype_is_signed value and the signedness of the actual type.
42618         * modules/inttostr (Depends-on): Add verify.
42619
42620 2009-10-30  Eric Blake  <ebb9@byu.net>
42621
42622         build: avoid compiler warnings
42623         * lib/fchmodat.c (lchmod): Mark unused variables.
42624         * lib/getopt.c (_getopt_initialize): Likewise.
42625         * lib/mktime.c (__mktime_internal): Provide prototype.
42626         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42627         older gcc that do not understand #pragma GCC diagnostic.
42628         * lib/uinttostr.c (inttype_is_unsigned): Define.
42629         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42630
42631 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42632
42633         stat: fix compilation on AIX
42634         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42635         only see struct stat64.
42636
42637 2009-10-30  Eric Blake  <ebb9@byu.net>
42638
42639         exclude: make more robust
42640         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42641         rather than masking a coding bug.
42642         Suggested by Bruno Haible.
42643
42644 2009-10-30  Jim Meyering  <meyering@redhat.com>
42645
42646         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42647         Rather than putting #!/usr/bin/perl on the first line,
42648         start with a variant of what's recommended by "man perlrun" that
42649         invokes the first "perl" program from your shell's search path.
42650         * build-aux/gitlog-to-changelog: Replace #!... as above.
42651         Add a "Local Variables" perl mode setting.
42652         Prompted by a patch from Ludovic Courtès.
42653         Improved by Eric Blake.
42654         * build-aux/useless-if-before-free: Likewise.
42655         * build-aux/announce-gen: Likewise.
42656         * build-aux/update-copyright: Likewise.
42657
42658 2009-10-29  Eric Blake  <ebb9@byu.net>
42659
42660         filenamecat-lgpl: adjust clients
42661         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42662         filenamecat.
42663         * modules/renameat (Depends-on): Likewise.
42664
42665         filenamecat: split into filenamecat-lgpl
42666         * modules/filenamecat-lgpl: New module.
42667         * modules/filenamecat (Files): Move library-safe files into
42668         filenamecat-lgpl.
42669         (Depends-on): Add filenamecat-lgpl.
42670         (configure.ac): Declare witness.
42671         * lib/filenamecat.h (file_name_concat): Only declare when using
42672         GPL module.
42673         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42674         Move...
42675         * lib/filenamecat-lgpl.c: ...into new file.
42676         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42677         (gl_FILE_NAME_CONCAT): Use it.
42678         * MODULES.html.sh (File system functions): Mention new module.
42679
42680         argp: avoid memory leak
42681         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42682         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42683         base_name, since the latter malloc()s and can call exit().
42684         Leak introduced 2006-07-03.
42685
42686         dirname-lgpl: adjust clients that don't need full dirname
42687         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42688         * modules/filenamecat (Depends-on): Likewise.
42689         * modules/linkat (Depends-on): Likewise.
42690         * modules/mkancesdirs (Depends-on): Likewise.
42691         * modules/mkdir (Depends-on): Likewise.
42692         * modules/openat (Depends-on): Likewise.
42693         * modules/savewd (Depends-on): Likewise.
42694         * modules/rename (Depends-on): Likewise.
42695         (License): Relax license.
42696         * modules/mkdir-tests (Depends-on): Drop progname.
42697         (Makefile.am): Delete unneeded LDADD.
42698         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42699
42700         dirname: split into dirname-lgpl
42701         * modules/dirname-lgpl: New module.
42702         * modules/dirname (Files): Move library-safe files into
42703         dirname-lgpl.
42704         (Depends-on): Add dirname-lgpl.
42705         (configure.ac): Declare witness.
42706         * modules/double-slash-root (License): Relax license.
42707         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42708         module.
42709         * lib/dirname.c (dir_len, mdir_name): Move...
42710         * lib/dirname-lgpl.c: ...into new file.
42711         * lib/basename.c (last_component, base_len): Move...
42712         * lib/basename-lgpl.c: ...into new file.
42713         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42714         (gl_DIRNAME): Use it.
42715         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42716         Mention new module.
42717         * modules/dirname-tests (Depends-on): Add progname.
42718         * tests/test-dirname.c (program_name): Delete.
42719
42720         mkdir: make safe for libraries
42721         * modules/mkdir (Depends-on): Drop xalloc.
42722         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42723         exit.
42724
42725         tests: avoid some compiler warnings
42726         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42727         literals.
42728         * tests/test-memchr.c (main): Avoid type mismatch.
42729         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42730         * tests/test-base64.c (main): Likewise.
42731         * tests/test-getdelim.c (main): Likewise.
42732         * tests/test-gethostname.c (main): Likewise.
42733         * tests/test-getline.c (main): Likewise.
42734         * tests/test-netinet_in.c (main): Likewise.
42735         * tests/test-select.c (open_server_socket, main): Likewise.
42736         * tests/test-select-stdin.c (main): Likewise.
42737         * tests/test-sockets.c (main): Likewise.
42738         * tests/test-strsignal.c (main): Likewise.
42739         * tests/test-sys_select.c (main): Likewise.
42740         * tests/test-sys_socket.c (main): Likewise.
42741         * tests/test-u64.c (main): Likewise.
42742         * tests/test-xfprintf-posix.c (main): Likewise.
42743         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42744
42745         sockets: avoid compiler warning
42746         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42747
42748         maint: detect usage(1) and other suspicious exits
42749         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42750
42751 2009-10-29  Jim Meyering  <meyering@redhat.com>
42752
42753         timespec: long-to-int truncation could make timespec_cmp malfunction
42754         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42755         a multiple of 2^32 nanoseconds as no difference.
42756
42757 2009-10-28  Jim Meyering  <meyering@redhat.com>
42758
42759         fprintftime: wrap macro code argument in "do {...} while(0)"
42760         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42761         cpy macro must be a statement that can be followed by a semicolon.
42762         Now that the else clause contains a comment and is hence longer
42763         than one line, I require curly braces.  That in turn requires
42764         that we wrap this code block in the standard do...while(0).
42765
42766         fprintftime: remove stray semicolon from previous change
42767         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42768
42769         fprintftime: avoid a warning about ignored fwrite return value
42770         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42771         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42772         that is unsafe.
42773         * modules/fprintftime (Depends-on): Add ignore-value.
42774
42775         exclude: avoid an unwarranted warning
42776         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42777
42778 2009-10-27  Eric Blake  <ebb9@byu.net>
42779
42780         fseek: avoid compilation failure when fflush is replaced
42781         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42782         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42783         module is in use.
42784         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42785         module is not in use; since REPLACE_FSEEK worked otherwise.
42786         (GNULIB_FTELLO): Likewise for ftell.
42787         Reported by Ian Beckwith and others.
42788
42789 2009-10-27  Bruno Haible  <bruno@clisp.org>
42790
42791         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42792         Reported by Jim Meyering.
42793
42794 2009-10-27  Jim Meyering  <jim@meyering.net>
42795             Bruno Haible  <bruno@clisp.org>
42796
42797         Avoid warning despite dropping the return value of fwrite.
42798         * lib/unicodeio.c: Include ignore-value.h.
42799         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42800         * modules/unicodeio (Depends-on): Add ignore-value.
42801
42802 2009-10-26  Eric Blake  <ebb9@byu.net>
42803
42804         areadlinkat: fix fallback path
42805         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42806         pointer and zero.
42807
42808 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42809
42810         Use a better IO block size for modern systems
42811         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42812         * lib/md2.c: Likewise.
42813         * lib/md4.c: Likewise.
42814         * lib/md5.c: Likewise.
42815         * lib/sha1.c: Likewise.
42816         * lib/sha256.c: Likewise.
42817         * lib/sha512.c: Likewise.
42818
42819 2009-10-22  Eric Blake  <ebb9@byu.net>
42820
42821         tests: avoid several compiler warnings
42822         * tests/test-getcwd.c (main): Avoid buffer underflow.
42823         * tests/test-getdate.c (main): String literals are not safe with
42824         putenv, so use setenv.  Declare unused argument.
42825         * modules/getdate-tests (Depends-on): Add setenv.
42826         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42827         problems with string literals in char *.
42828         * tests/test-hash.c (main): Avoid shadowing declaration.
42829         (insert_new): Treat string literals as char const *.
42830         * tests/test-getopt.h (test_getopt): Likewise.
42831         (getopt_loop): Alter types to minimize casting elsewhere.
42832         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42833         (test_getopt_long_posix): Likewise.
42834         (do_getopt_long): Add wrapper to minimize casting.
42835         * tests/test-atexit.c (clear_temp_file): Use void.
42836         * tests/test-areadlink-with-size.c (main): Declare unused
42837         arguments.
42838         * tests/test-areadlink.c (main): Likewise.
42839         * tests/test-areadlinkat-with-size.c (main): Likewise.
42840         * tests/test-areadlinkat.c (main): Likewise.
42841         * tests/test-canonicalize-lgpl.c (main): Likewise.
42842         * tests/test-canonicalize.c (main): Likewise.
42843         * tests/test-dirent-safer.c (main): Likewise.
42844         * tests/test-dirname.c (main): Likewise.
42845         * tests/test-dup2.c (main): Likewise.
42846         * tests/test-fchdir.c (main): Likewise.
42847         * tests/test-fcntl-h.c (main): Likewise.
42848         * tests/test-fcntl-safer.c (main): Likewise.
42849         * tests/test-fdopendir.c (main): Likewise.
42850         * tests/test-fdutimensat.c (main): Likewise.
42851         * tests/test-fflush.c (main): Likewise.
42852         * tests/test-filenamecat.c (main): Likewise.
42853         * tests/test-filevercmp.c (main): Likewise.
42854         * tests/test-fopen-safer.c (main): Likewise.
42855         * tests/test-fopen.c (main): Likewise.
42856         * tests/test-fpending.c (main): Likewise.
42857         * tests/test-fpurge.c (main): Likewise.
42858         * tests/test-freading.c (main): Likewise.
42859         * tests/test-fstatat.c (main): Likewise.
42860         * tests/test-fsync.c (main): Likewise.
42861         * tests/test-futimens.c (main): Likewise.
42862         * tests/test-getndelim2.c (main): Likewise.
42863         * tests/test-gettimeofday.c (main): Likewise.
42864         * tests/test-getopt.c (main): Likewise.
42865         * tests/test-i-ring.c (main): Likewise.
42866         * tests/test-inttypes.c (main): Likewise.
42867         * tests/test-link.c (main): Likewise.
42868         * tests/test-lstat.c (main): Likewise.
42869         * tests/test-math.c (main): Likewise.
42870         * tests/test-md5.c (main): Likewise.
42871         * tests/test-memchr2.c (main): Likewise.
42872         * tests/test-memrchr.c (main): Likewise.
42873         * tests/test-mkdir.c (main): Likewise.
42874         * tests/test-mkdirat.c (main): Likewise.
42875         * tests/test-mkfifoat.c (main): Likewise.
42876         * tests/test-open.c (main): Likewise.
42877         * tests/test-openat-safer.c (main): Likewise.
42878         * tests/test-openat.c (main): Likewise.
42879         * tests/test-quotearg.c (main): Likewise.
42880         * tests/test-rawmemchr.c (main): Likewise.
42881         * tests/test-readlink.c (main): Likewise.
42882         * tests/test-remove.c (main): Likewise.
42883         * tests/test-rename.c (main): Likewise.
42884         * tests/test-renameat.c (main): Likewise.
42885         * tests/test-rmdir.c (main): Likewise.
42886         * tests/test-sha1.c (main): Likewise.
42887         * tests/test-signal.c (main): Likewise.
42888         * tests/test-sigaction.c (main): Likewise.
42889         * tests/test-stat.c (main): Likewise.
42890         * tests/test-stat-time.c (main): Likewise.
42891         * tests/test-stddef.c (main): Likewise.
42892         * tests/test-stdint.c (main): Likewise.
42893         * tests/test-stdio.c (main): Likewise.
42894         * tests/test-stdlib.c (main): Likewise.
42895         * tests/test-strchrnul.c (main): Likewise.
42896         * tests/test-strerror.c (main): Likewise.
42897         * tests/test-string.c (main): Likewise.
42898         * tests/test-strtod.c (main): Likewise.
42899         * tests/test-strverscmp.c (main): Likewise.
42900         * tests/test-symlink.c (main): Likewise.
42901         * tests/test-symlinkat.c (main): Likewise.
42902         * tests/test-sys_stat.c (main): Likewise.
42903         * tests/test-sys_time.c (main): Likewise.
42904         * tests/test-time.c (main): Likewise.
42905         * tests/test-unistd.c (main): Likewise.
42906         * tests/test-unlink.c (main): Likewise.
42907         * tests/test-unlinkat.c (main): Likewise.
42908         * tests/test-utimens.c (main): Likewise.
42909         * tests/test-utimensat.c (main): Likewise.
42910         * tests/test-version-etc.c (main): Likewise.
42911         * tests/test-wchar.c (main): Likewise.
42912         * tests/test-wctype.c (main): Likewise.
42913         * tests/test-xprintf-posix.c (main): Likewise.
42914         * tests/test-posixtm.c (main): Likewise.
42915         (STREQ): Delete unused macro.
42916         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42917         shadowed variables.
42918         * tests/test-memchr.c (main): Likewise.
42919
42920 2009-10-21  Eric Blake  <ebb9@byu.net>
42921
42922         areadlinkat: avoid failure on older glibc
42923         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42924         rather than mis-comparing 0 against FUNC_RESULT of char*.
42925
42926 2009-10-21  Bruno Haible  <bruno@clisp.org>
42927
42928         * modules/stpncpy (License): Relicense under LGPLv2+.
42929         Reported by David Lutterkort <lutter@redhat.com>.
42930
42931 2009-10-20  Eric Blake  <ebb9@byu.net>
42932
42933         utimensat: work around Solaris 9 bug
42934         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42935         has trailing slash bugs.
42936         * tests/test-lutimens.h (test_lutimens): Enhance test.
42937         * tests/test-utimens.h (test_utimens): Likewise.
42938         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42939         * doc/posix-functions/utimes.texi (utimes): Likewise.
42940         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42941         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42942         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42943         * doc/posix-functions/futimens.texi (futimens): Likewise.
42944
42945         fdutimensat: new module
42946         * modules/fdutimensat: New file.
42947         * lib/fdutimensat.c (fdutimensat): Likewise.
42948         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42949         * MODULES.html.sh (File system functions): Mention module.
42950         * modules/fdutimensat-tests: New test.
42951         * tests/test-fdutimensat.c: Likewise.
42952
42953         doc: regenerate INSTALL
42954         * doc/INSTALL: Reflect recent autoconf update.
42955         * doc/INSTALL.ISO: Likewise.
42956         * doc/INSTALL.UTF-8: Likewise.
42957
42958 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42959
42960         acl: warn if ACL support is not detected
42961         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42962
42963 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42964
42965         * lib/nproc.h: Add extern "C" block for C++.
42966
42967 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42968             Bruno Haible  <bruno@clisp.org>
42969
42970         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42971         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42972         * doc/posix-functions/isalpha.texi: Likewise.
42973         * doc/posix-functions/isblank.texi: Likewise.
42974         * doc/posix-functions/iscntrl.texi: Likewise.
42975         * doc/posix-functions/isdigit.texi: Likewise.
42976         * doc/posix-functions/isgraph.texi: Likewise.
42977         * doc/posix-functions/islower.texi: Likewise.
42978         * doc/posix-functions/isprint.texi: Likewise.
42979         * doc/posix-functions/ispunct.texi: Likewise.
42980         * doc/posix-functions/isspace.texi: Likewise.
42981         * doc/posix-functions/isupper.texi: Likewise.
42982         * doc/posix-functions/isxdigit.texi: Likewise.
42983
42984 2009-10-18  Bruno Haible  <bruno@clisp.org>
42985
42986         Tests for module 'isblank'.
42987         * modules/isblank-tests: New file.
42988         * tests/test-isblank.c: New file.
42989
42990         New module 'isblank'.
42991         * lib/isblank.c: New file.
42992         * m4/isblank.m4: New file.
42993         * modules/isblank: New file.
42994         * doc/posix-functions/isblank.texi: Mention the new module.
42995
42996 2009-10-18  Bruno Haible  <bruno@clisp.org>
42997
42998         New module 'ctype'.
42999         * lib/ctype.in.h: New file.
43000         * m4/ctype.m4: New file.
43001         * modules/ctype: New file.
43002         * doc/posix-headers/ctype.texi: Mention the new module.
43003
43004 2009-10-18  Jim Meyering  <meyering@redhat.com>
43005
43006         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43007         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43008         right after its initialization, rather than farther down.
43009         Keeping these in close proximity makes it easier to ensure
43010         that each such variable is initialized.  E.g.,
43011
43012             LIB_CLOCK_GETTIME=
43013             AC_SUBST([LIB_CLOCK_GETTIME])
43014
43015         This change also increments these serial numbers.
43016         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43017         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43019
43020 2009-10-18  Bruno Haible  <bruno@clisp.org>
43021
43022         Don't let environment variables perturb build.
43023         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43024         (gl_PREREQ_GETHRXTIME): ... not here.
43025
43026 2009-10-18  Bruno Haible  <bruno@clisp.org>
43027
43028         Avoid symlink attack in localcharset module.
43029         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43030         (O_NOFOLLOW): Define fallback.
43031         (get_charset_aliases): Don't open the file if it is a symbolic link.
43032         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43033         gl_FCNTL_H.
43034         (gl_FCNTL_H): Require it.
43035         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43036         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43037         Reported by Fergal Glynn <fglynn@veracode.com>.
43038
43039 2009-10-18  Bruno Haible  <bruno@clisp.org>
43040
43041         Implement nproc for mingw.
43042         * lib/nproc.c: Include <windows.h>
43043         (num_processors): On native Windows platforms, try GetSystemInfo.
43044
43045 2009-10-18  Bruno Haible  <bruno@clisp.org>
43046
43047         Implement nproc for IRIX.
43048         * lib/nproc.c: Include <sys/sysmp.h>.
43049         (num_processors): On IRIX systems, try sysmp.
43050         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43051
43052 2009-10-18  Bruno Haible  <bruno@clisp.org>
43053
43054         Implement nproc for HP-UX.
43055         * lib/nproc.c: Include <sys/pstat.h>
43056         (num_processors): On HP-UX systems, try pstat_getdynamic.
43057         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43058         pstat_getdynamic.
43059
43060 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43061             Bruno Haible  <bruno@clisp.org>
43062
43063         Implement nproc for NetBSD, OpenBSD.
43064         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43065         (ARRAY_SIZE): New macro.
43066         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43067         * m4/nproc.m4: New file.
43068         * modules/nproc (Files): Add m4/nproc.m4.
43069         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43070         (Makefile.am): Instead, augment lib_SOURCES.
43071
43072 2009-10-18  Bruno Haible  <bruno@clisp.org>
43073
43074         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43075         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43076         sys/param.h.
43077
43078 2009-10-16  Eric Blake  <ebb9@byu.net>
43079
43080         utimensat: new module
43081         * modules/utimensat: New file.
43082         * lib/utimensat.c (utimensat): Likewise.
43083         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43084         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43085         so we can work around Linux bugs.
43086         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43087         * modules/sys_stat (Makefile.am): Substitute them.
43088         * lib/sys_stat.in.h (utimensat): Declare it.
43089         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43090         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43091         * modules/utimensat-tests: New test.
43092         * tests/test-utimensat.c: Likewise.
43093
43094         utimens: let lutimens work on non-symlinks
43095         * lib/utimens.c (lutimens): Fall back to utimens rather than
43096         failing with ENOSYS, when file is not a symlink.
43097         (utimens): Reduce redirection.
43098         * tests/test-lutimens.h (test_lutimens): Update test to cover
43099         non-symlinks.
43100         * tests/test-utimens.h (test_utimens): Update test to cover
43101         symlinks.
43102         * tests/test-utimens.c (main): Update caller.
43103
43104         utimens: cache whether utimensat syscall works
43105         * lib/utimens.c (utimensat_works_really): New cache variable.
43106         (fdutimens, lutimens): Use it to avoid failing syscall.
43107
43108         test-stat-time, test-utimens: improve portability
43109         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43110         ext4 on alpha, and for cygwin.
43111         * tests/test-utimens-common.h: New file.
43112         (nap): Factor delays into single function.
43113         * tests/test-lutimens.h (test_lutimens): Use new header.
43114         * tests/test-futimens.h (test_futimens): Likewise.
43115         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43116         timestamps to occur from same machine, as was done previously for
43117         test_utimens.
43118         * modules/utimens-tests (Files): Ship new file.
43119         * modules/futimens-tests (Files): Likewise.
43120         Reported in part by Jim Meyering.
43121
43122         sys_stat: sort replacement declarations
43123         * lib/sys_stat.in.h: Sort declarations.
43124         * lib/futimens.c (futimens): Fix typo.
43125
43126 2009-10-15  Jim Meyering  <meyering@redhat.com>
43127
43128         don't let environment settings perturb build
43129         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43130         could cause a configure-time and/or build-time malfunction.
43131         Typically, a configure-time function-in-library test is performed
43132         via code like this:
43133
43134           LIB_VAR=
43135           AC_SUBST([LIB_VAR])
43136           prefix_saved_LIBS=$LIBS
43137             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43138                        [test "$ac_cv_search_FUNC" = "none required" ||
43139                         LIB_VAR=$ac_cv_search_FUNC])
43140           LIBS=$prefix_saved_LIBS
43141
43142         However, in each of the files affected by this change, the LIB_VAR=
43143         initialization was omitted.  Thus, when set in the environment, its
43144         value would propagate into generated Makefiles when FUNC is not found
43145         in LIB_NAME.
43146         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43147         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43149
43150 2009-10-14  Eric Blake  <ebb9@byu.net>
43151
43152         fchdir: avoid infinite recursion in mingw
43153         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43154         recursing.
43155
43156         test-stat-time: port to mingw
43157         * tests/test-stat-time.c (force_unlink): Return a value.
43158         (test_ctime) [W32]: Fix compilation error.
43159         (nap): Don't call usleep with too large an argument.  Use
43160         force_unlink.
43161         * doc/pastposix-functions/usleep.texi (usleep): Document the
43162         portability issue.
43163
43164 2009-10-13  Jim Meyering  <meyering@redhat.com>
43165
43166         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43167         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43168         * modules/pipe-filter-ii: Likewise.
43169         * modules/sys_socket-tests: Likewise.
43170         * modules/tsearch-tests: Likewise.
43171         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43172         (check): Depend on it.
43173
43174 2009-10-12  Eric Blake  <ebb9@byu.net>
43175
43176         utimens-tests: port to NFS file systems
43177         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43178         comparisons to avoid spurious failures from timestamp drift
43179         between NFS machines.
43180
43181 2009-10-12  Eric Blake  <ebb9@byu.net>
43182
43183         stat-time-tests: minor cleanups
43184         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43185         * tests/test-stat-time.c (nap): Separate assignment from call.
43186         Suggested by Paolo Bonzini and Bruno Haible.
43187
43188         sys_stat: guarantee struct timespec
43189         * lib/sys_stat.in.h (includes): Always include <time.h>
43190         * modules/sys_stat (Depends-on): Add time.
43191         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43192         mode_t permission values.
43193         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43194         get at subsecond timestamps.
43195
43196 2009-10-10  Eric Blake  <ebb9@byu.net>
43197
43198         futimens: new module
43199         * modules/futimens: New file.
43200         * lib/futimens.c (futimens): Likewise.
43201         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43202         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43203         we can work around Linux bugs.
43204         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43205         * modules/sys_stat (Makefile.am): Substitute them.
43206         * lib/sys_stat.in.h (futimens): Declare it.
43207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43208         * doc/posix-functions/futimens.texi (futimens): Likewise.
43209         * modules/futimens-tests: New test.
43210         * tests/test-futimens.c: Likewise.
43211
43212         utimens: introduce fdutimens
43213         * lib/utimens.h (fdutimens): New prototype.
43214         * lib/utimens.c (gl_futimens): Move guts...
43215         (fdutimens): ...to new interface.
43216         * tests/test-utimens.c (do_fdutimens): Use it.
43217
43218         utimens: add UTIME_NOW and UTIME_OMIT support
43219         * lib/utimens.c (validate_timespec, update_timespec): New helper
43220         functions.
43221         (gl_futimens, lutimens): Use them.
43222         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43223         stdbool, sys_stat.
43224         (Link): Mention resulting library dependency.
43225         * modules/utimecmp (Link): Likewise.
43226         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43227         (Makefile.am): Pick up library dependency.
43228         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43229         definition.
43230         * tests/test-sys_stat.c: Test the definitions.
43231         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43232         * NEWS: Document library dependency.
43233
43234         utimecmp: support symlink timestamps
43235         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43236         hashing when possible.  Use pathconf when available.
43237         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43238         * modules/utimecmp (Depends-on): Add lstat.
43239
43240         utimens: add lutimens interface
43241         * lib/utimens.c (lutimens): New function.
43242         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43243         * lib/utimens.h (lutimens): Declare new interface.
43244         * tests/test-utimens.c (main): Enhance test.
43245         * tests/test-lutimens.h (test_lutimens): New file.
43246         * modules/utimens-tests (Files): Distribute it.
43247         (Depends-on): Add symlink.
43248         (configure.ac): Check for usleep.
43249
43250         utimens: validate futimens usage
43251         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43252         fewer syscalls on failure later on.  Avoid compiler warning on
43253         mingw.
43254         * modules/utimens (Depends-on): Add dup2.
43255
43256         utimens: add test
43257         * modules/utimens-tests: New test.
43258         * tests/test-utimens.h: New file.
43259         * tests/test-futimens.h: Likewise.
43260         * tests/test-utimens.c: Likewise.
43261
43262         doc: mention timestamp portability issues
43263         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43264         instead.
43265         * doc/posix-functions/utime.texi (utime): Likewise.
43266         * doc/posix-functions/utimes.texi (utimes): Likewise.
43267         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43268         instead.
43269         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43270         module.
43271         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43272         Mention weakness with symlink timestamps.
43273         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43274         to utimensat/futimens instead.
43275         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43276
43277         test-dup2: enhance test
43278         * tests/test-dup2.c (main): Also check AT_FDCWD.
43279
43280         test-stat-time: avoid more spurious failures
43281         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43282         xfs; and avoid race if the two timestamps cross quantization edge.
43283
43284         relocatable: prefer 'file system' over 'filesystem'
43285         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43286         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43287         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43288         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43289         * lib/relocatable.c (compute_curr_prefix): Likewise.
43290
43291 2009-10-10  Jim Meyering  <meyering@redhat.com>
43292
43293         stat-time-tests: check for the usleep function
43294         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43295
43296 2009-10-10  Bruno Haible  <bruno@clisp.org>
43297
43298         * modules/xnanosleep: Put the Link section after the Include section.
43299
43300 2009-10-09  Eric Blake  <ebb9@byu.net>
43301
43302         dup2: work around FreeBSD 6.1 bug
43303         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43304         * doc/posix-functions/dup2.texi (dup2): Document it.
43305         Reported by Nelson H. F. Beebe and Jim Meyering.
43306
43307         test-stat-time: port to buggy NFS clients
43308         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43309         (test_ctime): Also skip test if mtime and ctime are skewed.
43310
43311         maint: prefer 'file system' over 'filesystem'
43312         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43313         * doc/posix-functions/lstat.texi (lstat): Likewise.
43314         * lib/file-has-acl.c (file_has_acl): Likewise.
43315         * lib/fwriteerror.c [TEST]: Likewise.
43316         * tests/test-areadlink.h (test_areadlink): Likewise.
43317         * tests/test-areadlinkat-with-size.c (main): Likewise.
43318         * tests/test-areadlinkat.c (main): Likewise.
43319         * tests/test-canonicalize-lgpl.c (main): Likewise.
43320         * tests/test-canonicalize.c (main): Likewise.
43321         * tests/test-fstatat.c (main): Likewise.
43322         * tests/test-linkat.c (main): Likewise.
43323         * tests/test-lstat.h (test_lstat_func): Likewise.
43324         * tests/test-mkdir.h (test_mkdir): Likewise.
43325         * tests/test-readlink.h (test_readlink): Likewise.
43326         * tests/test-remove.c (main): Likewise.
43327         * tests/test-rename.h (test_rename): Likewise.
43328         * tests/test-renameat.c (main): Likewise.
43329         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43330         * tests/test-symlink.h (test_symlink): Likewise.
43331         * tests/test-symlinkat.c (main): Likewise.
43332         * tests/test-unlink.h (test_unlink_func): Likewise.
43333         * tests/test-unlinkat.c (main): Likewise.
43334
43335         maint: make realtime library usage explicit
43336         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43337         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43338         * modules/settime (Link): Likewise.
43339         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43340
43341         test-stat-time: speed up execution
43342         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43343         warning on mingw.
43344         (nap): New helper function.
43345         (prepare_test): Use it to reduce sleep time.
43346         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43347         execution.
43348         * modules/stat-time-tests (configure.ac): Check for usleep.
43349
43350 2009-10-09  Jim Meyering  <meyering@redhat.com>
43351
43352         selinux-h: always use getfilecon wrappers
43353         * lib/getfilecon.c: New file.
43354         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43355         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43356         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43357         (fgetfilecon): Provide a stub.
43358         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43359         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43360         file unconditionally.
43361         When <selinux/selinux.h> is found, arrange to use wrappers.
43362         * modules/selinux-h (Files): Add getfilecon.c.
43363         (Makefile.am): Substitute include-next-related bits
43364         into the now-always-generated selinux/selinux.h file.
43365         * doc/glibc-functions/lgetfilecon.texi: New file.
43366         * doc/glibc-functions/fgetfilecon.texi: New file.
43367         * doc/glibc-functions/getfilecon.texi: New file.
43368         * doc/glibc-functions/getfilecon-desc.texi: New file.
43369         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43370         which to pull in the new files.
43371         * MODULES.html.sh (Misc): Add selinux-h.
43372
43373 2009-10-08  Jim Meyering  <meyering@redhat.com>
43374
43375         unistd: fix comment typo
43376         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43377
43378 2009-10-08  Eric Blake  <ebb9@byu.net>
43379
43380         areadlink: use SIZE_MAX consistently
43381         * modules/areadlink (Depends-on): Add stdint.
43382         * modules/areadlink-with-size (Depends-on): Likewise.
43383         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43384         gives NULL; drop sys/types, since unistd gives size_t; and add
43385         stdint for SIZE_MAX.
43386         (SIZE_MAX): Rely on headers.
43387         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43388         and add stdint.
43389         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43390         (SIZE_MAX): Likewise.
43391         (INITIAL_BUF_SIZE): Turn into enum.
43392         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43393
43394 2009-10-08  Jim Meyering  <meyering@redhat.com>
43395
43396         areadlinkat: avoid compilation failure
43397         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43398         Fix typo in comment.
43399
43400 2009-10-07  Eric Blake  <ebb9@byu.net>
43401
43402         areadlinkat-with-size: new module
43403         * modules/areadlinkat-with-size: New module.
43404         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43405         * lib/areadlink.h (areadlinkat): Declare it.
43406         * MODULES.html.sh (File system functions): Mention it.
43407         * modules/areadlinkat-with-size-tests: New test.
43408         * tests/test-areadlinkat-with-size.c: New file.
43409
43410         xreadlinkat: new module
43411         * modules/xreadlinkat: New module.
43412         * lib/xreadlinkat.c (xreadlinkat): New file.
43413         * lib/xreadlink.h (xreadlinkat): Declare it.
43414         * MODULES.html.sh (File system functions): Mention it.
43415
43416         areadlinkat: new module
43417         * lib/at-func.c (FUNC_FAIL): New define.
43418         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43419         * modules/areadlinkat: New module.
43420         * lib/linkat.c (areadlinkat): Move...
43421         * lib/areadlinkat.c (areadlinkat): ...to new file.
43422         * lib/areadlink.h (areadlinkat): Declare it.
43423         * modules/linkat (Depends-on): Add areadlinkat.
43424         * MODULES.html.sh (File system functions): Mention it.
43425         * modules/areadlinkat-tests: New test.
43426         * tests/test-areadlinkat.c: New file.
43427
43428         areadlink, areadlink-with-size: add tests
43429         * modules/areadlink-tests: New test.
43430         * modules/areadlink-with-size-tests: Likewise.
43431         * tests/test-areadlink.h: New file.
43432         * tests/test-areadlink.c: Likewise.
43433         * tests/test-areadlink-with-size.c: Likewise.
43434
43435         maint: minor cleanups
43436         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43437         _UNUSED_PARAMETER_ instead.
43438         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43439         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43440         * modules/linkat-tests (Files): Distribute test-link.h.
43441
43442         openat, utimens: whitespace cleanup
43443         * lib/openat.c: Prefer space throughout, rather than mix of 8
43444         spaces vs. tabs.
43445         * lib/at-func.c: Likewise.
43446         * lib/utimens.c: Likewise.
43447
43448         openat: avoid using wrong fd
43449         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43450         working directory chooses same fd.
43451         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43452
43453         mkdir, mkdirat: fix cygwin 1.5.x bug
43454         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43455         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43456         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43457         bug.
43458         (gl_PREREQ_MKDIR): Delete unused macro.
43459         * modules/mkdir (Files): Track file rename.
43460         (configure.ac): Update macro name.
43461         * modules/openat (Depends-on): Add mkdir.
43462         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43463
43464         mkdir, mkdirat: add tests
43465         * modules/mkdir-tests: New test.
43466         * tests/test-mkdir.h: New file.
43467         * tests/test-mkdir.c: Likewise.
43468         * tests/test-mkdirat.c: Likewise.
43469         * modules/openat-tests (Files): Add new files.
43470         (Makefile.am): Run new test.
43471
43472 2009-10-06  Eric Blake  <ebb9@byu.net>
43473
43474         doc: tweak *at function documentation
43475         * doc/posix-functions/faccessat.texi (faccessat): Mention
43476         known issue with replacement.
43477         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43478         * doc/posix-functions/linkat.texi (linkat): Likewise.
43479         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43480         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43481         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43482         * doc/posix-functions/renameat.texi (renameat): Likewise.
43483         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43484
43485         openat: fix GNU/Hurd bug in unlinkat
43486         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43487         broken.
43488         * doc/posix-functions/unlink.texi (unlink): Document this.
43489         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43490
43491         fdopendir: fix GNU/Hurd bug
43492         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43493         allowing non-directory fds.
43494         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43495         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43496         * modules/dirent (Makefile.am): Substitute it.
43497         * lib/dirent.in.h (fdopendir): Declare replacement.
43498         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43499         * tests/test-fdopendir.c (main): Test something other than
43500         /dev/null, since on Hurd that behaves like a directory.
43501
43502         test-symlink: port to GNU/Hurd
43503         * tests/test-symlink.h (test_symlink): Relax expected errno.
43504
43505         doc: tweak more cygwin information
43506         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43507         now compatible with glibc.
43508         * doc/posix-functions/getopt.texi (getopt): Likewise.
43509
43510         getopt-gnu: add another test
43511         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43512         guarantee behavior relied on by m4.
43513         * tests/test-getopt.c (main): Use it.
43514         * modules/getopt-posix-tests (Depends-on): Add setenv.
43515         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43516
43517         getopt: fix compilation on darwin
43518         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43519         include.
43520         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43521         Reported by Ludovic Courtès.
43522
43523 2009-10-06  Bruno Haible  <bruno@clisp.org>
43524
43525         * modules/size_max (Description): Discourage its use.
43526         Reported by Simon Josefsson.
43527
43528 2009-10-06  Jim Meyering  <meyering@redhat.com>
43529
43530         linkat: avoid compilation failure
43531         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43532
43533 2009-10-05  Eric Blake  <ebb9@byu.net>
43534
43535         linkat: support Linux 2.6.17
43536         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43537         linkat on Linux, but allow cache variable override.
43538         * lib/linkat.c (rpl_linkat): Define override.
43539         * modules/linkat (Depends-on): Add symlinkat.
43540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43541         * modules/unistd (Makefile.am): Substitute it.
43542         * lib/unistd.in.h (linkat): Declare replacement.
43543         Reported by Pádraig Brady.
43544
43545         quotearg: port test to systems with C.UTF-8 locale
43546         * tests/test-quotearg.c (struct result_strings): Add another
43547         member, differentiating between C.ASCII and C.UTF-8 handling.
43548         (compare_strings): Add parameter.
43549         (main): Adjust all callers.
43550
43551         getopt: avoid clash with FreeBSD _getopt_internal
43552         * lib/getopt.in.h (_getopt_internal): Override the name.
43553         * lib/getopt_int.h (includes): Pick up any overrides.
43554         Reported by Reuben Thomas.
43555
43556         hash: allow C89 compilation
43557         * lib/hash.c (check_tuning): Move declaration before statement.
43558         Reported by Reuben Thomas.
43559
43560 2009-10-05  Karl Berry  <karl@gnu.org>
43561
43562         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43563
43564 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43565             Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/uname.c (uname): Use a table-driven algorithm to compute
43568         Windows NT versions.
43569
43570 2009-10-04  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43573         program_invocation_short_name.
43574         * modules/progname (configure.ac): Test for presence of
43575         program_invocation_short_name.
43576         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43577
43578 2009-10-04  Bruno Haible  <bruno@clisp.org>
43579
43580         * lib/progname.c (set_program_name): Fix comment.
43581         Reported by Jim Meyering.
43582
43583 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43584             Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/uname.c: Include <string.h>.
43587         (uname): Do only one call to GetVersionEx in the common case.
43588
43589 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43590             Bruno Haible  <bruno@clisp.org>
43591
43592         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43593         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43594         (uname): Add support for Windows CE and various non-x86 CPU types.
43595
43596 2009-10-03  Bruno Haible  <bruno@clisp.org>
43597
43598         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43599         invocation to tests/configure.ac.
43600         Reported by Ian Beckwith <ianb@erislabs.net>.
43601
43602 2009-10-02  Eric Blake  <ebb9@byu.net>
43603
43604         fchdir: avoid compiler warning
43605         * lib/fchdir.c (canonicalize_file_name)
43606         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43607
43608         test-open: support mingw errno values
43609         * tests/test-open.h (test_open): Relax test.
43610         * tests/test-fopen.h (test_fopen): Likewise.
43611         * tests/test-openat-safer.c (main): Likewise.
43612
43613         open: fix opening directory on mingw
43614         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43615
43616         test-open: on GNU/Hurd, /dev/null is a directory
43617         * tests/test-fopen.h (main): Rename...
43618         (test_fopen): ...to this.  Use a guaranteed non-directory when
43619         confirming open behavior on trailing slash.
43620         * tests/test-openat-safer.c (main): Likewise.
43621         * tests/test-open.h (main): Likewise....
43622         (test_open): ...to this.
43623         * tests/test-fopen.c (main): Adjust caller.
43624         * tests/test-fopen-safer.c (main): Likewise.
43625         * tests/test-open.c (main): Likewise.
43626         * tests/test-fcntl-safer.c (main): Likewise.
43627         Reported by Samuel Thibault.
43628
43629         rename, fchdir: don't ignore chdir failure
43630         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43631         * lib/rename.c (rpl_rename) [W32]: Likewise.
43632         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43633         an empty destination directory if source cannot be renamed,
43634         although there is still possibility for failure.
43635         * doc/posix-functions/rename.texi (rename): Document the race.
43636         Reported by Jim Meyering.
43637
43638         maint: cleanup whitespace in recent commits
43639         * lib/rename.c (rpl_rename): Remove tabs.
43640         * tests/test-link.h (test_link): Likewise.
43641         * lib/fchdir.c (get_name): Likewise.
43642         Reported by Jim Meyering.
43643
43644 2009-10-02  Ben Pfaff  <blp@gnu.org>
43645
43646         relocatable-prog-wrapper: Add missing dependency on
43647         double-slash-root.
43648         * modules/relocatable-prog-wrapper: Add dependency.
43649         Reported by Ian Beckwith <ianb@erislabs.net>.
43650
43651 2009-10-02  Eric Blake  <ebb9@byu.net>
43652
43653         renameat: fix Solaris bugs
43654         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43655         needed fixing.
43656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43657         * modules/stdio (Makefile.am): Substitute it.
43658         * lib/stdio.in.h (renameat): Declare replacement.
43659         * lib/renameat.c (rpl_renameat): Implement fix.
43660
43661         renameat: new module
43662         * modules/renameat: New file.
43663         * lib/renameat.c (renameat): Likewise.
43664         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43666         * modules/stdio (Makefile.am): Substitute them.
43667         * lib/stdio.in.h (renameat): Declare it.
43668         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43669         * doc/posix-functions/renameat.texi (renameat): Likewise.
43670         * modules/renameat-tests: New test.
43671         * tests/test-renameat.c: Likewise.
43672
43673         rename: fix mingw bugs
43674         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43675         directory overwrite bugs.
43676
43677         rename: fix another cygwin 1.5 bug
43678         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43679         checks.
43680         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43681         unnecessary cygwin workarounds.  Also work around bug with moving
43682         full directory onto an empty one.
43683         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43684
43685         rename-dest-slash: merge into rename module
43686         * modules/rename-dest-slash (Status): Mark obsolete.
43687         (Depends-on): Add rename.
43688         (Files): Let rename do it all.
43689         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43690         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43691         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43692         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43693         * lib/rename.c (rpl_rename): Update comments.
43694
43695         rename: fix cygwin 1.5.x bugs
43696         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43697         * lib/rename.c (rpl_rename): Work around them.
43698         * modules/rename (Depends-on): Add same-inode.
43699
43700         rename: fix Solaris 10 bug
43701         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43702         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43703         was the only bug.
43704
43705         rename: fix Solaris 9 bug
43706         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43707         on non-directory.  Avoid calling exit.
43708         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43709         strdup.
43710         * modules/rename-tests (Depends-on): Drop lstat.
43711         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43712         (gl_PREREQ_RENAME): Delete unused macro.
43713
43714         rename-dest-slash: fix NetBSD bug
43715         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43716         links.
43717         * modules/rename-dest-slash (Depends-on): Add same-inode.
43718
43719         rename-tests: new test, exposes several platform bugs
43720         * modules/rename-tests: New file.
43721         * tests/test-rename.h: Likewise.
43722         * tests/test-rename.c: Likewise.
43723         * doc/posix-functions/rename.texi (rename): Improve documentation,
43724         including bugs that will eventually be fixed in gnulib.
43725
43726 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43727
43728         * lib/uname.c: Include <stdlib.h>
43729         (uname): Assume version info is available.
43730
43731 2009-10-02  Jim Meyering  <meyering@redhat.com>
43732
43733         gnu-web-doc-update: correct --help output
43734         * build-aux/gnu-web-doc-update: Make --help output relevant.
43735
43736         gnu-web-doc-update: add standard options
43737         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43738
43739         gnu-web-doc-update: New module.
43740         Use this script to automatically update the on-line web documentation
43741         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43742         * modules/gnu-web-doc-update: New file, from coreutils.
43743         * build-aux/gnu-web-doc-update: New script.
43744
43745 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43746
43747         link: LoadLibrary is not needed.
43748         * lib/link.c: Use GetModuleHandle.
43749
43750 2009-10-01  Eric Blake  <ebb9@byu.net>
43751
43752         getopt: bump serial number
43753         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43754         change.
43755
43756         tests: tighten link, rmdir, and remove tests
43757         * tests/test-link.h (includes): No need to use <config.h> here.
43758         Clean up if directory hard link was created, otherwise test for
43759         trailing '.'.
43760         * tests/test-linkat.c (main): Simplify.
43761         * tests/test-remove.c (main): Enhance test for trailing '.'.
43762         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43763
43764 2009-10-01  Jim Meyering  <meyering@redhat.com>
43765
43766         maint.mk: requiring "make major" was annoying, for a "minor" release.
43767         What is intended is "stable", to contrast with alpha and beta,
43768         so require "make stable", not "make major".
43769         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43770         (get_tool_versions): Likewise.
43771         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43772
43773 2009-09-30  Ben Pfaff  <blp@gnu.org>
43774
43775         Fix broken build of replacement for Windows tmpfile().
43776         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43777         flags argument added along with the 'mkostemp' module.
43778
43779 2009-09-28  Bruno Haible  <bruno@clisp.org>
43780
43781         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43782         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43783         to 'remove_elt'.
43784         (gl_list_remove): Update.
43785         * lib/gl_list.c (gl_list_remove): Update.
43786         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43787         to 'remove_elt'.
43788         (gl_oset_remove): Update.
43789         * lib/gl_list.c (gl_oset_remove): Update.
43790         Reported by Eric Blake.
43791
43792 2009-09-28  Eric Blake  <ebb9@byu.net>
43793
43794         doc: mention yet more cygwin 1.7 status
43795         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43796         cygwin.
43797         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43798         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43799
43800         argp: fix test failure
43801         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43802         that are not upper-case.  Pass correct range to tolower.
43803
43804 2009-09-27  Jim Meyering  <meyering@redhat.com>
43805
43806         test-yesno: work around sparc-dash here-document infelicity
43807         Without this change, the literal \177 byte in a here document
43808         would make dash 0.5.5.1-3 access uninitialized memory.
43809         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43810         Instead, use a marker, "@", and filter through tr to create the desired
43811         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43812
43813 2009-09-27  Bruno Haible  <bruno@clisp.org>
43814
43815         Disable untested support for new flavours of ACLs on AIX.
43816         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43817         progress.
43818         * lib/set-mode-acl.c (qset_acl): Likewise.
43819
43820 2008-12-07  Bruno Haible  <bruno@clisp.org>
43821
43822         Add support for new flavours of ACLs on AIX. (Untested.)
43823         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43824         (file_has_acl): Add support for newer AIX.
43825         * lib/set-mode-acl.c (qset_acl): Likewise.
43826         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43827         Rainer Tammer <tammer@tammer.net>.
43828
43829 2009-09-26  Eric Blake  <ebb9@byu.net>
43830
43831         argp: fix compilation of getopt
43832         * lib/getopt.in.h (includes): Use different guard than glibc.
43833         Reported by Sergey Poznyakoff.
43834
43835         doc: mention more cygwin 1.7 status
43836         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43837         bug.
43838         * doc/posix-functions/execl.texi (execl): Likewise.
43839         * doc/posix-functions/execle.texi (execle): Likewise.
43840         * doc/posix-functions/execlp.texi (execlp): Likewise.
43841         * doc/posix-functions/execv.texi (execv): Likewise.
43842         * doc/posix-functions/execve.texi (execve): Likewise.
43843         * doc/posix-functions/execvp.texi (execvp): Likewise.
43844         * doc/glibc-functions/canonicalize_file_name.texi
43845         (canonicalize_file_name): Cygwin 1.7 now provides this.
43846         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43847         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43848         on AT_SYMLINK_NOFOLLOW.
43849
43850 2009-09-24  Eric Blake  <ebb9@byu.net>
43851
43852         test-linkat: make test more robust
43853         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43854
43855         getopt: fix inclusion guards for cygwin
43856         * modules/getopt-posix (Depends-on): Add include-next.
43857         (Makefile.am): Substitute more items in replacement header.
43858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43859         <getopt.h>.
43860         * lib/getopt.in.h (includes): Use split inclusion guard, and
43861         prefer <getopt.h> over include <unistd.h> when one is present.
43862         (option): Also override name of 'struct option'.
43863
43864         same-inode: revert prior change; it is not yet ready
43865         * NEWS: Undo mention of this change.
43866         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43867         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43868         * lib/cycle-check.c (cycle_check): Likewise.
43869         * lib/same.c (same_name): Likewise.
43870         * lib/at-func2.c (at_func2): Likewise.
43871
43872 2009-09-23  Eric Blake  <ebb9@byu.net>
43873
43874         linkat: new module
43875         * modules/linkat: New file.
43876         * lib/at-func2.c (at_func2): Likewise.
43877         * lib/linkat.c (linkat): Likewise.
43878         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43879         * lib/openat-priv.h (at_func2): Add declaration.
43880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43881         * modules/unistd (Makefile.am): Substitute them.
43882         * lib/unistd.in.h (linkat): Declare it.
43883         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43884         * doc/posix-functions/linkat.texi (linkat): Likewise.
43885         * doc/posix-functions/link.texi (link): Tweak wording.
43886         * tests/test-link.c (main): Move guts...
43887         * tests/test-link.h (test_link): ...into new file.
43888         * modules/linkat-tests: New test.
43889         * tests/test-linkat.c: Likewise.
43890         * modules/link-tests (Files): Ship new file.
43891         (Depends-on): Add stdbool.
43892
43893         dirname: add library-safe mdir_name
43894         * lib/dirname.h (mdir_name): New prototype.
43895         * lib/dirname.c (dir_name): Move guts...
43896         (mdir_name): ...to new function that avoids xalloc_die.
43897
43898         fchdir: another mingw fix
43899         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43900         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43901         on mingw (where it has not yet been ported), and make it optional
43902         elsewhere.
43903         (_gl_register_fd): Use it.
43904
43905         same-inode: make SAME_INODE tri-state, to port to mingw
43906         * NEWS: Mention this change.
43907         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43908         st_ino always being 0.
43909         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43910         * lib/cycle-check.c (cycle_check): Likewise.
43911         * lib/same.c (same_name): Likewise.
43912
43913         lstat: avoid mingw compilation error
43914         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43915         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43916         lstat ourselves.
43917         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43918         was adequate.
43919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43920         the checks for lstat.
43921         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43922
43923         link: fix test failure on Solaris 9
43924         * lib/link.c (rpl_link): Don't assume link will catch bogus
43925         trailing slash on source.
43926
43927         test-symlinkat: enhance test
43928         * tests/test-readlink.c (main): Move guts...
43929         * tests/test-readlink.h (test_readlink): ...into new file.
43930         * tests/test-symlink.c (main): Move guts...
43931         * tests/test-symlink.h (test_symlink): ...into new file.
43932         * tests/test-symlinkat.c (main): Use new files for further
43933         coverage.
43934         (do_symlink, do_readlink): New helper functions.
43935         * modules/symlink-tests (Files): Ship new file.
43936         (Depends-on): Add stdbool.
43937         * modules/readlink-tests (Files): Ship new file.
43938         (Depends-on): Add stdbool.
43939         * modules/symlinkat-tests (Files): Use new files.
43940
43941 2009-09-23  Eric Blake  <ebb9@byu.net>
43942
43943         readlink: document portability issue with symlink length
43944         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43945         systems have bogus st_size on symlinks, and mention the
43946         areadlink-with-size module.
43947         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43948         * doc/posix-functions/readlink.texi (readlink): Mention the
43949         areadlink module, and ERANGE failure.
43950         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43951         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43952
43953         readlink: fix Solaris 9 bug with trailing slash
43954         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43955         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43956         * doc/posix-functions/readlink.texi (readlink): Document this.
43957         * modules/readlink-tests: New test.
43958         * tests/test-readlink.c: Likewise.
43959
43960         readlink: fix cygwin 1.5.x bug with return type
43961         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43962         * lib/unistd.in.h (readlink): Use ssize_t.
43963         * lib/readlink.c (readlink): Likewise.
43964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43965         * modules/unistd (Makefile.am): Substitute it.
43966         * lib/unistd.in.h (readlink): Declare replacement.
43967         * doc/posix-functions/readlink.texi (readlink): Document this.
43968
43969         symlink: use throughout gnulib
43970         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43971         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43972         symlink is not used.
43973         * modules/symlinkat (Depends-on): Add symlink.
43974         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43975         * modules/canonicalize-tests (Depends-on): Likewise.
43976         * modules/lstat-tests (Depends-on): Likewise.
43977         * modules/openat-tests (Depends-on): Likewise.
43978         * modules/remove-tests (Depends-on): Likewise.
43979         * modules/rmdir-tests (Depends-on): Likewise.
43980         * modules/unlink-tests (Depends-on): Likewise.
43981         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43982         * tests/test-canonicalize.c (symlink): Likewise.
43983         * tests/test-fstatat.c (symlink): Likewise.
43984         * tests/test-lstat.c (symlink): Likewise.
43985         * tests/test-remove.c (symlink): Likewise.
43986         * tests/test-rmdir.c (symlink): Likewise.
43987         * tests/test-unlink.c (symlink): Likewise.
43988         * tests/test-unlinkat.c (symlink): Likewise.
43989
43990         symlink: new module, for Solaris 9 bug
43991         * modules/symlink: New file.
43992         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43993         * lib/symlink.c: Likewise.
43994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43995         * modules/unistd (Makefile.am): Substitute them.
43996         * lib/unistd.in.h (symlink): Declare replacement.
43997         * MODULES.html.sh (File system functions): Mention it.
43998         * doc/posix-functions/symlink.texi (symlink): Likewise.
43999         * modules/symlink-tests: New test.
44000         * tests/test-symlink.c: Likewise.
44001
44002 2009-09-23  Bruno Haible  <bruno@clisp.org>
44003
44004         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44005         when needed.
44006         Test case: gnulib-tool --import --with-tests atexit inttypes.
44007         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44008
44009 2009-09-23  Bruno Haible  <bruno@clisp.org>
44010
44011         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44012         subcommand, not in a subshell.
44013
44014 2009-09-22  Eric Blake  <ebb9@byu.net>
44015
44016         unistd: sort replacement declarations
44017         * lib/unistd.in.h: Sort declarations.
44018
44019         open, openat: minor optimization
44020         * lib/open.c (open): If open succeeded, len is non-zero.
44021         * lib/openat.c (rpl_openat): Likewise.
44022
44023         link-follow: ensure correct result
44024         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44025         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44026         distinguish between possible failures.
44027
44028 2009-09-21  Eric Blake  <ebb9@byu.net>
44029
44030         fts: avoid compiler warning
44031         * lib/fts.c (dirent_inode_sort_may_be_useful)
44032         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44033
44034 2009-09-19  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/progreloc.c (canonicalize_file_name): New declaration.
44037
44038 2009-09-19  Eric Blake  <ebb9@byu.net>
44039
44040         link: fix quoting
44041         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44042
44043         openat: fix openat bugs on Solaris 9
44044         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44045         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44046         * modules/openat (Depends-on): Add open.
44047         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44048         * modules/fcntl-h (Makefile.am): Substitute it.
44049         * lib/fcntl.in.h (openat): Declare replacement.
44050         * doc/posix-functions/openat.texi (openat): Document this.
44051
44052         openat: move fstatat and unlinkat into correct files
44053         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44054         compiled.
44055         * lib/openat.c (fstatat, unlinkat): Move...
44056         * lib/fstatat.c (fstatat): ...into correct files.
44057         * lib/unlinkat.c (unlinkat): Likewise.
44058
44059         openat: fix unlinkat bugs on Solaris 9
44060         * lib/unlinkat.c (unlinkat): New file.
44061         * modules/openat (Depends-on): Add unlink.
44062         (Files): Distribute it.
44063         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44064         trailing slash behavior is broken.
44065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44066         * modules/unistd (Makefile.am): Substitute it.
44067         * lib/unistd.in.h (unlinkat): Declare replacement.
44068         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44069
44070         openat: fix fstatat bugs on Solaris 9
44071         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44072         stat.
44073         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44074
44075         test-unlinkat: enhance test, to expose Solaris 9 bug
44076         * tests/test-unlink.c (main): Factor guts...
44077         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44078         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44079         * tests/test-rmdir.c (main): Adjust caller.
44080         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44081         (unlinker): New helper function.
44082         (rmdirat): Enhance check.
44083         * modules/rmdir-tests (Depends-on): Add stdbool.
44084         * modules/unlink-tests (Depends-on): Likewise.
44085         (Files): Add test-unlink.h.
44086         * modules/openat-tests (Files): Likewise.
44087         (Depends-on): Add unlinkdir.
44088
44089         test-fstatat: new test, to expose Solaris 9 bugs
44090         * tests/test-stat.c (main): Factor guts...
44091         * tests/test-stat.h (test_stat_func): ...into new file.
44092         * tests/test-lstat.c (main): Factor guts...
44093         * tests/test-lstat.h (test_lstat_func): ...into new file.
44094         * tests/test-fstatat.c: New file.
44095         * modules/stat-tests (Files): Add test-stat.h.
44096         * modules/lstat-tests (Files): Add test-lstat.h.
44097         (Depends-on): Add stdbool.
44098         * modules/openat-tests (Depends-on): Add pathmax.
44099         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44100         (Makefile.am): Run new test.
44101
44102         remove: new module, for mingw and Solaris 9 bugs
44103         * modules/remove: New file.
44104         * lib/remove.c: Likewise.
44105         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44107         * modules/stdio (Makefile.am): Use them.
44108         * lib/stdio.in.h (remove): Declare replacement.
44109         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44110         * doc/posix-functions/remove.texi (remove): Likewise.
44111         * modules/remove-tests: New test.
44112         * tests/test-remove.c: Likewise.
44113
44114         unlink: new module, for Solaris 9 bug
44115         * modules/unlink: New file.
44116         * lib/unlink.c: Likewise.
44117         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44119         * modules/unistd (Makefile.am): Use them.
44120         * lib/unistd.in.h (stat): Declare replacement.
44121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44122         * doc/posix-functions/unlink.texi (unlink): Likewise.
44123         * modules/unlink-tests: New test.
44124         * tests/test-unlink.c: Likewise.
44125
44126         lstat: fix Solaris 9 bug
44127         * lib/lstat.c (lstat): Also check for trailing slash on
44128         non-symlink, non-directories.  Use stat module to simplify logic.
44129         * doc/posix-functions/lstat.texi (lstat): Document it.
44130         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44131         (configure.ac): Check for symlink.
44132         * tests/test-lstat.c (main): Add more tests.
44133
44134         stat: add as dependency to other modules
44135         * modules/chown (Depends-on): Add stat.
44136         * modules/euidaccess (Depends-on): Likewise.
44137         * modules/fchdir (Depends-on): Likewise.
44138         * modules/isdir (Depends-on): Likewise.
44139         * modules/link (Depends-on): Likewise.
44140         * modules/lstat (Depends-on): Likewise.
44141         * modules/mkdir-p (Depends-on): Likewise.
44142         * modules/modechange (Depends-on): Likewise.
44143         * modules/open (Depends-on): Likewise.
44144         * modules/readlink (Depends-on): Likewise.
44145         * modules/same (Depends-on): Likewise.
44146
44147         stat: fix Solaris 9 bug
44148         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44149         slash.
44150         * lib/stat.c (rpl_stat): Work around it.
44151         * doc/posix-functions/stat.texi (stat): Update documentation.
44152
44153         stat: new module, for mingw bug
44154         * modules/stat: New file.
44155         * lib/stat.c: Likewise.
44156         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44158         * modules/sys_stat (Makefile.am): Use them.
44159         * lib/sys_stat.in.h (stat): Declare replacement.
44160         * lib/openat.c (fstatat): Deal with lstat and stat being function
44161         macros.
44162         * modules/openat (Depends-on): Add inline.
44163         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44164         * doc/posix-functions/stat.texi (stat): Likewise.
44165         * modules/stat-tests: New test.
44166         * tests/test-stat.c: Likewise.
44167
44168 2009-09-19  Jim Meyering  <meyering@redhat.com>
44169
44170         syntax-check: detect unnecessary inclusion of canonicalize.h
44171         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44172
44173 2009-09-19  Eric Blake  <ebb9@byu.net>
44174
44175         canonicalize-lgpl: adjust clients to use correct header
44176         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44177         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44178         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44179         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44180         * lib/progreloc.c (includes): Likewise.
44181
44182 2009-09-19  Jim Meyering  <meyering@redhat.com>
44183
44184         test-posixtm.c: correct a comment
44185         * tests/test-posixtm.c: Correct first-line comment.
44186         Spotted by Eric Blake.
44187
44188 2009-09-16  Jim Meyering  <meyering@redhat.com>
44189
44190         posixtm-tests: make T const-correct; add a test case
44191         * tests/test-posixtm.c (T): Declare const.
44192         Add a test for -(2^31+1).
44193         Remove useless can-succeed-only-in-2002 test.
44194
44195         posixtm-tests: adjust the sole failing test
44196         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44197         expected output matches what mktime now produces.  Cross-checked via
44198         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44199
44200         posixtm: move #ifdef'd tests into a new module
44201         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44202         * tests/test-posixtm.c: ... this new file.
44203         * modules/posixtm-tests: New module.
44204
44205 2009-09-19  Eric Blake  <ebb9@byu.net>
44206
44207         openat: simplify use of at-func.c
44208         * lib/at-func.c (includes): Include prerequisites here, to
44209         simplify requirements on client files.
44210         * lib/openat-priv.h: Add double-inclusion guard.
44211         * lib/faccessat.c (includes): Simplify.
44212         * lib/fchmodat.c (includes): Likewise.
44213         * lib/fchownat.c (includes): Likewise.
44214         * lib/mkdirat.c (includes): Likewise.
44215         * lib/mkfifoat.c (includes): Likewise.
44216         * lib/symlinkat.c (includes): Likewise.
44217
44218         openat: allow return of fd 0
44219         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44220         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44221         unistd-safer.
44222         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44223         <fcntl.h>; this module does not leak fds.
44224         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44225         must be allowed to return 0, leaving openat_safer to add the
44226         safety.
44227         (openat_permissive): Avoid writing to just-opened fd 2 if
44228         restoring the current directory fails.
44229         * lib/openat-die.c (openat_restore_fail): Add comment.
44230         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44231         (save_cwd): Guarantee safe fd, but without use of open_safer.
44232         * tests/test-openat.c: New test.
44233         * modules/openat-tests (Files, Makefile.am): Distribute and build
44234         new file.
44235
44236         relocatable-prog-wrapper: fix build
44237         * modules/relocatable-prog-wrapper (Files): Update name of
44238         canonicalize m4 file, broken on 2009-09-17.
44239         Reported by emad hajjar <aleppos@hotmail.com>.
44240
44241 2009-09-19  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44244         * lib/safe-alloc.c: Likewise.
44245         Reported by Ian Beckwith <ianb@erislabs.net>.
44246
44247 2009-09-18  Bruno Haible  <bruno@clisp.org>
44248
44249         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44250         Reported by <erobles@sensacd.com.mx>.
44251
44252 2009-09-17  Eric Blake  <ebb9@byu.net>
44253
44254         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44255         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44256         slashes when checking if last component is missing.
44257         * tests/test-canonicalize.c (main): Test this.
44258
44259         canonicalize, canonicalize-lgpl: honor // if distinct from /
44260         * modules/canonicalize (Files): Add double-slash-root.m4.
44261         * modules/canonicalize-lgpl (Files): Likewise.
44262         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44263         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44264         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44265         fallback definition.
44266         (canonicalize_filename_mode): Use it to protect //.
44267         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44268         (__realpath): Likewise.
44269         * tests/test-canonicalize.c (main): Test this.
44270         * tests/test-canonicalize-lgpl.c (main): Likewise.
44271         * modules/canonicalize-tests (Depends-on): Add same-inode.
44272         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44273
44274         canonicalize-lgpl: fix glibc bug with trailing slash
44275         * m4/canonicalize-lgpl.m4: Move contents...
44276         * m4/canonicalize.m4: ...here.
44277         (gl_CANONICALIZE_LGPL): Factor realpath check...
44278         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44279         glibc 2.3.5 bug, fixed 2005-04-27.
44280         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44281         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44282         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44283         * modules/canonicalize-lgpl (Files): Manage file rename.
44284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44285         * modules/stdlib (Makefile.am): Substitute witness.
44286         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44287         is needed.
44288         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44289         replacement is required.
44290         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44291         * doc/glibc-functions/canonicalize_file_name.texi
44292         (canonicalize_file_name): Document this.
44293         * doc/posix-functions/realpath.texi (realpath): Likewise.
44294
44295         canonicalize-lgpl: reject non-directory with trailing slash
44296         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44297         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44298         catches failures in glibc 2.3.5.
44299         * tests/test-canonicalize.c (main): Likewise.
44300
44301         canonicalize-lgpl: use native realpath if it works
44302         * lib/canonicalize-lgpl.c (realpath): Guard with
44303         FUNC_REALPATH_WORKS.
44304         * lib/stdlib.in.h (realpath): Make declaration optional based on
44305         HAVE_REALPATH.
44306         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44307         native realpath works.
44308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44309         * modules/stdlib (Makefile.am): Substitute witness.
44310
44311         canonicalize, canonicalize-lgpl: use <stdlib.h>
44312         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44313         (Include): Mention <stdlib.h>.
44314         (configure.ac): Mention functions we provide.
44315         * modules/canonicalize (configure.ac): Likewise.
44316         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44317         realpath if canonicalize_file_name is missing.
44318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44319         * modules/stdlib (Makefile.am): Substitute witnesses.
44320         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44321         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44322         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44323         * NEWS: Document this.
44324         * doc/glibc-functions/canonicalize_file_name.texi
44325         (canonicalize_file_name): Likewise.
44326         * doc/posix-functions/realpath.texi (realpath): Likewise.
44327         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44328
44329         test-canonicalize: consolidate into single C program
44330         * tests/test-canonicalize.sh: Delete; move setup into...
44331         * tests/test-canonicalize.c (main): ...the program, making it
44332         easier to run in debugger.  Add some tests.
44333         * modules/canonicalize-tests (Files): Remove unused file.
44334         (Depends-on): Add progname.
44335         (configure.ac, Makefile.am): Simplify.
44336
44337         test-canonicalize-lgpl: consolidate into single C program
44338         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44339         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44340         easier to run in debugger.  Add some tests.
44341         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44342         (configure.ac, Makefile.am): Simplify.
44343
44344         canonicalize: avoid resolvepath
44345         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44346         unnecessary checks.
44347         * lib/canonicalize.c (includes): Simplify.
44348         (canonicalize_file_name): Drop resolvepath implementation.
44349         * modules/canonicalize (Depends-on): Drop filenamecat.
44350
44351         canonicalize: don't lose errno
44352         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44353         over calls to free.
44354
44355         canonicalize: simplify errno handling
44356         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44357         assignment.
44358
44359         canonicalize, canonicalize-lgpl: update module dependencies
44360         * modules/canonicalize (Depends-on): Add extensions, lstat,
44361         pathmax, stdlib.
44362         (Files): Drop pathmax.h.
44363         (configure.ac): Adjust macro name.
44364         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44365         lstat, stdlib, sys_stat.
44366         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44367         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44368         extensions.
44369         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44370         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44371         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44372         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44373         declaration, if available.
44374         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44375         we can rely on the readlink module.
44376         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44377         (includes): Use <unistd.h> unconditionally.
44378
44379 2009-09-17  Eric Blake  <ebb9@byu.net>
44380
44381         maint: make Include sections of modules consistent
44382         * modules/alloca: Use only header name; no need to list #include.
44383         * modules/alloca-opt: Likewise.
44384         * modules/arpa_inet: Likewise.
44385         * modules/canon-host: Likewise.
44386         * modules/configmake: Likewise.
44387         * modules/dirent: Likewise.
44388         * modules/eealloc: Likewise.
44389         * modules/environ: Likewise.
44390         * modules/fchdir: Likewise.
44391         * modules/fcntl: Likewise.
44392         * modules/fcntl-h: Likewise.
44393         * modules/gethrxtime: Likewise.
44394         * modules/gettime: Likewise.
44395         * modules/ignore-value: Likewise.
44396         * modules/inet_ntop: Likewise.
44397         * modules/inet_pton: Likewise.
44398         * modules/inttypes: Likewise.
44399         * modules/isnand-nolibm: Likewise.
44400         * modules/isnanf-nolibm: Likewise.
44401         * modules/mbchar: Likewise.
44402         * modules/mbfile: Likewise.
44403         * modules/mbiter: Likewise.
44404         * modules/mbuiter: Likewise.
44405         * modules/netdb: Likewise.
44406         * modules/netinet_in: Likewise.
44407         * modules/nproc: Likewise.
44408         * modules/pagealign_alloc: Likewise.
44409         * modules/poll: Likewise.
44410         * modules/printf-frexp: Likewise.
44411         * modules/pthread: Likewise.
44412         * modules/putenv: Likewise.
44413         * modules/random_r: Likewise.
44414         * modules/relocatable-prog: Likewise.
44415         * modules/search: Likewise.
44416         * modules/select: Likewise.
44417         * modules/selinux-h: Likewise.
44418         * modules/settime: Likewise.
44419         * modules/signal: Likewise.
44420         * modules/size_max: Likewise.
44421         * modules/socklen: Likewise.
44422         * modules/ssize_t: Likewise.
44423         * modules/stdarg: Likewise.
44424         * modules/stdbool: Likewise.
44425         * modules/stddef: Likewise.
44426         * modules/stdint: Likewise.
44427         * modules/stdio: Likewise.
44428         * modules/stdlib: Likewise.
44429         * modules/string: Likewise.
44430         * modules/strings: Likewise.
44431         * modules/sys_file: Likewise.
44432         * modules/sys_ioctl: Likewise.
44433         * modules/sys_select: Likewise.
44434         * modules/sys_socket: Likewise.
44435         * modules/sys_stat: Likewise.
44436         * modules/sys_time: Likewise.
44437         * modules/sys_times: Likewise.
44438         * modules/sys_utsname: Likewise.
44439         * modules/sys_wait: Likewise.
44440         * modules/sysexits: Likewise.
44441         * modules/time: Likewise.
44442         * modules/times: Likewise.
44443         * modules/tmpfile: Likewise.
44444         * modules/trim: Likewise.
44445         * modules/unistd: Likewise.
44446         * modules/wchar: Likewise.
44447         * modules/wctype: Likewise.
44448
44449 2009-09-17  Bruno Haible  <bruno@clisp.org>
44450
44451         Make getdate.y compile on QNX and NetBSD 5 / i386.
44452         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44453         TIME_T_FITS_IN_LONG_INT.
44454         * lib/getdate.y (long_time_t): New type.
44455         (relative_time): Change type of 'seconds' field to long_time_t.
44456         (get_date): Update types of local variables. Check against overflow
44457         during conversion from long_time_t to time_t.
44458         Reported by Matt Kraai <kraai@ftbfs.org>
44459         and Hasso Tepper <hasso@netbsd.org>.
44460
44461 2009-09-17  Bruno Haible  <bruno@clisp.org>
44462
44463         * modules/COPYING: Update copyright years.
44464         * modules/README: Likeiwse.
44465         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44466         Reported by Ian Beckwith <ianb@erislabs.net>.
44467
44468 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44469
44470         * users.txt: Update references for gnuit package.
44471
44472 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44473
44474         * m4/getdelim.m4: Fix typo in copyright line.
44475
44476 2009-09-17  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/atoll.c: Use the standard header with GPL copyright.
44479         * lib/argz.in.h: Likewise.
44480         * lib/glob.c: Likewise.
44481         * lib/glob-libc.h: Likewise.
44482         * lib/random_r.c: Likewise.
44483         * lib/siglist.h: Likewise.
44484         * lib/strsignal.c: Likewise.
44485         Reported by Ian Beckwith <ianb@erislabs.net>.
44486
44487 2009-09-17  Eric Blake  <ebb9@byu.net>
44488
44489         rmdir: ensure correct dependency order
44490         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44491
44492 2009-09-17  Bruno Haible  <bruno@clisp.org>
44493
44494         Disable assertion that fails on NetBSD 5 / i386.
44495         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44496         Reported by Sam Steingold <sds@gnu.org>
44497         and Hasso Tepper <hasso@netbsd.org>.
44498
44499 2009-09-16  Eric Blake  <ebb9@byu.net>
44500
44501         unlinkdir: port to mingw
44502         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44503         on which no one can unlink a directory.
44504
44505         stdlib: sort witness names
44506         * modules/stdlib (Makefile.am): Sort replacements.
44507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44508         * lib/stdlib.in.h: Likewise.
44509
44510         parse-duration-tests: avoid link failure
44511         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44512         LIBINTL.
44513         Reported by Tom G. Christensen.
44514
44515         openat-tests: ensure unlinkat behaves like rmdir
44516         * tests/test-rmdir.c (main): Factor guts...
44517         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44518         * modules/rmdir-tests (Files): Ship new file.
44519         * modules/openat-tests: New test.
44520         * tests/test-unlinkat.c: Likewise.
44521
44522         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44523         * modules/rmdir-errno (Status, Notice): Now obsolete.
44524
44525         rmdir: work around cygwin 1.5.x and mingw bugs
44526         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44527         * lib/rmdir.c (rmdir): Work around it.
44528         * modules/rmdir (Status, Notice): No longer obsolete.
44529         (Files): Add dos.m4.
44530         (Depends-on): Add unistd.
44531         (configure.ac): Set witnesses.
44532         (License): Relax to LGPLv2+.
44533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44534         * modules/unistd (Makefile.am): Substitute witnesses.
44535         * lib/unistd.in.h (rmdir): Declare replacement.
44536         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44537         * modules/rmdir-tests: New tests.
44538         * tests/test-rmdir.c: Likewise.
44539
44540 2009-09-15  Eric Blake  <ebb9@byu.net>
44541
44542         fchdir: improve use of replacement functions
44543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44544         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44545         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44546         REPLACE_CLOSEDIR.
44547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44548         * modules/sys_stat (Makefile.am): Substitute correct witness.
44549         * modules/dirent (Makefile.am): Likewise.
44550         * modules/unistd (Makefile.am): Likewise.
44551         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44552         * lib/unistd.in.h (dup): Likewise.
44553         * lib/sys_stat.in.h (fstat): Likewise.
44554
44555         maint: ignore gnulib-tool temp files
44556         * .gitignore: Ignore files created during gnulib-tool --test.
44557
44558 2009-09-13  Jim Meyering  <meyering@redhat.com>
44559
44560         posixtm: don't reject a time that specify "60" as the number of seconds
44561         * lib/posixtm.c (posixtime): The code to reject invalid dates
44562         would also reject a time specified with the .60 suffix.
44563         But POSIX allows that, in order to accommodate leap seconds.
44564         So don't reject it.
44565         (main): Adjust tests accordingly.
44566         * modules/posixtm (Depends-on): Add stpcpy.
44567
44568 2009-09-11  Jim Meyering  <meyering@redhat.com>
44569
44570         announce-gen: include [$release_type] in emitted Subject:
44571         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44572         e.g., [stable] in the emitted Subject: line.
44573
44574 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44575
44576         Remove obsolete macros from several modules.
44577         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44578         obsolete Autoconf macros with their modern counterparts.
44579         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44580         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44582         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44583         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44584         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44586         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44587         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44588         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44589         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44590         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44591         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44592         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44593         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44594         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44595         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44596         * m4/time_r.m4 (gl_TIME_R): Likewise.
44597         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44598         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44599         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44600
44601         Fix copyright header in build-aux scripts.
44602         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44603         recommendation.
44604         * build-aux/ncftpput-ftp: Likewise.
44605         * build-aux/update-copyright: Likewise.
44606
44607 2009-09-09  Eric Blake  <ebb9@byu.net>
44608
44609         test-link: allow Linux choice of errno
44610         * tests/test-link.c (main): Relax test for alternate error.
44611
44612         strndup: fix improper m4 caching
44613         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44614         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44615         (gl_PREREQ_STRNDUP): Delete.
44616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44617         * modules/string (Makefile.am): Substitute it.
44618         * lib/string.in.h (strndup): Modernize prototype.
44619
44620         getcwd: port to mingw
44621         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44622         different from the POSIX assumptions made throughout the getcwd
44623         module; fortunately, the mingw getcwd does not need replacement.
44624         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44625         * modules/getcwd-tests: New test.
44626         * tests/test-getcwd.c: Likewise.
44627
44628         link: fix platform bugs
44629         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44630         * lib/link.c (link): Work around them.  Fix related mingw bug.
44631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44632         * modules/unistd (Makefile.am): Substitute it.
44633         * lib/unistd.in.h (link): Declare replacement.
44634         * doc/posix-functions/link.texi (link): Document this.
44635         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44636
44637         test-link: consolidate into single C program, test more cases
44638         * tests/test-link.sh: Delete.
44639         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44640         at least Cygwin and Solaris.
44641         * modules/link-tests (Files): Remove unused file.
44642         (Depends-on): Add errno, sys_stat.
44643         (Makefile.am): Simplify.
44644
44645 2009-09-08  Bruno Haible  <bruno@clisp.org>
44646
44647         Work around towlower, towupper bug on mingw.
44648         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44649         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44650         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44651         * doc/posix-functions/towupper.texi: Likewise.
44652         Reported by Eric Blake.
44653
44654 2009-09-08  Jim Meyering  <meyering@redhat.com>
44655
44656         build: don't try to run autoheader if we don't use it
44657         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44658         is not used in configure.ac.
44659
44660 2009-09-08  Eric Blake  <ebb9@byu.net>
44661
44662         euidaccess: fix compilation error
44663         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44664
44665         rawmemchr: relax license
44666         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44667         okay.
44668         Reported by Jim Meyering.
44669
44670         mkfifoat: new module
44671         * modules/mkfifoat: New file.
44672         * lib/mkfifoat.c: Likewise.
44673         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44674         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44675         * modules/sys_stat (Makefile.am): Use them.
44676         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44677         * MODULES.html.sh (File system functions): Mention module.
44678         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44679         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44680         * modules/mkfifoat-tests: New test.
44681         * tests/test-mkfifoat.c: Likewise.
44682
44683         strchrnul: relax license
44684         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44685         okay.
44686         Reported by Jim Meyering.
44687
44688 2009-09-08  Eric Blake  <ebb9@byu.net>
44689
44690         fstatat: fix compilation on Solaris
44691         * lib/fstatat.c (includes): Add fcntl.h.
44692         Reported by Pádraig Brady.
44693
44694 2009-09-07  Eric Blake  <ebb9@byu.net>
44695
44696         rename: modernize replacement
44697         * modules/rename (Depends-on): Add stdio.
44698         (configure.ac): Declare witness.
44699         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44700         stdio take care of replacement.
44701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44702         * modules/stdio (Makefile.am): Substitute them.
44703         * lib/stdio.in.h (rename): Declare replacement.
44704         * lib/rename.c (includes): Allow cross-compilation to non-windows
44705         machines.
44706         * doc/posix-functions/rename.texi (rename): Improve
44707         documentation.
44708
44709         stdio: sort witness names
44710         * modules/stdio (Makefile.am): Sort replacements.
44711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44712         * lib/stdio.in.h: Likewise.
44713
44714         getcwd: minor cleanups
44715         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44716         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44717
44718         openat: provide more convenience names
44719         * modules/faccessat (configure.ac): Add C witness.
44720         * lib/unistd.in.h (readlinkat): Fix typo.
44721         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44722         convenience wrappers.
44723         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44724         wrappers in syntax checks.
44725
44726 2009-09-06  Eric Blake  <ebb9@byu.net>
44727
44728         doc: fix comments in recent patches
44729         * lib/faccessat.c: Mention correct function.
44730         * lib/fchmodat.c: Likewise.
44731         * lib/fchownat.c: Likewise.
44732         * lib/symlinkat.c: Likewise.
44733         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44734         constants.
44735
44736         faccessat, symlinkat: continue cleanup of previous patch
44737         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44738         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44739         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44741         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44742         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44743         set.
44744
44745 2009-09-06  Bruno Haible  <bruno@clisp.org>
44746
44747         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44748         (fstatat): Declare if GNULIB_FSTATAT is set.
44749         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44750         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44751         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44752         * modules/fcntl-h (Files): Remove m4/openat.m4.
44753         * modules/sys_stat (Files): Remove m4/openat.m4.
44754         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44755         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44756         * modules/unistd (Files): Remove m4/openat.m4.
44757         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44758         GNULIB_OPENAT.
44759         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44760         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44761         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44762         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44763         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44764         gl_OPENAT_DEFAULTS.
44765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44766         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44767         Don't require gl_OPENAT_DEFAULTS.
44768         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44769         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44770         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44771         (gl_OPENAT_DEFAULTS): Remove macro.
44772
44773 2009-09-06  Bruno Haible  <bruno@clisp.org>
44774
44775         * modules/openat (configure.ac): Remove unneeded witness.
44776
44777 2009-09-06  Bruno Haible  <bruno@clisp.org>
44778
44779         Set errno to ENOSYS when a function is entirely unsupported.
44780         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44781         EOPNOTSUPP.
44782         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44783         * modules/chown (Depends-on): Remove errno.
44784
44785 2009-09-06  Bruno Haible  <bruno@clisp.org>
44786
44787         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44788
44789 2009-09-06  Bruno Haible  <bruno@clisp.org>
44790
44791         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44792
44793 2009-09-06  Ben Pfaff  <blp@gnu.org>
44794             Bruno Haible  <bruno@clisp.org>
44795
44796         Work around a glibc bug in strtok_r.
44797         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44798         Undefine if UNDEFINE_STRTOK_R is set.
44799         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44801         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44802         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44803         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44804         UNDEFINE_STRTOK_R.
44805         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44806
44807 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44808
44809         exclude: minor fix
44810         * lib/exclude.c: Include wctype.h
44811
44812 2009-09-06  Akim Demaille  <demaille@gostai.com>
44813
44814         bootstrap: improve error message
44815         * build-aux/bootstrap (find_tool): Upon failure, report the list
44816         of candidates.
44817         Honor the initial value of the envvar.
44818
44819 2009-09-05  Eric Blake  <ebb9@byu.net>
44820
44821         symlinkat: new module
44822         * modules/symlinkat: New file.
44823         * lib/symlinkat.c: Likewise.
44824         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44826         * modules/unistd (Makefile.am): Use them.
44827         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44828         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44829         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44830         * MODULES.html.sh (File system functions): Mention module.
44831         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44832         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44833         * modules/symlinkat-tests: New test.
44834         * tests/test-symlinkat.c: Likewise.
44835
44836         test-openat-safer: add more checks
44837         * tests/test-openat-safer.c (main): Check more code paths.
44838
44839 2009-09-05  Jim Meyering  <meyering@redhat.com>
44840
44841         syntax-check: detect unnecessary inclusion of openat.h
44842         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44843
44844 2009-09-05  Bruno Haible  <bruno@clisp.org>
44845
44846         Support towlower, towupper.
44847         * doc/posix-functions/towlower.texi: Mention module wctype.
44848         * doc/posix-functions/towupper.texi: Likewise.
44849         * lib/wctype.in.h (towlower, towupper): New functions.
44850         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44851         (ASSERT): New macro.
44852         (e): New variable.
44853         (main): Test also towlower, towupper. Test WEOF argument.
44854         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44855
44856 2009-09-05  Bruno Haible  <bruno@clisp.org>
44857
44858         Fix conversion behaviour when the input is invalid.
44859         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44860         mark occurring in first pass of indirect conversion.
44861         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44862         input.
44863         Found by clang's static analyzer.
44864
44865 2009-09-05  Bruno Haible  <bruno@clisp.org>
44866
44867         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44868         where direct conversion is possible.
44869
44870 2009-09-04  Eric Blake  <ebb9@byu.net>
44871
44872         openat: fail with ENOENT on empty name
44873         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44874         buffer.
44875
44876         link-follow: fix logic bug in prior patch
44877         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44878         reversed sense of yes and no in prior patch.  Avoid confusing
44879         compilation failure with desired semantics.
44880
44881         link-follow: accommodate mingw and cross-compilation
44882         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44883         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44884         cross-compilation results to -1, to make linkat easier to
44885         implement when cross-compiling.  Trivially support mingw.
44886         * modules/link-follow (configure.ac): Call new name.
44887         * NEWS: Mention this.
44888
44889 2009-09-03  Eric Blake  <ebb9@byu.net>
44890
44891         faccessat: compile replacement
44892         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44893         needed.
44894
44895         fts: fix compilation error
44896         * lib/fts.c (includes): Re-add "openat.h", for
44897         openat_needs_fchdir.
44898
44899         faccessat: new module
44900         * modules/faccessat: New file.
44901         * lib/faccessat.c: Likewise.
44902         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44904         * modules/unistd (Makefile.am): Use it.
44905         * lib/unistd.in.h (faccessat): Declare it.
44906         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44907         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44908         * MODULES.html.sh (File system functions): Mention it.
44909         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44910         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44911
44912         euidaccess: prefer POSIX over non-standard implementation
44913         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44914         * lib/euidaccess.c (euidaccess): Use it if available.
44915
44916         openat: make template easier to use
44917         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44918         AT_FUNC_F2 to be undefined.
44919         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44920         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44921         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44922         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44923         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44924         Likewise.
44925         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44926         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44927         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44928         Likewise.
44929
44930         openat: declare in POSIX headers
44931         * NEWS: Mention this.
44932         * modules/openat (configure.ac): Declare witnesses.
44933         (Depends-on): Add fcntl-h, sys_stat, unistd.
44934         (Include): Mention correct headers.
44935         * modules/fcntl-h (Depends-on): Add link-warning.
44936         (Files): Add openat.m4.
44937         (Makefile.am): Substitute witnesses.
44938         * modules/sys_stat (Files, Makefile.am): Likewise.
44939         * modules/unistd (Files, Makefile.am): Likewise.
44940         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44941         (gl_OPENAT_DEFAULTS): New macro.
44942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44944         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44945         (SYS_STAT_H): Remove unused variable.
44946         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44947         * lib/fcntl--.h (includes): Remove unneeded header.
44948         * lib/openat-safer.c (includes): Likewise.
44949         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44950         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44951         appropriate headers.
44952         (__OPENAT_PREFIX): Delete.
44953         * lib/fcntl.in.h (openat): Provide declaration.
44954         (AT_FDCWD): Fix Solaris bug.
44955         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44956         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44957         * lib/fchmodat.c (includes):  Adjust to find declaration.
44958         * lib/fchownat.c (includes): Likewise.
44959         * lib/mkdirat.c (includes): Likewise.
44960         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44961         still visible.
44962
44963 2009-09-02  Eric Blake  <ebb9@byu.net>
44964
44965         errno: use consistently
44966         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44967         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44968         * lib/canonicalize.c (ELOOP): Likewise.
44969         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44970         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44971         * lib/lchown.c (EOPNOTSUPP): Likewise.
44972         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44973         * lib/savewd.c (ESTALE): Likewise.
44974         * lib/settime.c (ENOSYS): Likewise.
44975         * lib/utimens.c (ENOSYS): Likewise.
44976         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44977         * lib/chdir-safer.c (ELOOP): Likewise.
44978         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44979         * modules/c-stack (Depends-on): Add errno.
44980         * modules/canonicalize (Depends-on): Likewise.
44981         * modules/chdir-safer (Depends-on): Likewise.
44982         * modules/fdopendir (Depends-on): Likewise.
44983         * modules/inet_ntop (Depends-on): Likewise.
44984         * modules/inet_pton (Depends-on): Likewise.
44985         * modules/lchown (Depends-on): Likewise.
44986         * modules/openat (Depends-on): Likewise.
44987         * modules/savewd (Depends-on): Likewise.
44988         * modules/settime (Depends-on): Likewise.
44989         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44990
44991         fts: avoid leaking fds
44992         * modules/fts (Depends-on): Add cloexec.
44993         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44994         flag.
44995
44996         fts: make directory fds more robust
44997         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44998         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44999
45000         backupfile, chdir-long, fts, savedir: make safer
45001         * lib/backupfile.c (includes): Use "dirent--.h", since
45002         numbered_backup can write to stderr during readdir.
45003         * lib/savedir.c (includes): Likewise.
45004         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45005         emulation can write to stderr on failure.
45006         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45007         * lib/getcwd.c: Document why opendir_safer is unused.
45008         * lib/glob.c: Likewise.
45009         * lib/scandir.c: Likewise.
45010         * lib/openat-proc.c: Likewise, for open_safer.
45011         * modules/backupfile (Depends-on): Add dirent-safer.
45012         * modules/savedir (Depends-on): Likewise.
45013         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45014         * modules/chdir-long (Depends-on): Add openat-safer.
45015
45016         openat-safer: new module
45017         * modules/openat-safer: New file.
45018         * lib/openat-safer.c: Likewise.
45019         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45020         * lib/fcntl-safer.h (openat_safer): Declare.
45021         * lib/fcntl--.h (openat): Override.
45022         * MODULES.html.sh (File descriptor based I/O): Mention it.
45023         * lib/openat.h: Add double-inclusion guards.
45024         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45025         "fcntl--.h", so we can implement openat.
45026         * modules/openat-safer-tests: New test.
45027         * tests/test-openat-safer.c: New file.
45028
45029         dirent-safer: new module
45030         * modules/dirent-safer: New file.
45031         * lib/dirent--.h: Likewise.
45032         * lib/dirent-safer.h: Likewise.
45033         * lib/opendir-safer.c: Likewise.
45034         * m4/dirent-safer.m4: Likewise.
45035         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45036         * modules/dirent-safer-tests: New test.
45037         * tests/test-dirent-safer.c: New file.
45038         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45039
45040         fdopendir: optimize on mingw
45041         * lib/unistd.in.h (_gl_directory_name): New prototype.
45042         * lib/fchdir.c (_gl_directory_name): Implement it.
45043         (fchdir): Use it to simplify implementation.
45044         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45045         fchdir, when available, to avoid calling [f]chdir().
45046
45047         fdopendir: split into its own module
45048         * lib/openat.c (fdopendir): Move...
45049         * lib/fdopendir.c: ...into new file.
45050         * modules/fdopendir: New module.
45051         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45052         * modules/openat (Depends-on): Add fdopendir.
45053         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45054         fdopendir here.
45055         * modules/savedir (Depends-on): Only need fdopendir, not full
45056         openat.
45057         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45058         * lib/openat.h (fdopendir): Drop prototype.
45059         * lib/dirent.in.h (fdopendir): Provide prototype.
45060         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45061         * modules/dirent (Makefile.am): Substitute them.
45062         * MODULES.html.sh (File system functions): Mention it.
45063         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45064         * modules/fdopendir-tests: New file.
45065         * tests/test-fdopendir.c: Likewise.
45066
45067         fchdir: use more consistent macro convention
45068         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45069         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45070         REPLACE_FCHDIR, rather than relying on config.h macros.
45071         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45072         inside a single make-time REPLACE_FCHDIR block, rather than using
45073         the config.h FCHDIR_REPLACEMENT.
45074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45075         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45076         Manage fstat replacement.
45077         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45078         REPLACE_FCHDIR.
45079         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45080         (Makefile.am): Substitute REPLACE_FCHDIR.
45081         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45082         FCHDIR_REPLACEMENT.
45083         * lib/dup-safer.c (dup_safer): Likewise.
45084         * lib/dup2.c (rpl_dup2): Likewise.
45085         * lib/dup3.c (rpl_dup3): Likewise.
45086         * lib/open.c (rpl_open): Likewise.
45087
45088         fchdir: simplify error handling, and support dup3
45089         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45090         stdbool, malloc-posix, realloc-posix.
45091         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45092         (ensure_dirs_slot): Return false on allocation failure.
45093         (rpl_dup2): Delete.
45094         (_gl_register_dup): New function.
45095         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45096         (_gl_register_fd): Close fd on allocation failure.
45097         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45098         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45099         prototype.
45100         (rpl_dup2_fchdir): Delete prototype.
45101         * lib/open.c (open): Update caller.
45102         * lib/dup2.c (dup2): Track fchdir metadata.
45103         * lib/dup3.c (dup3): Likewise.
45104         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45106
45107 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45108
45109         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45110         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45111         don't pass arguments to AC_OUTPUT.
45112
45113 2009-09-02  Bruno Haible  <bruno@clisp.org>
45114
45115         * modules/mkdtemp (License): Relicense under LGPLv2+.
45116         Reported by Paolo Bonzini.
45117
45118 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45119
45120         Replace uses of obsolete autoconf macros in Jim's modules.
45121         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45122         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45123         can evoke a warning from autoconf when run with -Wobsolete
45124         enabled.  They were declared obsolete for good reasons (see
45125         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45126         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45127         should not continue using the deprecated macros.
45128         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45129         obsolete Autoconf macros with modern counterparts.
45130         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45131         * m4/dos.m4 (gl_AC_DOS): Likewise.
45132         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45133         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45134         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45135         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45136         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45137         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45138         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45139         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45140         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45141         Likewise.
45142         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45143         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45144         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45145         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45146         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45147         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45148
45149 2009-09-01  Eric Blake  <ebb9@byu.net>
45150
45151         fchdir: fix off-by-one bug in previous patch
45152         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45153         (_gl_unregister_fd): Delete useless if.
45154
45155 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45156
45157         maint.mk: sort the list of syntax-check rules
45158         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45159         easier to get a sense of progress when the rules are run sequentially
45160         and take a long time.
45161
45162 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45163
45164         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45165         * modules/netinet_in: Likewise.
45166         * modules/sys_file: Likewise.
45167         * modules/sys_ioctl: Likewise.
45168         * modules/sys_select: Likewise.
45169         * modules/sys_socket: Likewise.
45170         * modules/sys_stat: Likewise.
45171         * modules/sys_time: Likewise.
45172         * modules/sys_times: Likewise.
45173         * modules/sys_utsname: Likewise.
45174         * modules/sys_wait: Likewise.
45175
45176 2009-09-01  Jim Meyering  <meyering@redhat.com>
45177
45178         fts: help ensure that return values are not ignored
45179         * lib/fts_.h (__GNUC_PREREQ): Define.
45180         (__attribute_warn_unused_result__): Define.
45181         (fts_children, fts_close, fts_open, fts_read): Declare with
45182         __attribute_warn_unused_result__.
45183
45184         fts: fts_close now fails also when closing a dir file descriptor fails
45185         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45186         and propagate to caller, along with errno.
45187
45188         announce-gen: correct formatting in --help output
45189         * build-aux/announce-gen (usage): Move the one-line description in
45190         --help output "up", to where it belongs, just after Usage:.
45191
45192 2009-08-31  Eric Blake  <ebb9@byu.net>
45193
45194         fchdir: port to mingw
45195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45196         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45197         opened, then use a substitute.
45198         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45199         replacement.
45200         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45201         (_gl_register_fd): No need to check stat if open already filters
45202         all directories.
45203         (fchdir): Fix error condition to match POSIX.
45204         * modules/fchdir (Depends-on): Add sys_stat.
45205         * doc/posix-functions/open.texi (open): Document the limitation.
45206         * modules/fchdir-tests: New file.
45207         * tests/test-fchdir.c: Likewise.
45208
45209         canonicalize: allow cross-testing from cygwin to mingw
45210         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45211         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45212         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45213         Likewise.
45214         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45215         target does not support symlinks.
45216         * tests/test-canonicalize-lgpl.sh: Likewise.
45217
45218         chown: avoid compilation warning on mingw
45219         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45220         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45221         mingw.
45222         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45223         * modules/chown (Depends-on): Add errno.
45224
45225 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45226
45227         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45228         command.
45229
45230 2009-08-31  Jim Meyering  <meyering@redhat.com>
45231
45232         canonicalize: remove useless initialization
45233         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45234         initialization of local, "end".
45235
45236 2009-08-30  Bruno Haible  <bruno@clisp.org>
45237
45238         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45239         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45240         ENOSYS.
45241
45242 2009-08-30  Bruno Haible  <bruno@clisp.org>
45243
45244         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45245         /usr/xpg4/bin/tr when it exists.
45246         * tests/test-pipe-filter-gi1.sh: Likewise.
45247
45248 2009-08-30  Bruno Haible  <bruno@clisp.org>
45249
45250         Work around deficient /usr/bin/id program on Solaris.
45251         * tests/test-file-has-acl.sh (ID): New variable.
45252         * tests/test-set-mode-acl.sh (ID): Likewise.
45253         * tests/test-copy-acl.sh (ID): Likewise.
45254         * tests/test-copy-file.sh (ID): Likewise.
45255
45256 2009-08-30  Bruno Haible  <bruno@clisp.org>
45257
45258         New module 'xstriconveh'.
45259         * lib/xstriconveh.h: New file.
45260         * lib/xstriconveh.c: New file.
45261         * modules/xstriconveh: New file.
45262
45263 2009-08-30  Bruno Haible  <bruno@clisp.org>
45264
45265         Make it easier to use mem_cd_iconveh.
45266         * lib/striconveh.h (iconveh_t): New type.
45267         (iconveh_open, iconveh_close): New declarations.
45268         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45269         with a single 'const iconveh_t *' argument.
45270         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45271         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45272         with a single 'const iconveh_t *' argument.
45273         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45274         * tests/test-striconveh.c (main): Update.
45275         * NEWS: Mention the change.
45276
45277 2009-08-30  Bruno Haible  <bruno@clisp.org>
45278
45279         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45280         problem.
45281
45282 2009-08-30  Bruno Haible  <bruno@clisp.org>
45283
45284         Work around iconv_open problem on Solaris.
45285         * lib/iconv_open-solaris.gperf: New file.
45286         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45288         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45289         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45290         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45291         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45292
45293 2009-08-29  Jim Meyering  <meyering@redhat.com>
45294
45295         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45296         * top/maint.mk (cvs-check): Remove target; it was just an alias
45297         to the better-named vc-diff-check.
45298         (maintainer-distcheck): Remove rule.  It was used only from
45299         the (alpha/beta/major) target, and all of its commands but one
45300         were coreutils-specific.
45301         (vc-dist): Remove rule.
45302         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45303         Run vc-diff-check, not vc-dist.
45304         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45305
45306 2009-08-27  Bruno Haible  <bruno@clisp.org>
45307
45308         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45309         of 0.
45310
45311 2009-08-27  Bruno Haible  <bruno@clisp.org>
45312
45313         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45314         compilers.
45315         * doc/func.texi: Document the SunPRO C bug.
45316
45317 2009-08-27  Bruno Haible  <bruno@clisp.org>
45318
45319         Fix link error on Solaris.
45320         * tests/test-parse-duration.c (xstrdup): Remove function.
45321
45322 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45323
45324         ignore-value: handle pointer types, too
45325         * lib/ignore-value.h (__attribute__): Remove definition.
45326         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45327         of a more concise and more-often effective "(void) i" statement.
45328         (ignore_ptr): New function to suppress warnings from functions that
45329         return pointers, and to make it explicit that one function doesn't
45330         handle all cases.
45331
45332 2009-08-25  Bruno Haible  <bruno@clisp.org>
45333
45334         dup2: work around a Linux bug.
45335         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45336         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45337         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45338         Reported by Simon Josefsson.
45339
45340 2009-08-25  Jim Meyering  <meyering@redhat.com>
45341
45342         libguestfs uses gnulib
45343         * users.txt: Add libguestfs.
45344
45345 2009-08-24  Eric Blake  <ebb9@byu.net>
45346
45347         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45348         * lib/pipe2.c (includes): Add binary-io.h.
45349         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45350
45351 2009-08-24  Bruno Haible  <bruno@clisp.org>
45352
45353         Tolerate declared but missing accept4 syscall.
45354         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45355         available.
45356         * lib/sys_socket.in.h (accept4): If the function is already present,
45357         override it.
45358         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45359         * modules/accept4 (Makefile.am): Compile accept4.c always.
45360         Reported by Paolo Bonzini and Eric Blake.
45361
45362 2009-08-23  Bruno Haible  <bruno@clisp.org>
45363
45364         New module 'accept4'.
45365         * lib/sys_socket.in.h (accept4): New declaration.
45366         * lib/accept4.c: New file.
45367         * m4/accept4.m4: New file.
45368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45369         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45370         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45371         HAVE_ACCEPT4.
45372         * modules/accept4: New file.
45373         * doc/glibc-functions/accept4.texi: Mention the new module.
45374
45375 2009-08-24  Jim Meyering  <meyering@redhat.com>
45376
45377         progname: also set global program_invocation_name, when possible
45378         Before this change, a libtool-enabled program that calls glibc's
45379         error function would report the program name as
45380         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45381         * modules/progname (configure.ac): Check for a declaration of
45382         program_invocation_name.
45383         * lib/progname.c:  Include <errno.h>.
45384         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45385         Set program_invocation_name.
45386
45387 2009-08-23  Bruno Haible  <bruno@clisp.org>
45388
45389         * lib/dup3.c: Include <string.h>.
45390
45391 2009-08-23  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45394         * lib/pipe2.c (pipe2): Likewise.
45395         Suggested by Eric Blake.
45396
45397 2009-08-23  Bruno Haible  <bruno@clisp.org>
45398
45399         Tolerate declared but missing dup3 syscall.
45400         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45401         * lib/unistd.in.h (dup3): If the function is already present,
45402         override it.
45403         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45404         * modules/dup3 (Makefile.am): Compile dup3.c always.
45405         Reported by Paolo Bonzini.
45406
45407 2009-08-23  Bruno Haible  <bruno@clisp.org>
45408
45409         Tolerate declared but missing pipe2 syscall.
45410         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45411         available.
45412         * lib/unistd.in.h (pipe2): If the function is already present,
45413         override it.
45414         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45415         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45416         Reported by Paolo Bonzini.
45417
45418 2009-08-23  Bruno Haible  <bruno@clisp.org>
45419
45420         * lib/pipe2.c (pipe2): Move #ifs inside function.
45421
45422 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45423
45424         quotearg: document limitations of quote_these_too
45425         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45426         those limitations are created.
45427         * lib/quotearg.h (set_char_quoting): Document that digits and
45428         letters that are special after backslash are not permitted.
45429         (quotearg_char): Cross-reference set_char_quoting documentation.
45430
45431 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45432
45433         quotearg: implement custom_quoting_style
45434         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45435         right_quote fields.
45436         (set_custom_quoting): New public function.
45437         (quotearg_buffer_restyled): Add left_quote and right_quote
45438         arguments, handle them very much like locale quoting, and update
45439         all uses.
45440         (quotearg_n_custom): New public function.
45441         (quotearg_n_custom_mem): New public function.
45442         (quotearg_custom): New public function.
45443         (quotearg_custom_mem): New public function.
45444         * lib/quotearg.h: Prototype and document new public functions.
45445         (enum quoting_style): For escape_quoting_style and
45446         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45447         ignored even though they're otherwise like c_quoting_style.
45448         Add custom_quoting_style member and document with comparison to
45449         clocale_quoting_style.
45450         * tests/test-quotearg.c (custom_quotes): New array.
45451         (custom_results): New array.
45452         (main): Extend to test custom quoting.
45453
45454 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45455
45456         quotearg: fix right quote escaping when it's in quote_these_too
45457         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45458         quote, be sure to prepend only one backslash.
45459         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45460         (main): Test it.
45461
45462 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45463
45464         quotearg-tests: test escaping of embedded locale quotes
45465         * tests/test-quotearg.c (struct result_strings): Add member for
45466         new input.
45467         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45468         (inputs): Add new input.
45469         (results_g): Add expected results.
45470         (flag_results): Likewise.
45471         (locale_results): Likewise.
45472         (compare_strings): Check those.
45473
45474 2009-08-23  Bruno Haible  <bruno@clisp.org>
45475
45476         Tests for module 'dup3'.
45477         * modules/dup3-tests: New file.
45478         * tests/test-dup3.c: New file.
45479
45480         New module 'dup3'.
45481         * lib/unistd.in.h (dup3): New declaration.
45482         * lib/dup3.c: New file.
45483         * m4/dup3.m4: New file.
45484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45485         HAVE_DUP3.
45486         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45487         * modules/dup3: New file.
45488         * doc/glibc-functions/dup3.texi: Mention the new module.
45489
45490 2009-08-23  Bruno Haible  <bruno@clisp.org>
45491
45492         Tweak the dup2 test.
45493         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45494         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45495         the test file is still empty. Fix argument order of lseek.
45496
45497 2009-08-23  Bruno Haible  <bruno@clisp.org>
45498
45499         Avoid test link errors when the modules getopt-gnu, gettext are used.
45500         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45502
45503 2009-08-23  Bruno Haible  <bruno@clisp.org>
45504
45505         Fix getdtablesize() on mingw.
45506         * lib/getdtablesize.c (getdtablesize): Implement differently.
45507         * lib/unistd.in.h (getdtablesize): Improve comment.
45508
45509 2009-08-23  Bruno Haible  <bruno@clisp.org>
45510
45511         New module 'mkostemp'.
45512         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45513         * lib/stdlib.in.h (mksotemp): New declaration.
45514         * lib/mkostemp.c: New file, from glibc with modifications.
45515         * lib/tempname.h (GT_FILE): Remove outdated comment.
45516         (gen_tempname): Add flags argument.
45517         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45518         (__GT_FILE): Map to 1.
45519         (small_open, large_open): Remove macros.
45520         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45521         * lib/mkstemp.c (mkstemp): Update.
45522         * lib/mkdtemp.c (mkdtemp): Likewise.
45523         * m4/mkostemp.m4: New file.
45524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45525         HAVE_MKOSTEMP.
45526         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45527         HAVE_MKOSTEMP.
45528         * modules/mkostemp: New file, based on modules/mkstemp.
45529         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45530         * NEWS: Mention the change.
45531
45532 2009-08-23  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45535         Reported by Eric Blake.
45536
45537 2009-08-23  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45540         Reported by Eric Blake.
45541
45542 2009-08-23  Bruno Haible  <bruno@clisp.org>
45543
45544         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45545         * modules/pipe2 (Depends-on): Likewise.
45546
45547 2009-08-23  Eric Blake  <ebb9@byu.net>
45548
45549         fcntl-h: add O_TTY_INIT support
45550         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45551         * tests/test-fcntl-h.c (o): Test it.
45552         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45553
45554         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45555         * modules/fcntl: Move <fcntl.h> header replacement...
45556         * modules/fcntl-h: ...to new name, so as not to collide with
45557         like-named function.
45558         * tests/test-fcntl.c: Rename...
45559         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45560         * modules/fcntl-tests: Rename...
45561         * modules/fcntl-h-tests: ...to this.  Update test file name.
45562         * modules/chdir-long (Depends-on): Update clients.
45563         * modules/chdir-safer (Depends-on): Likewise.
45564         * modules/fcntl-safer (Depends-on): Likewise.
45565         * modules/fts (Depends-on): Likewise.
45566         * modules/mkancesdirs (Depends-on): Likewise.
45567         * modules/mkdir-p (Depends-on): Likewise.
45568         * modules/open (Depends-on): Likewise.
45569         * modules/savewd (Depends-on): Likewise.
45570         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45571         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45572
45573 2009-08-22  Bruno Haible  <bruno@clisp.org>
45574
45575         * modules/binary-io (License): Relicense under LGPL.
45576         * modules/pipe2 (License): Likewise.
45577
45578 2009-08-22  Bruno Haible  <bruno@clisp.org>
45579
45580         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45581         return value.
45582         * lib/pipe-filter-gi.c (filter_init): Likewise.
45583         Reported by Eric Blake.
45584
45585 2009-08-22  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45588         * modules/pipe (Depends-on): Add pipe2.
45589
45590 2009-08-22  Bruno Haible  <bruno@clisp.org>
45591
45592         Tests for module 'pipe2'.
45593         * modules/pipe2-tests: New file.
45594         * tests/test-pipe2.c: New file.
45595
45596         New module 'pipe2'.
45597         * lib/unistd.in.h (pipe2): New declaration.
45598         * lib/pipe2.c: New file.
45599         * m4/pipe2.m4: New file.
45600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45601         HAVE_PIPE2.
45602         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45603         * modules/pipe2: New file.
45604         * doc/glibc-functions/pipe2.texi: Mention the new module.
45605
45606 2009-08-22  Bruno Haible  <bruno@clisp.org>
45607
45608         Reference some new glibc functions.
45609         * doc/glibc-functions/accept4.texi: New file.
45610         * doc/glibc-functions/dup3.texi: New file.
45611         * doc/glibc-functions/mkostemp.texi: New file.
45612         * doc/glibc-functions/pipe2.texi: New file.
45613         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45614         (Glibc sys/socket.h): Refer to accept4.
45615         (Glibc unistd.h): Refer to dup3, pipe2.
45616         Reported by Eric Blake.
45617
45618 2009-08-22  Jim Meyering  <meyering@redhat.com>
45619             Bruno Haible  <bruno@clisp.org>
45620
45621         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45622         This makes it so packages using automake-1.11's silent-rules option
45623         can print e.g., a single "GEN    configmake.h" line, rather than
45624         the 30+ statements that perform the job.  If you want to see the
45625         actual commands, you can still run "make V=1".
45626         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45627         so that make output is abbreviated when those variables are defined
45628         appropriately.
45629         * modules/argz: Likewise.
45630         * modules/arpa_inet: Likewise.
45631         * modules/byteswap: Likewise.
45632         * modules/configmake: Likewise.
45633         * modules/dirent: Likewise.
45634         * modules/errno: Likewise.
45635         * modules/fcntl: Likewise.
45636         * modules/float: Likewise.
45637         * modules/fnmatch: Likewise.
45638         * modules/getopt-posix: Likewise.
45639         * modules/glob: Likewise.
45640         * modules/iconv_open: Likewise.
45641         * modules/inttypes: Likewise.
45642         * modules/localcharset: Likewise.
45643         * modules/locale: Likewise.
45644         * modules/math: Likewise.
45645         * modules/netdb: Likewise.
45646         * modules/netinet_in: Likewise.
45647         * modules/poll: Likewise.
45648         * modules/posix_spawnp-tests: Likewise.
45649         * modules/sched: Likewise.
45650         * modules/search: Likewise.
45651         * modules/selinux-h: Likewise.
45652         * modules/signal: Likewise.
45653         * modules/spawn: Likewise.
45654         * modules/stdarg: Likewise.
45655         * modules/stdbool: Likewise.
45656         * modules/stddef: Likewise.
45657         * modules/stdint: Likewise.
45658         * modules/stdio: Likewise.
45659         * modules/stdlib: Likewise.
45660         * modules/string: Likewise.
45661         * modules/strings: Likewise.
45662         * modules/sys_file: Likewise.
45663         * modules/sys_ioctl: Likewise.
45664         * modules/sys_select: Likewise.
45665         * modules/sys_socket: Likewise.
45666         * modules/sys_stat: Likewise.
45667         * modules/sys_time: Likewise.
45668         * modules/sys_times: Likewise.
45669         * modules/sys_utsname: Likewise.
45670         * modules/sys_wait: Likewise.
45671         * modules/sysexits: Likewise.
45672         * modules/time: Likewise.
45673         * modules/unistd: Likewise.
45674         * modules/wchar: Likewise.
45675         * modules/wctype: Likewise.
45676
45677 2009-08-22  Jim Meyering  <meyering@redhat.com>
45678
45679         announce-gen: detect write failure
45680         * build-aux/announce-gen: Add Coda at end.
45681         Remove equivalent-but-more-verbose block at top.
45682
45683 2009-08-19  Akim Demaille  <demaille@gostai.com>
45684
45685         bootstrap: --help to stdout.
45686         * bootstrap (usage): Don't send --help to stderr.
45687         Use a here doc instead of a long string.
45688
45689 2009-08-21  Eric Blake  <ebb9@byu.net>
45690
45691         test-popen-safer: split from test-popen
45692         * tests/test-popen.c (main): Move...
45693         * tests/test-popen.h: ...into new file.
45694         * tests/test-popen-safer2.c: New file.
45695         * modules/popen-tests (Files): Add test-popen.h.
45696         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45697         Suggested by Bruno Haible.
45698
45699         test-fcntl-safer: split from test-open
45700         * tests/test-open.c (main): Move...
45701         * tests/test-open.h: ...into new file.
45702         * tests/test-fcntl-safer.c: New file.
45703         * modules/open-tests (Files): Add test-open.h.
45704         * modules/fcntl-safer-tests: New file.
45705         Suggested by Bruno Haible.
45706
45707         test-fopen-safer: split from test-fopen
45708         * tests/test-fopen.c (main): Move...
45709         * tests/test-fopen.h: ...into new file.
45710         * tests/test-fopen-safer.c: New file.
45711         * modules/fopen-tests (Files): Add test-fopen.h.
45712         * modules/fopen-safer-tests: New file.
45713         Suggested by Bruno Haible.
45714
45715 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45716
45717         popen-safer: test O_CLOEXEC at run-time.
45718         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45719
45720 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45721
45722         fcntl: move more flags to the header
45723         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45724         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45725         * lib/fcntl.in.h: Do both things here.
45726
45727 2009-08-21  Jim Meyering  <meyering@redhat.com>
45728
45729         consistently remove $@-t before redirecting to it
45730         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45731         * modules/alloca-opt: Likewise.
45732         * modules/byteswap: Likewise.
45733         * modules/fnmatch: Likewise.
45734         * modules/getopt-posix: Likewise.
45735         * modules/glob: Likewise.
45736         * modules/poll: Likewise.
45737         * modules/posix_spawnp-tests: Likewise.
45738         * modules/sys_socket: Likewise.
45739         * modules/sysexits: Likewise.
45740
45741 2009-08-21  Eric Blake  <ebb9@byu.net>
45742
45743         popen: simplify access to original popen
45744         * lib/popen.c (rpl_popen): No need to worry about popen being a
45745         macro.
45746         Reported by Bruno Haible.
45747
45748 2009-08-20  Eric Blake  <ebb9@byu.net>
45749
45750         build: avoid some compiler warnings
45751         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45752         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45753         type.
45754         (new_exclude_segment, excluded_file_pattern_p)
45755         (excluded_file_name_p): Reduce scope.
45756         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45757         old-style declaration.
45758
45759 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45760
45761         * tests/test-exclude1.sh: Handle Windows EOL.
45762         * tests/test-exclude2.sh: Likewise.
45763         * tests/test-exclude3.sh: Likewise.
45764         * tests/test-exclude4.sh: Likewise.
45765         * tests/test-exclude5.sh: Likewise.
45766         * tests/test-exclude6.sh: Likewise.
45767         * tests/test-exclude7.sh: Likewise.
45768
45769 2009-08-19  Akim Demaille  <demaille@gostai.com>
45770
45771         bootstrap: find sha1sum when named gsha1sum.
45772         * bootstrap (find_tool): New.
45773         ($SHA1SUM): New.
45774         Use it.
45775
45776 2009-08-20  Jim Meyering  <meyering@redhat.com>
45777
45778         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45779         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45780         expression that converts "." in a file name to "\." in the resulting
45781         regexp.  Start with a dummy statement, so that prior shell variable
45782         definitions are expanded portably.  Reported by Simon Josefsson.
45783
45784 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45785
45786         Fix polling for writeability of a screen buffer.
45787         * lib/poll.c: Distinguish input and screen buffers for the
45788         Win32 implementation.
45789         * lib/select.c: Likewise.
45790
45791 2009-08-19  Eric Blake  <ebb9@byu.net>
45792
45793         popen-safer: prevent popen from clobbering std descriptors
45794         * modules/popen-safer: New file.
45795         * lib/popen-safer.c: Likewise.
45796         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45797         * lib/stdio--.h (popen): Provide override.
45798         * lib/stdio-safer.h (popen_safer): Provide declaration.
45799         * tests/test-popen.c (includes): Partially test this.
45800         * modules/popen-safer-tests: New file, for more tests.
45801         * tests/test-popen-safer.c: Likewise.
45802         * MODULES.html.sh (file stream based Input/Output): Mention it.
45803
45804         tests: test some of the *-safer modules
45805         * modules/fopen-safer (Depends-on): Add fopen.
45806         * modules/fcntl-safer (Depends-on): Add fcntl.
45807         * modules/stdlib-safer (Depends-on): Add stdlib.
45808         (configure.ac): Set indicator.
45809         * modules/unistd-safer (configure.ac): Likewise.
45810         * modules/tmpfile-safer (configure.ac): Likewise.
45811         (Depends-on): Add tmpfile.
45812         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45813         active.
45814         * tests/test-fopen.c (includes): Test safer versions when they are
45815         in use.
45816         * tests/test-open.c (includes): Likewise.
45817
45818         popen: fix cygwin 1.5 bug when stdin closed
45819         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45820         * modules/popen: New file.
45821         * modules/popen-tests: Likewise.
45822         * tests/test-popen.c: Likewise.
45823         * m4/popen.m4: Likewise.
45824         * lib/popen.c: Likewise.
45825         * lib/stdio.in.h (popen): New declaration.
45826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45827         * modules/stdio (Makefile.am): Likewise.
45828         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45829
45830 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45831
45832         maint.mk: give full control over update-copyright exclusions
45833         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45834         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45835         (update-copyright): Don't force inclusion of top-level
45836         ChangeLog.  Don't force exclusion of all COPYING files, but make
45837         them the default exclusion instead.
45838
45839 2009-08-16  Bruno Haible  <bruno@clisp.org>
45840
45841         Fix test failures on Solaris 10.
45842         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45843         tests when Solaris iconv() is used.
45844         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45845         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45846         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45847         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45848         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45849
45850 2009-08-16  Bruno Haible  <bruno@clisp.org>
45851
45852         Fix test failures on Solaris 10.
45853         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45854         'tr' program and pass it as first argument.
45855         * tests/test-pipe-filter-gi1.sh: Likewise.
45856         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45857         program as first argument.
45858         * tests/test-pipe-filter-gi1.c (main): Likewise.
45859
45860 2009-08-16  Eric Blake  <ebb9@byu.net>
45861
45862         fpurge: fix previous commits
45863         * modules/fpurge (Makefile.am): Make replacement conditional,
45864         partially reverting 2007-04-29 change; missed in previous
45865         attempt.
45866         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45867         is missing.
45868
45869 2009-08-16  Bruno Haible  <bruno@clisp.org>
45870
45871         Clarify fpurge's effect on the file position.
45872         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45873         * tests/test-fpurge.c (main): Make a second pass for checking the file
45874         position.
45875
45876 2009-08-16  Bruno Haible  <bruno@clisp.org>
45877
45878         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45879         declaration of fpurge is missing.
45880         * tests/test-fpurge.c (main): Check that the file has not more contents
45881         than expected. Close the file before removing it.
45882
45883 2009-08-15  Eric Blake  <ebb9@byu.net>
45884
45885         fpurge: don't wrap working cygwin implementation
45886         * lib/fpurge.c (fpurge): Fix comment typo.
45887         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45888         1.7 to avoid replacement.
45889         * tests/test-fpurge.c (main): Enhance test.
45890
45891 2009-08-15  Eric Blake  <ebb9@byu.net>
45892         and Jim Meyering  <meyering@redhat.com>
45893
45894         test-update-copyright: skip if perl is insufficient
45895         * tests/test-update-copyright.sh: Failure to run maintainer tool
45896         should not cause testsuite failure on cygwin 1.5.
45897
45898 2009-08-14  Eric Blake  <ebb9@byu.net>
45899
45900         doc: mention more functions added in cygwin 1.7.0
45901         * doc/posix-headers/limits.texi (limits.h): Update for recent
45902         cygwin additions.
45903         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45904         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45905         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45906         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45907         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45908
45909 2009-08-14  Eric Blake  <ebb9@byu.net>
45910
45911         maint.mk: simplify update-copyright rule
45912         * top/maint.mk (update-copyright-local): Delete, and document how
45913         to do it in cfg.mk instead.
45914         (update-copyright-exclude-regexp): Delete, and document how to do
45915         it in .x-update-copyright instead.
45916         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45917         exclude ChangeLog.
45918
45919 2009-08-14  Bruno Haible  <bruno@clisp.org>
45920
45921         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45922
45923 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45924
45925         maint.mk: support update-copyright-env
45926         * top/maint.mk (update-copyright-env): Define place-holder.
45927         (update-copyright): Expand $(update-copyright-env) before
45928         invoking update-copyright.
45929
45930 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45931
45932         update-copyright: implement forced reformatting
45933         * build-aux/update-copyright: Implement and document
45934         UPDATE_COPYRIGHT_FORCE.
45935         * tests/test-update-copyright.sh: Test it.
45936
45937 2009-08-14  Eric Blake  <ebb9@byu.net>
45938         and Bruno Haible  <bruno@clisp.org>
45939
45940         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45941         * tests/test-locale.c: Revert previous patch related to NULL.
45942         * tests/test-stdio.c: Likewise.
45943         * tests/test-stdlib.c: Likewise.
45944         * tests/test-string.c: Likewise.
45945         * tests/test-unistd.c: Likewise.
45946         * modules/time-tests (Depends-on): Add verify.
45947         * modules/wchar-tests (Depends-on): Likewise.
45948         * tests/test-time.c: Test for NULL compliance.
45949         * tests/test-wchar.c: Likewise.
45950         * modules/locale (Depends-on): Add stddef.
45951         * modules/stdio (Depends-on): Likewise.
45952         * modules/stdlib (Depends-on): Likewise.
45953         * modules/string (Depends-on): Likewise.
45954         * modules/time (Depends-on): Likewise.
45955         * modules/unistd (Depends-on): Likewise.
45956         * modules/wchar (Depends-on): Likewise.
45957         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45958         * lib/stdlib.in.h (includes): Likewise.
45959         * lib/string.in.h (includes): Likewise.
45960         * lib/time.in.h (includes): Likewise.
45961         * lib/unistd.in.h (includes): Likewise.
45962         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45963         replaced.
45964         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45965         * m4/stddef_h.m4: New file.
45966         * modules/stddef: Likewise.
45967         * lib/stddef.in.h: Likewise.
45968         * modules/stddef-tests: Likewise.
45969         * tests/test-stddef.c: Likewise.
45970         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45971         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45972         * doc/posix-headers/locale.texi (locale.h): Likewise.
45973         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45974         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45975         * doc/posix-headers/string.texi (string.h): Likewise.
45976         * doc/posix-headers/time.texi (time.h): Likewise.
45977         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45978         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45979
45980 2009-08-14  Eric Blake  <ebb9@byu.net>
45981
45982         doc: improve git diff of texinfo files
45983         * .gitattributes: Add rule for *.texi files, with hint on how to
45984         use it.
45985         Copied from m4, and based on a report by Bruno Haible.
45986
45987 2009-08-14  Bruno Haible  <bruno@clisp.org>
45988
45989         Disable multithread support by default on Cygwin 1.5.x for real.
45990         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45991
45992 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45993
45994         update-copyright: much ado about intervals
45995         * build-aux/update-copyright: Implement and document
45996         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45997         of copyright year intervals.
45998         Also, document UPDATE_COPYRIGHT_YEAR.
45999         * tests/test-update-copyright.sh: Test it.
46000
46001         update-copyright: convert 2-digit to 4-digit years
46002         * build-aux/update-copyright: Implement and document.
46003         * tests/test-update-copyright.sh: Update.
46004
46005 2009-08-14  Jim Meyering  <meyering@redhat.com>
46006
46007         test-exclude: avoid coreutils "make check" failure
46008         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46009         just as in test-argmatch.c.
46010
46011 2009-08-13  Eric Blake  <ebb9@byu.net>
46012
46013         test-dup2: fix bad assumption
46014         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46015         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46016
46017         test-version-etc: fix CRLF portability issue
46018         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46019         recognize \r.
46020         * tests/test-argp-version-etc-1.sh: Likewise.
46021
46022         getopt: update client modules
46023         * modules/argp (Depends-on): Use getopt-gnu.
46024         * modules/git-merge-changelog (Depends-on): Likewise.
46025         * modules/long-options (Depends-on): Likewise.
46026         * modules/xstrtol (Depends-on): Likewise.
46027
46028 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46029
46030         * tests/test-version-etc.sh: Don't fail on different
46031         project/version.  Don't fail on CRLF differences.  Rewrite to use
46032         multiple -e instead of multiple sed forks, suggested by Eric Blake
46033         <ebb9@byu.net>.
46034         * tests/test-argp-version-etc-1.sh: Likewise.
46035
46036 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46037
46038         * tests/test-version-etc.sh: Don't fail on different
46039         project/version.
46040
46041 2009-08-12  Bruno Haible  <bruno@clisp.org>
46042
46043         Tests for modules 'getopt-posix', 'getopt-gnu'.
46044         * modules/getopt-posix-tests: New file.
46045         * tests/test-getopt.c: New file.
46046         * tests/test-getopt.h: New file.
46047         * tests/test-getopt_long.h: New file.
46048
46049         New modules 'getopt-posix', 'getopt-gnu'.
46050         * modules/getopt-gnu: New file, renamed from modules/getopt.
46051         * modules/getopt-posix: New file.
46052         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46053         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46054         (gl_GETOPT): Remove macro.
46055         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46056         Disable the test against BSD systems that declare optreset. Test
46057         against mingw bug. Test against lack of support of optional arguments
46058         on many platforms.
46059         * doc/glibc-headers/getopt.texi: Update module name and list of
46060         relevant platforms.
46061         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46062         'getopt-gnu' and more portability problems.
46063         * NEWS: Mention the changes.
46064
46065 2009-08-12  Bruno Haible  <bruno@clisp.org>
46066
46067         Ensure that optarg etc. get declared by <unistd.h>.
46068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46069         AC_USE_SYSTEM_EXTENSIONS.
46070         * modules/getopt (Depends-on): Add 'extensions'.
46071
46072 2009-08-12  Bruno Haible  <bruno@clisp.org>
46073
46074         Avoid test link errors.
46075         * modules/pipe-filter-ii-tests (Makefile.am): Define
46076         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46077         * modules/pipe-filter-gi-tests (Makefile.am): Define
46078         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46080
46081 2009-08-12  Bruno Haible  <bruno@clisp.org>
46082
46083         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46084         gl_GETOPT_SUBSTITUTE before.
46085         (gl_GETOPT): Use it.
46086         * m4/argp.m4 (gl_ARGP): Update.
46087         Reported by Sergey Poznyakoff.
46088
46089         * m4/getopt.m4: Reorder macros.
46090         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46091         (gl_GETOPT_SUBSTITUTE): Remove macro.
46092
46093 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46094
46095         Minor improvement in gitlog-to-changelog
46096
46097         * build-aux/gitlog-to-changelog: New option `--format' makes
46098         output format string configurable.
46099
46100 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46101
46102         Optimize exclude: use hash tables for non-wildcard patterns.
46103
46104         * lib/exclude.c: Include hash.h and mbuiter.h
46105         (struct exclude_pattern, exclude_segment): New data types.
46106         (struct exclude): Rewrite.
46107         (fnmatch_pattern_has_wildcards): New function.
46108         (new_exclude_segment, free_exclude_segment): New functions.
46109         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46110         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46111         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46112         * modules/exclude: Depend on hash and mbuiter.
46113
46114         * modules/exclude-tests: New file.
46115         * tests/test-exclude.c: New file.
46116         * tests/test-exclude1.sh: New file.
46117         * tests/test-exclude2.sh: New file.
46118         * tests/test-exclude3.sh: New file.
46119         * tests/test-exclude4.sh: New file.
46120         * tests/test-exclude5.sh: New file.
46121         * tests/test-exclude6.sh: New file.
46122         * tests/test-exclude7.sh: New file.
46123
46124 2009-08-12  Bruno Haible  <bruno@clisp.org>
46125
46126         Ensure that getopt() gets declared by <unistd.h>.
46127         * lib/unistd.in.h: Conditionally include getopt.h.
46128         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46129         Set GNULIB_UNISTD_H_GETOPT.
46130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46131         GNULIB_UNISTD_H_GETOPT.
46132         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46133
46134 2009-08-12  Bruno Haible  <bruno@clisp.org>
46135
46136         Clarify logic.
46137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46138         gl_replace_getopt instead of GETOPT_H.
46139
46140 2009-08-12  Bruno Haible  <bruno@clisp.org>
46141
46142         * m4/getopt.m4: Add comments.
46143
46144 2009-08-12  Bruno Haible  <bruno@clisp.org>
46145
46146         Disable multithread support by default on Cygwin 1.5.x.
46147         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46148         set gl_use_threads=no if not specified otherwise.
46149
46150 2009-08-11  Bruno Haible  <bruno@clisp.org>
46151
46152         Avoid compilation error on NetBSD 5.0.
46153         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46154         * tests/test-stdio.c: Likewise.
46155         * tests/test-stdlib.c: Likewise.
46156         * tests/test-string.c: Likewise.
46157         * tests/test-unistd.c: Likewise.
46158         Reported by Greg Troxel <gdt@ir.bbn.com>
46159         at <https://savannah.gnu.org/support/?106973>.
46160
46161 2009-08-11  Bruno Haible  <bruno@clisp.org>
46162
46163         * modules/dup2-tests (Depends-on): Remove close.
46164
46165         Undo 2009-07-19 commit.
46166         * modules/acl-tests (Depends-on): Remove close.
46167         * modules/binary-io-tests (Depends-on): Likewise.
46168         * modules/closein-tests (Depends-on): Likewise.
46169         * modules/flock-tests (Depends-on): Likewise.
46170         * modules/fsync-tests (Depends-on): Likewise.
46171         * modules/lseek-tests (Depends-on): Likewise.
46172         * modules/pipe-tests (Depends-on): Likewise.
46173         * modules/posix_spawn-tests (Depends-on): Likewise.
46174         * modules/posix_spawnp-tests (Depends-on): Likewise.
46175         * modules/stat-time-tests (Depends-on): Likewise.
46176         * modules/yesno-tests (Depends-on): Likewise.
46177
46178 2009-08-10  Bruno Haible  <bruno@clisp.org>
46179
46180         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46181
46182 2009-08-10  Bruno Haible  <bruno@clisp.org>
46183
46184         Fix a gcc warning.
46185         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46186
46187 2009-08-10  Bruno Haible  <bruno@clisp.org>
46188
46189         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46190         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46191         not only the first time.
46192         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46193         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46194         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46195         is 1, not only the the first time.
46196
46197 2009-08-10  Bruno Haible  <bruno@clisp.org>
46198
46199         Make it possible to use module 'gethostname' without module 'close'.
46200         * lib/unistd.in.h (close): Evoke a link error only if
46201         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46203         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46204         * modules/unistd (Makefile.am): Substitute
46205         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46206         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46207         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46208         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46209         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46210         * modules/sys_ioctl (Makefile.am): Substitute
46211         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46212         * modules/socket (configure.ac): On native Windows, set
46213         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46214         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46215         Reported by Sam Steingold <sds@gnu.org>.
46216
46217 2009-08-10  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46220         * modules/ioctl (configure.ac): Likewise.
46221
46222 2009-08-10  Bruno Haible  <bruno@clisp.org>
46223
46224         Avoid collision between gnulib wrapper and libintl wrapper.
46225         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46226         already defined in intl/printf.c.
46227         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46228         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46229
46230 2009-08-09  Bruno Haible  <bruno@clisp.org>
46231
46232         Make <sys/select.h> really self-contained, also on Solaris 10.
46233         * lib/sys_select.in.h: Include <string.h>.
46234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46235         Solaris 10 problem.
46236         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46237         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46238         Reported by Jim Meyering.
46239
46240 2009-08-09  Bruno Haible  <bruno@clisp.org>
46241
46242         Avoid warnings from 'aclocal' that are due to a use of macro name
46243         AM_XGETTEXT_OPTION that is not defined in automake.
46244         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46245         automake.
46246         * modules/error (configure.ac): Likewise.
46247         * modules/propername (configure.ac): Likewise.
46248         * modules/vasprintf (configure.ac): Likewise.
46249         * modules/verror (configure.ac): Likewise.
46250         * modules/xprintf (configure.ac): Likewise.
46251         * modules/xvasprintf (configure.ac): Likewise.
46252
46253 2009-08-08  Bruno Haible  <bruno@clisp.org>
46254
46255         Avoid compilation error in C++ mode.
46256         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46257         Reported by Sam Steingold <sds@gnu.org>.
46258
46259 2009-08-08  Bruno Haible  <bruno@clisp.org>
46260
46261         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46262         for the various Unix platforms.
46263         * doc/posix-headers/limits.texi: Update platforms list regarding
46264         HOST_NAME_MAX.
46265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46266
46267 2009-08-07  Jim Meyering  <meyering@redhat.com>
46268
46269         selinux-at: fix typo in a comment
46270         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46271         Spotted by Paolo Bonzini.
46272
46273         selinux-at: remove redundant m4 code, add documentation
46274         * modules/selinux-at (configure.ac): Remove redundant code.
46275         LIB_SELINUX is already set via the dependent module, selinux-h.
46276         (Include): Add quotes around selinux-at.h.
46277         * lib/selinux-at.h: Add documentation.
46278         Reported by Bruno Haible in
46279         http://marc.info/?l=gnulib-bug&m=124958988300749
46280
46281 2009-08-07  Bruno Haible  <bruno@clisp.org>
46282
46283         Avoid link error on MacOS X 10.3 and 10.4.
46284         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46285         on non-ELF systems.
46286         * lib/argp-pv.c (argp_program_version): Likewise.
46287         Reported by Simon Josefsson.
46288
46289 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46290
46291         * tests/test-version-etc.sh: Use $EXEEXT.
46292
46293 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46294
46295         update-copyright: update documentation to point to maint.mk
46296         * build-aux/update-copyright: Here.
46297
46298 2009-08-06  Jim Meyering  <meyering@redhat.com>
46299
46300         maint.mk: support update-copyright-local
46301         * top/maint.mk (update-copyright-local): Define place-holder.
46302         (update-copyright): Depend on $(update-copyright-local).
46303
46304 2009-08-06  Jim Meyering  <meyering@redhat.com>
46305
46306         selinux-at: new module
46307         Initially written for coreutils, this module will soon be
46308         used by findutils, too.
46309         * MODULES.html.sh [Misc]: Add selinux-at.
46310         * lib/selinux-at.h: New file, from coreutils.
46311         * lib/selinux-at.c: Likewise.
46312         * modules/selinux-at: Likewise.
46313         (License): Change from LGPL to GPL, since it depends
46314         on the GPL'd openat module.
46315
46316         doc: update README
46317         * README: Remove references to cogito.
46318         Remove cvs-repo-updating instructions from 2007.
46319         Don't imply that CVS is better if you have limited disk space.
46320
46321 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46322
46323         update-copyright: support C-style comments
46324         * build-aux/update-copyright: Implement and document.
46325         * tests/test-update-copyright.sh: Test.
46326
46327 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46328
46329         update-copyright: support omitted "(C)"
46330         * build-aux/update-copyright: Implement and document.  Also,
46331         allow variable whitespace before "(C)".
46332         * tests/test-update-copyright.sh: Test.
46333
46334 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46335
46336         update-copyright: don't trip on non-FSF copyright statements
46337         * build-aux/update-copyright: Fix so that the first correctly
46338         formatted FSF copyright statement is recognized no matter what
46339         appears before it.  Update documentation.
46340         * tests/test-update-copyright.sh: Test that.
46341
46342 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46343
46344         update-copyright: clean up code a little
46345         * build-aux/update-copyright: Append "_re" to the name of any
46346         variable holding a regular expression.
46347         Replace "old" and "new" with "stmt" in variable names.
46348         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46349         handled correctly.
46350         Format code more consistently.
46351
46352 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46353
46354         update-copyright-tests: improve portability
46355         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46356         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46357
46358 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46359
46360         update-copyright: support @copyright{} and &copy;
46361         * build-aux/update-copyright: Implement and document.
46362         * tests/test-update-copyright.sh: Test.
46363
46364 2009-08-04  Jim Meyering  <meyering@redhat.com>
46365
46366         update-copyright-tests: correctly test EOL=\r\n handling
46367         * tests/test-update-copyright.sh: Put \r at the end of some lines
46368         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46369
46370         maint.mk: make update-copyright exclusion list more configurable
46371         * top/maint.mk (update-copyright): Default to excluding COPYING,
46372         but allow an override, in case someone does want to update that file.
46373
46374         maint.mk: don't update copyright date in COPYING
46375         * top/maint.mk (update-copyright): Exclude COPYING.
46376
46377         maint.mk: add a copyright-updating rule
46378         * top/maint.mk (update-copyright): New rule.
46379         Derived from coreutils/Makefile.am.
46380
46381         update-copyright: rename some variables
46382         * build-aux/update-copyright: Rename a few variables for clarity.
46383         Tweak syntax.  List Joel E. Denny as coauthor.
46384
46385 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46386
46387         update-copyright: fix bug for 2-digit last year and add tests
46388         * build-aux/update-copyright: Fix bug.
46389         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46390         specified.
46391         * modules/update-copyright-tests: New
46392         * tests/test-update-copyright.sh: New.
46393
46394 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46395
46396         update-copyright: handle leading tabs in line prefix
46397         * build-aux/update-copyright: Count leading tabs as 8 spaces
46398         when computing margin.  This helps with the formatting of
46399         ChangeLogs, for example.
46400         Fix documentation a little.
46401
46402 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46403
46404         update-copyright: support EOL=\r\n
46405         * build-aux/update-copyright: Implement that.
46406
46407 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46408
46409         update-copyright: automatically format copyright statements
46410         * build-aux/update-copyright: Implement that.
46411         Also, be a little more predictable and safer by always failing
46412         when the full copyright format is not perfectly recognized as an
46413         unbroken whole.  Discussed at
46414         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46415         Rewrite documentation.
46416
46417 2009-08-03  Bruno Haible  <bruno@clisp.org>
46418
46419         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46420
46421 2009-08-02  Bruno Haible  <bruno@clisp.org>
46422
46423         Tests for module 'uname'.
46424         * modules/uname-tests: New file.
46425         * tests/test-uname.c: New file.
46426
46427         New module 'uname'.
46428         * lib/uname.c: New file.
46429         * m4/uname.m4: New file.
46430         * modules/uname: New file.
46431         * doc/posix-functions/uname.texi: Mention the new module.
46432
46433 2009-08-02  Bruno Haible  <bruno@clisp.org>
46434
46435         Tests for module 'sys_utsname'.
46436         * modules/sys_utsname-tests: New file.
46437         * tests/test-sys_utsname.c: New file.
46438
46439         New module 'sys_utsname'.
46440         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46441         * m4/sys_utsname_h.m4: New file.
46442         * modules/sys_utsname: New file.
46443         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46444
46445 2009-08-02  Bruno Haible  <bruno@clisp.org>
46446
46447         Implicitly initialize the sockets library.
46448         * lib/gethostname.c: Include sockets.h.
46449         (rpl_gethostname): Invoke gl_sockets_startup.
46450         * lib/socket.c: Include sockets.h.
46451         (rpl_socket): Invoke gl_sockets_startup.
46452         * modules/gethostname (Depends-on): Add sockets.
46453         * modules/socket (Depends-on): Likewise.
46454         * tests/test-poll.c: Don't include sockets.h.
46455         (main): Don't invoke gl_sockets_startup.
46456         * tests/test-select.c: Don't include sockets.h.
46457         (main): Don't invoke gl_sockets_startup.
46458
46459 2009-08-02  Bruno Haible  <bruno@clisp.org>
46460
46461         Allow multiple calls to gl_sockets_startup.
46462         * lib/sockets.c (initialized_sockets_version): New variable.
46463         (gl_sockets_startup): Do nothing if already called for this or a higher
46464         version.
46465         (gl_sockets_cleanup): Reset initialized_sockets_version.
46466
46467 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46468
46469         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46470         different project/version.
46471
46472 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46473             Bruno Haible  <bruno@clisp.org>
46474
46475         Tests for module 'pipe-filter-gi'.
46476         * modules/pipe-filter-gi-tests: New file.
46477         * tests/test-pipe-filter-gi1.sh: New file.
46478         * tests/test-pipe-filter-gi1.c: New file.
46479         * tests/test-pipe-filter-gi2.sh: New file.
46480         * tests/test-pipe-filter-gi2-main.c: New file.
46481         * tests/test-pipe-filter-gi2-child.c: New file.
46482
46483         New module 'pipe-filter-gi'.
46484         * lib/pipe-filter-gi.c: New file.
46485         * modules/pipe-filter-gi: New file.
46486
46487 2009-08-02  Bruno Haible  <bruno@clisp.org>
46488             Paolo Bonzini  <bonzini@gnu.org>
46489
46490         Tests for module 'pipe-filter-ii'.
46491         * modules/pipe-filter-ii-tests: New file.
46492         * tests/test-pipe-filter-ii1.sh: New file.
46493         * tests/test-pipe-filter-ii1.c: New file.
46494         * tests/test-pipe-filter-ii2.sh: New file.
46495         * tests/test-pipe-filter-ii2-main.c: New file.
46496         * tests/test-pipe-filter-ii2-child.c: New file.
46497
46498         New module 'pipe-filter-ii'.
46499         * lib/pipe-filter.h: New file.
46500         * lib/pipe-filter-ii.c: New file.
46501         * lib/pipe-filter-aux.h: New file.
46502         * modules/pipe-filter-ii: New file.
46503
46504 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46505
46506         * lib/gc-libgcrypt.c: Change copyright to FSF.
46507         * lib/gc-gnulib.c: Likewise.
46508
46509 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46510
46511         * lib/gethostname.c: Include limits.h.
46512
46513 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46514             Bruno Haible  <bruno@clisp.org>
46515
46516         Ensure HOST_NAME_MAX as part of the gethostname module.
46517         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46518         define also HOST_NAME_MAX.
46519         * tests/test-gethostname.c: Include <limits.h>.
46520         (main): Check also HOST_NAME_MAX.
46521         * doc/posix-headers/limits.texi: Document the mingw problem.
46522
46523 2009-08-02  Bruno Haible  <bruno@clisp.org>
46524
46525         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46526         Add comments.
46527
46528 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46529
46530         * lib/gethostname.c: Add Windows wrapper.
46531         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46532         * modules/gethostname: Depend on sys_socket & errno, for also
46533         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46534         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46535
46536 2009-07-31  Jim Meyering  <meyering@redhat.com>
46537
46538         getloadavg: fix symbol name in comment
46539         * lib/getloadavg.c: Correct a typo I introduced when adding
46540         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46541         Matt Kraai spotted the problem.
46542
46543 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46544
46545         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46546         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46547         code also if ! defined N_NAME_POINTER.
46548         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46549         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46550         but the n_name member is a 12-byte array.
46551
46552 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46553
46554         update-copyright: generalize comment handling
46555         * build-aux/update-copyright: Handle copyright statements
46556         within more comment styles.
46557         Document usage.
46558         Report any file with an external copyright holder or parse failure.
46559
46560 2009-07-29  Jim Meyering  <meyering@redhat.com>
46561
46562         mktime: correct setting of REPLACE_MKTIME
46563         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46564
46565         update-copyright: new module
46566         * modules/update-copyright: New file.
46567         * build-aux/update-copyright: New file.
46568         * MODULES.html.sh (maint+release support): Add update-copyright.
46569
46570 2009-07-27  Bruno Haible  <bruno@clisp.org>
46571
46572         Fix compilation error when <ctime> is used and mktime is replaced.
46573         * lib/time.in.h (mktime): New declaration.
46574         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46575         REPLACE_MKTIME instead of defining mktime in config.h.
46576         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46577         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46578         Reported by Ross McFarland <rwmcfa1@neces.com>.
46579
46580 2009-07-27  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46583         Reported by Matt Kraai <mkraai@beckman.com>.
46584
46585 2009-07-25  Jim Meyering  <meyering@redhat.com>
46586
46587         maint.mk: avoid warnings about missing files
46588         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46589         diagnostic when .prev-version does not exist.
46590         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46591         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46592         nonexistent cfg.mk.
46593         Suggestions from Simon Josefsson.
46594
46595 2009-07-25  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46598         defined as macros. Needed on QNX 6.4.1.
46599         Reported by Matt Kraai <mkraai@beckman.com>.
46600
46601 2009-07-23  Jim Meyering  <meyering@redhat.com>
46602
46603         maint.mk: invoke "make dist" with a working value of XZ_OPT
46604         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46605
46606 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46607
46608         Make fseeko.c compile on QNX.
46609         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46610
46611 2009-07-22  Peter Simons  <simons@cryp.to>
46612
46613         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46614         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46615         * lib/md4.h: Likewise.
46616         * lib/md5.h: Likewise.
46617         * lib/sha1.h: Likewise.
46618         * lib/sha256.h: Likewise.
46619         * lib/sha512.h: Likewise.
46620
46621         tests-sha1: don't assign literal string to 'char *' variable
46622         * tests/test-sha1.c (main): Declare locals with "const" to match
46623         attributes of the right hand side.
46624
46625 2009-07-21  Eric Blake  <ebb9@byu.net>
46626
46627         dup2: fix more mingw problems
46628         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46629         fd to itself.
46630         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46631         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46632         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46633         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46634         care of mingw bugs.
46635
46636 2009-07-21  Jim Meyering  <meyering@redhat.com>
46637
46638         vc-list-files: avoid failure when /bin/sh is dash
46639         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46640         On some Debian based systems, /bin/sh is a symlink to dash, and running
46641         this command would omit the "/" following each 'tests' prefix:
46642           dash -x build-aux/vc-list-files -C . tests
46643         That is because bash and dash work differently:
46644           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46645           bash ok
46646           dash odd
46647
46648 2009-07-21  Eric Blake  <ebb9@byu.net>
46649
46650         dup2-tests: test previous patch
46651         * modules/dup2-tests: New file.
46652         * tests/test-dup2.c: Likewise.
46653         * tests/test-open.c (main): Avoid unspecified behavior.
46654         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46655         test.
46656
46657         dup2: work around mingw and cygwin 1.5 bug
46658         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46660         * modules/unistd (Makefile.am): Substitute it.
46661         * lib/unistd.in.h (dup2): Declare the replacement.
46662         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46663         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46664         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46665         * modules/execute (Depends-on): Add dup2.
46666         * modules/fseterr (Depends-on): Likewise.
46667         * modules/pipe (Depends-on): Likewise.
46668         * modules/posix_spawn-internal (Depends-on): Likewise.
46669
46670 2009-07-21  Bruno Haible  <bruno@clisp.org>
46671
46672         * modules/.gitattributes: New file.
46673
46674 2009-07-20  Bruno Haible  <bruno@clisp.org>
46675
46676         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46677         (main): Use it.
46678
46679 2009-07-20  Eric Blake  <ebb9@byu.net>
46680
46681         test-pipe: make a bit more robust.
46682         * tests/test-pipe.c (myerr): Allow error messages regardless of
46683         what we do to stderr.
46684         (test_pipe): Rearrange to avoid deadlock.
46685         (child_main): Try a larger read, to ensure we avoided deadlock.
46686         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46687         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46688         if misused.
46689
46690 2009-07-19  Jim Meyering  <meyering@redhat.com>
46691
46692         fts: avoid false-positive cycle-detection
46693         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46694         for each new command line argument.
46695
46696 2009-07-19  Bruno Haible  <bruno@clisp.org>
46697
46698         Fix build error on mingw with the modules sys_select and unistd.
46699         * modules/acl-tests (Depends-on): Add close.
46700         * modules/binary-io-tests (Depends-on): Likewise.
46701         * modules/closein-tests (Depends-on): Likewise.
46702         * modules/flock-tests (Depends-on): Likewise.
46703         * modules/fsync-tests (Depends-on): Likewise.
46704         * modules/lseek-tests (Depends-on): Likewise.
46705         * modules/pipe-tests (Depends-on): Likewise.
46706         * modules/posix_spawn-tests (Depends-on): Likewise.
46707         * modules/posix_spawnp-tests (Depends-on): Likewise.
46708         * modules/stat-time-tests (Depends-on): Likewise.
46709         * modules/yesno-tests (Depends-on): Likewise.
46710
46711 2009-07-19  Bruno Haible  <bruno@clisp.org>
46712
46713         Unify conditionals.
46714         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46715         macros, not at the compiler macros.
46716         * lib/pipe.c: Likewise.
46717         * lib/execute.c: Likewise.
46718         * lib/spawni.c: Likewise.
46719
46720 2009-07-19  Bruno Haible  <bruno@clisp.org>
46721
46722         Fix handling of closed stdin/stdout/stderr on mingw.
46723         * lib/w32spawn.h: Include unistd.h.
46724         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46725         file descriptor with O_NOINHERIT flag.
46726         (fd_safer_noinherit): New function, based on fd-safer.c.
46727         (dup_safer_noinherit): New function, based on dup-safer.c.
46728         (undup_safer_noinherit): New function.
46729         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46730         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46731         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46732         instead of fd_safer.
46733         * tests/test-pipe.c: Include <windows.h>.
46734         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46735         result.
46736
46737         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46738         from main.
46739         (test_pipe): Pass an extra argument for disambiguation.
46740         (main): Invoke parent_main or child_main.
46741
46742         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46743         consistently.
46744
46745 2009-07-18  Eric Blake  <ebb9@byu.net>
46746
46747         test-pipe: fix mingw build
46748         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46749
46750 2009-07-18  Bruno Haible  <bruno@clisp.org>
46751
46752         * modules/pipe-tests (Makefile.am): Fix typo.
46753
46754 2009-07-18  Eric Blake  <ebb9@byu.net>
46755
46756         error: fix mingw build
46757         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46758         Reported by Bruno Haible.
46759
46760         error: avoid undefined use of stdout
46761         * lib/error.c (error, error_at_line): Check that fd 1 is open
46762         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46763         is handling faults and the close_stdout module wants to report the
46764         detection of closed stdout as an error.
46765
46766 2009-07-17  Eric Blake  <ebb9@byu.net>
46767
46768         pipe: be robust in face of closed fds
46769         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46770         should cause child to misbehave.
46771         * modules/pipe-tests: New module.
46772         * tests/test-pipe.c: New file.
46773         * tests/test-pipe.sh: New file.
46774         Reported by Akim Demaille.
46775
46776 2009-07-14  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46779         Reported by anonymous kc.
46780
46781 2009-07-07  Jim Meyering  <meyering@redhat.com>
46782
46783         maint.mk: don't look for translatable strings in *.m4 or *.mk
46784         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46785         when searching for translatable strings.
46786
46787 2009-07-05  Jim Meyering  <meyering@redhat.com>
46788
46789         remove superfluous parentheses in STREQ definition
46790         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46791         * lib/getugroups.c (STREQ): Likewise.
46792         * lib/fnmatch.c (STREQ): Likewise.
46793         Spotted by Bruno Haible.
46794
46795 2009-07-04  Jim Meyering  <meyering@redhat.com>
46796
46797         argv-iter: new module
46798         * MODULES.html.sh: Add argv-iter.
46799         * lib/argv-iter.c, lib/argv-iter.h: New files.
46800         * modules/argv-iter: New file.
46801         * modules/argv-iter-tests: New file.
46802         * tests/test-argv-iter.c: Test it.
46803
46804 2009-07-04  Bruno Haible  <bruno@clisp.org>
46805
46806         Fix assertion.
46807         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46808         contains more exact copies of a given entry than file2, leave the extra
46809         copies unpaired rather than aborting.
46810         Reported by Eric Blake.
46811
46812 2009-07-02  Bruno Haible  <bruno@clisp.org>
46813
46814         Speedup git-merge-changelog for git cherry-pick.
46815         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46816         (entries_mapping_get): New function, extracted from compute_mapping.
46817         (entries_mapping_reverse_get): New function.
46818         (compute_mapping): Add a 'full' argument. Return the result in a
46819         'struct entries_mapping'.
46820         (main): Update. Access the mappings through entries_mapping_get.
46821         Reported by Eric Blake.
46822
46823 2009-07-02  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46826         best_i.
46827
46828 2009-07-02  Bruno Haible  <bruno@clisp.org>
46829
46830         Speed up approximate search for matching ChangeLog entries.
46831         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46832         argument. Call fstrcmp_bounded instead of fstrcmp.
46833         (compute_mapping, try_split_merged_entry, main): Update callers.
46834
46835 2009-07-02  Bruno Haible  <bruno@clisp.org>
46836
46837         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46838
46839 2009-06-30  Bruno Haible  <bruno@clisp.org>
46840
46841         Reduce the number of uc_is_cased calls.
46842         * lib/unicase.h (casing_suffix_context_t): Add
46843         'first_char_except_ignorable' field.
46844         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46845         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46846         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46847         Update initializer.
46848         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46849         case-ignorable characters.
46850         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46851         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46852         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46853         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46854         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46855
46856 2009-06-30  Bruno Haible  <bruno@clisp.org>
46857
46858         Tests for module 'unicase/ignorable'.
46859         * modules/unicase/ignorable-tests: New file.
46860         * tests/unicase/test-ignorable.c: New file, generated by
46861         gen-uni-tables.
46862
46863         Tests for module 'unicase/cased'.
46864         * modules/unicase/cased-tests: New file.
46865         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46866         * tests/unicase/test-predicate-part1.h: New file, derived from
46867         tests/unictype/test-predicate-part1.h.
46868         * tests/unicase/test-predicate-part2.h: New file, same as
46869         tests/unictype/test-predicate-part2.h.
46870
46871         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46872         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46873         (output_casing_properties): New function.
46874         (main): Call it.
46875         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46876         * lib/unicase/cased.c: Include unictype/bitmap.h.
46877         (uc_is_cased): Define through a bitmap lookup.
46878         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46879         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46880         (uc_is_case_ignorable): Define through a bitmap lookup.
46881         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46882         lib/unictype/bitmap.h.
46883         (Depends-on): Add inline. Clean up.
46884         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46885         lib/unictype/bitmap.h.
46886         (Depends-on): Add inline. Clean up.
46887         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46888         recognition.
46889         * tests/unicase/test-u16-tolower.c (main): Likewise.
46890         * tests/unicase/test-u32-tolower.c (main): Likewise.
46891
46892 2009-06-30  Bruno Haible  <bruno@clisp.org>
46893
46894         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46895         * lib/unicase/u16-casemap.c: Likewise.
46896         * lib/unicase/u32-casemap.c: Likewise.
46897
46898 2009-06-29  Bruno Haible  <bruno@clisp.org>
46899
46900         Define u32_casefold as a wrapper around u32_ct_casefold.
46901         * lib/unicase/u32-casefold.c: Update.
46902         * modules/unicase/u32-casefold (Depends-on): Add
46903         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46904         unicase/empty-suffix-context. Clean up.
46905
46906         Define u16_casefold as a wrapper around u16_ct_casefold.
46907         * lib/unicase/u16-casefold.c: Update.
46908         * modules/unicase/u16-casefold (Depends-on): Add
46909         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46910         unicase/empty-suffix-context. Clean up.
46911
46912         Define u8_casefold as a wrapper around u8_ct_casefold.
46913         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46914         * lib/unicase/u8-casefold.c: Update.
46915         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46916         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46917
46918         Define u32_totitle as a wrapper around u32_ct_totitle.
46919         * lib/unicase/u32-totitle.c: Update.
46920         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46921         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46922
46923         Define u16_totitle as a wrapper around u16_ct_totitle.
46924         * lib/unicase/u16-totitle.c: Update.
46925         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46926         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46927
46928         Define u8_totitle as a wrapper around u8_ct_totitle.
46929         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46930         functions.
46931         (FUNC): Delegate to U_CT_TOTITLE.
46932         * lib/unicase/u8-totitle.c: Update.
46933         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46934         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46935
46936         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46937         invocation.
46938         * modules/unicase/u32-tolower (Depends-on): Add
46939         unicase/empty-prefix-context, unicase/empty-suffix-context.
46940
46941         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46942         invocation.
46943         * modules/unicase/u16-tolower (Depends-on): Add
46944         unicase/empty-prefix-context, unicase/empty-suffix-context.
46945
46946         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46947         * modules/unicase/u8-tolower (Depends-on): Add
46948         unicase/empty-prefix-context, unicase/empty-suffix-context.
46949
46950         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46951         invocation.
46952         * modules/unicase/u32-toupper (Depends-on): Add
46953         unicase/empty-prefix-context, unicase/empty-suffix-context.
46954
46955         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46956         invocation.
46957         * modules/unicase/u16-toupper (Depends-on): Add
46958         unicase/empty-prefix-context, unicase/empty-suffix-context.
46959
46960         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46961         * modules/unicase/u8-toupper (Depends-on): Add
46962         unicase/empty-prefix-context, unicase/empty-suffix-context.
46963
46964         New module 'unicase/u32-ct-casefold'.
46965         * lib/unicase/u32-ct-casefold.c: New file.
46966         * modules/unicase/u32-ct-casefold: New file.
46967
46968         New module 'unicase/u16-ct-casefold'.
46969         * lib/unicase/u16-ct-casefold.c: New file.
46970         * modules/unicase/u16-ct-casefold: New file.
46971
46972         New module 'unicase/u8-ct-casefold'.
46973         * lib/unicase/u8-ct-casefold.c: New file.
46974         * lib/unicase/u-ct-casefold.h: New file, derived from
46975         lib/unicase/u-casefold.h.
46976         * modules/unicase/u8-ct-casefold: New file.
46977
46978         New module 'unicase/u32-ct-totitle'.
46979         * lib/unicase/u32-ct-totitle.c: New file.
46980         * modules/unicase/u32-ct-totitle: New file.
46981
46982         New module 'unicase/u16-ct-totitle'.
46983         * lib/unicase/u16-ct-totitle.c: New file.
46984         * modules/unicase/u16-ct-totitle: New file.
46985
46986         New module 'unicase/u8-ct-totitle'.
46987         * lib/unicase/u8-ct-totitle.c: New file.
46988         * lib/unicase/u-ct-totitle.h: New file, derived from
46989         lib/unicase/u-totitle.h.
46990         * modules/unicase/u8-ct-totitle: New file.
46991
46992         New module 'unicase/u32-ct-tolower'.
46993         * lib/unicase/u32-ct-tolower.c: New file.
46994         * modules/unicase/u32-ct-tolower: New file.
46995
46996         New module 'unicase/u16-ct-tolower'.
46997         * lib/unicase/u16-ct-tolower.c: New file.
46998         * modules/unicase/u16-ct-tolower: New file.
46999
47000         New module 'unicase/u8-ct-tolower'.
47001         * lib/unicase/u8-ct-tolower.c: New file.
47002         * modules/unicase/u8-ct-tolower: New file.
47003
47004         New module 'unicase/u32-ct-toupper'.
47005         * lib/unicase/u32-ct-toupper.c: New file.
47006         * modules/unicase/u32-ct-toupper: New file.
47007
47008         New module 'unicase/u16-ct-toupper'.
47009         * lib/unicase/u16-ct-toupper.c: New file.
47010         * modules/unicase/u16-ct-toupper: New file.
47011
47012         New module 'unicase/u8-ct-toupper'.
47013         * lib/unicase/u8-ct-toupper.c: New file.
47014         * modules/unicase/u8-ct-toupper: New file.
47015
47016         Add context arguments to u*_casemap functions.
47017         * lib/unicase/unicasemap.h: Include unicase.h.
47018         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47019         suffix_context arguments.
47020         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47021         functions.
47022         (FUNC): Add prefix_context and suffix_context arguments. Use
47023         uc_is_cased and uc_is_case_ignorable.
47024         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47025         * lib/unicase/u16-casemap.c: Likewise.
47026         * lib/unicase/u32-casemap.c: Likewise.
47027         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47028         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47029         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47030         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47031         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47032         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47033
47034         New module 'unicase/u32-suffix-context'.
47035         * lib/unicase/u32-suffix-context.c: New file.
47036         * modules/unicase/u32-suffix-context: New file.
47037
47038         New module 'unicase/u16-suffix-context'.
47039         * lib/unicase/u16-suffix-context.c: New file.
47040         * modules/unicase/u16-suffix-context: New file.
47041
47042         New module 'unicase/u8-suffix-context'.
47043         * lib/unicase/u8-suffix-context.c: New file.
47044         * lib/unicase/u-suffix-context.h: New file.
47045         * modules/unicase/u8-suffix-context: New file.
47046
47047         New module 'unicase/empty-suffix-context'.
47048         * lib/unicase/empty-suffix-context.c: New file.
47049         * modules/unicase/empty-suffix-context: New file.
47050
47051         New module 'unicase/u32-prefix-context'.
47052         * lib/unicase/u32-prefix-context.c: New file.
47053         * modules/unicase/u32-prefix-context: New file.
47054
47055         New module 'unicase/u16-prefix-context'.
47056         * lib/unicase/u16-prefix-context.c: New file.
47057         * modules/unicase/u16-prefix-context: New file.
47058
47059         New module 'unicase/u8-prefix-context'.
47060         * lib/unicase/u8-prefix-context.c: New file.
47061         * lib/unicase/u-prefix-context.h: New file.
47062         * lib/unicase/context.h: New file.
47063         * modules/unicase/u8-prefix-context: New file.
47064
47065         New module 'unicase/empty-prefix-context'.
47066         * lib/unicase/empty-prefix-context.c: New file.
47067         * modules/unicase/empty-prefix-context: New file.
47068
47069         New module 'unicase/ignorable'.
47070         * lib/unicase/ignorable.c: New file.
47071         * modules/unicase/ignorable: New file.
47072
47073         New module 'unicase/cased'.
47074         * lib/unicase/caseprop.h: New file.
47075         * lib/unicase/cased.c: New file.
47076         * modules/unicase/cased: New file.
47077
47078         New functions for case mapping of substrings.
47079         * lib/unicase.h (casing_prefix_context_t): New type.
47080         (unicase_empty_prefix_context): New variable.
47081         (u8_casing_prefix_context, u16_casing_prefix_context,
47082         u32_casing_prefix_context, u8_casing_prefixes_context,
47083         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47084         declarations.
47085         (casing_suffix_context_t): New type.
47086         (unicase_empty_suffix_context): New variable.
47087         (u8_casing_suffix_context, u16_casing_suffix_context,
47088         u32_casing_suffix_context, u8_casing_suffixes_context,
47089         u16_casing_suffixes_context, u32_casing_suffixes_context,
47090         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47091         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47092         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47093         declarations.
47094
47095 2009-06-28  Jim Meyering  <meyering@redhat.com>
47096
47097         boostrap: indent only with spaces
47098         * build-aux/bootstrap: Indent only with spaces, never TABs.
47099
47100         bootstrap: split long lines
47101         * build-aux/bootstrap: Keep line length < 80.
47102
47103         bootstrap: sync from coreutils
47104         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47105         just as autoreconf does.  Verify a list of prerequisite
47106         package-name,version-number pairs if defined in bootstrap.conf.
47107         Refer to README-prereq, if prerequisites are not satisfied.
47108
47109 2009-06-27  Eric Blake  <ebb9@byu.net>
47110
47111         tests: add test for bogus NULL definition
47112         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47113         * tests/test-stdlib.c: Likewise.
47114         * tests/test-string.c: Likewise.
47115         * tests/test-locale.c: Likewise.
47116         * tests/test-unistd.c: Likewise.
47117         * modules/stdio-tests (Depends-on): Add verify.
47118         * modules/stdlib-tests (Depends-on): Likewise.
47119         * modules/string-tests (Depends-on): Likewise.
47120         * modules/locale-tests (Depends-on): Likewise.
47121         * modules/unistd-tests (Depends-on): Likewise.
47122
47123 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47124
47125         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47126         self-explaining comment.
47127         * m4/selinux-selinux-h: Update serial.
47128         (gl_LIBSELINUX): New macro, adding a warning for missing development
47129         packages to code extracted from...
47130         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47131         Add warning for missing development packages here, too.
47132
47133 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47134
47135         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47136
47137 2009-06-25  Eric Blake  <ebb9@byu.net>
47138
47139         version-etc: fix regression
47140         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47141         gcc.
47142         (version_etc): Use it, to catch bugs with trailing NULL.
47143         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47144         (version_etc_va): Fix logic bug.
47145         * modules/version-etc-tests: Add test.
47146         * tests/test-version-etc.c: New file.
47147         * tests/test-version-etc.sh: Likewise.
47148
47149 2009-06-25  Sam Steingold  <sds@gnu.org>
47150
47151         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47152         mbtowc declaration.
47153
47154 2009-06-25  Eric Blake  <ebb9@byu.net>
47155
47156         fpurge: migrate into <stdio.h>
47157         * lib/fpurge.h: Delete...
47158         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47159         * lib/fpurge.c (fpurge): Change declaring header.
47160         * modules/fpurge (Files): Drop deleted file.
47161         (Depends-on): Add stdio.
47162         (configure.ac): Set witness.
47163         * modules/stdio (Makefile.am): Support fpurge macros.
47164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47165         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47166         * lib/fflush.c: Update client.
47167         * tests/test-fpurge.c: Likewise.
47168         * NEWS: Mention the change.
47169
47170 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47171
47172         * lib/argp-version-etc.c (program_authors): Add const
47173         qualifier.
47174         * lib/version-etc.c: Fix typos in the comments.
47175         * modules/argp-version-etc: Depends on version-etc.
47176
47177 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47178
47179         argp-version-etc: new module.
47180
47181         * lib/argp-version-etc.c: New file.
47182         * lib/argp-version-etc.h: New file.
47183         * modules/argp-version-etc: New file.
47184         * modules/argp-version-etc-tests: New file.
47185         * tests/test-argp-version-etc.c: New test.
47186         * tests/test-argp-version-etc-1.sh: New test.
47187
47188 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47189
47190         Provide additional interfaces and documentation for version-etc
47191         module.
47192
47193         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47194         interfaces.
47195         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47196         prototypes.
47197
47198 2009-06-24  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47201         HAVE_LIB${NAME} macro.
47202         Reported by Sam Steingold <sds@gnu.org>.
47203
47204 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47205
47206         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47207         needed.
47208
47209 2009-06-21  Bruno Haible  <bruno@clisp.org>
47210
47211         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47212         work.
47213         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47214         together with LIB${NAME}, LTLIB${NAME}.
47215         Reported by Sam Steingold <sds@gnu.org>.
47216
47217 2009-06-20  Jim Meyering  <meyering@redhat.com>
47218
47219         tests: make sc_require_test_exit_idiom more generic
47220         * top/maint.mk (Exit_witness_file): New overridable variable.
47221         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47222         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47223
47224 2009-06-19  Jim Meyering  <meyering@redhat.com>
47225
47226         hash: reverse order of src/dst parameters in an internal interface
47227         * lib/hash.c (transfer_entries): Reverse order of parameters to
47228         put DST before SRC.  Adjust callers.
47229
47230         tests: test-hash: avoid wholesale duplication
47231         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47232         Instead, use a loop and add a single conditional.
47233
47234         tests: test-hash: allow seed selection via a command line argument
47235         * tests/test-hash.c (get_seed): New function.
47236         (main): Use it.
47237
47238 2009-06-19  Eric Blake  <ebb9@byu.net>
47239
47240         hash: avoid memory leak on allocation failure
47241         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47242         failure.  Factor repeated algorithm...
47243         (transfer_entries): ...into new helper routine.
47244         (hash_delete): React to hash_rehash return value.
47245
47246         hash: reduce memory pressure in hash_rehash no-op case
47247         * lib/hash.c (next_prime): Avoid overflow.
47248         (hash_initialize): Factor bucket size computation...
47249         (compute_bucket_size): ...into new helper function.
47250         (hash_rehash): Use new function and open coding to reduce memory
47251         pressure, and avoid a memory leak in USE_OBSTACK code.
47252         Reported by Jim Meyering.
47253
47254 2009-06-18  Eric Blake  <ebb9@byu.net>
47255
47256         hash: make rotation more obvious
47257         * modules/hash (Depends-on): Add bitrotate and stdint.
47258         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47259         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47260         (SIZE_MAX): Rely on headers for definition.
47261         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47262         (raw_hasher): Use rotr_sz.
47263         Suggested by Jim Meyering.
47264
47265         hash: fix memory leak in last patch
47266         * lib/hash.c (hash_rehash): Avoid memory leak.
47267
47268         hash: avoid no-op rehashing
47269         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47270
47271         hash: provide default callback functions
47272         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47273         (hash_initialize): Use them as defaults.
47274         * tests/test-hash.c (main): Test this.
47275
47276         hash: minor optimization
47277         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47278         when possible.
47279         (hash_initialize): Document this promise.
47280         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47281         * tests/test-hash.c (hash_compare_strings): Test this.
47282
47283 2009-06-18  Bruno Haible  <bruno@clisp.org>
47284
47285         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47286         going to be replaced anyway.
47287
47288 2009-06-18  Bruno Haible  <bruno@clisp.org>
47289
47290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47291         in one place.
47292         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47293         be replaced anyway.
47294
47295 2009-06-18  Eric Blake  <ebb9@byu.net>
47296
47297         hash: check for resize before insertion
47298         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47299         threshold before insertion, so that a pathological hash_rehash
47300         that fills every bucket can still trigger another rehash.
47301
47302 2009-06-18  Jim Meyering  <meyering@redhat.com>
47303
47304         hash-tests: add a loop around the small tests
47305         * tests/test-hash.c (main): Repeat small tests with selected
47306         small initial table sizes.
47307
47308 2009-06-17  Eric Blake  <ebb9@byu.net>
47309
47310         hash: minor cleanups
47311         * lib/hash.h (hash_entry): Make opaque, by moving...
47312         * lib/hash.c (hash_entry): ...here.
47313         (hash_insert): Clarify restrictions on what can be inserted.
47314         (hash_get_next): Clarify when it is safe to remove an element
47315         during traversal.
47316         (check_tuning): Skip verification when tuning is known safe.
47317         (hash_initialize): Clarify restrictions on tuning.
47318
47319 2009-06-17  Jim Meyering  <jim@meyering.net>
47320         and Eric Blake  <ebb9@byu.net>
47321
47322         hash-tests: new module
47323         * modules/hash-tests: New file.
47324         * tests/test-hash.c: New file.
47325
47326 2009-06-17  Eric Blake  <ebb9@byu.net>
47327
47328         strstr-simple: document new module
47329         * MODULES.html.sh: Document new module.
47330
47331         strstr, strcasestr: replace on platforms with broken memchr
47332         * modules/strstr: Split into...
47333         * modules/strstr-simple: ...new module that does not care about
47334         performance, but does care about glibc bug.
47335         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47336         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47337         if platform memchr is broken, per Debian bug 521737.
47338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47339         memchr.
47340         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47341         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47342         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47343         * modules/mountlist (Depends-on): Add strstr-simple.
47344         * modules/gen-uni-tables (Depends-on): Likewise.
47345         * modules/argz (Depends-on): Add strstr.
47346
47347 2009-06-17  Bruno Haible  <bruno@clisp.org>
47348
47349         * modules/posix_spawn-internal (Depends-on): Add errno.
47350
47351 2009-06-17  Bruno Haible  <bruno@clisp.org>
47352
47353         Define missing ESTALE on Interix 3.5.
47354         * lib/errno.in.h (ESTALE): Assign a value if missing.
47355         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47356         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47357         missing.
47358         * doc/posix-headers/errno.texi: Mention the Interix bug.
47359         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47360
47361 2009-06-15  Eric Blake  <ebb9@byu.net>
47362
47363         memchr, memchr2: add valgrind exception
47364         * lib/memchr.valgrind: New file.
47365         * lib/memchr2.valgrind: New file.
47366         * modules/memchr (Files): Distribute valgrind file.
47367         * modules/memchr2 (Files): Likewise.
47368
47369         docs: memchr is no longer obsolete
47370         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47371         * lib/string.in.h (memchr): Simplify logic.
47372
47373 2009-06-14  Jim Meyering  <meyering@redhat.com>
47374
47375         link-follow: fix the "checking..." message to not mention trailing slash
47376         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47377         never considered trailing slashes.
47378
47379 2009-06-14  Bruno Haible  <bruno@clisp.org>
47380
47381         * m4/memchr.m4: Mention also the bug on IA-64.
47382         * doc/posix-functions/memchr.texi: Likewise.
47383
47384 2009-06-12  Eric Blake  <ebb9@byu.net>
47385
47386         memchr: detect broken x86_64 and alpha implementations
47387         * modules/memchr-tests (Depends-on): Move mmap detection...
47388         * modules/memchr (Depends-on): ...here.
47389         (configure.ac): Set indicator.
47390         * lib/string.in.h (memchr): Declare replacement.
47391         * modules/string (Makefile.am): Trigger replacement.
47392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47393         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47394         bugs.
47395         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47396         * modules/getpagesize (License): Relax license.
47397
47398 2009-06-11  Bruno Haible  <bruno@clisp.org>
47399
47400         * lib/idpriv.h: Add more references.
47401
47402 2009-06-08  Bruno Haible  <bruno@clisp.org>
47403
47404         Tests for module 'idpriv-droptemp'.
47405         * modules/idpriv-droptemp-tests: New file.
47406         * tests/test-idpriv-droptemp.sh: New file.
47407         * tests/test-idpriv-droptemp.su.sh: New file.
47408         * tests/test-idpriv-droptemp.c: New file.
47409
47410         New module 'idpriv-droptemp'.
47411         * lib/idpriv-droptemp.c: New file.
47412         * modules/idpriv-droptemp: New file.
47413
47414 2009-06-08  Bruno Haible  <bruno@clisp.org>
47415
47416         Tests for module 'idpriv-drop'.
47417         * modules/idpriv-drop-tests: New file.
47418         * tests/test-idpriv-drop.sh: New file.
47419         * tests/test-idpriv-drop.su.sh: New file.
47420         * tests/test-idpriv-drop.c: New file.
47421
47422         New module 'idpriv-drop'.
47423         * lib/idpriv.h: New file.
47424         * lib-idpriv-drop.c: New file.
47425         * m4/idpriv.m4: New file.
47426         * modules/idpriv-drop: New file.
47427
47428 2009-06-08  Bruno Haible  <bruno@clisp.org>
47429
47430         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47431         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47432         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47433         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47434         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47435         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47436         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47437
47438 2009-06-08  Eric Blake  <ebb9@byu.net>
47439
47440         test-strstr: use memory fence, when possible
47441         * tests/test-strstr.c (main): Use memory fence, in order to be
47442         more likely to trigger Debian bug 521737.
47443         * modules/strstr-tests (Files): Pull in additional files.
47444
47445         memchr: no longer obsolete, for wider field testing
47446         * modules/memchr (Status, Notice): Delete, this module is no
47447         longer obsolete.
47448         * modules/vasnprintf (Depends-on): Add memchr.
47449
47450 2009-06-07  Jim Meyering  <meyering@redhat.com>
47451
47452         hash: declare some functions with the warn_unused_result attribute
47453         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47454
47455 2009-06-07  Bruno Haible  <bruno@clisp.org>
47456
47457         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47458         Reported by Eric Blake.
47459
47460 2009-06-06  Eric Blake  <ebb9@byu.net>
47461
47462         test-alignof: fix typo with long double
47463         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47464         compiler error.
47465
47466 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47467
47468         Escape non-texinfo { and }s.
47469         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47470         markup error.
47471
47472 2009-06-04  Jim Meyering  <meyering@redhat.com>
47473
47474         gitlog-to-changelog: don't infloop on an empty commit log
47475         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47476         Reported by Boris Petersen <transacid@centerim.org>.
47477
47478 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47479
47480         version-etc: extend for packagers
47481         Add three new configure options, intended for packagers:
47482           --with-packager="packager name"
47483           --with-packager-version="packager-specific version"
47484           --with-packager-bug-reports="packager bug reporting"
47485         An example with coreutils:
47486           $ ./configure \
47487             --with-packager=Gentoo \
47488             --with-packager-bug-report=http://bugs.gentoo.org/ \
47489             --with-packager-version="patchset 1.6"
47490           $ ./src/ls --version | head -n2
47491           ls (GNU coreutils) 7.1-dirty
47492           Packaged by Gentoo (patchset 1.6)
47493         Note that the bug reporting info via --help doesn't show up because
47494         coreutils uses its own custom emit_bug_reporting_address() implementation
47495         in src/system.h.  If it didn't, it'd look like:
47496           $ ./src/ls --help | tail -n4
47497           Report bugs to <bug-coreutils@gnu.org>.
47498           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47499           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47500           General help using GNU software: <http://www.gnu.org/gethelp/>.
47501         * lib/version-etc.c: Print new information, if provided.
47502         * m4/version-etc.m4: New file.
47503         * modules/version-etc (Files): Add m4/version-etc.m4.
47504         (configure.ac): Add gl_VERSION_ETC.
47505
47506 2009-05-31  Bruno Haible  <bruno@clisp.org>
47507
47508         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47509         and 'int64_t'.
47510         * modules/alignof-tests (Dependencies): Add stdint.
47511         Reported by Eric Blake.
47512
47513 2009-05-31  Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47516         restriction due to compiler bugs.
47517         Reported by Eric Blake.
47518
47519 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47520             Bruno Haible  <bruno@clisp.org>
47521
47522         Fix test-alignof failure.
47523         * lib/alignof.h (alignof_slot): New macro.
47524         (alignof_type): New macro, with the same semantics as the previous
47525         'alignof'.
47526         (alignof): Alias to alignof_slot.
47527         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47528         check that the results are usable as constant expressions.
47529
47530 2009-05-31  Bruno Haible  <bruno@clisp.org>
47531
47532         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47533         * tests/test-memchr.c (main): Check that memchr does not read past the
47534         first occurrence of the byte.
47535         * tests/test-strstr.c (main): Update comment.
47536         Suggested by Eric Blake.
47537
47538 2009-05-30  Bruno Haible  <bruno@clisp.org>
47539
47540         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47541         detail how to use dumpbin.
47542         Reported by David Byron <dbyron@dbyron.com>.
47543
47544 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47545
47546         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47547
47548 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47549
47550         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47551
47552 2009-05-28  Bruno Haible  <bruno@clisp.org>
47553
47554         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47555         build-aux/ files.
47556
47557 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47558
47559         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47560
47561 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47562
47563         * gnulib-tool (sed_transform_main_lib_file)
47564         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47565         regexps.
47566
47567 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47568
47569         * tests/test-strstr.c: Add another self-test.
47570         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47571         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47572
47573 2009-05-23  Bruno Haible  <bruno@clisp.org>
47574
47575         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47576         change.
47577
47578 2009-05-21  Bruno Haible  <bruno@clisp.org>
47579
47580         Simplify use of mode_t varargs.
47581         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47582         uses 'mode_t' or 'int'.
47583         * lib/openat.c (openat): Likewise.
47584         * lib/open-safer.c (open_safer): Likewise.
47585         * m4/mode_t.m4: New file.
47586         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47587         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47588         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47589         * modules/open (Files): Add m4/mode_t.m4.
47590         * modules/openat (Files): Likewise.
47591         * modules/fcntl-safer (Files): Likewise.
47592         Suggested by Eric Blake.
47593
47594 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47595
47596         * doc/glibc-functions/fallocate.texi: New file.
47597         * doc/gnulib.texi: Include it.
47598
47599 2009-05-21  Eric Blake  <ebb9@byu.net>
47600             Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47603         invocations.
47604         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47605
47606 2009-05-21  Eric Blake  <ebb9@byu.net>
47607             Bruno Haible  <bruno@clisp.org>
47608
47609         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47610         include_next. Fix of 2008-11-20 commit.
47611         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47612         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47613         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47614         NEXT_MATH_H.
47615         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47616         instead of NEXT_MATH_H.
47617
47618 2009-05-21  Bruno Haible  <bruno@clisp.org>
47619
47620         Avoid redefinition warnings for SIZE_MAX.
47621         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47622         Reported by Simon Josefsson.
47623
47624 2009-05-21  Bruno Haible  <bruno@clisp.org>
47625
47626         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47627         AC_CACHE_VAL.
47628
47629 2009-05-20  Bruno Haible  <bruno@clisp.org>
47630
47631         Make zeroptr.h work on mingw.
47632         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47633         mprotect.
47634         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47635         * modules/memchr2-tests (configure.ac): Likewise.
47636         * modules/memcmp-tests (configure.ac): Likewise.
47637         * modules/memmem-tests (configure.ac): Likewise.
47638         * modules/memrchr-tests (configure.ac): Likewise.
47639         Reported by Simon Josefsson.
47640
47641 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47642
47643         * tests/test-glob.c: Include string.h for strcmp prototype.
47644
47645 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47646
47647         * modules/getdelim (Depends-on): Add explicit stdint, although it
47648         was implicitly already pulled in via realloc-posix.
47649         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47650
47651 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47652
47653         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47654         G. Christensen" <tgc@jupiterrise.com>.
47655         * m4/sys_socket_h.m4: Check for sa_family_t.
47656         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47657         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47658         * tests/test-sys_socket.c: Check that sa_family_t works.
47659
47660 2009-05-18  Eric Blake  <ebb9@byu.net>
47661
47662         maint.mk: allow gnulib_dir in VPATH build
47663         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47664
47665 2009-05-15  Jim Meyering  <meyering@redhat.com>
47666
47667         maint.mk: Give gnulib_dir a default definition.
47668         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47669         Thus, most packages no longer need to specify this variable in cfg.mk
47670
47671 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47672
47673         rename.m4: fix typos that would make non-mingw cross-configure fail
47674         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47675
47676 2009-05-13  Eric Blake  <ebb9@byu.net>
47677
47678         mmap-anon: avoid out-of-order autoconf expansion
47679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47680         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47681         * modules/memchr-tests (Depends-on): Add extensions.
47682         * modules/memchr2-tests (Depends-on): Add extensions.
47683         * modules/memcmp-tests (Depends-on): Add extensions.
47684         * modules/memmem-tests (Depends-on): Add extensions.
47685         * modules/memrchr-tests (Depends-on): Add extensions.
47686
47687 2009-05-13  Bruno Haible  <bruno@clisp.org>
47688
47689         Make some tests ISO C 99 compliant.
47690         * tests/zerosize-ptr.h: New file.
47691         * tests/test-memchr.c: Include zerosize-ptr.h.
47692         (main): Use a zero-size object pointer instead of NULL.
47693         * tests/test-memchr2.c: Include zerosize-ptr.h.
47694         (main): Use a zero-size object pointer instead of NULL.
47695         * tests/test-memcmp.c: Include zerosize-ptr.h.
47696         (main): Use a zero-size object pointer instead of NULL.
47697         * tests/test-memmem.c: Include zerosize-ptr.h.
47698         (main): Use a zero-size object pointer instead of NULL.
47699         * tests/test-memrchr.c: Include zerosize-ptr.h.
47700         (main): Use a zero-size object pointer instead of NULL.
47701         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47702         m4/mmap-anon.m4.
47703         (Depends-on): Add getpagesize.
47704         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47705         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47706         m4/mmap-anon.m4.
47707         (Depends-on): Add getpagesize.
47708         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47709         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47710         m4/mmap-anon.m4.
47711         (Depends-on): Add getpagesize.
47712         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47713         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47714         m4/mmap-anon.m4.
47715         (Depends-on): Add getpagesize.
47716         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47717         * modules/memrchr-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
47722 2009-05-12  Bruno Haible  <bruno@clisp.org>
47723
47724         Tests for module 'alignof'.
47725         * modules/alignof-tests: New file.
47726         * tests/test-alignof.c: New file.
47727
47728 2009-05-12  Bruno Haible  <bruno@clisp.org>
47729
47730         Fix alignof macro.
47731         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47732         vendor compilers that are always correct.
47733
47734 2009-05-12  Bruno Haible  <bruno@clisp.org>
47735
47736         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47737         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47738         not whether its fully works.
47739
47740 2009-05-12  Bruno Haible  <bruno@clisp.org>
47741
47742         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47743
47744 2009-05-12  Jim Meyering  <meyering@redhat.com>
47745
47746         * top/maint.mk: Adjust backslash alignment.
47747
47748 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47749
47750         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47751
47752 2009-05-11  Eric Blake  <ebb9@byu.net>
47753
47754         argp: avoid undefined behavior
47755         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47756         macros.
47757
47758 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47759
47760         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47761         user.name to prevent git commit from complaining.
47762
47763 2009-05-10  Bruno Haible  <bruno@clisp.org>
47764
47765         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47766         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47767         it rewrites every file name only once.
47768         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47769
47770 2009-05-08  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47773         instead of 'max'.
47774
47775 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47776
47777         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47778         sockaddr_storage test.
47779
47780 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47781
47782         * modules/sys_socket (Makefile.am): Substitute
47783         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47784         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47785         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47786         * tests/test-sys_socket.c: Check sockaddr_storage.
47787
47788 2009-05-08  Bruno Haible  <bruno@clisp.org>
47789
47790         New module 'alignof'.
47791         * lib/alignof.h: New file.
47792         * modules/alignof: New file.
47793
47794 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47795             Bruno Haible  <bruno@clisp.org>
47796
47797         Fix test-file-has-acl on FreeBSD.
47798         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47799         mask is implicitly added.
47800         * tests/test-file-has-acl.c: Include <signal.h>.
47801         (main): Terminate the test after 5 seconds.
47802         * modules/acl-tests (configure.ac): Check for alarm function.
47803
47804 2009-05-04  Bruno Haible  <bruno@clisp.org>
47805
47806         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47807         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47808         * modules/errno (configure.ac): Drop AC_REQUIRE.
47809         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47810         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47811
47812 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47813
47814         * modules/glob-tests: New module.
47815         * tests/test-glob.c: Add.
47816
47817 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47818
47819         * modules/fnmatch-tests: New module.
47820         * tests/test-fnmatch.c: Add.
47821
47822 2009-05-04  Eric Blake  <ebb9@byu.net>
47823
47824         maint: make the new no-submodule-changes rule VPATH-safe
47825         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47826
47827 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47828             Bruno Haible  <bruno@clisp.org>
47829
47830         acl: Fix infinite loop on FreeBSD.
47831         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47832         of return value from acl_get_entry.
47833         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47834         Likewise.
47835
47836 2009-05-03  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/acl-internal.h (acl_entries): Clarify return value.
47839         * lib/acl_entries.c (acl_entries): Likewise.
47840
47841 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47842
47843         Bug fix in acl module.
47844         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47845
47846 2009-05-03  Bruno Haible  <bruno@clisp.org>
47847
47848         Create gperf-generated file in the source dir, not in the build dir.
47849         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47850         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47851         * modules/unicase/locale-language (unicase/locale-languages.h):
47852         Likewise.
47853         * modules/unicase/special-casing (unicase/special-casing-table.h):
47854         Likewise.
47855         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47856         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47857         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47858         Reported by Ralf Wildenhues.
47859
47860 2009-05-03  Bruno Haible  <bruno@clisp.org>
47861
47862         * modules/fnmatch (Description, configure.ac): Taken from
47863         fnmatch-posix.
47864         * modules/fnmatch-posix: Turn into a symbolic reference to the
47865         'fnmatch' module, and deprecate.
47866         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47867
47868 2009-05-03  Bruno Haible  <bruno@clisp.org>
47869
47870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47871         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47872         Reported by Ralf Wildenhues.
47873
47874 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47875
47876         * m4/fnmatch.m4: Fix fnmatch re-define.
47877
47878 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47879
47880         priv-set: new module and tests; adapt write-any-file
47881         * lib/priv-set.c: New file.
47882         * lib/priv-set.h: New file.
47883         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47884         * lib/write-any-file.c: Simplify by using priv-set module.
47885         * m4/priv-set.m4: New file.
47886         * modules/priv-set: New file.
47887         * modules/unlinkdir: Add dependency on priv-set module.
47888         * modules/write-any-file: Likewise.
47889
47890         Tests for module 'priv-set'.
47891         * modules/priv-set-tests: New file.
47892         * tests/test-priv-set.c: New file.
47893
47894 2009-05-03  Jim Meyering  <meyering@redhat.com>
47895             Bruno Haible  <bruno@clisp.org>
47896
47897         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47898         use the converted UTF-8 variant of the name instead.
47899
47900 2009-05-03  Jim Meyering  <meyering@redhat.com>
47901
47902         tests: tighten some getdate tests
47903         * tests/test-getdate.c (main): Tighten tests: require equality,
47904         not just greater than.  Set TZ envvar to UTC0.
47905
47906 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47907
47908         getdate: correctly interpret "next monday" when run on a Monday
47909         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47910         that e.g., "next tues" (when run on a tuesday) results in a date
47911         that is one week in the future, and not today's date.
47912         I.e., add a week when the wday is the same as the current one.
47913         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47914         and earlier by Martin Bernreuther and Jan Minář.
47915         * tests/test-getdate.c (main): Check that "next DAY" is always in
47916         the future and that "last DAY" is always in the past.
47917
47918 2009-05-02  Jim Meyering  <meyering@redhat.com>
47919
47920         build: ensure that a release build fails when a submodule is unclean
47921         * top/maint.mk (no-submodule-changes): New rule.
47922         (alpha beta major): Depend on it.
47923
47924 2009-05-02  Bruno Haible  <bruno@clisp.org>
47925
47926         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47927         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47928         shell variable gl_fnmatch_required to detect which variant is
47929         requested.
47930         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47931         gl_FUNC_FNMATCH_POSIX.
47932         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47933         exclude fnmatch-posix.
47934
47935 2009-05-02  Bruno Haible  <bruno@clisp.org>
47936
47937         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47938         * modules/mbsrtowcs (License): Change to LGPLv2+.
47939         * modules/strnlen1 (License): Likewise.
47940         Reported by Simon Josefsson.
47941
47942 2009-05-02  Bruno Haible  <bruno@clisp.org>
47943
47944         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47945         "cross".
47946         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47947         gnulib-tool was called with option --source-base=lib.
47948
47949 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47950
47951         Use automake *-local hooks without commands, for extensibility.
47952         * modules/localcharset (Makefile.am): Rename install-exec-local
47953         rule to install-exec-localcharset, and make it a prerequisite of
47954         install-exec-local.  Likewise, rename the uninstall-local rule to
47955         uninstall-localcharset, and make it a prerequisite of the former.
47956
47957 2009-05-01  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47960         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47961         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47963         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47964         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47965         m4/locale-zh.m4, m4/codeset.m4.
47966
47967         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47968         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47969         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47970         m4/locale-zh.m4.
47971
47972         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47973         REPLACE_WCRTOMB if mbstate_t must be replaced.
47974         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47975         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47976
47977 2009-05-01  Bruno Haible  <bruno@clisp.org>
47978
47979         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47980         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47981         dngettext, dcngettext, textdomain, bindtextdomain,
47982         bind_textdomain_codeset): Undefine before redefining.
47983
47984 2009-04-30  Bruno Haible  <bruno@clisp.org>
47985
47986         Fix bug introduced on 2009-04-25.
47987         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47988         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47989         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47990         is defined.
47991         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47992         is defined.
47993         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47994         is defined.
47995         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47996
47997 2009-04-28  Bruno Haible  <bruno@clisp.org>
47998
47999         Comment tweaks.
48000         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48001         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48002         * lib/unicase.h (u*_casexfrm): Likewise.
48003         Reported by Paolo Bonzini.
48004
48005 2009-04-28  Bruno Haible  <bruno@clisp.org>
48006
48007         Fix a compilation error.
48008         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48009         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48010         Reported by Jim Meyering.
48011
48012 2009-04-27  Bruno Haible  <bruno@clisp.org>
48013
48014         New module 'libunistring'.
48015         * modules/libunistring: New file.
48016         * m4/libunistring.m4: New file.
48017         * MODULES.html.sh (Unicode string functions): Add it.
48018
48019 2009-04-27  Eric Blake  <ebb9@byu.net>
48020
48021         maint.mk: allow package-specific header to provide <config.h>
48022         * top/maint.mk (sc_require_config_h): New variable.
48023         (sc_require_config_h, sc_require_config_h_first): Use it.
48024
48025 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48026
48027         * top/maint.mk (sc_avoid_if_before_free): Except
48028         useless-if-before-free script.
48029
48030 2009-04-27  Eric Blake  <ebb9@byu.net>
48031
48032         maintainer-makefile: depend on all required helper scripts
48033         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48034         useless-if-before-free.
48035         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48036         version, rather than assuming gnulib checkout is available.
48037         Reported by Simen Josefsson.
48038
48039 2009-04-26  Bruno Haible  <bruno@clisp.org>
48040
48041         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48042         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48043         "../" or "..".
48044
48045 2009-04-26  Bruno Haible  <bruno@clisp.org>
48046
48047         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48048         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48049         AC_LIB_HAVE_LINKFLAGS.
48050
48051 2009-04-26  Bruno Haible  <bruno@clisp.org>
48052
48053         Simplify calling convention of u*_conv_from_encoding.
48054         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48055         u32_conv_from_encoding): Expect a resultbuf argument and return the
48056         result directly as a pointer.
48057         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48058         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48059         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48060         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48061         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48062         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48063         Update.
48064         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48065         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48066         * lib/vasnprintf.c (VASNPRINTF): Update.
48067         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48068         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48069         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48070         * NEWS: Mention the change.
48071
48072 2009-04-26  Bruno Haible  <bruno@clisp.org>
48073
48074         Simplify calling convention of u*_conv_to_encoding.
48075         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48076         u32_conv_to_encoding): Expect a resultbuf argument and return the
48077         result directly as a pointer.
48078         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48079         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48080         freeing scaled_offsets if mem_iconveha failed.
48081         * lib/unicase/u-casexfrm.h (FUNC): Update.
48082         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48083         * lib/vasnprintf.c (VASNPRINTF): Update.
48084         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48085         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48086         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48087         * NEWS: Mention the change.
48088
48089 2009-04-26  Bruno Haible  <bruno@clisp.org>
48090
48091         Avoid test failures on AIX and OSF/1.
48092         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48093         malloc(0).
48094         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48095         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48096         Likewise.
48097         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48098         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48099         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48100         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48101         * doc/posix-functions/malloc.texi: Document the portability problem
48102         related to malloc(0).
48103
48104 2009-04-26  Bruno Haible  <bruno@clisp.org>
48105
48106         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48107         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48108         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48109
48110 2009-04-25  Bruno Haible  <bruno@clisp.org>
48111
48112         Avoid link error when creating a namespace clean library.
48113         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48114         as macro with arguments if already defined as an alias.
48115         * lib/signbitf.c (gl_signbitf): Don't undefine.
48116         * lib/signbitd.c (gl_signbitd): Don't undefine.
48117         * lib/signbitl.c (gl_signbitl): Don't undefine.
48118
48119 2009-04-25  Jim Meyering  <meyering@redhat.com>
48120
48121         vc-list-files: fix another quoting bug
48122         * build-aux/vc-list-files: Avoid sed backslash expansion
48123         of pathological directory names.
48124
48125 2009-04-25  Eric Blake  <ebb9@byu.net>
48126
48127         vc-list-files: fix shell quoting error
48128         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48129         timestamp.
48130
48131 2009-04-25  Jim Meyering  <meyering@redhat.com>
48132
48133         vc-list-files: restore lost functionality with subdir argument
48134         * build-aux/vc-list-files: When given a non-"." sub-directory
48135         argument, substitute the $dir/ prefix back onto each resulting name.
48136         Otherwise, coreutils' root_tests check would fail.
48137
48138 2009-04-24  Eric Blake  <ebb9@byu.net>
48139
48140         vc-list-files: ignore git symlinks
48141         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48142         than ls-files, to ignore git symlinks.
48143
48144         maint.mk: import improvements from m4
48145         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48146         (move_if_change): Delete unused macro.
48147         (news-date-check, vc-diff-check): Support VPATH builds.
48148         (announcement): Likewise.  Split --bootstrap-tools list...
48149         (boostrap-tools): ...into separate list, which can be overridden
48150         in cfg.mk.
48151         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48152         requiring dependency on useless-if-before-free module.
48153         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48154         Support VPATH builds.
48155
48156 2009-04-24  Jim Meyering  <meyering@redhat.com>
48157
48158         maint.mk: remove coreutils-specific rules and variables
48159         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48160         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48161         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48162
48163         maint.mk: remove obsolete rule
48164         * top/maint.mk (rel-check): Remove rule.
48165         (WGET, WGETFLAGS): Remove now-unused variables.
48166
48167 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48168
48169         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48170         consistency.
48171
48172         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48173         '$(PATH_SEPARATOR)' instead of ':'.
48174
48175 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48176
48177         * lib/getopt1.c (main): Use 'const' for static array.
48178
48179 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48180
48181         * top/maint.mk: Sync with coreutils.
48182         * NEWS: Explain incompatibilities.
48183
48184 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48185             Bruno Haible  <bruno@clisp.org>
48186
48187         Fix cross-compilation results.
48188         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48189         statement, as third argument of AC_TRY_RUN.
48190         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48191         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48192         Likewise.
48193         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48194         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48195         Likewise.
48196         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48198         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48199
48200 2009-04-20  Bruno Haible  <bruno@clisp.org>
48201
48202         Avoid test failure on mingw.
48203         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48204
48205 2009-04-20  Bruno Haible  <bruno@clisp.org>
48206
48207         Avoid compilation error on mingw.
48208         * modules/localename-tests (Depends-on): Add locale.
48209
48210 2009-04-19  Bruno Haible  <bruno@clisp.org>
48211
48212         Support for building a shared library on Windows platforms.
48213         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48214         (main): Test the presence of UNINORM_NFC here.
48215         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48216         (main): Test the presence of UNINORM_NFD here.
48217         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48218         (main): Test the presence of UNINORM_NFKC here.
48219         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48220         (main): Test the presence of UNINORM_NFKD here.
48221
48222 2009-04-19  Bruno Haible  <bruno@clisp.org>
48223
48224         Avoid a compiler warning.
48225         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48226         Change type of variable 'sequence'.
48227
48228 2009-04-19  Bruno Haible  <bruno@clisp.org>
48229
48230         * modules/configmake (Makefile.am): When the contents of configmake.h
48231         does not change, arrange to preserve its modification time.
48232
48233 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48234
48235         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48236         gettext domain.
48237
48238 2009-04-16  Jim Meyering  <meyering@redhat.com>
48239
48240         useless-if-before-free: improve conversion code
48241         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48242         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48243
48244 2009-04-14  Bruno Haible  <bruno@clisp.org>
48245
48246         * modules/fcntl (Depends-on): Add extensions.
48247         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48248
48249 2009-04-12  Ben Pfaff  <blp@gnu.org>
48250
48251         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48252         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48253
48254 2009-03-20  Ben Pfaff  <blp@gnu.org>
48255
48256         Make rename replace existing destinations on Windows.
48257         * m4/rename.m4: Add test for Mingw.
48258         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48259         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48260         * doc/posix-functions/rename.texi: Document.
48261
48262 2009-04-10  Bruno Haible  <bruno@clisp.org>
48263
48264         New include file "iconveh.h".
48265         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48266         * lib/striconveh.h: Include it.
48267         (enum iconv_ilseq_handler): Remove definition.
48268         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48269         striconveh.h.
48270         * lib/striconveha.c: Include striconveh.h.
48271         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48272         * modules/striconveh (Files): Add lib/iconveh.h.
48273         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48274         lib/striconveh.h.
48275
48276 2009-04-10  Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/uniconv.h: Update comment.
48279
48280 2009-04-10  Bruno Haible  <bruno@clisp.org>
48281
48282         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48283         always.
48284         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48285         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48286         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48287         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48288         "unistring-notinline.h", so that the function gets defined always.
48289         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48290         * lib/unistr/u8-uctomb.c: Likewise.
48291         * lib/unistr/u16-mbtouc.c: Likewise.
48292         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48293         * lib/unistr/u16-uctomb.c: Likewise.
48294         * lib/unistr/u32-mbtouc.c: Likewise.
48295         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48296         * lib/unistr/u32-uctomb.c: Likewise.
48297
48298 2009-04-10  Bruno Haible  <bruno@clisp.org>
48299
48300         Mark 'utime' obsolete.
48301         * modules/utime (Status, Notice): New sections.
48302         Suggested by Jim Meyering.
48303
48304         Fix cross-compile guess for utime test.
48305         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48306         autoconf.
48307         * doc/posix-functions/utime.texi: Give more precisions.
48308         Reported by Jan <ipif@ymail.com>.
48309
48310 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48311
48312         filevercmp: correct today's change
48313         * lib/filevercmp.c: Also handle coreutils' test inputs.
48314         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48315
48316         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48317         for reporting it.
48318         * lib/filevercmp.c: Special handle for "", "." and "..".
48319         * tests/test-filevercmp.c: Enlarge the set suite.
48320
48321 2009-04-07  Jim Meyering  <meyering@redhat.com>
48322
48323         useless-if-before-free: show how to remove braced useless free, too
48324         * build-aux/useless-if-before-free: still only in a comment, though.
48325
48326 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48327
48328         maint.mk: import changes to syntax-check macros from coreutils
48329         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48330         Use them in the relevant macros.
48331
48332 2009-04-06  Bruno Haible  <bruno@clisp.org>
48333
48334         Fix unportable use of bit-fields.
48335         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48336         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48337         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48338
48339 2009-04-06  Bruno Haible  <bruno@clisp.org>
48340
48341         Avoid test failures on AIX and OSF/1.
48342         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48343         that malloc(0) = NULL.
48344         * tests/unicase/test-u8-tolower.c (check): Likewise.
48345         * tests/unicase/test-u8-totitle.c (check): Likewise.
48346         * tests/unicase/test-u8-toupper.c (check): Likewise.
48347         * tests/unicase/test-u16-casefold.c (check): Likewise.
48348         * tests/unicase/test-u16-tolower.c (check): Likewise.
48349         * tests/unicase/test-u16-totitle.c (check): Likewise.
48350         * tests/unicase/test-u16-toupper.c (check): Likewise.
48351         * tests/unicase/test-u32-casefold.c (check): Likewise.
48352         * tests/unicase/test-u32-tolower.c (check): Likewise.
48353         * tests/unicase/test-u32-totitle.c (check): Likewise.
48354         * tests/unicase/test-u32-toupper.c (check): Likewise.
48355         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48356         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48357         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48358         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48359         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48360         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48361         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48362         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48363         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48364         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48365         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48366         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48367
48368 2009-04-05  Bruno Haible  <bruno@clisp.org>
48369
48370         Work around an autoconf limitation.
48371         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48372         comment line if it would be longer than 3 KB.
48373
48374 2009-04-05  Bruno Haible  <bruno@clisp.org>
48375
48376         Avoid test failure with libiconv-1.13.
48377         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48378         of the expected test results.
48379
48380 2009-04-05  Bruno Haible  <bruno@clisp.org>
48381
48382         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48383         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48384         that it should be installed.
48385
48386 2009-04-05  Bruno Haible  <bruno@clisp.org>
48387
48388         * gnulib-tool: New option --copy-file.
48389         (func_usage): Document it.
48390         (func_dest_tmpfilename): Moved out of func_import.
48391         (func_add_file, func_update_file): New functions, extracted from
48392         func_import.
48393         (func_import): Update.
48394
48395 2009-04-05  Karl Berry  <karl@gnu.org>
48396
48397         * README: prominently mention gnulib-tool.
48398         Rearrange sections so getting the code is near the top.
48399
48400 2009-04-05  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/unicase.h: Mention u*_cmp2.
48403         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48404         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48405         * lib/unicase/ulc-casecmp.c: Likewise.
48406         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48407         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48408         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48409         unistr/u8-cmp.
48410         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48411         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48412         unistr/u16-cmp.
48413         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48414         unistr/u32-cmp.
48415
48416         * lib/uninorm.h: Mention u*_cmp2.
48417         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48418         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48419         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48420         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48421         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48422         unistr/u8-cmp.
48423         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48424         unistr/u16-cmp.
48425         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48426         unistr/u32-cmp.
48427
48428         New module 'unistr/u32-cmp2'.
48429         * lib/unistr/u32-cmp2.c: New file.
48430         * modules/unistr/u32-cmp2: New file.
48431
48432         New module 'unistr/u16-cmp2'.
48433         * lib/unistr/u16-cmp2.c: New file.
48434         * modules/unistr/u16-cmp2: New file.
48435
48436         New module 'unistr/u8-cmp2'.
48437         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48438         * lib/unistr/u8-cmp2.c: New file.
48439         * lib/unistr/u-cmp2.h: New file.
48440         * modules/unistr/u8-cmp2: New file.
48441
48442 2009-04-05  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/unictype.h (uc_property_is_valid): New macro.
48445         * tests/unictype/test-pr_byname.c (main): Use it.
48446
48447         * lib/unistr.h: Doc fixes.
48448         * lib/uniconv.h: Doc fixes.
48449         * lib/unictype.h: Doc fixes.
48450
48451 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         Port coreutils 7.2 to Solaris 8.
48454
48455         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48456         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48457         for Solaris 8.  This is a bit of a hack, as it means it's the
48458         caller's responsibility to add -lnsl if needed, but most likely it
48459         won't be needed since only getaddrinfo uses this and getaddrinfo
48460         isn't needed on Solaris 8.
48461
48462         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48463         problem to Solaris 8 encountered with coreutils 7.2, which
48464         resulted in a message "fnmatch.c:292: warning: passing argument 4
48465         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48466         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48467
48468 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48469
48470         * m4/ld-version-script.m4: Add FIXME comment.
48471
48472 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48473
48474         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48475         SOVERSION variable.
48476
48477 2009-04-02  Bruno Haible  <bruno@clisp.org>
48478
48479         * Makefile (info, html, dvi, pdf): Combine the rules.
48480         Suggested by Jim Meyering.
48481
48482 2009-04-01  Bruno Haible  <bruno@clisp.org>
48483
48484         * Makefile (info, html, dvi, pdf): New targets.
48485         Reported by Reuben Thomas <rrt@sc3d.org>.
48486
48487 2009-04-01  Bruno Haible  <bruno@clisp.org>
48488
48489         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48490         can be put into PATH.
48491         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48492
48493 2009-04-01  Bruno Haible  <bruno@clisp.org>
48494
48495         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48496
48497 2009-04-01  Bruno Haible  <bruno@clisp.org>
48498
48499         Rename module 'visibility'.
48500         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48501         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48502         * doc/gnulib.texi: Update.
48503         * MODULES.html.sh (Misc): Update.
48504         * NEWS: Mention the change.
48505
48506 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48507
48508         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48509         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48510         Eric Blake <ebb9@byu.net> for review.
48511         * MODULES.html.sh: Add lib-msvc-compat.
48512         * doc/gnulib.texi: Link to new section.
48513         * m4/ld-output-def.m4: New file.
48514         * doc/ld-output-def.texi: New file.
48515
48516 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48517
48518         Rename ld-version-script to lib-symbol-versions.  Suggested by
48519         Bruno Haible <bruno@clisp.org>.
48520         * modules/ld-version-script: Renamed to lib-symbol-versions.
48521         * doc/ld-version-script.texi: Fix module name.
48522         * MODULES.html.sh: Add lib-symbol-versions.
48523
48524 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48525
48526         * modules/u64-tests: New file.
48527         * tests/test-u64.c: New file.
48528
48529 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48530
48531         * MODULES.html.sh: Mention u64.
48532         * modules/u64: New module.
48533         * modules/crypto/sha512: Depend on u64 module instead of providing
48534         u64.h.
48535
48536 2009-03-27  Eric Blake  <ebb9@byu.net>
48537
48538         test-strerror: make debugging EAI_SYSTEM easier
48539         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48540         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48541         failure was EAI_SYSTEM.
48542
48543 2009-03-25  Bruno Haible  <bruno@clisp.org>
48544
48545         Fix a problem with --enable-relocatable on Solaris 7.
48546         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48547         since 2008-02-24.
48548
48549 2009-03-25  Eric Blake  <ebb9@byu.net>
48550
48551         test-sockets: avoid gcc warning
48552         * tests/test-sockets.c (main): Silence compiler warning.
48553
48554 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48555
48556         New modules nproc, pthread, contributed by Glen Lenker.
48557
48558         * MODULES.html.sh: Add pthread, nproc.
48559         * lib/nproc.c: New file.
48560         * lib/nproc.h: New file.
48561         * lib/pthread.in.h: New file.
48562         * m4/pthread.m4: New file.
48563         * modules/nproc: New file.
48564         * modules/pthread: New file.
48565
48566 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48567
48568         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48569         New variable.
48570
48571 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48572
48573         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48574         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48575         * tests/test-filevercmp.c: Add tests for backup suffixes.
48576
48577 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48578
48579         * modules/stdlib (Depends-on): Add stdint, needed when defining
48580         struct random_data on, for example, HP-UX 10.20.  Reported by
48581         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48582
48583 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48584
48585         * lib/readline.c (readline): Call fflush on stdout after printing
48586         prompt.
48587
48588 2009-03-20  Bruno Haible  <bruno@clisp.org>
48589
48590         Remove dependency from 'close' module to -lws2_32 on native Windows.
48591         * lib/close-hook.h: New file.
48592         * lib/close-hook.c: New file.
48593         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48594         w32sock.h.
48595         (_gl_close_fd_maybe_socket): Remove function.
48596         (rpl_close): Invoke execute_all_close_hooks instead of
48597         _gl_close_fd_maybe_socket.
48598         * lib/sockets.c: Include close-hook.h, w32sock.h.
48599         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48600         (close_sockets_hook): New variable.
48601         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48602         (gl_sockets_cleanup): Unregister it.
48603         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48604         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48605         * modules/close-hook: New file.
48606         * modules/close (Files): Remove lib/w32sock.h.
48607         (Depends-on): Add close-hook.
48608         (Link): Remove section.
48609         * modules/sockets (Files): Add lib/w32sock.h.
48610         (Depends-on): Add close-hook.
48611         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48612         invocation.
48613         * NEWS: Mention that LIB_CLOSE is gone.
48614
48615 2009-03-23  Eric Blake  <ebb9@byu.net>
48616
48617         signal-tests: test previous patch
48618         * tests/test-signal.c: New file.
48619         * modules/signal-tests: Likewise.
48620
48621         signal.h: always support 'volatile sig_atomic_t'
48622         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48623         (gl_SIGNAL_H_DEFAULTS): Add a default.
48624         * modules/signal (Makefile.am): Substitute if needed.
48625         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48626         users can blindly add volatile.
48627         * doc/posix-headers/signal.texi (signal.h): Document it.
48628         Reported by Matthew Woehlke.
48629
48630 2009-03-23  Jim Meyering  <meyering@redhat.com>
48631
48632         pathmax: PATH_MAX: use pathconf only when available
48633         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48634         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48635         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48636         This avoids a link failure in a PSP cross-compilation environment
48637         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48638
48639         * lib/vasnprintf.c (divide): Fix typo in comment.
48640
48641 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48642
48643         * gnulib-tool (func_filter_filelist): Fix comment.
48644
48645 2009-03-20  Bruno Haible  <bruno@clisp.org>
48646
48647         Make sockets.h self-contained.
48648         * lib/sockets.c: Include sockets.h first.
48649         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48650
48651 2009-03-19  Eric Blake  <ebb9@byu.net>
48652
48653         doc: mention more functions added in cygwin 1.7.0
48654         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48655         addition.
48656         * doc/posix-functions/log2f.texi: Likewise.
48657
48658 2009-03-19  Jim Meyering  <meyering@redhat.com>
48659
48660         fsusage: avoid syntax error due to statement-before-declaration
48661         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48662         after all declarations.  Reported by Matthew Woehlke in
48663         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48664
48665 2009-03-18  Eric Blake  <ebb9@byu.net>
48666
48667         build-aux/compile: sync from automake
48668         * build-aux/compile: New file, from automake.
48669         * config/srclist.txt: Mention build-aux/compile.
48670
48671 2009-03-17  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/git-merge-changelog.c: Fix typo in comment.
48674         Reported by Reuben Thomas <rrt@sc3d.org>.
48675
48676 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48677
48678         * m4/regex.m4: update and improve help for
48679         --without-included-regex.
48680
48681 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48682
48683         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48684         failure on missing include files.
48685
48686 2009-03-17  Eric Blake  <ebb9@byu.net>
48687
48688         doc: mention more functions added in cygwin 1.7.0
48689         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48690         addition.
48691         * doc/posix-functions/fwscanf.texi: Likewise.
48692         * doc/posix-functions/swprintf.texi: Likewise.
48693         * doc/posix-functions/swscanf.texi: Likewise.
48694         * doc/posix-functions/vfwprintf.texi: Likewise.
48695         * doc/posix-functions/vfwscanf.texi: Likewise.
48696         * doc/posix-functions/vswprintf.texi: Likewise.
48697         * doc/posix-functions/vswscanf.texi: Likewise.
48698         * doc/posix-functions/vwprintf.texi: Likewise.
48699         * doc/posix-functions/vwscanf.texi: Likewise.
48700         * doc/posix-functions/wcscasecmp.texi: Likewise.
48701         * doc/posix-functions/wcsdup.texi: Likewise.
48702         * doc/posix-functions/wcsftime.texi: Likewise.
48703         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48704         * doc/posix-functions/wprintf.texi: Likewise.
48705         * doc/posix-functions/wscanf.texi: Likewise.
48706         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48707
48708 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48709
48710         maint.mk: really add $(AM_MAKEFLAGS)
48711         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48712         was inadvertently omitted in the last commit.
48713         Spotted by Bruno Haible.
48714
48715         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48716         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48717         $(AM_MAKEFLAGS)' rather than plain `make'.
48718
48719         gnulib-tool: execute $MAKE not make
48720         * gnulib-tool: Default $MAKE to 'make'.
48721         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48722         than make.  Initialize $MAKE in the do-autobuild script.
48723
48724         gnulib-tool: use $MAKE not make in generated files
48725         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48726         make, in generated files.  Initialize $MAKE in the do-autobuild
48727         script.
48728
48729         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48730
48731         GNUmakefile: disable parallelism only for multiple, recursive targets
48732         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48733         additions in the Makefile.
48734         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48735         by Automake.
48736         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48737         are listed on the command line and at least one of them is
48738         listed in $(ALL_RECURSIVE_TARGETS).
48739
48740 2009-03-14  Bruno Haible  <bruno@clisp.org>
48741
48742         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48743         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48744         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48745         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48746         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48747         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48748         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48749         unistr/u8-uctomb.
48750         * modules/unistr/u8-strchr (Depends-on): Likewise.
48751         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48752         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48753         unistr/u16-uctomb.
48754         * modules/unistr/u16-strchr (Depends-on): Likewise.
48755         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48756
48757 2009-03-12  Bruno Haible  <bruno@clisp.org>
48758
48759         Work around select() bug on Interix 3.5.
48760         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48761         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48762         * m4/select.m4: New file.
48763         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48764         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48765         * modules/select (Files): Add m4/select.m4.
48766         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48767         * modules/nanosleep (Depends-on): Add select.
48768         * modules/poll (Depends-on): Likewise.
48769         * doc/posix-functions/select.texi: Mention the Interix bug.
48770         Reported by Markus Duft <mduft@gentoo.org>.
48771
48772         * lib/select.c: Renamed from lib/winsock-select.c.
48773         * modules/select (Files): Add lib/select.c, remove
48774         lib/winsock-select.c.
48775         (configure.ac): Update.
48776
48777 2009-03-12  Jim Meyering  <meyering@redhat.com>
48778
48779         avoid gcc warnings about unused macro definitions
48780         * lib/readtokens.c (STREQ): Remove unused definition.
48781         * lib/xmalloc.c (SIZE_MAX): Likewise.
48782         * lib/openat-die.c (N_): Likewise.
48783         * lib/mountlist.c (SIZE_MAX): Remove definition.
48784         Instead, include <stdint.h>.
48785         * lib/readutmp.c: Likewise.
48786         * modules/readutmp (Depends-on): Add stdint.
48787         * modules/mountlist (Depends-on): Add stdint.
48788         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48789
48790 2009-03-10  Bruno Haible  <bruno@clisp.org>
48791
48792         Tests for module 'mbmemcasecoll'.
48793         * modules/mbmemcasecoll-tests: New file.
48794         * tests/test-mbmemcasecoll1.sh: New file.
48795         * tests/test-mbmemcasecoll2.sh: New file.
48796         * tests/test-mbmemcasecoll3.sh: New file.
48797         * tests/test-mbmemcasecoll.c: New file.
48798
48799         New module 'mbmemcasecoll'.
48800         * lib/mbmemcasecoll.h: New file.
48801         * lib/mbmemcasecoll.c: New file.
48802         * modules/mbmemcasecoll: New file.
48803
48804         * tests/test-mbmemcasecmp.h: New file, extracted from
48805         tests/test-mbmemcasecmp.c.
48806         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48807         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48808         (main): Update.
48809         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48810
48811 2009-03-09  Bruno Haible  <bruno@clisp.org>
48812
48813         Tests for module 'mbmemcasecmp'.
48814         * modules/mbmemcasecmp-tests: New file.
48815         * tests/test-mbmemcasecmp1.sh: New file.
48816         * tests/test-mbmemcasecmp2.sh: New file.
48817         * tests/test-mbmemcasecmp3.sh: New file.
48818         * tests/test-mbmemcasecmp.c: New file.
48819
48820         New module 'mbmemcasecmp'.
48821         * lib/mbmemcasecmp.h: New file.
48822         * lib/mbmemcasecmp.c: New file.
48823         * modules/mbmemcasecmp: New file.
48824
48825 2009-03-09  Bruno Haible  <bruno@clisp.org>
48826
48827         Tests for module 'unicase/ulc-casecoll'.
48828         * modules/unicase/ulc-casecoll-tests: New file.
48829         * tests/unicase/test-ulc-casecoll1.sh: New file.
48830         * tests/unicase/test-ulc-casecoll2.sh: New file.
48831         * tests/unicase/test-ulc-casecoll.c: New file.
48832
48833         New module 'unicase/ulc-casecoll'.
48834         * lib/unicase.h (ulc_casecoll): New declaration.
48835         * lib/unicase/ulc-casecoll.c: New file.
48836         * modules/unicase/ulc-casecoll: New file.
48837
48838         New module 'unicase/ulc-casexfrm'.
48839         * lib/unicase.h (ulc_casexfrm): New declaration.
48840         * lib/unicase/ulc-casexfrm.c: New file.
48841         * modules/unicase/ulc-casexfrm: New file.
48842
48843 2009-03-09  Bruno Haible  <bruno@clisp.org>
48844
48845         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48846         invocations.
48847
48848         * m4/mbscasecmp.m4: Remove file.
48849         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48850         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48851
48852         * m4/mbscasestr.m4: Remove file.
48853         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48854         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48855
48856         * m4/mbschr.m4: Remove file.
48857         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48858         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48859
48860         * m4/mbscspn.m4: Remove file.
48861         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48862         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48863
48864         * m4/mbslen.m4: Remove file.
48865         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48866         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48867
48868         * m4/mbsncasecmp.m4: Remove file.
48869         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48870         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48871
48872         * m4/mbsnlen.m4: Remove file.
48873         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48874         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48875
48876         * m4/mbspbrk.m4: Remove file.
48877         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48878         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48879
48880         * m4/mbspcasecmp.m4: Remove file.
48881         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48882         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48883
48884         * m4/mbsrchr.m4: Remove file.
48885         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48886         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48887
48888         * m4/mbssep.m4: Remove file.
48889         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48890         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48891
48892         * m4/mbsspn.m4: Remove file.
48893         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48894         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48895
48896         * m4/mbsstr.m4: Remove file.
48897         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48898         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48899
48900         * m4/mbstok_r.m4: Remove file.
48901         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48902         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48903
48904         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48905
48906         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48907         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48908
48909         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48910
48911 2009-03-08  Bruno Haible  <bruno@clisp.org>
48912
48913         Tests for module 'unicase/ulc-casecmp'.
48914         * modules/unicase/ulc-casecmp-tests: New file.
48915         * tests/unicase/test-ulc-casecmp1.sh: New file.
48916         * tests/unicase/test-ulc-casecmp2.sh: New file.
48917         * tests/unicase/test-ulc-casecmp.c: New file.
48918
48919         New module 'unicase/ulc-casecmp'.
48920         * lib/unicase.h (ulc_casecmp): New declaration.
48921         * lib/unicase/ulc-casecmp.c: New file.
48922         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48923         'const SRC_UNIT *'.
48924         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48925         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48926         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48927         * modules/unicase/ulc-casecmp: New file.
48928
48929         Tests for module 'unicase/u32-is-cased'.
48930         * modules/unicase/u32-is-cased-tests: New file.
48931         * tests/unicase/test-u32-is-cased.c: New file.
48932
48933         Tests for module 'unicase/u16-is-cased'.
48934         * modules/unicase/u16-is-cased-tests: New file.
48935         * tests/unicase/test-u16-is-cased.c: New file.
48936
48937         Tests for module 'unicase/u8-is-cased'.
48938         * modules/unicase/u8-is-cased-tests: New file.
48939         * tests/unicase/test-u8-is-cased.c: New file.
48940         * tests/unicase/test-is-cased.h: New file.
48941
48942         New module 'unicase/u32-is-cased'.
48943         * lib/unicase/u32-is-cased.c: New file.
48944         * modules/unicase/u32-is-cased: New file.
48945
48946         New module 'unicase/u16-is-cased'.
48947         * lib/unicase/u16-is-cased.c: New file.
48948         * modules/unicase/u16-is-cased: New file.
48949
48950         New module 'unicase/u8-is-cased'.
48951         * lib/unicase/u8-is-cased.c: New file.
48952         * lib/unicase/u-is-cased.h: New file.
48953         * modules/unicase/u8-is-cased: New file.
48954
48955         Tests for module 'unicase/u32-is-casefolded'.
48956         * modules/unicase/u32-is-casefolded-tests: New file.
48957         * tests/unicase/test-u32-is-casefolded.c: New file.
48958
48959         Tests for module 'unicase/u16-is-casefolded'.
48960         * modules/unicase/u16-is-casefolded-tests: New file.
48961         * tests/unicase/test-u16-is-casefolded.c: New file.
48962
48963         Tests for module 'unicase/u8-is-casefolded'.
48964         * modules/unicase/u8-is-casefolded-tests: New file.
48965         * tests/unicase/test-u8-is-casefolded.c: New file.
48966         * tests/unicase/test-is-casefolded.h: New file.
48967
48968         New module 'unicase/u32-is-casefolded'.
48969         * lib/unicase/u32-is-casefolded.c: New file.
48970         * modules/unicase/u32-is-casefolded: New file.
48971
48972         New module 'unicase/u16-is-casefolded'.
48973         * lib/unicase/u16-is-casefolded.c: New file.
48974         * modules/unicase/u16-is-casefolded: New file.
48975
48976         New module 'unicase/u8-is-casefolded'.
48977         * lib/unicase/u8-is-casefolded.c: New file.
48978         * modules/unicase/u8-is-casefolded: New file.
48979
48980         Tests for module 'unicase/u32-is-titlecase'.
48981         * modules/unicase/u32-is-titlecase-tests: New file.
48982         * tests/unicase/test-u32-is-titlecase.c: New file.
48983
48984         Tests for module 'unicase/u16-is-titlecase'.
48985         * modules/unicase/u16-is-titlecase-tests: New file.
48986         * tests/unicase/test-u16-is-titlecase.c: New file.
48987
48988         Tests for module 'unicase/u8-is-titlecase'.
48989         * modules/unicase/u8-is-titlecase-tests: New file.
48990         * tests/unicase/test-u8-is-titlecase.c: New file.
48991         * tests/unicase/test-is-titlecase.h: New file.
48992
48993         New module 'unicase/u32-is-titlecase'.
48994         * lib/unicase/u32-is-titlecase.c: New file.
48995         * modules/unicase/u32-is-titlecase: New file.
48996
48997         New module 'unicase/u16-is-titlecase'.
48998         * lib/unicase/u16-is-titlecase.c: New file.
48999         * modules/unicase/u16-is-titlecase: New file.
49000
49001         New module 'unicase/u8-is-titlecase'.
49002         * lib/unicase/u8-is-titlecase.c: New file.
49003         * modules/unicase/u8-is-titlecase: New file.
49004
49005         Tests for module 'unicase/u32-is-lowercase'.
49006         * modules/unicase/u32-is-lowercase-tests: New file.
49007         * tests/unicase/test-u32-is-lowercase.c: New file.
49008
49009         Tests for module 'unicase/u16-is-lowercase'.
49010         * modules/unicase/u16-is-lowercase-tests: New file.
49011         * tests/unicase/test-u16-is-lowercase.c: New file.
49012
49013         Tests for module 'unicase/u8-is-lowercase'.
49014         * modules/unicase/u8-is-lowercase-tests: New file.
49015         * tests/unicase/test-u8-is-lowercase.c: New file.
49016         * tests/unicase/test-is-lowercase.h: New file.
49017
49018         New module 'unicase/u32-is-lowercase'.
49019         * lib/unicase/u32-is-lowercase.c: New file.
49020         * modules/unicase/u32-is-lowercase: New file.
49021
49022         New module 'unicase/u16-is-lowercase'.
49023         * lib/unicase/u16-is-lowercase.c: New file.
49024         * modules/unicase/u16-is-lowercase: New file.
49025
49026         New module 'unicase/u8-is-lowercase'.
49027         * lib/unicase/u8-is-lowercase.c: New file.
49028         * modules/unicase/u8-is-lowercase: New file.
49029
49030         Tests for module 'unicase/u32-is-uppercase'.
49031         * modules/unicase/u32-is-uppercase-tests: New file.
49032         * tests/unicase/test-u32-is-uppercase.c: New file.
49033
49034         Tests for module 'unicase/u16-is-uppercase'.
49035         * modules/unicase/u16-is-uppercase-tests: New file.
49036         * tests/unicase/test-u16-is-uppercase.c: New file.
49037
49038         Tests for module 'unicase/u8-is-uppercase'.
49039         * modules/unicase/u8-is-uppercase-tests: New file.
49040         * tests/unicase/test-u8-is-uppercase.c: New file.
49041         * tests/unicase/test-is-uppercase.h: New file.
49042
49043         New module 'unicase/u32-is-uppercase'.
49044         * lib/unicase/u32-is-uppercase.c: New file.
49045         * modules/unicase/u32-is-uppercase: New file.
49046
49047         New module 'unicase/u16-is-uppercase'.
49048         * lib/unicase/u16-is-uppercase.c: New file.
49049         * modules/unicase/u16-is-uppercase: New file.
49050
49051         New module 'unicase/u8-is-uppercase'.
49052         * lib/unicase/u8-is-uppercase.c: New file.
49053         * modules/unicase/u8-is-uppercase: New file.
49054
49055         New module 'unicase/u32-is-invariant'.
49056         * lib/unicase/u32-is-invariant.c: New file.
49057         * modules/unicase/u32-is-invariant: New file.
49058
49059         New module 'unicase/u16-is-invariant'.
49060         * lib/unicase/u16-is-invariant.c: New file.
49061         * modules/unicase/u16-is-invariant: New file.
49062
49063         New module 'unicase/u8-is-invariant'.
49064         * lib/unicase/u8-is-invariant.c: New file.
49065         * lib/unicase/invariant.h: New file.
49066         * lib/unicase/u-is-invariant.h: New file.
49067         * modules/unicase/u8-is-invariant: New file.
49068
49069         Tests for module 'unicase/u32-casecoll'.
49070         * modules/unicase/u32-casecoll-tests: New file.
49071         * tests/unicase/test-u32-casecoll.c: New file.
49072
49073         Tests for module 'unicase/u16-casecoll'.
49074         * modules/unicase/u16-casecoll-tests: New file.
49075         * tests/unicase/test-u16-casecoll.c: New file.
49076
49077         Tests for module 'unicase/u8-casecoll'.
49078         * modules/unicase/u8-casecoll-tests: New file.
49079         * tests/unicase/test-u8-casecoll.c: New file.
49080
49081         New module 'unicase/u32-casecoll'.
49082         * lib/unicase/u32-casecoll.c: New file.
49083         * modules/unicase/u32-casecoll: New file.
49084
49085         New module 'unicase/u16-casecoll'.
49086         * lib/unicase/u16-casecoll.c: New file.
49087         * modules/unicase/u16-casecoll: New file.
49088
49089         New module 'unicase/u8-casecoll'.
49090         * lib/unicase/u8-casecoll.c: New file.
49091         * lib/unicase/u-casecoll.h: New file.
49092         * modules/unicase/u8-casecoll: New file.
49093
49094         New module 'unicase/u32-casexfrm'.
49095         * lib/unicase/u32-casexfrm.c: New file.
49096         * modules/unicase/u32-casexfrm: New file.
49097
49098         New module 'unicase/u16-casexfrm'.
49099         * lib/unicase/u16-casexfrm.c: New file.
49100         * modules/unicase/u16-casexfrm: New file.
49101
49102         New module 'unicase/u8-casexfrm'.
49103         * lib/unicase/u8-casexfrm.c: New file.
49104         * lib/unicase/u-casexfrm.h: New file.
49105         * modules/unicase/u8-casexfrm: New file.
49106
49107         Tests for module 'unicase/u32-casecmp'.
49108         * modules/unicase/u32-casecmp-tests: New file.
49109         * tests/unicase/test-u32-casecmp.c: New file.
49110
49111         Tests for module 'unicase/u16-casecmp'.
49112         * modules/unicase/u16-casecmp-tests: New file.
49113         * tests/unicase/test-u16-casecmp.c: New file.
49114
49115         Tests for module 'unicase/u8-casecmp'.
49116         * modules/unicase/u8-casecmp-tests: New file.
49117         * tests/unicase/test-u8-casecmp.c: New file.
49118         * tests/unicase/test-casecmp.h: New file.
49119
49120         New module 'unicase/u32-casecmp'.
49121         * lib/unicase/u32-casecmp.c: New file.
49122         * modules/unicase/u32-casecmp: New file.
49123
49124         New module 'unicase/u16-casecmp'.
49125         * lib/unicase/u16-casecmp.c: New file.
49126         * modules/unicase/u16-casecmp: New file.
49127
49128         New module 'unicase/u8-casecmp'.
49129         * lib/unicase/u8-casecmp.c: New file.
49130         * lib/unicase/u-casecmp.h: New file.
49131         * modules/unicase/u8-casecmp: New file.
49132
49133         Tests for module 'unicase/u32-casefold'.
49134         * modules/unicase/u32-casefold-tests: New file.
49135         * tests/unicase/test-u32-casefold.c: New file.
49136
49137         Tests for module 'unicase/u16-casefold'.
49138         * modules/unicase/u16-casefold-tests: New file.
49139         * tests/unicase/test-u16-casefold.c: New file.
49140
49141         Tests for module 'unicase/u8-casefold'.
49142         * modules/unicase/u8-casefold-tests: New file.
49143         * tests/unicase/test-u8-casefold.c: New file.
49144
49145         New module 'unicase/u32-casefold'.
49146         * lib/unicase/u32-casefold.c: New file.
49147         * modules/unicase/u32-casefold: New file.
49148
49149         New module 'unicase/u16-casefold'.
49150         * lib/unicase/u16-casefold.c: New file.
49151         * modules/unicase/u16-casefold: New file.
49152
49153         New module 'unicase/u8-casefold'.
49154         * lib/unicase/u8-casefold.c: New file.
49155         * lib/unicase/u-casefold.h: New file.
49156         * modules/unicase/u8-casefold: New file.
49157
49158         New module 'unicase/tocasefold'.
49159         * lib/unicase/casefold.h: New file.
49160         * lib/unicase/tocasefold.c: New file.
49161         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49162         * modules/unicase/tocasefold: New file.
49163
49164         Tests for module 'unicase/u32-totitle'.
49165         * modules/unicase/u32-totitle-tests: New file.
49166         * tests/unicase/test-u32-totitle.c: New file.
49167
49168         Tests for module 'unicase/u16-totitle'.
49169         * modules/unicase/u16-totitle-tests: New file.
49170         * tests/unicase/test-u16-totitle.c: New file.
49171
49172         Tests for module 'unicase/u8-totitle'.
49173         * modules/unicase/u8-totitle-tests: New file.
49174         * tests/unicase/test-u8-totitle.c: New file.
49175
49176         New module 'unicase/u32-totitle'.
49177         * lib/unicase/u32-totitle.c: New file.
49178         * modules/unicase/u32-totitle: New file.
49179
49180         New module 'unicase/u16-totitle'.
49181         * lib/unicase/u16-totitle.c: New file.
49182         * modules/unicase/u16-totitle: New file.
49183
49184         New module 'unicase/u8-totitle'.
49185         * lib/unicase/u8-totitle.c: New file.
49186         * lib/unicase/u-totitle.h: New file.
49187         * modules/unicase/u8-totitle: New file.
49188
49189         Tests for module 'unicase/u32-tolower'.
49190         * modules/unicase/u32-tolower-tests: New file.
49191         * tests/unicase/test-u32-tolower.c: New file.
49192
49193         Tests for module 'unicase/u16-tolower'.
49194         * modules/unicase/u16-tolower-tests: New file.
49195         * tests/unicase/test-u16-tolower.c: New file.
49196
49197         Tests for module 'unicase/u8-tolower'.
49198         * modules/unicase/u8-tolower-tests: New file.
49199         * tests/unicase/test-u8-tolower.c: New file.
49200
49201         New module 'unicase/u32-tolower'.
49202         * lib/unicase/u32-tolower.c: New file.
49203         * modules/unicase/u32-tolower: New file.
49204
49205         New module 'unicase/u16-tolower'.
49206         * lib/unicase/u16-tolower.c: New file.
49207         * modules/unicase/u16-tolower: New file.
49208
49209         New module 'unicase/u8-tolower'.
49210         * lib/unicase/u8-tolower.c: New file.
49211         * modules/unicase/u8-tolower: New file.
49212
49213         Tests for module 'unicase/u32-toupper'.
49214         * modules/unicase/u32-toupper-tests: New file.
49215         * tests/unicase/test-u32-toupper.c: New file.
49216
49217         Tests for module 'unicase/u16-toupper'.
49218         * modules/unicase/u16-toupper-tests: New file.
49219         * tests/unicase/test-u16-toupper.c: New file.
49220
49221         Tests for module 'unicase/u8-toupper'.
49222         * modules/unicase/u8-toupper-tests: New file.
49223         * tests/unicase/test-u8-toupper.c: New file.
49224
49225         New module 'unicase/u32-toupper'.
49226         * lib/unicase/u32-toupper.c: New file.
49227         * modules/unicase/u32-toupper: New file.
49228
49229         New module 'unicase/u16-toupper'.
49230         * lib/unicase/u16-toupper.c: New file.
49231         * modules/unicase/u16-toupper: New file.
49232
49233         New module 'unicase/u8-toupper'.
49234         * lib/unicase/u8-toupper.c: New file.
49235         * modules/unicase/u8-toupper: New file.
49236
49237         New module 'unicase/u32-casemap'.
49238         * lib/unicase/u32-casemap.c: New file.
49239         * modules/unicase/u32-casemap: New file.
49240
49241         New module 'unicase/u16-casemap'.
49242         * lib/unicase/u16-casemap.c: New file.
49243         * modules/unicase/u16-casemap: New file.
49244
49245         New module 'unicase/u8-casemap'.
49246         * lib/unicase/unicasemap.h: New file.
49247         * lib/unicase/u8-casemap.c: New file.
49248         * lib/unicase/u-casemap.h: New file.
49249         * modules/unicase/u8-casemap: New file.
49250
49251         New module 'unicase/special-casing'.
49252         * lib/unicase/special-casing.h: New file.
49253         * lib/unicase/special-casing.c: New file.
49254         * lib/unicase/special-casing-table.gperf: New file, generated by
49255         gen-uni-tables.c.
49256         * modules/unicase/special-casing: New file.
49257
49258         Tests for module 'unicase/locale-language'.
49259         * modules/unicase/locale-language-tests: New file.
49260         * tests/unicase/test-locale-language.sh: New file.
49261         * tests/unicase/test-locale-language.c: New file.
49262
49263         New module 'unicase/locale-language'.
49264         * lib/unicase/locale-language.c: New file.
49265         * lib/unicase/locale-languages.gperf: New file.
49266         * modules/unicase/locale-language: New file.
49267
49268         Generate more tables for case conversion and case folding.
49269         * lib/gen-uni-tables.c (SCC_*): New enum items.
49270         (struct special_casing_rule): New type.
49271         (casing_rules, num_casing_rules, allocated_casing_rules): New
49272         variables.
49273         (add_casing_rule, fill_casing_rules): New functions.
49274         (struct casefold_rule): New type.
49275         (casefolding_rules, num_casefolding_rules,
49276         allocated_casefolding_rules): New variables.
49277         (fill_casefolding_rules): New function.
49278         (unicode_casefold): New variable.
49279         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49280         sort_casing_rules, output_casing_rules): New functions.
49281         (main): Accept to more arguments: SpecialCasing.txt and
49282         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49283         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49284         Output mapping for casefolding.
49285
49286         * lib/unicase.h: Include stdbool.h, uninorm.h.
49287         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49288         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49289         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49290         arguments.
49291         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49292         resultp arguments.
49293         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49294         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49295         resultp arguments.
49296         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49297         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49298         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49299         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49300         declarations.
49301         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49302
49303 2009-03-08  Bruno Haible  <bruno@clisp.org>
49304
49305         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49306         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49307         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49308         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49309
49310 2009-03-07  Bruno Haible  <bruno@clisp.org>
49311
49312         Adjust u*_normcmp, u*_normcoll API.
49313         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49314         u16_normcoll, u32_normcoll): Change failure conventions.
49315         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49316         errno and return -1.
49317         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49318
49319 2009-03-07  Bruno Haible  <bruno@clisp.org>
49320
49321         Tests for module 'uninorm/u32-normcoll'.
49322         * modules/uninorm/u32-normcoll-tests: New file.
49323         * tests/uninorm/test-u32-normcoll.c: New file.
49324
49325         Tests for module 'uninorm/u16-normcoll'.
49326         * modules/uninorm/u16-normcoll-tests: New file.
49327         * tests/uninorm/test-u16-normcoll.c: New file.
49328
49329         Tests for module 'uninorm/u8-normcoll'.
49330         * modules/uninorm/u8-normcoll-tests: New file.
49331         * tests/uninorm/test-u8-normcoll.c: New file.
49332
49333 2009-03-07  Bruno Haible  <bruno@clisp.org>
49334
49335         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49336         tests/uninorm/test-u32-normcmp.c.
49337         * tests/uninorm/test-u32-normcmp.c: Include it.
49338         (test_nonascii): New function, extracted from main. Add some more
49339         tests.
49340         (main): Invoke test_ascii and test_nonascii.
49341         * modules/uninorm/u32-normcmp-tests (Files): Add
49342         tests/uninorm/test-u32-normcmp.h.
49343         (Depends-on): Remove uninorm/u32-normcmp.
49344
49345         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49346         tests/uninorm/test-u16-normcmp.c.
49347         * tests/uninorm/test-u16-normcmp.c: Include it.
49348         (test_nonascii): New function, extracted from main. Add some more
49349         tests.
49350         (main): Invoke test_ascii and test_nonascii.
49351         * modules/uninorm/u16-normcmp-tests (Files): Add
49352         tests/uninorm/test-u16-normcmp.h.
49353         (Depends-on): Remove uninorm/u16-normcmp.
49354
49355         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49356         tests/uninorm/test-u8-normcmp.c.
49357         * tests/uninorm/test-u8-normcmp.c: Include it.
49358         (test_nonascii): New function, extracted from main. Add some more
49359         tests.
49360         (main): Invoke test_ascii and test_nonascii.
49361         * modules/uninorm/u8-normcmp-tests (Files): Add
49362         tests/uninorm/test-u8-normcmp.h.
49363         (Depends-on): Remove uninorm/u8-normcmp.
49364
49365 2009-03-07  Bruno Haible  <bruno@clisp.org>
49366
49367         New module 'uninorm/u32-normcoll'.
49368         * lib/uninorm/u32-normcoll.c: New file.
49369         * modules/uninorm/u32-normcoll: New file.
49370
49371         New module 'uninorm/u16-normcoll'.
49372         * lib/uninorm/u16-normcoll.c: New file.
49373         * modules/uninorm/u16-normcoll: New file.
49374
49375         New module 'uninorm/u8-normcoll'.
49376         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49377         declarations.
49378         * lib/uninorm/u8-normcoll.c: New file.
49379         * lib/uninorm/u-normcoll.h: New file.
49380         * modules/uninorm/u8-normcoll: New file.
49381
49382         New module 'uninorm/u32-normxfrm'.
49383         * lib/uninorm/u32-normxfrm.c: New file.
49384         * modules/uninorm/u32-normxfrm: New file.
49385
49386         New module 'uninorm/u16-normxfrm'.
49387         * lib/uninorm/u16-normxfrm.c: New file.
49388         * modules/uninorm/u16-normxfrm: New file.
49389
49390         New module 'uninorm/u8-normxfrm'.
49391         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49392         declarations.
49393         * lib/uninorm/u8-normxfrm.c: New file.
49394         * lib/uninorm/u-normxfrm.h: New file.
49395         * modules/uninorm/u8-normxfrm: New file.
49396
49397 2009-03-07  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49400         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49401         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49402
49403 2009-03-07  Bruno Haible  <bruno@clisp.org>
49404
49405         New module 'memxfrm'.
49406         * lib/memxfrm.h: New file.
49407         * lib/memxfrm.c: New file.
49408         * modules/memxfrm: New file.
49409
49410 2009-03-07  Bruno Haible  <bruno@clisp.org>
49411
49412         New module 'memcmp2'.
49413         * lib/memcmp2.h: New file.
49414         * lib/memcmp2.c: New file.
49415         * modules/memcmp2: New file.
49416
49417 2009-03-07  Bruno Haible  <bruno@clisp.org>
49418
49419         Tests for module 'uninorm/decomposing-form'.
49420         * modules/uninorm/decomposing-form-tests: New file.
49421         * tests/uninorm/test-decomposing-form.c: New file.
49422
49423         New module 'uninorm/decomposing-form'.
49424         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49425         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49426         Add 'decomposing_variant' field.
49427         * lib/uninorm/decomposing-form.c: New file.
49428         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49429         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49430         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49431         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49432         * modules/uninorm/decomposing-form: New file.
49433         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49434         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49435
49436 2009-03-07  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49439         strings.
49440
49441 2009-03-06  Bruno Haible  <bruno@clisp.org>
49442
49443         Tests for module 'uninorm/u32-normcmp'.
49444         * tests/uninorm/test-u32-normcmp.c: New file.
49445         * modules/uninorm/u32-normcmp-tests: New file.
49446
49447         Tests for module 'uninorm/u16-normcmp'.
49448         * tests/uninorm/test-u16-normcmp.c: New file.
49449         * modules/uninorm/u16-normcmp-tests: New file.
49450
49451         Tests for module 'uninorm/u8-normcmp'.
49452         * tests/uninorm/test-u8-normcmp.c: New file.
49453         * modules/uninorm/u8-normcmp-tests: New file.
49454
49455         New module 'uninorm/u32-normcmp'.
49456         * lib/uninorm/u32-normcmp.c: New file.
49457         * modules/uninorm/u32-normcmp: New file.
49458
49459         New module 'uninorm/u16-normcmp'.
49460         * lib/uninorm/u16-normcmp.c: New file.
49461         * modules/uninorm/u16-normcmp: New file.
49462
49463         New module 'uninorm/u8-normcmp'.
49464         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49465         declarations.
49466         * lib/uninorm/u8-normcmp.c: New file.
49467         * lib/uninorm/u-normcmp.h: New file.
49468         * modules/uninorm/u8-normcmp: New file.
49469
49470 2009-03-06  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49473         Reported by Eric Blake.
49474
49475 2009-03-06  Eric Blake  <ebb9@byu.net>
49476             Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49479         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49480         condition.
49481         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49482         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49483         condition.
49484         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49485
49486 2009-03-06  Eric Blake  <ebb9@byu.net>
49487
49488         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49489         to avoid compiler warnings.
49490         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49491
49492 2009-03-05  Bruno Haible  <bruno@clisp.org>
49493
49494         * tests/test-ftell.c (main): Disable test beyond end of file on
49495         FreeMiNT.
49496         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49497
49498 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49499
49500         * lib/filevercmp.c: Move hidden files up in ordering.
49501         * tests/test-filevercmp.c: Add tests for hidden files.
49502
49503 2009-03-04  Bruno Haible  <bruno@clisp.org>
49504
49505         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49506         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49507         AM_CFLAGS.
49508         Reported by Simon Josefsson.
49509
49510 2009-03-03  Bruno Haible  <bruno@clisp.org>
49511
49512         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49513         Reported by Simon Josefsson.
49514
49515         * doc/ld-version-script.texi: Update node reference.
49516
49517 2009-03-03  Bruno Haible  <bruno@clisp.org>
49518
49519         * modules/visibility (License): Change to 'unlimited'.
49520         Suggested by Simon Josefsson.
49521
49522 2009-03-03  Jim Meyering  <meyering@redhat.com>
49523
49524         unlinkdir: cannot_unlink_dir may modify process state
49525         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49526         it's neither thread-safe nor appropriate for use in a library.
49527
49528 2009-03-03  Eric Blake  <ebb9@byu.net>
49529
49530         test-closein: silence test under Darwin
49531         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49532         care if it dies from EPIPE or EBADF.
49533
49534 2009-03-03  Bruno Haible  <bruno@clisp.org>
49535
49536         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49537         earlier.
49538         * doc/visibility.texi: Fix @node and @section.
49539
49540 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49541
49542         * doc/gnulib.texi: Link to sections for ld version script and
49543         visibility.
49544         * doc/visibility.texi: Add @node and @section.
49545         * modules/ld-version-script: New module.
49546         * m4/ld-version-script.m4: New file.
49547         * doc/ld-version-script.texi: New file.
49548
49549 2009-03-02  David Lutterkort  <lutter@redhat.com>
49550
49551         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49553
49554 2009-03-02  Bruno Haible  <bruno@clisp.org>
49555
49556         * doc/visibility.texi: Mention libtool's -export-symbols option.
49557
49558 2009-03-02  Jim Meyering  <meyering@redhat.com>
49559
49560         announce-gen: new option: --no-print-checksums
49561         * build-aux/announce-gen (usage): Describe it.
49562         (print_checksums): Print a newline here, not in the [*] footnote.
49563         (main): Honor it.
49564
49565 2009-03-01  Bruno Haible  <bruno@clisp.org>
49566
49567         Use socklen_t in the native Windows replacements prototypes.
49568         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49569         instead of 'int'.
49570         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49571         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49572         * modules/getsockopt (Depends-on): Add socklen.
49573         * modules/setsockopt (Depends-on): Add socklen.
49574
49575 2009-03-01  Bruno Haible  <bruno@clisp.org>
49576
49577         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49578         least 4.2.
49579
49580 2009-03-01  Eric Blake  <ebb9@byu.net>
49581             Bruno Haible  <bruno@clisp.org>
49582
49583         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49584         error messages.
49585         * lib/wait-process.c (wait_subprocess): Omit error message about
49586         deadly signal sent to the child of termsigp != NULL.
49587
49588 2009-03-01  Eric Blake  <ebb9@byu.net>
49589
49590         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49591
49592 2009-03-01  Bruno Haible  <bruno@clisp.org>
49593
49594         Avoid a gcc warning.
49595         * tests/test-sched.c (b): Make global.
49596         Reported by Eric Blake.
49597
49598 2009-01-19  Martin Lambers  <marlam@marlam.de>
49599
49600         Provide POSIX semantics for socket timeout options on W32.
49601         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49602         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49603         * modules/setsockopt: Depend on sys_time module for struct timeval.
49604         * modules/getsockopt: Depend on sys_time module for struct timeval.
49605
49606 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49607
49608         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49609         __USE_GNU, for consistency with netdb.in.h.
49610         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49611
49612 2009-03-01  Bruno Haible  <bruno@clisp.org>
49613
49614         More support for FreeMiNT.
49615         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49616         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49617
49618 2009-03-01  Bruno Haible  <bruno@clisp.org>
49619
49620         More support for FreeMiNT.
49621         * lib/fpurge.c (fpurge): Correct last commit.
49622         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49623
49624 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49625
49626         Fix unportable awk script in vc-list-files.
49627         * build-aux/vc-list-files: In the replacement awk script, use
49628         substr with a second argument of 1, not zero.
49629         Report by Simon Josefsson.
49630
49631 2009-02-28  Bruno Haible  <bruno@clisp.org>
49632
49633         More support for FreeMiNT.
49634         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49635         to FreeMiNT today.
49636         * lib/fwriting.c (fwriting): Likewise.
49637         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49638
49639 2009-02-28  Bruno Haible  <bruno@clisp.org>
49640
49641         * tests/test-freadseek.c (main): Disable test beyond end of file on
49642         FreeMiNT.
49643         * tests/test-ftello.c (main): Likewise.
49644         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49645
49646 2009-02-28  Bruno Haible  <bruno@clisp.org>
49647
49648         Add tentative support for FreeMiNT.
49649         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49650         * lib/fpurge.c (fpurge): Likewise.
49651         * lib/freadable.c (freadable): Likewise.
49652         * lib/freading.c (freading): Likewise.
49653         * lib/freadptr.c (freadptr): Likewise.
49654         * lib/freadseek.c (freadptrinc): Likewise.
49655         * lib/fseeko.c (rpl_fseeko): Likewise.
49656         * lib/fseterr.c (fseterr): Likewise.
49657         * lib/fwritable.c (fwritable): Likewise.
49658         * lib/fwriting.c (fwriting): Likewise.
49659         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49660         Hourihane.
49661         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49662
49663 2009-02-28  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49666         SIGCHLD.
49667         Reported by Jim Meyering.
49668
49669 2009-02-28  Bruno Haible  <bruno@clisp.org>
49670
49671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49672         Mention the results of these tests on various platforms.
49673         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49674         order.
49675         * doc/posix-functions/printf.texi: Likewise.
49676         * doc/posix-functions/snprintf.texi: Likewise.
49677         * doc/posix-functions/sprintf.texi: Likewise.
49678         * doc/posix-functions/vfprintf.texi: Likewise.
49679         * doc/posix-functions/vprintf.texi: Likewise.
49680         * doc/posix-functions/vsnprintf.texi: Likewise.
49681         * doc/posix-functions/vsprintf.texi: Likewise.
49682         * doc/glibc-functions/obstack_printf.texi: Likewise.
49683         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49684
49685 2009-02-28  Bruno Haible  <bruno@clisp.org>
49686
49687         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49688         Reported by Loïc Minier <lool@dooz.org>.
49689
49690 2009-02-27  Bruno Haible  <bruno@clisp.org>
49691
49692         * gnulib-tool (func_import): Make the sed expression used to create the
49693         sed script for updating the .gitignore file POSIX compliant.
49694         Reported by Eric Blake.
49695
49696 2009-02-27  Bruno Haible  <bruno@clisp.org>
49697
49698         * gnulib-tool (sed): Don't alias as "sed --posix".
49699         Reported by Eric Blake.
49700
49701 2009-02-27  Bruno Haible  <bruno@clisp.org>
49702
49703         Avoid test link errors.
49704         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49705         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49706         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49707         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49709
49710 2009-02-27  Bruno Haible  <bruno@clisp.org>
49711
49712         Avoid spurious "(cached)" in configure output.
49713         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49714         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49715         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49716         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49717         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49718         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49719         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49720         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49721         Reported by Eric Blake.
49722
49723 2009-02-27  Eric Blake  <ebb9@byu.net>
49724
49725         printf: fix regression in previous patch
49726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49727
49728 2009-02-27  Bruno Haible  <bruno@clisp.org>
49729
49730         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49731         value.
49732         * lib/stdint.in.h: Likewise.
49733         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49734
49735 2009-02-27  Eric Blake  <ebb9@byu.net>
49736
49737         doc: mention more functions added in cygwin 1.7.0
49738         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49739         addition.
49740         * doc/posix-functions/open_wmemstream.texi: Likewise.
49741         * doc/posix-functions/wcsnlen.texi: Likewise.
49742         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49743         * doc/posix-functions/wcstod.texi: Likewise.
49744         * doc/posix-functions/wcstof.texi: Likewise.
49745         * doc/posix-functions/wcstoimax.texi: Likewise.
49746         * doc/posix-functions/wcstok.texi: Likewise.
49747         * doc/posix-functions/wcstoumax.texi: Likewise.
49748
49749         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49751         * doc/posix-functions/fprintf.texi: Update.
49752         * doc/posix-functions/printf.texi: Update.
49753         * doc/posix-functions/snprintf.texi: Update.
49754         * doc/posix-functions/sprintf.texi: Update.
49755         * doc/posix-functions/vfprintf.texi: Update.
49756         * doc/posix-functions/vprintf.texi: Update.
49757         * doc/posix-functions/vsnprintf.texi: Update.
49758         * doc/posix-functions/vsprintf.texi: Update.
49759         * doc/glibc-functions/obstack_printf.texi: Update.
49760         * doc/glibc-functions/obstack_vprintf.texi: Update.
49761
49762 2009-02-26  Eric Blake  <ebb9@byu.net>
49763
49764         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49765         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49766         compilation bug by using runtime conversion.
49767         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49768         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49769         * modules/ceill-tests (Files): Use nan.h.
49770         * modules/floorl-tests (Files): Likewise.
49771         * modules/frexpl-tests (Files): Likewise.
49772         * modules/isnanl-tests (Files): Likewise.
49773         * modules/ldexpl-tests (Files): Likewise.
49774         * modules/roundl-tests (Files): Likewise.
49775         * modules/truncl-tests (Files): Likewise.
49776         * tests/test-ceill.c (main): Use a working NaN.
49777         * tests/test-floorl.c (main): Likewise.
49778         * tests/test-frexpl.c (main): Likewise.
49779         * tests/test-isnan.c (test_long_double): Likewise.
49780         * tests/test-isnanl.h (main): Likewise.
49781         * tests/test-ldexpl.h (main): Likewise.
49782         * tests/test-roundl.h (main): Likewise.
49783         * tests/test-truncl.h (main): Likewise.
49784         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49785
49786 2009-02-26  Eric Blake  <ebb9@byu.net>
49787             Bruno Haible  <bruno@clisp.org>
49788
49789         Work around a *printf bug with %ls on Solaris.
49790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49791         precision is specified, sprintf stops converting the wide string
49792         argument when the number of bytes that have been produced by this
49793         conversion equals or exceeds the precision.
49794         * doc/posix-functions/fprintf.texi: Update.
49795         * doc/posix-functions/printf.texi: Update.
49796         * doc/posix-functions/snprintf.texi: Update.
49797         * doc/posix-functions/sprintf.texi: Update.
49798         * doc/posix-functions/vfprintf.texi: Update.
49799         * doc/posix-functions/vprintf.texi: Update.
49800         * doc/posix-functions/vsnprintf.texi: Update.
49801         * doc/posix-functions/vsprintf.texi: Update.
49802         * doc/glibc-functions/obstack_printf.texi: Update.
49803         * doc/glibc-functions/obstack_vprintf.texi: Update.
49804
49805 2009-02-26  Eric Blake  <ebb9@byu.net>
49806
49807         stdlib: favor compiler check of random.h
49808         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49809         to avoid an ObjC random.h installed by Swarm.
49810
49811 2009-02-26  Bruno Haible  <bruno@clisp.org>
49812
49813         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49814         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49815         Reported by Gary V. Vaughan <gary@gnu.org>.
49816
49817 2009-02-26  Bruno Haible  <bruno@clisp.org>
49818
49819         Fix *printf behaviour regarding the %ls directive.
49820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49821         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49822         NEED_PRINTF_DIRECTIVE_LS.
49823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49824         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49826         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49827         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49828         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49829         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49834         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49838         * doc/posix-functions/fprintf.texi: Update.
49839         * doc/posix-functions/printf.texi: Update.
49840         * doc/posix-functions/snprintf.texi: Update.
49841         * doc/posix-functions/sprintf.texi: Update.
49842         * doc/posix-functions/vfprintf.texi: Update.
49843         * doc/posix-functions/vprintf.texi: Update.
49844         * doc/posix-functions/vsnprintf.texi: Update.
49845         * doc/posix-functions/vsprintf.texi: Update.
49846         * doc/glibc-functions/obstack_printf.texi: Update.
49847         * doc/glibc-functions/obstack_vprintf.texi: Update.
49848         Reported by Eric Blake.
49849
49850 2009-02-25  Bruno Haible  <bruno@clisp.org>
49851
49852         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49853         with known value.
49854         Reported by Gary V. Vaughan <gary@gnu.org>.
49855
49856 2009-02-25  Bruno Haible  <bruno@clisp.org>
49857
49858         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49859         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49860         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49861         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49862         Reported by Gary V. Vaughan <gary@gnu.org>.
49863
49864 2009-02-25  Bruno Haible  <bruno@clisp.org>
49865
49866         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49867         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49868         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49869         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49870         Reported by Gary V. Vaughan <gary@gnu.org>.
49871
49872 2009-02-25  Eric Blake  <ebb9@byu.net>
49873
49874         tests: skip fseek/ftell tests if ungetc is broken
49875         * m4/ungetc.m4: New file.
49876         * modules/fseek-tests: Split test, so ungetc dependency is
49877         separate from rest of test.
49878         * modules/fseeko-tests: Likewise.
49879         * modules/ftell-tests: Likewise.
49880         * modules/ftello-tests: Likewise.
49881         * tests/test-fseek.c (main): Isolate ungetc dependency.
49882         * tests/test-fseeko.c (main): Likewise.
49883         * tests/test-ftell.c (main): Likewise.
49884         * tests/test-ftello.c (main): Likewise.
49885         * tests/test-fseek2.sh: New file.
49886         * tests/test-fseeko2.sh: Likewise.
49887         * tests/test-ftell2.sh: Likewise.
49888         * tests/test-ftello2.sh: Likewise.
49889
49890 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49891
49892         test-getaddrinfo: fix usage of skip return code 77
49893         * tests/test-gettaddrinfo.c: Return skip code 77 only
49894         for first occurrence of skip (4x77 is not 77)
49895
49896 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49897
49898         strtod: avoid C99 decl-after-statement
49899         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49900
49901 2009-02-24  Eric Blake  <ebb9@byu.net>
49902
49903         strtod: detect HP-UX 11.31 bug
49904         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49905         Reported by Gary V. Vaughan.
49906
49907 2009-02-23  Bruno Haible  <bruno@clisp.org>
49908
49909         Fix invalid read past end of memory block.
49910         * lib/vasnprintf.c (DCHAR_SET): Define.
49911         (local_wcslen): Define only when needed.
49912         (local_strnlen, local_wcsnlen): New functions.
49913         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49914         directives that involve a conversion ourselves.
49915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49916         wcsnlen, mbrtowc, wcrtomb.
49917         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49918         * tests/test-vasprintf-posix.c (test_function): Likewise.
49919         * tests/test-snprintf-posix.h (test_function): Likewise.
49920         * tests/test-sprintf-posix.h (test_function): Likewise.
49921         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49922
49923 2009-02-22  Bruno Haible  <bruno@clisp.org>
49924
49925         Implement new clarified decomposition of Hangul syllables.
49926         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49927         of type LTV, return only a pairwise decomposition.
49928         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49929         Likewise.
49930         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49931         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49932         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49933
49934 2009-02-22  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49937         zero-length results and shrink excess allocated memory.
49938         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49939         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49940         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49941         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49942         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49943         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49944         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49945         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49946         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49947         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49948         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49949         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49950
49951 2009-02-21  Bruno Haible  <bruno@clisp.org>
49952
49953         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49954         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49955         spaces after a period. Put a space between a macro name and its
49956         argument list. Trivial rewordings.
49957         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49958         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49959         (main): Return 0 explicitly.
49960
49961 2009-02-21  Bruno Haible  <bruno@clisp.org>
49962
49963         Tests for module 'uninorm/filter'.
49964         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49965         * modules/uninorm/filter-tests: New file.
49966
49967         New module 'uninorm/filter'.
49968         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49969         uninorm_filter_flush, uninorm_filter_free): New declarations.
49970         * lib/uninorm/uninorm-filter.c: New file.
49971         * modules/uninorm/filter: New file.
49972
49973 2009-02-21  Bruno Haible  <bruno@clisp.org>
49974
49975         Tests for module 'uninorm/nfkc'.
49976         * tests/uninorm/test-nfkc.c: New file.
49977         * tests/uninorm/test-u8-nfkc.c: New file.
49978         * tests/uninorm/test-u16-nfkc.c: New file.
49979         * tests/uninorm/test-u32-nfkc.c: New file.
49980         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49981         * tests/uninorm/test-u32-nfkc-big.c: New file.
49982         * modules/uninorm/nfkc-tests: New file.
49983
49984         New module 'uninorm/nfkc'.
49985         * lib/uninorm/nfkc.c: New file.
49986         * modules/uninorm/nfkc: New file.
49987
49988         Tests for module 'uninorm/nfkd'.
49989         * tests/uninorm/test-nfkd.c: New file.
49990         * tests/uninorm/test-u8-nfkd.c: New file.
49991         * tests/uninorm/test-u16-nfkd.c: New file.
49992         * tests/uninorm/test-u32-nfkd.c: New file.
49993         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49994         * tests/uninorm/test-u32-nfkd-big.c: New file.
49995         * modules/uninorm/nfkd-tests: New file.
49996
49997         New module 'uninorm/nfkd'.
49998         * lib/uninorm/nfkd.c: New file.
49999         * modules/uninorm/nfkd: New file.
50000
50001         Tests for module 'uninorm/nfc'.
50002         * tests/uninorm/test-nfc.c: New file.
50003         * tests/uninorm/test-u8-nfc.c: New file.
50004         * tests/uninorm/test-u16-nfc.c: New file.
50005         * tests/uninorm/test-u32-nfc.c: New file.
50006         * tests/uninorm/test-u32-nfc-big.sh: New file.
50007         * tests/uninorm/test-u32-nfc-big.c: New file.
50008         * modules/uninorm/nfc-tests: New file.
50009
50010         New module 'uninorm/nfc'.
50011         * lib/uninorm/nfc.c: New file.
50012         * modules/uninorm/nfc: New file.
50013
50014         Tests for module 'uninorm/nfd'.
50015         * tests/uninorm/test-nfd.c: New file.
50016         * tests/uninorm/test-u8-nfd.c: New file.
50017         * tests/uninorm/test-u16-nfd.c: New file.
50018         * tests/uninorm/test-u32-nfd.c: New file.
50019         * tests/uninorm/test-u32-nfd-big.sh: New file.
50020         * tests/uninorm/test-u32-nfd-big.c: New file.
50021         * tests/uninorm/test-u32-normalize-big.h: New file.
50022         * tests/uninorm/test-u32-normalize-big.c: New file.
50023         * tests/uninorm/NormalizationTest.txt: New file, created from
50024         Unicode 5.1.0 NormalizationTest.txt.
50025         * modules/uninorm/nfd-tests: New file.
50026
50027         New module 'uninorm/nfd'.
50028         * lib/uninorm/nfd.c: New file.
50029         * modules/uninorm/nfd: New file.
50030
50031         New module 'uninorm/u32-normalize'.
50032         * lib/uninorm/u32-normalize.c: New file.
50033         * modules/uninorm/u32-normalize: New file.
50034
50035         New module 'uninorm/u16-normalize'.
50036         * lib/uninorm/u16-normalize.c: New file.
50037         * modules/uninorm/u16-normalize: New file.
50038
50039         New module 'uninorm/u8-normalize'.
50040         * lib/uninorm/u8-normalize.c: New file.
50041         * lib/uninorm/normalize-internal.h: New file.
50042         * lib/uninorm/u-normalize-internal.h: New file.
50043         * modules/uninorm/u8-normalize: New file.
50044
50045         New module 'uninorm/decompose-internal'.
50046         * lib/uninorm/decompose-internal.c: New file.
50047         * modules/uninorm/decompose-internal: New file.
50048
50049         Tests for module 'uninorm/composition'.
50050         * tests/uninorm/test-composition.c: New file.
50051         * modules/uninorm/composition-tests: New file.
50052
50053         New module 'uninorm/composition'.
50054         * lib/uninorm/composition.c: New file.
50055         * lib/uninorm/composition-table.gperf: New file, generated by
50056         gen-uni-tables.
50057         * modules/uninorm/composition: New file.
50058
50059         Tests for module 'uninorm/compat-decomposition'.
50060         * tests/uninorm/test-compat-decomposition.c: New file.
50061         * modules/uninorm/compat-decomposition-tests: New file.
50062
50063         New module 'uninorm/compat-decomposition'.
50064         * lib/uninorm/decompose-internal.h: New file.
50065         * lib/uninorm/compat-decomposition.c: New file.
50066         * modules/uninorm/compat-decomposition: New file.
50067
50068         Tests for module 'uninorm/canonical-decomposition'.
50069         * tests/uninorm/test-canonical-decomposition.c: New file.
50070         * modules/uninorm/canonical-decomposition-tests: New file.
50071
50072         New module 'uninorm/canonical-decomposition'.
50073         * lib/uninorm/canonical-decomposition.c: New file.
50074         * modules/uninorm/canonical-decomposition: New file.
50075
50076         Tests for module 'uninorm/decomposition'.
50077         * tests/uninorm/test-decomposition.c: New file.
50078         * modules/uninorm/decomposition-tests: New file.
50079
50080         New module 'uninorm/decomposition'.
50081         * lib/uninorm/decomposition.c: New file.
50082         * modules/uninorm/decomposition: New file.
50083
50084         New module 'uninorm/decomposition-table'.
50085         * lib/uninorm/decomposition-table.h: New file.
50086         * lib/uninorm/decomposition-table.c: New file.
50087         * lib/uninorm/decomposition-table1.h: New file, generated by
50088         gen-uni-tables.
50089         * lib/uninorm/decomposition-table2.h: New file, generated by
50090         gen-uni-tables.
50091         * modules/uninorm/decomposition-table: New file.
50092
50093         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50094         (UC_DECOMP_*): New enumeration items.
50095         (get_decomposition): New function.
50096         (struct decomp_table): New type.
50097         (output_decomposition, output_decomposition_tables): New functions.
50098         (unicode_composition_exclusions): New variable.
50099         (fill_composition_exclusions, debug_output_composition_tables): New
50100         functions.
50101         (main): Accept one more argument. Invoke fill_composition_exclusions.
50102         Output decomposition and composition tables.
50103
50104         New module 'uninorm/base'.
50105         * lib/uninorm.h: New file.
50106         * lib/unictype.h: Update comment.
50107         * modules/uninorm/base: New file.
50108
50109 2009-02-21  David Lutterkort  <lutter@redhat.com>
50110
50111         Tests for module 'safe-alloc'.
50112         * tests/test-safe-alloc.c: New file.
50113         * modules/safe-alloc-tests: New file.
50114
50115         New module 'safe-alloc'.
50116         * lib/safe-alloc.h: New file.
50117         * lib/safe-alloc.c: New file.
50118         * m4/safe-alloc.m4: New file.
50119         * modules/safe-alloc: New file.
50120         * doc/safe-alloc.texi: New file.
50121         * doc/gnulib.texi: Include it.
50122         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50123         safe-alloc.
50124
50125 2009-02-18  Bruno Haible  <bruno@clisp.org>
50126
50127         Fix link error on non-glibc systems.
50128         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50129         variable.
50130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50131
50132 2009-02-18  Jim Meyering  <meyering@redhat.com>
50133
50134         fts: avoid used-uninitialized error due to recent change
50135         * lib/fts.c (fts_read): Guard uses of the new member,
50136         parent->fts_n_dirs_remaining, since it's not relevant for
50137         the parent of a directory specified on the command-line.
50138
50139 2009-02-17  James Youngman  <jay@gnu.org>
50140             Bruno Haible  <bruno@clisp.org>
50141
50142         * m4/include_next.m4: Reformulate comment.
50143
50144 2009-02-16  Jim Meyering  <meyering@redhat.com>
50145
50146         fts: add #if guards so that the fts_lgpl module still builds
50147         * lib/fts.c: Guard just-added hash-table-using parts with
50148         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50149         Reported by Simon Josefsson.
50150
50151 2009-02-15  Bruno Haible  <bruno@clisp.org>
50152
50153         * modules/array-mergesort-tests: New file.
50154         * tests/test-array-mergesort.c: New file.
50155
50156         New module 'array-mergesort'.
50157         * modules/array-mergesort: New file.
50158         * lib/array-mergesort.h: New file.
50159
50160 2009-02-15  Bruno Haible  <bruno@clisp.org>
50161
50162         Fix 2009-02-07 commit.
50163         * lib/gen-uni-tables.c (output_predicate, output_category,
50164         output_combclass, output_bidi_category, output_decimal_digit,
50165         output_digit, output_numeric, output_mirror, output_scripts,
50166         output_ident_category, output_simple_mapping): Fix format directives.
50167         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50168
50169 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50170
50171         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50172         fixes are available from IBM.
50173
50174 2009-02-13  Jim Meyering  <meyering@redhat.com>
50175
50176         fts: arrange not to stat non-directories in more cases
50177         This makes GNU find (when it doesn't need to stat each file)
50178         *much* more efficient at traversing reiserfs file systems.
50179         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50180         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50181         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50182         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50183         (leaf_optimization_applies): New function.
50184         (LCO_hash, LCO_compare): New helper functions.
50185         (link_count_optimize_ok): New function.
50186         (fts_stat): Initialize new member (if dir).
50187         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50188         we've just stat'ed a directory.  Skip the stat call when possible.
50189         ---
50190         Note this AFS-related exchange:
50191         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50192         and note find's pioctl call in find/fstype.c.
50193         But that is necessary only if you want to enable the
50194         optimization for AFS, and for now, I don't.
50195
50196         fts: move a function definition "up" (no semantic change)
50197         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50198         "up" to precede upcoming use of a related function.
50199
50200 2009-02-11  Jim Meyering  <meyering@redhat.com>
50201
50202         fts: correct internal computation of nlinks (optimization-related)
50203         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50204         whether the current entry is a directory, so don't test it.
50205
50206 2009-02-10  Bruno Haible  <bruno@clisp.org>
50207
50208         Tests for module 'uniwbrk/ulc-wordbreaks'.
50209         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50210         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50211         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50212
50213         Tests for module 'uniwbrk/u32-wordbreaks'.
50214         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50215         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50216
50217         Tests for module 'uniwbrk/u16-wordbreaks'.
50218         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50219         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50220
50221         Tests for module 'uniwbrk/u8-wordbreaks'.
50222         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50223         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50224
50225 2009-02-10  Bruno Haible  <bruno@clisp.org>
50226
50227         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50228         property.
50229         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50230         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50231         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50232
50233 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50234
50235         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50236         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50237
50238 2009-02-10  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50241         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50242         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50243         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50244         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50245         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50246
50247 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50248
50249         * lib/sockets.h (gl_fd_to_handle): New function.
50250
50251         * tests/test-sockets.c: Call gl_fd_to_handle.
50252
50253 2009-02-09  Bruno Haible  <bruno@clisp.org>
50254
50255         * doc/havelib.texi: Document the conventions on bi-arch systems.
50256
50257 2009-02-08  Bruno Haible  <bruno@clisp.org>
50258
50259         Document the AC_LIB_LINKFLAGS macro.
50260         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50261         * doc/gnulib.texi: Include it.
50262
50263 2009-02-08  Bruno Haible  <bruno@clisp.org>
50264
50265         Fix wrong order of sections, compared to TOC.
50266         * doc/gnulib.texi: Include relocatable-maint.texi after the
50267         "Regular expressions" node, not before.
50268
50269 2009-02-08  Bruno Haible  <bruno@clisp.org>
50270
50271         Tests for module 'unicase/totitle'.
50272         * modules/unicase/totitle-tests: New file.
50273
50274         Tests for module 'unicase/tolower'.
50275         * modules/unicase/tolower-tests: New file.
50276
50277         Tests for module 'unicase/toupper'.
50278         * modules/unicase/toupper-tests: New file.
50279         * tests/unicase/test-mapping-part1.h: New file.
50280         * tests/unicase/test-mapping-part2.h: New file.
50281
50282         New module 'unicase/totitle'.
50283         * modules/unicase/totitle: New file.
50284         * lib/unicase/totitle.c: New file.
50285
50286         New module 'unicase/tolower'.
50287         * modules/unicase/tolower: New file.
50288         * lib/unicase/tolower.c: New file.
50289
50290         New module 'unicase/toupper'.
50291         * modules/unicase/toupper: New file.
50292         * lib/unicase/toupper.c: New file.
50293         * lib/unicase/simple-mapping.h: New file.
50294
50295         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50296         (mapping_table): New structure.
50297         (output_simple_mapping): New function.
50298         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50299         * modules/gen-uni-tables (Description): Update.
50300         * lib/unicase/toupper.h: New file, automatically generated by
50301         gen-uni-tables.
50302         * lib/unicase/tolower.h: New file, automatically generated by
50303         gen-uni-tables.
50304         * lib/unicase/totitle.h: New file, automatically generated by
50305         gen-uni-tables.
50306         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50307         gen-uni-tables.
50308         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50309         gen-uni-tables.
50310         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50311         gen-uni-tables.
50312
50313         New module 'unicase/base'.
50314         * modules/unicase/base: New file.
50315         * lib/unicase.h: New file.
50316
50317 2009-02-08  Bruno Haible  <bruno@clisp.org>
50318
50319         New module 'uniwbrk/ulc-wordbreaks'.
50320         * modules/uniwbrk/ulc-wordbreaks: New file.
50321         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50322
50323         New module 'uniwbrk/u32-wordbreaks'.
50324         * modules/uniwbrk/u32-wordbreaks: New file.
50325         * lib/uniwbrk/u32-wordbreaks.c: New file.
50326
50327         New module 'uniwbrk/u16-wordbreaks'.
50328         * modules/uniwbrk/u16-wordbreaks: New file.
50329         * lib/uniwbrk/u16-wordbreaks.c: New file.
50330
50331         New module 'uniwbrk/u8-wordbreaks'.
50332         * modules/uniwbrk/u8-wordbreaks: New file.
50333         * lib/uniwbrk/u8-wordbreaks.c: New file.
50334         * lib/uniwbrk/u-wordbreaks.h: New file.
50335
50336         New module 'uniwbrk/table'.
50337         * modules/uniwbrk/table: New file.
50338         * lib/uniwbrk/wbrktable.h: New file.
50339         * lib/uniwbrk/wbrktable.c: New file.
50340
50341         New module 'uniwbrk/wordbreak-property'.
50342         * modules/uniwbrk/wordbreak-property: New file.
50343         * lib/uniwbrk/wordbreak-property.c: New file.
50344
50345         * lib/gen-uni-tables.c (WBP_*): New enum items.
50346         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50347         (unicode_org_wbp): New variable.
50348         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50349         New functions.
50350         (wbp_table): New structure.
50351         (output_wbp, output_wbrk_tables): New functions.
50352         (main): Accept additional argument. Invoke fill_org_wbp,
50353         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50354         output_wbrk_tables.
50355         * modules/gen-uni-tables (Description): Update.
50356         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50357         gen-uni-tables.
50358
50359         New module 'uniwbrk/base'.
50360         * modules/uniwbrk/base: New file.
50361         * lib/uniwbrk.h: New file.
50362
50363 2009-02-08  Bruno Haible  <bruno@clisp.org>
50364
50365         Update to Unicode 5.1.0.
50366         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50367         U+2185..U+2188.
50368         (is_property_default_ignorable_code_point): Don't include characters
50369         of category Cc or Cs and not-a-characters.
50370         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50371         U+0D79, U+109E, U+109F, U+A60C.
50372         * lib/unictype/bidi_of.h: Regenerated.
50373         * lib/unictype/blocks.h: Regenerated.
50374         * lib/unictype/categ_C.h: Regenerated.
50375         * lib/unictype/categ_Cf.h: Regenerated.
50376         * lib/unictype/categ_Cn.h: Regenerated.
50377         * lib/unictype/categ_L.h: Regenerated.
50378         * lib/unictype/categ_Ll.h: Regenerated.
50379         * lib/unictype/categ_Lm.h: Regenerated.
50380         * lib/unictype/categ_Lo.h: Regenerated.
50381         * lib/unictype/categ_Lu.h: Regenerated.
50382         * lib/unictype/categ_M.h: Regenerated.
50383         * lib/unictype/categ_Mc.h: Regenerated.
50384         * lib/unictype/categ_Me.h: Regenerated.
50385         * lib/unictype/categ_Mn.h: Regenerated.
50386         * lib/unictype/categ_N.h: Regenerated.
50387         * lib/unictype/categ_Nd.h: Regenerated.
50388         * lib/unictype/categ_Nl.h: Regenerated.
50389         * lib/unictype/categ_No.h: Regenerated.
50390         * lib/unictype/categ_P.h: Regenerated.
50391         * lib/unictype/categ_Pd.h: Regenerated.
50392         * lib/unictype/categ_Pe.h: Regenerated.
50393         * lib/unictype/categ_Pf.h: Regenerated.
50394         * lib/unictype/categ_Pi.h: Regenerated.
50395         * lib/unictype/categ_Po.h: Regenerated.
50396         * lib/unictype/categ_Ps.h: Regenerated.
50397         * lib/unictype/categ_S.h: Regenerated.
50398         * lib/unictype/categ_Sk.h: Regenerated.
50399         * lib/unictype/categ_Sm.h: Regenerated.
50400         * lib/unictype/categ_So.h: Regenerated.
50401         * lib/unictype/categ_of.h: Regenerated.
50402         * lib/unictype/combining.h: Regenerated.
50403         * lib/unictype/ctype_alnum.h: Regenerated.
50404         * lib/unictype/ctype_alpha.h: Regenerated.
50405         * lib/unictype/ctype_graph.h: Regenerated.
50406         * lib/unictype/ctype_lower.h: Regenerated.
50407         * lib/unictype/ctype_print.h: Regenerated.
50408         * lib/unictype/ctype_punct.h: Regenerated.
50409         * lib/unictype/ctype_upper.h: Regenerated.
50410         * lib/unictype/decdigit.h: Regenerated.
50411         * lib/unictype/digit.h: Regenerated.
50412         * lib/unictype/mirror.h: Regenerated.
50413         * lib/unictype/numeric.h: Regenerated.
50414         * lib/unictype/pr_alphabetic.h: Regenerated.
50415         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50416         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50417         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50418         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50419         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50420         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50421         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50422         * lib/unictype/pr_combining.h: Regenerated.
50423         * lib/unictype/pr_dash.h: Regenerated.
50424         * lib/unictype/pr_decimal_digit.h: Regenerated.
50425         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50426         * lib/unictype/pr_deprecated.h: Regenerated.
50427         * lib/unictype/pr_diacritic.h: Regenerated.
50428         * lib/unictype/pr_extender.h: Regenerated.
50429         * lib/unictype/pr_format_control.h: Regenerated.
50430         * lib/unictype/pr_grapheme_base.h: Regenerated.
50431         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50432         * lib/unictype/pr_grapheme_link.h: Regenerated.
50433         * lib/unictype/pr_id_continue.h: Regenerated.
50434         * lib/unictype/pr_id_start.h: Regenerated.
50435         * lib/unictype/pr_ideographic.h: Regenerated.
50436         * lib/unictype/pr_ignorable_control.h: Regenerated.
50437         * lib/unictype/pr_lowercase.h: Regenerated.
50438         * lib/unictype/pr_math.h: Regenerated.
50439         * lib/unictype/pr_numeric.h: Regenerated.
50440         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50441         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50442         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50443         * lib/unictype/pr_other_id_continue.h: Regenerated.
50444         * lib/unictype/pr_other_lowercase.h: Regenerated.
50445         * lib/unictype/pr_other_math.h: Regenerated.
50446         * lib/unictype/pr_punctuation.h: Regenerated.
50447         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50448         * lib/unictype/pr_soft_dotted.h: Regenerated.
50449         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50450         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50451         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50452         * lib/unictype/pr_uppercase.h: Regenerated.
50453         * lib/unictype/pr_xid_continue.h: Regenerated.
50454         * lib/unictype/pr_xid_start.h: Regenerated.
50455         * lib/unictype/pr_zero_width.h: Regenerated.
50456         * lib/unictype/scripts.h: Regenerated.
50457         * lib/unictype/scripts_byname.gperf: Regenerated.
50458         * lib/unictype/sy_java_ident.h: Regenerated.
50459         * lib/unilbrk/lbrkprop1.h: Regenerated.
50460         * lib/unilbrk/lbrkprop2.h: Regenerated.
50461         * tests/unictype/test-categ_C.c: Regenerated.
50462         * tests/unictype/test-categ_Cf.c: Regenerated.
50463         * tests/unictype/test-categ_Cn.c: Regenerated.
50464         * tests/unictype/test-categ_L.c: Regenerated.
50465         * tests/unictype/test-categ_Ll.c: Regenerated.
50466         * tests/unictype/test-categ_Lm.c: Regenerated.
50467         * tests/unictype/test-categ_Lo.c: Regenerated.
50468         * tests/unictype/test-categ_Lu.c: Regenerated.
50469         * tests/unictype/test-categ_M.c: Regenerated.
50470         * tests/unictype/test-categ_Mc.c: Regenerated.
50471         * tests/unictype/test-categ_Me.c: Regenerated.
50472         * tests/unictype/test-categ_Mn.c: Regenerated.
50473         * tests/unictype/test-categ_N.c: Regenerated.
50474         * tests/unictype/test-categ_Nd.c: Regenerated.
50475         * tests/unictype/test-categ_Nl.c: Regenerated.
50476         * tests/unictype/test-categ_No.c: Regenerated.
50477         * tests/unictype/test-categ_P.c: Regenerated.
50478         * tests/unictype/test-categ_Pd.c: Regenerated.
50479         * tests/unictype/test-categ_Pe.c: Regenerated.
50480         * tests/unictype/test-categ_Pf.c: Regenerated.
50481         * tests/unictype/test-categ_Pi.c: Regenerated.
50482         * tests/unictype/test-categ_Po.c: Regenerated.
50483         * tests/unictype/test-categ_Ps.c: Regenerated.
50484         * tests/unictype/test-categ_S.c: Regenerated.
50485         * tests/unictype/test-categ_Sk.c: Regenerated.
50486         * tests/unictype/test-categ_Sm.c: Regenerated.
50487         * tests/unictype/test-categ_So.c: Regenerated.
50488         * tests/unictype/test-ctype_alnum.c: Regenerated.
50489         * tests/unictype/test-ctype_alpha.c: Regenerated.
50490         * tests/unictype/test-ctype_graph.c: Regenerated.
50491         * tests/unictype/test-ctype_lower.c: Regenerated.
50492         * tests/unictype/test-ctype_print.c: Regenerated.
50493         * tests/unictype/test-ctype_punct.c: Regenerated.
50494         * tests/unictype/test-ctype_upper.c: Regenerated.
50495         * tests/unictype/test-decdigit.h: Regenerated.
50496         * tests/unictype/test-digit.h: Regenerated.
50497         * tests/unictype/test-numeric.h: Regenerated.
50498         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50499         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50500         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50501         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50502         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50503         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50504         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50505         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50506         * tests/unictype/test-pr_combining.c: Regenerated.
50507         * tests/unictype/test-pr_dash.c: Regenerated.
50508         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50509         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50510         * tests/unictype/test-pr_deprecated.c: Regenerated.
50511         * tests/unictype/test-pr_diacritic.c: Regenerated.
50512         * tests/unictype/test-pr_extender.c: Regenerated.
50513         * tests/unictype/test-pr_format_control.c: Regenerated.
50514         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50515         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50516         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50517         * tests/unictype/test-pr_id_continue.c: Regenerated.
50518         * tests/unictype/test-pr_id_start.c: Regenerated.
50519         * tests/unictype/test-pr_ideographic.c: Regenerated.
50520         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50521         * tests/unictype/test-pr_lowercase.c: Regenerated.
50522         * tests/unictype/test-pr_math.c: Regenerated.
50523         * tests/unictype/test-pr_numeric.c: Regenerated.
50524         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50525         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50526         Regenerated.
50527         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50528         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50529         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50530         * tests/unictype/test-pr_other_math.c: Regenerated.
50531         * tests/unictype/test-pr_punctuation.c: Regenerated.
50532         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50533         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50534         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50535         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50536         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50537         * tests/unictype/test-pr_uppercase.c: Regenerated.
50538         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50539         * tests/unictype/test-pr_xid_start.c: Regenerated.
50540         * tests/unictype/test-pr_zero_width.c: Regenerated.
50541
50542         Update to Unicode 5.1.0.
50543         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50544         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50545         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50546         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50547         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50548         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50549         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50550         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50551         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50552         (nonspacing_table_ind): Update.
50553         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50554
50555         Update to Unicode 5.1.0.
50556         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50557         code transform.
50558         * lib/uniname/uniname.c (unicode_character_name,
50559         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50560         * lib/uniname/uninames.h: Regenerated.
50561         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50562
50563 2009-02-07  Bruno Haible  <bruno@clisp.org>
50564
50565         Merge gen-ctype and gen-lbrk into a single program.
50566         * lib/gen-uni-tables.c: New file, incorporating
50567         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50568         Add directory prefixes to the names of the generated files.
50569         * lib/unictype/gen-ctype.c: Remove file.
50570         * lib/unilbrk/gen-lbrk.c: Remove file.
50571         * modules/gen-uni-tables: New file.
50572         * modules/unictype/gen-ctype: Remove file.
50573         * modules/unilbrk/gen-lbrk: Remove file.
50574
50575 2009-02-07  Bruno Haible  <bruno@clisp.org>
50576
50577         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50578
50579         New module 'unistr/u32-strcoll'.
50580         * modules/unistr/u32-strcoll: New file.
50581         * lib/unistr/u32-strcoll.c: New file.
50582
50583         New module 'unistr/u16-strcoll'.
50584         * modules/unistr/u16-strcoll: New file.
50585         * lib/unistr/u16-strcoll.c: New file.
50586
50587         New module 'unistr/u8-strcoll'.
50588         * modules/unistr/u8-strcoll: New file.
50589         * lib/unistr/u8-strcoll.c: New file.
50590         * lib/unistr/u-strcoll.h: New file.
50591
50592 2009-02-07  Bruno Haible  <bruno@clisp.org>
50593
50594         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50595         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50596         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50597         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50598         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50599         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50600
50601 2009-02-07  Bruno Haible  <bruno@clisp.org>
50602
50603         Make 64-bit clean.
50604         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50605         output_combclass, output_bidi_category, output_decimal_digit,
50606         output_digit, output_numeric, output_mirror, output_scripts,
50607         output_ident_category): Use proper width specifier in format strings.
50608
50609 2009-02-07  Bruno Haible  <bruno@clisp.org>
50610
50611         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50612         failure behaviour.
50613
50614 2009-02-07  Jim Meyering  <meyering@redhat.com>
50615
50616         regex: avoid compilation failure with upcoming gcc-4.4
50617         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50618         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50619         "... error: integer overflow in preprocessor expression".
50620
50621 2009-02-05  Ben Pfaff  <blp@gnu.org>
50622
50623         Fix link errors on Windows when close module is used.
50624         * modules/close: Add $(LIB_CLOSE) to Link section.
50625         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50626         $(LIB_CLOSE) on Windows.
50627
50628 2009-02-05  Jim Meyering  <meyering@redhat.com>
50629
50630         still avoid unused-parameter warnings, but do it cleanly
50631         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50632         (get_fs_usage): Cast to void instead.
50633         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50634         (dev_from_mount_options, read_file_system_list): Cast to void.
50635         Prompted by Bruno Haible.
50636
50637 2009-02-04  Jim Meyering  <meyering@redhat.com>
50638
50639         fsusage.c: correct copyright year
50640         * lib/fsusage.c: Reflect year in which the change is pushed into
50641
50642         avoid misc. warnings
50643         * lib/fsusage.c (UNUSED_PARAM): Define.
50644         (get_fs_usage): Mark parameter "disk" as unused.
50645         * lib/getugroups.c (getgrent): Use "void" in prototype.
50646         * lib/mountlist.c: Mark unused parameters.
50647         (read_file_system_list): Declare a local with "const".
50648         * lib/nanosleep.c (getnow): Declare static.
50649         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50650
50651         dirfd: set errno upon failure
50652         * lib/dirfd.c: Include <errno.h>.
50653         Set errno to ENOTSUP when returning -1.
50654         * modules/dirfd (Depends-on): Add errno.
50655         Suggested by John Kodis <kodis@comcast.net>.
50656
50657 2009-02-01  Bruno Haible  <bruno@clisp.org>
50658
50659         Don't assume sizeof (long) >= sizeof (void *).
50660         * lib/memcmp.c: Include stdint.h.
50661         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50662         srcp2 to 'const byte *'.
50663         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50664         types to uintptr_t.
50665         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50666         * modules/memcmp (Depends-on): Add stdint.
50667         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50668
50669 2009-01-30  Eric Blake  <ebb9@byu.net>
50670
50671         fix more require-before-expand issues
50672         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50673         expand, AC_PROG_AWK.
50674         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50675
50676 2009-01-28  Eric Blake  <ebb9@byu.net>
50677
50678         version-etc: use consistent URL formatting
50679         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50680         Improve formatting.  Use fputs for string without %.
50681
50682 2009-01-28  Jim Meyering  <meyering@redhat.com>
50683
50684         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50685         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50686         "underquoted definition of NAME" from autoconf-2.59.
50687
50688 2009-01-28  Bruno Haible  <bruno@clisp.org>
50689
50690         * doc/gnulib.texi: Add "Obsolete modules" to index.
50691
50692 2009-01-28  Jim Meyering  <meyering@redhat.com>
50693
50694         useless-if-before-free: recognize more variants
50695         * build-aux/useless-if-before-free: Also recognize e.g.,
50696         if (NULL != p) free (p);
50697
50698 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50699
50700         test-getaddrinfo: skip (don't fail) this test when there's no network
50701         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50702         on the presumption that it means you lack network access.
50703
50704 2009-01-26  Jim Meyering  <meyering@redhat.com>
50705
50706         fflush: avoid warnings on modern systems
50707         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50708         pos and result, into scopes where they're used.
50709
50710 2009-01-26  Eric Blake  <ebb9@byu.net>
50711
50712         Silence warning reintroduced by recent extensions patch.
50713         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50714         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50715         autoconf.
50716
50717         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50718         * m4/00gnulib.m4: New file.
50719         * gnulib-tool (func_get_filelist): Always use it.
50720         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50721         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50722
50723 2009-01-25  Bruno Haible  <bruno@clisp.org>
50724
50725         Make test-quotearg work on MacOS X and AIX.
50726         * tests/test-quotearg.sh: New file.
50727         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50728         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50729         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50730         include <libintl.h>.
50731         (fake_locale): Remove variable.
50732         (gettext, dgettext, dcgettext): Remove functions.
50733         (main): Instead of setting a fake locale, set a real locale. Call
50734         textdomain and bindtextdomain.
50735         * modules/quotearg-tests (Files): Add the new files.
50736         (Depends-on): Add gettext, setenv, unsetenv.
50737         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50738         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50739         Augment TESTS_ENVIRONMENT.
50740
50741 2009-01-25  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50744         fr_FR.ISO8859-1 locale on MacOS X.
50745         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50746         ja_JP.eucJP locale on MacOS X.
50747         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50748         zh_CN.GB18030 locale on MacOS X.
50749
50750 2009-01-25  Bruno Haible  <bruno@clisp.org>
50751
50752         Avoid link errors on MacOS X 10.3.
50753         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50754         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50755
50756 2009-01-25  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50759         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50760         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50761         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50762         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50763         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50764         posix_spawnattr_init, posix_spawnattr_setsigmask,
50765         posix_spawnattr_setflags, posix_spawnattr_destroy.
50766
50767         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50768         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50769         * modules/execute (Files): Remove m4/posix_spawn.m4.
50770         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50771         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50772         posix_spawnattr_init, posix_spawnattr_setsigmask,
50773         posix_spawnattr_setflags, posix_spawnattr_destroy.
50774
50775 2009-01-25  Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/glthread/threadlib.c: Include <stdlib.h>.
50778
50779 2009-01-25  Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/glthread/threadlib.c (dummy): New declaration.
50782
50783 2009-01-25  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50786         multibyte characters also for the GB18030 encoding. Don't crash when
50787         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50788
50789 2009-01-25  Bruno Haible  <bruno@clisp.org>
50790
50791         Avoid redefining 'struct random_data' on OSF/1 5.1.
50792         * lib/stdlib.in.h: Include <random.h> if it exists.
50793         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50794         HAVE_RANDOM_H. Include <random.h> when testing whether
50795         'struct random_data' exists.
50796         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50797
50798 2009-01-25  Bruno Haible  <bruno@clisp.org>
50799
50800         Don't install charset.alias on MacOS X >= 10.3.
50801         * lib/localcharset.c (DARWIN7): New macro.
50802         (get_charset_aliases): Hardcode the result for Darwin7.
50803         * modules/localcharset (install-exec-local): Don't install
50804         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50805
50806 2009-01-25  Bruno Haible  <bruno@clisp.org>
50807
50808         Don't install charset.alias on mingw and Cygwin.
50809         * modules/localcharset (install-exec-local): Don't install
50810         charset.alias on mingw and Cygwin, if the file does not yet exist.
50811         The result for these platforms is hardcoded in localcharset.c.
50812
50813 2009-01-25  Bruno Haible  <bruno@clisp.org>
50814
50815         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50817         before requiring AC_USE_SYSTEM_EXTENSIONS.
50818
50819 2009-01-25  Jim Meyering  <meyering@redhat.com>
50820
50821         c-strtod: avoid warnings
50822         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50823         "assignment discards qualifiers from pointer target type" warnings.
50824
50825 2009-01-24  Bruno Haible  <bruno@clisp.org>
50826
50827         Add support for non-UTF-8 locales on MacOS X.
50828         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50829         canonical encodings. For Darwin 7 and newer, don't map traditional
50830         encodings to UTF-8.
50831         Reported by Vincent Lefevre <vincent@vinc17.org>
50832         at <http://savannah.gnu.org/bugs/?25235>.
50833
50834 2009-01-24  Bruno Haible  <bruno@clisp.org>
50835
50836         * doc/gnulib.texi (Obsolete modules): New section.
50837         Reported by Mike Frysinger <vapier@gentoo.org>.
50838
50839 2009-01-24  Bruno Haible  <bruno@clisp.org>
50840
50841         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50842         (%.dvi): New rule.
50843
50844 2009-01-24  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50847         Reported by Eric Blake.
50848
50849 2009-01-24  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50852         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50853         Reported by Gary V. Vaughan <gary@gnu.org>.
50854
50855 2009-01-24  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50858
50859 2009-01-23  Bruno Haible  <bruno@clisp.org>
50860
50861         Make c-strtod, c-strtold usable in libraries.
50862         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50863         (C_STRTOD): Call strdup instead of xstrdup.
50864         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50865         * modules/c-strtold (Depends-on): Likewise.
50866         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50867         * NEWS: Mention the change.
50868         Reported by Michael Gold <mgold@ncf.ca>.
50869
50870 2009-01-23  Jim Meyering  <meyering@redhat.com>
50871
50872         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50873         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50874         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50875
50876 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50877
50878         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50879         GNU CoreUtils.
50880         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50881         * modules/version-etc (Description): Update.
50882
50883 2009-01-22  Bruno Haible  <bruno@clisp.org>
50884
50885         Cache the C locale object.
50886         * lib/c-strtod.c (c_locale_cache): New variable.
50887         (c_locale): New function.
50888         (C_STRTOD): Use it, and don't call freelocale.
50889         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50890         Suggested by Paolo Bonzini.
50891
50892 2009-01-21  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50895         conditions other than overflow.
50896
50897 2009-01-21  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/c-strtod.c: Include errno.h.
50900         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50901         value from STRTOD_L and STRTOD.
50902
50903 2009-01-21  Bruno Haible  <bruno@clisp.org>
50904         and Jim Meyering  <meyering@redhat.com>
50905
50906         nanosleep: skip configure test (fail it) for apple universal builds
50907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50908         universal builds, assume that nanosleep does not work.
50909         * modules/nanosleep (Depends-on): Add multiarch.
50910
50911         mktime: skip configure test (fail it) for apple universal builds
50912         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50913         universal builds, assume that mktime does not work.
50914         * modules/mktime (Depends-on): Add multiarch.
50915
50916 2009-01-21  Eric Blake  <ebb9@byu.net>
50917
50918         multiarch: avoid expand-before-require warning
50919         * modules/multiarch (configure.ac): Require, rather than expand,
50920         gl_MULTIARCH.
50921         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50922         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50923         enforce that all clients require it.  Partial reversion of
50924         2008-12-29 patch.
50925
50926         error: avoid expand-before-require warning
50927         * modules/errno (configure.ac): Require, rather than expand,
50928         gl_HEADER_ERRNO_H.
50929         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50930         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50931         enforce that all clients require it.
50932
50933         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50934         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50935         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50936         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50937
50938 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50939
50940         Revert:
50941         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50942
50943         regex: do not depend on obsolete modules.
50944         * modules/regex: Remove memcmp and memmove.
50945
50946 2009-01-20  Bruno Haible  <bruno@clisp.org>
50947
50948         Make the 'link' module link on Windows NT 4.
50949         * lib/link.c (_WIN32_WINNT): Don't define.
50950         (CreateHardLinkFuncType): New type.
50951         (CreateHardLinkFunc, initialized): New variables.
50952         (initialize): New function.
50953         (link): Invoke CreateHardLink indirectly through the function pointer.
50954
50955 2009-01-20  Bruno Haible  <bruno@clisp.org>
50956
50957         Fix compilation failure on mingw.
50958         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50959
50960 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50961
50962         * doc/c-strtod.texi: Mention a couple of restrictions.
50963
50964 2009-01-20  Jim Meyering  <meyering@redhat.com>
50965
50966         gettimeofday: move more declarations out of functions
50967         * lib/gettimeofday.c: Move extern declarations of tzset and
50968         gmtime out of containing functions.  Prompted by Bruno Haible.
50969
50970 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50971
50972         regex: do not depend on obsolete modules.
50973         * modules/regex: Remove memcmp and memmove.
50974
50975 2009-01-19  Bruno Haible  <bruno@clisp.org>
50976
50977         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50978         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50979         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50980         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50981         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50982
50983 2009-01-19  Bruno Haible  <bruno@clisp.org>
50984
50985         * tests/test-link.c: Include <errno.h>.
50986         (main): Exit with code 77 when a hard link cannot be created due to
50987         the file system.
50988         * tests/test-link.sh: Skip test when a hard link cannot be created due
50989         to the file system.
50990         Suggested by Eric Blake.
50991
50992 2009-01-19  Martin Lambers  <marlam@marlam.de>
50993
50994         * modules/link-tests: New file.
50995         * tests/test-link.sh: New file.
50996         * tests/test-link.c: New file.
50997
50998 2009-01-19  Eric Blake  <ebb9@byu.net>
50999
51000         doc: mention another function added in cygwin 1.7.0
51001         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51002         Another new function in cygwin 1.7.
51003
51004 2009-01-19  Bruno Haible  <bruno@clisp.org>
51005
51006         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51007         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51008         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51009         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51010         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51011         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51012         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51013         * m4/md4.m4 (gl_MD4): Likewise.
51014         * m4/md5.m4 (gl_MD5): Likewise.
51015         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51016         * m4/sha1.m4 (gl_SHA1): Likewise.
51017         * m4/sha256.m4 (gl_SHA256): Likewise.
51018         * m4/sha512.m4 (gl_SHA512): Likewise.
51019
51020 2009-01-19  Bruno Haible  <bruno@clisp.org>
51021
51022         * modules/uniname/uniname-tests (Depends-on): Add progname.
51023         * tests/uniname/test-uninames.c: Include progname.h.
51024         (main): Call set_program_name.
51025
51026         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51027         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51028         (main): Call set_program_name.
51029
51030         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51031         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51032         (main): Call set_program_name.
51033
51034         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51035         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51036         (main): Call set_program_name.
51037
51038         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51039         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51040         (main): Call set_program_name.
51041
51042         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51043         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51044         (main): Call set_program_name.
51045
51046         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51047         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51048         (main): Call set_program_name.
51049
51050         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51051         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51052         (main): Call set_program_name.
51053
51054         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51055         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51056         (main): Call set_program_name.
51057
51058 2009-01-19  Eric Blake  <ebb9@byu.net>
51059
51060         test-unistd: test previous patch
51061         * tests/test-unistd.c: Test *_FILENO macros.
51062
51063         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51064         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51065         Guarantee a definition.
51066         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51067         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51068         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51069         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51070         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51071         Likewise.
51072         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51073         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51074         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51075         Likewise.
51076         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51077         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51078         (STDERR_FILENO): Likewise.
51079         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51080         (STDERR_FILENO): Likewise.
51081         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51082         (STDERR_FILENO): Likewise.
51083         Reported by Elbert Pol.
51084
51085 2009-01-19  Eric Blake  <ebb9@byu.net>
51086
51087         doc: mention more functions added in cygwin 1.7.0
51088         * doc/posix-functions/abort.texi (abort): Update wording related
51089         to cygwin.
51090         * doc/posix-functions/daylight.texi (daylight): Likewise.
51091         * doc/posix-functions/optarg.texi (optarg): Likewise.
51092         * doc/posix-functions/optarg.texi (opterr): Likewise.
51093         * doc/posix-functions/optarg.texi (optind): Likewise.
51094         * doc/posix-functions/optarg.texi (optopt): Likewise.
51095         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51096         worked in 1.5.x, and was withdrawn in 1.7.
51097         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51098         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51099         cygwin versions.
51100         * doc/posix-functions/perror.texi (perror): Likewise.
51101         * doc/posix-functions/printf.texi (printf): Likewise.
51102         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51103         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51104         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51105         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51106         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51107         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51108         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51109         Likewise.
51110         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51111         Likewise.
51112         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51113         this function.
51114         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51115         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51116         Likewise.
51117         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51118         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51119         * doc/posix-functions/confstr.texi (confstr): Likewise.
51120         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51121         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51122         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51123         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51124         * doc/posix-functions/fputws.texi (fputws): Likewise.
51125         * doc/posix-functions/fwide.texi (fwide): Likewise.
51126         * doc/posix-functions/getwc.texi (getwc): Likewise.
51127         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51128         * doc/posix-functions/putwc.texi (putwc): Likewise.
51129         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51130         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51131         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51132         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51133         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51134         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51135         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51136         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51137         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51138         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51139         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51140
51141 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51142
51143         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51144         * lib/ioctl.c: Include <sys/ioctl.h>.
51145
51146 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51147
51148         * modules/getdate-tests (Depends-on): Add progname.
51149         * tests/test-getdate.c: Use progname module, to avoid link errors
51150         on non-glibc systems.
51151
51152 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51153
51154         * modules/filenamecat-tests (Depends-on): Add progname.
51155         * modules/fstrcmp-tests (Depends-on): Likewise.
51156
51157         * tests/test-filenamecat.c: Use progname module, to avoid link
51158         errors on non-glibc systems.
51159         * tests/test-fstrcmp.c: Likewise.
51160
51161 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51162
51163         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51164         * lib/gettimeofday.c: Move extern declaration out of function.
51165
51166 2009-01-18  Bruno Haible  <bruno@clisp.org>
51167
51168         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51169         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51170         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51171
51172 2009-01-18  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/strftime.c (MEMPCPY): Remove unused macro.
51175         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51176
51177 2009-01-18  Martin Lambers  <marlam@marlam.de>
51178
51179         New module 'link'.
51180         * lib/unistd.in.h (link): New declaration.
51181         * lib/link.c: New file.
51182         * m4/link.m4: New file.
51183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51184         HAVE_LINK.
51185         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51186         * modules/link: New file.
51187         * doc/posix-functions/link.texi: Mention the new module.
51188
51189 2009-01-18  Bruno Haible  <bruno@clisp.org>
51190
51191         * tests/test-avltree_list.c (main): Call set_program_name.
51192         * tests/test-avltree_oset.c (main): Likewise.
51193         * tests/test-obstack-printf.c: Include progname.h.
51194         (main): Call set_program_name.
51195         * tests/test-quotearg.c: Include progname.h.
51196         (main): Call set_program_name.
51197         * tests/test-xmemdup0.c: Include progname.h.
51198         (main): Call set_program_name.
51199
51200 2009-01-18  Bruno Haible  <bruno@clisp.org>
51201
51202         New module 'alphasort'.
51203         * lib/dirent.in.h (alphasort): New declaration.
51204         * lib/alphasort.c: New file, from glibc with modifications.
51205         * m4/alphasort.m4: New file.
51206         * modules/alphasort: New file.
51207         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51208         HAVE_ALPHASORT.
51209         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51210         HAVE_ALPHASORT.
51211         * doc/posix-functions/alphasort.texi: Mention the new module and the
51212         portability problems.
51213
51214 2009-01-18  Bruno Haible  <bruno@clisp.org>
51215
51216         New module 'scandir'.
51217         * lib/dirent.in.h (scandir): New declaration.
51218         * lib/scandir.c: New file, from glibc with modifications.
51219         * m4/scandir.m4: New file.
51220         * modules/scandir: New file.
51221         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51222         HAVE_SCANDIR.
51223         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51224         HAVE_SCANDIR.
51225         * doc/posix-functions/scandir.texi: Mention the new module and the
51226         portability problems.
51227
51228 2009-01-17  Bruno Haible  <bruno@clisp.org>
51229
51230         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51231         Update documentation.
51232         (func_remove_suffix): Escape all dots in the suffix. Update
51233         documentation.
51234         (func_filter_filelist): Update documentation.
51235         Reported by Ralf Wildenhues.
51236
51237 2009-01-17  Bruno Haible  <bruno@clisp.org>
51238
51239         * modules/dprintf-posix-tests: New file.
51240         * tests/test-dprintf-posix.sh: New file.
51241         * tests/test-dprintf-posix.c: New file.
51242
51243         New modules 'dprintf', 'dprintf-posix'.
51244         * lib/stdio.in.h (dprintf): New declaration.
51245         * lib/dprintf.c: New file.
51246         * m4/dprintf.m4: New file.
51247         * m4/dprintf-posix.m4: New file.
51248         * modules/dprintf: New file.
51249         * modules/dprintf-posix: New file.
51250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51251         HAVE_DPRINTF, REPLACE_DPRINTF.
51252         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51253         HAVE_DPRINTF, REPLACE_DPRINTF.
51254         * doc/posix-functions/dprintf.texi: Mention the new modules.
51255
51256 2009-01-17  Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/vdprintf-posix-tests: New file.
51259         * tests/test-vdprintf-posix.sh: New file.
51260         * tests/test-vdprintf-posix.c: New file.
51261
51262         New modules 'vdprintf', 'vdprintf-posix'.
51263         * lib/stdio.in.h (vdprintf): New declaration.
51264         * lib/vdprintf.c: New file.
51265         * m4/vdprintf.m4: New file.
51266         * m4/vdprintf-posix.m4: New file.
51267         * modules/vdprintf: New file.
51268         * modules/vdprintf-posix: New file.
51269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51270         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51271         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51272         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51273         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51274
51275 2009-01-17  Bruno Haible  <bruno@clisp.org>
51276
51277         Fix replacement of fopen on mingw.
51278         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51279         mingw.
51280
51281 2009-01-17  Bruno Haible  <bruno@clisp.org>
51282
51283         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51284         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51285
51286 2009-01-17  Bruno Haible  <bruno@clisp.org>
51287
51288         Avoid test-fflush2.sh failure on mingw.
51289         * tests/test-fflush2.c: Include binary-io.h.
51290         (main): Put standard input into binary mode.
51291         * modules/fflush-tests (Depends-on): Add binary-io.
51292
51293 2009-01-17  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/wchar.in.h: In another particular situation, include only the
51296         system's <wchar.h> file.
51297         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51298         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51299         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51300
51301 2009-01-17  Bruno Haible  <bruno@clisp.org>
51302
51303         Support for stripping executables in --enable-relocatable.
51304         * build-aux/install-reloc: Expect one more argument, or an environment
51305         variable RELOC_STRIP_PROG. If set, strip the destination program and
51306         its wrapper.
51307         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51308         RELOC_STRIP_PROG.
51309         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51310         to set RELOCATABLE_STRIP.
51311         * NEWS: Mention the new Makefile requirement.
51312
51313 2009-01-17  Bruno Haible  <bruno@clisp.org>
51314
51315         * build-aux/install-reloc: Remove debugging information left over by
51316         C compiler on MacOS X.
51317
51318 2009-01-17  Bruno Haible  <bruno@clisp.org>
51319
51320         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51321         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51322         _NSGetExecutablePath.
51323
51324 2009-01-16  Jim Meyering  <meyering@redhat.com>
51325
51326         strerror: avoid warnings about discarding "const"
51327         * lib/strerror.c (rpl_strerror): Instead of returning a const
51328         string from each and every "case", use a variable, and add a single
51329         cast after the switch.
51330
51331 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51332
51333         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51334
51335 2009-01-16  Bruno Haible  <bruno@clisp.org>
51336
51337         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51338         array initializer syntax that also works in C++ mode.
51339         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51340
51341 2009-01-16  Jim Meyering  <meyering@redhat.com>
51342
51343         poll: suppress a warning
51344         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51345         to ignore "...unsigned expression < 0 is always false" warnings.
51346
51347 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51348
51349         poll: remove declarations of unused variables
51350         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51351         sockbuf and optlen.
51352
51353 2009-01-15  Bruno Haible  <bruno@clisp.org>
51354
51355         Make fflush-after-ungetc POSIX compliant on BSD systems.
51356         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51357         (clear_ungetc_buffer): Implement also for other systems.
51358         (rpl_fflush): On glibc systems, invoke
51359         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51360         clear_ungetc_buffer after fetching the stream's position, not before.
51361
51362 2009-01-15  Bruno Haible  <bruno@clisp.org>
51363
51364         Make fflush-after-ungetc POSIX compliant on glibc systems.
51365         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51366         after ungetc.
51367         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51368         (rpl_fflush): On glibc systems, simply call the system's fflush
51369         function after clearing the ungetc buffer.
51370         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51371         Instead, lseek only to the end of file, then use the system's fseeko
51372         for the rest. On glibc systems, reset the EOF indicator bit.
51373
51374 2009-01-15  Jim Meyering  <meyering@redhat.com>
51375
51376         openmp.m4: revert quote-adding change, for portability to older autoconf
51377         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51378         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51379         Simon Josefsson noticed the problem when using autoconf-2.61.
51380
51381 2009-01-15  Bruno Haible  <bruno@clisp.org>
51382
51383         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51384         * tests/test-fflush2.c (ASSERT): Always fail.
51385         (main): Add two tests for fflush() after ungetc(), taking into account
51386         the Austin Group's clarification.
51387         Suggested by Eric Blake.
51388
51389 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51390
51391         mktime.m4: remove K&R-style function prototypes
51392         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51393         for the Sun C++ compiler.
51394
51395 2009-01-14  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51398         while including <wchar.h>.
51399         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51400         the system's <wchar.h> file.
51401         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51402
51403 2009-01-14  Bruno Haible  <bruno@clisp.org>
51404
51405         * m4/csharp.m4: Don't mention gettext on the serial number line.
51406         * m4/csharpexec.m4: Likewise.
51407         * m4/eaccess.m4: Likewise.
51408         * m4/javaexec.m4: Likewise.
51409         * m4/sig_atomic_t.m4: Likewise.
51410         * m4/tmpdir.m4: Likewise.
51411         * m4/intldir.m4: Bump gettext version.
51412         * m4/lib-ld.m4: Likewise.
51413
51414 2009-01-14  Bruno Haible  <bruno@clisp.org>
51415
51416         * lib/progname.c (set_program_name): Add more comments.
51417         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51418
51419 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51420
51421         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51422         were sys/stat.h does not define it.
51423
51424 2009-01-14  Jim Meyering  <meyering@redhat.com>
51425
51426         many *.m4 files: improve m4 quoting
51427         99% of this change was performed by running the following commands:
51428         git ls-files | grep '\.m4$' | xargs perl -pi \
51429           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51430           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51431           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51432           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51433         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51434         The remainder were to add Copyright dates, increment serial numbers,
51435         undo some changes in comments, exclude m4/intl.m4, and add quotes
51436         around the "1" in ",1" where the unusual spacing prohibited the
51437         above regexps from doing the job.  For more details, see
51438         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51439         * m4/acl.m4: Modified.
51440         * m4/afs.m4: Likewise.
51441         * m4/alloca.m4: Likewise.
51442         * m4/argp.m4: Likewise.
51443         * m4/argz.m4: Likewise.
51444         * m4/atexit.m4: Likewise.
51445         * m4/bison-i18n.m4: Likewise.
51446         * m4/bison.m4: Likewise.
51447         * m4/byteswap.m4: Likewise.
51448         * m4/c-stack.m4: Likewise.
51449         * m4/c-strtod.m4: Likewise.
51450         * m4/calloc.m4: Likewise.
51451         * m4/canonicalize-lgpl.m4: Likewise.
51452         * m4/chown.m4: Likewise.
51453         * m4/clock_time.m4: Likewise.
51454         * m4/codeset.m4: Likewise.
51455         * m4/copy-file.m4: Likewise.
51456         * m4/csharp.m4: Likewise.
51457         * m4/csharpcomp.m4: Likewise.
51458         * m4/csharpexec.m4: Likewise.
51459         * m4/d-ino.m4: Likewise.
51460         * m4/d-type.m4: Likewise.
51461         * m4/dirfd.m4: Likewise.
51462         * m4/double-slash-root.m4: Likewise.
51463         * m4/eaccess.m4: Likewise.
51464         * m4/eealloc.m4: Likewise.
51465         * m4/environ.m4: Likewise.
51466         * m4/errno_h.m4: Likewise.
51467         * m4/euidaccess.m4: Likewise.
51468         * m4/execute.m4: Likewise.
51469         * m4/fatal-signal.m4: Likewise.
51470         * m4/fchdir.m4: Likewise.
51471         * m4/fcntl_h.m4: Likewise.
51472         * m4/fileblocks.m4: Likewise.
51473         * m4/filenamecat.m4: Likewise.
51474         * m4/findprog.m4: Likewise.
51475         * m4/flexmember.m4: Likewise.
51476         * m4/fnmatch.m4: Likewise.
51477         * m4/fopen.m4: Likewise.
51478         * m4/fpending.m4: Likewise.
51479         * m4/fprintf-posix.m4: Likewise.
51480         * m4/free.m4: Likewise.
51481         * m4/frexp.m4: Likewise.
51482         * m4/frexpl.m4: Likewise.
51483         * m4/fsusage.m4: Likewise.
51484         * m4/ftruncate.m4: Likewise.
51485         * m4/gc-camellia.m4: Likewise.
51486         * m4/gc-random.m4: Likewise.
51487         * m4/gc.m4: Likewise.
51488         * m4/getaddrinfo.m4: Likewise.
51489         * m4/getcwd-abort-bug.m4: Likewise.
51490         * m4/getcwd-path-max.m4: Likewise.
51491         * m4/getdate.m4: Likewise.
51492         * m4/getdomainname.m4: Likewise.
51493         * m4/getgroups.m4: Likewise.
51494         * m4/gethostname.m4: Likewise.
51495         * m4/gethrxtime.m4: Likewise.
51496         * m4/getline.m4: Likewise.
51497         * m4/getloadavg.m4: Likewise.
51498         * m4/getndelim2.m4: Likewise.
51499         * m4/getpass.m4: Likewise.
51500         * m4/gettext.m4: Likewise.
51501         * m4/gettime.m4: Likewise.
51502         * m4/gettimeofday.m4: Likewise.
51503         * m4/gnulib-common.m4: Likewise.
51504         * m4/group-member.m4: Likewise.
51505         * m4/host-os.m4: Likewise.
51506         * m4/iconv.m4: Likewise.
51507         * m4/iconv_open.m4: Likewise.
51508         * m4/inet_ntop.m4: Likewise.
51509         * m4/inet_pton.m4: Likewise.
51510         * m4/inline.m4: Likewise.
51511         * m4/intldir.m4: Likewise.
51512         * m4/intlmacosx.m4: Likewise.
51513         * m4/intmax.m4: Likewise.
51514         * m4/intmax_t.m4: Likewise.
51515         * m4/inttypes.m4: Likewise.
51516         * m4/inttypes_h.m4: Likewise.
51517         * m4/inttypes-pri.m4: Likewise.
51518         * m4/isapipe.m4: Likewise.
51519         * m4/isnand.m4: Likewise.
51520         * m4/isnanf.m4: Likewise.
51521         * m4/isnanl.m4: Likewise.
51522         * m4/javacomp.m4: Likewise.
51523         * m4/javaexec.m4: Likewise.
51524         * m4/jm-winsz1.m4: Likewise.
51525         * m4/jm-winsz2.m4: Likewise.
51526         * m4/lchown.m4: Likewise.
51527         * m4/lcmessage.m4: Likewise.
51528         * m4/ldexpl.m4: Likewise.
51529         * m4/lib-ld.m4: Likewise.
51530         * m4/lib-link.m4: Likewise.
51531         * m4/libsigsegv.m4: Likewise.
51532         * m4/link-follow.m4: Likewise.
51533         * m4/localcharset.m4: Likewise.
51534         * m4/locale-fr.m4: Likewise.
51535         * m4/locale-ja.m4: Likewise.
51536         * m4/locale-tr.m4: Likewise.
51537         * m4/locale-zh.m4: Likewise.
51538         * m4/lock.m4: Likewise.
51539         * m4/longlong.m4: Likewise.
51540         * m4/ls-mntd-fs.m4: Likewise.
51541         * m4/lstat.m4: Likewise.
51542         * m4/malloc.m4: Likewise.
51543         * m4/mathl.m4: Likewise.
51544         * m4/mbrtowc.m4: Likewise.
51545         * m4/mbstate_t.m4: Likewise.
51546         * m4/mbswidth.m4: Likewise.
51547         * m4/memchr.m4: Likewise.
51548         * m4/memcmp.m4: Likewise.
51549         * m4/memcpy.m4: Likewise.
51550         * m4/memmem.m4: Likewise.
51551         * m4/memmove.m4: Likewise.
51552         * m4/mempcpy.m4: Likewise.
51553         * m4/memrchr.m4: Likewise.
51554         * m4/memset.m4: Likewise.
51555         * m4/minmax.m4: Likewise.
51556         * m4/mkdir-slash.m4: Likewise.
51557         * m4/mkdtemp.m4: Likewise.
51558         * m4/mktime.m4: Likewise.
51559         * m4/mmap-anon.m4: Likewise.
51560         * m4/mountlist.m4: Likewise.
51561         * m4/nanosleep.m4: Likewise.
51562         * m4/nls.m4: Likewise.
51563         * m4/nocrash.m4: Likewise.
51564         * m4/open.m4: Likewise.
51565         * m4/openat.m4: Likewise.
51566         * m4/openmp.m4: Likewise.
51567         * m4/pathmax.m4: Likewise.
51568         * m4/perl.m4: Likewise.
51569         * m4/physmem.m4: Likewise.
51570         * m4/pipe.m4: Likewise.
51571         * m4/po.m4: Likewise.
51572         * m4/poll.m4: Likewise.
51573         * m4/posixtm.m4: Likewise.
51574         * m4/posixver.m4: Likewise.
51575         * m4/printf-frexp.m4: Likewise.
51576         * m4/printf-frexpl.m4: Likewise.
51577         * m4/printf-posix.m4: Likewise.
51578         * m4/printf-posix-rpl.m4: Likewise.
51579         * m4/printf.m4: Likewise.
51580         * m4/progtest.m4: Likewise.
51581         * m4/putenv.m4: Likewise.
51582         * m4/readline.m4: Likewise.
51583         * m4/readlink.m4: Likewise.
51584         * m4/readutmp.m4: Likewise.
51585         * m4/realloc.m4: Likewise.
51586         * m4/regex.m4: Likewise.
51587         * m4/relocatable.m4: Likewise.
51588         * m4/relocatable-lib.m4: Likewise.
51589         * m4/rename-dest-slash.m4: Likewise.
51590         * m4/rename.m4: Likewise.
51591         * m4/rmdir-errno.m4: Likewise.
51592         * m4/rmdir.m4: Likewise.
51593         * m4/roundf.m4: Likewise.
51594         * m4/roundl.m4: Likewise.
51595         * m4/rpmatch.m4: Likewise.
51596         * m4/save-cwd.m4: Likewise.
51597         * m4/selinux-selinux-h.m4: Likewise.
51598         * m4/setenv.m4: Likewise.
51599         * m4/settime.m4: Likewise.
51600         * m4/sig2str.m4: Likewise.
51601         * m4/sig_atomic_t.m4: Likewise.
51602         * m4/signalblocking.m4: Likewise.
51603         * m4/signbit.m4: Likewise.
51604         * m4/sigpipe.m4: Likewise.
51605         * m4/sockets.m4: Likewise.
51606         * m4/sockpfaf.m4: Likewise.
51607         * m4/st_dm_mode.m4: Likewise.
51608         * m4/stat-time.m4: Likewise.
51609         * m4/stdbool.m4: Likewise.
51610         * m4/stdint.m4: Likewise.
51611         * m4/stdint_h.m4: Likewise.
51612         * m4/stpcpy.m4: Likewise.
51613         * m4/stpncpy.m4: Likewise.
51614         * m4/strcase.m4: Likewise.
51615         * m4/strchrnul.m4: Likewise.
51616         * m4/strcspn.m4: Likewise.
51617         * m4/strdup.m4: Likewise.
51618         * m4/strftime.m4: Likewise.
51619         * m4/strndup.m4: Likewise.
51620         * m4/strnlen.m4: Likewise.
51621         * m4/strpbrk.m4: Likewise.
51622         * m4/strptime.m4: Likewise.
51623         * m4/strsep.m4: Likewise.
51624         * m4/strtod.m4: Likewise.
51625         * m4/strtoimax.m4: Likewise.
51626         * m4/strtok_r.m4: Likewise.
51627         * m4/strtol.m4: Likewise.
51628         * m4/strtoll.m4: Likewise.
51629         * m4/strtoul.m4: Likewise.
51630         * m4/strtoull.m4: Likewise.
51631         * m4/strtoumax.m4: Likewise.
51632         * m4/strverscmp.m4: Likewise.
51633         * m4/threadlib.m4: Likewise.
51634         * m4/timegm.m4: Likewise.
51635         * m4/tm_gmtoff.m4: Likewise.
51636         * m4/tmpdir.m4: Likewise.
51637         * m4/tmpfile.m4: Likewise.
51638         * m4/tzset.m4: Likewise.
51639         * m4/uintmax_t.m4: Likewise.
51640         * m4/unlinkdir.m4: Likewise.
51641         * m4/unlocked-io.m4: Likewise.
51642         * m4/uptime.m4: Likewise.
51643         * m4/userspec.m4: Likewise.
51644         * m4/utimbuf.m4: Likewise.
51645         * m4/utime.m4: Likewise.
51646         * m4/utimes-null.m4: Likewise.
51647         * m4/utimes.m4: Likewise.
51648         * m4/vararrays.m4: Likewise.
51649         * m4/vasnprintf.m4: Likewise.
51650         * m4/vfprintf-posix.m4: Likewise.
51651         * m4/vprintf-posix.m4: Likewise.
51652         * m4/wait-process.m4: Likewise.
51653         * m4/wchar_t.m4: Likewise.
51654         * m4/wint_t.m4: Likewise.
51655         * m4/write-any-file.m4: Likewise.
51656         * m4/yield.m4: Likewise.
51657
51658 2009-01-13  Bruno Haible  <bruno@clisp.org>
51659
51660         Avoid test-copy-file.sh failures when ACL support insufficient.
51661         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51662         TESTS_ENVIRONMENT.
51663         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51664         Reported by Jim Meyering.
51665
51666 2009-01-13  Bruno Haible  <bruno@clisp.org>
51667
51668         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51669         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51670         * modules/unistdio/u8-printf-parse (Files): Likewise.
51671         * modules/unistdio/u32-printf-parse (Files): Likewise.
51672         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51673
51674 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51675
51676         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51677         and m4/inttypes_h.m4 too.
51678
51679 2009-01-12  Eric Blake  <ebb9@byu.net>
51680
51681         tests: IRIX 6.2 cc can't compile -0.0 into .data
51682         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51683         rather than at compile-time.
51684         * tests/test-floorl.c (minus_zero): Likewise.
51685         * tests/test-frexpl.c (minus_zero): Likewise.
51686         * tests/test-isnan.c (minus_zerol): Likewise.
51687         * tests/test-isnanl.h (minus_zero): Likewise.
51688         * tests/test-ldexpl.c (minus_zero): Likewise.
51689         * tests/test-roundl.c (minus_zero): Likewise.
51690         * tests/test-signbit.c (minus_zerol): Likewise.
51691         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51692         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51693         * tests/test-truncl.c (minus_zero): Likewise.
51694         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51695         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51696         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51697
51698 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51699
51700         regex: fix glibc bug 9697
51701         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51702         handling.
51703
51704 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51705
51706         regex: fix glibc bug 697
51707         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51708         being NULL also if there are no backreferences.
51709
51710 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51711
51712         regex: merge glibc changes
51713         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51714         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51715         re_string_skip_chars, re_string_reconstruct): Likewise.
51716         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51717
51718 2009-01-07  Jim Meyering  <meyering@redhat.com>
51719
51720         poll: filter through cppi
51721         * lib/poll.c: Indent cpp directives to reflect nesting.
51722
51723 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51724
51725         poll: don't return uninitialized
51726         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51727
51728 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51729
51730         avoid compile failure on AIX 6.1
51731         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51732         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51733
51734 2009-01-04  Jim Meyering  <meyering@redhat.com>
51735
51736         remove duplicate inclusion of <stdio.h>
51737         * tests/test-fprintf-posix.c: Likewise.
51738         * tests/test-printf-posix.c: Likewise.
51739         * tests/test-snprintf-posix.c: Likewise.
51740         * tests/test-sprintf-posix.c: Likewise.
51741         * tests/test-vasprintf-posix.c: Likewise.
51742         * tests/test-vfprintf-posix.c: Likewise.
51743         * tests/test-vprintf-posix.c: Likewise.
51744         * tests/test-vsnprintf-posix.c: Likewise.
51745         * tests/test-vsprintf-posix.c: Likewise.
51746
51747 2009-01-03  Jim Meyering  <meyering@redhat.com>
51748
51749         gnulib-tool: fix sed-based filtering
51750         * gnulib-tool (func_filter_filelist): Remove extra backslash
51751         in sed_fff_filter definition.
51752
51753 2009-01-02  Jim Meyering  <meyering@redhat.com>
51754
51755         strftime: avoid compilation failure on Solaris 2.6
51756         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51757         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51758         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51759         be available.  Reported by Tom G. Christensen.  Details in
51760         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51761
51762 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51763             Bruno Haible  <bruno@clisp.org>
51764
51765         Speed up gnulib-tool by doing more string processing through shell
51766         built-ins.
51767         * gnulib-tool (fast_func_append): New variable.
51768         (func_remove_prefix, func_remove_suffix): New functions.
51769         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51770         (func_filter_filelist): New function.
51771         (func_get_dependencies): Use func_remove_suffix instead of sed.
51772         (func_get_automake_snippet): Use func_filter_filelist instead of a
51773         subshell and sed invocation.
51774
51775 2009-01-01  Bruno Haible  <bruno@clisp.org>
51776
51777         Fix a security bug.
51778         * gnulib-tool (func_import, import, update): Don't allow the characters
51779         '"', '$', '`', '\' in macro arguments that become part of commands that
51780         are evaluated.
51781
51782 2009-01-01  Bruno Haible  <bruno@clisp.org>
51783
51784         * gnulib-tool (func_reset_sigpipe): Add more comments.
51785
51786 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51787
51788         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51789         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51790         already know the answer.
51791
51792 2009-01-01  Jim Meyering  <meyering@redhat.com>
51793
51794         * lib/version-etc.c (version_etc_va): Update copyright year.
51795
51796 2008-12-30  Bruno Haible  <bruno@clisp.org>
51797
51798         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51799         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51800         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51801
51802 2008-12-29  Eric Blake  <ebb9@byu.net>
51803
51804         multiarch: avoid autoconf AC_REQUIRE bug
51805         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51806         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51807         2.63 and older.
51808         Reported by Bruno Haible, and analyzed in
51809         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51810
51811 2008-12-29  Bruno Haible  <bruno@clisp.org>
51812
51813         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51814         files in subdirectories correctly.
51815         Reported by Ralf Wildenhues.
51816
51817 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51818
51819         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51820         rather than 'join FILE -', for Solaris join.
51821
51822 2008-12-29  Bruno Haible  <bruno@clisp.org>
51823
51824         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51825         quoting.
51826         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51827         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51828         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51829         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51830         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51831         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51832         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51833         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51834         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51835         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51836         * m4/nls.m4 (AM_NLS): Likewise.
51837         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51838         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51839         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51840         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51841         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51842         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51843         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51844         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51845         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51846         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51847         * m4/xsize.m4 (gl_XSIZE): Likewise.
51848         Suggested by Jim Meyering.
51849
51850 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51851
51852         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51853         * lib/parse-duration.c: use a switch instead of cascading if's.
51854
51855 2008-12-29  Eric Blake  <ebb9@byu.net>
51856
51857         wchar.h: supply WEOF on Irix 5.3
51858         * lib/wchar.in.h (wint_t): Also supply WEOF.
51859         * lib/wctype.in.h (wint_t): Likewise.
51860         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51861         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51862         Reported by Tom G. Christensen.
51863
51864 2008-12-26  Bruno Haible  <bruno@clisp.org>
51865
51866         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51867         i486, i586, i686.
51868
51869 2008-12-26  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51872
51873 2008-12-26  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51876         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51877         not __STDC_CONSTANT_MACROS.
51878         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51879
51880 2008-12-25  Bruno Haible  <bruno@clisp.org>
51881
51882         Add support for universal builds to vasnprintf.
51883         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51884         universal builds, guess no.
51885         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51886         * modules/vasprintf-posix (Depends-on): Likewise.
51887         * modules/fprintf-posix (Depends-on): Likewise.
51888         * modules/vfprintf-posix (Depends-on): Likewise.
51889         * modules/snprintf-posix (Depends-on): Likewise.
51890         * modules/vsnprintf-posix (Depends-on): Likewise.
51891         * modules/sprintf-posix (Depends-on): Likewise.
51892         * modules/vsprintf-posix (Depends-on): Likewise.
51893         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51894         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51895         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51896         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51897         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51898         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51899         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51900
51901         Add support for universal builds to <inttypes.h>.
51902         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51903         _SCNu64_PREFIX): In Apple
51904         universal builds, define directly, using _LP64.
51905         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51906         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51907         * modules/inttypes (Depends-on): Add multiarch.
51908         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51909
51910         Add support for universal builds to <stdint.h>.
51911         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51912         universal builds, define directly, using _LP64.
51913         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51914         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51915         and size_t.
51916         * modules/stdint (Depends-on): Add multiarch.
51917         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51918
51919         New module 'multiarch'.
51920         * modules/multiarch: New file.
51921         * m4/multiarch.m4: New file.
51922
51923 2008-12-25  Bruno Haible  <bruno@clisp.org>
51924
51925         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51926
51927 2008-12-25  Bruno Haible  <bruno@clisp.org>
51928
51929         * modules/btowc (License): Relicense under LGPLv2+.
51930         * modules/mbsinit (License): Likewise.
51931         * modules/mbrtowc (License): Likewise.
51932         * modules/wcrtomb (License): Likewise.
51933         * modules/streq (License): Likewise.
51934         Reported by David Lutterkort <lutter@redhat.com>.
51935
51936 2008-12-23  Bruno Haible  <bruno@clisp.org>
51937
51938         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51939
51940 2008-12-23  Bruno Haible  <bruno@clisp.org>
51941
51942         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51944         GETADDRINFO_LIB, not in LIBS.
51945         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51946         * modules/canon-host (Link): Likewise.
51947         * NEWS: Mention the change.
51948         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51949         GETADDRINFO_LIB.
51950
51951 2008-12-22  Bruno Haible  <bruno@clisp.org>
51952
51953         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51954         * doc/posix-functions/iswalpha_l.texi: Likewise.
51955         * doc/posix-functions/iswblank_l.texi: Likewise.
51956         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51957         * doc/posix-functions/iswctype_l.texi: Likewise.
51958         * doc/posix-functions/iswdigit_l.texi: Likewise.
51959         * doc/posix-functions/iswgraph_l.texi: Likewise.
51960         * doc/posix-functions/iswlower_l.texi: Likewise.
51961         * doc/posix-functions/iswprint_l.texi: Likewise.
51962         * doc/posix-functions/iswpunct_l.texi: Likewise.
51963         * doc/posix-functions/iswspace_l.texi: Likewise.
51964         * doc/posix-functions/iswupper_l.texi: Likewise.
51965         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51966         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51967         * doc/posix-functions/open_wmemstream.texi: Likewise.
51968         * doc/posix-functions/swscanf.texi: Likewise.
51969         * doc/posix-functions/towctrans_l.texi: Likewise.
51970         * doc/posix-functions/towlower.texi: Likewise.
51971         * doc/posix-functions/towlower_l.texi: Likewise.
51972         * doc/posix-functions/towupper.texi: Likewise.
51973         * doc/posix-functions/towupper_l.texi: Likewise.
51974         * doc/posix-functions/vfwprintf.texi: Likewise.
51975         * doc/posix-functions/vfwscanf.texi: Likewise.
51976         * doc/posix-functions/vswscanf.texi: Likewise.
51977         * doc/posix-functions/vwprintf.texi: Likewise.
51978         * doc/posix-functions/vwscanf.texi: Likewise.
51979         * doc/posix-functions/wcpcpy.texi: Likewise.
51980         * doc/posix-functions/wcpncpy.texi: Likewise.
51981         * doc/posix-functions/wcscasecmp.texi: Likewise.
51982         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51983         * doc/posix-functions/wcscoll_l.texi: Likewise.
51984         * doc/posix-functions/wcsdup.texi: Likewise.
51985         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51986         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51987         * doc/posix-functions/wcsnlen.texi: Likewise.
51988         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51989         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51990         * doc/posix-functions/wctrans_l.texi: Likewise.
51991         * doc/posix-functions/wctype_l.texi: Likewise.
51992         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51993         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51994         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51995         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51996         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51997         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51998         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51999         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52000         * doc/glibc-functions/wcschrnul.texi: Likewise.
52001         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52002         * doc/glibc-functions/wcstod_l.texi: Likewise.
52003         * doc/glibc-functions/wcstof_l.texi: Likewise.
52004         * doc/glibc-functions/wcstol_l.texi: Likewise.
52005         * doc/glibc-functions/wcstold_l.texi: Likewise.
52006         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52007         * doc/glibc-functions/wcstoq.texi: Likewise.
52008         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52009         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52010         * doc/glibc-functions/wcstouq.texi: Likewise.
52011         * doc/glibc-functions/wmempcpy.texi: Likewise.
52012
52013 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52014             Eric Blake  <ebb9@byu.net>
52015             Paolo Bonzini  <bonzini@gnu.org>
52016             Bruno Haible  <bruno@clisp.org>
52017
52018         Make c-stack work on Haiku.
52019         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52020         (c_stack_action): Use SA_ONSTACK flag.
52021
52022 2008-12-22  Bruno Haible  <bruno@clisp.org>
52023
52024         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52025
52026 2008-12-22  Bruno Haible  <bruno@clisp.org>
52027
52028         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52029         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52030         being overridden.
52031         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52032         New macros.
52033         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52035         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52036         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52037
52038 2008-12-22  Bruno Haible  <bruno@clisp.org>
52039
52040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52041         from test code.
52042
52043 2008-12-22  Eric Blake  <ebb9@byu.net>
52044
52045         Avoid gcc warnings on cygwin.
52046         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52047         Avoid unused variable.
52048         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52049         Likewise.
52050
52051 2008-12-22  Bruno Haible  <bruno@clisp.org>
52052
52053         Remove HAVE_MBRTOWC conditionals.
52054         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52055         (mbscasecmp): Assume mbrtowc function.
52056         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52057         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52058         * lib/mbschr.c: Include mbuiter.h unconditionally.
52059         (mbschr): Assume mbrtowc function.
52060         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52061         (mbscspn): Assume mbrtowc function.
52062         * lib/mbslen.c: Include mbuiter.h unconditionally.
52063         (mbslen): Assume mbrtowc function.
52064         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52065         (mbsncasecmp): Assume mbrtowc function.
52066         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52067         (mbsnlen): Assume mbrtowc function.
52068         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52069         (mbspbrk): Assume mbrtowc function.
52070         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52071         (mbspcasecmp): Assume mbrtowc function.
52072         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52073         (mbsrchr): Assume mbrtowc function.
52074         * lib/mbssep.c: Include mbuiter.h unconditionally.
52075         (mbssep): Assume mbrtowc function.
52076         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52077         (mbsspn): Assume mbrtowc function.
52078         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52079         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52080         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52081         (mbstok_r): Assume mbrtowc function.
52082         * lib/propername.c: Include mbuiter.h unconditionally.
52083         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52084         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52085         (trim2): Assume mbrtowc function.
52086         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52087         (mbsnwidth): Assume mbrtowc function.
52088         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52089         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52090         fallback definitions.
52091         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52092
52093 2008-12-22  Bruno Haible  <bruno@clisp.org>
52094
52095         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52096
52097 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52098
52099         * modules/regex: Request emulations for the mb*/wc* functions we need.
52100         * m4/regex.m4: Don't look for those functions here.
52101         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52102
52103 2008-12-22  Bruno Haible  <bruno@clisp.org>
52104
52105         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52106
52107 2008-12-21  Bruno Haible  <bruno@clisp.org>
52108
52109         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52110         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52111         (Include): Remove conditionalization.
52112         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52113         (Include): Remove conditionalization.
52114         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52115         (Include): Remove conditionalization.
52116         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52117         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52118         * NEWS: Mention the change.
52119         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52120         via Sergey Poznyakoff <gray@gnu.org.ua>.
52121
52122 2008-12-21  Bruno Haible  <bruno@clisp.org>
52123
52124         * MODULES.html.sh (Extended multibyte and wide character utilities
52125         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52126         wcrtomb, wcsrtombs.
52127         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52128         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52129         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52130         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52131
52132 2008-12-21  Bruno Haible  <bruno@clisp.org>
52133
52134         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52135
52136 2008-12-21  Bruno Haible  <bruno@clisp.org>
52137
52138         * modules/wcsnrtombs-tests: New file.
52139         * tests/test-wcsnrtombs1.sh: New file.
52140         * tests/test-wcsnrtombs2.sh: New file.
52141         * tests/test-wcsnrtombs3.sh: New file.
52142         * tests/test-wcsnrtombs4.sh: New file.
52143         * tests/test-wcsnrtombs.c: New file.
52144
52145         New module 'wcsnrtombs'.
52146         * lib/wchar.in.h (wcsnrtombs): New declaration.
52147         * lib/wcsnrtombs.c: New file.
52148         * lib/wcsrtombs-state.c: New file.
52149         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52150         (internal_state): Remove variable.
52151         * m4/wcsnrtombs.m4: New file.
52152         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52153         compilation units.
52154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52155         HAVE_WCSNRTOMBS.
52156         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52157         HAVE_WCSNRTOMBS.
52158         * modules/wcsnrtombs: New file.
52159         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52160         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52161
52162 2008-12-21  Bruno Haible  <bruno@clisp.org>
52163
52164         * modules/wcsrtombs-tests: New file.
52165         * tests/test-wcsrtombs1.sh: New file.
52166         * tests/test-wcsrtombs2.sh: New file.
52167         * tests/test-wcsrtombs3.sh: New file.
52168         * tests/test-wcsrtombs4.sh: New file.
52169         * tests/test-wcsrtombs.c: New file.
52170
52171         New module 'wcsrtombs'.
52172         * lib/wchar.in.h (wcsrtombs): New declaration.
52173         * lib/wcsrtombs.c: New file.
52174         * m4/wcsrtombs.m4: New file.
52175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52176         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52178         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52179         * modules/wcsrtombs: New file.
52180         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52181         bugs.
52182
52183 2008-12-21  Bruno Haible  <bruno@clisp.org>
52184
52185         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52186         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52187         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52188         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52189         if not correct.
52190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52191         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52192         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52193         m4/locale-zh.m4, m4/codeset.m4.
52194         * doc/posix-functions/wcrtomb.texi: Document the bug.
52195
52196 2008-12-21  Bruno Haible  <bruno@clisp.org>
52197
52198         Work around a btowc() bug on IRIX 6.5.
52199         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52200         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52201         REPLACE_WTOBC if not.
52202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52203         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52204         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52205
52206 2008-12-21  Bruno Haible  <bruno@clisp.org>
52207
52208         * modules/wcrtomb-tests: New file.
52209         * tests/test-wcrtomb.sh: New file.
52210         * tests/test-wcrtomb.c: New file.
52211
52212         New module 'wcrtomb'.
52213         * lib/wchar.in.h (wcrtomb): New declaration.
52214         * lib/wcrtomb.c: New file.
52215         * m4/wcrtomb.m4: New file.
52216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52217         HAVE_WCRTOMB.
52218         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52219         HAVE_WCRTOMB.
52220         * modules/wcrtomb: New file.
52221         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52222
52223 2008-12-21  Bruno Haible  <bruno@clisp.org>
52224
52225         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52226         * modules/mbsrtowcs (Files): Likewise.
52227         * modules/wctob (Files): Likewise.
52228         * modules/c-strcase-tests (Files): Likewise.
52229         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52230         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52231         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52232         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52233         * modules/vasnprintf-posix-tests (Files): Likewise.
52234
52235 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52236
52237         gitlog-to-changelog: pass all command-line arguments to git-log
52238         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52239         it is sometimes convenient to filter the commits in various ways.
52240         gitlog-to-changelog only allows --since to specify a start date,
52241         but git-log itself supports many other filtering mechanisms.
52242         At the moment, I want to filter by branch name.  Rather than
52243         adding a --branch option to gitlog-to-changelog, it seems more
52244         flexible to simply pass all options directly to git-log and let
52245         git do the work.  Notice that this effectively makes --since a
52246         redundant option for gitlog-to-changelog, but removing it would
52247         require current usage to change since calls would then require
52248         an additional '--'.
52249
52250 2008-12-21  Bruno Haible  <bruno@clisp.org>
52251
52252         * modules/mbsnrtowcs-tests: New file.
52253         * tests/test-mbsnrtowcs1.sh: New file.
52254         * tests/test-mbsnrtowcs2.sh: New file.
52255         * tests/test-mbsnrtowcs3.sh: New file.
52256         * tests/test-mbsnrtowcs4.sh: New file.
52257         * tests/test-mbsnrtowcs.c: New file.
52258
52259         New module 'mbsnrtowcs'.
52260         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52261         * lib/mbsnrtowcs.c: New file.
52262         * lib/mbsrtowcs-state.c: New file.
52263         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52264         (internal_state): Remove variable.
52265         * m4/mbsnrtowcs.m4: New file.
52266         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52267         compilation units.
52268         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52269         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52270         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52271         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52272         * modules/mbsnrtowcs: New file.
52273         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52274         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52275         portability problem.
52276
52277 2008-12-21  Bruno Haible  <bruno@clisp.org>
52278
52279         Work around mbsrtowcs bug.
52280         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52281         (gl_FUNC_MBSRTOWCS): Invoke it.
52282         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52283         m4/locale-zh.m4.
52284         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52285
52286 2008-12-21  Bruno Haible  <bruno@clisp.org>
52287
52288         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52289
52290 2008-12-21  Bruno Haible  <bruno@clisp.org>
52291
52292         Update doc for AIX.
52293         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52294         16-bit wchar_t type.
52295         * doc/posix-functions/btowc.texi: Likewise.
52296         * doc/posix-functions/fgetwc.texi: Likewise.
52297         * doc/posix-functions/fgetws.texi: Likewise.
52298         * doc/posix-functions/fputwc.texi: Likewise.
52299         * doc/posix-functions/fputws.texi: Likewise.
52300         * doc/posix-functions/fwide.texi: Likewise.
52301         * doc/posix-functions/fwprintf.texi: Likewise.
52302         * doc/posix-functions/fwscanf.texi: Likewise.
52303         * doc/posix-functions/getwchar.texi: Likewise.
52304         * doc/posix-functions/getwc.texi: Likewise.
52305         * doc/posix-functions/iswalnum.texi: Likewise.
52306         * doc/posix-functions/iswalpha.texi: Likewise.
52307         * doc/posix-functions/iswblank.texi: Likewise.
52308         * doc/posix-functions/iswcntrl.texi: Likewise.
52309         * doc/posix-functions/iswctype.texi: Likewise.
52310         * doc/posix-functions/iswdigit.texi: Likewise.
52311         * doc/posix-functions/iswgraph.texi: Likewise.
52312         * doc/posix-functions/iswlower.texi: Likewise.
52313         * doc/posix-functions/iswprint.texi: Likewise.
52314         * doc/posix-functions/iswpunct.texi: Likewise.
52315         * doc/posix-functions/iswspace.texi: Likewise.
52316         * doc/posix-functions/iswupper.texi: Likewise.
52317         * doc/posix-functions/iswxdigit.texi: Likewise.
52318         * doc/posix-functions/mbrtowc.texi: Likewise.
52319         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52320         * doc/posix-functions/mbstowcs.texi: Likewise.
52321         * doc/posix-functions/mbtowc.texi: Likewise.
52322         * doc/posix-functions/putwchar.texi: Likewise.
52323         * doc/posix-functions/putwc.texi: Likewise.
52324         * doc/posix-functions/swprintf.texi: Likewise.
52325         * doc/posix-functions/tolower.texi: Likewise.
52326         * doc/posix-functions/toupper.texi: Likewise.
52327         * doc/posix-functions/towctrans.texi: Likewise.
52328         * doc/posix-functions/ungetwc.texi: Likewise.
52329         * doc/posix-functions/vswprintf.texi: Likewise.
52330         * doc/posix-functions/wcrtomb.texi: Likewise.
52331         * doc/posix-functions/wcscat.texi: Likewise.
52332         * doc/posix-functions/wcschr.texi: Likewise.
52333         * doc/posix-functions/wcscmp.texi: Likewise.
52334         * doc/posix-functions/wcscoll.texi: Likewise.
52335         * doc/posix-functions/wcscpy.texi: Likewise.
52336         * doc/posix-functions/wcscspn.texi: Likewise.
52337         * doc/posix-functions/wcsftime.texi: Likewise.
52338         * doc/posix-functions/wcslen.texi: Likewise.
52339         * doc/posix-functions/wcsncat.texi: Likewise.
52340         * doc/posix-functions/wcsncmp.texi: Likewise.
52341         * doc/posix-functions/wcsncpy.texi: Likewise.
52342         * doc/posix-functions/wcspbrk.texi: Likewise.
52343         * doc/posix-functions/wcsrchr.texi: Likewise.
52344         * doc/posix-functions/wcsrtombs.texi: Likewise.
52345         * doc/posix-functions/wcsspn.texi: Likewise.
52346         * doc/posix-functions/wcsstr.texi: Likewise.
52347         * doc/posix-functions/wcstod.texi: Likewise.
52348         * doc/posix-functions/wcstof.texi: Likewise.
52349         * doc/posix-functions/wcstoimax.texi: Likewise.
52350         * doc/posix-functions/wcstok.texi: Likewise.
52351         * doc/posix-functions/wcstold.texi: Likewise.
52352         * doc/posix-functions/wcstoll.texi: Likewise.
52353         * doc/posix-functions/wcstol.texi: Likewise.
52354         * doc/posix-functions/wcstombs.texi: Likewise.
52355         * doc/posix-functions/wcstoull.texi: Likewise.
52356         * doc/posix-functions/wcstoul.texi: Likewise.
52357         * doc/posix-functions/wcstoumax.texi: Likewise.
52358         * doc/posix-functions/wcswidth.texi: Likewise.
52359         * doc/posix-functions/wcsxfrm.texi: Likewise.
52360         * doc/posix-functions/wctob.texi: Likewise.
52361         * doc/posix-functions/wctomb.texi: Likewise.
52362         * doc/posix-functions/wctrans.texi: Likewise.
52363         * doc/posix-functions/wctype.texi: Likewise.
52364         * doc/posix-functions/wcwidth.texi: Likewise.
52365         * doc/posix-functions/wmemchr.texi: Likewise.
52366         * doc/posix-functions/wmemcmp.texi: Likewise.
52367         * doc/posix-functions/wmemcpy.texi: Likewise.
52368         * doc/posix-functions/wmemmove.texi: Likewise.
52369         * doc/posix-functions/wmemset.texi: Likewise.
52370         * doc/posix-functions/wprintf.texi: Likewise.
52371         * doc/posix-functions/wscanf.texi: Likewise.
52372
52373 2008-12-21  Bruno Haible  <bruno@clisp.org>
52374
52375         Update doc for HP-UX 11.11.
52376         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52377         in HP-UX version 11.00, not in all versions of HP-UX 11.
52378         * doc/posix-functions/fwide.texi: Likewise.
52379         * doc/posix-functions/fwprintf.texi: Likewise.
52380         * doc/posix-functions/fwscanf.texi: Likewise.
52381         * doc/posix-functions/inet_ntop.texi: Likewise.
52382         * doc/posix-functions/inet_pton.texi: Likewise.
52383         * doc/posix-functions/mbrlen.texi: Likewise.
52384         * doc/posix-functions/mbrtowc.texi: Likewise.
52385         * doc/posix-functions/mbsinit.texi: Likewise.
52386         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52387         * doc/posix-functions/swprintf.texi: Likewise.
52388         * doc/posix-functions/swscanf.texi: Likewise.
52389         * doc/posix-functions/towctrans.texi: Likewise.
52390         * doc/posix-functions/vfwprintf.texi: Likewise.
52391         * doc/posix-functions/vswprintf.texi: Likewise.
52392         * doc/posix-functions/vwprintf.texi: Likewise.
52393         * doc/posix-functions/wcrtomb.texi: Likewise.
52394         * doc/posix-functions/wcsrtombs.texi: Likewise.
52395         * doc/posix-functions/wcsstr.texi: Likewise.
52396         * doc/posix-functions/wctob.texi: Likewise.
52397         * doc/posix-functions/wctrans.texi: Likewise.
52398         * doc/posix-functions/wmemchr.texi: Likewise.
52399         * doc/posix-functions/wmemcmp.texi: Likewise.
52400         * doc/posix-functions/wmemcpy.texi: Likewise.
52401         * doc/posix-functions/wmemmove.texi: Likewise.
52402         * doc/posix-functions/wmemset.texi: Likewise.
52403         * doc/posix-functions/wprintf.texi: Likewise.
52404         * doc/posix-functions/wscanf.texi: Likewise.
52405
52406 2008-12-21  Bruno Haible  <bruno@clisp.org>
52407
52408         Work around a portability problem.
52409         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52410         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52411
52412 2008-12-20  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52415         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52416         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52418         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52419
52420         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52421         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52422         set.
52423         (GNULIB_defined_mbstate_t): New macro.
52424         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52425         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52426         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52427         reuses the system's mbrtowc function but works around the bugs.
52428         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52429         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52430         macros.
52431         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52432         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52433         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52434         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52435         REPLACE_MBSINIT if mbsinit needs to be overridden.
52436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52437         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52438         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52439         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52440         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52441         m4/locale-zh.m4.
52442         (Depends): Add mbsinit.
52443         * modules/mbsinit (Depends): Add mbrtowc.
52444         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52445
52446 2008-12-20  Bruno Haible  <bruno@clisp.org>
52447
52448         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52449         so that there are no conversion errors on AIX.
52450         * tests/test-mbsrtowcs.c (main): LIkewise.
52451
52452 2008-12-20  Bruno Haible  <bruno@clisp.org>
52453
52454         Work around wctob bug on Solaris <= 9.
52455         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52456         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52458         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52459         * modules/wctob (Files): Add m4/locale-fr.m4.
52460         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52461
52462 2008-12-20  Bruno Haible  <bruno@clisp.org>
52463
52464         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52465         /dev/null.
52466         * tests/test-select-in.sh: Likewise.
52467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52468
52469 2008-12-20  Bruno Haible  <bruno@clisp.org>
52470
52471         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52472         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52473         Cygwin 1.5.x.
52474
52475 2008-12-20  Bruno Haible  <bruno@clisp.org>
52476
52477         Ensure mbstate_t is defined on HP-UX 11.11.
52478         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52479         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52480         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52481         AC_USE_SYSTEM_EXTENSIONS.
52482         * modules/fnmatch (Depends-on): Add extensions.
52483         * modules/mbrlen (Depends-on): Likewise.
52484         * modules/mbrtowc (Depends-on): Likewise.
52485         * modules/mbsinit (Depends-on): Likewise.
52486         * modules/mbsrtowcs (Depends-on): Likewise.
52487         * modules/mbswidth (Depends-on): Likewise.
52488         * modules/quotearg (Depends-on): Likewise.
52489         * modules/strftime (Depends-on): Likewise.
52490
52491 2008-12-20  Bruno Haible  <bruno@clisp.org>
52492
52493         Ensure wctob is declared on IRIX 6.5.
52494         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52495         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52496         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52498         of HAVE_WCTOB.
52499         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52500         HAVE_WCTOB.
52501         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52502
52503 2008-12-19  Bruno Haible  <bruno@clisp.org>
52504
52505         * modules/mbsrtowcs-tests: New file.
52506         * tests/test-mbsrtowcs1.sh: New file.
52507         * tests/test-mbsrtowcs2.sh: New file.
52508         * tests/test-mbsrtowcs3.sh: New file.
52509         * tests/test-mbsrtowcs4.sh: New file.
52510         * tests/test-mbsrtowcs.c: New file.
52511
52512         New module 'mbsrtowcs'.
52513         * lib/wchar.in.h (mbsrtowcs): New declaration.
52514         * lib/mbsrtowcs.c: New file.
52515         * m4/mbsrtowcs.m4: New file.
52516         * modules/mbsrtowcs: New file.
52517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52518         HAVE_MBSRTOWCS.
52519         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52520         HAVE_MBSRTOWCS.
52521         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52522
52523 2008-12-19  Bruno Haible  <bruno@clisp.org>
52524
52525         New module 'mbrlen'.
52526         * lib/wchar.in.h (mbrlen): New declaration.
52527         * lib/mbrlen.c: New file.
52528         * m4/mbrlen.m4: New file.
52529         * modules/mbrlen: New file.
52530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52531         HAVE_MBRLEN.
52532         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52533         HAVE_MBRLEN.
52534         * doc/posix-functions/mbrlen.texi: Document the new module.
52535
52536 2008-12-19  Bruno Haible  <bruno@clisp.org>
52537
52538         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52539         * modules/mbrtowc (Depends-on): Add verify.
52540         Suggested by Paul Eggert.
52541
52542 2008-12-18  Bruno Haible  <bruno@clisp.org>
52543
52544         * modules/mbsinit-tests: New file.
52545         * tests/test-mbsinit.sh: New file.
52546         * tests/test-mbsinit.c: New file.
52547
52548 2008-12-18  Bruno Haible  <bruno@clisp.org>
52549
52550         * modules/mbrtowc-tests: New file.
52551         * tests/test-mbrtowc1.sh: New file.
52552         * tests/test-mbrtowc2.sh: New file.
52553         * tests/test-mbrtowc3.sh: New file.
52554         * tests/test-mbrtowc4.sh: New file.
52555         * tests/test-mbrtowc.c: New file.
52556
52557         New module 'mbrtowc'.
52558         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52559         mbsinit and mbrtowc.
52560         (mbrtowc): New declaration.
52561         * lib/mbrtowc.c: New file.
52562         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52563         * modules/mbrtowc: New file.
52564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52565         HAVE_MBRTOWC.
52566         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52567         HAVE_MBRTOWC.
52568         * doc/posix-functions/mbrtowc.texi: Document the new module.
52569
52570 2008-12-18  Bruno Haible  <bruno@clisp.org>
52571
52572         New module 'wctob'.
52573         * lib/wchar.in.h (wctob): New declaration.
52574         * lib/wctob.c: New file.
52575         * m4/wctob.m4: New file.
52576         * modules/wctob: New file.
52577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52578         HAVE_WCTOB.
52579         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52580         * doc/posix-functions/wctob.texi: Document the new module.
52581
52582 2008-12-18  Bruno Haible  <bruno@clisp.org>
52583
52584         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52585         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52586
52587 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52588
52589         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52590         G. Christensen" <tgc@jupiterrise.com>.
52591
52592         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52593         G. Christensen" <tgc@jupiterrise.com>.
52594
52595         * lib/flock.c: Need to include string.h.  Reported by "Tom
52596         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52597         <ebb9@byu.net>.
52598
52599 2008-12-18  Bruno Haible  <bruno@clisp.org>
52600
52601         * m4/locale-ja.m4: New file, from GNU gettext.
52602
52603 2008-12-17  Bruno Haible  <bruno@clisp.org>
52604
52605         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52606         Suggested by Eric Blake.
52607
52608 2008-12-17  Bruno Haible  <bruno@clisp.org>
52609
52610         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52611
52612 2008-12-17  Bruno Haible  <bruno@clisp.org>
52613
52614         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52615         * modules/mbsinit (Depends-on): Add verify.
52616         Suggested by Paul Eggert.
52617
52618 2008-12-17  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52621         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52622         gl_FUNC_MBRTOWC.
52623         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52624         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52625         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52626         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52627         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52628         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52629         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52630         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52631         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52632         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52633         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52634         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52635         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52636         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52637         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52638         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52639         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52640         * modules/trim (configure.ac): Likewise.
52641
52642 2008-12-17  Bruno Haible  <bruno@clisp.org>
52643
52644         * modules/btowc-tests: New file.
52645         * tests/test-btowc1.sh: New file.
52646         * tests/test-btowc2.sh: New file.
52647         * tests/test-btowc.c: New file.
52648
52649         New module 'btowc'.
52650         * lib/wchar.in.h (btowc): New declaration.
52651         * lib/btowc.c: New file.
52652         * m4/btowc.m4: New file.
52653         * modules/btowc: New file.
52654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52655         HAVE_BTOWC.
52656         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52657         * doc/posix-functions/btowc.texi: Document the new module.
52658
52659 2008-12-17  Bruno Haible  <bruno@clisp.org>
52660
52661         New module 'mbsinit'.
52662         * lib/wchar.in.h (mbsinit): New declaration.
52663         * lib/mbsinit.c: New file.
52664         * m4/mbsinit.m4: New file.
52665         * modules/mbsinit: New file.
52666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52667         HAVE_MBSINIT.
52668         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52669         HAVE_MBSINIT.
52670         * doc/posix-functions/mbsinit.texi: Document the new module.
52671
52672 2008-12-16  Bruno Haible  <bruno@clisp.org>
52673
52674         * lib/unistd.in.h: Add comment.
52675         * tests/test-environ.c: Don't include <stdlib.h>.
52676
52677 2008-12-16  Bruno Haible  <bruno@clisp.org>
52678
52679         * lib/parse-duration.h (parse_duration): Document return value
52680         convention.
52681         * lib/parse-duration.c: Include specification header first. Add
52682         comments.
52683         (_): Remove macro.
52684         (parse_year_month_day, parse_hour_minute_second): Move side effects
52685         outside of strchr call.
52686         (parse_non_iso8601): Move side effects outside of isspace call.
52687         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52688         call.
52689
52690 2008-12-16  Bruno Haible  <bruno@clisp.org>
52691
52692         * tests/test-parse-duration.sh: Produce no output when the test
52693         succeeds.
52694
52695 2008-12-16  Bruno Haible  <bruno@clisp.org>
52696
52697         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52698         expressions.
52699
52700 2008-12-15  Bruno Haible  <bruno@clisp.org>
52701
52702         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52703         * doc/glibc-functions/flistxattr.texi: Likewise.
52704         * doc/glibc-functions/fopencookie.texi: Likewise.
52705         * doc/glibc-functions/fremovexattr.texi: Likewise.
52706         * doc/glibc-functions/fsetxattr.texi: Likewise.
52707         * doc/glibc-functions/getxattr.texi: Likewise.
52708         * doc/glibc-functions/lgetxattr.texi: Likewise.
52709         * doc/glibc-functions/listxattr.texi: Likewise.
52710         * doc/glibc-functions/llistxattr.texi: Likewise.
52711         * doc/glibc-functions/lremovexattr.texi: Likewise.
52712         * doc/glibc-functions/lsetxattr.texi: Likewise.
52713         * doc/glibc-functions/removexattr.texi: Likewise.
52714         * doc/glibc-functions/setxattr.texi: Likewise.
52715         * doc/posix-functions/open_memstream.texi: Likewise.
52716
52717 2008-12-15  Eric Blake  <ebb9@byu.net>
52718
52719         Update doc for cygwin 1.7.
52720         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52721         functions.
52722         * doc/posix-functions/fchmodat.texi: Likewise.
52723         * doc/posix-functions/fchownat.texi: Likewise.
52724         * doc/posix-functions/fdopendir.texi: Likewise.
52725         * doc/posix-functions/fmemopen.texi: Likewise.
52726         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52727         * doc/posix-functions/fstatat.texi: Likewise.
52728         * doc/posix-functions/futimens.texi: Likewise.
52729         * doc/posix-functions/gai_strerror.texi: Likewise.
52730         * doc/posix-functions/getaddrinfo.texi: Likewise.
52731         * doc/posix-functions/getnameinfo.texi: Likewise.
52732         * doc/posix-functions/if_freenameindex.texi: Likewise.
52733         * doc/posix-functions/if_indextoname.texi: Likewise.
52734         * doc/posix-functions/if_nameindex.texi: Likewise.
52735         * doc/posix-functions/if_nametoindex.texi: Likewise.
52736         * doc/posix-functions/insque.texi: Likewise.
52737         * doc/posix-functions/linkat.texi: Likewise.
52738         * doc/posix-functions/llrint.texi: Likewise.
52739         * doc/posix-functions/llrintf.texi: Likewise.
52740         * doc/posix-functions/llrintl.texi: Likewise.
52741         * doc/posix-functions/lockf.texi: Likewise.
52742         * doc/posix-functions/lrintl.texi: Likewise.
52743         * doc/posix-functions/mkdirat.texi: Likewise.
52744         * doc/posix-functions/mkfifoat.texi: Likewise.
52745         * doc/posix-functions/mknodat.texi: Likewise.
52746         * doc/posix-functions/mq_close.texi: Likewise.
52747         * doc/posix-functions/mq_getattr.texi: Likewise.
52748         * doc/posix-functions/mq_notify.texi: Likewise.
52749         * doc/posix-functions/mq_open.texi: Likewise.
52750         * doc/posix-functions/mq_receive.texi: Likewise.
52751         * doc/posix-functions/mq_send.texi: Likewise.
52752         * doc/posix-functions/mq_setattr.texi: Likewise.
52753         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52754         * doc/posix-functions/mq_timedsend.texi: Likewise.
52755         * doc/posix-functions/mq_unlink.texi: Likewise.
52756         * doc/posix-functions/open_memstream.texi: Likewise.
52757         * doc/posix-functions/openat.texi: Likewise.
52758         * doc/posix-functions/posix_fadvise.texi: Likewise.
52759         * doc/posix-functions/posix_fallocate.texi: Likewise.
52760         * doc/posix-functions/posix_madvise.texi: Likewise.
52761         * doc/posix-functions/posix_memalign.texi: Likewise.
52762         * doc/posix-functions/posix_openpt.texi: Likewise.
52763         * doc/posix-functions/readlinkat.texi: Likewise.
52764         * doc/posix-functions/remque.texi: Likewise.
52765         * doc/posix-functions/renameat.texi: Likewise.
52766         * doc/posix-functions/rintl.texi: Likewise.
52767         * doc/posix-functions/sem_unlink.texi: Likewise.
52768         * doc/posix-functions/shm_open.texi: Likewise.
52769         * doc/posix-functions/shm_unlink.texi: Likewise.
52770         * doc/posix-functions/signgam.texi: Likewise.
52771         * doc/posix-functions/sigset.texi: Likewise.
52772         * doc/posix-functions/stpcpy.texi: Likewise.
52773         * doc/posix-functions/stpncpy.texi: Likewise.
52774         * doc/posix-functions/strerror.texi: Likewise.
52775         * doc/posix-functions/strtod.texi: Likewise.
52776         * doc/posix-functions/symlinkat.texi: Likewise.
52777         * doc/posix-functions/unlinkat.texi: Likewise.
52778         * doc/posix-functions/utimensat.texi: Likewise.
52779         * doc/glibc-functions/bindresvport.texi: Likewise.
52780         * doc/glibc-functions/dn_expand.texi: Likewise.
52781         * doc/glibc-functions/exp10.texi: Likewise.
52782         * doc/glibc-functions/exp10f.texi: Likewise.
52783         * doc/glibc-functions/fgetxattr.texi: Likewise.
52784         * doc/glibc-functions/flistxattr.texi: Likewise.
52785         * doc/glibc-functions/fopencookie.texi: Likewise.
52786         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52787         * doc/glibc-functions/fremovexattr.texi: Likewise.
52788         * doc/glibc-functions/fsetxattr.texi: Likewise.
52789         * doc/glibc-functions/getifaddrs.texi: Likewise.
52790         * doc/glibc-functions/getxattr.texi: Likewise.
52791         * doc/glibc-functions/lgetxattr.texi: Likewise.
52792         * doc/glibc-functions/listxattr.texi: Likewise.
52793         * doc/glibc-functions/llistxattr.texi: Likewise.
52794         * doc/glibc-functions/lremovexattr.texi: Likewise.
52795         * doc/glibc-functions/lsetxattr.texi: Likewise.
52796         * doc/glibc-functions/pow10.texi: Likewise.
52797         * doc/glibc-functions/pow10f.texi: Likewise.
52798         * doc/glibc-functions/rcmd_af.texi: Likewise.
52799         * doc/glibc-functions/removexattr.texi: Likewise.
52800         * doc/glibc-functions/res_init.texi: Likewise.
52801         * doc/glibc-functions/res_mkquery.texi: Likewise.
52802         * doc/glibc-functions/res_query.texi: Likewise.
52803         * doc/glibc-functions/res_querydomain.texi: Likewise.
52804         * doc/glibc-functions/res_send.texi: Likewise.
52805         * doc/glibc-functions/rresvport_af.texi: Likewise.
52806         * doc/glibc-functions/setxattr.texi: Likewise.
52807         * doc/glibc-functions/strcasestr.texi: Likewise.
52808
52809 2008-12-15  Bruno Haible  <bruno@clisp.org>
52810
52811         Fix compilation error on OSF/1 4.0.
52812         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52813         <sys/time.h>, simply delegate to the system header.
52814         Reported by Daniel Richard G. <oss@teragram.com>.
52815
52816 2008-12-15  Bruno Haible  <bruno@clisp.org>
52817
52818         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52819         * doc/posix-functions/fchmodat.texi: Likewise.
52820         * doc/posix-functions/fchownat.texi: Likewise.
52821         * doc/posix-functions/fdopendir.texi: Likewise.
52822         * doc/posix-functions/fstatat.texi: Likewise.
52823         * doc/posix-functions/mkdirat.texi: Likewise.
52824         * doc/posix-functions/unlinkat.texi: Likewise.
52825
52826 2008-12-14  Bruno Haible  <bruno@clisp.org>
52827
52828         Update doc for POSIX:2008.
52829         * doc/posix-functions/faccessat.texi: New file.
52830         * doc/posix-functions/fchmodat.texi: New file.
52831         * doc/posix-functions/fchownat.texi: New file.
52832         * doc/posix-functions/fdopendir.texi: New file.
52833         * doc/posix-functions/fstatat.texi: New file.
52834         * doc/posix-functions/futimens.texi: New file.
52835         * doc/posix-functions/linkat.texi: New file.
52836         * doc/posix-functions/mkdirat.texi: New file.
52837         * doc/posix-functions/mkfifoat.texi: New file.
52838         * doc/posix-functions/mknodat.texi: New file.
52839         * doc/posix-functions/open_wmemstream.texi: New file.
52840         * doc/posix-functions/openat.texi: New file.
52841         * doc/posix-functions/psiginfo.texi: New file.
52842         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52843         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52844         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52845         * doc/posix-functions/readlinkat.texi: New file.
52846         * doc/posix-functions/renameat.texi: New file.
52847         * doc/posix-functions/strerror_l.texi: New file.
52848         * doc/posix-functions/symlinkat.texi: New file.
52849         * doc/posix-functions/unlinkat.texi: New file.
52850         * doc/posix-functions/utimensat.texi: New file.
52851         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52852
52853 2008-12-14  Bruno Haible  <bruno@clisp.org>
52854
52855         Update doc for POSIX:2008.
52856         * doc/posix-functions/alphasort.texi: Renamed from
52857         doc/glibc-functions/alphasort.texi.
52858         * doc/posix-functions/dirfd.texi: Renamed from
52859         doc/glibc-functions/dirfd.texi.
52860         * doc/posix-functions/dprintf.texi: Renamed from
52861         doc/glibc-functions/dprintf.texi.
52862         * doc/posix-functions/duplocale.texi: Renamed from
52863         doc/glibc-functions/duplocale.texi.
52864         * doc/posix-functions/fexecve.texi: Renamed from
52865         doc/glibc-functions/fexecve.texi.
52866         * doc/posix-functions/fmemopen.texi: Renamed from
52867         doc/glibc-functions/fmemopen.texi.
52868         * doc/posix-functions/freelocale.texi: Renamed from
52869         doc/glibc-functions/freelocale.texi.
52870         * doc/posix-functions/getdate_err.texi: Renamed from
52871         doc/glibc-functions/getdate_err.texi.
52872         * doc/posix-functions/isalnum_l.texi: Renamed from
52873         doc/glibc-functions/isalnum_l.texi.
52874         * doc/posix-functions/isalpha_l.texi: Renamed from
52875         doc/glibc-functions/isalpha_l.texi.
52876         * doc/posix-functions/isblank_l.texi: Renamed from
52877         doc/glibc-functions/isblank_l.texi.
52878         * doc/posix-functions/iscntrl_l.texi: Renamed from
52879         doc/glibc-functions/iscntrl_l.texi.
52880         * doc/posix-functions/isdigit_l.texi: Renamed from
52881         doc/glibc-functions/isdigit_l.texi.
52882         * doc/posix-functions/isgraph_l.texi: Renamed from
52883         doc/glibc-functions/isgraph_l.texi.
52884         * doc/posix-functions/islower_l.texi: Renamed from
52885         doc/glibc-functions/islower_l.texi.
52886         * doc/posix-functions/isprint_l.texi: Renamed from
52887         doc/glibc-functions/isprint_l.texi.
52888         * doc/posix-functions/ispunct_l.texi: Renamed from
52889         doc/glibc-functions/ispunct_l.texi.
52890         * doc/posix-functions/isspace_l.texi: Renamed from
52891         doc/glibc-functions/isspace_l.texi.
52892         * doc/posix-functions/isupper_l.texi: Renamed from
52893         doc/glibc-functions/isupper_l.texi.
52894         * doc/posix-functions/iswalnum_l.texi: Renamed from
52895         doc/glibc-functions/iswalnum_l.texi.
52896         * doc/posix-functions/iswalpha_l.texi: Renamed from
52897         doc/glibc-functions/iswalpha_l.texi.
52898         * doc/posix-functions/iswblank_l.texi: Renamed from
52899         doc/glibc-functions/iswblank_l.texi.
52900         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52901         doc/glibc-functions/iswcntrl_l.texi.
52902         * doc/posix-functions/iswctype_l.texi: Renamed from
52903         doc/glibc-functions/iswctype_l.texi.
52904         * doc/posix-functions/iswdigit_l.texi: Renamed from
52905         doc/glibc-functions/iswdigit_l.texi.
52906         * doc/posix-functions/iswgraph_l.texi: Renamed from
52907         doc/glibc-functions/iswgraph_l.texi.
52908         * doc/posix-functions/iswlower_l.texi: Renamed from
52909         doc/glibc-functions/iswlower_l.texi.
52910         * doc/posix-functions/iswprint_l.texi: Renamed from
52911         doc/glibc-functions/iswprint_l.texi.
52912         * doc/posix-functions/iswpunct_l.texi: Renamed from
52913         doc/glibc-functions/iswpunct_l.texi.
52914         * doc/posix-functions/iswspace_l.texi: Renamed from
52915         doc/glibc-functions/iswspace_l.texi.
52916         * doc/posix-functions/iswupper_l.texi: Renamed from
52917         doc/glibc-functions/iswupper_l.texi.
52918         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52919         doc/glibc-functions/iswxdigit_l.texi.
52920         * doc/posix-functions/isxdigit_l.texi: Renamed from
52921         doc/glibc-functions/isxdigit_l.texi.
52922         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52923         doc/glibc-functions/mbsnrtowcs.texi.
52924         * doc/posix-functions/mkdtemp.texi: Renamed from
52925         doc/glibc-functions/mkdtemp.texi.
52926         * doc/posix-functions/newlocale.texi: Renamed from
52927         doc/glibc-functions/newlocale.texi.
52928         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52929         doc/glibc-functions/nl_langinfo_l.texi.
52930         * doc/posix-functions/open_memstream.texi: Renamed from
52931         doc/glibc-functions/open_memstream.texi.
52932         * doc/posix-functions/opterr.texi: Renamed from
52933         doc/glibc-functions/opterr.texi.
52934         * doc/posix-functions/optind.texi: Renamed from
52935         doc/glibc-functions/optind.texi.
52936         * doc/posix-functions/optopt.texi: Renamed from
52937         doc/glibc-functions/optopt.texi.
52938         * doc/posix-functions/psignal.texi: Renamed from
52939         doc/glibc-functions/psignal.texi.
52940         * doc/posix-functions/scandir.texi: Renamed from
52941         doc/glibc-functions/scandir.texi.
52942         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52943         doc/glibc-functions/sched_get_priority_min.texi.
52944         * doc/posix-functions/signgam.texi: Renamed from
52945         doc/glibc-functions/signgam.texi.
52946         * doc/posix-functions/stpcpy.texi: Renamed from
52947         doc/glibc-functions/stpcpy.texi.
52948         * doc/posix-functions/stpncpy.texi: Renamed from
52949         doc/glibc-functions/stpncpy.texi.
52950         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52951         doc/glibc-functions/strcasecmp_l.texi.
52952         * doc/posix-functions/strcoll_l.texi: Renamed from
52953         doc/glibc-functions/strcoll_l.texi.
52954         * doc/posix-functions/strfmon_l.texi: Renamed from
52955         doc/glibc-functions/strfmon_l.texi.
52956         * doc/posix-functions/strftime_l.texi: Renamed from
52957         doc/glibc-functions/strftime_l.texi.
52958         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52959         doc/glibc-functions/strncasecmp_l.texi.
52960         * doc/posix-functions/strndup.texi: Renamed from
52961         doc/glibc-functions/strndup.texi.
52962         * doc/posix-functions/strnlen.texi: Renamed from
52963         doc/glibc-functions/strnlen.texi.
52964         * doc/posix-functions/strsignal.texi: Renamed from
52965         doc/glibc-functions/strsignal.texi.
52966         * doc/posix-functions/strxfrm_l.texi: Renamed from
52967         doc/glibc-functions/strxfrm_l.texi.
52968         * doc/posix-functions/timer_gettime.texi: Renamed from
52969         doc/glibc-functions/timer_gettime.texi.
52970         * doc/posix-functions/tolower_l.texi: Renamed from
52971         doc/glibc-functions/tolower_l.texi.
52972         * doc/posix-functions/toupper_l.texi: Renamed from
52973         doc/glibc-functions/toupper_l.texi.
52974         * doc/posix-functions/towctrans_l.texi: Renamed from
52975         doc/glibc-functions/towctrans_l.texi.
52976         * doc/posix-functions/towlower_l.texi: Renamed from
52977         doc/glibc-functions/towlower_l.texi.
52978         * doc/posix-functions/towupper_l.texi: Renamed from
52979         doc/glibc-functions/towupper_l.texi.
52980         * doc/posix-functions/uselocale.texi: Renamed from
52981         doc/glibc-functions/uselocale.texi.
52982         * doc/posix-functions/vdprintf.texi: Renamed from
52983         doc/glibc-functions/vdprintf.texi.
52984         * doc/posix-functions/wcpcpy.texi:
52985         Renamed from doc/glibc-functions/wcpcpy.texi.
52986         * doc/posix-functions/wcpncpy.texi: Renamed from
52987         doc/glibc-functions/wcpncpy.texi.
52988         * doc/posix-functions/wcscasecmp.texi: Renamed from
52989         doc/glibc-functions/wcscasecmp.texi.
52990         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52991         doc/glibc-functions/wcscasecmp_l.texi.
52992         * doc/posix-functions/wcscoll_l.texi: Renamed from
52993         doc/glibc-functions/wcscoll_l.texi.
52994         * doc/posix-functions/wcsdup.texi: Renamed from
52995         doc/glibc-functions/wcsdup.texi.
52996         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52997         doc/glibc-functions/wcsncasecmp.texi.
52998         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52999         doc/glibc-functions/wcsncasecmp_l.texi.
53000         * doc/posix-functions/wcsnlen.texi: Renamed from
53001         doc/glibc-functions/wcsnlen.texi.
53002         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53003         doc/glibc-functions/wcsnrtombs.texi.
53004         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53005         doc/glibc-functions/wcsxfrm_l.texi.
53006         * doc/posix-functions/wctrans_l.texi: Renamed from
53007         doc/glibc-functions/wctrans_l.texi.
53008         * doc/posix-functions/wctype_l.texi: Renamed from
53009         doc/glibc-functions/wctype_l.texi.
53010         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53011         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53012         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53013         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53014         these subsections.
53015         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53016         Remove sections.
53017
53018 2008-12-14  Bruno Haible  <bruno@clisp.org>
53019
53020         Update doc for POSIX:2008.
53021         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53022
53023 2008-12-14  Bruno Haible  <bruno@clisp.org>
53024
53025         Update doc for POSIX:2008.
53026         * doc/pastposix-functions/bcmp.texi: Renamed from
53027         doc/posix-functions/bcmp.texi.
53028         * doc/pastposix-functions/bcopy.texi: Renamed from
53029         doc/posix-functions/bcopy.texi.
53030         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53031         doc/posix-functions/bsd_signal.texi.
53032         * doc/pastposix-functions/bzero.texi: Renamed from
53033         doc/posix-functions/bzero.texi.
53034         * doc/pastposix-functions/ecvt.texi: Renamed from
53035         doc/posix-functions/ecvt.texi.
53036         * doc/pastposix-functions/fcvt.texi: Renamed from
53037         doc/posix-functions/fcvt.texi.
53038         * doc/pastposix-functions/ftime.texi: Renamed from
53039         doc/posix-functions/ftime.texi.
53040         * doc/pastposix-functions/gcvt.texi: Renamed from
53041         doc/posix-functions/gcvt.texi.
53042         * doc/pastposix-functions/getcontext.texi: Renamed from
53043         doc/posix-functions/getcontext.texi.
53044         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53045         doc/posix-functions/gethostbyaddr.texi.
53046         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53047         doc/posix-functions/gethostbyname.texi.
53048         * doc/pastposix-functions/getwd.texi: Renamed from
53049         doc/posix-functions/getwd.texi.
53050         * doc/pastposix-functions/h_errno.texi: Renamed from
53051         doc/posix-functions/h_errno.texi.
53052         * doc/pastposix-functions/index.texi: Renamed from
53053         doc/posix-functions/index.texi.
53054         * doc/pastposix-functions/makecontext.texi: Renamed from
53055         doc/posix-functions/makecontext.texi.
53056         * doc/pastposix-functions/mktemp.texi: Renamed from
53057         doc/posix-functions/mktemp.texi.
53058         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53059         doc/posix-functions/pthread_attr_getstackaddr.texi.
53060         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53061         doc/posix-functions/pthread_attr_setstackaddr.texi.
53062         * doc/pastposix-functions/rindex.texi: Renamed from
53063         doc/posix-functions/rindex.texi.
53064         * doc/pastposix-functions/scalb.texi: Renamed from
53065         doc/posix-functions/scalb.texi.
53066         * doc/pastposix-functions/setcontext.texi: Renamed from
53067         doc/posix-functions/setcontext.texi.
53068         * doc/pastposix-functions/swapcontext.texi: Renamed from
53069         doc/posix-functions/swapcontext.texi.
53070         * doc/pastposix-functions/ualarm.texi: Renamed from
53071         doc/posix-functions/ualarm.texi.
53072         * doc/pastposix-functions/usleep.texi: Renamed from
53073         doc/posix-functions/usleep.texi.
53074         * doc/pastposix-functions/vfork.texi: Renamed from
53075         doc/posix-functions/vfork.texi.
53076         * doc/pastposix-functions/wcswcs.texi: Renamed from
53077         doc/posix-functions/wcswcs.texi.
53078         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53079         (Function Substitutes): Update.
53080
53081 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53082
53083         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53084         m4/strerror.m4.
53085
53086 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53087             Bruno Haible  <bruno@clisp.org>
53088
53089         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53090
53091 2008-12-13  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/strtoull (Depends-on): Remove unistd.
53094
53095 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53096
53097         * modules/strtoull (Depends-on): Add stdlib.
53098
53099 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53100
53101         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53102
53103 2008-12-10  Jim Meyering  <meyering@redhat.com>
53104
53105         gl_ASSERT: don't say assertions are disabled when they're not
53106         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53107         "checking whether to enable assertions... no", when they are in
53108         fact enabled.  This is solely a bug in the output of configure.
53109         In spite of saying "no", NDEBUG was not defined in that case.
53110         Also, as noted by Eric Blake, leave assertions enabled upon
53111         --enable-assert=INVALID.
53112
53113 2008-12-10  Bruno Haible  <bruno@clisp.org>
53114
53115         Change MODULES.html to refer to POSIX:2008 where possible.
53116         * MODULES.html.sh (POSIX2008_URL): New variable.
53117         (posix_headers): Remove sys/timeb, ucontext.
53118         (posix2001_headers): New variable.
53119         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53120         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53121         index, makecontext, mktemp, pthread_attr_getstackaddr,
53122         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53123         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53124         (posix2001_functions): New variable.
53125         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53126         otherwise.
53127
53128 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53129
53130         add missing include to parse-duration.c
53131         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53132         * modules/parse-duration (Depends-on): Add xalloc.
53133
53134         fix sed script reading maint.mk
53135         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53136         (syntax-check-rules): Use it.
53137
53138 2008-12-09  Bruno Haible  <bruno@clisp.org>
53139
53140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53141         MacOS X 10.4/PowerPC.
53142         Reported by Simon Josefsson.
53143
53144 2008-12-08  Jim Meyering  <meyering@redhat.com>
53145
53146         work around mingw's lack of some S_IF definitions
53147         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53148         Reported by Simon Josefsson.
53149
53150 2008-12-08  Bruno Haible  <bruno@clisp.org>
53151
53152         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53153         applied to variables. Needed on MacOS X 10.4/PowerPC.
53154         Reported by Simon Josefsson.
53155
53156 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53157         and Eric Blake  <ebb9@byu.net>
53158
53159         assert: honor --enable-assert
53160         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53161         order to honor --enable-assert, rather than treating it as a
53162         synonym for --disable-assert.
53163
53164 2008-12-08  Jim Meyering  <meyering@redhat.com>
53165
53166         * lib/posixtm.c: Remove now-useless declaration of mktime.
53167
53168         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53169
53170 2008-12-07  Bruno Haible  <bruno@clisp.org>
53171
53172         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53173         test_once): Mark functions as static.
53174         * tests/test-tls.c (test_tls): Likewise.
53175
53176 2008-12-07  Bruno Haible  <bruno@clisp.org>
53177
53178         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53179         iconv_register_autodetect.
53180
53181 2008-12-07  Jim Meyering  <meyering@redhat.com>
53182
53183         posixtm.c: avoid a warning
53184         * lib/posixtm.c (posixtime): Don't initialize tm0.
53185         It's no longer needed to placate gcc4's -Wuninitialized,
53186         and the attempt to placate would elicit a new warning.
53187
53188         unicodeio.c: mark unused parameters
53189         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53190         (fallback_failure_callback): Likewise.
53191
53192 2008-12-07  Bruno Haible  <bruno@clisp.org>
53193
53194         * gnulib-tool (func_create_testdir): When building the tests
53195         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53196         Reported by Simon Josefsson.
53197
53198 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53199
53200         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53201
53202 2008-12-06  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53205         Suggested by Eric Blake.
53206
53207 2008-12-06  Bruno Haible  <bruno@clisp.org>
53208
53209         Fix a c-stack test failure on MacOS X.
53210         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53211         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53212         handler for SIGBUS as well.
53213         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53214         install a signal handler for SIGBUS as well.
53215         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53216
53217 2008-12-06  Bruno Haible  <bruno@clisp.org>
53218
53219         Advocacy documentation.
53220         * doc/gnulib-intro.texi (Benefits): New section.
53221         * doc/gnulib.texi: Update.
53222
53223 2008-12-06  Bruno Haible  <bruno@clisp.org>
53224
53225         Document the 'manywarnings' module.
53226         * doc/manywarnings.texi: New file.
53227         * doc/gnulib.texi: Include it.
53228
53229 2008-12-05  Eric Blake  <ebb9@byu.net>
53230
53231         tests: silence some gcc warnings
53232         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53233         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53234         type mismatches.
53235
53236 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53237             Bruno Haible  <bruno@clisp.org>
53238
53239         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53240
53241 2008-11-29  Jim Meyering  <meyering@redhat.com>
53242
53243         unicodeio.c: mark unused parameters
53244         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53245         (fallback_failure_callback): Likewise.
53246
53247         fts: fix a thinko
53248         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53249         (set_stat_type): Return S_IF*-valued "type" directly.
53250         Prompted by James Youngman's spotting a related bug.
53251         Confirmed by further testing through find.
53252
53253         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53254         * lib/fts.c (D_TYPE): Define.
53255         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53256         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53257         (s_ifmt_shift_bits): New function.
53258         (set_stat_type): New function.
53259         (fts_build): When not calling fts_stat, call set_stat_type
53260         to propagate dirent.d_type info to fts_read caller.
53261         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53262         fts_statp->st_mode type information may be valid.
53263
53264 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53265
53266         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53267         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53268         <sds@gnu.org>.
53269
53270 2008-11-20  Bruno Haible  <bruno@clisp.org>
53271
53272         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53273         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53274         INCLUDE_NEXT.
53275         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53276         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53277         * modules/math (Makefile.am): Substitute
53278         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53280
53281 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53282             Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/stdint.in.h: Define all type macros so that their expansion is
53285         a single typedef'ed token. Fixes a compilation failure in Boost which
53286         does "using ::int8_t;".
53287
53288 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53289
53290         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53291         gl_MANYWARN_ALL_GCC.
53292         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53293         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53294         * modules/manywarnings: New file.
53295         * MODULES.html.sh: Mention manywarnings module.
53296
53297 2008-11-18  Bruno Haible  <bruno@clisp.org>
53298
53299         * doc/gnulib-tool.texi (Unit tests): New section.
53300
53301 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53302
53303         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53304         paths like 'lib/po/foo.po'.
53305
53306 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53307
53308         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53309         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53310
53311 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53312
53313         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53314         parameter works.
53315
53316 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53317
53318         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53319
53320 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53321
53322         * modules/parse-duration-tests: New file.
53323         * tests/test-parse-duration.sh: New file.
53324         * tests/test-parse-duration.c: New file.
53325
53326         New module 'parse-duration'.
53327         * lib/parse-duration.h: New file.
53328         * lib/parse-duration.c: New file.
53329         * modules/parse-duration: New file.
53330
53331 2008-11-17  Bruno Haible  <bruno@clisp.org>
53332
53333         * tests/test-select-out.sh: Comment out the first pipe test.
53334         Reported by Simon Josefsson.
53335
53336 2008-11-17  Bruno Haible  <bruno@clisp.org>
53337
53338         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53340         gl_HOSTENT.
53341
53342 2008-11-17  Bruno Haible  <bruno@clisp.org>
53343
53344         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53345         -lnetwork and -lnet. Needed for Haiku and BeOS.
53346
53347 2008-11-16  Bruno Haible  <bruno@clisp.org>
53348
53349         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53350
53351 2008-11-16  Bruno Haible  <bruno@clisp.org>
53352
53353         Avoid test failure on Haiku.
53354         * tests/test-fsync.c: Include <errno.h>.
53355         (main): Don't require that fsync (0) fails.
53356
53357 2008-11-15  Bruno Haible  <bruno@clisp.org>
53358
53359         New module 'hostent'.
53360         * modules/hostent: New file.
53361         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53362
53363 2008-11-15  Bruno Haible  <bruno@clisp.org>
53364
53365         New module 'servent'.
53366         * modules/servent: New file.
53367         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53368
53369 2008-11-15  Bruno Haible  <bruno@clisp.org>
53370
53371         Avoid generating same test program with two different rules.
53372         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53373         test-frexp to test-frexp-nolibm.
53374         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53375         test-frexpl to test-frexpl-nolibm.
53376
53377 2008-11-15  Bruno Haible  <bruno@clisp.org>
53378
53379         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53380         $(FREXPL_LIBM).
53381
53382 2008-11-15  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/netdb.in.h: Activate the definitions also when the system's
53385         <netdb.h> has 'struct addrinfo'.
53386         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53387         EAI_OVERFLOW or AI_NUMERICSERV.
53388         * doc/posix-headers/netdb.texi: Document the problem.
53389
53390 2008-11-15  Bruno Haible  <bruno@clisp.org>
53391
53392         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53393
53394         Make the 'sched' module work on platforms where <sched.h> exists but
53395         is incomplete (such as Haiku).
53396         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53397         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53398         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53399         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53400         HAVE_STRUCT_SCHED_PARAM.
53401         * modules/sched (Depends-on): Add include_next.
53402         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53403         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53404         * doc/posix-headers/sched.texi: Document the issue.
53405
53406 2008-11-13  Jim Meyering  <meyering@redhat.com>
53407
53408         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53409         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53410         test would fail due to the difference in the Report bugs to ...
53411         line.  The expected address is empty, "<>", while the actual
53412         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53413
53414 2008-11-12  Bruno Haible  <bruno@clisp.org>
53415
53416         lstat: don't compile lstat.c on systems lacking lstat
53417         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53418         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53419         Reported by Daniel P. Berrange via Jim Meyering.
53420
53421 2008-11-12  Jim Meyering  <meyering@redhat.com>
53422
53423         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53424
53425 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53426
53427         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53428         instead.
53429
53430 2008-11-12  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/unicodeio.c: Include unistr.h.
53433         (utf8_wctomb): Remove function.
53434         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53435
53436 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53437
53438         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53439         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53440         <bruno@clisp.org>.
53441         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53442
53443 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53444
53445         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53446         * doc/gnulib.texi: Add section for warnings.
53447
53448 2008-11-11  Bruno Haible  <bruno@clisp.org>
53449
53450         * lib/sockets.h: Add a comment.
53451
53452 2008-11-11  Karl Berry  <karl@gnu.org>
53453
53454         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53455
53456 2008-11-11  Eric Blake  <ebb9@byu.net>
53457
53458         fdl.texi: avoid git symlinks
53459         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53460
53461 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53462
53463         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53464
53465 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53466
53467         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53468         (gl_WARN_ADD): Substitute $2 if literal.
53469
53470 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53471
53472         * m4/warning.m4: Remove.
53473
53474 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53475
53476         * m4/warnings.m4: Almost complete rewrite. :-)
53477
53478 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53479
53480         * modules/warnings: New module.
53481         * m4/warnings.m4: New file.
53482         * MODULES.html.sh: Mention warnings module.
53483         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53484         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53485
53486 2008-11-10  Eric Blake  <ebb9@byu.net>
53487
53488         fdl.texi: make a symlink to the latest version
53489         * doc/standards.texi: Revert today's earlier change.
53490         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53491         * doc/fdl.texi: ...and replace this with a symlink to the newer
53492         fdl-1.3.texi.
53493
53494 2008-11-10  Bruno Haible  <bruno@clisp.org>
53495
53496         * tests/test-select-fd.c (main): Accept the result file name as fourth
53497         argument.
53498         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53499         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53500
53501 2008-11-10  Bruno Haible  <bruno@clisp.org>
53502
53503         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53504         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53505         as autoconf-substituted macros.
53506         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53507         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53508         gl_NETDB_H_DEFAULTS. Set these variables.
53509         * modules/netdb (Makefile.am): Substitute these variables.
53510
53511 2008-11-10  Eric Blake  <ebb9@byu.net>
53512
53513         standards.texi: include correct file for FDL 1.3
53514         * doc/standards.texi (GNU Free Documentation License): Change
53515         include file to pull in FDL 1.3, not 1.2.
53516
53517         fdl.texi: revert accidental change to license
53518         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53519
53520 2008-11-10  Bruno Haible  <bruno@clisp.org>
53521
53522         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53523         cross-compiling guesses also when the native compile gives no result.
53524
53525 2008-11-10  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/spawni.c (__spawni): Force variable into the stack.
53528
53529 2008-11-10  Bruno Haible  <bruno@clisp.org>
53530
53531         Add support for Haiku.
53532         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53533         glibc and BeOS, but also on Haiku.
53534         * lib/fpurge.c (fpurge): Likewise.
53535         * lib/freadable.c (freadable): Likewise.
53536         * lib/freadahead.c (freadahead): Likewise.
53537         * lib/freading.c (freading): Likewise.
53538         * lib/freadptr.c (freadptr): Likewise.
53539         * lib/freadseek.c (freadptrinc): Likewise.
53540         * lib/fseeko.c (rpl_fseeko): Likewise.
53541         * lib/fseterr.c (fseterr): Likewise.
53542         * lib/fwritable.c (fwritable): Likewise.
53543         * lib/fwriting.c (fwriting): Likewise.
53544         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53545
53546 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53547
53548         * lib/config.charset: Treat Haiku like BeOS.
53549
53550 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53551
53552         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53553         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53554
53555 2008-11-08  Bruno Haible  <bruno@clisp.org>
53556
53557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53558         AC_CACHE_CHECK.
53559
53560 2008-11-08  Bruno Haible  <bruno@clisp.org>
53561
53562         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53563
53564 2008-11-08  Bruno Haible  <bruno@clisp.org>
53565
53566         * tests/test-select-fd.c: New file.
53567         * tests/test-select-in.sh: New file.
53568         * tests/test-select-out.sh: New file.
53569         * tests/test-select-stdin.c: New file.
53570         * modules/select-tests (Files): Add the new files.
53571         (Depends-on): Add gettimeofday.
53572         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53573         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53574         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53575
53576 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53577             Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53580
53581 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53582
53583         * build-aux/pmccabe2html: Added support for C++ source files.
53584
53585 2008-11-05  Ben Pfaff  <blp@gnu.org>
53586
53587         Fix lib/close.c build on Windows.
53588         * modules/close (Files): Add lib/w32sock.h.
53589
53590 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53591
53592         Accept Bison's NEWS format.
53593         * build-aux/announce-gen (print_news_deltas): Tweak
53594         $re_prefix.
53595
53596 2008-11-04  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/random_r (Maintainer): Add glibc.
53599
53600 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53601
53602         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53603         by karl@freefriends.org (Karl Berry).
53604         * doc/alloca.texi: Likewise.
53605         * doc/c-ctype.texi: Likewise.
53606         * doc/c-strcase.texi: Likewise.
53607         * doc/c-strcaseeq.texi: Likewise.
53608         * doc/c-strcasestr.texi: Likewise.
53609         * doc/c-strstr.texi: Likewise.
53610         * doc/c-strtod.texi: Likewise.
53611         * doc/c-strtold.texi: Likewise.
53612         * doc/ctime.texi: Likewise.
53613         * doc/error.texi: Likewise.
53614         * doc/fdl.texi: Likewise.
53615         * doc/gcd.texi: Likewise.
53616         * doc/getdate.texi: Likewise.
53617         * doc/gnulib-intro.texi: Likewise.
53618         * doc/gnulib-tool.texi: Likewise.
53619         * doc/gnulib.texi: Likewise.
53620         * doc/inet_ntoa.texi: Likewise.
53621         * doc/maintain.texi: Likewise.
53622         * doc/make-stds.texi: Likewise.
53623         * doc/quote.texi: Likewise.
53624         * doc/regexprops-generic.texi: Likewise.
53625         * doc/standards.texi: Likewise.
53626         * doc/verify.texi: Likewise.
53627         * doc/visibility.texi: Likewise.
53628         * doc/gnulib.texi (GNU Free Documentation License): Include
53629         fdl-1.3.texi instead of fdl.texi.
53630
53631 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53632
53633         * doc/fdl-1.3.texi: New file, from
53634         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53635         * modules/fdl-1.3: Add.
53636         * MODULES.html.sh: Add fdl-1.3.
53637
53638 2008-11-03  Bruno Haible  <bruno@clisp.org>
53639
53640         Make determination of absolute name of header file work with AIX xlc.
53641         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53642         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53643         preprocessing.
53644         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53645         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53646
53647 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53648
53649         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53650         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53651         <ludo@gnu.org>.
53652
53653 2008-11-02  Bruno Haible  <bruno@clisp.org>
53654
53655         Mark 'strpbrk' obsolete.
53656         * modules/strpbrk (Status, Notice): New sections.
53657         * modules/strtok_r (Depends-on): Add strpbrk.
53658
53659 2008-11-02  Bruno Haible  <bruno@clisp.org>
53660
53661         Mark 'strdup' obsolete.
53662         * modules/strdup (Status, Notice): New sections.
53663         * modules/findprog (Depends-on): Add strdup.
53664         * modules/getaddrinfo (Depends-on): Likewise.
53665         * modules/localename (Depends-on): Likewise.
53666         * modules/relocatable-lib (Depends-on): Likewise.
53667         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53668         * modules/relocatable-prog (Depends-on): Likewise.
53669         * modules/trim (Depends-on): Likewise.
53670         * modules/unictype/gen-ctype (Depends-on): Likewise.
53671         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53672
53673 2008-11-02  Bruno Haible  <bruno@clisp.org>
53674
53675         Mark 'strcspn' obsolete.
53676         * modules/strcspn (Status, Notice): New sections.
53677
53678 2008-11-02  Bruno Haible  <bruno@clisp.org>
53679
53680         Mark 'rmdir' obsolete.
53681         * modules/rmdir (Status, Notice): New sections.
53682         * modules/clean-temp (Depends-on): Add rmdir.
53683         * modules/openat (Depends-on): Likewise.
53684
53685 2008-11-02  Bruno Haible  <bruno@clisp.org>
53686
53687         Mark 'raise' obsolete.
53688         * modules/raise (Status, Notice): New sections.
53689         (Include): Specify <signal.h>.
53690         * modules/stdio (Depends-on): Add raise.
53691         * modules/write (Depends-on): Likewise.
53692
53693 2008-11-02  Bruno Haible  <bruno@clisp.org>
53694
53695         Mark 'memset' obsolete.
53696         * modules/memset (Status, Notice): New sections.
53697
53698 2008-11-02  Bruno Haible  <bruno@clisp.org>
53699
53700         Mark 'memmove' obsolete.
53701         * modules/memmove (Status, Notice): New sections.
53702         * modules/argp (Depends-on): Add memmove.
53703         * modules/argz (Depends-on): Likewise.
53704         * modules/canonicalize (Depends-on): Likewise.
53705         * modules/canonicalize-lgpl (Depends-on): Likewise.
53706         * modules/fts (Depends-on): Likewise.
53707         * modules/getcwd (Depends-on): Likewise.
53708         * modules/human (Depends-on): Likewise.
53709         * modules/regex (Depends-on): Likewise.
53710         * modules/striconveh (Depends-on): Likewise.
53711         * modules/trim (Depends-on): Likewise.
53712         * modules/unistr/u8-move (Depends-on): Likewise.
53713         * modules/unistr/u16-move (Depends-on): Likewise.
53714         * modules/unistr/u32-move (Depends-on): Likewise.
53715
53716 2008-11-02  Bruno Haible  <bruno@clisp.org>
53717
53718         Mark 'memcpy' obsolete.
53719         * modules/memcpy (Status, Notice): New sections.
53720
53721 2008-11-02  Bruno Haible  <bruno@clisp.org>
53722
53723         Mark 'memcmp' obsolete.
53724         * modules/memcmp (Status, Notice): New sections.
53725         * modules/argmatch (Depends-on): Add memchr.
53726         * modules/backupfile (Depends-on): Likewise.
53727         * modules/c-strcasestr (Depends-on): Likewise.
53728         * modules/crypto/des (Depends-on): Likewise.
53729         * modules/csharpcomp (Depends-on): Likewise.
53730         * modules/fnmatch (Depends-on): Likewise.
53731         * modules/git-merge-changelog (Depends-on): Likewise.
53732         * modules/isnand (Depends-on): Likewise.
53733         * modules/isnand-nolibm (Depends-on): Likewise.
53734         * modules/isnanf (Depends-on): Likewise.
53735         * modules/isnanf-nolibm (Depends-on): Likewise.
53736         * modules/isnanl (Depends-on): Likewise.
53737         * modules/isnanl-nolibm (Depends-on): Likewise.
53738         * modules/mbchar (Depends-on): Likewise.
53739         * modules/memcoll (Depends-on): Likewise.
53740         * modules/quotearg (Depends-on): Likewise.
53741         * modules/regex (Depends-on): Likewise.
53742         * modules/relocatable-prog (Depends-on): Likewise.
53743         * modules/same (Depends-on): Likewise.
53744         * modules/signbit (Depends-on): Likewise.
53745         * modules/strcasestr-simple (Depends-on): Likewise.
53746         * modules/unictype/gen-ctype (Depends-on): Likewise.
53747         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53748         * modules/uniname/uniname (Depends-on): Likewise.
53749         * modules/unistr/u8-cmp (Depends-on): Likewise.
53750
53751 2008-11-02  Bruno Haible  <bruno@clisp.org>
53752
53753         Mark 'memchr' obsolete.
53754         * modules/memchr (Status, Notice): New sections.
53755         * modules/argp (Depends-on): Add memchr.
53756         * modules/base64 (Depends-on): Likewise.
53757         * modules/c-strcasestr (Depends-on): Likewise.
53758         * modules/chdir-long (Depends-on): Likewise.
53759         * modules/fnmatch (Depends-on): Likewise.
53760         * modules/getsubopt (Depends-on): Likewise.
53761         * modules/git-merge-changelog (Depends-on): Likewise.
53762         * modules/glob (Depends-on): Likewise.
53763         * modules/strcasestr-simple (Depends-on): Likewise.
53764         * modules/strnlen (Depends-on): Likewise.
53765
53766 2008-11-02  Bruno Haible  <bruno@clisp.org>
53767
53768         Mark 'atexit' obsolete.
53769         * modules/atexit (Status, Notice): New sections.
53770         * modules/chdir-long (Depends-on): Add atexit.
53771         * modules/wait-process (Depends-on): Likewise.
53772
53773 2008-11-02  Bruno Haible  <bruno@clisp.org>
53774
53775         * gnulib-tool: New option --with-obsolete.
53776         (func_usage): Document it.
53777         (func_modules_transitive_closure): Drop obsolete dependencies if
53778         incobsolete is not true.
53779         (func_import): Read and save the incobsolete variable to the cache.
53780
53781 2008-11-02  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53784         * gnulib-tool: New option --extract-status.
53785         (func_usage): Document it.
53786         (sed_extract_prog): Recognize it.
53787         (func_get_status): New function.
53788
53789 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53790
53791         * modules/sockets (License): Change from LGPL to LGPLv2+.
53792
53793 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53794
53795         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53796
53797 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53798
53799         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53800         Mention times and sys_times.
53801         * modules/sys_times, modules/sys_times-tests: New modules.
53802         * modules/times, modules/times-tests: Likewise
53803         * m4/sys_times_h.m4: New file.
53804         * lib/sys_times.in.h: Likewise
53805         * lib/times.c: Likewise.
53806         * tests/test-sys_times.c: Likewise.
53807         * tests/test-times.c: Likewise.
53808         * doc/posix-headers/sys_times.texi: Update.
53809         * doc/posix-functions/times.texi: Update.
53810
53811 2008-10-28  Jim Meyering  <meyering@redhat.com>
53812
53813         * modules/tempname (Depends-on): Add lstat.
53814
53815         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53816
53817 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53818
53819         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53820         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53821         using idiom used elsewhere in gnulib.
53822
53823 2008-10-27  Jim Meyering  <meyering@redhat.com>
53824
53825         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53826
53827 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53828
53829         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53830         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53831         programs.
53832         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53833
53834 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53835
53836         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53837
53838 2008-10-27  Bruno Haible  <bruno@clisp.org>
53839
53840         * tests/test-lstat.c: Include <stdio.h>.
53841
53842 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53843
53844         * modules/lstat-tests: New module.
53845         * tests/test-lstat.c: New file.
53846
53847 2008-10-26  Jim Meyering  <meyering@redhat.com>
53848
53849         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53850
53851 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53852             Bruno Haible  <bruno@clisp.org>
53853
53854         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53855         * modules/configmake (Include): Add a note that the include must come
53856         after all system headers.
53857         * lib/javaversion.c: Include configmake.h after all other includes.
53858
53859 2008-10-26  Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53862         HAVE_STRUCT_RANDOM_DATA to 1.
53863         (gl_STDLIB_H): Simplify.
53864
53865 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53866
53867         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53868         substitute HAVE_STRUCT_RANDOM_DATA.
53869         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53870         random_data.
53871         * modules/stdlib (Makefile.am): Substitute
53872         HAVE_STRUCT_RANDOM_DATA.
53873
53874 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53875
53876         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53877         * doc/gnulib-intro.texi (Copyright): Likewise.
53878
53879 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53880
53881         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53882         findings.
53883
53884 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53885             Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/unistd.in.h: Include <winsock2.h>.
53888         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53889         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53890         Provide dummy declarations.
53891         (gethostname): Override.
53892         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53893         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53894         gl_PREREQ_SYS_H_WINSOCK2.
53895         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53896         * doc/posix-functions/gethostname.texi: More details.
53897
53898 2008-10-25  Bruno Haible  <bruno@clisp.org>
53899
53900         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53901         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53902         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53903
53904         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53905         here ...
53906         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53907         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53908         gl_UNISTD_H_DEFAULTS.
53909
53910 2008-10-25  Eric Blake  <ebb9@byu.net>
53911
53912         signbit: avoid spurious compiler failure
53913         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53914         declarations inside function.
53915
53916 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53917             Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53920         * modules/random_r (Depends-on): Add stdint.
53921
53922 2008-10-24  Bruno Haible  <bruno@clisp.org>
53923
53924         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53925         Eggert.
53926         * modules/strerror (License): Likewise.
53927
53928 2008-10-24  Jim Meyering  <meyering@redhat.com>
53929
53930         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53931         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53932
53933 2008-10-24  Eric Blake  <ebb9@byu.net>
53934
53935         getgroups: fix compilation when getgroups is available
53936         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53937         but with <config.h> override of getgroups disabled.
53938
53939 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53940
53941         * doc/gnulib.texi (Header files): Add note about C++ problems.
53942         Explained by Bruno Haible <bruno@clisp.org>.
53943
53944 2008-10-23  Bruno Haible  <bruno@clisp.org>
53945
53946         Define a dummy SA_NODEFER macro on Interix.
53947         * lib/signal.in.h (SA_NODEFER): Define fallback.
53948         Reported by Aleksey Cheusov <cheusov@tut.by> via
53949         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53950
53951 2008-10-23  Bruno Haible  <bruno@clisp.org>
53952
53953         * modules/freadahead (License): Change to LGPLv2+.
53954         Suggested by Simon Josefsson.
53955
53956 2008-10-23  Jim Meyering  <meyering@redhat.com>
53957
53958         random_r: new module
53959         * modules/random_r: New file.
53960         * m4/random_r.m4: New file.
53961         * lib/random_r.c: New file, from glibc.
53962         * modules/random_r-tests: New file.
53963         * tests/test-random_r.c: New file.
53964         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53965          Declare.
53966         (RAND_MAX): Define.
53967         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53968         * modules/stdlib: Substitute them, too.
53969         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53970         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53971         * doc/glibc-functions/random_r.texi: Likewise.
53972         * doc/glibc-functions/setstate_r.texi: Likewise.
53973         * doc/glibc-functions/srandom_r.texi: Likewise.
53974         * config/srclist.txt: Mention it.
53975
53976 2008-10-23  David Lutterkort  <lutter@redhat.com>
53977
53978         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53979         link requirement
53980
53981 2008-10-23  Jim Meyering  <meyering@redhat.com>
53982
53983         selinux-h: mark parameters of stub functions as intentionally unused
53984         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53985         * lib/se-context.in.h: Likewise.
53986
53987 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53988
53989         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53990
53991 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53992
53993         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53994
53995 2008-10-22  Eric Blake  <ebb9@byu.net>
53996
53997         glthread/thread: avoid compiler warning
53998         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53999         Add unreachable abort to silence compiler.
54000
54001 2008-10-22  Eric Blake  <ebb9@byu.net>
54002
54003         netdb: also supply struct addrinfo for cygwin 1.5.x
54004         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54005         older cygwin.
54006         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54007         cygwin.
54008         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54009
54010 2008-10-22  Bruno Haible  <bruno@clisp.org>
54011
54012         * users.txt: Update entry about pspp.
54013
54014 2008-10-21  Bruno Haible  <bruno@clisp.org>
54015
54016         Simplification.
54017         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54018         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54019
54020         Simplification.
54021         * lib/ioctl.c (ioctl): Don't undefine.
54022         * lib/socket.c (socket): Don't undefine.
54023
54024         Remove unused module indicator macros.
54025         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54026         GNULIB_$1 as a C macro.
54027
54028         * doc/posix-functions/close.texi: Undo last change.
54029         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54030         Windows platforms.
54031
54032 2008-10-21  Bruno Haible  <bruno@clisp.org>
54033
54034         Add gethostname() declaration to <unistd.h>.
54035         * lib/unistd.in.h (gethostname): New declaration.
54036         * lib/gethostname.c: Include <unistd.h>.
54037         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54038         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54040         and HAVE_GETHOSTNAME.
54041         * modules/gethostname (Depends-on): Add unistd.
54042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54043         (Include): Specify <unistd.h>.
54044         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54045         HAVE_GETHOSTNAME.
54046         * tests/test-gethostname.c: Include <unistd.h> first.
54047
54048 2008-10-21  Bruno Haible  <bruno@clisp.org>
54049
54050         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54051         * modules/select-tests (Depends-on): Likewise.
54052         Reported by Simon Josefsson.
54053
54054 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54055
54056         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54057         * lib/accept.c: New file, based on winsock.c.
54058         * lib/bind.c: New file, based on winsock.c.
54059         * lib/connect.c: New file, based on winsock.c.
54060         * lib/getpeername.c: New file, based on winsock.c.
54061         * lib/getsockname.c: New file, based on winsock.c.
54062         * lib/getsockopt.c: New file, based on winsock.c.
54063         * lib/ioctl.c: New file, based on winsock.c.
54064         * lib/listen.c: New file, based on winsock.c.
54065         * lib/recv.c: New file, based on winsock.c.
54066         * lib/recvfrom.c: New file, based on winsock.c.
54067         * lib/send.c: New file, based on winsock.c.
54068         * lib/sendto.c: New file, based on winsock.c.
54069         * lib/setsockopt.c: New file, based on winsock.c.
54070         * lib/shutdown.c: New file, based on winsock.c.
54071         * lib/socket.c: New file, based on winsock.c.
54072         * lib/w32sock.h: New file, based on winsock.c.
54073         * lib/winsock.c: Remove file.
54074         * modules/accept: Likewise.
54075         * modules/bind: Likewise.
54076         * modules/connect: Likewise.
54077         * modules/getpeername: Likewise.
54078         * modules/getsockname: Likewise.
54079         * modules/getsockopt: Likewise.
54080         * modules/ioctl: Likewise.
54081         * modules/listen: Likewise.
54082         * modules/recv: Likewise.
54083         * modules/recvfrom: Likewise.
54084         * modules/send: Likewise.
54085         * modules/sendto: Likewise.
54086         * modules/setsockopt: Likewise.
54087         * modules/shutdown: Likewise.
54088         * modules/socket: Use socket.c instead of winsock.c.
54089         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54090         * doc/posix-functions/accept.texi: Doc fix.
54091         * doc/posix-functions/bind.texi: Doc fix.
54092         * doc/posix-functions/close.texi: Doc fix.
54093         * doc/posix-functions/connect.texi: Doc fix.
54094         * doc/posix-functions/getpeername.texi: Doc fix.
54095         * doc/posix-functions/getsockname.texi: Doc fix.
54096         * doc/posix-functions/getsockopt.texi: Doc fix.
54097         * doc/posix-functions/ioctl.texi: Doc fix.
54098         * doc/posix-functions/listen.texi: Doc fix.
54099         * doc/posix-functions/recv.texi: Doc fix.
54100         * doc/posix-functions/recvfrom.texi: Doc fix.
54101         * doc/posix-functions/send.texi: Doc fix.
54102         * doc/posix-functions/sendto.texi: Doc fix.
54103         * doc/posix-functions/setsockopt.texi: Doc fix.
54104         * doc/posix-functions/shutdown.texi: Doc fix.
54105         * doc/posix-functions/socket.texi: Doc fix.
54106
54107 2008-10-20  Bruno Haible  <bruno@clisp.org>
54108
54109         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54110         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54111         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54112         as an alias for SIGABRT.
54113         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54114         (sigaction): Map it to SIGABRT.
54115         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54116
54117 2008-10-20  Bruno Haible  <bruno@clisp.org>
54118
54119         * lib/fts.c: Don't include lstat.h.
54120         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54121
54122         Move the lstat() declaration to <sys/stat.h>.
54123         * lib/lstat.h: Remove file.
54124         * lib/sys_stat.in.h: Add special invocation convention.
54125         (lstat): New declaration.
54126         * lib/lstat.c (orig_lstat): New function.
54127         (rpl_lstat): Use orig_lstat instead of lstat.
54128         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54129         AC_C_INLINE. Set REPLACE_LSTAT.
54130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54131         and REPLACE_LSTAT.
54132         * modules/lstat (Files): Remove lib/lstat.h.
54133         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54134         (Include): Specify <sys/stat.h> instead of lstat.h.
54135         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54136         REPLACE_LSTAT.
54137         * NEWS: Mention the change.
54138
54139 2008-10-20  Bruno Haible  <bruno@clisp.org>
54140
54141         * modules/posix_spawn-tests: New file.
54142         * tests/test-posix_spawn3.c: New file.
54143
54144 2008-10-20  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54147         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54148         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54149         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54150         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54151
54152 2008-10-20  Bruno Haible  <bruno@clisp.org>
54153
54154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54155         of posix_spawn on AIX 5.3.
54156
54157 2008-10-20  Bruno Haible  <bruno@clisp.org>
54158
54159         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54160
54161 2008-10-20  Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54164         of AC_LANG_PROGRAM.
54165
54166 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54167
54168         * lib/netdb.in.h: Don't define GNU specific constants until they
54169         are supported or needed.  Reported by Bruno Haible
54170         <bruno@clisp.org>.
54171
54172 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54173
54174         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54175
54176 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54177
54178         * lib/getaddrinfo.h: Remove file.
54179         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54180         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54181         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54182         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54183         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54184         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54185         * tests/test-getaddrinfo.c: Likewise.
54186         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54187         * NEWS: Mention change.
54188
54189 2008-10-19  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54192
54193 2008-10-19  Bruno Haible  <bruno@clisp.org>
54194
54195         * lib/wait-process.c: Include simply <sys/wait.h>.
54196         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54197         WIFSTOPPED): Remove fallback definitions.
54198         * modules/wait-process (Depends-on): Add sys_wait.
54199
54200         New module 'sys_wait'.
54201         * modules/sys_wait: New file.
54202         * lib/sys_wait.in.h: New file, partially copied from
54203         lib/wait-process.c.
54204         * m4/sys_wait_h.m4: New file.
54205         * doc/posix-headers/sys_wait.texi: Mention the new module.
54206
54207 2008-10-19  Bruno Haible  <bruno@clisp.org>
54208
54209         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54210
54211 2008-10-19  Bruno Haible  <bruno@clisp.org>
54212
54213         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54214         * lib/wait-process.c (WAIT_T): Remove type.
54215         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54216         (wait_subprocess): Update.
54217
54218 2008-10-19  Bruno Haible  <bruno@clisp.org>
54219
54220         New module 'atoll'.
54221         * modules/atoll: New file.
54222         * lib/stdlib.in.h (atoll): New declaration.
54223         * lib/atoll.c: New file, from glibc with modifications.
54224         * m4/atoll.m4: New file.
54225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54226         HAVE_ATOLL.
54227         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54228         * doc/posix-functions/atoll.texi: Mention the new module.
54229
54230 2008-10-19  Bruno Haible  <bruno@clisp.org>
54231
54232         Add strtoull() declaration to <stdlib.h>.
54233         * lib/stdlib.in.h (strtoull): New declaration.
54234         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54235         Set HAVE_STRTOULL.
54236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54237         HAVE_STRTOULL.
54238         * modules/strtoull (Depends-on): Add stdlib.
54239         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54240         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54241         HAVE_STRTOULL.
54242
54243 2008-10-19  Bruno Haible  <bruno@clisp.org>
54244
54245         Add strtoll() declaration to <stdlib.h>.
54246         * lib/stdlib.in.h (strtoll): New declaration.
54247         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54248         Set HAVE_STRTOLL.
54249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54250         HAVE_STRTOLL.
54251         * modules/strtoll (Depends-on): Add stdlib.
54252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54253         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54254
54255 2008-10-19  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/bcopy (Depends-on): Add strings.
54258         (Include): Specify <strings.h>.
54259
54260 2008-10-19  Bruno Haible  <bruno@clisp.org>
54261
54262         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54263
54264 2008-10-19  Bruno Haible  <bruno@clisp.org>
54265
54266         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54267         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54268         mingw.
54269
54270 2008-10-19  Bruno Haible  <bruno@clisp.org>
54271
54272         * lib/atanl.c: Don't include isnanl.h.
54273         * lib/cosl.c: Likewise.
54274         * lib/ldexpl.c: Likewise.
54275         * lib/logl.c: Likewise.
54276         * lib/sinl.c: Likewise.
54277         * lib/sqrtl.c: Likewise.
54278         * lib/tanl.c: Likewise.
54279
54280         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54281         * lib/isnanf.h: Remove file.
54282         * lib/isnand.h: Remove file.
54283         * lib/isnanl.h: Remove file.
54284         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54285         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54286         macros.
54287         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54288         HAVE_ISNANF, don't define it as a C macro.
54289         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54290         HAVE_ISNAND, don't define it as a C macro.
54291         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54292         HAVE_ISNANL, don't define it as a C macro.
54293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54294         HAVE_ISNAN[FDL].
54295         * modules/isnanf (Files): Remove lib/isnanf.h.
54296         (Depends-on): Add math.
54297         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54298         (Include): Specify <math.h> instead of isnanf.h.
54299         * modules/isnand (Files): Remove lib/isnand.h.
54300         (Depends-on): Add math.
54301         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54302         (Include): Specify <math.h> instead of isnand.h.
54303         * modules/isnanl (Files): Remove lib/isnanl.h.
54304         (Depends-on): Add math.
54305         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54306         (Include): Specify <math.h> instead of isnanl.h.
54307         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54308         HAVE_ISNAN[FDL].
54309         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54310         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54311         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54312         * NEWS: Mention the change.
54313
54314 2008-10-18  Bruno Haible  <bruno@clisp.org>
54315
54316         Add getusershell(), setusershell(), endusershell() declarations to
54317         <unistd.h>.
54318         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54319         declarations.
54320         * lib/getusershell.c: Include unistd.h.
54321         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54322         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54323         HAVE_GETUSERSHELL.
54324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54325         and HAVE_GETUSERSHELL.
54326         * modules/getusershell (Depends-on): Add unistd, extensions.
54327         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54328         (Include): Specify <unistd.h>.
54329         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54330         HAVE_GETUSERSHELL.
54331
54332 2008-10-18  Bruno Haible  <bruno@clisp.org>
54333
54334         Add a getloadavg() declaration to <stdlib.h>.
54335         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54336         getloadavg declaration.
54337         (getloadavg): New declaration.
54338         * lib/getloadavg.c: Include <stdlib.h> first.
54339         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54340         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54341         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54343         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54344         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54346         (Include): Specify <stdlib.h>.
54347         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54348         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54349
54350 2008-10-18  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/dirchownmod.c: Don't include lchmod.h.
54353
54354         Move the lchmod() declaration to <sys/stat.h>.
54355         * lib/lchmod.h: Remove file.
54356         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54357         (lchmod): New declaration, moved here from lib/lchown.h.
54358         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54359         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54360         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54361         and HAVE_LCHMOD.
54362         * modules/lchmod (Files): Remove lib/lchmod.h.
54363         (Depends-on): Add sys_stat, extensions.
54364         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54365         (Include): Specify <sys/stat.h> instead of lchmod.h.
54366         * modules/sys_stat (Depends-on): Add link-warning.
54367         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54368         definition of GL_LINK_WARNING.
54369         * NEWS: Mention the change.
54370
54371 2008-10-18  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/fchdir.c: Don't include dirfd.h.
54374         * lib/fts.c: Likewise.
54375         * lib/getcwd.c: Likewise.
54376         * lib/glob.c: Likewise.
54377
54378         Move the dirfd() declaration to <dirent.h>.
54379         * lib/dirfd.h: Remove file.
54380         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54381         (dirfd): New declaration.
54382         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54383         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54384         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54385         HAVE_DECL_DIRFD.
54386         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54387         HAVE_DECL_DIRFD.
54388         * modules/dirfd (Files): Remove lib/dirfd.h.
54389         (Depends-on): Add dirent, extensions.
54390         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54391         (Include): Specify <dirent.h> instead of dirfd.h.
54392         * modules/dirent (Depends-on): Add link-warning.
54393         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54394         definition of GL_LINK_WARNING.
54395         * NEWS: Mention the change.
54396
54397 2008-10-18  Bruno Haible  <bruno@clisp.org>
54398
54399         Move the euidaccess() declaration to <unistd.h>.
54400         * lib/euidaccess.h: Remove file.
54401         * lib/unistd.in.h (euidaccess): New declaration.
54402         * lib/euidaccess.c: Don't include euidaccess.h.
54403         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54404         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54406         and HAVE_EUIDACCESS.
54407         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54408         (Depends-on): Add unistd.
54409         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54410         (Include): Specify <unistd.h> instead of euidaccess.h.
54411         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54412         HAVE_EUIDACCESS.
54413         * NEWS: Mention the change.
54414
54415 2008-10-18  Bruno Haible  <bruno@clisp.org>
54416
54417         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54418
54419         Move the getdomainname() declaration to <unistd.h>.
54420         * lib/getdomainname.h: Remove file.
54421         * lib/unistd.in.h (getdomainname): New declaration.
54422         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54423         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54424         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54425         HAVE_GETDOMAINNAME.
54426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54427         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54428         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54429         (Depends-on): Add unistd, extensions.
54430         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54431         (Includes): Specify <unistd.h> instead of getdomainname.h.
54432         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54433         HAVE_GETDOMAINNAME.
54434         * NEWS: Mention the change.
54435
54436 2008-10-18  Bruno Haible  <bruno@clisp.org>
54437
54438         * modules/dirent: New file.
54439         * m4/dirent_h.m4: New file.
54440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54441         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54442         * modules/fchdir (Files): Remove lib/dirent.in.h.
54443         (Depends-on): Add dirent.
54444         (Makefile.am): Move rules to modules/dirent.
54445         * doc/posix-headers/dirent.texi: Mention the new module.
54446
54447 2008-10-18  Bruno Haible  <bruno@clisp.org>
54448
54449         Avoid -Wunused-parameter warnings in public gnulib header files.
54450         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54451         macro.
54452         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54453
54454 2008-10-18  Bruno Haible  <bruno@clisp.org>
54455
54456         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54457         * doc/glibc-functions/error.texi: Mention the module 'error'.
54458         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54459         * doc/glibc-functions/getdomainname.texi: Mention the module
54460         'getdomainname'.
54461         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54462         * doc/glibc-functions/getpagesize.texi: Mention the module
54463         'getpagesize'.
54464         * doc/glibc-functions/getusershell.texi: Mention the module
54465         'getusershell'.
54466         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54467         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54468         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54469         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54470         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54471         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54472         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54473         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54474         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54475         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54476         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54477         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54478         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54479         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54480
54481 2008-10-17  Bruno Haible  <bruno@clisp.org>
54482
54483         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54484         HP-UX and IRIX, use -0.0L.
54485         * tests/test-ceill.c (minus_zero): Likewise.
54486         * tests/test-floorl.c (minus_zero): Likewise.
54487         * tests/test-frexpl.c (minus_zero): Likewise.
54488         * tests/test-isnan.c (minus_zerol): Likewise.
54489         * tests/test-isnanl.h (minus_zero): Likewise.
54490         * tests/test-ldexpl.c (minus_zero): Likewise.
54491         * tests/test-roundl.c (minus_zero): Likewise.
54492         * tests/test-signbit.c (minus_zerol): Likewise.
54493         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54494         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54495         * tests/test-truncl.c (minus_zero): Likewise.
54496         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54497         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54498         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54499         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54500
54501 2008-10-17  Bruno Haible  <bruno@clisp.org>
54502
54503         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54504         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54505         that it gets activated only for gcc >= 3.0.
54506         * lib/dirent.in.h: Likewise.
54507         * lib/errno.in.h: Likewise.
54508         * lib/fcntl.in.h: Likewise.
54509         * lib/float.in.h: Likewise.
54510         * lib/iconv.in.h: Likewise.
54511         * lib/inttypes.in.h: Likewise.
54512         * lib/locale.in.h: Likewise.
54513         * lib/math.in.h: Likewise.
54514         * lib/netdb.in.h: Likewise.
54515         * lib/netinet_in.in.h: Likewise.
54516         * lib/search.in.h: Likewise.
54517         * lib/signal.in.h: Likewise.
54518         * lib/spawn.in.h: Likewise.
54519         * lib/stdarg.in.h: Likewise.
54520         * lib/stdint.in.h: Likewise.
54521         * lib/stdio.in.h: Likewise.
54522         * lib/stdlib.in.h: Likewise.
54523         * lib/string.in.h: Likewise.
54524         * lib/strings.in.h: Likewise.
54525         * lib/sys_file.in.h: Likewise.
54526         * lib/sys_ioctl.in.h: Likewise.
54527         * lib/sys_select.in.h: Likewise.
54528         * lib/sys_socket.in.h: Likewise.
54529         * lib/sys_stat.in.h: Likewise.
54530         * lib/sys_time.in.h: Likewise.
54531         * lib/sysexits.in.h: Likewise.
54532         * lib/time.in.h: Likewise.
54533         * lib/unistd.in.h: Likewise.
54534         * lib/wchar.in.h: Likewise.
54535         * lib/wctype.in.h: Likewise.
54536         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54537
54538 2008-10-17  Jim Meyering  <meyering@redhat.com>
54539
54540         ignore-value: don't depend on inline module
54541         * modules/ignore-value (Depends-on): Remove 'inline'.
54542         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54543         Suggestion from Bruno Haible.
54544
54545 2008-10-17  Bruno Haible  <bruno@clisp.org>
54546
54547         New implementation of condition variables for Win32.
54548         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54549         (gl_linked_waitqueue_t): New type.
54550         (gl_cond_t): Use it.
54551         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54552         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54553         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54554         (glthread_cond_init_func, glthread_cond_wait_func,
54555         glthread_cond_timedwait_func, glthread_cond_signal_func,
54556         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54557         Reimplemented on the basis of gl_linked_waitqueue_t.
54558         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54559         gl_waitqueue_t.
54560         (gl_rwlock_t): Update.
54561         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54562
54563 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54564
54565         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54566         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54567
54568 2008-10-17  Jim Meyering  <meyering@redhat.com>
54569
54570         ignore-value: new module
54571         * modules/ignore-value: New file.
54572         * lib/ignore-value.h: New file.
54573         * MODULES.html.sh (Compiler warning management): New section,
54574         just for this module.  More to come.
54575
54576 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54577
54578         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54579         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54580         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54581
54582 2008-10-16  Jim Meyering  <meyering@redhat.com>
54583
54584         openat-die.c: avoid 'no previous prototype' warning
54585         * lib/openat-die.c: Include "openat.h".
54586         Reported by Reuben Thomas <rrt@sc3d.org>.
54587
54588 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54589
54590         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54591         * lib/netdb.in.h: Fix typo.
54592         Reported by Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/netdb.in.h: Include sys/socket.h for platforms without
54595         netdb.h, to get structures like hostent on MinGW.
54596         * modules/netdb (Depends-on): Add sys_socket.
54597
54598 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54599
54600         * modules/netdb, modules/netdb-tests: New file.
54601         * m4/netdb_h.m4: New file.
54602         * lib/netdb.in.h: Add, currently just an empty file pending
54603         definitions.
54604         * tests/test-netdb.c: New file.
54605         * doc/posix-headers/netdb.texi: Mention that we replace it if
54606         needed.
54607         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54608         netdb.
54609
54610 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54611
54612         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54613         with code.
54614
54615 2008-10-13  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/glthread/cond.c (glthread_cond_wait_func,
54618         glthread_cond_timedwait_func): Add a comment.
54619
54620 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54621
54622         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54623         * tests/test-select.c: Likewise,
54624
54625 2008-10-13  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/glthread/cond.c (glthread_cond_wait_func,
54628         glthread_cond_timedwait_func): Fix variable name.
54629         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54630
54631 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54632
54633         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54634         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54635         struct sockaddr.sa_len.
54636         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54637
54638 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54639
54640         * build-aux/pmccabe2html: Add css and css_url parameters.
54641
54642 2008-10-12  Bruno Haible  <bruno@clisp.org>
54643
54644         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54645         calling aclx_get.
54646         Reported by Rainer Tammer <tammer@tammer.net>.
54647
54648 2008-10-12  Bruno Haible  <bruno@clisp.org>
54649
54650         Use msvcrt aware primitives for creation/termination of Win32 threads.
54651         * lib/glthread/thread.c: Include <process.h>.
54652         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54653         (wrapper_func): Update signature.
54654         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54655
54656 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54657             Bruno Haible  <bruno@clisp.org>
54658
54659         Provide a Win32 implementation of the 'cond' module.
54660         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54661         * lib/glthread/cond.c (glthread_cond_init_func,
54662         glthread_cond_wait_func, glthread_cond_timedwait_func,
54663         glthread_cond_signal_func, glthread_cond_broadcast_func,
54664         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54665         * modules/cond (Dependencies): Add gettimeofday.
54666
54667 2008-10-11  Bruno Haible  <bruno@clisp.org>
54668
54669         Make sleep work on older versions of mingw.
54670         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54671         only whether it exists.
54672         * doc/posix-functions/sleep.texi: Mention the problem with older
54673         versions of mingw.
54674
54675 2008-10-11  Bruno Haible  <bruno@clisp.org>
54676
54677         New module 'shutdown'.
54678         * modules/shutdown: New file.
54679         * lib/sys_socket.in.h (shutdown): New declaration.
54680         * lib/winsock.c (shutdown): New function.
54681         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54682         GNULIB_SHUTDOWN.
54683         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54684         * doc/posix-functions/shutdown.texi: Document the new module.
54685
54686 2008-10-11  Jim Meyering  <meyering@redhat.com>
54687
54688         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54689
54690 2008-10-11  Bruno Haible  <bruno@clisp.org>
54691
54692         New module 'fclose'.
54693         * modules/fclose: New file.
54694         * lib/stdio.in.h (fclose): New declaration.
54695         * lib/fclose.c: New file.
54696         * m4/fclose.m4: New file.
54697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54698         REPLACE_FCLOSE.
54699         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54700         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54701         REPLACE_FCLOSE.
54702         * modules/close (Depends-on): fclose.
54703         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54704
54705 2008-10-11  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54708         set errno and don't call _close.
54709
54710 2008-10-10  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54713         ACL, not afterwards. Fixes test failure on Cygwin.
54714
54715 2008-10-09  Ben Pfaff  <blp@gnu.org>
54716
54717         * build-aux/announce-gen: Fix gnulib version related part of usage
54718         message.  Die with a useful error message if no tarballs are
54719         found.
54720
54721 2008-10-10  Jim Meyering  <meyering@redhat.com>
54722
54723         bootstrap: use git's --depth=N option only if it's supported
54724         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54725         recognize the --depth option.  Reported by Pádraig Brady.
54726
54727 2008-10-09  Bruno Haible  <bruno@clisp.org>
54728
54729         New module 'ioctl'.
54730         * modules/ioctl: New file.
54731         * lib/sys_socket.in.h (ioctl): Remove declaration.
54732         * lib/winsock.c: Include <sys/ioctl.h>.
54733         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54734         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54735         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54736         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54737         * doc/posix-functions/ioctl.texi: Mention the new module.
54738
54739 2008-10-09  Bruno Haible  <bruno@clisp.org>
54740
54741         New module 'sys_ioctl'.
54742         * lib/sys_ioctl.in.h: New file.
54743         * m4/sys_ioctl_h.m4: New file.
54744         * modules/sys_ioctl: New file.
54745         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54746
54747 2008-10-09  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54750         * lib/winsock.c: Include <stdarg.h>.
54751         (rpl_ioctl): Change to second argument 'int' and then varargs.
54752
54753 2008-10-09  Bruno Haible  <bruno@clisp.org>
54754
54755         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54756         when the sys_socket module is present and the system has <winsock2.h>.
54757
54758 2008-10-09  Bruno Haible  <bruno@clisp.org>
54759
54760         * doc/posix-functions/close.texi: Mention module 'close' instead of
54761         module 'sys_socket'.
54762
54763 2008-10-09  Bruno Haible  <bruno@clisp.org>
54764
54765         * doc/glibc-headers/sys_ioctl.texi: New file.
54766         * doc/gnulib.texi: Include it.
54767
54768 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54769             Bruno Haible  <bruno@clisp.org>
54770
54771         Combine the two replacements of 'close'.
54772         * lib/sys_socket.in.h (close): Define to a reminder to include
54773         <unistd.h>.
54774         (_gl_close_fd_maybe_socket): New declaration.
54775         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54776         * lib/winsock.c (close): Remove undefinition.
54777         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54778         needed for the gnulib module 'close'.
54779         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54780         define to an error symbol or to a warning, if suitable.
54781         * lib/close.c: Include <sys/socket.h>.
54782         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54783         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54784         UNISTD_H_HAVE_WINSOCK2_H.
54785         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54787         UNISTD_H_HAVE_WINSOCK2_H.
54788         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54789         (configure.ac): Set a module indicator.
54790         (Makefile.am): Substitute GNULIB_CLOSE.
54791         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54792         * modules/poll-tests (Depends-on): Add close.
54793         * modules/select-tests (Depends-on): Likewise.
54794
54795 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54796             Bruno Haible  <bruno@clisp.org>
54797
54798         New module 'close'.
54799         * modules/close: New file.
54800         * lib/unistd.in.h (close): Move declaration out of the
54801         FCHDIR_REPLACEMENT scope.
54802         (_gl_unregister_fd): New declaration.
54803         * lib/close.c: New file.
54804         * lib/fchdir.c (rpl_close): Remove function.
54805         * m4/close.m4: New file.
54806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54807         close.
54808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54809         REPLACE_CLOSE.
54810         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54811         REPLACE_CLOSE.
54812         * modules/fchdir (Depends-on): Add close.
54813
54814 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54815             Bruno Haible  <bruno@clisp.org>
54816
54817         * lib/fcntl.in.h (open): Simplify conditionals.
54818         (_gl_register_fd): New declaration.
54819         * lib/fchdir.c (rpl_open): Remove function.
54820         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54821         also.
54822         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54824         open.
54825
54826 2008-10-09  Jim Meyering  <meyering@redhat.com>
54827
54828         GNUmakefile: use the more name-space-friendly "_version"
54829         * top/GNUmakefile (_dummy): Update.
54830         (_version): Rename from "version".
54831
54832 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54833             Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54836         rpl_close.
54837         (_gl_register_fd): New function, extracted from rpl_open.
54838         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54839         (rpl_open, rpl_opendir): Use _gl_register_fd.
54840
54841 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54842
54843         Fix organization of 'open' replacement.
54844         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54845         (gl_FUNC_OPEN): Use it.
54846         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54847
54848 2008-10-08  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54851
54852 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54853
54854         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54855         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54856         listen).
54857
54858 2008-10-08  Eric Blake  <ebb9@byu.net>
54859
54860         GNUmakefile: add 'make version' target
54861         * top/GNUmakefile (_curr-ver): Split version update rules...
54862         (version): ...into a target.
54863
54864 2008-10-07  Bruno Haible  <bruno@clisp.org>
54865
54866         Use a more portable replacement expression for -0.0L.
54867         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54868         instead of -0.0L. Fix m4 quotation.
54869
54870         * tests/test-signbit.c: Include <float.h>.
54871         (minus_zero): New variable.
54872         (test_signbitl): Use minus_zero instead of -zero.
54873         * modules/signbit-tests (Depends-on): Add float.
54874
54875         * tests/test-ceill.c: Include <float.h>.
54876         (zero): Remove variable.
54877         (minus_zero): New variable.
54878         (main): Use minus_zero instead of -zero.
54879         * modules/ceill-tests (Depends-on): Add float.
54880
54881         * tests/test-floorl.c: Include <float.h>.
54882         (zero): Remove variable.
54883         (minus_zero): New variable.
54884         (main): Use minus_zero instead of -zero.
54885         * modules/floorl-tests (Depends-on): Add float.
54886
54887         * tests/test-roundl.c: Include <float.h>.
54888         (zero): Remove variable.
54889         (minus_zero): New variable.
54890         (main): Use minus_zero instead of -zero.
54891         * modules/roundl-tests (Depends-on): Add float.
54892
54893         * tests/test-truncl.c: Include <float.h>.
54894         (zero): Remove variable.
54895         (minus_zero): New variable.
54896         (main): Use minus_zero instead of -zero.
54897         * modules/truncl-tests (Depends-on): Add float.
54898
54899         * tests/test-frexpl.c (zero): Remove variable.
54900         (minus_zero): New variable.
54901         (main): Use minus_zero instead of -zero.
54902         * modules/frexpl-tests (Depends-on): Add float.
54903
54904         * tests/test-isnan.c (zerol): Remove variable.
54905         (minus_zerol): New variable.
54906         (test_long_double): Use minus_zerol instead of -zerol.
54907         * modules/isnan-tests (Depends-on): Add float.
54908
54909         * tests/test-isnanl.h (zero): Remove variable.
54910         (minus_zero): New variable.
54911         (main): Use minus_zero instead of -zero.
54912         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54913         * modules/isnanl-tests (Depends-on): Add float.
54914
54915         * tests/test-ldexpl.c (zero): Remove variable.
54916         (minus_zero): New variable.
54917         (main): Use minus_zero instead of -zero.
54918         * modules/ldexpl-tests (Depends-on): Add float.
54919
54920         * tests/test-snprintf-posix.h (zerol): Remove variable.
54921         (minus_zerol): New variable.
54922         (test_function): Use minus_zerol instead of -zerol.
54923         * modules/snprintf-posix-tests (Depends-on): Add float.
54924         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54925
54926         * tests/test-sprintf-posix.h (zerol): Remove variable.
54927         (minus_zerol): New variable.
54928         (test_function): Use minus_zerol instead of -zerol.
54929         * modules/sprintf-posix-tests (Depends-on): Add float.
54930         * modules/vsprintf-posix-tests (Depends-on): Add float.
54931
54932         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54933         (minus_zerol): New variable.
54934         (test_function): Use minus_zerol instead of -zerol.
54935         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54936
54937         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54938         (minus_zerol): New variable.
54939         (test_function): Use minus_zerol instead of -zerol.
54940         * modules/vasprintf-posix-tests (Depends-on): Add float.
54941
54942 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54943
54944         * MODULES.html.sh (Support for building documentation): Mention
54945         pmccabe2html.  Sort entries.
54946
54947         Add pmccabe2html module, from gnupdf.
54948         * build-aux/pmccabe.css: New file.
54949         * build-aux/pmccabe2html: New file.
54950         * m4/pmccabe2html.m4: New file.
54951         * modules/pmccabe2html: New file.
54952
54953 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54954
54955         flock: new module
54956         * MODULES.html.sh: Add to list of modules.
54957         * lib/flock.c: flock implementation for Windows and Unix systems
54958         which have fcntl.
54959         * doc/glibc-functions/flock.texi: Update documentation.
54960         * lib/sys_file.in.h: <sys/file.h> header file.
54961         * m4/flock.m4: M4 macros.
54962         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54963         * modules/flock: flock module.
54964         * modules/flock-tests: flock tests module.
54965         * modules/sys_file: sys/file.h module.
54966         * tests/test-flock.c: test suite for flock.
54967
54968 2008-10-06  Jim Meyering  <meyering@redhat.com>
54969
54970         bootstrap: check for LT_INIT more portably still ;-)
54971         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54972         Spotted by Bruno Haible.
54973
54974 2008-10-06  Eric Blake  <ebb9@byu.net>
54975
54976         test-signbit: avoid tripping Irix cc bug on -0.0L
54977         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54978         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54979         entire testsuite consistent and avoids an Irix 6.2 bug.
54980
54981 2008-10-05  Bruno Haible  <bruno@clisp.org>
54982             Jim Meyering  <jim@meyering.net>
54983
54984         Add an option for ignoring EPIPE during close_stdout.
54985         * lib/closeout.h: Include <stdbool.h>.
54986         (close_stdout_set_ignore_EPIPE): New declaration.
54987         * lib/closeout.c: Include <stdbool.h>.
54988         (ignore_EPIPE): New variable.
54989         (close_stdout_set_ignore_EPIPE): New function.
54990         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54991         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54992         failure.
54993         * modules/closeout (Depends-on): Add stdbool.
54994
54995 2008-10-05  Bruno Haible  <bruno@clisp.org>
54996
54997         * modules/accept: New file.
54998         * modules/bind: New file.
54999         * modules/connect: New file.
55000         * modules/getpeername: New file.
55001         * modules/getsockname: New file.
55002         * modules/getsockopt: New file.
55003         * modules/listen: New file.
55004         * modules/recv: New file.
55005         * modules/recvfrom: New file.
55006         * modules/send: New file.
55007         * modules/sendto: New file.
55008         * modules/setsockopt: New file.
55009         * modules/socket: New file.
55010         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55011         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55012         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55013         the particular module is requested. Add a link warning when the
55014         particular module is not requested.
55015         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55016         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55017         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55018         the particular module is requested.
55019         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55020         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55021         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55022         * modules/sys_socket (Depends-on): Add link-warning.
55023         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55024         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55025         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55026         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55027         GL_LINK_WARNING.
55028         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55029         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55030         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55031         * doc/posix-functions/getpeername.texi: Mention the new module
55032         'getpeername'.
55033         * doc/posix-functions/getsockname.texi: Mention the new module
55034         'getsockname'.
55035         * doc/posix-functions/getsockopt.texi: Mention the new module
55036         'getsockopt'.
55037         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55038         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55039         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55040         * doc/posix-functions/send.texi: Mention the new module 'send'.
55041         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55042         * doc/posix-functions/setsockopt.texi: Mention the new module
55043         'setsockopt'.
55044         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55045         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55046         listen, connect, accept.
55047         * modules/select-tests (Depends-on): Likewise.
55048
55049 2008-10-05  Bruno Haible  <bruno@clisp.org>
55050
55051         * lib/winsock.c (strerror): Remove unused #undef.
55052         (rpl_close): Remove unused local variable.
55053
55054         * modules/sys_socket (Depends-on); Add errno.
55055
55056 2008-10-05  Bruno Haible  <bruno@clisp.org>
55057
55058         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55059         (select): Add a link warning when the 'select' module is not used.
55060         * modules/sys_select (Depends-on): Add link-warning.
55061         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55062         Suggested by Paolo Bonzini.
55063
55064 2008-10-05  Jim Meyering  <meyering@redhat.com>
55065
55066         bootstrap: check for LT_INIT more portably
55067         * build-aux/bootstrap: Avoid using grep -E, since it's not
55068         portable enough.  Suggestion from Bruno Haible.
55069
55070 2008-10-05  Bruno Haible  <bruno@clisp.org>
55071
55072         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55073         as being fixed by gnulib.
55074
55075 2008-10-05  Bruno Haible  <bruno@clisp.org>
55076
55077         * modules/select-tests: New file, mostly copied from
55078         modules/sys_select-tests.
55079         * tests/test-select.c: New file, mostly copied from
55080         tests/test-sys_select.c.
55081         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55082         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55083         (Makefile.am): Remove test_sys_select_LDADD.
55084
55085         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55086         to an undefined symbol, for an error message.
55087         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55088         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55089         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55090         winsock-select.c here.
55091         * modules/sys_select (Files): Remove lib/winsock-select.c.
55092         (Depends-on): Remove alloca.
55093         (Makefile.am): Substitute GNULIB_SELECT.
55094         * modules/select: New file.
55095         * doc/posix-functions/select.texi: Update.
55096
55097 2008-10-05  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55100         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55101         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55102         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55103         getdtablesize.
55104         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55105         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55106
55107 2008-10-05  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/getdtablesize-tests: New file.
55110         * tests/test-getdtablesize.c: New file.
55111
55112         New module 'getdtablesize'.
55113         * lib/unistd.in.h (getdtablesize): New declaration.
55114         * lib/getdtablesize.c: New file.
55115         * m4/getdtablesize.m4: New file.
55116         * modules/getdtablesize: New file.
55117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55118         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55119         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55120         HAVE_GETDTABLESIZE.
55121         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55122
55123 2008-10-05  Bruno Haible  <bruno@clisp.org>
55124
55125         * modules/sched (Makefile.am): Fix typo.
55126         Reported by Simon Josefsson.
55127
55128 2008-10-05  Jim Meyering  <meyering@redhat.com>
55129
55130         bootstrap: check for LT_INIT, too
55131         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55132         are deprecated.  Suggestion from Ralf Wildenhues.
55133
55134 2008-10-05  Bruno Haible  <bruno@clisp.org>
55135
55136         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55137         overriding them by ours.
55138         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55139
55140 2008-10-05  Jim Meyering  <meyering@redhat.com>
55141
55142         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55143         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55144         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55145
55146 2008-10-04  Bruno Haible  <bruno@clisp.org>
55147
55148         * modules/dup2 (License): Change to LGPLv2+.
55149         * modules/sleep (License): Likewise.
55150         * modules/perror (License): Likewise.
55151         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55152         Blake.
55153         * modules/signal (License): Likewise.
55154         * modules/sigprocmask (License): Likewise.
55155         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55156         Meyering.
55157
55158 2008-10-04  Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55161         Reported by Rainer Tammer <tammer@tammer.net>.
55162
55163 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55164             Bruno Haible  <bruno@clisp.org>
55165
55166         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55167         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55168         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55169
55170 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55171
55172         filevercmp: new module
55173         * lib/filevercmp.h: New function filevercmp comparing version strings.
55174         * lib/filevercmp.c: Implementation of filevercmp function.
55175         * modules/filevercmp: Module metadata.
55176         * tests/test-filevercmp.c: Unit test for new module.
55177         * modules/filevercmp-tests: Unit test metadata.
55178         * MODULES.html.sh: Add filevercmp module.
55179
55180 2008-10-03  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/c-ctype.h: Add comment.
55183         Reported by Jim Meyering.
55184
55185 2008-10-02  Bruno Haible  <bruno@clisp.org>
55186
55187         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55188
55189 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55190
55191         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55192         name of bootstrap.conf accordingly.
55193
55194 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55195
55196         * build-aux/bootstrap: Install git-merge-changelog configuration
55197         items into .gitconfig if needed.
55198
55199 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55200
55201         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55202         git repository, and initialize/update it accordingly.
55203
55204 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55205
55206         * modules/fsync-tests: New file.
55207         * tests/test-fsync.c: New file.
55208
55209         New module 'fsync'.
55210         * lib/fsync.c: New file.
55211         * m4/fsync.m4: New file.
55212         * modules/fsync: New file.
55213         * lib/unistd.in.h (fsync): New declaration.
55214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55215         GNULIB_FSYNC and HAVE_FSYNC.
55216         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55217         * MODULES.html.sh (posix_functions): Add fsync.
55218         * doc/posix-functions/fsync.texi: Mention the new module.
55219
55220 2008-10-02  Jim Meyering  <meyering@redhat.com>
55221
55222         fts.c: sync with similar code from coreutils' remove.c
55223         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55224         Guard also with "#if defined __linux__", since for now at least,
55225         this code is Linux-kernel-specific.
55226
55227 2008-10-02  Jim Meyering  <meyering@redhat.com>
55228
55229         fts: bug fixes
55230         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55231         Include <sys/vfs.h>, not <sys/statfs.h>.
55232
55233         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55234         Include <sys/vfs.h>, not <sys/statfs.h>.
55235
55236 2008-10-01  Bruno Haible  <bruno@clisp.org>
55237
55238         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55240         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55241         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55242         * doc/posix-functions/posix_spawnp.texi: Likewise.
55243         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55244         whether posix_spawn actually works.
55245         * m4/pipe.m4 (gl_PIPE): Likewise.
55246         * modules/execute (Files): Add m4/posix_spawn.m4.
55247         * modules/pipe (Files): Add m4/posix_spawn.m4.
55248         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55249
55250 2008-10-01  Jim Meyering  <meyering@redhat.com>
55251
55252         remove trailing spaces
55253         * NEWS: Likewise.
55254         * lib/poll.c (poll): Likewise.
55255         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55256         * lib/winsock.c (rpl_close): Likewise.
55257         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55258         * modules/yield: Likewise.
55259         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55260         * tests/test-sys_select.c (connect_to_socket): Likewise.
55261
55262         fts.c: adjust a new interface to be more generally useful
55263         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55264         (fts_build): Adjust caller.
55265
55266 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55267
55268         * modules/cond-tests: New file.
55269         * tests/test-cond.c: New file.
55270
55271 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55272             Bruno Haible  <bruno@clisp.org>
55273
55274         * modules/cond (Dependencies): Add errno, time.
55275         * lib/glthread/cond.h: Include <time.h>.
55276         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55277         across platforms.
55278
55279 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55280             Bruno Haible  <bruno@clisp.org>
55281
55282         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55283
55284 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55285             Bruno Haible  <bruno@clisp.org>
55286
55287         * modules/tls-tests (Depends-on): Add thread, yield.
55288         (configure.ac): Remove all checks.
55289         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55290         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55291         gl_thread_self): Remove definitions. Include glthread/thread.h and
55292         glthread/yield.h instead.
55293         (test_tls): Pass an additional NULL argument to gl_thread_join.
55294
55295 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55296             Bruno Haible  <bruno@clisp.org>
55297
55298         * modules/lock-tests (Depends-on): Add thread, yield.
55299         (configure.ac): Remove all checks.
55300         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55301         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55302         gl_thread_self): Remove definitions. Include glthread/thread.h and
55303         glthread/yield.h instead.
55304         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55305         additional NULL argument to gl_thread_join.
55306
55307 2008-09-30  Bruno Haible  <bruno@clisp.org>
55308
55309         Fix the Win32 implementation of the 'thread' module.
55310         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55311         pointer type.
55312         (gl_thread_self): Invoke gl_thread_self_func.
55313         (gl_thread_self_func): New declaration.
55314         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55315         (do_init_self_key, init_self_key): New functions.
55316         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55317         Remove some fields.
55318         (running_threads, running_lock): Remove variables.
55319         (get_current_thread_handle): New function.
55320         (gl_thread_self_func, wrapper_func, glthread_create_func,
55321         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55322         simplified.
55323
55324 2008-09-30  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55327         files.
55328
55329 2008-09-30  Jim Meyering  <meyering@redhat.com>
55330
55331         fts.m4: correct the test for statfs.f_type
55332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55333         when checking for statfs.f_type.
55334
55335 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55336
55337         tests: avoid some compiler warnings
55338         * tests/test-memchr.c (main): Pass NULL indirectly.
55339         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55340
55341 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55342
55343         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55344         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55345         exactly specified dayshifts.
55346         (dayshift): New rule.
55347         (rel): Add dayshift.
55348         (relative_time_table) [tomorrow, yesterday, today, now]:
55349         Use tDAY_SHIFT in place of tDAY_UNIT.
55350         * tests/test-getdate.c: Add tests for now-disallowed countable
55351         dayshifts, e.g., "4 yesterday ago".
55352
55353 2008-09-29  Bruno Haible  <bruno@clisp.org>
55354
55355         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55356         * tests/test-posix_spawn1.in.sh: Renamed from
55357         tests/test-posix_spawn.in.sh.
55358         * tests/test-posix_spawn2.c: New file.
55359         * tests/test-posix_spawn2.in.sh: New file.
55360         * modules/posix_spawnp-tests (Files): Update.
55361         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55362
55363 2008-09-29  Bruno Haible  <bruno@clisp.org>
55364
55365         Propagate effects of putenv/setenv/unsetenv to child processes.
55366         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55367         * lib/pipe.c (create_pipe): Likewise.
55368
55369 2008-09-29  Bruno Haible  <bruno@clisp.org>
55370
55371         Enable use of shell scripts as executables in mingw.
55372         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55373         run the program as a shell script.
55374         * lib/pipe.c (create_pipe): Likewise.
55375         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55376         resulting array.
55377
55378 2008-09-29  Eric Blake  <ebb9@byu.net>
55379
55380         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55381
55382 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55383
55384         * doc/posix-functions/accept.texi: Update mingw problems.
55385         * doc/posix-functions/bind.texi: Update mingw problems.
55386         * doc/posix-functions/close.texi: Update mingw problems.
55387         * doc/posix-functions/connect.texi: Update mingw problems.
55388         * doc/posix-functions/getpeername.texi: Update mingw problems.
55389         * doc/posix-functions/getsockname.texi: Update mingw problems.
55390         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55391         * doc/posix-functions/ioctl.texi: Update mingw problems.
55392         * doc/posix-functions/listen.texi: Update mingw problems.
55393         * doc/posix-functions/recv.texi: Update mingw problems.
55394         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55395         * doc/posix-functions/select.texi: Update mingw problems.
55396         * doc/posix-functions/send.texi: Update mingw problems.
55397         * doc/posix-functions/sendto.texi: Update mingw problems.
55398         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55399         * doc/posix-functions/socket.texi: Update mingw problems.
55400
55401 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55402             Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/sys_select.in.h: Include sys/time.h.
55405         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55406         * modules/sys_select: Depend on sys_time.
55407         * tests/test-sys_select.c: Test that sys/select.h defines struct
55408         timeval fully.
55409
55410 2008-09-29  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55413         * lib/sys_select.in.h: Likewise.
55414
55415 2008-09-29  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55418
55419 2008-09-29  Bruno Haible  <bruno@clisp.org>
55420
55421         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55422         Set LIBSOCKET instead of augmenting LIBS.
55423         * modules/sockets (Link): New section.
55424         * modules/sockets-tests (test_sockets_LDADD): New variable.
55425         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55426         * modules/poll-tests (test_poll_LDADD): New variable.
55427         * NEWS: Document the change.
55428
55429 2008-09-29  Bruno Haible  <bruno@clisp.org>
55430
55431         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55432         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55433         ARPA_INET_H directly.
55434         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55435
55436 2008-09-28  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55439         from gl_HEADER_SYS_SOCKET.
55440         (gl_HEADER_SYS_SOCKET): Invoke it.
55441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55442
55443 2008-09-28  Bruno Haible  <bruno@clisp.org>
55444
55445         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55446         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55447         Needed on OSF/1 4.0.
55448
55449 2008-09-28  Bruno Haible  <bruno@clisp.org>
55450
55451         Override open more carefully.
55452         * lib/open.c (orig_open): New function.
55453         (rpl_open): Use orig_open instead of open.
55454         * lib/fcntl.in.h: Add special invocation convention.
55455         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55456         (gl_FUNC_OPEN): Invoke it.
55457
55458         Override freopen more carefully.
55459         * lib/freopen.c (orig_freopen): New function.
55460         (rpl_freopen): Use orig_freopen instead of freopen.
55461         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55462         (gl_FUNC_FREOPEN): Invoke it.
55463
55464         Override fopen more carefully.
55465         * lib/fopen.c (orig_fopen): New function.
55466         (rpl_fopen): Use orig_fopen instead of fopen.
55467         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55468         (gl_FUNC_FOPEN): Invoke it.
55469         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55470
55471 2008-09-28  Bruno Haible  <bruno@clisp.org>
55472
55473         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55474         SIGPIPE.
55475
55476 2008-09-28  Bruno Haible  <bruno@clisp.org>
55477
55478         * tests/test-sigaction.c (handler, main): Disable the check whether
55479         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55480         glibc systems with LinuxThreads.
55481
55482 2008-09-28  Bruno Haible  <bruno@clisp.org>
55483
55484         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55485
55486         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55487         with AIX xlc.
55488         * lib/fcntl.in.h (open): Likewise.
55489         Reported by Rainer Tammer <tammer@tammer.net>.
55490
55491 2008-09-28  Bruno Haible  <bruno@clisp.org>
55492
55493         * modules/posix_spawnp-tests: New file.
55494         * tests/test-posix_spawn.c: New file.
55495         * tests/test-posix_spawn.in.sh: New file.
55496
55497         New module 'posix_spawnp'.
55498         * modules/posix_spawnp: New file.
55499         * lib/spawnp.c: New file, from GNU libc with modifications.
55500         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55501
55502         New module 'posix_spawn'.
55503         * modules/posix_spawn: New file.
55504         * lib/spawn.c: New file, from GNU libc with modifications.
55505         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55506
55507         New module 'posix_spawnattr_destroy'.
55508         * modules/posix_spawnattr_destroy: New file.
55509         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55510         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55511         module.
55512
55513         New module 'posix_spawnattr_setsigmask'.
55514         * modules/posix_spawnattr_setsigmask: New file.
55515         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55516         modifications.
55517         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55518         new module.
55519
55520         New module 'posix_spawnattr_getsigmask'.
55521         * modules/posix_spawnattr_getsigmask: New file.
55522         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55523         modifications.
55524         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55525         new module.
55526
55527         New module 'posix_spawnattr_setsigdefault'.
55528         * modules/posix_spawnattr_setsigdefault: New file.
55529         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55530         modifications.
55531         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55532         new module.
55533
55534         New module 'posix_spawnattr_getsigdefault'.
55535         * modules/posix_spawnattr_getsigdefault: New file.
55536         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55537         modifications.
55538         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55539         new module.
55540
55541         New module 'posix_spawnattr_setschedpolicy'.
55542         * modules/posix_spawnattr_setschedpolicy: New file.
55543         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55544         modifications.
55545         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55546         new module.
55547
55548         New module 'posix_spawnattr_getschedpolicy'.
55549         * modules/posix_spawnattr_getschedpolicy: New file.
55550         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55551         modifications.
55552         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55553         new module.
55554
55555         New module 'posix_spawnattr_setschedparam'.
55556         * modules/posix_spawnattr_setschedparam: New file.
55557         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55558         modifications.
55559         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55560         new module.
55561
55562         New module 'posix_spawnattr_getschedparam'.
55563         * modules/posix_spawnattr_getschedparam: New file.
55564         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55565         modifications.
55566         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55567         new module.
55568
55569         New module 'posix_spawnattr_setpgroup'.
55570         * modules/posix_spawnattr_setpgroup: New file.
55571         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55572         modifications.
55573         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55574         module.
55575
55576         New module 'posix_spawnattr_getpgroup'.
55577         * modules/posix_spawnattr_getpgroup: New file.
55578         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55579         modifications.
55580         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55581         module.
55582
55583         New module 'posix_spawnattr_setflags'.
55584         * modules/posix_spawnattr_setflags: New file.
55585         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55586         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55587         module.
55588
55589         New module 'posix_spawnattr_getflags'.
55590         * modules/posix_spawnattr_getflags: New file.
55591         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55592         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55593         module.
55594
55595         New module 'posix_spawnattr_init'.
55596         * modules/posix_spawnattr_init: New file.
55597         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55598         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55599         module.
55600
55601         New module 'posix_spawn_file_actions_destroy'.
55602         * modules/posix_spawn_file_actions_destroy: New file.
55603         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55604         modifications.
55605         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55606         the new module.
55607
55608         New module 'posix_spawn_file_actions_addopen'.
55609         * modules/posix_spawn_file_actions_addopen: New file.
55610         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55611         modifications.
55612         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55613         the new module.
55614
55615         New module 'posix_spawn_file_actions_adddup2'.
55616         * modules/posix_spawn_file_actions_adddup2: New file.
55617         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55618         modifications.
55619         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55620         the new module.
55621
55622         New module 'posix_spawn_file_actions_addclose'.
55623         * modules/posix_spawn_file_actions_addclose: New file.
55624         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55625         modifications.
55626         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55627         the new module.
55628
55629         New module 'posix_spawn_file_actions_init'.
55630         * modules/posix_spawn_file_actions_init: New file.
55631         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55632         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55633         new module.
55634
55635         New module 'posix_spawn-internal'.
55636         * modules/posix_spawn-internal: New file.
55637         * lib/spawn_int.h: New file, from GNU libc with modifications.
55638         * lib/spawni.c: New file, from GNU libc with modifications.
55639         * m4/posix_spawn.m4: New file.
55640
55641         New module 'spawn'.
55642         * modules/spawn: New file.
55643         * lib/spawn.in.h: New file, from GNU libc with modifications.
55644         * m4/spawn_h.m4: New file.
55645         * doc/posix-headers/spawn.texi: Mention the new module.
55646
55647 2008-09-28  Bruno Haible  <bruno@clisp.org>
55648
55649         * modules/sched-tests: New file.
55650         * tests/test-sched.c: New file.
55651
55652         New module 'sched'.
55653         * modules/sched: New file.
55654         * lib/sched.in.h: New file.
55655         * m4/sched_h.m4: New file.
55656         * doc/posix-headers/sched.texi: Mention the new module.
55657
55658 2008-09-27  Eric Blake  <ebb9@byu.net>
55659
55660         Fix previous patch, and tweak references to $0.
55661         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55662         (func_version, func_gnulib_dir): Don't call this program
55663         gnulib-tool.
55664         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55665         with using $0 in function.
55666         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55667         (func_fatal_error): Reuse the name the user invoked us with.
55668
55669 2008-09-27  Bruno Haible  <bruno@clisp.org>
55670
55671         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55672         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55673         (gl_ICONV_H): Not here.
55674         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55675         instead of assigning ICONV_H directly.
55676
55677         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55679         WCHAR_H directly.
55680
55681 2008-09-27  Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55684         * modules/arpa_inet (Depends-on): Add link-warning.
55685         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55686         * modules/unistd (Makefile.am): Likewise.
55687
55688 2008-09-26  Bruno Haible  <bruno@clisp.org>
55689
55690         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55691         variables.
55692         (func_version): Essentially copied from gnulib-tool.
55693         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55694         func_readlink): Copied from gnulib-tool.
55695
55696 2008-09-26  Bruno Haible  <bruno@clisp.org>
55697
55698         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55699         invoking git-version-gen.
55700
55701 2008-09-26  Bruno Haible  <bruno@clisp.org>
55702
55703         * posix-modules: Update to directory names changed on 2008-01-19.
55704         Remove commas in output before splitting into words. No more need to
55705         avoid 'ftruncate' since 2007-02-19.
55706
55707 2008-09-26  Bruno Haible  <bruno@clisp.org>
55708
55709         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55710
55711 2008-09-26  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55714         * modules/fwriteerror (Depends-on): Add errno.
55715
55716 2008-09-26  Bruno Haible  <bruno@clisp.org>
55717
55718         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55719         * tests/test-vc-list-files-cvs.sh: Likewise.
55720
55721 2008-09-26  Bruno Haible  <bruno@clisp.org>
55722
55723         * doc/posix-headers/sys_resource.texi: Reorder items.
55724
55725 2008-09-26  Jim Meyering  <meyering@redhat.com>
55726
55727         fts: tweak inode comparison function
55728         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55729         inode numbers, as documented.
55730
55731         fts: sort dirent entries on inode number before traversing
55732         This avoids a quadratic, seek-related performance penalty when
55733         operating on a directory containing many entries (measurable at 10k;
55734         3.5 hours at 2 million entries with a cold cache) on certain types
55735         of file systems, including ext3 and ext4, but not tmpfs.
55736         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55737         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55738         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55739         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55740         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55741         (fts_build): Set the stat.st_ino member from D_INO.
55742         If it is likely to be useful, sort dirent entries on inode number.
55743
55744         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55745         and the struct statfs.f_type member.
55746         * modules/fts (Depends-on): Add d-ino.
55747
55748 2008-09-26  Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/sigpipe-die (Depends-on): Add sigpipe.
55751
55752         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55753         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55754         and GNULIB_STDIO_H_SIGPIPE are set.
55755         * lib/stdio-write.c: New file.
55756         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55757         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55758         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55759         REPLACE_STDIO_WRITE_FUNCS.
55760         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55761         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55762         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55763         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55764         * modules/stdio (Files): Add lib/stdio-write.c.
55765         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55766         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55767         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55768         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55769         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55770         REPLACE_FPRINTF_POSIX.
55771         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55772         REPLACE_PRINTF_POSIX.
55773         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55774         REPLACE_VFPRINTF_POSIX.
55775         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55776         REPLACE_VPRINTF_POSIX.
55777         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55778         SIGPIPE issue.
55779         * doc/posix-functions/fputc.texi: Likewise.
55780         * doc/posix-functions/fputs.texi: Likewise.
55781         * doc/posix-functions/fwrite.texi: Likewise.
55782         * doc/posix-functions/printf.texi: Likewise.
55783         * doc/posix-functions/putc.texi: Likewise.
55784         * doc/posix-functions/putchar.texi: Likewise.
55785         * doc/posix-functions/puts.texi: Likewise.
55786         * doc/posix-functions/vfprintf.texi: Likewise.
55787         * doc/posix-functions/vprintf.texi: Likewise.
55788
55789         * modules/safe-write (Depends-on): Add write.
55790
55791         * modules/sigpipe-tests: New file.
55792         * tests/test-sigpipe.c: New file.
55793         * tests/test-sigpipe.sh: New file.
55794
55795         * modules/write: New file.
55796         * lib/unistd.in.h: Include <sys/types.h>.
55797         (write): New declaration.
55798         * lib/write.c: New file.
55799         * m4/write.m4: New file.
55800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55801         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55802         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55803         GNULIB_WRITE, REPLACE_WRITE.
55804         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55805         and the SIGPIPE issue.
55806
55807         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55808         (raise): New declaration.
55809         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55810         (ext_signal): New function.
55811         (rpl_raise): New function.
55812         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55813         GNULIB_SIGNAL_H_SIGPIPE.
55814         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55815         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55816
55817         * modules/sigpipe: New file.
55818         * m4/sigpipe.m4: New file.
55819
55820 2008-09-25  Derek Price  <derek@ximbiot.com>
55821             Bruno Haible  <bruno@clisp.org>
55822
55823         * gnulib-tool (func_import): Report all license incompatibilities, not
55824         just the first one.
55825
55826 2008-09-25  Bruno Haible  <bruno@clisp.org>
55827
55828         * gnulib-tool (func_import): When computing the edits, consider not
55829         only the Makefile.ams that exist but also those that will be generated.
55830
55831 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55832
55833         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55834         fixes gnulib-tool --test warning about duplicate dependency.
55835
55836 2008-09-25  Bruno Haible  <bruno@clisp.org>
55837
55838         * gnulib-tool: Don't ask the user to perform edits in the generated
55839         Makefile.ams.
55840         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55841         apply to the Makefile.am being generated.
55842         (func_emit_tests_Makefile_am): Execute edits that apply to the
55843         Makefile.am being generated.
55844         (func_import): Setup list of Makefile.am edits before emitting the
55845         Makefile.ams, not at the end.
55846         (func_create_testdir): Update.
55847         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55848
55849 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55850
55851         * gnulib-tool (func_import): Store the --tests-base option in the
55852         comment in gnulib-cache.m4.
55853
55854 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55855
55856         * NEWS: Document increased portability that sys_select now provides.
55857
55858         * lib/sys_select.in.h: Install select wrapper.
55859         * lib/sys_socket.in.h: Use more descriptive name when there is no
55860         select wrapper.
55861         * lib/winsock-select.c: New.
55862         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55863         Require gl_HEADER_SYS_SOCKET.
55864         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55865         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55866         * tests/test-sys_select.c: Add functional tests.
55867
55868 2008-09-24  Eric Blake  <ebb9@byu.net>
55869
55870         open, fopen: close fd leak in last patch
55871         * lib/open.c (rpl_open): Close fd before returning error.
55872         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55873         * doc/posix-functions/open.texi (open): Document that Irix also
55874         has the bug.
55875         * doc/posix-functions/fopen.texi (fopen): Likewise.
55876         Reported by Paolo Bonzini.
55877
55878 2008-09-24  Bruno Haible  <bruno@clisp.org>
55879
55880         Ensure that a filename ending in a slash cannot be used to access a
55881         non-directory.
55882         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55883         to check whether it's really a directory.
55884         * lib/fopen.c: Include fcntl.h, unistd.h.
55885         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55886         and fdopen().
55887         * modules/fopen (Depends-on): Add unistd.
55888         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55889         * tests/test-fopen.c (main): Likewise.
55890         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55891         * doc/posix-functions/fopen.texi: Likewise.
55892         Reported by Eric Blake.
55893
55894 2008-09-23  Eric Blake  <ebb9@byu.net>
55895
55896         c-stack: avoid compiler optimizations when provoking overflow
55897         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55898         recursion harder to optimize, to ensure a stack overflow occurs.
55899         * tests/test-c-stack.c (recurse): Likewise.
55900         Borrowed from libsigsegv.
55901
55902         c-stack: work around Irix sigaltstack bug
55903         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55904         whether sigaltstack uses wrong end of stack_t (copied in part from
55905         libsigsegv).
55906         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55907         Irix bug, without requiring an over-allocation.
55908         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55909         bug.
55910
55911         fopen: document mingw bug on directories
55912         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55913         not allowing a stream visiting a directory, even though reading
55914         from such a stream is not portable.
55915
55916 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55917
55918         * lib/poll.c: Rewrite.
55919         * modules/poll: Depend on alloca.
55920
55921 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55922
55923         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55924         instead define prototypes for a full set of wrappers.  Ensure
55925         that Cygwin does not use the compatibility code, which is only
55926         for MinGW.
55927         * lib/winsock.c: New.
55928         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55929         * modules/sys_socket: Add lib/winsock.c.
55930
55931         * modules/poll-tests: Add errno and perror.
55932         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55933
55934 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55935
55936         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55937
55938 2008-09-23  Bruno Haible  <bruno@clisp.org>
55939
55940         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55941         * doc/glibc-functions/*: Likewise.
55942
55943 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55944
55945         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55946         success.
55947
55948 2008-09-22  Eric Blake  <ebb9@byu.net>
55949             Bruno Haible  <bruno@clisp.org>
55950
55951         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55952         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55953         supply %A but mishandle pseudo-NaN.
55954         Reported by Simon Josefsson.
55955
55956 2008-09-21  Bruno Haible  <bruno@clisp.org>
55957
55958         * tests/test-lock.c (main): Tweak skip message.
55959         * tests/test-tls.c (main): Likewise.
55960
55961 2008-09-21  Bruno Haible  <bruno@clisp.org>
55962
55963         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55964         whether 'struct sigaction' has sa_sigaction here...
55965         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55966         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55967
55968 2008-09-21  Bruno Haible  <bruno@clisp.org>
55969
55970         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55971         section.
55972         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55973         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55974         the new section.
55975         (Support for obsolete systems lacking POSIX:2001): New section.
55976         (String handling <string.h>): Move strdup to the new section.
55977         Suggested by Simon Josefsson and Paolo Bonzini.
55978
55979 2008-09-21  Bruno Haible  <bruno@clisp.org>
55980
55981         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55982         exponents in %e and %g results on 'long double'. Needed for mingw's
55983         improved *printf functions.
55984         * tests/test-vasprintf-posix.c (test_function): Likewise.
55985         * tests/test-snprintf-posix.h (test_function): Likewise.
55986         * tests/test-sprintf-posix.h (test_function): Likewise.
55987         Reported by Eric Blake.
55988
55989 2008-09-21  Bruno Haible  <bruno@clisp.org>
55990
55991         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55992         * tests/test-sprintf-posix.h (test_function): Likewise.
55993
55994 2008-09-21  Bruno Haible  <bruno@clisp.org>
55995
55996         * modules/getpass (Depends-on): Add strdup-posix.
55997
55998         New module 'strdup-posix'.
55999         * modules/strdup-posix: New file.
56000         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56001         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56003         REPLACE_STRDUP.
56004         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56005         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56007         strdup-posix.
56008
56009         * modules/strdup (Depends-on): Remove malloc-posix.
56010
56011 2008-09-20  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56014         Wildenhues.
56015
56016 2008-09-20  Bruno Haible  <bruno@clisp.org>
56017
56018         Ensure that wint_t gets defined on IRIX 5.3.
56019         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56020         * lib/wctype.in.h (wint_t): Likewise.
56021         (__wctype_wint_t): Remove type.
56022         (isw*): Use wint_t instead of __wctype_wint_t.
56023         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56024         * modules/wchar (Files): Add m4/wint_t.m4.
56025         (Makefile.am): Substitute HAVE_WINT_T.
56026         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56027         * tests/test-wctype.c: Check that wint_t is defined.
56028         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56029         * doc/posix-headers/wctype.texi: Likewise.
56030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56031
56032 2008-09-18  Bruno Haible  <bruno@clisp.org>
56033
56034         * gnulib-tool (func_exit): Update comment.
56035
56036 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56037
56038         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56039         assumes strdup exists and does not depend on strdup to return
56040         ENOMEM on out of memory conditions.
56041
56042 2008-09-18  Bruno Haible  <bruno@clisp.org>
56043
56044         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56045         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56046         digits for the exponent.
56047
56048 2008-09-18  Jim Meyering  <meyering@redhat.com>
56049             Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/vasnprintf.c (decimal_point_char): Define also if
56052         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56053
56054 2008-09-16  Bruno Haible  <bruno@clisp.org>
56055         and Eric Blake  <ebb9@byu.net>
56056
56057         vasnprintf: support Irix 5.3
56058         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56059         that mishandle long double infinity.
56060         Reported by Tom G. Christensen.
56061
56062 2008-09-16  Bruno Haible  <bruno@clisp.org>
56063
56064         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56065         Solaris 9.
56066         * doc/glibc-functions/alphasort.texi: Likewise.
56067         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56068
56069 2008-09-16  Jim Meyering  <meyering@redhat.com>
56070
56071         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56072         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56073         a umask modification leak out of a subshell.  Otherwise, the
56074         opensolaris /bin/sh would be accepted and thus cause unwarranted
56075         failures in the coreutils test suite.
56076
56077 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56078
56079         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56080         to succeed.
56081
56082 2008-09-16  Jim Meyering  <meyering@redhat.com>
56083
56084         avoid spurious test failure when library is built without ACL support
56085         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56086         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56087         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56088         * tests/test-copy-acl.sh: Likewise.
56089
56090 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56091
56092         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56093         based on character occurrence counts.
56094
56095 2008-09-15  Eric Blake  <ebb9@byu.net>
56096
56097         tests: avoid some compiler warnings
56098         * tests/test-memchr.c (main): Pass NULL indirectly.
56099         * tests/test-closein.c (main): Avoid unused variable.
56100
56101 2008-09-15  Bruno Haible  <bruno@clisp.org>
56102
56103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56104         are missing on OpenBSD 4.0 individually.
56105         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56106
56107 2008-09-15  Bruno Haible  <bruno@clisp.org>
56108
56109         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56110         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56111         * doc/posix-functions/perror.texi: Likewise.
56112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56113         is missing.
56114         Reported by Eric Blake.
56115
56116         * lib/errno.in.h: Use replacement values >= 2000.
56117         Reported by Eric Blake.
56118
56119 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56120
56121         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56122         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56123         limit.
56124         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56125         compareseq was aborted.
56126
56127 2008-09-14  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56130         yvec_edit_count.
56131         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56132         (fstrcmp_bounded): Simplify result computation accordingly.
56133
56134 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56135
56136         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56137         (fstrcmp): Define in terms of fstrcmp_bounded.
56138         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56139         lower_bound argument.
56140         Return quickly if the result is certainly < lower_bound.
56141         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56142
56143 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56144
56145         * lib/diffseq.h (EARLY_ABORT): New macro.
56146         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56147         evaluates to true.
56148
56149 2008-09-14  Bruno Haible  <bruno@clisp.org>
56150
56151         * modules/perror-tests: New file.
56152         * tests/test-perror.sh: New file.
56153         * tests/test-perror.c: New file.
56154
56155         New module 'perror'.
56156         * lib/stdio.in.h (perror): New declaration.
56157         * lib/perror.c: New file.
56158         * m4/perror.m4: New file.
56159         * modules/perror: New file.
56160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56161         * doc/posix-functions/perror.texi: Mention the perror module.
56162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56163         REPLACE_PERROR.
56164         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56165         REPLACE_PERROR.
56166
56167 2008-09-14  Bruno Haible  <bruno@clisp.org>
56168
56169         * modules/stdio (Makefile.am): Reorder to match the order in
56170         lib/stdio.in.h.
56171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56172
56173 2008-09-13  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56176
56177 2008-09-13  Bruno Haible  <bruno@clisp.org>
56178
56179         Extend strerror to cover the added errno values.
56180         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56181         (rpl_strerror): Provide error messages for the added errno values and
56182         for the WSA* values.
56183         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56184         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56185         strerror.
56186         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56187         * modules/strerror (Depends-on): Add errno.
56188         * doc/posix-functions/strerror.texi: Document the change.
56189         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56190         and EOVERFLOW.
56191
56192 2008-09-13  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/EOVERFLOW: Remove file.
56195         * m4/eoverflow.m4: Remove file.
56196         * modules/EOVERFLOW-tests: Remove file.
56197         * tests/test-EOVERFLOW.c: Remove file.
56198         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56199         * modules/ftell (Depends-on): Likewise.
56200         * modules/getdelim (Depends-on): Likewise.
56201         * modules/getugroups (Depends-on): Likewise.
56202         * modules/poll (Depends-on): Likewise.
56203         * modules/snprintf (Depends-on): Likewise.
56204         * modules/sprintf-posix (Depends-on): Likewise.
56205         * modules/vasnprintf (Depends-on): Likewise.
56206         * modules/vasprintf (Depends-on): Likewise.
56207         * modules/vfprintf-posix (Depends-on): Likewise.
56208         * modules/vsnprintf (Depends-on): Likewise.
56209         * modules/vsprintf-posix (Depends-on): Likewise.
56210         * modules/xvasprintf (Depends-on): Likewise.
56211         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56212         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56213         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56214         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56215         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56216         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56217         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56218         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56220         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56221         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56222         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56223         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56224         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56225         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56226         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56228         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56229         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56230         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56231         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56232         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56233         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56234         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56235         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56236         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56237         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56238         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56239         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56240         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56241         * MODULES.html.sh: Remove EOVERFLOW.
56242         * NEWS: Mention the change.
56243
56244 2008-09-13  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/errno-tests: New file.
56247         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56248
56249         * lib/errno.in.h: New file.
56250         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56251         * modules/errno: New file.
56252         * doc/posix-headers/errno.texi: Update documentation.
56253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56254
56255 2008-09-13  Bruno Haible  <bruno@clisp.org>
56256
56257         * tests/test-poll.c: Use #if for native Windows, rather than testing
56258         __MSVCRT__.
56259
56260 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56261             Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/glob.c: Don't include <pwd.h> on native Windows.
56264         (WINDOWS32): New macro.
56265         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56266
56267 2008-09-13  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56270         (ETIMEDOUT): Remove macro.
56271         (glthread_cond_timedwait_multithreaded): New declaration.
56272         (glthread_cond_timedwait): Use it.
56273         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56274         (glthread_cond_timedwait_multithreaded): New function.
56275
56276 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56277
56278         * modules/poll-tests: Do not check for io.h.
56279         * tests/test-poll.c: Check for __MSVCRT__ instead.
56280
56281 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56282
56283         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56284         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56285         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56286
56287 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56288
56289         * modules/poll-tests: New.
56290         * tests/test-poll.c: New.
56291
56292 2008-09-12  Eric Blake  <ebb9@byu.net>
56293
56294         frexp: test for NetBSD failure on -0.0
56295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56296         not all, bugs from NetBSD 3.0 have been fixed.
56297         * doc/posix-functions/frexp.texi (frexp): Document bug.
56298         Reported by Thomas Klausner.
56299
56300         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56301         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56302         literal -0.0.
56303         Reported by Jonathan C. Patschke <jp@centtech.com>.
56304
56305 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56306
56307         * lib/glthread/cond.h: Use dummy implementation also if
56308         USE_WIN32_THREADS.
56309
56310 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56311
56312         * modules/fnmatch-posix (License): Change to LGPLv2+.
56313         * modules/fnmatch-gnu (License): Likewise.
56314
56315 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56316
56317         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56318
56319 2008-09-11  Jim Meyering  <meyering@redhat.com>
56320
56321         * users.txt: Add gtk-vnc.
56322
56323 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56324
56325         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56326         rotate amounts.
56327
56328         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56329         required for 16-bit and 8-bit rotates.
56330         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56331         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56332         UINT8_MAX instead of hard-coded constants.
56333         Suggested by Paul Eggert.
56334
56335 2008-09-07  Bruno Haible  <bruno@clisp.org>
56336
56337         * tests/test-striconveh.c (main): Check behaviour when converting from
56338         UTF-7.
56339
56340         Make striconveh work better with stateful encodings.
56341         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56342         that iconv does not increment the inptr when returning -1/EINVAL.
56343
56344 2008-09-07  Bruno Haible  <bruno@clisp.org>
56345
56346         * build-aux/config.rpath: Update according to libtool-2.2.6.
56347         * build-aux/config.libpath: Likewise.
56348
56349 2008-09-06  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56352         * lib/freadptr.c (freadptr): Likewise.
56353         * lib/freadseek.c (freadptrinc): Likewise.
56354         Reported by Simon Josefsson.
56355
56356 2008-09-06  Bruno Haible  <bruno@clisp.org>
56357
56358         * modules/freadptr (License): Change to LGPLv2+.
56359         * modules/freadseek (License): Likewise.
56360         Suggested by Eric Blake.
56361
56362         * modules/memchr2 (License): Change to LGPLv2+.
56363         Approved by Eric Blake.
56364
56365 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56366             Bruno Haible  <bruno@clisp.org>
56367
56368         Make gnulib-tool work with native 'sed' on AIX.
56369         * gnulib-tool (sed_noop): New variable.
56370         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56371         func_add_or_update, func_create_testdir): Use it to initialize sed
56372         script variables.
56373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56374
56375 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56376             Bruno Haible  <bruno@clisp.org>
56377
56378         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56379         also works after #include directives.
56380
56381 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56382
56383         getdate.y: reject an out-of-range timezone value
56384         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56385         the range [-24...+24].  When specified with only one or two digits,
56386         * tests/test-getdate.c: Tests for the fix.
56387         * doc/getdate.texi: Document this change.
56388
56389 2008-09-03  Bruno Haible  <bruno@clisp.org>
56390
56391         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56392
56393 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56394
56395         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56396         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56397         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56398         Blake <ebb9@byu.net>.
56399
56400         * tests/test-bitrotate.c: Add more test vectors.
56401
56402 2008-09-02  Eric Blake  <ebb9@byu.net>
56403
56404         vasnprintf-posix: handle large precision via %.*d
56405         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56406         when handling it ourselves.
56407         * tests/test-vasnprintf-posix.c (test_function): Add test.
56408         * tests/test-snprintf-posix.h (test_function): Likewise.
56409         * tests/test-sprintf-posix.h (test_function): Likewise.
56410         * tests/test-vasprintf-posix.c (test_function): Likewise.
56411         Reported by Alain Guibert.
56412
56413 2008-09-01  Eric Blake  <ebb9@byu.net>
56414
56415         c-stack: make configure-time check more robust
56416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56417         successful sigaction call.
56418         Reported by Tom G. Christensen.
56419
56420 2008-09-01  Bruno Haible  <bruno@clisp.org>
56421
56422         New module 'findprog-lgpl'.
56423         * modules/findprog-lgpl: New file.
56424         * lib/findprog-lgpl.c: New file.
56425         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56426         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56427         to decide whether to use strdup or xstrdup, concatenated_filename or
56428         xconcatenated_filename.
56429
56430 2008-09-01  Bruno Haible  <bruno@clisp.org>
56431
56432         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56433         'xconcat-filename' (GPL).
56434         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56435         (License): Change to LGPLv2+.
56436         * modules/xconcat-filename: New file.
56437         * lib/concat-filename.h (concatenated_filename): Change specification.
56438         (xconcatenated_filename): New declaration.
56439         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56440         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56441         memory situations.
56442         * lib/xconcat-filename.c: New file.
56443         * NEWS: Mention the change.
56444         * lib/findprog.c: Include concat-filename.h, not filename.h.
56445         (find_in_path): Use xconcatenated_filename instead of
56446         concatenated_filename.
56447         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56448         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56449         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56450         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56451         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56452         instead of concatenated_filename.
56453         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56454         (execute_java_class): Use xconcatenated_filename instead of
56455         concatenated_filename.
56456         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56457         * modules/javacomp (Depends-on): Likewise.
56458         * modules/javaexec (Depends-on): Likewise.
56459
56460 2008-09-01  Bruno Haible  <bruno@clisp.org>
56461
56462         Split module 'filename' into 'filename' and 'concat-filename'.
56463         * modules/filename: Keep only lib/filename.h.
56464         (License): Change to LGPLv2+.
56465         * modules/concat-filename: New file, extracted from modules/filename.
56466         * lib/filename.h (concatenated_filename): Remove declaration.
56467         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56468         * lib/concat-filename.c: Include concat-filename.h.
56469         * NEWS: Mention the change.
56470
56471 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56472
56473         * lib/bitrotate.h (rotl8, rotr8): Add.
56474
56475         * modules/bitrotate (configure.ac): Need
56476         AC_REQUIRE([AC_C_INLINE]).
56477         (Description): Mention stdint.h.  Reported by Bruno Haible
56478         <bruno@clisp.org>.
56479
56480         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56481         Paolo Bonzini <bonzini@gnu.org>.
56482
56483 2008-08-31  Bruno Haible  <bruno@clisp.org>
56484
56485         Assume Solaris specific bi-arch conventions on Solaris systems.
56486         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56487         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56489         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56490         like acl_libdirstem.
56491         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56492         acl_libdirstem.
56493         * NEWS: Mention the change.
56494         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56495
56496 2008-08-31  Jim Meyering  <meyering@redhat.com>
56497
56498         * lib/strftime.h: Add comments describing the two added arguments.
56499
56500         remove duplicate #include directives
56501         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56502         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56503
56504 2008-08-31  Bruno Haible  <bruno@clisp.org>
56505
56506         New module 'sigpipe-die'.
56507         * modules/sigpipe-die: New file.
56508         * lib/sigpipe-die.h: New file.
56509         * lib/sigpipe-die.c: New file.
56510         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56511
56512 2008-08-31  Bruno Haible  <bruno@clisp.org>
56513
56514         Don't override previously installed signal handlers.
56515         * lib/fatal-signal.c (saved_sigactions): New variable.
56516         (uninstall_handlers): Reset the signal to the saved handler, not
56517         to SIG_DFL (except when ignored).
56518         (install_handlers): Save the previous handlers.
56519
56520 2008-08-30  Bruno Haible  <bruno@clisp.org>
56521
56522         * gnulib-tool (func_reset_sigpipe): New function.
56523         (func_get_automake_snippet, func_modules_transitive_closure,
56524         func_import): Invoke it before a join command that reads from stdin,
56525         to avoid "echo: write error: Broken pipe" error messages on stderr.
56526         Reported by Sam Steingold <sds@gnu.org>.
56527
56528 2008-08-30  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56531         Code copied from m4/open.m4.
56532         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56533         access and the filename ends in a slash. Code copied from lib/open.c.
56534         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56535         * tests/test-fopen.c (main): Check against bug with trailing slash.
56536
56537 2008-08-29  Bruno Haible  <bruno@clisp.org>
56538
56539         Avoid some "gcc -pedantic" warnings.
56540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56541         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56542         * lib/dirent.in.h: Likewise.
56543         * lib/fcntl.in.h: Likewise.
56544         * lib/float.in.h: Likewise.
56545         * lib/iconv.in.h: Likewise.
56546         * lib/inttypes.in.h: Likewise.
56547         * lib/locale.in.h: Likewise.
56548         * lib/math.in.h: Likewise.
56549         * lib/netinet_in.in.h: Likewise.
56550         * lib/search.in.h: Likewise.
56551         * lib/signal.in.h: Likewise.
56552         * lib/stdarg.in.h: Likewise.
56553         * lib/stdint.in.h: Likewise.
56554         * lib/stdio.in.h: Likewise.
56555         * lib/stdlib.in.h: Likewise.
56556         * lib/string.in.h: Likewise.
56557         * lib/strings.in.h: Likewise.
56558         * lib/sys_select.in.h: Likewise.
56559         * lib/sys_socket.in.h: Likewise.
56560         * lib/sys_stat.in.h: Likewise.
56561         * lib/sys_time.in.h: Likewise.
56562         * lib/sysexits.in.h: Likewise.
56563         * lib/time.in.h: Likewise.
56564         * lib/unistd.in.h: Likewise.
56565         * lib/wchar.in.h: Likewise.
56566         * lib/wctype.in.h: Likewise.
56567         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56568         * modules/fchdir (Makefile.am): Likewise.
56569         * modules/fcntl (Makefile.am): Likewise.
56570         * modules/float (Makefile.am): Likewise.
56571         * modules/iconv_open (Makefile.am): Likewise.
56572         * modules/inttypes (Makefile.am): Likewise.
56573         * modules/locale (Makefile.am): Likewise.
56574         * modules/math (Makefile.am): Likewise.
56575         * modules/netinet_in (Makefile.am): Likewise.
56576         * modules/search (Makefile.am): Likewise.
56577         * modules/signal (Makefile.am): Likewise.
56578         * modules/stdarg (Makefile.am): Likewise.
56579         * modules/stdint (Makefile.am): Likewise.
56580         * modules/stdio (Makefile.am): Likewise.
56581         * modules/stdlib (Makefile.am): Likewise.
56582         * modules/string (Makefile.am): Likewise.
56583         * modules/strings (Makefile.am): Likewise.
56584         * modules/sys_select (Makefile.am): Likewise.
56585         * modules/sys_socket (Makefile.am): Likewise.
56586         * modules/sys_stat (Makefile.am): Likewise.
56587         * modules/sys_time (Makefile.am): Likewise.
56588         * modules/sysexits (Makefile.am): Likewise.
56589         * modules/time (Makefile.am): Likewise.
56590         * modules/unistd (Makefile.am): Likewise.
56591         * modules/wchar (Makefile.am): Likewise.
56592         * modules/wctype (Makefile.am): Likewise.
56593         Reported by Reuben Thomas <rrt@sc3d.org>.
56594
56595 2008-08-29  Bruno Haible  <bruno@clisp.org>
56596
56597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56598         any more.
56599
56600 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56601
56602         * MODULES.html.sh (Misc): Add bitrotate.
56603
56604         * modules/bitrotate: New file.
56605
56606         * lib/bitrotate.h: New file.
56607
56608         * modules/bitrotate-tests: New file.
56609
56610         * tests/test-bitrotate.c: New file.
56611
56612         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56613         on the bitrotate module.
56614
56615         * lib/arctwo.c: Use new bitrotate module.
56616
56617 2008-08-29  Jim Meyering  <meyering@redhat.com>
56618
56619         bootstrap: merge changes from coreutils
56620         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56621         of copied files.  Remove a kludge, now that this is fixed.
56622         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56623         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56624         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56625
56626 2008-08-29  Bruno Haible  <bruno@clisp.org>
56627
56628         * MODULES.html.sh: Remove --cvs-urls option.
56629
56630 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56631
56632         maint.mk: adjust to file name change
56633         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56634
56635 2008-08-28  Jim Meyering  <meyering@redhat.com>
56636
56637         * modules/getndelim2 (License): Relicense to LGPLv2+.
56638         Approved by Richard Stallman for the version of 1995, and by
56639         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56640
56641 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56642
56643         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56644         dummy if one is not available.  Do not touch them if
56645         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56646         (getc_maybe_unlocked): New.
56647         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56648
56649 2008-08-26  Eric Blake  <ebb9@byu.net>
56650
56651         doc/INSTALL: resync from autoconf
56652         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56653         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56654         moving...
56655         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56656         * INSTALL: Regenerate.
56657         * INSTALL.ISO: New file.
56658         * INSTALL.UTF-8: Likewise.
56659
56660 2008-08-26  Jim Meyering  <meyering@redhat.com>
56661
56662         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56663         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56664         these definitions conditional, so that they may be overridden, too.
56665
56666 2008-08-26  Bruno Haible  <bruno@clisp.org>
56667
56668         Generate INSTALL file variants with prettier quotes.
56669         * doc/Makefile (INSTALL_PRELUDE): New macro.
56670         (INSTALL): Use it.
56671         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56672
56673 2008-08-26  Bruno Haible  <bruno@clisp.org>
56674
56675         Run makeinfo in an English locale.
56676         * doc/Makefile (MAKEINFO): New variable.
56677
56678 2008-08-26  Bruno Haible  <bruno@clisp.org>
56679
56680         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56681         Suggested by Eric Blake.
56682
56683 2008-08-25  Bruno Haible  <bruno@clisp.org>
56684
56685         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56686
56687 2008-08-25  Eric Blake  <ebb9@byu.net>
56688
56689         c-stack: test that stack overflow can be caught
56690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56691         that platform allows handling stack overflow; at least OS/2 EMX
56692         has sigaltstack, but crashes before transferring control to
56693         handler on stack overflow.
56694         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56695         check for HAVE_STACK_OVERFLOW_HANDLING.
56696         Reported by Elbert Pol.
56697
56698 2008-08-25  Bruno Haible  <bruno@clisp.org>
56699
56700         * doc/posix-functions/strftime.texi: Fix description of strftime
56701         module.
56702
56703 2008-08-24  Bruno Haible  <bruno@clisp.org>
56704
56705         * tests/uniwidth/test-uc_width2.c: New file.
56706         * tests/uniwidth/test-uc_width2.sh: New file.
56707         * modules/uniwidth/width-tests (Files): Add the new files.
56708         (TESTS): Add uniwidth/test-uc_width2.sh.
56709         (TESTS_ENVIRONMENT): New variable.
56710         (check_PROGRAMS): Add test-uc_width2.
56711         (test_uc_width2_SOURCES): New variable.
56712
56713         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56714         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56715         not 0x00AB.
56716         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56717
56718 2008-08-22  Eric Blake  <ebb9@byu.net>
56719
56720         test-lock, test-tls: mention why a test is skipped
56721         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56722         skipped.
56723         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56724
56725         count-one-bits: relax license
56726         * modules/count-one-bits (License): Relicense to LGPLv2+.
56727         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56728
56729 2008-08-22  Andreas Schwab  <schwab@suse.de>
56730
56731         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56732         Remove spurious space in assignment.
56733
56734 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56735
56736         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56737         Paul Eggert <eggert@CS.UCLA.EDU>.
56738
56739 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56740
56741         * modules/gettext: Add m4/threadlib.m4.
56742
56743 2008-08-19  Eric Blake  <ebb9@byu.net>
56744
56745         test-c-stack: fix compilation failure on FreeBSD 5.0
56746         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56747         headers before <sys/resource.h>.
56748         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56749         the bug.
56750         Reported by Nelson H. F. Beebe.
56751
56752         strverscmp: migrate from "strverscmp.h" to <string.h>
56753         * modules/string (Makefile.am): Add new hooks.
56754         * modules/strverscmp (Files): Remove strverscmp.h.
56755         (Depends-on): Add string.
56756         (configure.ac): Add indicator.
56757         (Include): Mention new header.
56758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56759         defaults.
56760         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56761         results.
56762         * lib/strverscmp.h: Delete.
56763         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56764         * tests/test-strverscmp.c (includes): Adjust client.
56765         * lib/check-version.c (includes): Likewise.
56766         * NEWS: Document the change.
56767
56768         strverscmp: add unit test
56769         * modules/strverscmp-tests: New file.
56770         * tests/test-strverscmp.c: Likewise.
56771
56772 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56773
56774         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56775         regarding Windows crypto stuff, from Mono.
56776
56777 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56778
56779         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56780         if present, for intel RND.  Return error on failures.
56781
56782 2008-08-18  Ben Pfaff  <blp@gnu.org>
56783
56784         gitlog-to-changelog: give better diagnostic for failed pipe-open
56785         * build-aux/gitlog-to-changelog: Improve error message: suggest
56786         that the version of Git may be too old.
56787
56788 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56789
56790         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56791         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56792
56793 2008-08-18  Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56796         pthread_in_use().
56797
56798 2008-08-18  Bruno Haible  <bruno@clisp.org>
56799
56800         * lib/glthread/threadlib.c: Include <pthread.h>.
56801
56802 2008-08-18  Bruno Haible  <bruno@clisp.org>
56803
56804         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56805         glthread_recursive_lock_* macros.
56806         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56807         Fix syntax error.
56808
56809 2008-08-18  Bruno Haible  <bruno@clisp.org>
56810
56811         * lib/glthread/thread.c: Avoid forcing a context switch right after
56812         thread creation.
56813
56814 2008-08-17  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56817         * lib/glthread/thread.h: Provide Win32 specific implementation.
56818         * modules/thread (Files): Add lib/glthread/thread.c.
56819         (Depends-on): Add lock.
56820         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56821
56822 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56823
56824         New module 'yield'.
56825         * modules/yield: New file.
56826         * lib/glthread/yield.h: New file.
56827         * m4/yield.m4: New file.
56828         * MODULES.html.sh (Multithreading): Add yield.
56829
56830 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56831
56832         New module 'thread'.
56833         * modules/thread: New file.
56834         * lib/glthread/thread.h: New file.
56835         * m4/thread.m4: New file.
56836         * MODULES.html.sh (Multithreading): Add thread.
56837
56838 2008-08-17  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/glthread/lock.h: Include <stdlib.h> always.
56841         * lib/glthread/tls.h: Likewise.
56842         * lib/glthread/cond.h: Likewise.
56843
56844 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56845
56846         New module 'cond'.
56847         * modules/cond: New file.
56848         * lib/glthread/cond.h: New file.
56849         * lib/glthread/cond.c: New file.
56850         * m4/cond.m4: New file.
56851         * MODULES.html.sh (Multithreading): Add cond.
56852
56853 2008-08-16  Eric Blake  <ebb9@byu.net>
56854
56855         c-stack: fix regression on Irix 5.3 from 2008-06-21
56856         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56857         sa_sigaction...
56858         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56859         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56860         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56861         * modules/signal (Makefile.am): Use the value.
56862         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56863         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56864         * doc/posix-headers/signal.texi (signal.h): Document this
56865         portability issue.
56866         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56867         Reported by Tom G. Christensen.
56868
56869 2008-08-17  Bruno Haible  <bruno@clisp.org>
56870
56871         New module 'threadlib'.
56872         * modules/threadlib: New file.
56873         * lib/glthread/threadlib.c: New file, extracted from
56874         lib/glthread/lock.c.
56875         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56876         functions.
56877         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56878         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56879         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56880         macros.
56881         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56882         (gl_DISABLE_THREADS): Remove macro.
56883         * modules/lock (Files): Remove build-aux/config.rpath.
56884         (Depends-on): Remove havelib. Add threadlib.
56885         (configure.ac-early): Remove section.
56886         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56887         * modules/tls (Depends-on): Remove lock. Add threadlib.
56888         (Link): New section, copied from threadlib.
56889         * MODULES.html.sh (Multithreading): Add threadlib.
56890
56891 2008-08-14  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56894         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56895         glthread_rwlock_unlock, glthread_rwlock_destroy,
56896         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56897         glthread_recursive_lock_destroy): Define as macros always.
56898         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56899         glthread_lock_lock.
56900         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56901         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56902         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56903         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56904         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56905         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56906         (glthread_recursive_lock_lock_func): Renamed from
56907         glthread_recursive_lock_lock.
56908         (glthread_recursive_lock_unlock_func): Renamed from
56909         glthread_recursive_lock_unlock.
56910         (glthread_recursive_lock_destroy_func): Renamed from
56911         glthread_recursive_lock_destroy.
56912
56913 2008-08-14  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/glthread/lock.h: Renamed from lib/lock.h.
56916         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56917         * lib/glthread/tls.h: Renamed from lib/tls.h.
56918         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56919         * lib/fstrcmp.c: Update includes.
56920         * lib/strsignal.c: Update includes.
56921         * modules/lock (Files, Makefile.am): Update.
56922         (Include): Change to "glthread/lock.h".
56923         * modules/tls (Files, Makefile.am): Update.
56924         (Include): Change to "glthread/tls.h".
56925         * tests/test-lock.c: Update includes.
56926         * tests/test-tls.c: Update includes.
56927         * NEWS: Mention the renamed header files.
56928
56929 2008-08-11  Jim Meyering  <meyering@redhat.com>
56930
56931         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56932
56933 2008-08-11  Eric Blake  <ebb9@byu.net>
56934
56935         test-c-stack: avoid C99-ism
56936         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56937         before statement.
56938         Reported by Alain Guibert.
56939
56940 2008-08-10  Jim Meyering  <meyering@redhat.com>
56941
56942         ensure that return value of uinttostr et al are not ignored
56943         * lib/inttostr.h (__GNUC_PREREQ): Define.
56944         (__attribute_warn_unused_result__): Define.
56945         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56946
56947 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56948
56949         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56950         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56951
56952 2008-08-07  Jim Meyering  <meyering@redhat.com>
56953
56954         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56955
56956         * modules/mkstemp (License): Relicense under LGPLv2+.
56957         * modules/tempname (License): Likewise.
56958
56959 2008-08-06  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/poll.c (poll): Further micro-optimization.
56962
56963 2008-08-06  Jim Meyering  <meyering@redhat.com>
56964
56965         inet_pton.c: use locale-independent tolower
56966         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56967         (inet_pton6): Use c_tolower rather than tolower.
56968         * modules/inet_pton (Depends-on): Add c-ctype.
56969
56970 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56971
56972         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56973         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56974
56975 2008-08-06  Jim Meyering  <meyering@redhat.com>
56976
56977         * modules/inet_pton (License): Relicense under LGPLv2+.
56978
56979 2008-08-03  Bruno Haible  <bruno@clisp.org>
56980
56981         Additional non-aborting API for lock and tls.
56982         * lib/lock.h: Include <errno.h>.
56983         (glthread_lock_init): New macro/function.
56984         (gl_lock_init): Define as wrapper around glthread_lock_init.
56985         (glthread_lock_lock): New macro/function.
56986         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56987         (glthread_lock_unlock): New macro/function.
56988         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56989         (glthread_lock_destroy): New macro/function.
56990         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56991         (glthread_rwlock_init): New macro/function.
56992         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56993         (glthread_rwlock_rdlock): New macro/function.
56994         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56995         (glthread_rwlock_wrlock): New macro/function.
56996         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56997         (glthread_rwlock_unlock): New macro/function.
56998         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56999         (glthread_rwlock_destroy): New macro/function.
57000         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57001         (glthread_recursive_lock_init): New macro/function.
57002         (gl_recursive_lock_init): Define as wrapper around
57003         glthread_recursive_lock_init.
57004         (glthread_recursive_lock_lock): New macro/function.
57005         (gl_recursive_lock_lock): Define as wrapper around
57006         glthread_recursive_lock_lock.
57007         (glthread_recursive_lock_unlock): New macro/function.
57008         (gl_recursive_lock_unlock): Define as wrapper around
57009         glthread_recursive_lock_unlock.
57010         (glthread_recursive_lock_destroy): New macro/function.
57011         (gl_recursive_lock_destroy): Define as wrapper around
57012         glthread_recursive_lock_destroy.
57013         (glthread_once): New macro/function.
57014         (gl_once): Define as wrapper around glthread_once.
57015         Update function declarations.
57016         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57017         glthread_rwlock_init. Return error code.
57018         (glthread_rwlock_rdlock_multithreaded): Renamed from
57019         glthread_rwlock_rdlock. Return error code.
57020         (glthread_rwlock_wrlock_multithreaded): Renamed from
57021         glthread_rwlock_wrlock. Return error code.
57022         (glthread_rwlock_unlock_multithreaded): Renamed from
57023         glthread_rwlock_unlock. Return error code.
57024         (glthread_rwlock_destroy_multithreaded): Renamed from
57025         glthread_rwlock_destroy. Return error code.
57026         (glthread_recursive_lock_init_multithreaded): Renamed from
57027         glthread_recursive_lock_init. Return error code.
57028         (glthread_recursive_lock_lock_multithreaded): Renamed from
57029         glthread_recursive_lock_lock. Return error code.
57030         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57031         glthread_recursive_lock_unlock. Return error code.
57032         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57033         glthread_recursive_lock_destroy. Return error code.
57034         (glthread_once_call): Make static.
57035         (glthread_once_multithreaded): Renamed from glthread_once.
57036         * lib/tls.h: Include <errno.h>.
57037         (glthread_tls_key_init): New macro/function.
57038         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57039         (glthread_tls_set): New macro/function.
57040         (gl_tls_set): Define as wrapper around glthread_tls_set.
57041         (glthread_tls_key_destroy): New macro/function.
57042         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57043         Update function declarations.
57044         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57045         glthread_tls_get.
57046         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57047
57048 2008-08-04  Eric Blake  <ebb9@byu.net>
57049
57050         gnumakefile: use space, not TAB, outside of targets
57051         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57052
57053 2008-08-02  Jim Meyering  <meyering@redhat.com>
57054
57055         getdate.y: avoid locale-dependent date parsing failure
57056         In Turkish locales, getdate would fail to recognize keywords
57057         containing a lowercase "i".  The solution is not to rely on
57058         locale-sensitive case-conversion.
57059         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57060         (lookup_word): Use c_toupper in place of toupper.
57061         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57062         Reported by Vefa Bicakci <bicave@superonline.com> in
57063         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57064         * modules/getdate (Depends-on): Add c-ctype.
57065
57066 2008-08-02  Bruno Haible  <bruno@clisp.org>
57067
57068         * gnulib-tool (func_import): When updating or creating a .gitignore
57069         file, prepend each added line with a slash, and ignore leading slashes
57070         from the existing lines.
57071         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57072
57073 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57074
57075         Portability fix for GNU make 3.79.1.
57076         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57077         versions do not understand.
57078
57079 2008-08-01  Bruno Haible  <bruno@clisp.org>
57080
57081         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57082         * tests/test-isnanf.h (zero): New variable.
57083         (main): Avoid literal -0.0f.
57084         * tests/test-isnand.h (zero): New variable.
57085         (main): Avoid literal -0.0.
57086         * tests/test-isnanl.h (zero): New variable.
57087         (main): Avoid literal -0.0L.
57088         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57089         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57090         -0.0, -0.0L.
57091         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57092         (test_signbitd): Avoid literal -0.0.
57093         (test_signbitl): Avoid literal -0.0L.
57094         * tests/test-ceilf1.c (zero): New variable.
57095         (main): Avoid literal -0.0f.
57096         * tests/test-ceill.c (zero): New variable.
57097         (main): Avoid literal -0.0L.
57098         * tests/test-floorf1.c (zero): New variable.
57099         (main): Avoid literal -0.0f.
57100         * tests/test-floorl.c (zero): New variable.
57101         (main): Avoid literal -0.0L.
57102         * tests/test-roundf1.c (zero): New variable.
57103         (main): Avoid literal -0.0f.
57104         * tests/test-round1.c (zero): New variable.
57105         (main): Avoid literal -0.0.
57106         * tests/test-roundl.c (zero): New variable.
57107         (main): Avoid literal -0.0L.
57108         * tests/test-truncf1.c (zero): New variable.
57109         (main): Avoid literal -0.0f.
57110         * tests/test-trunc1.c (zero): New variable.
57111         (main): Avoid literal -0.0.
57112         * tests/test-truncl.c (zero): New variable.
57113         (main): Avoid literal -0.0L.
57114         * tests/test-frexp.c (zero): New variable.
57115         (main): Avoid literal -0.0.
57116         * tests/test-frexpl.c (zero): New variable.
57117         (main): Avoid literal -0.0L.
57118         * tests/test-ldexpl.c (zero): New variable.
57119         (main): Avoid literal -0.0L.
57120         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57121         (zerod, zerol): New variables.
57122         (test_function): Avoid literals -0.0, -0.0L.
57123         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57124         (zerod, zerol): New variables.
57125         (test_function): Avoid literals -0.0, -0.0L.
57126         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57127         (zerod, zerol): New variables.
57128         (test_function): Avoid literals -0.0, -0.0L.
57129         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57130         (zerod, zerol): New variables.
57131         (test_function): Avoid literals -0.0, -0.0L.
57132         * tests/test-strtod.c (zero): New variable.
57133         (main): Avoid literal -0.0.
57134         Reported by Jonathan C. Patschke <jp@centtech.com>.
57135
57136 2008-07-31  Jim Meyering  <meyering@redhat.com>
57137
57138         sha256.h: correct definition of SHA224_DIGEST_SIZE
57139         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57140         Reported by Paulie Pena IV <paulie4@gmail.com>.
57141         Define as 224 / 8, rather than as a literal.
57142         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57143         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57144         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57145
57146 2008-07-31  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57149         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57150         Reported by Jonathan Patschke <jp@centtech.com>.
57151
57152 2008-07-31  Bruno Haible  <bruno@clisp.org>
57153
57154         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57155         Reported by Paolo Bonzini <bonzini@gnu.org>.
57156
57157 2008-07-30  Eric Blake  <ebb9@byu.net>
57158
57159         test-strtod: allow compilation without -lm
57160         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57161         Reported by Dennis Clarke <blastwave@gmail.com>.
57162
57163 2008-07-28  Jim Meyering  <meyering@redhat.com>
57164
57165         bootstrap: work also when there are no .po files in po/
57166         * build-aux/bootstrap (update_po_files): Complete the change
57167         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57168
57169 2008-07-27  Jim Meyering  <meyering@redhat.com>
57170
57171         * users.txt: Add zile.
57172
57173 2008-07-26  Ben Pfaff  <blp@gnu.org>
57174
57175         Add missing dependencies on new m4/exponent[fdl].m4 files.
57176         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57177         * modules/isnand-nolibm: Add m4/exponentd.m4.
57178         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57179         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57180         m4/isnan[fdl].m4, because the macros actually used moved.
57181         Reported by Jim Meyering.
57182
57183 2008-07-14  Ben Pfaff  <blp@gnu.org>
57184
57185         Add isinf module.
57186         * lib/isinf.c: New file.
57187         * lib/math.in.h: Define isinf macro if we have decided to replace
57188         it.
57189         * m4/isinf.m4: New file.
57190         * m4/math_h.m4: Initialize and substitute variables for isinf
57191         module.
57192         * modules/isinf: New file.
57193         * modules/isinf-tests: New file.
57194         * modules/math: Add substitutions for new module.
57195         * tests/test-isinf.c: New file.
57196         * doc/posix-functions/isinf.texi: Mention new module.
57197         * MODULES.html.sh: Mention new module.
57198
57199 2008-07-14  Ben Pfaff  <blp@gnu.org>
57200
57201         Factor out some macros for use by additional modules.
57202         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57203         exponentf.m4.
57204         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57205         exponentd.m4.
57206         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57207         file exponentl.m4.
57208         * m4/exponentf.m4: New file.
57209         * m4/exponentd.m4: New file.
57210         * m4/exponentl.m4: New file.
57211         * modules/isnanf: Use new file m4/exponentf.m4.
57212         * modules/isnand: Use new file m4/exponentd.m4.
57213         * modules/isnanl: Use new file m4/exponentl.m4.
57214
57215 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57216
57217         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57218         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57219         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57220         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57221
57222         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57223         readlink on platforms without PATH_MAX.
57224
57225 2008-07-21  Eric Blake  <ebb9@byu.net>
57226
57227         Warn, not fail, on stale version.
57228         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57229
57230         Don't allow installation with stale devel version number.
57231         * top/GNUmakefile (_is-install-target): New macro.
57232         (_curr-ver): Forbid installation with stale version number.
57233
57234 2008-07-20  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57237         TESTS_ENVIRONMENT.
57238         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57239
57240 2008-07-20  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/c-stack.h (c_stack_action): Add documentation.
57243         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57244
57245 2008-07-20  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57248         * modules/readlink (License): Likewise.
57249
57250 2008-07-17  Eric Blake  <ebb9@byu.net>
57251
57252         * modules/c-stack (Link): Fix typo.
57253
57254         Make c-stack use libsigsegv, when available.
57255         * modules/c-stack (Depends-on): Add libsigsegv.
57256         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57257         needed.
57258         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57259         (segv_handler, overflow_handler, c_stack_action)
57260         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57261         implementation when libsigsegv is available, but only when using
57262         the library is necessary.
57263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57264         comment, explaining why XSI check fails on Linux.
57265         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57266         * tests/test-c-stack2.sh: Tweak skip message.
57267         * NEWS: Document new link-time requirements.
57268
57269 2008-07-16  Eric Blake  <ebb9@byu.net>
57270
57271         c-stack: Expose false positives when not using libsigsegv.
57272         * modules/c-stack-tests (Files): Expand test.
57273         * tests/test-c-stack.c (main): Add means to conditionally trigger
57274         non-overflow SIGSEGV.
57275         * tests/test-c-stack2.sh: New file.
57276
57277 2008-07-14  Bruno Haible  <bruno@clisp.org>
57278
57279         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57280         Reported by Eric Blake.
57281
57282 2008-07-14  Sam Steingold  <sds@gnu.org>
57283             Bruno Haible  <bruno@clisp.org>
57284
57285         New module libsigsegv.
57286         * modules/libsigsegv: New file.
57287         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57288         modifications.
57289         * MODULES.html.sh (Signal handling): New section.
57290
57291 2008-07-14  Bruno Haible  <bruno@clisp.org>
57292
57293         * modules/unictype/ctype-* (Description): Add the word "function".
57294         Improves the resulting doc in MODULES.html.
57295
57296 2008-07-12  Ben Pfaff  <blp@gnu.org>
57297
57298         Add longlong module.
57299         * modules/longlong: New file.
57300
57301 2008-07-12  Bruno Haible  <bruno@clisp.org>
57302
57303         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57304         to empty.
57305
57306 2008-07-10  Ben Pfaff  <blp@gnu.org>
57307
57308         Add isnan module.
57309         * doc/posix-functions/isnan.texi: Mention new module.
57310         * lib/math.in.h: Define isnan macro if we have decided to replace
57311         it.
57312         * m4/isnan.m4: New file.
57313         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57314         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57315         also.
57316         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57317         redundancy.
57318         * m4/math_h.m4: Initialize and substitute variables for isnan
57319         module.
57320         * modules/isnan: New file.
57321         * modules/isnan-tests: New file.
57322         * modules/math: Add substitutions for new module.
57323         * tests/test-isnan.c: New file.
57324         * MODULES.html.sh: Mention new module.
57325
57326 2008-07-10  Ben Pfaff  <blp@gnu.org>
57327
57328         Add isnanf module.
57329         * lib/isnanf.m4: New file.
57330         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57331         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57332         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57333         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57334         * modules/isnanf: New file.
57335         * modules/isnanf-tests: New file.
57336         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57337         files.
57338         * tests/test-isnanf-nolibm.c: factored most of its contents into
57339         new file tests/test-isnanf.h.
57340         * tests/test-isnanf.h: New file.
57341         * tests/test-isnanf.c: New file.
57342         * MODULES.html.sh: Mention new module.
57343         * doc/glibc-functions/isnanf.texi: Mention new module.
57344
57345 2008-07-10  Ben Pfaff  <blp@gnu.org>
57346
57347         Add isnand module.
57348         * lib/isnand.h: New file.
57349         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57350         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57351         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57352         functionality also.
57353         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57354         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57355         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57356         * modules/isnand: New file.
57357         * modules/isnand-tests: New file.
57358         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57359         files.
57360         * tests/test-isnand-nolibm.c: factored most of its contents into
57361         new file tests/test-isnand.h.
57362         * tests/test-isnand.h: New file.
57363         * tests/test-isnand.c: New file.
57364         * MODULES.html.sh: Mention new module.
57365
57366 2008-07-10  Ben Pfaff  <blp@gnu.org>
57367
57368         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57369         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57370         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57371         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57372         * modules/isnanf-nolibm: Update references to renamed files.
57373         * modules/isnand-nolibm: Likewise.
57374         * modules/isnanf-nolibm-tests: Likewise.
57375         * modules/isnand-nolibm-tests: Likewise.
57376         * lib/frexp.c: Likewise.
57377         * lib/isfinite.c: Likewise.
57378         * lib/signbitd.c: Likewise.
57379         * lib/signbitf.c: Likewise.
57380         * lib/vasnprintf.c: Likewise.
57381         * tests/test-ceilf1.c: Likewise.
57382         * tests/test-ceilf2.c: Likewise.
57383         * tests/test-floorf1.c: Likewise.
57384         * tests/test-floorf2.c: Likewise.
57385         * tests/test-frexp.c: Likewise.
57386         * tests/test-round1.c: Likewise.
57387         * tests/test-round2.c: Likewise.
57388         * tests/test-roundf1.c: Likewise.
57389         * tests/test-strtod.c: Likewise.
57390         * tests/test-trunc1.c: Likewise.
57391         * tests/test-trunc2.c: Likewise.
57392         * tests/test-truncf1.c: Likewise.
57393         * tests/test-truncf2.c: Likewise.
57394         * NEWS: Mention the renamed header files.
57395
57396 2008-07-11  Jim Meyering  <meyering@redhat.com>
57397
57398         vc-list-files: make the last-resort awk code more portable
57399         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57400         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57401         does not support it.
57402
57403 2008-07-10  Eric Blake  <ebb9@byu.net>
57404
57405         Work with tar's bootstrap.
57406         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57407         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57408         an m4 comment.
57409
57410 2008-07-09  Jim Meyering  <meyering@redhat.com>
57411
57412         posix-shell.m4: fix typo that made this test malfunction
57413         * m4/posix-shell.m4: Remove capitalization in variable name.
57414
57415 2008-07-08  Bruno Haible  <bruno@clisp.org>
57416
57417         * m4/onceonly.m4: Update comments.
57418         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57419
57420 2008-07-04  Jim Meyering  <meyering@redhat.com>
57421
57422         * users.txt: Add vc-dwim.
57423         (bison, coreutils): Use the gitweb URL.
57424
57425 2008-07-03  Jim Meyering  <meyering@redhat.com>
57426
57427         * users.txt: Add libffcall.  From Sam Steingold.
57428
57429 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57430
57431         getdate.y: do not ignore TZ with relative day, month or year offset
57432         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57433         relative-date-handling, since otherwise, the latter would clobber the
57434         sole output (an updated Start value) of the tz-handling block.
57435         * tests/test-getdate.c: Tests for the fix
57436
57437 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57438
57439         Recognize 'foo_LIBRARIES += libgnu.a'.
57440         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57441         makefile snippet has already specified an installation location,
57442         also using '+='.
57443
57444 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57445
57446         getdate.y: factor out common actions
57447         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57448         Use them in place of open-coded actions.
57449
57450 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57451
57452         Add self-test for getdate module.
57453         * modules/getdate-tests: New file.
57454         * tests/test-getdate.c: New file.
57455
57456 2008-06-29  Bruno Haible  <bruno@clisp.org>
57457
57458         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57459         .gitignore.
57460         Reported by Sylvain Beucler <beuc@beuc.net>.
57461
57462 2008-06-29  Bruno Haible  <bruno@clisp.org>
57463
57464         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57465         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57466
57467 2008-06-29  Bruno Haible  <bruno@clisp.org>
57468
57469         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57470         EXTRA_DIST.
57471         Reported by Sylvain Beucler <beuc@beuc.net>.
57472
57473 2008-06-26  Jim Meyering  <meyering@redhat.com>
57474
57475         make several modules depend on the "open" module
57476         This provides slightly increased consistency when opening-for-write
57477         the name of a non-directory spelled with a trailing slash.
57478         * modules/chdir-safer: Likewise.
57479         * modules/chown: Likewise.
57480         * modules/clean-temp: Likewise.
57481         * modules/copy-file: Likewise.
57482         * modules/fchdir: Likewise.
57483         * modules/fcntl-safer: Likewise.
57484         * modules/pipe: Likewise.
57485         * modules/utime: Likewise.
57486         Prompted by Eric Blake and Bruno Haible.
57487
57488 2008-06-24  Andreas Schwab  <schwab@suse.de>
57489
57490         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57491         literals can be used as initializers for global variables.
57492
57493 2008-06-23  Eric Blake  <ebb9@byu.net>
57494
57495         Make gnulib-cache.m4 easier to diff.
57496         * gnulib-tool (func_import): Allow newlines when reading cached
57497         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57498
57499 2008-06-23  Bruno Haible  <bruno@clisp.org>
57500
57501         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57502         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57503         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57504         m4/signalblocking.m4.
57505         (gl_PREREQ_SIGACTION): Don't invoke it.
57506         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57507         gl_PREREQ_SIG_HANDLER_H.
57508         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57509         Don't check for sigaction here.
57510
57511 2008-06-23  Bruno Haible  <bruno@clisp.org>
57512
57513         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57514         (install_handlers): Don't set the SA_RESETHAND flag.
57515
57516 2008-06-23  Bruno Haible  <bruno@clisp.org>
57517
57518         * m4/sigaction.m4: Comment fixes.
57519         * lib/signal.in.h: Likewise.
57520
57521 2008-06-23  Eric Blake  <ebb9@byu.net>
57522
57523         Fix typo.
57524         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57525
57526         Avoid SA_ namespace.
57527         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57528         Reported by Ralf Wildenhues.
57529
57530         Avoid test failure due to SA_RESTORER.
57531         * tests/test-sigaction.c (SA_MASK): New macro.
57532         (main): Avoid failing due to extension flags being set.
57533         Reported by Jim Meyering.
57534
57535         Revert use of sig-handler.h in sigprocmask.c.
57536         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57537         it requires the existence of struct sigaction.
57538         * lib/sigprocmask.c (handler_t): Restore typedef.
57539         (rpl_signal, old_handlers): Use local type.
57540
57541 2008-06-22  Bruno Haible  <bruno@clisp.org>
57542
57543         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57544         conditionally.
57545         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57546
57547 2008-06-22  Bruno Haible  <bruno@clisp.org>
57548
57549         * doc/posix-functions/siginterrupt.texi: Move note.
57550
57551         * lib/signal.in.h (SA_RESTART): New macro.
57552         * lib/sigaction.c: Update comment.
57553
57554         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57555
57556         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57557         (gl_PREREQ_SIGPROCMASK): Invoke it.
57558         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57559
57560         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57561
57562         * lib/sigprocmask.c: Update a comment.
57563
57564 2008-06-21  Eric Blake  <ebb9@byu.net>
57565
57566         Use sigaction module rather than signal().
57567         * modules/c-stack (Depends-on): Add sigaction.
57568         * modules/fatal-signal (Depends-on): Likewise.
57569         * modules/nanosleep (Depends-on): Likewise.
57570         * modules/sigprocmask (Files): Add sig-handler.h.
57571         * modules/sigaction (Files): Likewise.
57572         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57573         Eggert.
57574         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57575         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57576         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57577         (init_fatal_signals): Likewise.
57578         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57579         (siginterrupt): Delete fallback.
57580         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57581         instead.
57582         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57583         siginterrupt.
57584
57585         New module sigaction, for mingw.
57586         * modules/sigaction: New module...
57587         * modules/sigaction-tests: ...and its test.
57588         * m4/sigaction.m4: New file.
57589         * lib/sigaction.c: Likewise.
57590         * tests/test-sigaction.c: Likewise.
57591         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57592         * modules/signal (Makefile.am): Likewise.
57593         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57594         needed.
57595         * doc/posix-headers/signal.texi (signal.h): Mention provided
57596         types.
57597         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57598         that sigaction is preferable.
57599         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57600         module.
57601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57602         sigaction.
57603
57604         Improve robustness of sigprocmask by overriding signal.
57605         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57606         is in use.
57607         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57608         (SIGKILL, SIGSTOP): Provide fallbacks.
57609         (rpl_signal): Implement.
57610         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57611         signal can be called inside handlers.
57612
57613         Fix nanosleep module on mingw.
57614         * modules/nanosleep (Depends-on): Add sys_select.
57615         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57616
57617         Fix licensing of sigprocmask.
57618         * modules/raise (License): Relicense as LGPL.
57619
57620 2008-06-21  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57623         result if it contains question marks.
57624         Reported by Michael Geng <linux@michaelgeng.de>.
57625
57626 2008-06-19  Bruno Haible  <bruno@clisp.org>
57627
57628         Fix CVS-ism.
57629         * doc/gnulib.texi: Include updated-stamp.texi.
57630         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57631         (updated-stamp.texi): New rule.
57632         (gnulib.info): Depend on it.
57633         * doc/.gitignore: Add updated-stamp.texi.
57634         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57635
57636 2008-06-19  Bruno Haible  <bruno@clisp.org>
57637
57638         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57639         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57640
57641 2008-06-19  Eric Blake  <ebb9@byu.net>
57642
57643         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57644         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57645         Reported by Stepan Kasal.
57646
57647 2008-06-18  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57650         Reported by Eric Blake.
57651
57652 2008-06-18  Eric Blake  <ebb9@byu.net>
57653
57654         Work around cygwin 1.5.25 strsignal bug.
57655         * tests/test-strsignal.c: Allow for const char *.
57656         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57657
57658 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57659
57660         * users.txt: Update URL to article and add author/date
57661         information.
57662
57663 2008-06-17  Bruno Haible  <bruno@clisp.org>
57664
57665         New macro gl_DISABLE_THREADS.
57666         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57667         if the user did not pass --enable-threads or --disable-threads option.
57668         (gl_DISABLE_THREADS): New macro.
57669         Reported by Eric Blake <ebb9@byu.net>.
57670
57671 2008-06-17  Bruno Haible  <bruno@clisp.org>
57672
57673         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57674         when the macro ignores it.
57675         Based on a patch by Eric Blake <ebb9@byu.net>.
57676
57677 2008-06-17  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/tls (License): Change to LGPLv2+.
57680         Reported by Eric Blake.
57681
57682 2008-06-17  Eric Blake  <ebb9@byu.net>
57683
57684         Simplify c-stack prerequisites.
57685         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57687         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57688         check.
57689         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57690         <sys/resource.h>.
57691
57692         Move c-stack test into testsuite.
57693         * modules/c-stack-tests: New file.
57694         * lib/c-stack.c [DEBUG]: Move test program...
57695         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57696         fail test if sigaltstack is lacking.
57697         * tests/test-c-stack.sh: New driver file.
57698
57699 2008-06-16  Eric Blake  <ebb9@byu.net>
57700
57701         Use raise module consistently.
57702         * modules/fatal-signal (Depends-on): Add raise.
57703         * modules/sigprocmask (Depends-on): Likewise.
57704         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57705         * lib/sigprocmask.c (sigprocmask): Likewise.
57706         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57707         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57708
57709         Fix compliance bug in sigpending.
57710         * lib/sigprocmask.c (sigpending): Return pending array via
57711         parameter, not return value.
57712
57713 2008-06-14  Eric Blake  <ebb9@byu.net>
57714
57715         Improve obstack-printf test code.
57716         * tests/test-obstack-printf.c (test_function): Fix comment, and
57717         simplify usage of obstack_* in macros.  Add a test for coverage.
57718         Reported by Bruno Haible.
57719
57720 2008-06-14  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57723         array size as a constant, not as a const variable.
57724         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57725         AC_USE_SYSTEM_EXTENSIONS.
57726         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57727         Test whether the obstack_printf function actually exists.
57728         * modules/obstack-printf (Depends-on): Add extensions.
57729         (Include): Remove obstack.h.
57730         * modules/obstack-printf-posix (Depends-on): Add extensions.
57731         (Include): Remove obstack.h.
57732
57733 2008-06-13  Eric Blake  <ebb9@byu.net>
57734
57735         Add obstack-printf and obstack-printf-posix modules.
57736         * modules/obstack-printf: New file.
57737         * modules/obstack-printf-posix: Likewise.
57738         * MODULES.html.sh (Misc): Mention them.
57739         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57740         Likewise.
57741         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57742         Likewise.
57743         * modules/stdio (Makefile.am): Accomodate new modules.
57744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57745         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57746         Declare.
57747         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57748         functions.
57749         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57750         (gl_REPLACE_OBSTACK_PRINTF): New macros
57751         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57752         * tests/test-obstack-printf.c: New file.
57753         * modules/obstack-printf-tests: Likewise.
57754         * modules/obstack-printf-posix-tests: Likewise.
57755
57756 2008-06-11  Bruno Haible  <bruno@clisp.org>
57757
57758         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57759         * lib/open.c: Include errno.h.
57760         (open): Fail when attempting to write to a file that has a trailing
57761         slash.
57762         * tests/test-open.c (main): Test against trailing slash bug.
57763         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57764
57765 2008-06-10  Bruno Haible  <bruno@clisp.org>
57766
57767         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57768         for $? to work inside the trap command, with various /bin/sh-s.
57769         * tests/test-vc-list-files-cvs.sh: Likewise.
57770
57771 2008-06-10  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/acl-internal.h: Don't include gettext.h here.
57774         * lib/set-mode-acl.c: Include gettext.h here.
57775         * lib/copy-acl.c: Likewise.
57776
57777 2008-06-10  Bruno Haible  <bruno@clisp.org>
57778
57779         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57780         * lib/wait-process.c (wait_subprocess): Likewise.
57781         * lib/execute.h (execute): Add termsigp argument.
57782         * lib/execute.c (execute): Likewise.
57783         * lib/csharpcomp.c (compile_csharp_using_pnet,
57784         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57785         * lib/csharpexec.c (execute_csharp_using_pnet,
57786         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57787         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57788         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57789         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57790         is_jikes_present): Update.
57791         * lib/javaexec.c (execute_java_class): Update.
57792         * lib/javaversion.c (execute_and_read_line): Update.
57793         * NEWS: Document the changes.
57794         Reported by Eric Blake.
57795
57796 2008-06-10  Eric Blake  <ebb9@byu.net>
57797
57798         Add missing include.
57799         * tests/test-strstr.c (includes): Add <signal.h>.
57800         * tests/test-strcasestr.c (includes): Likewise.
57801         * tests/test-memmem.c (includes): Likewise.
57802
57803 2008-06-10  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/wait-process.c (wait_subprocess): Add an assertion.
57806
57807 2008-06-10  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57810
57811 2008-06-10  Bruno Haible  <bruno@clisp.org>
57812
57813         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57814         using alarm().
57815         * tests/test-strcasestr.c (main): Likewise.
57816         * tests/test-strstr.c (main): Likewise.
57817
57818 2008-06-09  Bruno Haible  <bruno@clisp.org>
57819
57820         Work around the Solaris 10 ACE ACLs ABI change.
57821         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57822         declare if ACL_NO_TRIVIAL is present.
57823         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57824         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57825         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57826         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57827         define if ACL_NO_TRIVIAL is present.
57828         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57829         and use the current ABI.
57830         (file_has_acl): Use same #if condition as elsewhere.
57831         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57832         in use, and use the current ABI.
57833         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57834         Reported by Jim Meyering.
57835
57836 2008-06-09  Eric Blake  <ebb9@byu.net>
57837
57838         Work around environments that (stupidly) ignore SIGALRM.
57839         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57840         before using alarm().
57841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57843         Reported by Ian Beckwith <ianb@erislabs.net>.
57844
57845         Produce autobuild blurb earlier in log.
57846         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57847
57848 2008-06-09  Jim Meyering  <meyering@redhat.com>
57849         and OndÅ™ej Vašík  <ovasik@redhat.com>
57850
57851         utimens.c: correct kernel bug work-around
57852         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57853         failure, not success, and the kernel bug we're trying to work
57854         around affects not just the utimensat call, but also the fallback
57855         futimens call.
57856         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57857         not success.
57858         [HAVE_FUTIMENS]: Use the same work-around, here.
57859
57860 2008-06-09  Jim Meyering  <meyering@redhat.com>
57861
57862         add more guards around definition of ACE_-related code
57863         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57864         ALLOW and ACE_OWNER are also defined.
57865
57866 2008-06-08  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/acl-internal.h: Add me as co-author.
57869         * lib/file-has-acl.c: Likewise.
57870         * lib/set-mode-acl.c: Likewise.
57871         * lib/copy-acl.c: Likewise.
57872
57873 2008-06-08  Bruno Haible  <bruno@clisp.org>
57874
57875         Add support for AIX ACLs.
57876         * lib/acl-internal.h (acl_nontrivial): New declaration.
57877         * lib/file-has-acl.c (acl_nontrivial): New function.
57878         (file_has_acl): Add implementation using AIX 4 ACL API.
57879         * lib/set-mode-acl.c (qset_acl): Likewise.
57880         * lib/copy-acl.c (qcopy_acl): Likewise.
57881
57882 2008-06-08  Bruno Haible  <bruno@clisp.org>
57883
57884         Add support for HP-UX ACLs.
57885         * lib/acl-internal.h (acl_nontrivial): New declaration.
57886         * lib/file-has-acl.c (acl_nontrivial): New function.
57887         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57888         * lib/set-mode-acl.c (qset_acl): Likewise.
57889         * lib/copy-acl.c (qcopy_acl): Likewise.
57890
57891 2008-06-08  Bruno Haible  <bruno@clisp.org>
57892
57893         Add support for Cygwin ACLs.
57894         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57895         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57896         the chmod_or_fchmod call.
57897         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57898
57899 2008-06-08  Bruno Haible  <bruno@clisp.org>
57900
57901         Fix bug with setuid modes in Solaris 10+ code.
57902         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57903         succeeded, when the mode contains some special bits.
57904
57905 2008-06-08  Bruno Haible  <bruno@clisp.org>
57906
57907         Add support for Solaris 7..10 ACLs.
57908         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57909         declarations.
57910         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57911         functions.
57912         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57913         * lib/set-mode-acl.c (qset_acl): Likewise.
57914         * lib/copy-acl.c (qcopy_acl): Likewise.
57915
57916 2008-06-08  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57919         declaration.
57920         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57921         (acl_access_nontrivial): Remove MacOS X case.
57922         (file_has_acl): Use acl_extended_nontrivial.
57923         * lib/copy-acl.c (qcopy_acl): Likewise.
57924
57925 2008-06-08  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57928
57929 2008-06-08  Jim Meyering  <meyering@redhat.com>
57930
57931         * modules/acl (Maintainer): Add Bruno Haible.
57932
57933 2008-06-07  Bruno Haible  <bruno@clisp.org>
57934
57935         Improve support for Tru64 ACLs.
57936         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57937         ACL on OSF/1.
57938
57939 2008-06-07  Bruno Haible  <bruno@clisp.org>
57940
57941         Add support for MacOS X ACLs.
57942         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57943         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57944         * lib/set-mode-acl.c (qset_acl): Likewise.
57945         * lib/copy-acl.c (qcopy_acl): Likewise.
57946
57947 2008-06-07  Bruno Haible  <bruno@clisp.org>
57948
57949         Fix memory leak introduced on 2008-05-22.
57950         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57951         use.
57952
57953 2008-06-07  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57956         to construct an empty ACL.
57957
57958 2008-06-07  Bruno Haible  <bruno@clisp.org>
57959
57960         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57961         precisely.
57962         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57963
57964 2008-06-07  Bruno Haible  <bruno@clisp.org>
57965
57966         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57967         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57968
57969 2008-06-07  Bruno Haible  <bruno@clisp.org>
57970
57971         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57972         regardless of POSIX.
57973         * doc/posix-functions/_longjmp.texi: Likewise.
57974         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57975         SystemV platform in this case.
57976
57977 2008-06-06  Eric Blake  <ebb9@byu.net>
57978
57979         Document abort() bugs.
57980         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57981
57982         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57983         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57984         sigsetjmp.
57985         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57986         siglongjmp, but only as a macro.
57987         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57988         is obsolete.
57989         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57990
57991         Tweak documentation to cover cygwin argz bugs.
57992         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57993         argz bug fix; no code change needed since no cygwin releases
57994         occurred between the last fix and the bug being tested.
57995         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57996         module and recently fixed cygwin bugs.
57997         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57998         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57999         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58000         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58001         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58002         Likewise.
58003         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58004         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58005         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58006         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58007         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58008         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58009         Likewise.
58010
58011         Avoid gcc warning on cygwin.
58012         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58013         !ACL_NO_TRIVIAL]: Avoid unused variable.
58014
58015 2008-06-05  Eric Blake  <ebb9@byu.net>
58016
58017         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58018         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58019         git-version-gen fails to come up with a version.
58020         Reported by Simon Josefsson.
58021
58022 2008-06-05  Jim Meyering  <meyering@redhat.com>
58023             Paul Eggert  <eggert@cs.ucla.edu>
58024
58025         utimens.c: work around a probable Linux kernel bug
58026         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58027         appears to be a kernel bug that causes utimensat to return 280
58028         instead of 0, indicating success.
58029
58030 2008-06-04  Bruno Haible  <bruno@clisp.org>
58031
58032         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58033         2008-06-01 commit.
58034
58035 2008-06-04  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58038         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58039         (file_has_acl): Use it. Save errno afterwards.
58040         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58041
58042 2008-06-03  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58045         draft code. Simplify #ifs.
58046         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58047         Put Solaris code after POSIX-draft code. Fix comments regarding
58048         Solaris 10, HP-UX. Mention Cygwin.
58049         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58050
58051 2008-06-03  Eric Blake  <ebb9@byu.net>
58052
58053         Provide fallback for older kernels.
58054         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58055         Provide runtime fallback if kernel lacks support.
58056         Reported by Mike Frysinger.
58057
58058 2008-06-02  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58061         it exists.
58062
58063 2008-06-02  Bruno Haible  <bruno@clisp.org>
58064
58065         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58066         * lib/copy-acl.c (qcopy_acl): Update comment.
58067
58068 2008-06-02  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58071         like ACL APIs.
58072
58073 2008-06-02  Bruno Haible  <bruno@clisp.org>
58074
58075         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58076         * tests/test-set-mode-acl.sh: Likewise.
58077         * tests/test-copy-acl.sh: Likewise.
58078         * tests/test-copy-file.sh: Likewise.
58079
58080 2008-06-02  Bruno Haible  <bruno@clisp.org>
58081
58082         * tests/test-file-has-acl.sh: Remove unused code.
58083
58084 2008-06-01  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58087         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58088         messages.
58089         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58090
58091 2008-06-01  Bruno Haible  <bruno@clisp.org>
58092
58093         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58094         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58095         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58096         APIs.
58097         * modules/acl-tests (configure.ac): Remove tests now contained in
58098         m4/acl.m4.
58099
58100 2008-06-02  Jim Meyering  <meyering@redhat.com>
58101
58102         announce-gen: use a better key-server host name
58103         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58104         it may be more consistently reliable.  Suggested by Werner Koch
58105         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58106
58107 2008-06-01  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58110         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58111
58112 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58113
58114         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58115
58116 2008-06-01  Bruno Haible  <bruno@clisp.org>
58117
58118         New ACL tests.
58119         * tests/test-file-has-acl.sh: New file.
58120         * tests/test-file-has-acl.c: New file.
58121         * tests/test-set-mode-acl.sh: New file.
58122         * tests/test-set-mode-acl.c: New file.
58123         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58124         * tests/test-copy-acl.c: New file.
58125         * modules/acl-tests: New file, based on modules/copy-file-tests.
58126         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58127         (Depends-on): Add acl-tests.
58128         (configure.ac): Remove checks.
58129         (Makefile.am): Don't create test-sameacls program here any more.
58130
58131 2008-06-01  Bruno Haible  <bruno@clisp.org>
58132
58133         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58134         * tests/test-sameacls.c: Include progname.h.
58135         (main): Invoke set_program_name. Portability fixes for MacOS X,
58136         Solaris, HP-UX.
58137
58138 2008-06-01  Bruno Haible  <bruno@clisp.org>
58139
58140         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58141         function.
58142         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58143
58144 2008-06-01  Bruno Haible  <bruno@clisp.org>
58145
58146         * modules/rpmatch (Depends-on): Add strdup.
58147
58148 2008-06-01  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/pipe.c: Include unistd-safer.h.
58151         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58152         * modules/pipe (Depends-on): Add unistd-safer.
58153
58154 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58155
58156         * modules/autobuild (configure.ac): Call AB_INIT.
58157
58158 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58159
58160         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58161         Suggested by Bruno Haible <bruno@clisp.org>.
58162
58163 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58164
58165         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58166         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58167         <bruno@clisp.org>.
58168
58169 2008-05-29  Eric Blake  <ebb9@byu.net>
58170
58171         Prefer new POSIX 200x interfaces over futimesat.
58172         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58173         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58174         when available.
58175         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58176
58177 2008-05-28  Bruno Haible  <bruno@clisp.org>
58178
58179         * modules/stpcpy (License): Change to LGPLv2+.
58180         Requested by David Lutterkort <dlutter@redhat.com>.
58181
58182 2008-05-27  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58185         current mingw.
58186         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58187
58188 2008-05-27  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/iconv_open (Link): New section, from module 'iconv'.
58191         * modules/striconv (Link): Likewise.
58192         * modules/striconveh (Link): Likewise.
58193         * modules/xstriconv (Link): Likewise.
58194         * modules/unicodeio (Link): Likewise.
58195         * modules/propername (Link): Likewise.
58196         Reported by Jim Meyering.
58197
58198 2008-05-26  Jim Meyering  <meyering@redhat.com>
58199
58200         sha256: do not artificially restrict buffer length to be < 2^32
58201         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58202         uint32_t to size_t.
58203         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58204         to match.
58205
58206         avoid unaligned access errors, e.g., on sparc
58207         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58208         direct access through a possibly-unaligned uint64* pointer.
58209         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58210         direct access through a possibly-unaligned uint32* pointer.
58211         Prompted by this patch from Tom "spot" Callaway:
58212         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58213
58214         sha512.c: fix typo in comment
58215         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58216
58217 2008-05-25  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58220         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58221         (Makefile.am): Update lib_SOURCES.
58222
58223 2008-05-25  Bruno Haible  <bruno@clisp.org>
58224
58225         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58226
58227 2008-05-25  Jim Meyering  <meyering@redhat.com>
58228
58229         useless-if-before-free: freed expr may have white-space differences
58230         * build-aux/useless-if-before-free: Recognize cases in which the
58231         freed expression differs from the tested one in embedded white
58232         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58233         $1 was used, so we can't make any regexp shy.  Improved tests now
58234         detect this.
58235
58236         useless-if-before-free: accept white space in the expression.
58237         * build-aux/useless-if-before-free: For now, any white space
58238         in the expression must be identical in the free argument.
58239
58240         useless-if-before-free: efficiency tweak
58241         * build-aux/useless-if-before-free: Make the expression-matching
58242         regexp "shy".
58243         Make the *outer* regexp shy, not the expr-matching one.
58244
58245         update code-in-comment to accept cast of free arg
58246         * build-aux/useless-if-before-free: Update regexp.
58247
58248 2008-05-25  Bruno Haible  <bruno@clisp.org>
58249
58250         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58251         * modules/copy-file-tests (Files, Makefile.am): Update.
58252         * tests/test-copy-file.c (func_test_copy): Update.
58253
58254 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58255
58256         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58257
58258 2008-05-23  Bruno Haible  <bruno@clisp.org>
58259
58260         Improve support for ACLs on OSF/1.
58261         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58262         Remove fallback for unknown flavors of ACLs.
58263
58264 2008-05-22  Bruno Haible  <bruno@clisp.org>
58265
58266         Add support for ACLs on OSF/1.
58267         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58268         replacements.
58269         (acl_free_text): New macro fallback.
58270         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58271         acl_free.
58272         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58273         acl_free_text function. Require AC_C_INLINE.
58274
58275 2008-05-22  Bruno Haible  <bruno@clisp.org>
58276
58277         Make copy_acl work on MacOS X 10.5.
58278         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58279         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58280         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58281         If MODE_INSIDE_ACL, don't assume that every system has the same text
58282         representation for ACLs as FreeBSD.
58283         * lib/copy-acl.c (copy_acl): Add support for platforms with
58284         !MODE_INSIDE_ACL.
58285         * lib/file-has-acl.c (file_has_acl): Likewise.
58286         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58287         FreeBSD, MacOS X, or IRIX, respectively.
58288
58289 2008-05-22  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/acl.h: Don't include <sys/acl.h>.
58292         (GETACLCNT): Move fallback to lib/acl-internal.h.
58293         * lib/acl-internal.h: Include <sys/acl.h> here.
58294         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58295
58296 2008-05-22  Bruno Haible  <bruno@clisp.org>
58297
58298         Split off copy_acl function to separate file.
58299         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58300         * lib/acl.c (copy_acl): Moved function to separate file.
58301         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58302         * modules/acl (Files): Add lib/copy-acl.c.
58303         (Makefiles.am): Augment lib_SOURCES.
58304
58305 2008-05-22  Bruno Haible  <bruno@clisp.org>
58306
58307         * modules/copy-file-tests: New file.
58308         * tests/test-copy-file.sh: New file.
58309         * tests/test-copy-file.c: New file.
58310         * tests/test-copy-file-sameacls.c: New file.
58311
58312 2008-05-22  Eric Blake  <ebb9@byu.net>
58313
58314         Avoid gcc warning.
58315         * tests/test-memcmp.c (main): Pass NULL indirectly.
58316
58317 2008-05-21  Bruno Haible  <bruno@clisp.org>
58318
58319         Add reference doc about ACLs.
58320         * doc/acl-resources.txt: New file.
58321         * doc/acl-cygwin.txt: New file.
58322
58323 2008-05-21  Bruno Haible  <bruno@clisp.org>
58324
58325         Avoid one more warning from gcc.
58326         * lib/vasnprintf.c (IF_LINT): Update comments.
58327         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58328
58329 2008-05-21  Jim Meyering  <meyering@redhat.com>
58330
58331         avoid a warning from gcc
58332         * lib/vasnprintf.c (IF_LINT): Define.
58333         (scale10_round_decimal_long_double):
58334         Use it to avoid a "may be used uninitialized" warning.
58335         (scale10_round_decimal_double): Likewise.
58336
58337 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58338
58339         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58340         declared.
58341
58342 2008-05-20  Bruno Haible  <bruno@clisp.org>
58343
58344         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58345         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58346
58347 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58348
58349         * modules/memcmp-tests: New file.
58350         * tests/test-memcmp.c: New file.
58351
58352 2008-05-19  Bruno Haible  <bruno@clisp.org>
58353
58354         * modules/propername (Notice, configure.ac): Put quoted "..." into
58355         --keyword option.
58356         * lib/propername.h: Update comments accordingly.
58357         Reported by Eric Blake.
58358
58359 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58360
58361         * modules/getpass-gnu (Depends-on): Add fseeko.
58362
58363 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58364
58365         * modules/base64-tests: New file.
58366
58367 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58368
58369         * lib/base64.c (base64_decode_ctx): If a decode context structure
58370         was passed in use it to ignore newlines.  If a context structure
58371         was _not_ passed in, continue to treat newlines as garbage (this
58372         is the historical behavior).  Formerly base64_decode.
58373         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58374         takes a decode context structure.
58375         * lib/base64.h (base64_decode): Macro for four-argument calls.
58376         (base64_decode_alloc): Likewise.
58377         * lib/base64.c (base64_decode_ctx): If a decode context structure
58378         was passed in use it to ignore newlines.  If a context structure
58379         was _not_ passed in, continue to treat newlines as garbage (this
58380         is the historical behavior).  Formerly base64_decode.
58381         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58382         takes a decode context structure.
58383         * lib/base64.h (base64_decode): Macro for four-argument calls.
58384         (base64_decode_alloc): Likewise.
58385
58386 2008-05-19  Jim Meyering  <meyering@redhat.com>
58387
58388         avoid a warning from gcc
58389         * lib/trim.c (IF_LINT): Define.
58390         (trim2): Use it to avoid a "may be used uninitialized" warning.
58391
58392         Fix doc typo.
58393         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58394
58395 2008-05-19  Bruno Haible  <bruno@clisp.org>
58396
58397         * doc/glibc-functions/getpass.texi: Document limits of other
58398         implementations.
58399
58400 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58401             Bruno Haible <bruno@clisp.org>
58402
58403         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58404
58405 2008-05-18  Bruno Haible  <bruno@clisp.org>
58406
58407         * modules/propername: New file, from GNU gettext.
58408         * lib/propername.h: New file, from GNU gettext.
58409         * lib/propername.c: New file, from GNU gettext.
58410         * MODULES.html.sh (Internationalization functions): Add propername.
58411
58412 2008-05-16  Jim Meyering  <meyering@redhat.com>
58413             Bruno Haible  <bruno@clisp.org>
58414
58415         Avoid some warnings from "gcc -Wshadow".
58416         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58417
58418 2008-05-15  Eric Blake  <ebb9@byu.net>
58419
58420         Extend previous patch to cygwin 1.7.0.
58421         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58422         fast implementation in cygwin >= 1.7.0.
58423         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58425
58426 2008-05-15  Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58429         implementation in glibc >= 2.9.
58430         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58432
58433 2008-05-15  Bruno Haible  <bruno@clisp.org>
58434
58435         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58436         (Unicode string functions): Add unilbrk/*.
58437         Reported by Karl Berry.
58438
58439 2008-05-15  Eric Blake  <ebb9@byu.net>
58440
58441         Fix violation of <stdbool.h> replacement in regex.
58442         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58443         * lib/regexec.c (re_search_internal): Likewise.
58444         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58445
58446 2008-05-15  Jim Meyering  <meyering@redhat.com>
58447
58448         avoid distracting test output when git or cvs is not found
58449         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58450         * tests/test-vc-list-files-git.sh: Likewise.
58451
58452 2008-05-15  Eric Blake  <ebb9@byu.net>
58453
58454         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58455         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58456         glibc version.
58457         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58458         * doc/posix-functions/strstr.texi (strstr): Likewise.
58459         * lib/str-two-way.h (MAX): Sychronize with glibc.
58460
58461 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58462
58463         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58464         opr.ctx_type.
58465         (calc_first): Initialize constraint field.
58466         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58467         Fix grammar.
58468         (duplicate_node): Merge constraint field for all node types.
58469         (calc_eclosure_iter): Look at constraint field for all node types.
58470         * lib/regex_internal.c (create_cd_newstate): Don't look at
58471         opr.ctx_type.
58472
58473 2008-05-14  Bruno Haible  <bruno@clisp.org>
58474
58475         Help GCC to do better code generation.
58476         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58477         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58478         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58479         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58480         Declare with attribute 'malloc' if supported.
58481
58482 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58483
58484         use "echo STR|wc -c" rather than unportable "expr length STR"
58485         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58486         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58487
58488 2008-05-14  Jim Meyering  <meyering@redhat.com>
58489
58490         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58491         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58492         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58493         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58494         via Collin Lasse.
58495
58496 2008-05-14  Eric Blake  <ebb9@byu.net>
58497
58498         Avoid quadratic growth in gl_LIBSOURCES.
58499         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58500         Suggested by Bruno Haible.
58501
58502         Test xmemdup0.
58503         * modules/xmemdup0-tests: New file.
58504         * tests/test-xmemdup0.c: Likewise.
58505
58506 2008-05-13  Eric Blake  <ebb9@byu.net>
58507
58508         Split xmemdup0 into its own module.
58509         * modules/xmemdup0: New file.
58510         * lib/xmemdup0.h: Likewise.
58511         * lib/xmemdup0.c: Likewise.
58512         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58513         * lib/xalloc.h (xmemdup0): Remove.
58514         * lib/xmalloc.c (xmemdup0): Likewise.
58515
58516 2008-05-13  Eric Blake  <ebb9@byu.net>
58517             Bruno Haible  <bruno@clisp.org>
58518
58519         Reduce number of forks required during autoconf.
58520         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58521         and gl_LIBSOURCES_DIR.
58522         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58523         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58524         m4_syscmd per file.
58525         <m4_foreach_w>: Move...
58526         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58527
58528 2008-05-13  Eric Blake  <ebb9@byu.net>
58529
58530         * gnulib-tool: Fix various comment typos.
58531
58532 2008-05-12  Bruno Haible  <bruno@clisp.org>
58533
58534         Tailor the linebreaking algorithm.
58535         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58536
58537 2008-05-12  Bruno Haible  <bruno@clisp.org>
58538
58539         Update to Unicode 5.0.0.
58540         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58541         LBP_JV, LBP_JT. Redistribute values.
58542         (unilbrk_table): Change size.
58543         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58544         Unicode TR#14 rev. 22.
58545         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58546         LBP_JV, LBP_JT. Redistribute values.
58547         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58548         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58549         Update.
58550         * lib/unilbrk/lbrkprop1.h: Regenerated.
58551         * lib/unilbrk/lbrkprop2.h: Regenerated.
58552         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58553         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58554         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58555         Likewise.
58556         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58557         Likewise.
58558         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58559         result.
58560         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58561         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58562         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58563         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58564         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58565         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58566
58567 2008-05-11  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58570
58571 2008-05-11  Bruno Haible  <bruno@clisp.org>
58572
58573         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58574         * modules/unilbrk/gen-lbrk: New file.
58575
58576 2008-05-11  Bruno Haible  <bruno@clisp.org>
58577
58578         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58579         * m4/sha512.m4 (gl_SHA512): Likewise.
58580
58581 2008-05-11  Jim Meyering  <meyering@redhat.com>
58582
58583         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58584         * modules/crypto/sha256: New file.
58585         * modules/crypto/sha512: Likewise.
58586         * lib/sha256.c: Likewise.
58587         * lib/sha256.h: Likewise.
58588         * lib/sha512.c: Likewise.
58589         * lib/sha512.h: Likewise.
58590         * lib/u64.h: Likewise.
58591         * m4/sha256.m4: Likewise.
58592         * m4/sha512.m4: Likewise.
58593         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58594
58595 2008-05-10  Bruno Haible  <bruno@clisp.org>
58596
58597         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58598         (Input/Output <stdio.h>): Add xprintf.
58599         (Signal handling <signal.h>): Add strsignal.
58600         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58601         (Core language properties): Add func.
58602         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58603         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58604         strings.
58605         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58606         (Input/output): New section.
58607         (File system functions): Add openat-die, stat-macros.
58608         (Networking functions): Add sockets.
58609         (Unicode string functions): Add unictype/*.
58610         (Support for building libraries and executables): Add gperf.
58611         (Support for building documentation): Add agpl-3.0.
58612         (Misc): Add nocrash.
58613
58614 2008-05-10  Bruno Haible  <bruno@clisp.org>
58615
58616         * modules/unictype/gen-ctype: New file.
58617
58618 2008-05-10  Jim Meyering  <meyering@redhat.com>
58619
58620         Make chdir-safer.c more efficient on a system with no symlinks.
58621         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58622         also if ELOOP is zero.  Suggested by Bruno Haible.
58623
58624         Make chdir-safer.c slightly safer.
58625         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58626         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58627
58628         Avoid compile failure on systems without ELOOP (like mingw).
58629         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58630         Reported by Bruno Haible.
58631
58632 2008-05-10  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58635         (is_utf8_encoding): Use a case-insensitive comparison.
58636         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58637         streq.
58638
58639 2008-05-10  Bruno Haible  <bruno@clisp.org>
58640
58641         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58642         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58643         * lib/unilbrk/ulc-common.h (iconv_string_length,
58644         iconv_string_keeping_offsets): Remove declarations.
58645         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58646         Don't include <iconv.h>, streq.h, xsize.h.
58647         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58648         conversion.
58649         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58650         <iconv.h>, streq.h, xsize.h.
58651         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58652         conversion.
58653         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58654         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58655         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58656         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58657
58658 2008-05-10  Bruno Haible  <bruno@clisp.org>
58659
58660         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58661         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58662
58663         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58664         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58665
58666         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58667         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58668
58669         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58670         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58671
58672         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58673         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58674
58675         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58676         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58677
58678         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58679         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58680
58681         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58682         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58683
58684 2008-05-10  Bruno Haible  <bruno@clisp.org>
58685
58686         Split up 'linebreak' module.
58687         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58688         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58689         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58690         modifications.
58691         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58692         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58693         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58694         lib/linebreak.c.
58695         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58696         lib/linebreak.c.
58697         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58698         lib/linebreak.c.
58699         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58700         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58701         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58702         lib/linebreak.c.
58703         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58704         lib/linebreak.c.
58705         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58706         lib/linebreak.c.
58707         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58708         lib/linebreak.c.
58709         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58710         lib/linebreak.c.
58711         * modules/unilbrk/base: New file.
58712         * modules/unilbrk/tables: New file.
58713         * modules/unilbrk/u8-possible-linebreaks: New file.
58714         * modules/unilbrk/u16-possible-linebreaks: New file.
58715         * modules/unilbrk/u32-possible-linebreaks: New file.
58716         * modules/unilbrk/ulc-common: New file.
58717         * modules/unilbrk/ulc-possible-linebreaks: New file.
58718         * modules/unilbrk/u8-width-linebreaks: New file.
58719         * modules/unilbrk/u16-width-linebreaks: New file.
58720         * modules/unilbrk/u32-width-linebreaks: New file.
58721         * modules/unilbrk/ulc-width-linebreaks: New file.
58722         * lib/linebreak.h: Remove file.
58723         * lib/linebreak.c: Remove file.
58724         * m4/linebreak.m4: Remove file.
58725         * modules/linebreak: Remove file.
58726         * NEWS: Mention the changes.
58727
58728 2008-05-09  Eric Blake  <ebb9@byu.net>
58729
58730         Add xmemdup0.
58731         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58732         implementation.
58733         * lib/xmalloc.c (xmemdup0): New C implementation.
58734
58735 2008-05-08  Bruno Haible  <bruno@clisp.org>
58736
58737         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58738
58739 2008-05-07  Eric Blake  <ebb9@byu.net>
58740
58741         Support cross-compilation of <wctype.h>.
58742         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58743         AC_CACHE_CHECK.
58744
58745 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58746
58747         * build-aux/vc-list-files: Add support for bzr.
58748
58749 2008-05-03  Jim Meyering  <meyering@redhat.com>
58750
58751         avoid failed assertion with tight malloc
58752         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58753
58754 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58755
58756         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58757         are needed from arpa/inet.h.
58758         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58759         Reported by Bruno Haible.
58760
58761 2008-05-02  Jim Meyering  <meyering@redhat.com>
58762
58763         avoid compilation error on FreeBSD 6
58764         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58765
58766 2008-05-01  Jim Meyering  <meyering@redhat.com>
58767
58768         useless-if-before-free: correct --help's exit status description
58769         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58770         for one or more matches, etc.  Reported by Bruno Haible.
58771
58772         vc-list-files: make the stand-alone gnulib test work
58773         * modules/vc-list-files-tests (configure.ac):
58774         Define and AC_SUBST abs_aux_dir.
58775         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58776         $(abs_top_srcdir) to each script and having each of them
58777         duplicate the work of setting PATH, set PATH here, using
58778         the new variable, abs_aux_dir instead.
58779         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58780         * tests/test-vc-list-files-git.sh: Likewise.
58781         Reported by Bruno Haible.
58782
58783 2008-05-01  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58786         reallocation. Rename 'done' to 'found_delimiter'.
58787
58788 2008-05-01  Jim Meyering  <meyering@redhat.com>
58789
58790         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58791         * build-aux/vc-list-files: Use `...`, not $(...).
58792
58793 2008-04-30  Jim Meyering  <meyering@redhat.com>
58794
58795         add tests for vc-list-files
58796         * modules/vc-list-files-tests: New module.
58797         * tests/test-vc-list-files-cvs.sh: New file.
58798         * tests/test-vc-list-files-git.sh: New file.
58799
58800         avoid a warning from gcc
58801         * lib/getndelim2.c (IF_LINT): Define.
58802         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58803
58804         vc-list-files: work properly with build-aux/cvsu, too
58805         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58806         to all cvs-based clauses.
58807
58808         vc-list-files: work properly in the CVS+awk case, too
58809         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58810
58811         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58812         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58813         take more than one file argument, so .  Add quotes, just in case $dir
58814         ever contains a shell meta-character.  Prompted by Soren Hansen in
58815         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58816
58817 2008-04-29  Eric Blake  <ebb9@byu.net>
58818
58819         Optimize getndelim2 to use block operations when possible.
58820         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58821         freadseek, and memchr2.
58822         * lib/getndelim2.c (getndelim2): Use them for block reads.
58823
58824 2008-04-29  Bruno Haible  <bruno@clisp.org>
58825
58826         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58827         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58828         * modules/inet_ntop (Depends-on): Add extensions.
58829         * modules/inet_pton (Depends-on): Likewise.
58830         Reported by Simon Josefsson.
58831
58832 2008-04-29  Jim Meyering  <meyering@redhat.com>
58833
58834         When the is more than one match in a block, match all of them.
58835         * build-aux/useless-if-before-free: Iterate through each block
58836         until there are no more matches.
58837
58838         Fix broken useless-if-before-free script.
58839         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58840         the expression to match cast of argument to free-like function.
58841
58842 2008-04-29  Eric Blake  <ebb9@byu.net>
58843
58844         Use new header.
58845         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58846
58847 2008-04-29  Jim Meyering  <meyering@redhat.com>
58848
58849         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58850         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58851         by gnulib to exist and to declare e.g., inet_ntop.
58852         Don't include "inet_ntop.h", now removed.
58853
58854         * m4/arpa_inet_h.m4: Remove trailing blanks.
58855
58856 2008-04-29  Eric Blake  <ebb9@byu.net>
58857
58858         Silence valgrind on safe reads beyond potential array bounds.
58859         * lib/rawmemchr.valgrind: New file.
58860         * lib/strchrnul.valgrind: Likewise.
58861         * modules/rawmemchr (Files): Distribute new file.
58862         * modules/strchrnul (Files): Likewise.
58863         Suggested by Bruno Haible.
58864
58865 2008-04-29  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58868         (inet_ntop, inet_pton): Change portability warning's wording.
58869         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58870         Invoke gl_CHECK_NEXT_HEADERS.
58871         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58872         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58873         set ARPA_INET_H.
58874         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58875         * modules/arpa_inet (Description): No longer only for systems that
58876         lack it.
58877         (Depends-on): Add include_next.
58878         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58879         HAVE_ARPA_INET_H.
58880
58881 2008-04-29  Jim Meyering  <meyering@redhat.com>
58882
58883         * modules/mkdir (License): Re-license as LGPLv2+.
58884
58885 2008-04-29  Bruno Haible  <bruno@clisp.org>
58886
58887         * modules/rawmemchr (Maintainer): Set to Eric.
58888         * modules/strchrnul (Maintainer): Likewise.
58889
58890 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58891
58892         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58893         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58894
58895         * modules/arpa_inet (arpa/inet.h): Use them.
58896
58897 2008-04-28  Eric Blake  <ebb9@byu.net>
58898
58899         Test getndelim2.
58900         * modules/getndelim2-tests: New file.
58901         * tests/test-getndelim2.c: Likewise.
58902         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58903         stream.
58904         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58905
58906         * MODULES.html.sh: Document new module.
58907
58908 2008-04-20  Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/c-stack.c (die): Use raise.
58911         * modules/c-stack (Depends-on): Add raise.
58912
58913 2008-04-28  Bruno Haible  <bruno@clisp.org>
58914
58915         Expect rpmatch to be declared.
58916         * lib/yesno.c (rpmatch): Remove declaration.
58917
58918         Declare rpmatch.
58919         * lib/stdlib.in.h (rpmatch): New declaration.
58920         * lib/rpmatch.c: Include <stdlib.h> first.
58921         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58922         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58924         HAVE_RPMATCH.
58925         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58927         (Include): Set to <stdlib.h>.
58928         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58929         HAVE_RPMATCH.
58930         * NEWS: Document the change.
58931
58932 2008-04-28  Bruno Haible  <bruno@clisp.org>
58933
58934         Change rpmatch to use nl_langinfo when appropriate.
58935         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58936         (N_): New macro.
58937         (localized_pattern): New function/macro.
58938         (try): Remove match, nomatch arguments. Copy the pattern into safe
58939         memory before caching it.
58940         (rpmatch): Use localized_pattern. Add translator comments.
58941         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58942         Suggested by Eric Blake.
58943         * modules/rpmatch (Depends-on): Add stdbool.
58944
58945 2008-04-28  Eric Blake  <ebb9@byu.net>
58946
58947         Add rawmemchr module, matching glibc.
58948         * modules/string (Makefile.am): New indicator.
58949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58950         * lib/string.in.h (rawmemchr): Declare when appropriate.
58951         * modules/rawmemchr: New file.
58952         * m4/rawmemchr.m4: Likewise.
58953         * lib/rawmemchr.c: Likewise.
58954         * modules/rawmemchr-tests: Likewise.
58955         * tests/test-rawmemchr.c: Likewise.
58956         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58957         module.
58958         * modules/strchrnul (Depends-on): Add rawmemchr.
58959         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58960
58961         Whitespace cleanup.
58962         * tests/test-strchrnul.c: Reindent.
58963         * lib/strchrnul.c: Likewise.
58964
58965         Optimize and test strchrnul.
58966         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58967         * modules/strchrnul-tests: New file.
58968         * tests/test-strchrnul.c: Likewise.
58969
58970         Remove intprops dependency.
58971         * modules/memchr (Depends-on): Remove intprops.
58972         * modules/memrchr (Depends-on): Likewise.
58973         * modules/memchr2 (Depends-on): Likewise.
58974         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58975         * lib/memrchr.c (__memrchr): Likewise.
58976         * lib/memrchr2.c (memchr2): Likewise.
58977         Reported by Simon Josefsson.
58978
58979 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58980
58981         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58982         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58983
58984 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58985
58986         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58987
58988         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58989
58990         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58991
58992         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58993         declarations.
58994         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58995
58996         * m4/inet_pton.m4: Don't check for header files.
58997
58998         * m4/inet_ntop.m4: Don't check for header files.
58999
59000 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59001
59002         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59003         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59004         trigger for cygwin).
59005         Reported by Bruno Haible  <bruno@clisp.org>.
59006
59007 2008-04-28  Bruno Haible  <bruno@clisp.org>
59008
59009         * doc/posix-functions/strdup.texi: Mention mingw problem.
59010
59011 2008-04-27  Bruno Haible  <bruno@clisp.org>
59012
59013         * modules/stat-time-tests (Depends-on): Add sleep.
59014         * tests/test-stat-time.c (force_unlink): New function.
59015         (cleanup): Use it.
59016         (test_mtime): Remove the ctime related tests.
59017         (test_ctime): New function, containing the ctime related tests.
59018         (main): Call test_ctime, except on native Windows platforms.
59019
59020 2008-04-27  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/rpmatch.c (rpmatch): Add some comments.
59023         Reported by James Youngman <jay@gnu.org>.
59024
59025 2008-04-27  Bruno Haible  <bruno@clisp.org>
59026
59027         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59028         quiet NaNs.
59029
59030 2008-04-27  Bruno Haible  <bruno@clisp.org>
59031
59032         Make test-yesno.sh work on mingw.
59033         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59034         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59035         (main): Set stdin to binary mode.
59036         * modules/yesno-tests (Depends-on): Add binary-io.
59037
59038 2008-04-27  Bruno Haible  <bruno@clisp.org>
59039
59040         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59041         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59042         argument that lie outside the IEEE 854 domain.
59043         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59044         (gl_ISFINITE): Use it.
59045         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59046
59047 2008-04-27  Bruno Haible  <bruno@clisp.org>
59048
59049         Allow local renaming in config.h.
59050         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59051
59052 2008-04-27  Bruno Haible  <bruno@clisp.org>
59053
59054         * lib/memchr.c (__memchr): Change type of 'i'.
59055         * lib/memchr2.c (memchr2): Likewise.
59056
59057 2008-04-26  Eric Blake  <ebb9@byu.net>
59058         and Bruno Haible  <bruno@clisp.org>
59059
59060         Optimize and test memrchr.
59061         * modules/memrchr (Depends-on): Add intprops.
59062         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59063         * modules/memrchr-tests: New file.
59064         * tests/test-memrchr.c: New file.
59065
59066 2008-04-26  Bruno Haible  <bruno@clisp.org>
59067
59068         Add tentative support for DragonFly BSD.
59069         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59070         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59071         fp.
59072         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59073         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59074         * lib/fpurge.c (fpurge): Likewise.
59075         * lib/freadable.c (freaadable): Likewise.
59076         * lib/freadahead.c (freadahead): Likewise.
59077         * lib/freading.c (freading): Likewise.
59078         * lib/freadptr.c (freadptr): Likewise.
59079         * lib/freadseek.c (freadptrinc): Likewise.
59080         * lib/fseeko.c (fseeko): Likewise.
59081         * lib/fseterr.c (fseterr): Likewise.
59082         * lib/fwritable.c (fwritable): Likewise.
59083         * lib/fwriting.c (fwriting): Likewise.
59084
59085 2008-04-26  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/stdio-impl.h: New file.
59088         * lib/fbufmode.c: Include stdio-impl.h.
59089         (fbufmode): Use fp_, remove redundant #defines.
59090         * lib/fflush.c: Include stdio-impl.h.
59091         (clear_ungetc_buffer): Remove redundant #defines.
59092         * lib/fpurge.c: Include stdio-impl.h.
59093         (fpurge): Remove redundant #defines.
59094         * lib/freadable.c: Include stdio-impl.h.
59095         (freadable): Remove redundant #defines.
59096         * lib/freadahead.c: Include stdio-impl.h.
59097         (freadahead): Remove redundant #defines.
59098         * lib/freading.c: Include stdio-impl.h.
59099         (freading): Remove redundant #defines.
59100         * lib/freadptr.c: Include stdio-impl.h.
59101         (freadptr): Remove redundant #defines.
59102         * lib/freadseek.c: Include stdio-impl.h.
59103         (freadptrinc): Remove redundant #defines.
59104         * lib/fseeko.c: Include stdio-impl.h.
59105         (rpl_fseeko): Remove redundant #defines.
59106         * lib/fseterr.c: Include stdio-impl.h.
59107         (fseterr): Remove redundant #defines.
59108         * lib/fwritable.c: Include stdio-impl.h.
59109         (fwritable: Remove redundant #defines.
59110         * lib/fwriting.c: Include stdio-impl.h.
59111         (fwriting): Remove redundant #defines.
59112         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59113         * modules/fflush (Files): Likewise.
59114         * modules/fpurge (Files): Likewise.
59115         * modules/freadable (Files): Likewise.
59116         * modules/freadahead (Files): Likewise.
59117         * modules/freading (Files): Likewise.
59118         * modules/freadptr (Files): Likewise.
59119         * modules/freadseek (Files): Likewise.
59120         * modules/fseeko (Files): Likewise.
59121         * modules/fseterr (Files): Likewise.
59122         * modules/fwritable (Files): Likewise.
59123         * modules/fwriting (Files): Likewise.
59124
59125 2008-04-26  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59128         restore_seek_optimization, update_fpos_cache): New functions, extracted
59129         from rpl_fflush.
59130         (rpl_fflush): Use them.
59131         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59132         (gl_REPLACE_FFLUSH): Use it.
59133
59134 2008-04-26  Bruno Haible  <bruno@clisp.org>
59135
59136         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59137         on Solaris.
59138         * tests/test-xstrtoimax.sh: Likewise.
59139         * tests/test-xstrtoumax.sh: Likewise.
59140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59141
59142 2008-04-26  Bruno Haible  <bruno@clisp.org>
59143
59144         * modules/memchr-tests: New file.
59145         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59146
59147 2008-04-26  Eric Blake  <ebb9@byu.net>
59148             Bruno Haible  <bruno@clisp.org>
59149
59150         * lib/memchr.c: Include intprops.h.
59151         (__memchr): Optimize parallel detection of matching bytes. Rename local
59152         variables. Add explanatory comments.
59153
59154 2008-04-26  Bruno Haible  <bruno@clisp.org>
59155
59156         Fix module 'memchr', broken since 2000-10-28.
59157         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59158
59159 2008-04-26  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59162         comments.
59163
59164 2008-04-25  Eric Blake  <ebb9@byu.net>
59165
59166         Use native fstatat on cygwin 1.7.0.
59167         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59168         first.
59169
59170 2008-04-23  Eric Blake  <ebb9@byu.net>
59171
59172         Improve memchr2 performance.
59173         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59174         NUL bytes.
59175         * modules/memchr2 (Depends-on): Use intprops.h.
59176
59177 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59178
59179         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59180         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59181         <blp@cs.stanford.edu>.
59182
59183 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59184
59185         * lib/arpa_inet.in.h: New file.
59186
59187         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59188         (Makefile.am): Sed in substitute header file.
59189
59190         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59191         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59192
59193         * modules/inet_ntop (configure.ac): Use
59194         gl_ARPA_INET_MODULE_INDICATOR.
59195
59196         * modules/inet_pton (configure.ac): Use
59197         gl_ARPA_INET_MODULE_INDICATOR.
59198
59199 2008-04-22  Jim Meyering  <meyering@redhat.com>
59200
59201         * modules/verify (License): Re-license as LGPLv2+.
59202
59203 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59204
59205         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59206         parameter to void* as per POSIX standard (MinGW uses char*).
59207
59208 2008-04-21  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59211         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59212         Define to replacements if REPLACE_ISWCNTRL is 1.
59213         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59214         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59215         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59216         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59217         what it fixes.
59218         * doc/posix-functions/iswalpha.texi: Likewise.
59219         * doc/posix-functions/iswblank.texi: Likewise.
59220         * doc/posix-functions/iswcntrl.texi: Likewise.
59221         * doc/posix-functions/iswdigit.texi: Likewise.
59222         * doc/posix-functions/iswgraph.texi: Likewise.
59223         * doc/posix-functions/iswlower.texi: Likewise.
59224         * doc/posix-functions/iswprint.texi: Likewise.
59225         * doc/posix-functions/iswpunct.texi: Likewise.
59226         * doc/posix-functions/iswspace.texi: Likewise.
59227         * doc/posix-functions/iswupper.texi: Likewise.
59228         * doc/posix-functions/iswxdigit.texi: Likewise.
59229         Reported by Alain Guibert.
59230
59231 2008-04-21  Bruno Haible  <bruno@clisp.org>
59232
59233         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59234         Patch by Alain Guibert.
59235
59236 2008-04-21  Bruno Haible  <bruno@clisp.org>
59237
59238         Fix test failures on mingw.
59239         * tests/test-xstrtol.c (print_no_progname): New function.
59240         (main): Install it in error_print_progname hook.
59241         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59242         * tests/test-xstrtoimax.sh: Likewise.
59243         * tests/test-xstrtoumax.sh: Likewise.
59244
59245 2008-04-21  Bruno Haible  <bruno@clisp.org>
59246
59247         Fix test failure on mingw.
59248         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59249
59250 2008-04-21  Bruno Haible  <bruno@clisp.org>
59251
59252         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59253         Actually assign a value.
59254
59255 2008-04-20  Bruno Haible  <bruno@clisp.org>
59256
59257         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59258         take 2.
59259         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59260         'canonicalize-lgpl' module is also used.
59261         * lib/canonicalize-lgpl.c: Undo last change.
59262         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59263
59264 2008-04-20  Bruno Haible  <bruno@clisp.org>
59265
59266         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59267         config.h. Provide _mkdir based fallback for mingw.
59268         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59269         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59270         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59271         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59272         rather than defining mkdir in config.h.
59273         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59274         (gl_SYS_STAT_H_DEFAULTS): New macro.
59275         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59276         HAVE_IO_H any more.
59277         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59278         HAVE_DECL_MKDIR and HAVE_IO_H.
59279
59280 2008-04-20  Bruno Haible  <bruno@clisp.org>
59281
59282         * lib/isapipe.c: Port to native Windows platforms.
59283
59284 2008-04-20  Bruno Haible  <bruno@clisp.org>
59285
59286         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59287
59288 2008-04-21  Eric Blake  <ebb9@byu.net>
59289
59290         Work around preprocessors that don't handle UINTMAX_MAX.
59291         * lib/memchr2.c (memchr2): Avoid embedded #if.
59292         Reported by Alain Guibert, fix suggested by Bruno Haible.
59293
59294 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59295
59296         * doc/posix-functions/strftime.texi (strftime): Explain better
59297         Windows incompatibility.  Suggested by Micah Cowan
59298         <micah@cowan.name>.
59299
59300 2008-04-20  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59303         unistr/u8-mblen.
59304
59305 2008-04-20  Bruno Haible  <bruno@clisp.org>
59306
59307         Fix test failure on platforms with non-GNU iconv.
59308         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59309         (U_TO_U8): Use it, rather than u16_to_u8.
59310         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59311         units at the end of the input string.
59312         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59313
59314 2008-04-20  Bruno Haible  <bruno@clisp.org>
59315
59316         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59317         when the resulting length is 0.
59318         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59319
59320 2008-04-20  Bruno Haible  <bruno@clisp.org>
59321
59322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59323         works.
59324         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59325
59326 2008-04-20  Bruno Haible  <bruno@clisp.org>
59327
59328         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59329         * modules/tsearch-tests (configure.ac): Test for initstate function.
59330
59331 2008-04-20  Bruno Haible  <bruno@clisp.org>
59332
59333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59334         for nlink_t if missing.
59335         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59336
59337 2008-04-19  Bruno Haible  <bruno@clisp.org>
59338
59339         Work around snprintf bug on Linux libc5.
59340         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59342         gl_SNPRINTF_SIZE1.
59343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59344         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59345         that test failed.
59346         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59347         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59348         * modules/snprintf (Files): Add m4/printf.m4.
59349         * modules/vsnprintf (Files): Likewise.
59350         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59351         * doc/posix-functions/vsnprintf.texi: Likewise.
59352
59353 2008-04-19  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59356         from 0.0058 to less than 10^-7.
59357
59358 2008-04-19  Bruno Haible  <bruno@clisp.org>
59359
59360         Fix rounding when a precision is given.
59361         * lib/vasnprintf.c (is_borderline): New function.
59362         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59363         9...9x.
59364         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59365         %e, %g.
59366         * tests/test-vasprintf-posix.c (test_function): Likewise.
59367         * tests/test-snprintf-posix.h (test_function): Likewise.
59368         * tests/test-sprintf-posix.h (test_function): Likewise.
59369         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59370         * tests/test-printf-posix.h (test_function): Likewise.
59371         * tests/test-printf-posix.output: Update.
59372         Reported by John Darrington <john@darrington.wattle.id.au> via
59373         Ben Pfaff <blp@cs.stanford.edu>.
59374
59375 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59376
59377         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59378         Suggested by Bruno Haible <bruno@clisp.org>.
59379
59380 2008-04-17  Bruno Haible  <bruno@clisp.org>
59381
59382         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59383         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59384         implementation.
59385         Patch by Bruce Merry <bmerry@gmail.com>.
59386
59387 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59388
59389         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59390         doesn't work under Windows.
59391
59392 2008-04-16  Bruno Haible  <bruno@clisp.org>
59393
59394         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59395         New macros.
59396         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59397         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59398         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59399         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59400         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59401         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59402         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59403         macros.
59404         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59405         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59406         Northern Sotho, Uighur.
59407
59408 2008-04-16  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59411         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59412         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59413         Reported by Daniel Bergström <daniel@octocode.com>.
59414
59415 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59416             Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59419         function.
59420         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59421         New functions, mostly extracted from gl_locale_name_default.
59422         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59423
59424 2008-04-16  Eric Blake  <ebb9@byu.net>
59425
59426         Adjust strtod detection to catch glibc 2.7 bug.
59427         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59428         Reported by John Gatewood Ham.
59429
59430 2008-04-16  Bruno Haible  <bruno@clisp.org>
59431
59432         Add tentative support for Linux libc5.
59433         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59434         * lib/fpurge.c (fpurge): Likewise.
59435         * lib/freadable.c (freadable): Likewise.
59436         * lib/freadahead.c (freadahead): Likewise.
59437         * lib/freading.c (freading): Likewise.
59438         * lib/freadptr.c (freadptr): Likewise.
59439         * lib/freadseek.c (freadptrinc): Likewise.
59440         * lib/fseeko.c (rpl_fseeko): Likewise.
59441         * lib/fseterr.c (fseterr): Likewise.
59442         * lib/fwritable.c (fwritable): Likewise.
59443         * lib/fwriting.c (fwriting): Likewise.
59444         Reported by Alain Guibert <alguibert+bts@free.fr>.
59445
59446 2008-04-15  Bruno Haible  <bruno@clisp.org>
59447
59448         * modules/mathl (configure.ac): Define module indicator.
59449
59450 2008-04-15  Bruno Haible  <bruno@clisp.org>
59451
59452         * lib/logl.c (logl): Remove unused variables.
59453
59454 2008-04-15  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59457         fails.
59458
59459 2008-04-15  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/trim.c (trim2): Fix argument of isspace() macro.
59462
59463 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59464
59465         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59466         to 0.
59467         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59468
59469 2008-04-14  Bruno Haible  <bruno@clisp.org>
59470
59471         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59472         AC_LANG_PROGRAM argument.
59473         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59474         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59476         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59477         * m4/math_h.m4 (gl_MATH_H): Likewise.
59478         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59480         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59481         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59482         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59483         * m4/regex.m4 (gl_REGEX): Likewise.
59484         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59485         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59487         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59489         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59490         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59492
59493 2008-04-14  Jim Meyering  <meyering@redhat.com>
59494
59495         test-strtod: fix typos: s/abs/fabs/
59496         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59497
59498 2008-04-13  Bruno Haible  <bruno@clisp.org>
59499
59500         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59501         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59502         module is also used and while not building the reloc-wrapper.
59503
59504 2008-04-13  Bruno Haible  <bruno@clisp.org>
59505
59506         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59507
59508 2008-04-13  Bruno Haible  <bruno@clisp.org>
59509
59510         Fix AIX compilation failure introduced on 2008-04-02.
59511         * tests/test-frexp.c (exp): Undefine before redefining.
59512         * tests/test-frexpl.c (exp): Likewise.
59513
59514 2008-04-13  Bruno Haible  <bruno@clisp.org>
59515
59516         Work around a HP-UX stdio bug.
59517         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59518         * tests/test-ftello.c (main): Likewise.
59519         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59520         * doc/posix-functions/ftello.texi: Likewise.
59521
59522 2008-04-13  Bruno Haible  <bruno@clisp.org>
59523
59524         Make test-signbit pass on HP-UX/hppa.
59525         * tests/test-signbit.c (minus_zerol): New variable.
59526         (test_signbitl): Use it.
59527
59528 2008-04-13  Bruno Haible  <bruno@clisp.org>
59529
59530         Make truncl work on OSF/1 4.0.
59531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59532         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59533         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59535         HAVE_DECL_TRUNCL.
59536         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59537         HAVE_DECL_TRUNCL.
59538         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59539
59540 2008-04-13  Bruno Haible  <bruno@clisp.org>
59541
59542         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59543
59544 2008-04-13  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59547         expression, so as to avoid HP-UX 11 cc compiler bug.
59548
59549 2008-04-13  Bruno Haible  <bruno@clisp.org>
59550
59551         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59552
59553 2008-04-13  Bruno Haible  <bruno@clisp.org>
59554
59555         * lib/git-merge-changelog.c: Remove empty declaration outside of
59556         functions.
59557
59558 2008-04-13  Bruno Haible  <bruno@clisp.org>
59559
59560         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59561
59562 2008-04-13  Bruno Haible  <bruno@clisp.org>
59563
59564         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59565         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59567         also if it exists but lacks definitions of the SHUT_* macros.
59568         * modules/sys_socket (Description): Update.
59569         Reported by Elbert Pol <e.pol@chello.nl>.
59570
59571 2008-04-13  Bruno Haible  <bruno@clisp.org>
59572
59573         * lib/localcharset.c (OS2): Don't redefine if already defined.
59574         Reported by Elbert Pol <e.pol@chello.nl>.
59575
59576 2008-04-13  Bruno Haible  <bruno@clisp.org>
59577
59578         * lib/binary-io.h [__EMX__]: Include <io.h>.
59579         Reported by Elbert Pol <e.pol@chello.nl>.
59580
59581 2008-04-12  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/fpucw.h: Enable the definitions also for x86_64.
59584         Needed for NetBSD/x86_64.
59585         Reported by Thomas Klausner <tk@giga.or.at>.
59586
59587 2008-04-12  Bruno Haible  <bruno@clisp.org>
59588
59589         * tests/test-strtod.c: Include isnand.h.
59590         (main): Use isnand instead of isnan.
59591         Reported by Jim Meyering.
59592
59593 2008-04-12  Bruno Haible  <bruno@clisp.org>
59594
59595         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59596         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59597
59598 2008-04-12  Jim Meyering  <meyering@redhat.com>
59599
59600         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59601
59602 2008-04-12  Bruno Haible  <bruno@clisp.org>
59603
59604         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59605         Reported by Elbert Pol <e.pol@chello.nl>.
59606
59607 2008-04-12  Eric Blake  <ebb9@byu.net>
59608
59609         Work around Solaris 10 math.h bug.
59610         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59611         (gl_MATH_H_DEFAULTS): Set up default.
59612         * modules/math (Makefile.am): Replace new indicators.
59613         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59614         * tests/test-math.c (main): Test this.
59615         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59616         * doc/posix-headers/math.texi (math.h): Mention bug.
59617         Reported by Nelson H. F. Beebe and Jim Meyering.
59618
59619 2008-04-11  Bruno Haible  <bruno@clisp.org>
59620
59621         Adapt to future versions of Apple GCC.
59622         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59623         Reported by Peter O'Gorman <peter@pogma.com>.
59624
59625 2008-04-11  Bruno Haible  <bruno@clisp.org>
59626
59627         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59628
59629 2008-04-11  Bruno Haible  <bruno@clisp.org>
59630
59631         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59632
59633         * modules/getaddrinfo-tests (Makefile.am): Define
59634         test_getaddrinfo_LDADD.
59635
59636 2008-04-11  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59639         (init): Fix syntax error.
59640         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59641         is declared.
59642
59643 2008-04-11  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59646         * modules/glob (Depends-on): Add stdbool.
59647
59648 2008-04-11  Bruno Haible  <bruno@clisp.org>
59649
59650         * lib/trim.c: Include <string.h>.
59651
59652 2008-04-11  Eric Blake  <ebb9@byu.net>
59653
59654         Avoid compile failure on OS/2.
59655         * lib/regex_internal.h (internal_function): Disable optimization
59656         on OS/2 (__EMX__), where it caused compiler error.
59657         Reported by Elbert Pol.
59658
59659 2008-04-11  Bruno Haible  <bruno@clisp.org>
59660
59661         Flush the standard error stream before aborting. Needed on mingw.
59662         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59663         * tests/test-array_list.c (ASSERT): Likewise.
59664         * tests/test-array_oset.c (ASSERT): Likewise.
59665         * tests/test-avltree_list.c (ASSERT): Likewise.
59666         * tests/test-avltree_oset.c (ASSERT): Likewise.
59667         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59668         * tests/test-binary-io.c (ASSERT): Likewise.
59669         * tests/test-byteswap.c (ASSERT): Likewise.
59670         * tests/test-c-ctype.c (ASSERT): Likewise.
59671         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59672         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59673         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59674         * tests/test-c-strstr.c (ASSERT): Likewise.
59675         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59676         * tests/test-canonicalize.c (ASSERT): Likewise.
59677         * tests/test-carray_list.c (ASSERT): Likewise.
59678         * tests/test-ceilf1.c (ASSERT): Likewise.
59679         * tests/test-ceilf2.c (ASSERT): Likewise.
59680         * tests/test-ceill.c (ASSERT): Likewise.
59681         * tests/test-count-one-bits.c (ASSERT): Likewise.
59682         * tests/test-fbufmode.c (ASSERT): Likewise.
59683         * tests/test-fflush2.c (ASSERT): Likewise.
59684         * tests/test-floorf1.c (ASSERT): Likewise.
59685         * tests/test-floorf2.c (ASSERT): Likewise.
59686         * tests/test-floorl.c (ASSERT): Likewise.
59687         * tests/test-fopen.c (ASSERT): Likewise.
59688         * tests/test-fpending.c (ASSERT): Likewise.
59689         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59690         * tests/test-fpurge.c (ASSERT): Likewise.
59691         * tests/test-freadable.c (ASSERT): Likewise.
59692         * tests/test-freadahead.c (ASSERT): Likewise.
59693         * tests/test-freading.c (ASSERT): Likewise.
59694         * tests/test-freadptr.c (ASSERT): Likewise.
59695         * tests/test-freadptr2.c (ASSERT): Likewise.
59696         * tests/test-freadseek.c (ASSERT): Likewise.
59697         * tests/test-freopen.c (ASSERT): Likewise.
59698         * tests/test-frexp.c (ASSERT): Likewise.
59699         * tests/test-frexpl.c (ASSERT): Likewise.
59700         * tests/test-fseek.c (ASSERT): Likewise.
59701         * tests/test-fseeko.c (ASSERT): Likewise.
59702         * tests/test-fstrcmp.c (ASSERT): Likewise.
59703         * tests/test-ftell.c (ASSERT): Likewise.
59704         * tests/test-ftello.c (ASSERT): Likewise.
59705         * tests/test-func.c (ASSERT): Likewise.
59706         * tests/test-fwritable.c (ASSERT): Likewise.
59707         * tests/test-fwriting.c (ASSERT): Likewise.
59708         * tests/test-getdelim.c (ASSERT): Likewise.
59709         * tests/test-getline.c (ASSERT): Likewise.
59710         * tests/test-i-ring.c (ASSERT): Likewise.
59711         * tests/test-iconv-utf.c (ASSERT): Likewise.
59712         * tests/test-iconv.c (ASSERT): Likewise.
59713         * tests/test-isfinite.c (ASSERT): Likewise.
59714         * tests/test-isnand.c (ASSERT): Likewise.
59715         * tests/test-isnanf.c (ASSERT): Likewise.
59716         * tests/test-isnanl.h (ASSERT): Likewise.
59717         * tests/test-ldexpl.c (ASSERT): Likewise.
59718         * tests/test-linked_list.c (ASSERT): Likewise.
59719         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59720         * tests/test-localename.c (ASSERT): Likewise.
59721         * tests/test-lseek.c (ASSERT): Likewise.
59722         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59723         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59724         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59725         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59726         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59727         * tests/test-mbschr.c (ASSERT): Likewise.
59728         * tests/test-mbscspn.c (ASSERT): Likewise.
59729         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59730         * tests/test-mbspbrk.c (ASSERT): Likewise.
59731         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59732         * tests/test-mbsrchr.c (ASSERT): Likewise.
59733         * tests/test-mbsspn.c (ASSERT): Likewise.
59734         * tests/test-mbsstr1.c (ASSERT): Likewise.
59735         * tests/test-mbsstr2.c (ASSERT): Likewise.
59736         * tests/test-mbsstr3.c (ASSERT): Likewise.
59737         * tests/test-memchr2.c (ASSERT): Likewise.
59738         * tests/test-memmem.c (ASSERT): Likewise.
59739         * tests/test-open.c (ASSERT): Likewise.
59740         * tests/test-printf-frexp.c (ASSERT): Likewise.
59741         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59742         * tests/test-printf-posix.c (ASSERT): Likewise.
59743         * tests/test-quotearg.c (ASSERT): Likewise.
59744         * tests/test-rbtree_list.c (ASSERT): Likewise.
59745         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59746         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59747         * tests/test-round1.c (ASSERT): Likewise.
59748         * tests/test-roundf1.c (ASSERT): Likewise.
59749         * tests/test-roundl.c (ASSERT): Likewise.
59750         * tests/test-signbit.c (ASSERT): Likewise.
59751         * tests/test-sleep.c (ASSERT): Likewise.
59752         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59753         * tests/test-snprintf.c (ASSERT): Likewise.
59754         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59755         * tests/test-stat-time.c (ASSERT): Likewise.
59756         * tests/test-strcasestr.c (ASSERT): Likewise.
59757         * tests/test-strerror.c (ASSERT): Likewise.
59758         * tests/test-striconv.c (ASSERT): Likewise.
59759         * tests/test-striconveh.c (ASSERT): Likewise.
59760         * tests/test-striconveha.c (ASSERT): Likewise.
59761         * tests/test-strsignal.c (ASSERT): Likewise.
59762         * tests/test-strstr.c (ASSERT): Likewise.
59763         * tests/test-strtod.c (ASSERT): Likewise.
59764         * tests/test-trunc1.c (ASSERT): Likewise.
59765         * tests/test-trunc2.c (ASSERT): Likewise.
59766         * tests/test-truncf1.c (ASSERT): Likewise.
59767         * tests/test-truncf2.c (ASSERT): Likewise.
59768         * tests/test-truncl.c (ASSERT): Likewise.
59769         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59770         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59771         * tests/test-vasnprintf.c (ASSERT): Likewise.
59772         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59773         * tests/test-vasprintf.c (ASSERT): Likewise.
59774         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59775         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59776         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59777         * tests/test-vsnprintf.c (ASSERT): Likewise.
59778         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59779         * tests/test-wcwidth.c (ASSERT): Likewise.
59780         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59781         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59782         * tests/test-xvasprintf.c (ASSERT): Likewise.
59783         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59784         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59785         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59786         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59787         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59788         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59789         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59790         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59791         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59792         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59793         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59794         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59795         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59796         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59797         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59798         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59799         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59800         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59801         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59802         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59803         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59804         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59805         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59806         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59807         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59808         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59809         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59810         * tests/unictype/test-combining.c (ASSERT): Likewise.
59811         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59812         * tests/unictype/test-digit.c (ASSERT): Likewise.
59813         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59814         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59815         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59816         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59817         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59818         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59819         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59820         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59821         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59822         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59823         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59824         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59825         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59826         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59827         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59828         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59829         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59830         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59831         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59832         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59833         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59834         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59835         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59836         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59837         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59838         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59839         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59840         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59841         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59842         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59843         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59844         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59845         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59846         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59847         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59848         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59849         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59850         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59851         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59852         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59853         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59854         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59855         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59856         Reported by Eric Blake.
59857
59858 2008-04-11  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/wchar.in.h: Tweak comment.
59861
59862 2008-04-11  Bruno Haible  <bruno@clisp.org>
59863
59864         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59865         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59866         gl_COMMON.
59867         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59868
59869 2008-04-11  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59872
59873 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59874
59875         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59876         of attempting to use non-existing /dev/*random.  Based on patch
59877         from Adam Strzelecki <ono@java.pl> in
59878         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59879
59880 2008-04-08  Bruno Haible  <bruno@clisp.org>
59881
59882         Add tentative support for emx+gcc.
59883         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59884         * lib/fpurge.c (fpurge): Likewise.
59885         * lib/freadable.c (freadable): Likewise.
59886         * lib/freadahead.c (freadahead): Likewise.
59887         * lib/freading.c (freading): Likewise.
59888         * lib/freadptr.c (freadptr): Likewise.
59889         * lib/freadseek.c (freadptrinc): Likewise.
59890         * lib/fseeko.c (rpl_fseeko): Likewise.
59891         * lib/fseterr.c (fseterr): Likewise.
59892         * lib/fwritable.c (fwritable): Likewise.
59893         * lib/fwriting.c (fwriting): Likewise.
59894         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59895
59896 2008-04-09  Eric Blake  <ebb9@byu.net>
59897
59898         Avoid some autoconf warnings.
59899         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59900         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59901         * m4/afs.m4 (gl_AFS): Likewise.
59902         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59903         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59905         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59906         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59907         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59908         (AC_CHECK_DECLS_ONCE): Likewise.
59909         Rename file...
59910         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59911         gnulib-tool requires autoconf 2.59 or better.
59912         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59913
59914 2008-04-08  Eric Blake  <ebb9@byu.net>
59915
59916         Use 'git describe --match' if present (added in git 1.5.5).
59917         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59918         if possible.
59919
59920 2008-04-08  Bruno Haible  <bruno@clisp.org>
59921
59922         Add tentative support for OpenServer.
59923         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59924         _ptr, _cnt.
59925         * lib/fpurge.c (fpurge): Likewise.
59926         * lib/freadable.c (freadable): Likewise.
59927         * lib/freadahead.c (freadahead): Likewise.
59928         * lib/freading.c (freading): Likewise.
59929         * lib/freadptr.c (freadptr): Likewise.
59930         * lib/freadseek.c (freadptrinc): Likewise.
59931         * lib/fseeko.c (rpl_fseeko): Likewise.
59932         * lib/fseterr.c (fseterr): Likewise.
59933         * lib/fwritable.c (fwritable): Likewise.
59934         * lib/fwriting.c (fwriting): Likewise.
59935         Reported by Roger Cornelius <rac@tenzing.org> and
59936         Brian K. White <brian@aljex.com>.
59937
59938 2008-04-06  Jim Meyering  <meyering@redhat.com>
59939
59940         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59941
59942 2008-04-06  Bruno Haible  <bruno@clisp.org>
59943
59944         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59945         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59946         * tests/test-printf-posix.sh: Likewise.
59947         * tests/test-vfprintf-posix.sh: Likewise.
59948         * tests/test-vprintf-posix.sh: Likewise.
59949         * tests/test-xprintf-posix.sh: Likewise.
59950
59951 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59952
59953         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59954         hide error from 'ls', needed on OS/2.
59955         Report by Elbert Pol <elbert.pol@gmail.com>.
59956
59957 2008-04-04  Eric Blake  <ebb9@byu.net>
59958
59959         Make test-fseeko.c failures meaningful.
59960         * tests/test-fseeko.c: Print line number on failure.
59961         * tests/test-fseek.c: Likewise.
59962         Reported by Nelson H. F. Beebe.
59963
59964         Improve strtod bug detection check.
59965         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59966         required for Solaris 10.
59967         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59968
59969 2008-04-04  Bruno Haible  <bruno@clisp.org>
59970
59971         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59972         by m4/setenv.m4.
59973
59974 2008-04-03  Eric Blake  <ebb9@byu.net>
59975
59976         Ensure sane .version contents.
59977         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59978         version string.
59979         * build-aux/git-version-gen: Improve documentation.
59980
59981         Make GNU make output nicer.
59982         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59983         MAKECMDGOALS to enforce message for all command line targets.  Set
59984         srcdir for use in maint.mk.
59985
59986         Another maintainer tweak.
59987         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59988         a target that regenerates version.
59989
59990 2008-04-03  Jim Meyering  <meyering@redhat.com>
59991
59992         vc-list-files: don't cause coreutils "make po-check" failure
59993         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59994
59995 2008-04-03  Eric Blake  <ebb9@byu.net>
59996
59997         Allow VPATH usage of vc-list-files.
59998         * build-aux/vc-list-files (scriptversion): Add timestamp.
59999         (options): Add --help, --version, -C.
60000         (CVS): Support installed cvsu.
60001
60002 2008-04-02  Bruno Haible  <bruno@clisp.org>
60003
60004         Avoid some "statement with no effect" warnings from gcc.
60005         * tests/test-wctype.c (main): Explicitly ignore unused values.
60006         Reported by Jim Meyering.
60007
60008 2008-04-02  Jim Meyering  <meyering@redhat.com>
60009
60010         Avoid some warnings from "gcc -Wshadow".
60011         * tests/test-frexp.c (exp): Define to a different identifier.
60012         * tests/test-frexpl.c (exp): Likewise.
60013
60014 2008-04-03  Jim Meyering  <meyering@redhat.com>
60015
60016         bootstrap: remove dangling *.[ch] symlinks from lib
60017         * build-aux/bootstrap [dangling symlink removal]: Move find's
60018         -depth option to precede all others, to avoid a warning.
60019         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60020
60021 2008-04-02  Bruno Haible  <bruno@clisp.org>
60022
60023         Avoid some warnings from "gcc -Wshadow".
60024         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60025         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60026         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60027         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60028         Reported by Jim Meyering.
60029
60030 2008-04-01  Bruno Haible  <bruno@clisp.org>
60031
60032         Fix test to work on IRIX 6.5 with cc.
60033         * tests/test-math.c (numeric_equal): New function.
60034         (main): Use it.
60035
60036 2008-04-01  Bruno Haible  <bruno@clisp.org>
60037
60038         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60039
60040 2008-04-01  Bruno Haible  <bruno@clisp.org>
60041
60042         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60043         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60044         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60045         (Depends-on): Remove math.
60046
60047         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60048         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60049         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60050         (Depends-on): Remove math.
60051
60052         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60053         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60054         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60055         (Depends-on): Remove math.
60056         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60057         (Depends-on): Remove math.
60058
60059         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60060         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60061         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60062         (Depends-on): Remove math.
60063         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60064         (Depends-on): Remove math.
60065
60066         * tests/test-round1.c: Include nan.h.
60067         (main): Use NaNd instead of NAN.
60068         * modules/round-tests (Files): Add tests/nan.h.
60069
60070         * tests/test-trunc1.c: Include nan.h.
60071         (main): Use NaNd instead of NAN.
60072         * modules/trunc-tests (Files): Add tests/nan.h.
60073
60074         * tests/test-roundf1.c: Include nan.h.
60075         (main): Use NaNf instead of NAN.
60076         * modules/roundf-tests (Files): Add tests/nan.h.
60077
60078         * tests/test-truncf1.c: Include nan.h.
60079         (main): Use NaNf instead of NAN.
60080         * modules/truncf-tests (Files): Add tests/nan.h.
60081
60082         * tests/test-ceilf1.c: Include nan.h.
60083         (main): Use NaNf instead of NAN.
60084         * modules/ceilf-tests (Files): Add tests/nan.h.
60085
60086         * tests/test-floorf1.c: Include nan.h.
60087         (main): Use NaNf instead of NAN.
60088         * modules/floorf-tests (Files): Add tests/nan.h.
60089
60090         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60091         (main): Use NaNf instead of NAN.
60092         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60093
60094         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60095         (main): Use NaNd instead of NAN.
60096         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60097
60098         * tests/test-frexp.c: Include nan.h.
60099         (main): Use NaNd instead of NAN.
60100         * modules/frexp-tests (Files): Add tests/nan.h.
60101
60102         * lib/isnan.c: Don't include <math.h>.
60103         (FUNC): Don't use NAN macro.
60104         * modules/isnand-nolibm (Depends-on): Remove math.
60105         * modules/isnanf-nolibm (Depends-on): Remove math.
60106         * modules/isnanl (Depends-on): Remove math.
60107         * modules/isnanl-nolibm (Depends-on): Remove math.
60108
60109         * tests/nan.h: New file.
60110
60111 2008-04-01  Eric Blake  <ebb9@byu.net>
60112
60113         Fix typos.
60114         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60115         values to be the right type.
60116
60117         For now, cater to gnulib strtod inaccuracies.
60118         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60119         fractional results.  While not as nice from a QoI perspective, it
60120         is a quicker patch than correctly implementing decimal to binary
60121         rounding.
60122
60123 2008-03-31  Eric Blake  <ebb9@byu.net>
60124
60125         Guarantee a definition of NAN.
60126         * lib/math.in.h (NAN): Define if missing.
60127         * tests/test-math.c (main): Test it.
60128         * doc/posix-headers/math.texi (math.h): Document this.
60129         * lib/isnan.c (rpl_isnand): Use it.
60130         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60131         * tests/test-floorf1.c (NaN): Likewise.
60132         * tests/test-frexp.c (NaN): Likewise.
60133         * tests/test-isnand.c (NaN): Likewise.
60134         * tests/test-isnanf.c (NaN): Likewise.
60135         * tests/test-round1.c (NaN): Likewise.
60136         * tests/test-roundf1.c (NaN): Likewise.
60137         * tests/test-snprintf-posix.h (NaN): Likewise.
60138         * tests/test-sprintf-posix.h (NaN): Likewise.
60139         * tests/test-trunc1.c (NaN): Likewise.
60140         * tests/test-truncf1.c (NaN): Likewise.
60141         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60142         * tests/test-vasprintf-posix.c (NaN): Likewise.
60143         * modules/isnand-nolibm (Depends-on): Add math.
60144         * modules/isnanf-nolibm (Depends-on): Likewise.
60145         * modules/isnanl (Depends-on): Likewise.
60146         * modules/isnanl-nolibm (Depends-on): Likewise.
60147         * modules/snprintf-posix-tests (Depends-on): Likewise.
60148         * modules/sprintf-posix-tests (Depends-on): Likewise.
60149         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60150         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60151         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60152         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60153
60154 2008-03-31  Bruno Haible  <bruno@clisp.org>
60155
60156         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60157         * doc/posix-functions/strtod.texi: Likewise.
60158
60159 2008-03-31  Bruno Haible  <bruno@clisp.org>
60160
60161         * tests/test-strtod.c (main): Don't use C99 syntax.
60162
60163 2008-03-31  Bruno Haible  <bruno@clisp.org>
60164
60165         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60166         Reported by Eric Blake.
60167
60168 2008-03-31  Jim Meyering  <meyering@redhat.com>
60169
60170         Don't compare actual signbit return values.
60171         * tests/test-strtod.c (main): Rather, compare only their
60172         zero/non-zero nature.
60173
60174 2008-03-31  Eric Blake  <ebb9@byu.net>
60175
60176         More strtod documentation.
60177         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60178         failures as distinct bugs.
60179
60180 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60181
60182         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60183         Problem reported by Erik Benada in
60184         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60185
60186 2008-03-30  Bruno Haible  <bruno@clisp.org>
60187
60188         * tests/test-strtod.c: Add comments about which assertion fails on which
60189         platform.
60190         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60191
60192 2008-03-30  Eric Blake  <ebb9@byu.net>
60193
60194         Test signbit behavior on zeros.
60195         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60196         (test_signbitd, test_signbitl): Likewise.
60197
60198         More strtod touchups.
60199         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60200         sign of negative underflow, for now.  Use .5, not .1.
60201         * doc/posix-functions/strtod.texi (strtod): Mention these
60202         limitations.
60203         Reported by Jim Meyering.
60204
60205 2008-03-30  Bruno Haible  <bruno@clisp.org>
60206
60207         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60208         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60209
60210 2008-03-30  Bruno Haible  <bruno@clisp.org>
60211
60212         Avoid failure when attempting to return empty iconv results on some
60213         platforms.
60214         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60215         allocation, don't report ENOMEM when the resulting string is empty.
60216
60217 2008-03-30  Bruno Haible  <bruno@clisp.org>
60218
60219         Fix buffer overrun.
60220         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60221         Don't consider the width for tmp_length. Check count against tmp_length
60222         before doing the padding. Ensure enough allocation during padding.
60223
60224 2008-03-30  Eric Blake  <ebb9@byu.net>
60225
60226         strtod touchups.
60227         * lib/strtod.c (strtod): Avoid compiler warnings.
60228         Reported by Jim Meyering.
60229
60230 2008-03-30  Bruno Haible  <bruno@clisp.org>
60231
60232         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60233         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60234         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60235         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60236         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60237         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60238         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60239         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60240
60241         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60242         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60243         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60244         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60245         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60246         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60247         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60248         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60249
60250         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60251         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60252         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60253         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60254         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60255         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60256         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60257         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60258
60259         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60260         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60261
60262         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60263         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60264
60265         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60266         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60267
60268         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60270         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60271
60272         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60274         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60275
60276         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60278         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60279
60280         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60282         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60283
60284         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60285         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60287         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60288         (Depends-on): Add EOVERFLOW.
60289         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60290         (Depends-on): Add EOVERFLOW.
60291         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60292         (Depends-on): Add EOVERFLOW.
60293         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60294         (Depends-on): Add EOVERFLOW.
60295         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60296         (Depends-on): Add EOVERFLOW.
60297         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60298         (Depends-on): Add EOVERFLOW.
60299         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60300         (Depends-on): Add EOVERFLOW.
60301         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60302         (Depends-on): Add EOVERFLOW.
60303
60304         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60306         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60307
60308         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60310         * modules/snprintf (Depends-on): Add EOVERFLOW.
60311
60312         * lib/poll.c (EOVERFLOW): Remove fallback.
60313         * modules/poll (Depends-on): Add EOVERFLOW.
60314
60315         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60316         * modules/getugroups (Depends-on): Add EOVERFLOW.
60317
60318         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60319         * modules/getdelim (Depends-on): Add EOVERFLOW.
60320
60321         * lib/ftell.c (EOVERFLOW): Remove fallback.
60322         * modules/ftell (Depends-on): Add EOVERFLOW.
60323
60324         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60326         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60327
60328         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60329
60330         * modules/EOVERFLOW-tests: New file.
60331         * tests/test-EOVERFLOW.c: New file.
60332
60333         * modules/EOVERFLOW: New file.
60334         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60335
60336 2008-03-30  Bruno Haible  <bruno@clisp.org>
60337
60338         Fix bug introduced on 2007-06-10.
60339         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60340         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60341
60342 2008-03-30  Bruno Haible  <bruno@clisp.org>
60343
60344         Improve freadseek's efficiency after ungetc.
60345         * lib/freadseek.c: Include freadahead.h.
60346         (freadptrinc): New function, extracted from freadseek.
60347         (freadseek): Use it in a loop. Use freadahead to determine the number
60348         of loop iterations.
60349         * modules/freadseek (Depends-on): Add freadahead.
60350         (configure.ac): Require AC_C_INLINE.
60351
60352 2008-03-30  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/freadseek.c (freadseek): Don't ignore the return value of
60355         freadptr.
60356
60357 2008-03-29  Eric Blake  <ebb9@byu.net>
60358
60359         Add hex float support.
60360         * modules/strtod (Depends-on): Add c-ctype.
60361         (Link): Mention POW_LIB.
60362         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60363         whitespace between 'e' and exponent.
60364         * tests/test-strtod.c (main): Enable hex float tests.
60365         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60366         now provides.
60367
60368         Document various strtod bugs, with some fixes.
60369         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60370         "-0x", "inf", "nan", and hex constants.
60371         * doc/posix-functions/atof.texi (atof): Likewise.
60372         * modules/stdlib (Makefile.am): Support strtod.
60373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60374         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60375         detect additional strtod bugs.
60376         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60377         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60378         bool where appropriate.  Parse 'inf' and 'nan'.
60379         * tests/test-strtod.c: New file.
60380         * modules/strtod (Depends-on): Add stdbool, stdlib.
60381         (configure.ac): Turn on module indicator.
60382         * modules/strtod-tests: New module.
60383
60384 2008-03-29  Eric Blake  <ebb9@byu.net>
60385
60386         Fix ftell on mingw.
60387         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60388         * modules/ftell-tests (Depends-on): Add binary-io.
60389         * modules/ftello-tests (Depends-on): Likewise.
60390         * tests/test-ftell.c (main): Enhance test to cover behavior after
60391         ungetc.  Enforce binary mode.
60392         * tests/test-ftello.c (main): Likewise.
60393
60394         Pass test-freadseek on cygwin.
60395         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60396         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60397         ungetc buffer.
60398
60399         * tests/test-fflush2.c (main): Fix typo.
60400
60401 2008-03-29  Bruno Haible  <bruno@clisp.org>
60402
60403         * tests/test-fflush2.c (main): Temporarily disable the contents of
60404         this test.
60405         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60406         Reported by Eric Blake.
60407
60408 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60409
60410         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60411         (GC_SHA224_DIGEST_SIZE): Add.
60412
60413         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60414         (gc_hash_digest_length): Likewise.
60415         (gc_hash_buffer): Likewise.
60416
60417 2008-03-25  Bruno Haible  <bruno@clisp.org>
60418
60419         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60420         detail which gettext release to use.
60421         Reported by Simon Josefsson.
60422
60423 2008-03-26  Jim Meyering  <meyering@redhat.com>
60424
60425         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60426         * modules/gnumakefile (clean-GNUmakefile): Also, use
60427         test ... && ... || : syntax rather than if-then ... fi.
60428
60429         gnumakefile: Don't double-quote-expand $(VPATH) value.
60430         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60431
60432 2008-03-24  Eric Blake  <ebb9@byu.net>
60433
60434         Alter GNUmakefile to install into top directory.
60435         * modules/maintainer-makefile: Split, and add dependency...
60436         * modules/gnumakefile: to this new module.
60437         * build-aux/GNUmakefile: Move...
60438         * top/GNUmakefile: ...here.
60439         * build-aux/maint.mk: Move...
60440         * top/maint.mk: ...here.
60441         * MODULES.html.sh (Support for maintaining...): Document new
60442         module.
60443
60444 2008-03-23  Bruno Haible  <bruno@clisp.org>
60445
60446         * gnulib-tool: New options --vc-files, --no-vc-files.
60447         (func_usage): Document them.
60448         (vc_files): New variable.
60449         (func_import): Consider vc_files.
60450         (func_create_testdir): Set vc_files to empty.
60451         Suggested by Jim Meyering and Karl Berry.
60452
60453 2008-03-23  Bruno Haible  <bruno@clisp.org>
60454
60455         Fix regex compilation error on HP-UX 11.
60456         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60457         * modules/regex (Files): Add m4/mbstate_t.m4.
60458         Reported by Ton Voon <ton.voon@altinity.com>.
60459
60460 2008-03-23  Bruno Haible  <bruno@clisp.org>
60461
60462         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60463
60464 2008-03-23  Eric Blake  <ebb9@byu.net>
60465             Bruno Haible  <bruno@clisp.org>
60466
60467         Install files from top/ in the destination directory.
60468         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60469         augmentation also for the files from top/.
60470         (func_import, func_create_testdir): Rewrite file names:
60471         top/filename -> filename.
60472
60473 2008-03-23  Bruno Haible  <bruno@clisp.org>
60474
60475         Tweak "gnulib --version" output.
60476         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60477
60478 2008-03-23  Bruno Haible  <bruno@clisp.org>
60479
60480         Tweak "gnulib --version" output.
60481         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60482         rather than contents of ChangeLog, when possible.
60483
60484 2008-03-21  Eric Blake  <ebb9@byu.net>
60485
60486         More --version tweaks.
60487         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60488         date of last ChangeLog entry.
60489
60490 2008-03-21  Jim Meyering  <meyering@redhat.com>
60491
60492         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60493
60494 2008-03-20  Eric Blake  <ebb9@byu.net>
60495
60496         VPATH fix.
60497         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60498
60499 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60500
60501         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60502         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60503
60504 2008-03-20  Eric Blake  <ebb9@byu.net>
60505
60506         Sync GNUmakefile with coreutils.
60507         * build-aux/GNUmakefile (have-Makefile): Rename...
60508         (_have-Makefile): ...to this, for namespace consideration.
60509         (GNUmakefile.cfg): Include, if present.
60510         (_autoreconf): Define a default.
60511         (_is-dist-target): New rule for rebuilds to pick up intra-release
60512         version.
60513         (maint-cfg.mk): Rename...
60514         (cfg.mk): ...to this.
60515
60516 2008-03-18  Jim Meyering  <meyering@redhat.com>
60517
60518         New script and module: mktempd
60519         * MODULES.html.sh (maint+release support): Add mktempd.
60520         * build-aux/mktempd: New file.
60521         * modules/mktempd: New file.
60522
60523 2008-03-15  Jim Meyering  <meyering@redhat.com>
60524
60525         Undo last change.
60526         * lib/sha1.c, lib/md5.c: 63 != ~63.
60527         Reported by Andreas Schwab.
60528
60529         sha1.c, md5.c: Hoist a redundant expression.
60530         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60531         "ctx->buflen" only once, before calling *_process_block.
60532         * lib/md5.c (md5_process_bytes): Likewise.
60533
60534 2008-03-14  Eric Blake  <ebb9@byu.net>
60535
60536         Bump copyright year in files generated by gnulib-tool.
60537         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60538         gnulib-tool, rather than hard-coding it.
60539
60540         Fix 'gnulib-tool --version' output to work with git.
60541         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60542         (startup): ...here.
60543         (func_version): Use it to invoke git-version-gen, rather than
60544         relying on CVS keyword expansion.  Modernize wording.
60545         (cvsdatestamp, last_checkin_date, version): Kill unused
60546         variables.
60547
60548 2008-03-12  Jim Meyering  <meyering@redhat.com>
60549
60550         Recognize optional cast of the argument to free.
60551         * build-aux/useless-if-before-free: Update regexps.
60552
60553         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60554
60555 2008-03-11  Bruno Haible  <bruno@clisp.org>
60556
60557         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60558         by a single package.
60559         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60560         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60561         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60562         Reported by Sam Steingold <sds@gnu.org>.
60563
60564 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60565
60566         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60567         repositories.
60568
60569 2008-03-11  Bruno Haible  <bruno@clisp.org>
60570
60571         Avoid conflicts between local macro definitions.
60572         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60573         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60574
60575 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60576             Bruno Haible  <bruno@clisp.org>
60577
60578         Make va_copy work with some version of xlc on AIX 5.1.
60579         * lib/stdarg.in.h: New file.
60580         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60581         On AIX, use a <stdarg.h> file substitute.
60582         * modules/stdarg (Files): Add lib/stdarg.in.h.
60583         (Depends-on): Add include_next.
60584         (Makefile.am): Build a stdarg.h substitute if requested.
60585         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60586
60587 2008-03-10  Bruno Haible  <bruno@clisp.org>
60588
60589         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60590         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60591         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60592
60593 2008-03-10  Bruno Haible  <bruno@clisp.org>
60594
60595         * modules/stdlib (Depends-on): Add include_next, remove
60596         absolute-header.
60597
60598 2008-03-09  Bruno Haible  <bruno@clisp.org>
60599
60600         * lib/freadahead.h (freadahead): Document more precisely.
60601         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60602         the sum of both buffer sizes.
60603         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60604         * NEWS: Document the change.
60605
60606 2008-03-09  Bruno Haible  <bruno@clisp.org>
60607
60608         Extend freadptr to return also the buffer size.
60609         * lib/freadptr.h (freadptr): Add sizep argument.
60610         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60611         (freadptr): Add sizep argument. Determine buffer size like freadahead
60612         does.
60613         * tests/test-freadptr.c: Don't include freadahead.h.
60614         (main): Adapt for new calling convention of freadptr.
60615         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60616         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60617         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60618         tests/test-freadptr2.sh.
60619         (Depends): Remove freadahead.
60620         (TESTS): Add test-freadptr2.sh.
60621         (check_PROGRAMS): Add test-freadptr2.
60622
60623 2008-03-09  Bruno Haible  <bruno@clisp.org>
60624
60625         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60626         Report and solution by Simon Josefsson.
60627
60628 2008-03-06  Bruno Haible  <bruno@clisp.org>
60629
60630         Make fflush after ungetc work on BSD platforms.
60631         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60632         * tests/test-fflush2.c: New file.
60633         * tests/test-fflush2.sh: New file.
60634         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60635         tests/test-fflush2.c.
60636         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60637         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60638
60639 2008-03-06  Eric Blake  <ebb9@byu.net>
60640
60641         Likewise for ftello.
60642         * modules/ftello (Dependencies): Add extensions.
60643         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60644
60645 2008-03-06  Bruno Haible  <bruno@clisp.org>
60646
60647         * modules/fseeko (Dependencies): Add extensions.
60648         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60649         Needed on glibc systems.
60650
60651 2008-03-06  Bruno Haible  <bruno@clisp.org>
60652
60653         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60654         email address.
60655         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60656
60657 2008-03-06  Bruno Haible  <bruno@clisp.org>
60658
60659         * users.txt: Add libgnupdf.
60660
60661 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60662
60663         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60664         (Header File Substitutes, Function Substitutes,
60665         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60666         (Build robot for gnulib): Fix typo.
60667
60668 2008-03-06  Bruno Haible  <bruno@clisp.org>
60669
60670         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60671         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60672
60673 2008-03-06  Bruno Haible  <bruno@clisp.org>
60674
60675         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60676         * doc/gnulib.texi: Include it.
60677
60678 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60679
60680         * modules/func (License): Change license to unlimited; there was
60681         no LGPL parts in the module anyway.
60682
60683 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60684
60685         * modules/__func__: Renamed to modules/func.
60686         * modules/__func__-tests: Renamed to modules/func-tests.
60687         * tests/test-__func__.c: Renamed to tests/test-func.c.
60688         * m4/__func__.m4: Renamed to m4/func.m4.
60689         * doc/gnulib.texi (__func__): Section renamed to func.
60690         Suggested by Eric Blake <ebb9@byu.net>.
60691
60692 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60693
60694         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60695         about __func__.  Make example self-contained.  Suggested by Eric
60696         Blake <ebb9@byu.net>.
60697
60698         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60699         Suggested by Eric Blake <ebb9@byu.net>.
60700
60701 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60702
60703         * modules/__func__: New file.
60704         * modules/__func__-tests: New file.
60705         * tests/test-__func__.c: New file.
60706         * m4/__func__.m4: New file.
60707         * doc/gnulib.texi (__func__): Document __func__ module.
60708
60709 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60710
60711         * modules/byteswap (License): Re-license as LGPLv2+.
60712
60713 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60714
60715         * doc/Makefile: Add pdf target.
60716
60717 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60718
60719         * modules/inline (License): Use 'unlimited', since there are only
60720         *.m4 files in this module.
60721
60722 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60723             Bruno Haible  <bruno@clisp.org>
60724
60725         Add support for HP C 7.1 on OpenVMS 8.3.
60726         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60727
60728 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60729
60730         Update VMS specifics.
60731         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60732
60733 2008-03-02  Jim Meyering  <meyering@redhat.com>
60734
60735         Remove the last dependency on the "free" module.
60736         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60737         Reported by Bob Proulx.
60738
60739         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60740
60741         Remove useless "if" tests before free.  Deprecate "free" module.
60742         * doc/posix-functions/free.texi: Mention that this
60743         module is no longer useful.
60744         * modules/free (Notice): Say this module is obsolete.
60745         * modules/readutmp (Depends-on): Remove free.
60746         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60747         * lib/putenv.c (putenv): Likewise.
60748         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60749         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60750         * tests/test-c-strcasestr.c (main): Likewise.
60751         * tests/test-c-strstr.c (main): Likewise.
60752         * tests/test-mbscasestr1.c (main): Likewise.
60753         * tests/test-mbscasestr2.c (main): Likewise.
60754         * tests/test-mbsstr1.c (main): Likewise.
60755         * tests/test-mbsstr2.c (main): Likewise.
60756         * tests/test-memmem.c (main): Likewise.
60757         * tests/test-strcasestr.c (main): Likewise.
60758         * tests/test-striconv.c (main): Likewise.
60759         * tests/test-striconveh.c (main): Likewise.
60760         * tests/test-striconveha.c (main): Likewise.
60761         * tests/test-strstr.c (main): Likewise.
60762
60763         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60764
60765         bootstrap: sync from coreutils again
60766         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60767
60768 2008-03-01  Jim Meyering  <meyering@redhat.com>
60769
60770         bootstrap: sync from coreutils
60771         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60772         also when the target doesn't exist.
60773
60774 2008-03-01  Eric Blake  <ebb9@byu.net>
60775
60776         Fix bugs in last patch.
60777         * lib/memchr2.c (memchr2): Fix typo.
60778         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60779         extension.
60780         Reported by Bruce Korb.
60781
60782         New module 'memchr2'.
60783         * modules/memchr2: New file.
60784         * modules/memchr2-tests: Likewise.
60785         * lib/memchr2.h: Likewise.
60786         * lib/memchr2.c: Likewise, based on memchr.c.
60787         * tests/test-memchr2.c: New test.
60788         * MODULES.html.sh (String handling): Add memchr2.
60789
60790 2008-02-29  Bruno Haible  <bruno@clisp.org>
60791
60792         * modules/freadseek-tests: New file.
60793         * tests/test-freadseek.sh: New file.
60794         * tests/test-freadseek.c: New file.
60795
60796         New module 'freadseek'.
60797         * modules/freadseek: New file.
60798         * lib/freadseek.h: New file.
60799         * lib/freadseek.c: New file.
60800         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60801
60802 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60803
60804         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60805         wydawca.
60806
60807         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60808         program_invocation_name and program_invocation_short_name are
60809         present.
60810
60811 2008-02-28  Bruno Haible  <bruno@clisp.org>
60812
60813         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60814         * tests/test-freadptr.sh: Also test non-seekable stdin.
60815
60816 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60817
60818         * build-aux/bootstrap (source_base, m4_base)
60819         (doc_base, tests_base): New variables.
60820         (gnulib_tool_options): Do not hardcode base directories, use
60821         the above variables instead.
60822
60823 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60824
60825         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60826
60827 2008-02-28  Bruno Haible  <bruno@clisp.org>
60828
60829         * modules/freadptr-tests: New file.
60830         * tests/test-freadptr.sh: New file.
60831         * tests/test-freadptr.c: New file.
60832
60833         New module 'freadptr'.
60834         * modules/freadptr: New file.
60835         * lib/freadptr.h: New file.
60836         * lib/freadptr.c: New file.
60837         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60838
60839 2008-02-26  Karl Berry  <karl@freefriends.org>
60840
60841         Sync from Libtool:
60842         * libltdl/argz.c (argz_add, argz_count): New functions.
60843         * libltdl/argz.in.h: Declare them.
60844         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60845
60846 2008-02-22  Bruno Haible  <bruno@clisp.org>
60847
60848         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60849         is a pointer type.  Needed for HP-UX 10.
60850         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60851         * doc/posix-functions/gmtime_r.texi: Likewise.
60852         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60853
60854 2008-02-24  Bruno Haible  <bruno@clisp.org>
60855
60856         * modules/environ-tests: New file.
60857         * tests/test-environ.c: New file.
60858
60859         New module 'environ'.
60860         * modules/environ: New file.
60861         * lib/unistd.in.h (environ): New declaration.
60862         * m4/environ.m4: New file.
60863         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60864         after use.
60865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60866         HAVE_DECL_ENVIRON.
60867         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60868         HAVE_DECL_ENVIRON.
60869         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60870         wrong claim that 'environ' is missing on some systems.
60871         * modules/execute (Depends-on): Add environ.
60872         * lib/execute.c (environ): Remove fallback declaration.
60873         * modules/pipe (Depends-on): Add environ.
60874         * lib/pipe.c (environ): Remove fallback declaration.
60875         * modules/setenv (Depends-on): Add environ.
60876         * lib/setenv.c (environ): Remove fallback declaration.
60877         * modules/unsetenv (Depends-on): Add environ.
60878         * lib/unsetenv.c (environ): Remove fallback declaration.
60879         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60880         m4/environ.m4.
60881         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60882         (gl_PREREQ_UNSETENV): Likewise.
60883
60884 2008-02-24  Bruno Haible  <bruno@clisp.org>
60885
60886         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60887
60888 2008-02-20  Bob Proulx  <bob@proulx.com>
60889
60890         Enable use of older two part flavor 'git describe'.
60891         * build-aux/git-version-gen: If using the older two part flavor of
60892         git version then recreate the third part now present in the
60893         newer three part flavor of git describe.
60894
60895 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60896
60897         * lib/fts.c (fts_build): Typo correction to comment.
60898
60899 2008-02-17  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60902         generating no-op conflicts.
60903
60904 2008-02-17  Bruno Haible  <bruno@clisp.org>
60905
60906         Speed up by 10%.
60907         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60908         result_entries, rather than an index-based loop.
60909
60910 2008-02-17  Bruno Haible  <bruno@clisp.org>
60911
60912         Speed up by 25%.
60913         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60914         'hashcode_cached'.
60915         (entry_create): New function.
60916         (entry_hashcode): Use the cached hashcode if possible.
60917         (read_changelog_file, try_split_merged_entry): Use entry_create.
60918
60919 2008-02-17  Bruno Haible  <bruno@clisp.org>
60920
60921         Speed up from O(n^2) to O(n) for long ChangeLog files.
60922         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60923         (read_changelog_file): Change implementation of entries_reversed list
60924         to rbtreehash.
60925         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60926
60927 2008-02-17  Bruno Haible  <bruno@clisp.org>
60928
60929         New option --split-merged-entry.
60930         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60931         (find_paragraph_end, try_split_merged_entry): New functions.
60932         (long_options): Add option --split-merged-entry.
60933         (usage): Document option --split-merged-entry.
60934         (main): Implement option --split-merged-entry.
60935         Reported by Eric Blake.
60936
60937 2008-02-17  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/git-merge-changelog.c: Include c-strstr.h.
60940         (main): Support the "git pull --rebase" situation.
60941         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60942         Reported by Eric Blake.
60943
60944 2008-02-16  Eric Blake  <ebb9@byu.net>
60945
60946         Avoid doubling \ in common case of "c-maybe" quoting style.
60947         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60948         eliding outer quotes.
60949         * lib/quotearg.h: Document this.
60950         * tests/test-quotearg.c (result_strings, inputs, results_g)
60951         (flag_results, locale_results): Test it by adding a new string to
60952         each test group.
60953         (compare_strings): Test new string.
60954
60955 2008-02-13  Eric Blake  <ebb9@byu.net>
60956
60957         Avoid trigraph quoting in default output.
60958         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60959         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60960         unless explicitly requested.
60961         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60962
60963 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60964
60965         Don't rely on signed integer overflowing to negative value.
60966         * lib/getugroups.c (getugroups): Include <limits.h>.
60967         Instead, compare against INT_MAX, and increment only if the test passes.
60968
60969 2008-02-13  Jim Meyering  <meyering@redhat.com>
60970         and Eric Blake  <ebb9@byu.net>
60971
60972         Avoid shadowing warning and compile errors on Linux.
60973         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60974         forwarding macros on Linux.
60975         (dcgettext): Define a stub, for Linux.
60976         (results_g, main): Avoid warnings.
60977
60978 2008-02-12  Eric Blake  <ebb9@byu.net>
60979
60980         Silence warning in last patch.
60981         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60982
60983         Quotearg part 4: add tests, fix c-maybe colon quoting.
60984         * lib/quotearg.h: Improve documentation.
60985         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60986         escapes when adding outer quotes.  When quoting trigraphs, use
60987         valid C notation.  When quoting NUL, omit extra characters if next
60988         character is not digit.  Alter prototype.
60989         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60990         callers.
60991         * modules/quotearg-tests: New module.
60992         * tests/test-quotearg.c: New test.
60993
60994 2008-02-07  Eric Blake  <ebb9@byu.net>
60995
60996         Quotearg part 3: add flag to control outer quote elision.
60997         * lib/quotearg.h (c_maybe_quoting_style): New style.
60998         (enum quoting_flags): Better documentation of flags.
60999         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61000         c-maybe style.
61001         (quotearg_buffer_restyled): Handle new flag to elide outer
61002         quotes.
61003
61004         Quotearg part 2: add flag that can control NUL elision.
61005         * lib/quotearg.h (set_quoting_flags): New prototype.
61006         * lib/quotearg.c (struct quoting_options): Add flag field.
61007         (set_quoting_flags): New function.
61008         (quotearg_buffer_restyled): Add flags parameter.
61009         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61010         (quotearg_n_options): Set the flag, since length cannot be
61011         returned.
61012         (quoting_options_from_style): Default flags correctly.
61013
61014         Quotearg part 1: more wrappers, restore quotearg_char state.
61015         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61016         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61017         (quotearg_colon_mem): New wrappers.
61018         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61019         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61020         functions.
61021         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61022         (quotearg_colon_mem): New functions.
61023
61024 2008-02-11  Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61027         library in the current directory: it does not work with parallel make.
61028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61029
61030 2008-02-11  Bruno Haible  <bruno@clisp.org>
61031
61032         * .gitattributes: New file.
61033
61034 2008-02-11  Jim Meyering  <meyering@redhat.com>
61035
61036         useless-if-before-free: Fix reversed exit values.
61037         * build-aux/useless-if-before-free: Use correct values
61038         for EXIT_MATCH and EXIT_NO_MATCH.
61039
61040         * build-aux/useless-if-before-free: Close stdout carefully.
61041
61042 2008-02-10  Bruno Haible  <bruno@clisp.org>
61043
61044         New module 'git-merge-changelog'.
61045         * modules/git-merge-changelog: New file.
61046         * lib/git-merge-changelog.c: New file.
61047
61048 2008-02-10  Jim Meyering  <meyering@redhat.com>
61049
61050         useless-if-before-free: New option: --list (-l).
61051
61052         useless-if-before-free: Don't exit immediately upon open failure.
61053         * build-aux/useless-if-before-free: Exit 2 for errors.
61054         Upon failure to open a file, don't exit immediately.
61055         Rather, just warn and continue with any remaining files.
61056
61057 2008-02-10  Bruno Haible  <bruno@clisp.org>
61058
61059         New abstract list operation 'node_set_value'.
61060         * lib/gl_list.h (gl_list_node_set_value): New function.
61061         (struct gl_list_implementation): New field node_set_value.
61062         * lib/gl_list.c (gl_list_node_set_value): New function.
61063         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61064         (gl_array_list_implementation): Update.
61065         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61066         (gl_carray_list_implementation): Update.
61067         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61068         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61069         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61070         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61071         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61072         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61073         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61074         Update.
61075         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61076         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61077         (gl_sublist_list_implementation): Update.
61078
61079 2008-02-10  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61082         Needed when ELEMENT is #defined to 'some_type *'.
61083
61084 2008-02-10  Jim Meyering  <meyering@redhat.com>
61085
61086         New script and module: useless-if-before-free
61087         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61088         * build-aux/useless-if-before-free: New file.
61089         * modules/useless-if-before-free: New file.
61090
61091         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61092
61093         xstrtol_error: Fix typo.
61094         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61095         s/exit_failure/exit_status/.
61096
61097 2008-02-09  Jim Meyering  <meyering@redhat.com>
61098
61099         New script and module: gitlog-to-changelog
61100         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61101         * modules/gitlog-to-changelog: New file.
61102         * build-aux/gitlog-to-changelog: New file.
61103
61104 2008-02-08  Jim Meyering  <meyering@redhat.com>
61105
61106         Avoid two "parameter unused" warnings.
61107         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61108         Mark "st" as used.
61109
61110         Use "git COMMAND", not "git-COMMAND".
61111         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61112         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61113         * build-aux/git-version-gen: Use "git status", not "git-status".
61114
61115 2008-02-07  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61118         Avoids a crash on Windows Vista.
61119         Reported by Adam Strzelecki <ono@java.pl> via
61120         Simon Josefsson <simon@josefsson.org>.
61121
61122 2008-02-06  Bruno Haible  <bruno@clisp.org>
61123
61124         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61125         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61126         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61128         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61129         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61130         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61131         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61132         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61133         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61135         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61138         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61139         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61140         left-adjust flag.
61141         * tests/test-snprintf-posix.h (test_function): Likewise.
61142         * tests/test-sprintf-posix.h (test_function): Likewise.
61143         * tests/test-vasprintf-posix.c (test_function): Likewise.
61144         * doc/posix-functions/fprintf.texi: Update.
61145         * doc/posix-functions/printf.texi: Update.
61146         * doc/posix-functions/snprintf.texi: Update.
61147         * doc/posix-functions/sprintf.texi: Update.
61148         * doc/posix-functions/vfprintf.texi: Update.
61149         * doc/posix-functions/vprintf.texi: Update.
61150         * doc/posix-functions/vsnprintf.texi: Update.
61151         * doc/posix-functions/vsprintf.texi: Update.
61152         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61153
61154 2008-02-06  Bruno Haible  <bruno@clisp.org>
61155
61156         Fix bug introduced on 2008-01-26.
61157         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61158
61159 2008-02-06  Bruno Haible  <bruno@clisp.org>
61160
61161         Fix bug introduced on 2007-06-10.
61162         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61163         !NEED_PRINTF_FLAG_ZERO.
61164
61165 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61166
61167         getloadavg: use libperfstat on AIX5
61168         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61169
61170 2008-02-03  Bruno Haible  <bruno@clisp.org>
61171
61172         * lib/diffseq.h: Add comments about required #includes.
61173         Reported by Michael Biggs <gnulib@doubleplum.net>.
61174
61175 2008-02-01  Bruno Haible  <bruno@clisp.org>
61176
61177         * users.txt: Add gnuit.
61178
61179 2008-01-31  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/md4.c (set_uint32): Mark as inline.
61182         * lib/md5.c (set_uint32): Likewise.
61183         * lib/sha1.c (set_uint32): Likewise.
61184         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61185         * m4/md5.m4 (gl_MD5): Likewise.
61186         * m4/sha1.m4 (gl_SHA1): Likewise.
61187
61188 2008-01-31  Jim Meyering  <meyering@redhat.com>
61189
61190         Use "sizeof VAR", rather than a literal "4".
61191         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61192         * lib/md4.c (md4_read_ctx): Likewise.
61193         * lib/sha1.c (sha1_read_ctx): Likewise.
61194
61195 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61196
61197         * tests/test-sha1.c: New file, based on test-md5.c.
61198
61199         * modules/crypto/sha1-tests: New file.
61200
61201 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61202
61203         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61204
61205 2008-01-31  Jim Meyering  <meyering@redhat.com>
61206
61207         Prefer "sizeof v" over the equivalent "4".
61208         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61209         * lib/md5.c (set_uint32): Likewise.
61210         * lib/sha1.c (set_uint32): Likewise.
61211
61212 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61213
61214         * lib/sha1.c (set_uint32): Mark function as static.
61215
61216 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61217
61218         md2: clarify comments to say that alignment is not required.
61219         * lib/md2.h: Remove warning about alignment in comment.
61220         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61221         never been required.
61222
61223 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61224
61225         md4: adapt alignment constraint fix from sha1.
61226         * lib/md4.c (set_uint32): New function, from sha1.c
61227         (md4_read_ctx): Use it.
61228         (md4_finish_ctx): Doc fix.
61229         * lib/md4.h: Doc fix.
61230
61231 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61232
61233         md5: adapt alignment constraint fix from sha1.
61234         * lib/md5.c (set_uint32): New function, from sha1.c
61235         (md5_read_ctx): Use it.
61236         (md5_finish_ctx): Doc fix.
61237         * lib/md5.h: Doc fix.
61238
61239 2008-01-30  Peter Palfrader  <weasel@debian.org>
61240
61241         sha1: remove the result buffer alignment constraint
61242         * lib/sha1.c (set_uint32): New function.
61243         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61244         constraint.
61245         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61246         * lib/sha1.h: Likewise.
61247
61248 2008-01-30  Andreas Schwab  <schwab@suse.de>
61249             Bruno Haible  <bruno@clisp.org>
61250
61251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61252         correct definition of LDBL_MIN_EXP.
61253
61254 2008-01-30  Karl Berry  <karl@gnu.org>
61255
61256         * config/srclist-update: try to preserve x bit on updates.
61257         * config/srclistvars.sh: update for karl.
61258
61259 2008-01-29  Jim Meyering  <meyering@redhat.com>
61260
61261         vasnprintf.c: Avoid warning about unused label
61262         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61263         "overflow" label definition and associated code with the
61264         same cpp condition that guards the sole use of that label.
61265
61266 2008-01-26  Bruno Haible  <bruno@clisp.org>
61267
61268         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61269         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61270         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61271         * lib/isnanl-nolibm.h (isnanl): Likewise.
61272         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61273
61274 2008-01-26  Bruno Haible  <bruno@clisp.org>
61275
61276         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61277         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61278
61279 2008-01-26  Bruno Haible  <bruno@clisp.org>
61280
61281         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61282         GCC >= 4.0 built-in.
61283         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61284
61285 2008-01-26  Bruno Haible  <bruno@clisp.org>
61286
61287         Rename isnan, applicable to 'double' only, to isnand.
61288         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61289         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61290         (configure.ac): Update.
61291         (Include): Replace "isnan.h" with "isnand.h".
61292         * m4/isnand.m4: Renamed from m4/isnan.m4.
61293         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61294         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61295         instead of isnan.c.
61296         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61297         instead of HAVE_ISNAN_IN_LIBC.
61298         (isnand): Renamed from isnan.
61299         * lib/isnand.c: New file.
61300         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61301         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61302         (Makefile.am): Update.
61303         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61304         Include isnand.h instead of isnan.h.
61305         (main): Test isnand instead of isnan.
61306         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61307         isnan-nolibm.
61308         * modules/frexp (Depends-on): Likewise.
61309         * modules/frexp-tests (Depends-on): Likewise.
61310         * modules/frexp-nolibm (Depends-on): Likewise.
61311         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61312         * modules/isfinite (Depends-on): Likewise.
61313         * modules/round-tests (Depends-on): Likewise.
61314         * modules/signbit (Depends-on): Likewise.
61315         * modules/signbit-tests (Depends-on): Likewise.
61316         * modules/snprintf-posix (Depends-on): Likewise.
61317         * modules/sprintf-posix (Depends-on): Likewise.
61318         * modules/trunc-tests (Depends-on): Likewise.
61319         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61320         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61321         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61322         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61323         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61324         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61325         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61326         * modules/vasnprintf-posix (Depends-on): Likewise.
61327         * modules/vasprintf-posix (Depends-on): Likewise.
61328         * modules/vfprintf-posix (Depends-on): Likewise.
61329         * modules/vsnprintf-posix (Depends-on): Likewise.
61330         * modules/vsprintf-posix (Depends-on): Likewise.
61331         * lib/frexp.c: Include isnand.h instead of isnan.h.
61332         (ISNAN): Set to isnand instead of isnan.
61333         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61334         (gl_isfinited): Use isnand instead of isnan.
61335         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61336         (gl_signbitd): Use isnand instead of isnan.
61337         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61338         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61339         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61340         (main): Use isnand instead of isnan.
61341         * tests/test-round1.c: Include isnand.h.
61342         (main): Use isnand instead of isnan.
61343         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61344         (ISNAN): Set to isnand instead of isnan.
61345         * tests/test-trunc1.c: Include isnand.h.
61346         (main): Use isnand instead of isnan.
61347         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61348         (equal): Use isnand instead of isnan.
61349         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61350         isnand-nolibm.
61351         * NEWS: Mention the change.
61352
61353 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61354             Bruno Haible  <bruno@clisp.org>
61355
61356         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61357         the GCC builtins for signbits are present and set
61358         REPLACE_SIGNBIT_USING_GCC if so.
61359         * lib/math.in.h (signbit): Define using GCC builtins if
61360         REPLACE_SIGNBIT_USING_GCC is set.
61361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61362         REPLACE_SIGNBIT_USING_GCC.
61363         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61364
61365 2008-01-25  Jim Meyering  <meyering@redhat.com>
61366
61367         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61368         * lib/poll.c: Include <config.h>, not "config.h".
61369         * tests/test-getaddrinfo.c: Likewise.
61370
61371 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61372
61373         * modules/sockets-tests: New file.
61374
61375 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61376
61377         * modules/sockets: New module, can be used to call WSA_Startup and
61378         WSA_Cleanup when needed.
61379
61380         * lib/sockets.h, lib/sockets.c: New files.
61381
61382         * m4/sockets.m4: New file.
61383
61384         * tests/test-sockets.c: New file.
61385
61386 2008-01-19  Bruno Haible  <bruno@clisp.org>
61387
61388         * doc/posix-headers: Renamed from doc/headers.
61389         * doc/posix-functions: Renamed from doc/functions.
61390         * doc/gnulib.texi: Update.
61391
61392 2008-01-19  Bruno Haible  <bruno@clisp.org>
61393
61394         * doc/glibc-functions/strcasestr.texi: Include contents of
61395         doc/functions/strcasestr.texi, fixing the list of platforms.
61396         * doc/functions/strcasestr.texi: Remove file.
61397
61398 2008-01-19  Bruno Haible  <bruno@clisp.org>
61399
61400         * doc/glibc-functions/memmem.texi: Include contents of
61401         doc/functions/memmem.texi.
61402         * doc/functions/memmem.texi: Remove file.
61403
61404 2008-01-18  Bruno Haible  <bruno@clisp.org>
61405
61406         * doc/glibc-functions/*.texi: New files.
61407         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61408         to use the new files.
61409
61410 2008-01-17  Bruno Haible  <bruno@clisp.org>
61411
61412         * tests/test-gethostname.c (main): Fix printf statement.
61413
61414 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61415
61416         * modules/gethostname-tests: New file.
61417
61418         * tests/test-gethostname.c: New file.
61419
61420 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61421
61422         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61423         used by the UNAME case.  Reported by Bruno Haible
61424         <bruno@clisp.org>.
61425
61426 2008-01-17  Eric Blake  <ebb9@byu.net>
61427
61428         Convert c-strcasestr to be more efficient.
61429         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61430         (Depends-on): Add c-strcase, remove malloca, strnlen.
61431         * tests/test-c-strcasestr.c (main): Enhance test.
61432         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61433
61434 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61435
61436         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61437         Use it in creating po/Makevars.
61438
61439 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61440
61441         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61442         Applications that requires it should initialize libgcrypt
61443         manually.
61444
61445 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61446
61447         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61448
61449 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61450
61451         Fix problem with getdate on mingw32 reported by Simon Josefsson
61452         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61453         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61454         tzname", when deciding whether to declare tzname.
61455         * lib/strftime.c (tzname): Likewise.
61456
61457 2008-01-15  Bruno Haible  <bruno@clisp.org>
61458
61459         Work around a MacOS X 10.5 bug in frexpl().
61460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61461         * doc/functions/frexpl.texi: Document the bug.
61462         Reported by Elias Pipping <pipping@gentoo.org>.
61463
61464 2008-01-14  Eric Blake  <ebb9@byu.net>
61465
61466         Touch up previous patch.
61467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61468         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61469
61470         Convert strcasestr module to use Two-Way algorithm.
61471         * modules/strcasestr-simple: New module, based on the old
61472         strcasestr, but with Two-Way rather than KMP.
61473         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61474         * lib/string.in.h (rpl_strcasestr): Declare.
61475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61476         performance.
61477         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61478         * modules/string (Makefile.am): Support strcasestr.
61479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61480         * modules/strcasestr-tests (Depends-on): Check for alarm.
61481         * tests/test-strcasestr.c: Augment test.
61482         * lib/str-two-way.h: Clean up stray macro.
61483         * NEWS: Document new module.
61484         * MODULES.html.sh (string handling): Likewise.
61485         * doc/functions/strcasestr.texi: New file.
61486         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61487         here, since it is not a POSIX function.
61488
61489 2008-01-14  Colin Watson  <cjwatson@debian.org>
61490             Bruno Haible  <bruno@clisp.org>
61491
61492         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61493         works fine; if not, set REPLACE_STRSIGNAL.
61494         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61496         REPLACE_STRSIGNAL.
61497         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61498         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61499         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61500
61501 2008-01-14  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/strsignal (Include): Change to <string.h>.
61504
61505 2008-01-14  Colin Watson  <cjwatson@debian.org>
61506
61507         * modules/argp (Notice): Add a notice recommending to change
61508         XGETTEXT_OPTIONS.
61509         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61510
61511 2008-01-13  Colin Watson  <cjwatson@debian.org>
61512
61513         * modules/strsignal-tests: New file.
61514         * tests/test-strsignal.c: New file.
61515
61516         * lib/strsignal.c: New file, from glibc with modifications.
61517         * lib/siglist.h: New file, from glibc with modifications.
61518         * lib/string.in.h (strsignal): New declaration.
61519         * m4/strsignal.m4: New file.
61520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61521         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61522         * modules/strsignal: New file.
61523         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61524         HAVE_DECL_STRSIGNAL.
61525
61526 2008-01-13  Bruno Haible  <bruno@clisp.org>
61527
61528         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61529         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61530         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61531         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61532
61533 2008-01-13  Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61536         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61537         * lib/argp.h (__attribute__): Likewise.
61538         * lib/c-stack.c (__attribute__): Likewise.
61539         * lib/error.h (__attribute__): Likewise.
61540         * lib/fts.c (__attribute__): Likewise.
61541         * lib/openat.h (__attribute__): Likewise.
61542         * lib/stdio.in.h (__attribute__): Likewise.
61543         * lib/string.in.h (__attribute__): Likewise.
61544         * lib/utimens.c (__attribute__): Likewise.
61545         * lib/vasnprintf.h (__attribute__): Likewise.
61546         * lib/xalloc.h (__attribute__): Likewise.
61547         * lib/xprintf.h (__attribute__): Likewise.
61548         * lib/xstrtol.h (__attribute__): Likewise.
61549         * lib/xvasprintf.h (__attribute__): Likewise.
61550
61551 2008-01-12  Bruno Haible  <bruno@clisp.org>
61552
61553         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61554         * doc/glibc-headers/a.out.texi: New file.
61555         * doc/glibc-headers/aliases.texi: New file.
61556         * doc/glibc-headers/alloca.texi: New file.
61557         * doc/glibc-headers/ar.texi: New file.
61558         * doc/glibc-headers/argp.texi: New file.
61559         * doc/glibc-headers/argz.texi: New file.
61560         * doc/glibc-headers/byteswap.texi: New file.
61561         * doc/glibc-headers/crypt.texi: New file.
61562         * doc/glibc-headers/endian.texi: New file.
61563         * doc/glibc-headers/envz.texi: New file.
61564         * doc/glibc-headers/err.texi: New file.
61565         * doc/glibc-headers/error.texi: New file.
61566         * doc/glibc-headers/execinfo.texi: New file.
61567         * doc/glibc-headers/fpu_control.texi: New file.
61568         * doc/glibc-headers/fstab.texi: New file.
61569         * doc/glibc-headers/fts.texi: New file.
61570         * doc/glibc-headers/getopt.texi: New file.
61571         * doc/glibc-headers/ieee754.texi: New file.
61572         * doc/glibc-headers/ifaddrs.texi: New file.
61573         * doc/glibc-headers/libintl.texi: New file.
61574         * doc/glibc-headers/mcheck.texi: New file.
61575         * doc/glibc-headers/mntent.texi: New file.
61576         * doc/glibc-headers/obstack.texi: New file.
61577         * doc/glibc-headers/paths.texi: New file.
61578         * doc/glibc-headers/printf.texi: New file.
61579         * doc/glibc-headers/pty.texi: New file.
61580         * doc/glibc-headers/resolv.texi: New file.
61581         * doc/glibc-headers/shadow.texi: New file.
61582         * doc/glibc-headers/sysexits.texi: New file.
61583         * doc/glibc-headers/ttyent.texi: New file.
61584
61585 2008-01-12  Jim Meyering  <meyering@redhat.com>
61586
61587         announce-gen: emit Gnulib's git-based version string.
61588         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61589         New option --gnulib-version=V, where V is expected to be
61590         the output of running git describe in the gnulib directory.
61591         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61592         not useful, and plan to stop publishing an xdelta file with each
61593         coreutils release.
61594
61595         * build-aux/announce-gen: Also check for lzma-compressed files.
61596
61597 2008-01-11  Bruno Haible  <bruno@clisp.org>
61598
61599         * tests/test-memmem.c (main): Increase maximum allowed time.
61600         * tests/test-strstr.c (main): Likewise.
61601
61602 2008-01-11  Bruno Haible  <bruno@clisp.org>
61603
61604         * doc/functions/memmem.texi: Add more precisions about platforms.
61605         * doc/functions/strstr.texi: Likewise.
61606
61607 2008-01-10  Eric Blake  <ebb9@byu.net>
61608
61609         * m4/strstr.m4: Delete cruft from copy-n-paste.
61610         Reported by Bruno Haible.
61611
61612 2008-01-10  Bruno Haible  <bruno@clisp.org>
61613
61614         Make c-strstr rely on strstr.
61615         * lib/c-strstr.c: Don't include str-kmp.h.
61616         (c_strstr): Define in terms of strstr.
61617         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61618         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61619
61620 2008-01-10  Bruno Haible  <bruno@clisp.org>
61621
61622         * doc/gnulib.texi (String Functions in C Locale): New section.
61623         * doc/c-ctype.texi: New file.
61624         * doc/c-strcase.texi: New file.
61625         * doc/c-strcaseeq.texi: New file.
61626         * doc/c-strcasestr.texi: New file.
61627         * doc/c-strstr.texi: New file.
61628         * doc/c-strtod.texi: New file.
61629         * doc/c-strtold.texi: New file.
61630
61631 2008-01-10  Eric Blake  <ebb9@byu.net>
61632
61633         * lib/relocatable.h: Fix a comment.
61634
61635 2008-01-10  Eric Blake  <ebb9@byu.net>
61636
61637         Share two-way algorithm.
61638         * lib/str-two-way.h: New file, merged from...
61639         * lib/memmem.c: ...here...
61640         * lib/strstr.c: ...and here.
61641         * modules/memmem (Files): Use it.
61642         * modules/strstr (Files): Likewise.
61643
61644         Avoid quadratic strstr implementations.
61645         * lib/strstr.c: New file.
61646         * m4/strstr.m4: Likewise.
61647         * modules/strstr: Likewise.
61648         * modules/strstr-tests: Likewise.
61649         * tests/test-strstr.c: Likewise.
61650         * lib/string.in.h (rpl_strstr): Declare.
61651         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61653         * modules/string (Makefile.am): Likewise.
61654         * MODULES.html.sh (string handling): Mention new module.
61655         * doc/functions/strstr.texi (strstr): Document the bug.
61656
61657 2008-01-10  Bruno Haible  <bruno@clisp.org>
61658
61659         * lib/relocatable.h (relocate): State whether result is freshly
61660         allocated or not.
61661         * lib/relocatable.c (relocate): Return a freshly allocated string
61662         instead of a pointer to a privately held string.
61663         Reported by Sylvain Beucler <beuc@gnu.org>.
61664
61665 2008-01-10  Colin Watson  <cjwatson@debian.org>
61666
61667         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61668         s/S_ISNLK/S_ISLNK/.
61669
61670 2008-01-09  Bruno Haible  <bruno@clisp.org>
61671
61672         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61673         and other files.
61674         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61675         if it's only a guess.
61676         * modules/memmem: Simplify by depending on memmem-simple.
61677
61678 2008-01-09  Bruno Haible  <bruno@clisp.org>
61679
61680         Work around OpenBSD 4.0 tdelete() bug.
61681         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61682         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61683         macros and don't redefine the enum values.
61684         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61685         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61686         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61687
61688 2008-01-09  Bruno Haible  <bruno@clisp.org>
61689
61690         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61691         (main): Don't perform the tests if setlocale did not install a UTF-8
61692         locale. Needed on OpenBSD 4.0.
61693         * modules/wcwidth-tests (Depends-on): Add localcharset.
61694
61695 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61698         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61699         * NEWS: announce this.
61700         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61701
61702 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61703         and Eric Blake  <ebb9@byu.net>
61704
61705         Add memmem-simple module.
61706         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61707         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61708         * modules/memmem-simple: New file.
61709         * modules/memmem (Description): Tweak.
61710         * MODULES.html.sh (string handling): Mention new module.
61711         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61712         addressed by memmem-simple.
61713         * NEWS: Document the difference.
61714
61715 2008-01-09  Eric Blake  <ebb9@byu.net>
61716
61717         Give gcc some memmem optimization hints.
61718         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61719         (strcasestr): Declare as pure.
61720         * modules/memmem (Maintainer): Claim my implementation.
61721
61722 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61723
61724         Support AIX 6.1 and higher.
61725         * build-aux/config.libpath: Likewise.
61726         * build-aux/config.rpath: Likewise.
61727
61728 2008-01-08  Jim Meyering  <meyering@redhat.com>
61729             Bruno Haible  <bruno@clisp.org>
61730
61731         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61732         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61733         Reported by Peter Fales in
61734         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61735
61736 2008-01-08  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/unictype/category-of (Depends-on): Add
61739         unictype/category-none.
61740         * modules/unictype/category-and-tests (Depends-on): Add
61741         unictype/category-{L,N,Lu,Nd}.
61742         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61743         * modules/unictype/category-or-tests (Depends-on): Add
61744         unictype/category-{L,N}.
61745         * modules/unictype/category-name-tests (Depends-on): Add
61746         unictype/category-{Z,Nl}.
61747         Reported by Simon Josefsson.
61748
61749 2008-01-08  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61752         convention better.
61753         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61754         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61755         Reported by Peter Miller <millerp@canb.auug.org.au>.
61756
61757 2008-01-08  Eric Blake  <ebb9@byu.net>
61758
61759         Rewrite memmem to guarantee linear complexity without malloc.
61760         * lib/memmem.c (memmem): Use Two-Way rather than
61761         Knuth-Morris-Pratt, to allow O(1) space usage.
61762         (critical_factorization, two_way_short_needle)
61763         (two_way_long_needle): New functions.
61764         (knuth_morris_pratt): Delete.
61765         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61766         Add stdint.
61767         * tests/test-memmem.c (main): Add tests for periodic needle and
61768         sublinear performance.
61769         * doc/functions/memmem.texi (memmem): Document other deficiencies
61770         in cygwin and older glibc.
61771
61772 2008-01-08  Bruno Haible  <bruno@clisp.org>
61773
61774         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61775         augmentation.
61776
61777 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61778
61779         Add a configure time option: --disable-acl.
61780         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61781         AC_ARG_ENABLE(acl).
61782
61783 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61784
61785         * tests/test-localename.c: Don't include obsolete "setenv.h".
61786
61787         * modules/localename-tests (Depends-on): Need unsetenv.
61788
61789 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61790
61791         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61792
61793 2008-01-06  Colin Watson  <cjwatson@debian.org>
61794
61795         * users.txt: Add man-db.
61796
61797 2008-01-07  Bruno Haible  <bruno@clisp.org>
61798
61799         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61800         previous section name.
61801
61802 2008-01-07  Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/progname.c (set_program_name): Don't strip off a leading
61805         "lt-" prefix outside a .libs directory.
61806         Suggested by Paul Eggert.
61807
61808 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61809             Bruno Haible  <bruno@clisp.org>
61810
61811         Improve memory cleanup in 'relocatable' module.
61812         * lib/relocatable.h (compute_curr_prefix): Change return type to
61813         'char *'.
61814         * lib/relocatable.c (compute_curr_prefix): Change return type to
61815         'char *'. Free curr_installdir after use.
61816         (relocate): Free curr_prefix_better after use.
61817         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61818
61819 2008-01-01  Bruno Haible  <bruno@clisp.org>
61820
61821         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61822         failure on older glibc systems.
61823         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61824
61825 2008-01-05  Eric Blake  <ebb9@byu.net>
61826
61827         Avoid quadratic system memmem.
61828         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61829         Reported by Ralf Wildenhues.
61830
61831         Fix memmem test for mingw.
61832         * modules/memmem-tests (configure.ac): Check for alarm.
61833         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61834         it.
61835         * doc/functions/memmem.texi: New file.
61836         * doc/gnulib.texi (Function Substitutes): Add memmem.
61837         Reported by Bruno Haible.
61838
61839 2008-01-04  Bruno Haible  <bruno@clisp.org>
61840
61841         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61842         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61843         gl_HEADER_STRING_H_DEFAULTS.
61844
61845 2008-01-04  Eric Blake  <ebb9@byu.net>
61846
61847         Shorten duration of memmem test.
61848         * tests/test-memmem.c (main): Use alarm to declare failure if test
61849         is taking too long.
61850         Reported by Ralf Wildenhues.
61851
61852 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61853
61854         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61855         string, needed by strerror.
61856
61857 2008-01-03  Colin Watson  <cjwatson@debian.org>
61858             Bruno Haible  <bruno@clisp.org>
61859
61860         * doc/gnulib-tool.texi (Localization): New section.
61861
61862 2008-01-02  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61865         variables to 'unsigned char *' type.
61866         Reported by Paul Eggert.
61867
61868 2008-01-02  Jim Meyering  <jim@meyering.net>
61869
61870         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61871
61872 2007-12-31  Jim Meyering  <jim@meyering.net>
61873
61874         Avoid use of private FTS type name.
61875         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61876
61877 2007-12-30  Karl Berry  <karl@gnu.org>
61878
61879         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61880         work around defect in Texinfo and/or the standalone Info browser.
61881
61882 2007-12-30  Bruno Haible  <bruno@clisp.org>
61883
61884         Unify 5 copies of the KMP code.
61885         * lib/str-kmp.h: New file.
61886         * lib/c-strcasestr.c: Include str-kmp.h.
61887         (knuth_morris_pratt): Remove function.
61888         (c_strcasestr): Update.
61889         * lib/c-strstr.c: Include str-kmp.h.
61890         (knuth_morris_pratt): Remove function.
61891         (c_strcasestr): Update.
61892         * lib/mbscasestr.c: Include str-kmp.h.
61893         (knuth_morris_pratt_unibyte): Remove function.
61894         * lib/mbsstr.c: Include str-kmp.h.
61895         (knuth_morris_pratt_unibyte): Remove function.
61896         * lib/strcasestr.c: Include str-kmp.h.
61897         (knuth_morris_pratt): Remove function.
61898         (strcasestr): Update.
61899         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61900         * modules/c-strstr (Files): Likewise.
61901         * modules/mbscasestr (Files): Likewise.
61902         * modules/mbsstr (Files): Likewise.
61903         * modules/strcasestr (Files): Likewise.
61904         Suggested by Paul Eggert.
61905
61906 2007-12-30  Bruno Haible  <bruno@clisp.org>
61907
61908         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61909         defined.
61910
61911 2007-12-30  Bruno Haible  <bruno@clisp.org>
61912
61913         * lib/xmalloca.h: Include xalloc.h.
61914         (xnmalloca): New macro.
61915
61916 2007-12-30  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/malloca.h (nmalloca): New macro.
61919         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61920         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61921         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61922         knuth_morris_pratt_multibyte): Likewise.
61923         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61924         knuth_morris_pratt_multibyte): Likewise.
61925         * lib/memmem.c (knuth_morris_pratt): Likewise.
61926         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61927
61928 2007-12-25  Bruno Haible  <bruno@clisp.org>
61929
61930         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61931         * lib/glob.c: Don't include openat.h.
61932         (link_exists2_p): Add back the code that deals with the
61933         !GLOB_ALTDIRFUNC case.
61934         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61935         let it do the filename concatenation.
61936         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61937         * modules/glob (Depends-on): Remove openat.
61938
61939 2007-12-31  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/dirfd (License): Change to LGPLv2+.
61942         Approved by Jim Meyering.
61943
61944 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61945
61946         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61947         when multiplying M by sizeof (size_t).
61948
61949 2007-12-10  Martin Lambers  <marlam@marlam.de>
61950
61951         Override getpagesize on mingw.
61952         * lib/getpagesize.c: New file.
61953         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61954         * modules/getpagesize (Files): Add lib/getpagesize.c.
61955         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61957         REPLACE_GETPAGESIZE.
61958         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61959
61960 2007-12-25  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/localcharset (Notice): New field.
61963         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61964         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61965
61966 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61967             Bruno Haible  <bruno@clisp.org>
61968
61969         Avoid using the syntax symbol() in formatted documentation.
61970         * MODULES.html.sh (func_module): When replacing symbol() with a
61971         hyperlink, remove the parentheses. Show an error if some remain.
61972         Recognize and render the '...' syntax.
61973         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61974         Rework. Add paragraph about GCC's inlining.
61975         * doc/alloca.texi: Likewise.
61976         * doc/error.texi: Remove parentheses from symbol reference.
61977         * doc/gnulib-intro.texi: Likewise.
61978         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61979         * modules/fnmatch (Description): Reword to say "the ... function".
61980         * modules/full-read (Description): Likewise.
61981         * modules/full-write (Description): Likewise.
61982         * modules/safe-read (Description): Likewise.
61983         * modules/safe-write (Description): Likewise.
61984         * modules/strchrnul (Description): Likewise.
61985         * modules/trim (Description): Likewise.
61986         * modules/error (Description): Remove parentheses from symbol
61987         references.
61988         * modules/verror (Description): Likewise.
61989         Reported by Karl Berry.
61990
61991 2007-12-25  Bruno Haible  <bruno@clisp.org>
61992
61993         Fixup after 2007-10-16 commit.
61994         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61995
61996 2007-12-24  Bruno Haible  <bruno@clisp.org>
61997
61998         Make --enable-relocatable work with DESTDIR.
61999         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62000         to compute installdir from destprog.
62001         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62002         also set the RELOC_DESTDIR variable.
62003         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62004
62005 2007-12-24  Bruno Haible  <bruno@clisp.org>
62006
62007         Fix link error due to xalloc_die().
62008         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62009         of xreadlink.
62010         * lib/relocwrapper.c: Update comments.
62011         * build-aux/install-reloc: Remove xreadlink.c from file list.
62012         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62013         xreadlink.c.
62014         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62015
62016 2007-12-24  Bruno Haible  <bruno@clisp.org>
62017
62018         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62019         * lib/setenv.h: Remove file.
62020         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62021         lib/setenv.h.
62022         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62023         (Depends-on): Add stdlib.
62024         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62025         gl_FUNC_UNSETENV.
62026         (Include): Replace setenv.h with <stdlib.h>.
62027         * modules/unsetenv: New file.
62028         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62029         * lib/unsetenv.c: Include <stdlib.h> first.
62030         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62031         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62032         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62033         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62034         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62035         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62037         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62038         * doc/functions/unsetenv.texi: Update.
62039         * modules/xsetenv (Depends-on): Add unsetenv.
62040         * modules/getdate (Depends-on): Likewise.
62041         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62042         * lib/xsetenv.c: Don't include setenv.h.
62043         * lib/getdate.y: Likewise.
62044         * lib/relocwrapper.c: Likewise.
62045         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62046         (Depends-on): Add stdlib.
62047         * NEWS: Mention the changes.
62048         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62049
62050 2007-12-23  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62053         indentation.
62054
62055 2007-12-23  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/c-strcasestr.c: Add more comments.
62058         * lib/c-strstr.c: Likewise.
62059         * lib/mbscasestr.c: Likewise.
62060         * lib/mbsstr.c: Likewise.
62061         * lib/strcasestr.c: Likewise.
62062         * lib/memmem.c: Likewise.
62063
62064 2007-12-23  Bruno Haible  <bruno@clisp.org>
62065
62066         * tests/test-memmem.c: Include <string.h> first.
62067
62068 2007-12-22  Bruno Haible  <bruno@clisp.org>
62069
62070         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62071         the contents of $testsbase.
62072         Reported by Ralf Wildenhues.
62073
62074 2007-12-22  Bruno Haible  <bruno@clisp.org>
62075
62076         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62077         two variables local_ldadd_before, local_ldadd_last.
62078
62079 2007-12-20  Eric Blake  <ebb9@byu.net>
62080
62081         Work around circular library issue when cross-compiling.
62082         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62083         that progname.o does not need to pull in rpl_memcmp.
62084
62085 2007-12-19  Eric Blake  <ebb9@byu.net>
62086
62087         Fix memmem to avoid O(n^2) worst-case complexity.
62088         * lib/memmem.c (knuth_morris_pratt): New function.
62089         (memmem): Use it if first few naive iterations fail.
62090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62091         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62092         * modules/memchr (License): Likewise.
62093         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62094         malloca.
62095         * tests/test-memmem.c: Rewrite, borrowing ideas from
62096         test-mbsstr1.c; the old version wouldn't even compile!
62097         * modules/memmem-tests: New file.
62098         * lib/string.in.h (rpl_memmem): Add declaration.
62099         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62101         REPLACE_MEMMEM.
62102
62103 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62104
62105         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62106         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62107         before any system include files, and undef after them all.  This
62108         should fix a problem on VMS reported by John E. Malmberg in
62109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62110
62111 2007-12-17  Eric Blake  <ebb9@byu.net>
62112
62113         Revert addition of verify, for BSD/OS.
62114         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62115         can't handle large files, for the sake of obsolete platforms.
62116         * modules/fseeko (Depends-on): Remove verify.
62117         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62118         * doc/functions/ftello.texi (ftello): Likewise.
62119         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62120         Reported by Larry Jones.
62121
62122 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62123
62124         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62125         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62126
62127 2007-12-17  Jim Meyering  <meyering@redhat.com>
62128
62129         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62130         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62131         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62132         * modules/getcwd (Depends-on): Add openat.
62133         Reported by Petr Salinger.
62134
62135 2007-12-17  Bruno Haible  <bruno@clisp.org>
62136
62137         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62138         avoid a segmentation fault of the configure test on x86_64 systems.
62139
62140 2007-12-15  Jim Meyering  <meyering@redhat.com>
62141
62142         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62143
62144 2007-12-13  Eric Blake  <ebb9@byu.net>
62145
62146         Another fseek test.
62147         * tests/test-fseek.c (main): Also test ungetc handling.
62148         * tests/test-fseeko.c (main): Likewise.
62149         * modules/fseeko (Depends-on): Add verify.
62150         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62151         large.
62152         Reported by Larry Jones.
62153
62154         Fix fseeko on mingw.
62155         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62156         seek.
62157
62158         Beef up fseek tests.
62159         * tests/test-fseek.c (main): Also test eof handling.
62160         * tests/test-fseeko.c (main): Likewise.
62161         Reported by Larry Jones.
62162
62163 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62164
62165         Fix fseeko on BSD-based platforms.
62166         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62167         successful seek.
62168
62169 2007-12-12  Eric Blake  <ebb9@byu.net>
62170
62171         Allow circular dependency of separate libtests.a
62172         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62173         when use_libtests.
62174
62175 2007-12-11  Eric Blake  <ebb9@byu.net>
62176
62177         Fix bug with -0.0L in previous patch.
62178         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62179         * tests/test-isnan.c (main): Also test on zeroes.
62180         * tests/test-isnanf.c (main): Likewise.
62181         * tests/test-isnanl.h (main): Likewise.
62182
62183         Detect pseudo-denormals on x86 even when cross-compiling.
62184         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62185         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62186         invalid bit patterns that happen to satisfy ==.
62187
62188         Avoid link failures with separate libtests.a.
62189         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62190         last, to satisfy circular dependencies.
62191
62192 2007-12-11  Eric Blake  <ebb9@byu.net>
62193         and Bruno Haible  <bruno@clisp.org>
62194
62195         Fix OpenBSD 4.0 <float.h> handling of long double.
62196         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62197         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62198         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62199
62200 2007-12-11  Jim Meyering  <meyering@redhat.com>
62201
62202         * users.txt: Add libvirt.
62203
62204         Support versions of autoconf prior to 2.59c.
62205         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62206         if it is not already defined.
62207
62208 2007-12-09  Bruno Haible  <bruno@clisp.org>
62209
62210         Let 'gnulib-tool --import' collect sources needed for the tests in
62211         tests/ rather than in lib/.
62212         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62213         argument. If true, add rules to generate libtests.a, and put libtests.a
62214         into $(LDADD). Consider source files in subdirectories and set
62215         uses_subdirs.
62216         (func_emit_initmacro_start, func_emit_initmacro_end,
62217         func_emit_initmacro_done): Pass all arguments explicitly.
62218         (func_import): Determine two module lists main_modules,
62219         testsrelated_modules. Determine use_libtests. Determine two variables
62220         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62221         instead of just sed_transform_lib_file. Determine two variables
62222         main_files and testsrelated_files. Compute 'files' as the union of
62223         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62224         func_add_or_update. In the generated gnulib-comp.m4, collect the
62225         object files for tests/ in different variables than those for lib/.
62226         Substitute LIBTESTS_LIBDEPS.
62227         (func_create_testdir): Combine the uses_subdirs results from
62228         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62229
62230 2007-12-09  Bruno Haible  <bruno@clisp.org>
62231
62232         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62233         the build-aux directory.
62234
62235 2007-12-09  Bruno Haible  <bruno@clisp.org>
62236
62237         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62238         introduced on 2006-09-09.
62239
62240 2007-12-07  Jim Meyering  <meyering@redhat.com>
62241
62242         Let these macros work also with autoconf-2.59.
62243         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62244         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62245         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62246
62247 2007-12-06  Jim Meyering  <meyering@redhat.com>
62248
62249         Avoid a configure-time syntax error in gl_FUNC_ACL.
62250         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62251         function in each branch, before testing the cache variable.
62252
62253 2007-12-04  Eric Blake  <ebb9@byu.net>
62254
62255         Make scripts executable.
62256         * build-aux/config.guess: Add execute permissions.
62257         * build-aux/config.sub: Likewise.
62258         * build-aux/gendocs.sh: Likewise.
62259
62260         Fix frexp on mingw.
62261         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62262         cross-compiling.
62263         * doc/functions/frexp.texi (frexp): Document the bug.
62264
62265         Make cygwin fseeko check more reliable.
62266         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62267         version numbers, rather than unrelated feature check.
62268         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62269         * doc/functions/ftello.texi (ftello): Likewise.
62270         Reported by Bruno Haible.
62271
62272         * m4/strerror.m4: Bump version number.
62273
62274 2007-12-03  Bruno Haible  <bruno@clisp.org>
62275
62276         * doc/functions/mprotect.texi: Mention the mingw problem.
62277
62278 2007-12-03  Eric Blake  <ebb9@byu.net>
62279
62280         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62281         REPLACE_STRERROR is initialized before this macro.
62282
62283 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62286         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62287         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62288         put -lsec in even for programs other than 'ls'.  This fixes a problem
62289         for gettext reported by Bruno Haible in
62290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62291         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62292         Add support for Solaris 10.  This isn't efficient, but should get the
62293         job done for now.
62294
62295 2007-12-03  James Youngman  <jay@gnu.org>
62296
62297         * doc/regexprops-generic.texi: change "an close-group" to "a
62298         close-group" and "illegal" to "not allowed".
62299
62300 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62301
62302         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62303         pr_byname.h. Needed for the rare case when the maintainer has done
62304         "make maintainer-clean" in the source directory and then attempts a
62305         build outside the source directory.
62306         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62307         scripts_byname.h.
62308
62309 2007-12-02  Martin Lambers <marlam@marlam.de>
62310             Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/getpagesize.h: Remove file.
62313         * lib/unistd.in.h: Include declaration of getpagesize here.
62314         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62315         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62316         HAVE_SYS_PARAM_H.
62317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62318         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62319         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62320         (Depends-on): Add unistd.
62321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62322         (Include): Use <unistd.h> instead of getpagesize.h.
62323         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62324         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62325         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62326         gl_GETPAGESIZE invocation, already handled by module dependency.
62327         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62328
62329 2007-12-02  Bruno Haible  <bruno@clisp.org>
62330
62331         * modules/strings-tests: New file.
62332         * tests/test-strings.c: New file.
62333
62334         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62335         * lib/strings.in.h: New file.
62336         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62337         * m4/strings_h.m4: New file.
62338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62339         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62340         * modules/strings: New file.
62341         * modules/string (Makefile.am): Update.
62342         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62343         Reported by Karl Berry.
62344
62345 2007-12-01  Eric Blake  <ebb9@byu.net>
62346
62347         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62348         accommodate fix in cygwin 1.5.25.
62349
62350 2007-12-01  Jim Meyering  <meyering@redhat.com>
62351
62352         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62353         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62354         that would inhibit utf8-optimization of a regexp containing line-
62355         or buffer-anchors, e.g., `^', `$'.
62356
62357 2007-11-30  Bruno Haible  <bruno@clisp.org>
62358
62359         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62360         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62361         glthread_recursive_lock_init.
62362         * lib/lock.c (glthread_recursive_lock_init)
62363         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62364         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62365
62366 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         New function qset_acl, like set_acl but with syscall semantics.
62369         * lib/acl.h (qset_acl): New decl.
62370         * lib/acl.c (qset_acl): New function.
62371         (set_acl): Use new function.  Use more-consistent diagnostics.
62372
62373 2007-11-28  Jim Meyering  <meyering@redhat.com>
62374
62375         * modules/physmem (License): Change from GPL to LGPLv2+.
62376
62377 2007-11-26  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62380         'long double' type has excess precision.
62381         Reported by Jim Meyering in
62382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62383
62384 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62385
62386         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62387         Sync from <http://gnu.org/licenses>.
62388         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62389         with license text from same location.
62390         * doc/maintain.texi, doc/standards.texi:  Sync from
62391         <http://savannah.gnu.org/projects/gnustandards>.
62392
62393 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62394         and Jim Meyering  <meyering@redhat.com>
62395
62396         Adjust getdate' grammar to accept a slightly more regular language.
62397         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62398         Before, the former was rejected.
62399         * lib/getdate.y (digits_to_date_time): New function, factored
62400         out of ...
62401         (number): ...here.  Just call digits_to_date_time.
62402         (hybrid): New non-terminal to handle an <unsigned number,
62403         signed relative offset> sequence consistently.
62404
62405 2007-11-18  Jim Meyering  <meyering@redhat.com>
62406
62407         Pull my changes from coreutils:
62408         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62409         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62410         use of $gnulib_tool_option_extras, so that it's separated from the
62411         preceding argument.
62412
62413         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62414         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62415         parent destination directories before copying a file into place.
62416
62417 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62418
62419         bootstrap: work also with 4-argument variant of AC_INIT
62420         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62421
62422 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         Port test-getaddrinfo to Solaris.
62425         Problem reported by Bruno Haible in
62426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62427         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62428         explanation of setting 'hints'.
62429         Don't reject an implementation merely because it returns EAI_SERVICE.
62430         (EAI_SERVICE): Define to 0 if not defined.
62431
62432 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         The license of gnu-make and posix-shell is now "GPLed build tool".
62435         * modules/gnu-make (License): Likewise.
62436         * modules/posix-shell (License): Likewise.
62437
62438         New module posix-shell, for determining a POSIX shell
62439         or perhaps something that is close enough to a POSIX shell.
62440         * m4/posix-shell.m4: New file.
62441         * modules/posix-shell: New file.
62442
62443         * MODULES.html.sh: Mention new module.
62444
62445         New module gnu-make, for determining whether we're using GNU Make.
62446         * m4/gnu-make.m4: New file.
62447         * modules/gnu-make: New file.
62448         * MODULES.html.sh: Mention new module.
62449
62450 2007-11-14  Jim Meyering  <meyering@redhat.com>
62451
62452         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62453         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62454         use this macro to create a function _definition_.
62455         Remove useless "#undef ARGMATCH_DIE".
62456
62457 2007-11-14  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/config.charset: Update for OpenBSD 4.1.
62460         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62461
62462 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         Document 64-bit #if problems in stdint.texi.
62465         * doc/headers/stdint.texi (stdint.h): Mention problems with
62466         64-bit-#if, and how to work around them.
62467
62468         Don't insist on 'long long int' support in the preprocessor.  It
62469         breaks too many things.  For example, PRIdMAX still uses a 'long
62470         long int' format with the latest Sun compiler, even though
62471         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62472         preprocessor problem.  This causes the latest coreutils to dump
62473         core on Solaris 10 sparc with the Sun C compiler.
62474         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62475         the troublesome expressions at configure-time, not at #if-time.
62476         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62477         preprocessor.
62478         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62479         compile-time C checks, done at 'configure'-time.
62480         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62481         * modules/inttypes (Makefile): Substitute the new symbols that
62482         gl_INTTYPES_H now generates.
62483         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62484
62485 2007-11-12  Bruno Haible  <bruno@clisp.org>
62486
62487         Tests for Unicode character classification functions.
62488
62489         * modules/unictype/bidicategory-byname-tests: New file.
62490         * modules/unictype/bidicategory-name-tests: New file.
62491         * modules/unictype/bidicategory-of-tests: New file.
62492         * modules/unictype/bidicategory-test-tests: New file.
62493         * modules/unictype/block-list-tests: New file.
62494         * modules/unictype/block-of-tests: New file.
62495         * modules/unictype/block-test-tests: New file.
62496         * modules/unictype/category-C-tests: New file.
62497         * modules/unictype/category-Cc-tests: New file.
62498         * modules/unictype/category-Cf-tests: New file.
62499         * modules/unictype/category-Cn-tests: New file.
62500         * modules/unictype/category-Co-tests: New file.
62501         * modules/unictype/category-Cs-tests: New file.
62502         * modules/unictype/category-L-tests: New file.
62503         * modules/unictype/category-Ll-tests: New file.
62504         * modules/unictype/category-Lm-tests: New file.
62505         * modules/unictype/category-Lo-tests: New file.
62506         * modules/unictype/category-Lt-tests: New file.
62507         * modules/unictype/category-Lu-tests: New file.
62508         * modules/unictype/category-M-tests: New file.
62509         * modules/unictype/category-Mc-tests: New file.
62510         * modules/unictype/category-Me-tests: New file.
62511         * modules/unictype/category-Mn-tests: New file.
62512         * modules/unictype/category-N-tests: New file.
62513         * modules/unictype/category-Nd-tests: New file.
62514         * modules/unictype/category-Nl-tests: New file.
62515         * modules/unictype/category-No-tests: New file.
62516         * modules/unictype/category-P-tests: New file.
62517         * modules/unictype/category-Pc-tests: New file.
62518         * modules/unictype/category-Pd-tests: New file.
62519         * modules/unictype/category-Pe-tests: New file.
62520         * modules/unictype/category-Pf-tests: New file.
62521         * modules/unictype/category-Pi-tests: New file.
62522         * modules/unictype/category-Po-tests: New file.
62523         * modules/unictype/category-Ps-tests: New file.
62524         * modules/unictype/category-S-tests: New file.
62525         * modules/unictype/category-Sc-tests: New file.
62526         * modules/unictype/category-Sk-tests: New file.
62527         * modules/unictype/category-Sm-tests: New file.
62528         * modules/unictype/category-So-tests: New file.
62529         * modules/unictype/category-Z-tests: New file.
62530         * modules/unictype/category-Zl-tests: New file.
62531         * modules/unictype/category-Zp-tests: New file.
62532         * modules/unictype/category-Zs-tests: New file.
62533         * modules/unictype/category-and-not-tests: New file.
62534         * modules/unictype/category-and-tests: New file.
62535         * modules/unictype/category-byname-tests: New file.
62536         * modules/unictype/category-name-tests: New file.
62537         * modules/unictype/category-none-tests: New file.
62538         * modules/unictype/category-of-tests: New file.
62539         * modules/unictype/category-or-tests: New file.
62540         * modules/unictype/category-test-withtable-tests: New file.
62541         * modules/unictype/combining-class-tests: New file.
62542         * modules/unictype/ctype-alnum-tests: New file.
62543         * modules/unictype/ctype-alpha-tests: New file.
62544         * modules/unictype/ctype-blank-tests: New file.
62545         * modules/unictype/ctype-cntrl-tests: New file.
62546         * modules/unictype/ctype-digit-tests: New file.
62547         * modules/unictype/ctype-graph-tests: New file.
62548         * modules/unictype/ctype-lower-tests: New file.
62549         * modules/unictype/ctype-print-tests: New file.
62550         * modules/unictype/ctype-punct-tests: New file.
62551         * modules/unictype/ctype-space-tests: New file.
62552         * modules/unictype/ctype-upper-tests: New file.
62553         * modules/unictype/ctype-xdigit-tests: New file.
62554         * modules/unictype/decimal-digit-tests: New file.
62555         * modules/unictype/digit-tests: New file.
62556         * modules/unictype/mirror-tests: New file.
62557         * modules/unictype/numeric-tests: New file.
62558         * modules/unictype/property-alphabetic-tests: New file.
62559         * modules/unictype/property-ascii-hex-digit-tests: New file.
62560         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62561         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62562         * modules/unictype/property-bidi-block-separator-tests: New file.
62563         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62564         * modules/unictype/property-bidi-common-separator-tests: New file.
62565         * modules/unictype/property-bidi-control-tests: New file.
62566         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62567         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62568         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62569         * modules/unictype/property-bidi-european-digit-tests: New file.
62570         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62571         * modules/unictype/property-bidi-left-to-right-tests: New file.
62572         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62573         * modules/unictype/property-bidi-other-neutral-tests: New file.
62574         * modules/unictype/property-bidi-pdf-tests: New file.
62575         * modules/unictype/property-bidi-segment-separator-tests: New file.
62576         * modules/unictype/property-bidi-whitespace-tests: New file.
62577         * modules/unictype/property-byname-tests: New file.
62578         * modules/unictype/property-combining-tests: New file.
62579         * modules/unictype/property-composite-tests: New file.
62580         * modules/unictype/property-currency-symbol-tests: New file.
62581         * modules/unictype/property-dash-tests: New file.
62582         * modules/unictype/property-decimal-digit-tests: New file.
62583         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62584         * modules/unictype/property-deprecated-tests: New file.
62585         * modules/unictype/property-diacritic-tests: New file.
62586         * modules/unictype/property-extender-tests: New file.
62587         * modules/unictype/property-format-control-tests: New file.
62588         * modules/unictype/property-grapheme-base-tests: New file.
62589         * modules/unictype/property-grapheme-extend-tests: New file.
62590         * modules/unictype/property-grapheme-link-tests: New file.
62591         * modules/unictype/property-hex-digit-tests: New file.
62592         * modules/unictype/property-hyphen-tests: New file.
62593         * modules/unictype/property-id-continue-tests: New file.
62594         * modules/unictype/property-id-start-tests: New file.
62595         * modules/unictype/property-ideographic-tests: New file.
62596         * modules/unictype/property-ids-binary-operator-tests: New file.
62597         * modules/unictype/property-ids-trinary-operator-tests: New file.
62598         * modules/unictype/property-ignorable-control-tests: New file.
62599         * modules/unictype/property-iso-control-tests: New file.
62600         * modules/unictype/property-join-control-tests: New file.
62601         * modules/unictype/property-left-of-pair-tests: New file.
62602         * modules/unictype/property-line-separator-tests: New file.
62603         * modules/unictype/property-logical-order-exception-tests: New file.
62604         * modules/unictype/property-lowercase-tests: New file.
62605         * modules/unictype/property-math-tests: New file.
62606         * modules/unictype/property-non-break-tests: New file.
62607         * modules/unictype/property-not-a-character-tests: New file.
62608         * modules/unictype/property-numeric-tests: New file.
62609         * modules/unictype/property-other-alphabetic-tests: New file.
62610         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62611         * modules/unictype/property-other-grapheme-extend-tests: New file.
62612         * modules/unictype/property-other-id-continue-tests: New file.
62613         * modules/unictype/property-other-id-start-tests: New file.
62614         * modules/unictype/property-other-lowercase-tests: New file.
62615         * modules/unictype/property-other-math-tests: New file.
62616         * modules/unictype/property-other-uppercase-tests: New file.
62617         * modules/unictype/property-paired-punctuation-tests: New file.
62618         * modules/unictype/property-paragraph-separator-tests: New file.
62619         * modules/unictype/property-pattern-syntax-tests: New file.
62620         * modules/unictype/property-pattern-white-space-tests: New file.
62621         * modules/unictype/property-private-use-tests: New file.
62622         * modules/unictype/property-punctuation-tests: New file.
62623         * modules/unictype/property-quotation-mark-tests: New file.
62624         * modules/unictype/property-radical-tests: New file.
62625         * modules/unictype/property-sentence-terminal-tests: New file.
62626         * modules/unictype/property-soft-dotted-tests: New file.
62627         * modules/unictype/property-space-tests: New file.
62628         * modules/unictype/property-terminal-punctuation-tests: New file.
62629         * modules/unictype/property-test-tests: New file.
62630         * modules/unictype/property-titlecase-tests: New file.
62631         * modules/unictype/property-unassigned-code-value-tests: New file.
62632         * modules/unictype/property-unified-ideograph-tests: New file.
62633         * modules/unictype/property-uppercase-tests: New file.
62634         * modules/unictype/property-variation-selector-tests: New file.
62635         * modules/unictype/property-white-space-tests: New file.
62636         * modules/unictype/property-xid-continue-tests: New file.
62637         * modules/unictype/property-xid-start-tests: New file.
62638         * modules/unictype/property-zero-width-tests: New file.
62639         * modules/unictype/scripts-tests: New file.
62640         * modules/unictype/syntax-c-ident-tests: New file.
62641         * modules/unictype/syntax-c-whitespace-tests: New file.
62642         * modules/unictype/syntax-java-ident-tests: New file.
62643         * modules/unictype/syntax-java-whitespace-tests: New file.
62644         * tests/unictype/test-bidi_byname.c: New file.
62645         * tests/unictype/test-bidi_name.c: New file.
62646         * tests/unictype/test-bidi_of.c: New file.
62647         * tests/unictype/test-bidi_test.c: New file.
62648         * tests/unictype/test-block_list.c: New file.
62649         * tests/unictype/test-block_of.c: New file.
62650         * tests/unictype/test-block_test.c: New file.
62651         * tests/unictype/test-categ_and.c: New file.
62652         * tests/unictype/test-categ_and_not.c: New file.
62653         * tests/unictype/test-categ_byname.c: New file.
62654         * tests/unictype/test-categ_name.c: New file.
62655         * tests/unictype/test-categ_none.c: New file.
62656         * tests/unictype/test-categ_of.c: New file.
62657         * tests/unictype/test-categ_or.c: New file.
62658         * tests/unictype/test-categ_test_withtable.c: New file.
62659         * tests/unictype/test-combining.c: New file.
62660         * tests/unictype/test-decdigit.c: New file.
62661         * tests/unictype/test-digit.c: New file.
62662         * tests/unictype/test-mirror.c: New file.
62663         * tests/unictype/test-numeric.c: New file.
62664         * tests/unictype/test-pr_byname.c: New file.
62665         * tests/unictype/test-pr_test.c: New file.
62666         * tests/unictype/test-predicate-part1.h: New file.
62667         * tests/unictype/test-predicate-part2.h: New file.
62668         * tests/unictype/test-scripts.c: New file.
62669         * tests/unictype/test-sy_c_ident.c: New file.
62670         * tests/unictype/test-sy_java_ident.c: New file.
62671
62672         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62673         for Unicode 5.0.0.
62674         * tests/unictype/test-categ_Cc.c: Likewise.
62675         * tests/unictype/test-categ_Cf.c: Likewise.
62676         * tests/unictype/test-categ_Cn.c: Likewise.
62677         * tests/unictype/test-categ_Co.c: Likewise.
62678         * tests/unictype/test-categ_Cs.c: Likewise.
62679         * tests/unictype/test-categ_L.c: Likewise.
62680         * tests/unictype/test-categ_Ll.c: Likewise.
62681         * tests/unictype/test-categ_Lm.c: Likewise.
62682         * tests/unictype/test-categ_Lo.c: Likewise.
62683         * tests/unictype/test-categ_Lt.c: Likewise.
62684         * tests/unictype/test-categ_Lu.c: Likewise.
62685         * tests/unictype/test-categ_M.c: Likewise.
62686         * tests/unictype/test-categ_Mc.c: Likewise.
62687         * tests/unictype/test-categ_Me.c: Likewise.
62688         * tests/unictype/test-categ_Mn.c: Likewise.
62689         * tests/unictype/test-categ_N.c: Likewise.
62690         * tests/unictype/test-categ_Nd.c: Likewise.
62691         * tests/unictype/test-categ_Nl.c: Likewise.
62692         * tests/unictype/test-categ_No.c: Likewise.
62693         * tests/unictype/test-categ_P.c: Likewise.
62694         * tests/unictype/test-categ_Pc.c: Likewise.
62695         * tests/unictype/test-categ_Pd.c: Likewise.
62696         * tests/unictype/test-categ_Pe.c: Likewise.
62697         * tests/unictype/test-categ_Pf.c: Likewise.
62698         * tests/unictype/test-categ_Pi.c: Likewise.
62699         * tests/unictype/test-categ_Po.c: Likewise.
62700         * tests/unictype/test-categ_Ps.c: Likewise.
62701         * tests/unictype/test-categ_S.c: Likewise.
62702         * tests/unictype/test-categ_Sc.c: Likewise.
62703         * tests/unictype/test-categ_Sk.c: Likewise.
62704         * tests/unictype/test-categ_Sm.c: Likewise.
62705         * tests/unictype/test-categ_So.c: Likewise.
62706         * tests/unictype/test-categ_Z.c: Likewise.
62707         * tests/unictype/test-categ_Zl.c: Likewise.
62708         * tests/unictype/test-categ_Zp.c: Likewise.
62709         * tests/unictype/test-categ_Zs.c: Likewise.
62710         * tests/unictype/test-ctype_alnum.c: Likewise.
62711         * tests/unictype/test-ctype_alpha.c: Likewise.
62712         * tests/unictype/test-ctype_blank.c: Likewise.
62713         * tests/unictype/test-ctype_cntrl.c: Likewise.
62714         * tests/unictype/test-ctype_digit.c: Likewise.
62715         * tests/unictype/test-ctype_graph.c: Likewise.
62716         * tests/unictype/test-ctype_lower.c: Likewise.
62717         * tests/unictype/test-ctype_print.c: Likewise.
62718         * tests/unictype/test-ctype_punct.c: Likewise.
62719         * tests/unictype/test-ctype_space.c: Likewise.
62720         * tests/unictype/test-ctype_upper.c: Likewise.
62721         * tests/unictype/test-ctype_xdigit.c: Likewise.
62722         * tests/unictype/test-decdigit.h: Likewise.
62723         * tests/unictype/test-digit.h: Likewise.
62724         * tests/unictype/test-numeric.h: Likewise.
62725         * tests/unictype/test-pr_alphabetic.c: Likewise.
62726         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62727         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62728         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62729         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62730         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62731         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62732         * tests/unictype/test-pr_bidi_control.c: Likewise.
62733         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62734         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62735         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62736         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62737         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62738         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62739         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62740         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62741         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62742         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62743         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62744         * tests/unictype/test-pr_combining.c: Likewise.
62745         * tests/unictype/test-pr_composite.c: Likewise.
62746         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62747         * tests/unictype/test-pr_dash.c: Likewise.
62748         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62749         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62750         * tests/unictype/test-pr_deprecated.c: Likewise.
62751         * tests/unictype/test-pr_diacritic.c: Likewise.
62752         * tests/unictype/test-pr_extender.c: Likewise.
62753         * tests/unictype/test-pr_format_control.c: Likewise.
62754         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62755         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62756         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62757         * tests/unictype/test-pr_hex_digit.c: Likewise.
62758         * tests/unictype/test-pr_hyphen.c: Likewise.
62759         * tests/unictype/test-pr_id_continue.c: Likewise.
62760         * tests/unictype/test-pr_id_start.c: Likewise.
62761         * tests/unictype/test-pr_ideographic.c: Likewise.
62762         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62763         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62764         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62765         * tests/unictype/test-pr_iso_control.c: Likewise.
62766         * tests/unictype/test-pr_join_control.c: Likewise.
62767         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62768         * tests/unictype/test-pr_line_separator.c: Likewise.
62769         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62770         * tests/unictype/test-pr_lowercase.c: Likewise.
62771         * tests/unictype/test-pr_math.c: Likewise.
62772         * tests/unictype/test-pr_non_break.c: Likewise.
62773         * tests/unictype/test-pr_not_a_character.c: Likewise.
62774         * tests/unictype/test-pr_numeric.c: Likewise.
62775         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62776         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62777         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62778         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62779         * tests/unictype/test-pr_other_id_start.c: Likewise.
62780         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62781         * tests/unictype/test-pr_other_math.c: Likewise.
62782         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62783         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62784         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62785         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62786         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62787         * tests/unictype/test-pr_private_use.c: Likewise.
62788         * tests/unictype/test-pr_punctuation.c: Likewise.
62789         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62790         * tests/unictype/test-pr_radical.c: Likewise.
62791         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62792         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62793         * tests/unictype/test-pr_space.c: Likewise.
62794         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62795         * tests/unictype/test-pr_titlecase.c: Likewise.
62796         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62797         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62798         * tests/unictype/test-pr_uppercase.c: Likewise.
62799         * tests/unictype/test-pr_variation_selector.c: Likewise.
62800         * tests/unictype/test-pr_white_space.c: Likewise.
62801         * tests/unictype/test-pr_xid_continue.c: Likewise.
62802         * tests/unictype/test-pr_xid_start.c: Likewise.
62803         * tests/unictype/test-pr_zero_width.c: Likewise.
62804         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62805         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62806
62807 2007-11-12  Bruno Haible  <bruno@clisp.org>
62808
62809         Unicode character classification functions.
62810         * lib/unictype.h: New file.
62811         * modules/unictype/base: New file.
62812         * modules/unictype/category-L: New file.
62813         * modules/unictype/category-Lu: New file.
62814         * modules/unictype/category-Ll: New file.
62815         * modules/unictype/category-Lt: New file.
62816         * modules/unictype/category-Lm: New file.
62817         * modules/unictype/category-Lo: New file.
62818         * modules/unictype/category-M: New file.
62819         * modules/unictype/category-Mn: New file.
62820         * modules/unictype/category-Mc: New file.
62821         * modules/unictype/category-Me: New file.
62822         * modules/unictype/category-N: New file.
62823         * modules/unictype/category-Nd: New file.
62824         * modules/unictype/category-Nl: New file.
62825         * modules/unictype/category-No: New file.
62826         * modules/unictype/category-P: New file.
62827         * modules/unictype/category-Pc: New file.
62828         * modules/unictype/category-Pd: New file.
62829         * modules/unictype/category-Ps: New file.
62830         * modules/unictype/category-Pe: New file.
62831         * modules/unictype/category-Pi: New file.
62832         * modules/unictype/category-Pf: New file.
62833         * modules/unictype/category-Po: New file.
62834         * modules/unictype/category-S: New file.
62835         * modules/unictype/category-Sm: New file.
62836         * modules/unictype/category-Sc: New file.
62837         * modules/unictype/category-Sk: New file.
62838         * modules/unictype/category-So: New file.
62839         * modules/unictype/category-Z: New file.
62840         * modules/unictype/category-Zs: New file.
62841         * modules/unictype/category-Zl: New file.
62842         * modules/unictype/category-Zp: New file.
62843         * modules/unictype/category-C: New file.
62844         * modules/unictype/category-Cc: New file.
62845         * modules/unictype/category-Cf: New file.
62846         * modules/unictype/category-Cs: New file.
62847         * modules/unictype/category-Co: New file.
62848         * modules/unictype/category-Cn: New file.
62849         * modules/unictype/category-or: New file.
62850         * modules/unictype/category-of: New file.
62851         * modules/unictype/category-test: New file.
62852         * modules/unictype/category-test-withtable: New file.
62853         * modules/unictype/category-byname: New file.
62854         * modules/unictype/category-none: New file.
62855         * modules/unictype/category-and: New file.
62856         * modules/unictype/category-and-not: New file.
62857         * modules/unictype/category-name: New file.
62858         * modules/unictype/combining-class: New file.
62859         * modules/unictype/category-all: New file.
62860         * modules/unictype/bidicategory-all: New file.
62861         * modules/unictype/bidicategory-byname: New file.
62862         * modules/unictype/bidicategory-name: New file.
62863         * modules/unictype/bidicategory-of: New file.
62864         * modules/unictype/bidicategory-test: New file.
62865         * modules/unictype/decimal-digit: New file.
62866         * modules/unictype/digit: New file.
62867         * modules/unictype/numeric: New file.
62868         * modules/unictype/mirror: New file.
62869         * modules/unictype/property-white-space: New file.
62870         * modules/unictype/property-alphabetic: New file.
62871         * modules/unictype/property-other-alphabetic: New file.
62872         * modules/unictype/property-not-a-character: New file.
62873         * modules/unictype/property-default-ignorable-code-point: New file.
62874         * modules/unictype/property-other-default-ignorable-code-point: New
62875         file.
62876         * modules/unictype/property-deprecated: New file.
62877         * modules/unictype/property-logical-order-exception: New file.
62878         * modules/unictype/property-variation-selector: New file.
62879         * modules/unictype/property-private-use: New file.
62880         * modules/unictype/property-unassigned-code-value: New file.
62881         * modules/unictype/property-uppercase: New file.
62882         * modules/unictype/property-other-uppercase: New file.
62883         * modules/unictype/property-lowercase: New file.
62884         * modules/unictype/property-other-lowercase: New file.
62885         * modules/unictype/property-titlecase: New file.
62886         * modules/unictype/property-soft-dotted: New file.
62887         * modules/unictype/property-id-start: New file.
62888         * modules/unictype/property-other-id-start: New file.
62889         * modules/unictype/property-id-continue: New file.
62890         * modules/unictype/property-other-id-continue: New file.
62891         * modules/unictype/property-xid-start: New file.
62892         * modules/unictype/property-xid-continue: New file.
62893         * modules/unictype/property-pattern-white-space: New file.
62894         * modules/unictype/property-pattern-syntax: New file.
62895         * modules/unictype/property-join-control: New file.
62896         * modules/unictype/property-grapheme-base: New file.
62897         * modules/unictype/property-grapheme-extend: New file.
62898         * modules/unictype/property-other-grapheme-extend: New file.
62899         * modules/unictype/property-grapheme-link: New file.
62900         * modules/unictype/property-bidi-control: New file.
62901         * modules/unictype/property-bidi-left-to-right: New file.
62902         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62903         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62904         * modules/unictype/property-bidi-european-digit: New file.
62905         * modules/unictype/property-bidi-eur-num-separator: New file.
62906         * modules/unictype/property-bidi-eur-num-terminator: New file.
62907         * modules/unictype/property-bidi-arabic-digit: New file.
62908         * modules/unictype/property-bidi-common-separator: New file.
62909         * modules/unictype/property-bidi-block-separator: New file.
62910         * modules/unictype/property-bidi-segment-separator: New file.
62911         * modules/unictype/property-bidi-whitespace: New file.
62912         * modules/unictype/property-bidi-non-spacing-mark: New file.
62913         * modules/unictype/property-bidi-boundary-neutral: New file.
62914         * modules/unictype/property-bidi-pdf: New file.
62915         * modules/unictype/property-bidi-embedding-or-override: New file.
62916         * modules/unictype/property-bidi-other-neutral: New file.
62917         * modules/unictype/property-hex-digit: New file.
62918         * modules/unictype/property-ascii-hex-digit: New file.
62919         * modules/unictype/property-ideographic: New file.
62920         * modules/unictype/property-unified-ideograph: New file.
62921         * modules/unictype/property-radical: New file.
62922         * modules/unictype/property-ids-binary-operator: New file.
62923         * modules/unictype/property-ids-trinary-operator: New file.
62924         * modules/unictype/property-zero-width: New file.
62925         * modules/unictype/property-space: New file.
62926         * modules/unictype/property-non-break: New file.
62927         * modules/unictype/property-iso-control: New file.
62928         * modules/unictype/property-format-control: New file.
62929         * modules/unictype/property-dash: New file.
62930         * modules/unictype/property-hyphen: New file.
62931         * modules/unictype/property-punctuation: New file.
62932         * modules/unictype/property-line-separator: New file.
62933         * modules/unictype/property-paragraph-separator: New file.
62934         * modules/unictype/property-quotation-mark: New file.
62935         * modules/unictype/property-sentence-terminal: New file.
62936         * modules/unictype/property-terminal-punctuation: New file.
62937         * modules/unictype/property-currency-symbol: New file.
62938         * modules/unictype/property-math: New file.
62939         * modules/unictype/property-other-math: New file.
62940         * modules/unictype/property-paired-punctuation: New file.
62941         * modules/unictype/property-left-of-pair: New file.
62942         * modules/unictype/property-combining: New file.
62943         * modules/unictype/property-composite: New file.
62944         * modules/unictype/property-decimal-digit: New file.
62945         * modules/unictype/property-numeric: New file.
62946         * modules/unictype/property-diacritic: New file.
62947         * modules/unictype/property-extender: New file.
62948         * modules/unictype/property-ignorable-control: New file.
62949         * modules/unictype/property-test: New file.
62950         * modules/unictype/property-byname: New file.
62951         * modules/unictype/property-all: New file.
62952         * modules/unictype/scripts: New file.
62953         * modules/unictype/scripts-all: New file.
62954         * modules/unictype/block-of: New file.
62955         * modules/unictype/block-test: New file.
62956         * modules/unictype/block-list: New file.
62957         * modules/unictype/block-all: New file.
62958         * modules/unictype/syntax-c-whitespace: New file.
62959         * modules/unictype/syntax-java-whitespace: New file.
62960         * modules/unictype/syntax-c-ident: New file.
62961         * modules/unictype/syntax-java-ident: New file.
62962         * modules/unictype/ctype-alnum: New file.
62963         * modules/unictype/ctype-alpha: New file.
62964         * modules/unictype/ctype-cntrl: New file.
62965         * modules/unictype/ctype-digit: New file.
62966         * modules/unictype/ctype-graph: New file.
62967         * modules/unictype/ctype-lower: New file.
62968         * modules/unictype/ctype-print: New file.
62969         * modules/unictype/ctype-punct: New file.
62970         * modules/unictype/ctype-space: New file.
62971         * modules/unictype/ctype-upper: New file.
62972         * modules/unictype/ctype-xdigit: New file.
62973         * modules/unictype/ctype-blank: New file.
62974         * lib/unictype/bidi_byname.c: New file.
62975         * lib/unictype/bidi_name.c: New file.
62976         * lib/unictype/bidi_of.c: New file.
62977         * lib/unictype/bidi_test.c: New file.
62978         * lib/unictype/bitmap.h: New file.
62979         * lib/unictype/block_test.c: New file.
62980         * lib/unictype/blocks.c: New file.
62981         * lib/unictype/categ_C.c: New file.
62982         * lib/unictype/categ_Cc.c: New file.
62983         * lib/unictype/categ_Cf.c: New file.
62984         * lib/unictype/categ_Cn.c: New file.
62985         * lib/unictype/categ_Co.c: New file.
62986         * lib/unictype/categ_Cs.c: New file.
62987         * lib/unictype/categ_L.c: New file.
62988         * lib/unictype/categ_Ll.c: New file.
62989         * lib/unictype/categ_Lm.c: New file.
62990         * lib/unictype/categ_Lo.c: New file.
62991         * lib/unictype/categ_Lt.c: New file.
62992         * lib/unictype/categ_Lu.c: New file.
62993         * lib/unictype/categ_M.c: New file.
62994         * lib/unictype/categ_Mc.c: New file.
62995         * lib/unictype/categ_Me.c: New file.
62996         * lib/unictype/categ_Mn.c: New file.
62997         * lib/unictype/categ_N.c: New file.
62998         * lib/unictype/categ_Nd.c: New file.
62999         * lib/unictype/categ_Nl.c: New file.
63000         * lib/unictype/categ_No.c: New file.
63001         * lib/unictype/categ_P.c: New file.
63002         * lib/unictype/categ_Pc.c: New file.
63003         * lib/unictype/categ_Pd.c: New file.
63004         * lib/unictype/categ_Pe.c: New file.
63005         * lib/unictype/categ_Pf.c: New file.
63006         * lib/unictype/categ_Pi.c: New file.
63007         * lib/unictype/categ_Po.c: New file.
63008         * lib/unictype/categ_Ps.c: New file.
63009         * lib/unictype/categ_S.c: New file.
63010         * lib/unictype/categ_Sc.c: New file.
63011         * lib/unictype/categ_Sk.c: New file.
63012         * lib/unictype/categ_Sm.c: New file.
63013         * lib/unictype/categ_So.c: New file.
63014         * lib/unictype/categ_Z.c: New file.
63015         * lib/unictype/categ_Zl.c: New file.
63016         * lib/unictype/categ_Zp.c: New file.
63017         * lib/unictype/categ_Zs.c: New file.
63018         * lib/unictype/categ_and.c: New file.
63019         * lib/unictype/categ_and_not.c: New file.
63020         * lib/unictype/categ_byname.c: New file.
63021         * lib/unictype/categ_name.c: New file.
63022         * lib/unictype/categ_none.c: New file.
63023         * lib/unictype/categ_of.c: New file.
63024         * lib/unictype/categ_or.c: New file.
63025         * lib/unictype/categ_test.c: New file.
63026         * lib/unictype/combining.c: New file.
63027         * lib/unictype/ctype_alnum.c: New file.
63028         * lib/unictype/ctype_alpha.c: New file.
63029         * lib/unictype/ctype_blank.c: New file.
63030         * lib/unictype/ctype_cntrl.c: New file.
63031         * lib/unictype/ctype_digit.c: New file.
63032         * lib/unictype/ctype_graph.c: New file.
63033         * lib/unictype/ctype_lower.c: New file.
63034         * lib/unictype/ctype_print.c: New file.
63035         * lib/unictype/ctype_punct.c: New file.
63036         * lib/unictype/ctype_space.c: New file.
63037         * lib/unictype/ctype_upper.c: New file.
63038         * lib/unictype/ctype_xdigit.c: New file.
63039         * lib/unictype/decdigit.c: New file.
63040         * lib/unictype/digit.c: New file.
63041         * lib/unictype/identsyntaxmap.h: New file.
63042         * lib/unictype/mirror.c: New file.
63043         * lib/unictype/numeric.c: New file.
63044         * lib/unictype/pr_alphabetic.c: New file.
63045         * lib/unictype/pr_ascii_hex_digit.c: New file.
63046         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63047         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63048         * lib/unictype/pr_bidi_block_separator.c: New file.
63049         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63050         * lib/unictype/pr_bidi_common_separator.c: New file.
63051         * lib/unictype/pr_bidi_control.c: New file.
63052         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63053         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63054         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63055         * lib/unictype/pr_bidi_european_digit.c: New file.
63056         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63057         * lib/unictype/pr_bidi_left_to_right.c: New file.
63058         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63059         * lib/unictype/pr_bidi_other_neutral.c: New file.
63060         * lib/unictype/pr_bidi_pdf.c: New file.
63061         * lib/unictype/pr_bidi_segment_separator.c: New file.
63062         * lib/unictype/pr_bidi_whitespace.c: New file.
63063         * lib/unictype/pr_byname.c: New file.
63064         * lib/unictype/pr_byname.gperf: New file.
63065         * lib/unictype/pr_combining.c: New file.
63066         * lib/unictype/pr_composite.c: New file.
63067         * lib/unictype/pr_currency_symbol.c: New file.
63068         * lib/unictype/pr_dash.c: New file.
63069         * lib/unictype/pr_decimal_digit.c: New file.
63070         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63071         * lib/unictype/pr_deprecated.c: New file.
63072         * lib/unictype/pr_diacritic.c: New file.
63073         * lib/unictype/pr_extender.c: New file.
63074         * lib/unictype/pr_format_control.c: New file.
63075         * lib/unictype/pr_grapheme_base.c: New file.
63076         * lib/unictype/pr_grapheme_extend.c: New file.
63077         * lib/unictype/pr_grapheme_link.c: New file.
63078         * lib/unictype/pr_hex_digit.c: New file.
63079         * lib/unictype/pr_hyphen.c: New file.
63080         * lib/unictype/pr_id_continue.c: New file.
63081         * lib/unictype/pr_id_start.c: New file.
63082         * lib/unictype/pr_ideographic.c: New file.
63083         * lib/unictype/pr_ids_binary_operator.c: New file.
63084         * lib/unictype/pr_ids_trinary_operator.c: New file.
63085         * lib/unictype/pr_ignorable_control.c: New file.
63086         * lib/unictype/pr_iso_control.c: New file.
63087         * lib/unictype/pr_join_control.c: New file.
63088         * lib/unictype/pr_left_of_pair.c: New file.
63089         * lib/unictype/pr_line_separator.c: New file.
63090         * lib/unictype/pr_logical_order_exception.c: New file.
63091         * lib/unictype/pr_lowercase.c: New file.
63092         * lib/unictype/pr_math.c: New file.
63093         * lib/unictype/pr_non_break.c: New file.
63094         * lib/unictype/pr_not_a_character.c: New file.
63095         * lib/unictype/pr_numeric.c: New file.
63096         * lib/unictype/pr_other_alphabetic.c: New file.
63097         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63098         * lib/unictype/pr_other_grapheme_extend.c: New file.
63099         * lib/unictype/pr_other_id_continue.c: New file.
63100         * lib/unictype/pr_other_id_start.c: New file.
63101         * lib/unictype/pr_other_lowercase.c: New file.
63102         * lib/unictype/pr_other_math.c: New file.
63103         * lib/unictype/pr_other_uppercase.c: New file.
63104         * lib/unictype/pr_paired_punctuation.c: New file.
63105         * lib/unictype/pr_paragraph_separator.c: New file.
63106         * lib/unictype/pr_pattern_syntax.c: New file.
63107         * lib/unictype/pr_pattern_white_space.c: New file.
63108         * lib/unictype/pr_private_use.c: New file.
63109         * lib/unictype/pr_punctuation.c: New file.
63110         * lib/unictype/pr_quotation_mark.c: New file.
63111         * lib/unictype/pr_radical.c: New file.
63112         * lib/unictype/pr_sentence_terminal.c: New file.
63113         * lib/unictype/pr_soft_dotted.c: New file.
63114         * lib/unictype/pr_space.c: New file.
63115         * lib/unictype/pr_terminal_punctuation.c: New file.
63116         * lib/unictype/pr_test.c: New file.
63117         * lib/unictype/pr_titlecase.c: New file.
63118         * lib/unictype/pr_unassigned_code_value.c: New file.
63119         * lib/unictype/pr_unified_ideograph.c: New file.
63120         * lib/unictype/pr_uppercase.c: New file.
63121         * lib/unictype/pr_variation_selector.c: New file.
63122         * lib/unictype/pr_white_space.c: New file.
63123         * lib/unictype/pr_xid_continue.c: New file.
63124         * lib/unictype/pr_xid_start.c: New file.
63125         * lib/unictype/pr_zero_width.c: New file.
63126         * lib/unictype/scripts.c: New file.
63127         * lib/unictype/sy_c_ident.c: New file.
63128         * lib/unictype/sy_c_whitespace.c: New file.
63129         * lib/unictype/sy_java_ident.c: New file.
63130         * lib/unictype/sy_java_whitespace.c: New file.
63131
63132         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63133         Unicode 5.0.0.
63134         * lib/unictype/blocks.h: Likewise.
63135         * lib/unictype/categ_C.h: Likewise.
63136         * lib/unictype/categ_Cc.h: Likewise.
63137         * lib/unictype/categ_Cf.h: Likewise.
63138         * lib/unictype/categ_Cn.h: Likewise.
63139         * lib/unictype/categ_Co.h: Likewise.
63140         * lib/unictype/categ_Cs.h: Likewise.
63141         * lib/unictype/categ_L.h: Likewise.
63142         * lib/unictype/categ_Ll.h: Likewise.
63143         * lib/unictype/categ_Lm.h: Likewise.
63144         * lib/unictype/categ_Lo.h: Likewise.
63145         * lib/unictype/categ_Lt.h: Likewise.
63146         * lib/unictype/categ_Lu.h: Likewise.
63147         * lib/unictype/categ_M.h: Likewise.
63148         * lib/unictype/categ_Mc.h: Likewise.
63149         * lib/unictype/categ_Me.h: Likewise.
63150         * lib/unictype/categ_Mn.h: Likewise.
63151         * lib/unictype/categ_N.h: Likewise.
63152         * lib/unictype/categ_Nd.h: Likewise.
63153         * lib/unictype/categ_Nl.h: Likewise.
63154         * lib/unictype/categ_No.h: Likewise.
63155         * lib/unictype/categ_P.h: Likewise.
63156         * lib/unictype/categ_Pc.h: Likewise.
63157         * lib/unictype/categ_Pd.h: Likewise.
63158         * lib/unictype/categ_Pe.h: Likewise.
63159         * lib/unictype/categ_Pf.h: Likewise.
63160         * lib/unictype/categ_Pi.h: Likewise.
63161         * lib/unictype/categ_Po.h: Likewise.
63162         * lib/unictype/categ_Ps.h: Likewise.
63163         * lib/unictype/categ_S.h: Likewise.
63164         * lib/unictype/categ_Sc.h: Likewise.
63165         * lib/unictype/categ_Sk.h: Likewise.
63166         * lib/unictype/categ_Sm.h: Likewise.
63167         * lib/unictype/categ_So.h: Likewise.
63168         * lib/unictype/categ_Z.h: Likewise.
63169         * lib/unictype/categ_Zl.h: Likewise.
63170         * lib/unictype/categ_Zp.h: Likewise.
63171         * lib/unictype/categ_Zs.h: Likewise.
63172         * lib/unictype/categ_of.h: Likewise.
63173         * lib/unictype/combining.h: Likewise.
63174         * lib/unictype/ctype_alnum.h: Likewise.
63175         * lib/unictype/ctype_alpha.h: Likewise.
63176         * lib/unictype/ctype_blank.h: Likewise.
63177         * lib/unictype/ctype_cntrl.h: Likewise.
63178         * lib/unictype/ctype_digit.h: Likewise.
63179         * lib/unictype/ctype_graph.h: Likewise.
63180         * lib/unictype/ctype_lower.h: Likewise.
63181         * lib/unictype/ctype_print.h: Likewise.
63182         * lib/unictype/ctype_punct.h: Likewise.
63183         * lib/unictype/ctype_space.h: Likewise.
63184         * lib/unictype/ctype_upper.h: Likewise.
63185         * lib/unictype/ctype_xdigit.h: Likewise.
63186         * lib/unictype/decdigit.h: Likewise.
63187         * lib/unictype/digit.h: Likewise.
63188         * lib/unictype/mirror.h: Likewise.
63189         * lib/unictype/numeric.h: Likewise.
63190         * lib/unictype/pr_alphabetic.h: Likewise.
63191         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63192         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63193         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63194         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63195         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63196         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63197         * lib/unictype/pr_bidi_control.h: Likewise.
63198         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63199         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63200         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63201         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63202         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63203         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63204         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63205         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63206         * lib/unictype/pr_bidi_pdf.h: Likewise.
63207         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63208         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63209         * lib/unictype/pr_combining.h: Likewise.
63210         * lib/unictype/pr_composite.h: Likewise.
63211         * lib/unictype/pr_currency_symbol.h: Likewise.
63212         * lib/unictype/pr_dash.h: Likewise.
63213         * lib/unictype/pr_decimal_digit.h: Likewise.
63214         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63215         * lib/unictype/pr_deprecated.h: Likewise.
63216         * lib/unictype/pr_diacritic.h: Likewise.
63217         * lib/unictype/pr_extender.h: Likewise.
63218         * lib/unictype/pr_format_control.h: Likewise.
63219         * lib/unictype/pr_grapheme_base.h: Likewise.
63220         * lib/unictype/pr_grapheme_extend.h: Likewise.
63221         * lib/unictype/pr_grapheme_link.h: Likewise.
63222         * lib/unictype/pr_hex_digit.h: Likewise.
63223         * lib/unictype/pr_hyphen.h: Likewise.
63224         * lib/unictype/pr_id_continue.h: Likewise.
63225         * lib/unictype/pr_id_start.h: Likewise.
63226         * lib/unictype/pr_ideographic.h: Likewise.
63227         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63228         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63229         * lib/unictype/pr_ignorable_control.h: Likewise.
63230         * lib/unictype/pr_iso_control.h: Likewise.
63231         * lib/unictype/pr_join_control.h: Likewise.
63232         * lib/unictype/pr_left_of_pair.h: Likewise.
63233         * lib/unictype/pr_line_separator.h: Likewise.
63234         * lib/unictype/pr_logical_order_exception.h: Likewise.
63235         * lib/unictype/pr_lowercase.h: Likewise.
63236         * lib/unictype/pr_math.h: Likewise.
63237         * lib/unictype/pr_non_break.h: Likewise.
63238         * lib/unictype/pr_not_a_character.h: Likewise.
63239         * lib/unictype/pr_numeric.h: Likewise.
63240         * lib/unictype/pr_other_alphabetic.h: Likewise.
63241         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63242         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63243         * lib/unictype/pr_other_id_continue.h: Likewise.
63244         * lib/unictype/pr_other_id_start.h: Likewise.
63245         * lib/unictype/pr_other_lowercase.h: Likewise.
63246         * lib/unictype/pr_other_math.h: Likewise.
63247         * lib/unictype/pr_other_uppercase.h: Likewise.
63248         * lib/unictype/pr_paired_punctuation.h: Likewise.
63249         * lib/unictype/pr_paragraph_separator.h: Likewise.
63250         * lib/unictype/pr_pattern_syntax.h: Likewise.
63251         * lib/unictype/pr_pattern_white_space.h: Likewise.
63252         * lib/unictype/pr_private_use.h: Likewise.
63253         * lib/unictype/pr_punctuation.h: Likewise.
63254         * lib/unictype/pr_quotation_mark.h: Likewise.
63255         * lib/unictype/pr_radical.h: Likewise.
63256         * lib/unictype/pr_sentence_terminal.h: Likewise.
63257         * lib/unictype/pr_soft_dotted.h: Likewise.
63258         * lib/unictype/pr_space.h: Likewise.
63259         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63260         * lib/unictype/pr_titlecase.h: Likewise.
63261         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63262         * lib/unictype/pr_unified_ideograph.h: Likewise.
63263         * lib/unictype/pr_uppercase.h: Likewise.
63264         * lib/unictype/pr_variation_selector.h: Likewise.
63265         * lib/unictype/pr_white_space.h: Likewise.
63266         * lib/unictype/pr_xid_continue.h: Likewise.
63267         * lib/unictype/pr_xid_start.h: Likewise.
63268         * lib/unictype/pr_zero_width.h: Likewise.
63269         * lib/unictype/scripts.h: Likewise.
63270         * lib/unictype/scripts_byname.gperf: Likewise.
63271         * lib/unictype/sy_c_ident.h: Likewise.
63272         * lib/unictype/sy_c_whitespace.h: Likewise.
63273         * lib/unictype/sy_java_ident.h: Likewise.
63274         * lib/unictype/sy_java_whitespace.h: Likewise.
63275
63276         * lib/unictype/Makefile: New file.
63277         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63278         glibc.
63279         * lib/unictype/3level.h: New file, copied from glibc.
63280         * lib/unictype/3levelbit.h: New file.
63281
63282 2007-11-11  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/gperf: New file.
63285         * modules/iconv_open (Depends-on): Add it.
63286         (Makefile.am): Remove the GPERF definition.
63287
63288 2007-11-11  Bruno Haible  <bruno@clisp.org>
63289
63290         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63291         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63292
63293 2007-11-11  Bruno Haible  <bruno@clisp.org>
63294
63295         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63296         (usage): Remove function.
63297
63298 2007-11-11  Bruno Haible  <bruno@clisp.org>
63299
63300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63301         gl_FUNC_CEILF_LIBS.
63302         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63303         gl_FUNC_CEIL_LIBS.
63304         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63305         gl_FUNC_CEILL_LIBS.
63306         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63307         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63308         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63309
63310 2007-11-11  Bruno Haible  <bruno@clisp.org>
63311
63312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63313         roundf were declared but do not exist on functions.
63314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63315         roundl were declared but do not exist on functions.
63316         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63317         HAVE_FLOORL_AND_CEILL, respectively.
63318         Needed for Sun C on Solaris 10.
63319
63320 2007-11-11  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63323         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63324         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63325         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63326         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63327         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63328         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63329         HAVE_DECL_ROUNDF.
63330         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63331         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63333         of HAVE_DECL_ROUND*.
63334         * modules/math (Makefile.am): Update.
63335
63336 2007-11-10  Bruno Haible  <bruno@clisp.org>
63337
63338         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63339         ptrdiff_t as m4/intl.m4.
63340
63341 2007-11-10  Jim Meyering  <meyering@redhat.com>
63342
63343         Avoid link failure for the argmatch test.
63344         * tests/test-argmatch.c (usage): Define function to avoid a link
63345         failure: argmatch_die requires a usage function.
63346
63347 2007-11-09  Bruno Haible  <bruno@clisp.org>
63348
63349         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63350         * doc/functions/vsnprintf.texi: Likewise.
63351         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63352         with a size argument < 2.
63353
63354 2007-11-09  Bruno Haible  <bruno@clisp.org>
63355
63356         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63357         buffer. Fixes an inefficiency introduced on 2007-11-03.
63358
63359 2007-11-09  Bruno Haible  <bruno@clisp.org>
63360
63361         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63362         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63363
63364 2007-11-08  Jim Meyering  <meyering@redhat.com>
63365
63366         Change cache variable name prefix "jm_" to "gl_" everywhere.
63367         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63368         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63369         * m4/uptime.m4: s/gl_/jm_/
63370
63371 2007-11-07  Bruno Haible  <bruno@clisp.org>
63372
63373         Update to GNU gettext 0.17.
63374         * m4/intl.m4: Update to GNU gettext 0.17.
63375         * m4/po.m4: Likewise.
63376         * modules/gettext (Files): Remove m4/ulonglong.m4.
63377         (configure.ac): Require gettext infrastructure from version 0.17.
63378
63379 2007-11-06  Bruno Haible  <bruno@clisp.org>
63380
63381         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63382         symbolic values are not defined in a public header.
63383         * lib/freadable.c (freadable) [QNX]: Likewise.
63384         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63385         * lib/freading.c (freading) [QNX]: Likewise.
63386         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63387         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63388         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63389         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63390         Reported by Alain Magloire.
63391
63392         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63393
63394 2007-11-05  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63397         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63398         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63399         Reported by Eric Blake.
63400
63401 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63402             Bruno Haible  <bruno@clisp.org>
63403
63404         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63405         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63406         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63407         (malloc): Undefine also before including <stdlib.h>.
63408         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63409         Needed on OSF/1 4.0.
63410
63411 2007-11-05  Jim Meyering  <meyering@redhat.com>
63412
63413         git-version-gen: sync from coreutils.
63414         * build-aux/git-version-gen: Add comments.
63415         Change the first '-' to '.' in the snapshot version string,
63416         e.g., 6.9-377-08144 -> 6.9.377-08144
63417         Remove first parameter.
63418         Don't declare a version "-dirty" merely because a time
63419         stamp has changed.
63420
63421 2007-11-04  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/lock.h: Protect all macro definitions containing an 'if'
63424         statement through a "do { ... } while (0)".
63425         * lib/tls.h: Likewise.
63426
63427 2007-11-04  Bruno Haible  <bruno@clisp.org>
63428
63429         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63430
63431 2007-11-04  Bruno Haible  <bruno@clisp.org>
63432
63433         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63434         * modules/fprintf-posix (Depends-on): Add nocrash.
63435         * modules/snprintf-posix (Depends-on): Likewise.
63436         * modules/sprintf-posix (Depends-on): Likewise.
63437         * modules/vasnprintf-posix (Depends-on): Likewise.
63438         * modules/vasprintf-posix (Depends-on): Likewise.
63439         * modules/vfprintf-posix (Depends-on): Likewise.
63440         * modules/vsnprintf-posix (Depends-on): Likewise.
63441         * modules/vsprintf-posix (Depends-on): Likewise.
63442         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63443         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63444         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63445         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63446         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63447         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63448         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63449
63450 2007-11-04  Bruno Haible  <bruno@clisp.org>
63451
63452         * modules/nocrash: New file.
63453         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63454         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63455
63456 2007-11-04  Bruno Haible  <bruno@clisp.org>
63457
63458         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63459         precision handling.
63460         * tests/test-vasprintf-posix.c (test_function): Likewise.
63461         * tests/test-snprintf-posix.h (test_function): Likewise.
63462         * tests/test-sprintf-posix.h (test_function): Likewise.
63463
63464         Fix *printf behaviour for large precisions on mingw and BeOS.
63465         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63466         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63468         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63469         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63470         gl_PRINTF_PRECISION and test its result. Invoke
63471         gl_PREREQ_VASNPRINTF_PRECISION.
63472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63476         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63478         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63479         * doc/functions/fprintf.texi: Update.
63480         * doc/functions/printf.texi: Update.
63481         * doc/functions/snprintf.texi: Update.
63482         * doc/functions/sprintf.texi: Update.
63483         * doc/functions/vfprintf.texi: Update.
63484         * doc/functions/vprintf.texi: Update.
63485         * doc/functions/vsnprintf.texi: Update.
63486         * doc/functions/vsprintf.texi: Update.
63487
63488 2007-11-04  Bruno Haible  <bruno@clisp.org>
63489
63490         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63491
63492 2007-11-04  Bruno Haible  <bruno@clisp.org>
63493
63494         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63495         Reported by Sylvain Beucler <beuc@gnu.org>.
63496
63497 2007-11-03  Bruno Haible  <bruno@clisp.org>
63498
63499         * tests/test-fprintf-posix2.sh: New file.
63500         * tests/test-fprintf-posix2.c: New file.
63501         * modules/fprintf-posix-tests (Files): Add them.
63502         (TESTS): Add test-fprintf-posix2.sh.
63503         (configure.ac): Check for getrlimit and setrlimit.
63504         (check_PROGRAMS): Add test-fprintf-posix2.
63505
63506         * tests/test-printf-posix2.sh: New file.
63507         * tests/test-printf-posix2.c: New file.
63508         * modules/printf-posix-tests (Files): Add them.
63509         (TESTS): Add test-printf-posix2.sh.
63510         (configure.ac): Check for getrlimit and setrlimit.
63511         (check_PROGRAMS): Add test-printf-posix2.
63512
63513         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63514         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63515         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63516         (decode_double): New function, copied from decode_long_double.
63517         (scale10_round_decimal_decoded): New function, extracted from
63518         scale10_round_decimal_long_double.
63519         (scale10_round_decimal_long_double): Use it.
63520         (scale10_round_decimal_double): New function.
63521         (floorlog10): New function.
63522         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63524         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63526         gl_PRINTF_ENOMEM and test its result. Invoke
63527         gl_PREREQ_VASNPRINTF_ENOMEM.
63528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63535         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63536         * modules/snprintf-posix (Depends-on): Likewise.
63537         * modules/sprintf-posix (Depends-on): Likewise.
63538         * modules/vasnprintf-posix (Depends-on): Likewise.
63539         * modules/vasprintf-posix (Depends-on): Likewise.
63540         * modules/vfprintf-posix (Depends-on): Likewise.
63541         * modules/vsnprintf-posix (Depends-on): Likewise.
63542         * modules/vsprintf-posix (Depends-on): Likewise.
63543         * doc/functions/fprintf.texi: Update.
63544         * doc/functions/printf.texi: Update.
63545         * doc/functions/snprintf.texi: Update.
63546         * doc/functions/sprintf.texi: Update.
63547         * doc/functions/vfprintf.texi: Update.
63548         * doc/functions/vprintf.texi: Update.
63549         * doc/functions/vsnprintf.texi: Update.
63550         * doc/functions/vsprintf.texi: Update.
63551
63552 2007-11-03  Bruno Haible  <bruno@clisp.org>
63553
63554         * modules/frexp-nolibm-tests: New file.
63555
63556         * modules/frexp-nolibm: New file.
63557         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63558
63559 2007-11-03  Bruno Haible  <bruno@clisp.org>
63560
63561         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63562         value is C99 compliant.
63563         Needed for OSF/1 5.1.
63564
63565 2007-11-03  Bruno Haible  <bruno@clisp.org>
63566
63567         Fix out-of-memory handling of vasnprintf.
63568         * lib/printf-parse.c: Include <errno.h>.
63569         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63570         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63571         is already set.
63572
63573 2007-11-02  Eric Blake  <ebb9@byu.net>
63574
63575         Fix tests on cygwin.
63576         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63577
63578 2007-11-01  Bruno Haible  <bruno@clisp.org>
63579
63580         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63581         warning.
63582         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63583         needed for POSIX compatibility.
63584
63585 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63588         for compatibility with GNU.
63589
63590 2007-11-01  Bruno Haible  <bruno@clisp.org>
63591
63592         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63593         (putenv): Renamed from rpl_putenv. Change argument type from
63594         'const char *' to 'char *'.
63595         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63596         of defining putenv in config.h, just set REPLACE_PUTENV.
63597         * modules/putenv (Depends-on): Add stdlib.
63598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63599         (Include): Use <stdlib.h>.
63600         * lib/stdlib.in.h (putenv): New declaration.
63601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63602         REPLACE_PUTENV.
63603         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63604         REPLACE_PUTENV.
63605         Needed for MacOS X 10.5.0.
63606         Reported by Peter O'Gorman <peter@pogma.com>.
63607
63608 2007-11-01  Jim Meyering  <meyering@redhat.com>
63609
63610         Treat an empty date string exactly like "0".
63611         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63612         if the remaining date string (to be parsed) is empty, use "0".
63613         Reported by Mischa Molhoek and discussed in this thread:
63614         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63615
63616 2007-10-31  Bruno Haible  <bruno@clisp.org>
63617
63618         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63619         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63620         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63621         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63622         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63623         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63624
63625 2007-10-31  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63628         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63629         (AC_TYPE_LONG_LONG_INT): Use it.
63630         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63631         it as well.
63632         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63633         to m4/longlong.m4.
63634         * modules/stdint (Files): Remove m4/ulonglong.m4.
63635         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63636         m4/ulonglong.m4.
63637         * modules/strtoumax (Files): Likewise.
63638
63639 2007-10-30  Bruno Haible  <bruno@clisp.org>
63640
63641         * modules/xvasprintf-posix: New file.
63642         Suggested by Eric Blake.
63643
63644 2007-10-30  Bruno Haible  <bruno@clisp.org>
63645
63646         * modules/xprintf-posix-tests: New file.
63647         * tests/test-xprintf-posix.sh: New file.
63648         * tests/test-xprintf-posix.c: New file.
63649         * tests/test-xfprintf-posix.c: New file.
63650
63651         * modules/xprintf-posix: New file.
63652
63653 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63654
63655         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63656         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63657         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63658
63659 2007-10-29  Bruno Haible  <bruno@clisp.org>
63660
63661         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63662         contain the special marker '_cv_'.
63663         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63664         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63665         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63666         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63667         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63668         Reported by Ralf Wildenhues.
63669
63670 2007-10-29  Bruno Haible  <bruno@clisp.org>
63671
63672         * gnulib-tool (func_import): When --lgpl is not specified, set
63673         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63674         GPLv3.
63675         Reported by Simon Josefsson.
63676
63677 2007-10-28  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63680         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63681         HAVE_DECL_ISFINITE.
63682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63683         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63684         HAVE_DECL_ISFINITE.
63685
63686 2007-10-28  Bruno Haible  <bruno@clisp.org>
63687
63688         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63689         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63690
63691 2007-10-28  Bruno Haible  <bruno@clisp.org>
63692
63693         Fix link errors with Sun C 5.0 on Solaris 10.
63694         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63695         function is declared but not present in the compiler's libm.
63696         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63697         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63698         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63699         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63700         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63701         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63702         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63704         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63705         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63706         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63707         HAVE_DECL_FLOORL.
63708
63709 2007-10-28  Bruno Haible  <bruno@clisp.org>
63710
63711         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63712         gl_FUNC_FLOORL. Cache the result.
63713         (gl_FUNC_FLOORL): Use it.
63714         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63715         gl_FUNC_CEILL. Cache the result.
63716         (gl_FUNC_CEILL): Use it.
63717
63718         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63719         gl_FUNC_FLOOR. Cache the result.
63720         (gl_FUNC_FLOOR): Use it.
63721         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63722         gl_FUNC_CEIL. Cache the result.
63723         (gl_FUNC_CEIL): Use it.
63724
63725         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63726         gl_FUNC_FLOORF. Cache the result.
63727         (gl_FUNC_FLOORF): Use it.
63728         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63729         gl_FUNC_CEILF. Cache the result.
63730         (gl_FUNC_CEILF): Use it.
63731
63732 2007-10-28  Bruno Haible  <bruno@clisp.org>
63733
63734         * gnulib-tool: Allow specifying the LGPL version number through
63735         --lgpl=2 or --lgpl=3.
63736         (func_usage): Document --lgpl with argument.
63737         Handle --lgpl=... arguments.
63738         (func_import): Recognize also gl_LGPL calls with an argument. When
63739         --lgpl=2 is used and the module's license is just LGPL, report an
63740         error. Set sed_transform_lib_file according to the lgpl variable. In
63741         the generated files, use --lgpl or gl_LGPL invocations with argument,
63742         if necessary.
63743         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63744         an LGPv2+ license.
63745         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63746         gl_LGPL macro.
63747
63748 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63749             Bruno Haible  <bruno@clisp.org>
63750
63751         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63752         (u16_uctomb_aux): Likewise.
63753         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63754         !HAVE_INLINE.
63755         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63756
63757 2007-10-28  Bruno Haible  <bruno@clisp.org>
63758
63759         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63760         Invoke AM_GETTEXT_OPTION if it exists.
63761         * modules/vasprintf: Likewise.
63762         * modules/verror: Likewise.
63763         * modules/xprintf: Likewise.
63764         * modules/xvasprintf: Likewise.
63765
63766 2007-10-27  Ben Pfaff  <blp@gnu.org>
63767
63768         * lib/math.in.h: Define isfinite macro and prototypes for
63769         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63770         implementations.
63771         * m4/math_h.m4: New substitutions for isfinite module.
63772         * lib/isfinite.c: New file.
63773         * m4/isfinite.m4: New file.
63774         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63775         * modules/isfinite: New file.
63776         * modules/isfinite-tests: New file.
63777         * tests/tests-isfinite.c: New file.
63778         * doc/functions/isfinite.texi: Mention isfinite module.
63779         * MODULES.html.sh: Mention new module.
63780
63781 2007-10-27  Ben Pfaff  <blp@gnu.org>
63782
63783         Ralf Wildenhues reported that Tru64 4.0D declares the round
63784         functions but does not have definitions.
63785         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63786         cannot be found in any library, set the output variable to
63787         "missing" instead of "".
63788         * m4/round.m4: Also use our substitute if we cannot find round in
63789         any library, even if it is declared.
63790         * m4/roundf.m4: Likewise for roundf.
63791         * m4/roundl.m4: Likewise for roundl.
63792         * lib/math.in.h: Undefine roundf, round, roundl before defining
63793         their replacements, to allow for hypothetical systems where these
63794         may be defined as macros but not available in libraries.
63795
63796 2007-10-27  Bruno Haible  <bruno@clisp.org>
63797
63798         * doc/gnulib.texi: Invoke @firstparagraphindent.
63799         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63800         changes in gnulib.
63801         (Source changes): New section.
63802
63803 2007-10-26  Bruno Haible  <bruno@clisp.org>
63804
63805         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63806         borrowed from autoconf.
63807
63808 2007-10-26  Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63811         strerror returned the empty string. Needed on HP-UX 11.00.
63812
63813 2007-10-24  Micah Cowan  <micah@cowan.name>
63814
63815         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63816         * build-aux/bootstrap: Remove support for now-unnecessary option,
63817         --cvs-user, and envvars CVS_USER, CVS_RSH.
63818
63819 2007-10-24  Jim Meyering  <meyering@redhat.com>
63820
63821         Avoid diagnostics from sha1sum when there is no cached checksum.
63822         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63823         if the po.s1 file hasn't been created yet.
63824
63825         * build-aux/bootstrap: Sync from coreutils:
63826         2007-10-24  Jim Meyering  <meyering@redhat.com>
63827         Get gnulib from the git repository, not from an obsolete cvs one.
63828         * build-aux/bootstrap: Suggestion from Micah Cowan.
63829         2007-10-04  Jim Meyering  <jim@meyering.net>
63830         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63831         (update_po_files): Work also when there are no .po files in po/.
63832
63833 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63834
63835         * README: Append ".git" to git and cg examples.
63836         Problem reported by Benoit Sigoure.
63837
63838 2007-10-23  Micah Cowan  <micah@cowan.name>
63839
63840         * users.txt: Add wget.
63841
63842 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63843
63844         Fix linking of some unistdio tests on FreeBSD.
63845         * modules/unistdio/u16-vsnprintf-tests
63846         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63847         * modules/unistdio/u16-vsprintf-tests
63848         (test_u16_vsnprintf1_LDADD): Likewise.
63849         * modules/unistdio/u32-vsnprintf-tests
63850         (test_u32_vsnprintf1_LDADD): Likewise.
63851         * modules/unistdio/u32-vsprintf-tests
63852         (test_u32_vsprintf1_LDADD): Likewise.
63853         * modules/unistdio/u8-vsnprintf-tests
63854         (test_u8_vsnprintf1_LDADD): Likewise.
63855         * modules/unistdio/u8-vsprintf-tests
63856         (test_u8_vsprintf1_LDADD): Likewise.
63857         * modules/unistdio/ulc-vsnprintf-tests
63858         (test_ulc_vsnprintf1_LDADD): Likewise.
63859         * modules/unistdio/ulc-vsprintf-tests
63860         (test_ulc_vsprintf1_LDADD): Likewise.
63861
63862         Fix linking of some uniconv tests on FreeBSD.
63863         * modules/uniconv/u16-conv-from-enc-tests
63864         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63865         * modules/uniconv/u16-conv-to-enc-tests
63866         (test_u16_conv_to_enc_LDADD): Likewise.
63867         * modules/uniconv/u16-strconv-from-enc-tests
63868         (test_u16_strconv_from_enc_LDADD): Likewise.
63869         * modules/uniconv/u16-strconv-to-enc-tests
63870         (test_u16_strconv_to_enc_LDADD): Likewise.
63871         * modules/uniconv/u32-conv-from-enc-tests
63872         (test_u32_conv_from_enc_LDADD): Likewise.
63873         * modules/uniconv/u32-conv-to-enc-tests
63874         (test_u32_conv_to_enc_LDADD): Likewise.
63875         * modules/uniconv/u32-strconv-from-enc-tests
63876         (test_u32_strconv_from_enc_LDADD): Likewise.
63877         * modules/uniconv/u32-strconv-to-enc-tests
63878         (test_u32_strconv_to_enc_LDADD): Likewise.
63879         * modules/uniconv/u8-conv-from-enc-tests
63880         (test_u8_conv_from_enc_LDADD): Likewise.
63881         * modules/uniconv/u8-conv-to-enc-tests
63882         (test_u8_conv_to_enc_LDADD): Likewise.
63883         * modules/uniconv/u8-strconv-from-enc-tests
63884         (test_u8_strconv_from_enc_LDADD): Likewise.
63885         * modules/uniconv/u8-strconv-to-enc-tests
63886         (test_u8_strconv_to_enc_LDADD): Likewise.
63887
63888 2007-10-22  Bruno Haible  <bruno@clisp.org>
63889
63890         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63891         size.
63892
63893 2007-10-22  Eric Blake  <ebb9@byu.net>
63894
63895         Tweak x*printf documentation.
63896         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63897         variable name and comments.
63898         Suggested by Bruno Haible.
63899
63900 2007-10-22  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/acl.c (copy_acl): Fix file name in comment.
63903
63904 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63905
63906         Fix Tru64 problem with stdbool.h.
63907         * lib/stdbool.in.h (false, true):
63908         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63909         Don't declare as an enum in this situation; it runs afoul of Tru64.
63910         Problem reported by Steven M. Schweda in
63911         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63912
63913 2007-10-22  Eric Blake  <ebb9@byu.net>
63914
63915         Also wrap vf?printf.
63916         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63917         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63918         (xvprintf, xvfprintf): New functions.
63919
63920 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63921
63922         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63923         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63924
63925         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63926         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63927
63928 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63931         by Bruno Haible.
63932
63933 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63934
63935         * lib/getloadavg.c
63936         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63937         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63938
63939         * tests/test-i-ring.c: Work for C89.
63940
63941 2007-10-22  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63944         -1u, in preprocessor expression, so that we don't test for the bug
63945         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63947
63948 2007-10-22  Eric Blake  <ebb9@byu.net>
63949
63950         * tests/test-yesno.sh: Silence stderr during test.
63951
63952 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63953
63954         * modules/crypto/gc-camellia: New file.
63955
63956         * m4/gc-camellia.m4: New file.
63957
63958         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63959
63960         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63961
63962 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63963
63964         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63965         --help to stdout.  Reported by sms@antinode.org (Steven
63966         M. Schweda).
63967
63968 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63969
63970         * users.txt: Fix link to libksba.
63971
63972 2007-10-21  Ben Pfaff  <blp@gnu.org>
63973
63974         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63975         round.c roundf implementation that depends on floorf and ceilf to
63976         be tested unconditionally.
63977
63978 2007-10-21  Ben Pfaff  <blp@gnu.org>
63979
63980         * m4/check-libm-func.m4: Removed.
63981         * m4/check-math-lib.m4: New file.
63982         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63983         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63984         definition and lack of AC_LIBOBJ([roundf]).
63985         * m4/roundl.m4: Ditto, and similarly for roundl.
63986         * modules/round: Reference new m4 file.
63987         * modules/roundf: Ditto.
63988         * modules/roundl: Ditto.
63989         * tests/test-round2.c (main): Use ROUND instead of round.
63990         Bug report from Bruno Haible.
63991
63992 2007-10-21  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63995         context.
63996
63997 2007-10-21  Bruno Haible  <bruno@clisp.org>
63998
63999         * tests/test-wcwidth.c (main): Allow negative result for some control
64000         characters.
64001
64002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64003         Needed on OSF/1 5.1.
64004
64005 2007-10-21  Bruno Haible  <bruno@clisp.org>
64006
64007         * tests/test-floorf1.c: Include isnanf.h.
64008         (main): Use isnanf() instead of isnan().
64009         * tests/test-ceilf1.c: Include isnanf.h.
64010         (main): Use isnanf() instead of isnan().
64011         * tests/test-truncf1.c: Include isnanf.h.
64012         (main): Use isnanf() instead of isnan().
64013         * tests/test-roundf1.c: Include isnanf.h.
64014         (main): Use isnanf() instead of isnan().
64015
64016 2007-10-21  Eric Blake  <ebb9@byu.net>
64017
64018         * users.txt: Update URL for m4.
64019
64020 2007-10-21  Bruno Haible  <bruno@clisp.org>
64021
64022         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64023
64024 2007-10-21  Bruno Haible  <bruno@clisp.org>
64025
64026         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64027         Git's management files if the CVS files are not present.
64028
64029 2007-10-20  Bruno Haible  <bruno@clisp.org>
64030
64031         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64032         gcc-3.4.x.
64033
64034 2007-10-20  Ben Pfaff  <blp@gnu.org>
64035
64036         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64037         implementations.
64038         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64039         * lib/round.c: New file.
64040         * lib/roundf.c: New file.
64041         * lib/roundl.c: New file.
64042         * m4/round.m4: New file.
64043         * m4/roundf.m4: New file.
64044         * m4/roundl.m4: New file.
64045         * m4/check-libm-func-m4: New file.
64046         * modules/math: Replace round, roundf, roundl related @VARS@ in
64047         math.in.h.
64048         * modules/round: New file.
64049         * modules/round-tests: New file.
64050         * modules/roundf: New file.
64051         * modules/roundf-tests: New file.
64052         * modules/roundl: New file.
64053         * modules/roundl-tests: New file.
64054         * tests/test-round1.c: New file.
64055         * tests/test-round2.c: New file.
64056         * tests/test-roundf1.c: New file.
64057         * tests/test-roundf2.c: New file.
64058         * tests/test-roundl.c: New file.
64059         * doc/functions/round.texi: Mention round module.
64060         * doc/functions/roundf.texi: Mention roundf module.
64061         * doc/functions/roundl.texi: Mention roundl module.
64062         * MODULES.html.sh: Mention new modules.
64063         Thanks to Bruno Haible for suggestions.
64064
64065 2007-10-20  Jim Meyering  <meyering@redhat.com>
64066
64067         * lib/xprintf.c: Include <config.h> unconditionally.
64068
64069         Change xprintf's license to GPL.
64070         * modules/xprintf (License): s/LGPL/GPL/, since this module
64071         depends on modules (exit and exitfail) which are GPL.
64072         Suggestion from Bruno Haible.
64073
64074         xprintf fixes.
64075         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64076         Use a clearer diagnostic.
64077         Patch from Bruno Haible.
64078
64079 2007-10-20  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64082         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64084
64085 2007-10-20  Bruno Haible  <bruno@clisp.org>
64086
64087         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64088         precision in the comparison result > x - 1 or similar.
64089         * tests/test-ceilf2.c (correct_result_p): Likewise.
64090         * tests/test-truncf2.c (correct_result_p): Likewise.
64091         * tests/test-trunc2.c (correct_result_p): Likewise.
64092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64093
64094 2007-10-20  Bruno Haible  <bruno@clisp.org>
64095
64096         * modules/ceil: New file.
64097         * m4/ceil.m4: New file.
64098         * doc/functions/ceil.texi: Mention the 'ceil' module.
64099
64100 2007-10-20  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/floor: New file.
64103         * m4/floor.m4: New file.
64104         * doc/functions/floor.texi: Mention the 'floor' module.
64105
64106 2007-10-20  Bruno Haible  <bruno@clisp.org>
64107
64108         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64109         of %a.
64110         * modules/floorf-tests (Depends-on): Likewise.
64111         * modules/truncf-tests (Depends-on): Likewise.
64112         * modules/trunc-tests (Depends-on): Likewise.
64113         Reported by Ben Pfaff.
64114
64115 2007-10-19  Jim Meyering  <meyering@redhat.com>
64116
64117         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64118         Don't bother testing specific errno values.  Just test ferror.
64119
64120         New module: xprintf
64121         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64122
64123 2007-10-19  Bruno Haible  <bruno@clisp.org>
64124
64125         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64126         syntax.
64127         * modules/javaexec (Makefile.am): Likewise.
64128         * modules/relocatable-prog (Makefile.am): Likewise.
64129         Suggested by Jim Meyering.
64130
64131 2007-10-18  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64134         Reported by Jim Meyering.
64135
64136 2007-10-18  Eric Blake  <ebb9@byu.net>
64137
64138         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64139
64140 2007-10-18  Bruno Haible  <bruno@clisp.org>
64141
64142         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64143         the format string into writable memory. Needed in Fortify conditions.
64144
64145 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64146             Bruno Haible  <bruno@clisp.org>
64147
64148         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64149         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64150         * modules/trim (Depends-on): Add mbchar.
64151         (configure.ac): Add gl_FUNC_MBRTOWC.
64152         (Makefile.am): Augment lib_SOURCES.
64153
64154 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64155
64156         Modify glob.c to use fstatat and dirfd, to simplify it.
64157         Suggested by Eric Blake.
64158         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64159         Don't include <stdbool.h>; not used.
64160         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64161         (link_exists_p): Simplify implementation, since we can now assume
64162         dirfd and fstatat.
64163         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64164
64165 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64166
64167         * gnulib-tool (func_get_dependencies): Fix sed script to
64168         match only tests.
64169
64170 2007-10-17  Bruno Haible  <bruno@clisp.org>
64171
64172         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64173         allow locale names without encoding suffix.
64174         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64175         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64176
64177 2007-10-16  Bruno Haible  <bruno@clisp.org>
64178
64179         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64180         * lib/getgroups.c (getgroups): Likewise.
64181         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64182
64183 2007-10-16  Bruno Haible  <bruno@clisp.org>
64184
64185         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64186         * modules/malloc-posix (License): Likewise.
64187         * modules/realloc-posix (License): Likewise.
64188         * modules/calloc-posix (License): Likewise.
64189         * modules/intprops (License): Change from GPL to LGPL, with
64190         Paul Eggert's approval.
64191
64192 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         Merge glibc changes into lib/glob.c.
64195
64196         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64197         2007-10-15 04:59:03 UTC.  Here are the changes:
64198
64199         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64200
64201         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64202
64203         * lib/glob.c: Add some branch prediction throughout.
64204
64205         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64206
64207         [BZ #5103]
64208         * lib/glob.c (glob): Recognize patterns starting \/.
64209
64210         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64211
64212         [BZ #3996]
64213         * lib/glob.c (attribute_hidden): Define if not defined.
64214         (glob): Unescape dirname, filename or username when needed and not
64215         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64216         is NULL.  Handle unescaped [ in pattern without closing ].
64217         Don't pass GLOB_CHECK down to recursive glob for directories.
64218         (__glob_pattern_type): New function.
64219         (__glob_pattern_p): Implement using __glob_pattern_type.
64220         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64221         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64222         Remove unreachable code.
64223
64224         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64225
64226         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64227         explain why there are no leaks.
64228
64229         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64230
64231         [BZ #3253]
64232         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64233         time, rather allocate increasingly bigger arrays of pointers, if
64234         possible with alloca, if too large with malloc.
64235
64236 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64237
64238         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64239         Problem reported by H.Merijn Brand in
64240         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64241         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64242         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64243
64244 2007-10-15  Bruno Haible  <bruno@clisp.org>
64245
64246         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64247         with explicit rpl_ prefix.
64248         * lib/fopen.c (fopen): Likewise.
64249         * lib/freopen.c (freopen): Likewise.
64250         * lib/iconv.c (iconv): Likewise.
64251         * lib/iconv_close.c (iconv_close): Likewise.
64252
64253 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64254
64255         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64256
64257 2007-10-15  Bruno Haible  <bruno@clisp.org>
64258
64259         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64260         <stddef.h> instead of <stdlib.h> since we only need NULL.
64261         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64262
64263 2007-10-15  Bruno Haible  <bruno@clisp.org>
64264
64265         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64266         Replace paragraph talking about LIBOBJS.
64267         Reported by Colin Watson <cjwatson@debian.org>.
64268
64269 2007-10-15  Bruno Haible  <bruno@clisp.org>
64270
64271         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64272         <stdlib.h> before using NULL.
64273
64274 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64275
64276         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64277         Reported by Albert Chin <china@thewrittenword.com>.
64278
64279 2007-10-14  Bruno Haible  <bruno@clisp.org>
64280
64281         * modules/iconv_open-utf-tests: New file.
64282         * tests/test-iconv-utf.c: New file.
64283
64284         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64285         * modules/iconv_open-utf: New file.
64286         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64287         (iconv, iconv_close): New declarations.
64288         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64289         be defined.
64290         (iconv_open): Add special handling of conversion between UTF-8 and
64291         UTF-{16,32}{BE,LE}.
64292         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64293         * lib/iconv_close.c: New file.
64294         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64295         gl_FUNC_ICONV_OPEN.
64296         (gl_FUNC_ICONV_OPEN): Use it.
64297         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64298         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64299         and REPLACE_ICONV_UTF.
64300         * modules/iconv_open (Depends-on): Add c-strcase.
64301         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64302         ICONV_CONST.
64303         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64304
64305 2007-10-13  Albert Chin  <china@thewrittenword.com>
64306             Bruno Haible  <bruno@clisp.org>
64307
64308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64309         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64310
64311 2007-10-13  Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64314         defined, use the ISO C99 inline semantics.
64315         * lib/argp.h (ARGP_EI): Likewise.
64316
64317 2007-10-13  Bruno Haible  <bruno@clisp.org>
64318
64319         Handle 'inline' change in gcc 4.3.0.
64320         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64321         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64322         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64323         argp_fmtstream_point): Disable 'extern' declaration if the function
64324         definition is going to be provided inline.
64325         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64326         semantics, not the ISO C99 inline semantics.
64327         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64328         'extern' declaration if the function definition is going to be provided
64329         inline.
64330         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64331         the GNU C inline semantics, not the ISO C99 inline semantics. With
64332         GCC 4.2, avoid a warning.
64333
64334 2007-10-13  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/freading.h (freading): Enable the use of __freading for
64337         glibc >= 2.7.
64338         * lib/freading.c (freading): Likewise.
64339
64340 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64343         "warning: C99 inline functions are not supported; using GNU89".
64344
64345 2007-10-12  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64348         of 2.
64349         * tests/test-ceilf2.c: New file.
64350         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64351
64352         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64353         * modules/ceilf-tests: Update.
64354
64355 2007-10-12  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64358         of 2.
64359         * tests/test-floorf2.c: New file.
64360         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64361
64362         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64363         * modules/floorf-tests: Update.
64364
64365 2007-10-12  Bruno Haible  <bruno@clisp.org>
64366
64367         * tests/test-trunc2.c: New file.
64368         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64369
64370         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64371         * modules/trunc-tests: Update.
64372
64373 2007-10-12  Bruno Haible  <bruno@clisp.org>
64374
64375         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64376         of 2.
64377         * tests/test-truncf2.c: New file.
64378         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64379
64380         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64381         * modules/truncf-tests: Update.
64382
64383 2007-10-11  Eric Blake  <ebb9@byu.net>
64384
64385         Don't claim strerror is broken on Interix.
64386         * doc/functions/strerror.texi (strerror): Known broken systems are
64387         now Solaris 8, and not Interix.
64388         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64389         Interix on cross-compile.
64390         Reported by Martin Koeppe in
64391         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64392
64393 2007-10-11  Bruno Haible  <bruno@clisp.org>
64394
64395         * modules/i-ring-tests: New file.
64396         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64397         instead of assert.
64398
64399 2007-10-11  Bruno Haible  <bruno@clisp.org>
64400
64401         * modules/filenamecat-tests: New file.
64402         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64403         * lib/filenamecat.c: Remove test code.
64404
64405 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64408
64409         * lib/strerror.c: Include <string.h> always, to test interface,
64410         and to remove the need for the dummy.
64411         Include intprops.h to compute width instead of doing it ourselves
64412         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64413         (strerror): Define it to return NULL if there's no system strerror.
64414         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64415         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64416         ancient pre-strerror Unix systems well any more.  Saying "unknown
64417         system error" is enough.
64418         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64419         simpler strerror.c implementation.
64420         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64421         Simplify the tests to reflect the simpler strerror implementation.
64422         * modules/strerror (Depends-on): Add intprops.
64423
64424 2007-10-09  Eric Blake  <ebb9@byu.net>
64425
64426         Silence test-fpending.
64427         * modules/fpending-tests (Files): Add wrapper script.
64428         * tests/test-fpending.sh: New file.
64429
64430 2007-10-09  Bruno Haible  <bruno@clisp.org>
64431
64432         * MODULES.html.sh (func_module): Don't create a hyperlink for
64433         function names like 'printf_frexp'.
64434         (Misc): Add crc, memxor.
64435         (Characteristics of floating types): New section.
64436         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64437         isnanf-nolibm, signbit, trunc, truncf, truncl.
64438         (Enhancements for ISO C 99 functions): New subsection Input/output.
64439         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64440         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64441         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64442         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64443         (Enhancements for POSIX:2001 functions): Add chdir-long.
64444         (File system functions): Add areadlink, chdir-safer, read-file.
64445         Remove cycle-check.
64446         (File system as inode set): New section.
64447         (Date and time): Add gethrxtime.
64448         (Multithreading): Add openmp.
64449         (Internationalization functions): Add localename.
64450         (Unicode string functions): Add unistr/u*-mbsnlen.
64451         (Support for maintaining and releasing projects): Add git-version-gen.
64452         (Lone files): Remove directories.
64453
64454 2007-10-08  Ben Pfaff  <blp@gnu.org>
64455
64456         * lib/xmalloca.h: Fix typo in comment.
64457
64458 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64461         when avoiding problems with integer overflow.  Use a portable test
64462         instead.
64463
64464 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64465
64466         * modules/dummy (License): Change to LGPLv2+.
64467         * modules/float (License): Likewise
64468         * modules/realloc (License): Likewise
64469         * modules/stdlib (License): Likewise
64470
64471 2007-10-07  Bruno Haible  <bruno@clisp.org>
64472
64473         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64474         * floor.c (TWO_MANT_DIG): Likewise.
64475         * ceil.c (TWO_MANT_DIG): Likewise.
64476         Reported by Ben Pfaff.
64477
64478 2007-10-07  Bruno Haible  <bruno@clisp.org>
64479
64480         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64481         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64482         * lib/frexp.c (FUNC): Likewise.
64483         * lib/printf-frexp.h (printf_frexp): Likewise.
64484         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64485         * lib/printf-frexp.c (FUNC): Likewise.
64486         Suggested by Jim Meyering.
64487
64488 2007-10-07  Jim Meyering  <meyering@redhat.com>
64489
64490         Make xnanosleep's integer overflow test more robust.
64491         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64492         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64493
64494 2007-10-07  Bruno Haible  <bruno@clisp.org>
64495
64496         * NEWS: Mention the license change.
64497
64498         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64499         abbreviations in the modules files.
64500
64501         Change copyright notice from GPLv2+ to GPLv3+.
64502         * README: Change copyright notice.
64503         * MODULES.html.sh: Likewise.
64504         * build-aux/bootstrap.conf: Likewise.
64505         * build-aux/config.libpath: Likewise.
64506         * build-aux/csharpcomp.sh.in: Likewise.
64507         * build-aux/csharpexec.sh.in: Likewise.
64508         * build-aux/install-reloc: Likewise.
64509         * build-aux/javacomp.sh.in: Likewise.
64510         * build-aux/javaexec.sh.in: Likewise.
64511         * build-aux/ldd.sh.in: Likewise.
64512         * build-aux/reloc-ldflags: Likewise.
64513         * build-aux/relocatable.sh.in: Likewise.
64514         * build-aux/x-to-1.in: Likewise.
64515         * check-module: Likewise.
64516         * config/srclistvars.sh: Likewise.
64517         * gnulib-tool: Likewise.
64518         * lib/acl-internal.h: Likewise.
64519         * lib/acl.c: Likewise.
64520         * lib/acl.h: Likewise.
64521         * lib/acl_entries.c: Likewise.
64522         * lib/areadlink-with-size.c: Likewise.
64523         * lib/areadlink.c: Likewise.
64524         * lib/areadlink.h: Likewise.
64525         * lib/argmatch.c: Likewise.
64526         * lib/argmatch.h: Likewise.
64527         * lib/argp-ba.c: Likewise.
64528         * lib/argp-eexst.c: Likewise.
64529         * lib/argp-fmtstream.c: Likewise.
64530         * lib/argp-fmtstream.h: Likewise.
64531         * lib/argp-fs-xinl.c: Likewise.
64532         * lib/argp-help.c: Likewise.
64533         * lib/argp-namefrob.h: Likewise.
64534         * lib/argp-parse.c: Likewise.
64535         * lib/argp-pin.c: Likewise.
64536         * lib/argp-pv.c: Likewise.
64537         * lib/argp-pvh.c: Likewise.
64538         * lib/argp-xinl.c: Likewise.
64539         * lib/argp.h: Likewise.
64540         * lib/at-func.c: Likewise.
64541         * lib/atanl.c: Likewise.
64542         * lib/backupfile.c: Likewise.
64543         * lib/backupfile.h: Likewise.
64544         * lib/basename.c: Likewise.
64545         * lib/binary-io.h: Likewise.
64546         * lib/byteswap.in.h: Likewise.
64547         * lib/c-stack.c: Likewise.
64548         * lib/c-stack.h: Likewise.
64549         * lib/c-strcasestr.c: Likewise.
64550         * lib/c-strcasestr.h: Likewise.
64551         * lib/c-strstr.c: Likewise.
64552         * lib/c-strstr.h: Likewise.
64553         * lib/c-strtod.c: Likewise.
64554         * lib/calloc.c: Likewise.
64555         * lib/canon-host.c: Likewise.
64556         * lib/canon-host.h: Likewise.
64557         * lib/canonicalize-lgpl.c: Likewise.
64558         * lib/canonicalize.c: Likewise.
64559         * lib/canonicalize.h: Likewise.
64560         * lib/ceil.c: Likewise.
64561         * lib/ceilf.c: Likewise.
64562         * lib/ceill.c: Likewise.
64563         * lib/chdir-long.c: Likewise.
64564         * lib/chdir-long.h: Likewise.
64565         * lib/chdir-safer.c: Likewise.
64566         * lib/chdir-safer.h: Likewise.
64567         * lib/chown.c: Likewise.
64568         * lib/classpath.c: Likewise.
64569         * lib/classpath.h: Likewise.
64570         * lib/clean-temp.c: Likewise.
64571         * lib/clean-temp.h: Likewise.
64572         * lib/cloexec.c: Likewise.
64573         * lib/close-stream.c: Likewise.
64574         * lib/closein.c: Likewise.
64575         * lib/closein.h: Likewise.
64576         * lib/closeout.c: Likewise.
64577         * lib/closeout.h: Likewise.
64578         * lib/concat-filename.c: Likewise.
64579         * lib/copy-file.c: Likewise.
64580         * lib/copy-file.h: Likewise.
64581         * lib/count-one-bits.h: Likewise.
64582         * lib/crc.c: Likewise.
64583         * lib/crc.h: Likewise.
64584         * lib/creat-safer.c: Likewise.
64585         * lib/csharpcomp.c: Likewise.
64586         * lib/csharpcomp.h: Likewise.
64587         * lib/csharpexec.c: Likewise.
64588         * lib/csharpexec.h: Likewise.
64589         * lib/cycle-check.c: Likewise.
64590         * lib/cycle-check.h: Likewise.
64591         * lib/diacrit.c: Likewise.
64592         * lib/diacrit.h: Likewise.
64593         * lib/diffseq.h: Likewise.
64594         * lib/dirchownmod.c: Likewise.
64595         * lib/dirent.in.h: Likewise.
64596         * lib/dirfd.c: Likewise.
64597         * lib/dirfd.h: Likewise.
64598         * lib/dirname.c: Likewise.
64599         * lib/dirname.h: Likewise.
64600         * lib/dummy.c: Likewise.
64601         * lib/dup-safer.c: Likewise.
64602         * lib/dup2.c: Likewise.
64603         * lib/eealloc.h: Likewise.
64604         * lib/error.c: Likewise.
64605         * lib/error.h: Likewise.
64606         * lib/euidaccess.c: Likewise.
64607         * lib/exclude.c: Likewise.
64608         * lib/exclude.h: Likewise.
64609         * lib/execute.c: Likewise.
64610         * lib/execute.h: Likewise.
64611         * lib/exitfail.c: Likewise.
64612         * lib/exitfail.h: Likewise.
64613         * lib/expl.c: Likewise.
64614         * lib/fatal-signal.c: Likewise.
64615         * lib/fatal-signal.h: Likewise.
64616         * lib/fbufmode.c: Likewise.
64617         * lib/fbufmode.h: Likewise.
64618         * lib/fchdir.c: Likewise.
64619         * lib/fchmodat.c: Likewise.
64620         * lib/fchownat.c: Likewise.
64621         * lib/fcntl--.h: Likewise.
64622         * lib/fcntl-safer.h: Likewise.
64623         * lib/fcntl.in.h: Likewise.
64624         * lib/fd-safer.c: Likewise.
64625         * lib/fflush.c: Likewise.
64626         * lib/file-has-acl.c: Likewise.
64627         * lib/file-set.c: Likewise.
64628         * lib/file-type.c: Likewise.
64629         * lib/file-type.h: Likewise.
64630         * lib/fileblocks.c: Likewise.
64631         * lib/filemode.c: Likewise.
64632         * lib/filemode.h: Likewise.
64633         * lib/filename.h: Likewise.
64634         * lib/filenamecat.c: Likewise.
64635         * lib/filenamecat.h: Likewise.
64636         * lib/findprog.c: Likewise.
64637         * lib/findprog.h: Likewise.
64638         * lib/float.in.h: Likewise.
64639         * lib/floor.c: Likewise.
64640         * lib/floorf.c: Likewise.
64641         * lib/floorl.c: Likewise.
64642         * lib/fopen-safer.c: Likewise.
64643         * lib/fopen.c: Likewise.
64644         * lib/fpending.c: Likewise.
64645         * lib/fpending.h: Likewise.
64646         * lib/fprintf.c: Likewise.
64647         * lib/fprintftime.h: Likewise.
64648         * lib/fpucw.h: Likewise.
64649         * lib/fpurge.c: Likewise.
64650         * lib/fpurge.h: Likewise.
64651         * lib/freadable.c: Likewise.
64652         * lib/freadable.h: Likewise.
64653         * lib/freadahead.c: Likewise.
64654         * lib/freadahead.h: Likewise.
64655         * lib/freading.c: Likewise.
64656         * lib/freading.h: Likewise.
64657         * lib/free.c: Likewise.
64658         * lib/freopen.c: Likewise.
64659         * lib/frexp.c: Likewise.
64660         * lib/frexpl.c: Likewise.
64661         * lib/fseek.c: Likewise.
64662         * lib/fseterr.c: Likewise.
64663         * lib/fseterr.h: Likewise.
64664         * lib/fstatat.c: Likewise.
64665         * lib/fstrcmp.c: Likewise.
64666         * lib/fstrcmp.h: Likewise.
64667         * lib/fsusage.c: Likewise.
64668         * lib/fsusage.h: Likewise.
64669         * lib/ftell.c: Likewise.
64670         * lib/ftello.c: Likewise.
64671         * lib/fts-cycle.c: Likewise.
64672         * lib/fts.c: Likewise.
64673         * lib/fts_.h: Likewise.
64674         * lib/full-read.c: Likewise.
64675         * lib/full-read.h: Likewise.
64676         * lib/full-write.c: Likewise.
64677         * lib/full-write.h: Likewise.
64678         * lib/fwritable.c: Likewise.
64679         * lib/fwritable.h: Likewise.
64680         * lib/fwriteerror.c: Likewise.
64681         * lib/fwriteerror.h: Likewise.
64682         * lib/fwriting.c: Likewise.
64683         * lib/fwriting.h: Likewise.
64684         * lib/gcd.c: Likewise.
64685         * lib/gcd.h: Likewise.
64686         * lib/getcwd.c: Likewise.
64687         * lib/getdate.h: Likewise.
64688         * lib/getdate.y: Likewise.
64689         * lib/getdomainname.c: Likewise.
64690         * lib/getdomainname.h: Likewise.
64691         * lib/getgroups.c: Likewise.
64692         * lib/gethostname.c: Likewise.
64693         * lib/gethrxtime.c: Likewise.
64694         * lib/gethrxtime.h: Likewise.
64695         * lib/getloadavg.c: Likewise.
64696         * lib/getndelim2.c: Likewise.
64697         * lib/getndelim2.h: Likewise.
64698         * lib/getnline.c: Likewise.
64699         * lib/getnline.h: Likewise.
64700         * lib/getopt.c: Likewise.
64701         * lib/getopt.in.h: Likewise.
64702         * lib/getopt1.c: Likewise.
64703         * lib/getopt_int.h: Likewise.
64704         * lib/getpagesize.h: Likewise.
64705         * lib/getsubopt.c: Likewise.
64706         * lib/gettime.c: Likewise.
64707         * lib/getugroups.c: Likewise.
64708         * lib/getugroups.h: Likewise.
64709         * lib/getusershell.c: Likewise.
64710         * lib/gl_anyavltree_list1.h: Likewise.
64711         * lib/gl_anyavltree_list2.h: Likewise.
64712         * lib/gl_anyhash_list1.h: Likewise.
64713         * lib/gl_anyhash_list2.h: Likewise.
64714         * lib/gl_anylinked_list1.h: Likewise.
64715         * lib/gl_anylinked_list2.h: Likewise.
64716         * lib/gl_anyrbtree_list1.h: Likewise.
64717         * lib/gl_anyrbtree_list2.h: Likewise.
64718         * lib/gl_anytree_list1.h: Likewise.
64719         * lib/gl_anytree_list2.h: Likewise.
64720         * lib/gl_anytree_oset.h: Likewise.
64721         * lib/gl_anytreehash_list1.h: Likewise.
64722         * lib/gl_anytreehash_list2.h: Likewise.
64723         * lib/gl_array_list.c: Likewise.
64724         * lib/gl_array_list.h: Likewise.
64725         * lib/gl_array_oset.c: Likewise.
64726         * lib/gl_array_oset.h: Likewise.
64727         * lib/gl_avltree_list.c: Likewise.
64728         * lib/gl_avltree_list.h: Likewise.
64729         * lib/gl_avltree_oset.c: Likewise.
64730         * lib/gl_avltree_oset.h: Likewise.
64731         * lib/gl_avltreehash_list.c: Likewise.
64732         * lib/gl_avltreehash_list.h: Likewise.
64733         * lib/gl_carray_list.c: Likewise.
64734         * lib/gl_carray_list.h: Likewise.
64735         * lib/gl_linked_list.c: Likewise.
64736         * lib/gl_linked_list.h: Likewise.
64737         * lib/gl_linkedhash_list.c: Likewise.
64738         * lib/gl_linkedhash_list.h: Likewise.
64739         * lib/gl_list.c: Likewise.
64740         * lib/gl_list.h: Likewise.
64741         * lib/gl_oset.c: Likewise.
64742         * lib/gl_oset.h: Likewise.
64743         * lib/gl_rbtree_list.c: Likewise.
64744         * lib/gl_rbtree_list.h: Likewise.
64745         * lib/gl_rbtree_oset.c: Likewise.
64746         * lib/gl_rbtree_oset.h: Likewise.
64747         * lib/gl_rbtreehash_list.c: Likewise.
64748         * lib/gl_rbtreehash_list.h: Likewise.
64749         * lib/gl_sublist.c: Likewise.
64750         * lib/gl_sublist.h: Likewise.
64751         * lib/group-member.c: Likewise.
64752         * lib/group-member.h: Likewise.
64753         * lib/hard-locale.c: Likewise.
64754         * lib/hard-locale.h: Likewise.
64755         * lib/hash-pjw.c: Likewise.
64756         * lib/hash-pjw.h: Likewise.
64757         * lib/hash-triple.c: Likewise.
64758         * lib/hash.c: Likewise.
64759         * lib/hash.h: Likewise.
64760         * lib/human.c: Likewise.
64761         * lib/human.h: Likewise.
64762         * lib/i-ring.c: Likewise.
64763         * lib/i-ring.h: Likewise.
64764         * lib/idcache.c: Likewise.
64765         * lib/imaxabs.c: Likewise.
64766         * lib/imaxdiv.c: Likewise.
64767         * lib/inet_pton.c: Likewise.
64768         * lib/inet_pton.h: Likewise.
64769         * lib/intprops.h: Likewise.
64770         * lib/inttostr.c: Likewise.
64771         * lib/inttostr.h: Likewise.
64772         * lib/inttypes.in.h: Likewise.
64773         * lib/isapipe.c: Likewise.
64774         * lib/isdir.c: Likewise.
64775         * lib/isnan.c: Likewise.
64776         * lib/isnan.h: Likewise.
64777         * lib/isnanf.c: Likewise.
64778         * lib/isnanf.h: Likewise.
64779         * lib/isnanl-nolibm.h: Likewise.
64780         * lib/isnanl.c: Likewise.
64781         * lib/isnanl.h: Likewise.
64782         * lib/javacomp.c: Likewise.
64783         * lib/javacomp.h: Likewise.
64784         * lib/javaexec.c: Likewise.
64785         * lib/javaexec.h: Likewise.
64786         * lib/javaversion.c: Likewise.
64787         * lib/javaversion.h: Likewise.
64788         * lib/javaversion.java: Likewise.
64789         * lib/lbrkprop.h: Likewise.
64790         * lib/lchmod.h: Likewise.
64791         * lib/lchown.c: Likewise.
64792         * lib/ldexpl.c: Likewise.
64793         * lib/linebreak.c: Likewise.
64794         * lib/linebreak.h: Likewise.
64795         * lib/linebuffer.c: Likewise.
64796         * lib/linebuffer.h: Likewise.
64797         * lib/locale.in.h: Likewise.
64798         * lib/logl.c: Likewise.
64799         * lib/long-options.c: Likewise.
64800         * lib/long-options.h: Likewise.
64801         * lib/lstat.c: Likewise.
64802         * lib/lstat.h: Likewise.
64803         * lib/math.in.h: Likewise.
64804         * lib/mbchar.c: Likewise.
64805         * lib/mbchar.h: Likewise.
64806         * lib/mbfile.h: Likewise.
64807         * lib/mbiter.h: Likewise.
64808         * lib/mbscasecmp.c: Likewise.
64809         * lib/mbscasestr.c: Likewise.
64810         * lib/mbschr.c: Likewise.
64811         * lib/mbscspn.c: Likewise.
64812         * lib/mbslen.c: Likewise.
64813         * lib/mbsncasecmp.c: Likewise.
64814         * lib/mbsnlen.c: Likewise.
64815         * lib/mbspbrk.c: Likewise.
64816         * lib/mbspcasecmp.c: Likewise.
64817         * lib/mbsrchr.c: Likewise.
64818         * lib/mbssep.c: Likewise.
64819         * lib/mbsspn.c: Likewise.
64820         * lib/mbsstr.c: Likewise.
64821         * lib/mbstok_r.c: Likewise.
64822         * lib/mbswidth.c: Likewise.
64823         * lib/mbswidth.h: Likewise.
64824         * lib/mbuiter.h: Likewise.
64825         * lib/memcasecmp.c: Likewise.
64826         * lib/memcasecmp.h: Likewise.
64827         * lib/memchr.c: Likewise.
64828         * lib/memcmp.c: Likewise.
64829         * lib/memcoll.c: Likewise.
64830         * lib/memcoll.h: Likewise.
64831         * lib/memcpy.c: Likewise.
64832         * lib/memrchr.c: Likewise.
64833         * lib/mkancesdirs.c: Likewise.
64834         * lib/mkdir-p.c: Likewise.
64835         * lib/mkdir-p.h: Likewise.
64836         * lib/mkdir.c: Likewise.
64837         * lib/mkdirat.c: Likewise.
64838         * lib/mkdtemp.c: Likewise.
64839         * lib/mkstemp-safer.c: Likewise.
64840         * lib/mkstemp.c: Likewise.
64841         * lib/modechange.c: Likewise.
64842         * lib/modechange.h: Likewise.
64843         * lib/mountlist.c: Likewise.
64844         * lib/mountlist.h: Likewise.
64845         * lib/mpsort.c: Likewise.
64846         * lib/nanosleep.c: Likewise.
64847         * lib/obstack.c: Likewise.
64848         * lib/obstack.h: Likewise.
64849         * lib/open-safer.c: Likewise.
64850         * lib/open.c: Likewise.
64851         * lib/openat-die.c: Likewise.
64852         * lib/openat-priv.h: Likewise.
64853         * lib/openat-proc.c: Likewise.
64854         * lib/openat.c: Likewise.
64855         * lib/openat.h: Likewise.
64856         * lib/pagealign_alloc.c: Likewise.
64857         * lib/pagealign_alloc.h: Likewise.
64858         * lib/physmem.c: Likewise.
64859         * lib/physmem.h: Likewise.
64860         * lib/pipe-safer.c: Likewise.
64861         * lib/pipe.c: Likewise.
64862         * lib/pipe.h: Likewise.
64863         * lib/posixtm.c: Likewise.
64864         * lib/posixtm.h: Likewise.
64865         * lib/posixver.c: Likewise.
64866         * lib/printf-frexp.c: Likewise.
64867         * lib/printf-frexp.h: Likewise.
64868         * lib/printf-frexpl.c: Likewise.
64869         * lib/printf-frexpl.h: Likewise.
64870         * lib/printf.c: Likewise.
64871         * lib/progname.c: Likewise.
64872         * lib/progname.h: Likewise.
64873         * lib/progreloc.c: Likewise.
64874         * lib/putenv.c: Likewise.
64875         * lib/quote.c: Likewise.
64876         * lib/quote.h: Likewise.
64877         * lib/quotearg.c: Likewise.
64878         * lib/quotearg.h: Likewise.
64879         * lib/raise.c: Likewise.
64880         * lib/readline.c: Likewise.
64881         * lib/readline.h: Likewise.
64882         * lib/readlink.c: Likewise.
64883         * lib/readtokens.c: Likewise.
64884         * lib/readtokens.h: Likewise.
64885         * lib/readtokens0.c: Likewise.
64886         * lib/readtokens0.h: Likewise.
64887         * lib/readutmp.c: Likewise.
64888         * lib/readutmp.h: Likewise.
64889         * lib/realloc.c: Likewise.
64890         * lib/relocwrapper.c: Likewise.
64891         * lib/rename-dest-slash.c: Likewise.
64892         * lib/rename.c: Likewise.
64893         * lib/rmdir.c: Likewise.
64894         * lib/rpmatch.c: Likewise.
64895         * lib/safe-read.c: Likewise.
64896         * lib/safe-read.h: Likewise.
64897         * lib/safe-write.c: Likewise.
64898         * lib/safe-write.h: Likewise.
64899         * lib/same-inode.h: Likewise.
64900         * lib/same.c: Likewise.
64901         * lib/same.h: Likewise.
64902         * lib/save-cwd.c: Likewise.
64903         * lib/save-cwd.h: Likewise.
64904         * lib/savedir.c: Likewise.
64905         * lib/savedir.h: Likewise.
64906         * lib/savewd.c: Likewise.
64907         * lib/savewd.h: Likewise.
64908         * lib/search.in.h: Likewise.
64909         * lib/setenv.c: Likewise.
64910         * lib/setenv.h: Likewise.
64911         * lib/settime.c: Likewise.
64912         * lib/sh-quote.c: Likewise.
64913         * lib/sh-quote.h: Likewise.
64914         * lib/sig2str.c: Likewise.
64915         * lib/sig2str.h: Likewise.
64916         * lib/signal.in.h: Likewise.
64917         * lib/signbitd.c: Likewise.
64918         * lib/signbitf.c: Likewise.
64919         * lib/signbitl.c: Likewise.
64920         * lib/sigprocmask.c: Likewise.
64921         * lib/sincosl.c: Likewise.
64922         * lib/sleep.c: Likewise.
64923         * lib/sprintf.c: Likewise.
64924         * lib/sqrtl.c: Likewise.
64925         * lib/stat-time.h: Likewise.
64926         * lib/stdio--.h: Likewise.
64927         * lib/stdio-safer.h: Likewise.
64928         * lib/stdlib--.h: Likewise.
64929         * lib/stdlib-safer.h: Likewise.
64930         * lib/stdlib.in.h: Likewise.
64931         * lib/stpcpy.c: Likewise.
64932         * lib/stpncpy.c: Likewise.
64933         * lib/strchrnul.c: Likewise.
64934         * lib/strcspn.c: Likewise.
64935         * lib/strerror.c: Likewise.
64936         * lib/strftime.c: Likewise.
64937         * lib/strftime.h: Likewise.
64938         * lib/striconveh.c: Likewise.
64939         * lib/striconveh.h: Likewise.
64940         * lib/striconveha.c: Likewise.
64941         * lib/striconveha.h: Likewise.
64942         * lib/stripslash.c: Likewise.
64943         * lib/strnlen1.c: Likewise.
64944         * lib/strnlen1.h: Likewise.
64945         * lib/strtod.c: Likewise.
64946         * lib/strtoimax.c: Likewise.
64947         * lib/strtok_r.c: Likewise.
64948         * lib/strtol.c: Likewise.
64949         * lib/strtoll.c: Likewise.
64950         * lib/strtoul.c: Likewise.
64951         * lib/strtoull.c: Likewise.
64952         * lib/sysexits.in.h: Likewise.
64953         * lib/tempname.c: Likewise.
64954         * lib/tempname.h: Likewise.
64955         * lib/timespec.h: Likewise.
64956         * lib/tls.c: Likewise.
64957         * lib/tls.h: Likewise.
64958         * lib/tmpdir.c: Likewise.
64959         * lib/tmpdir.h: Likewise.
64960         * lib/tmpfile-safer.c: Likewise.
64961         * lib/tmpfile.c: Likewise.
64962         * lib/trigl.c: Likewise.
64963         * lib/trigl.h: Likewise.
64964         * lib/trim.c: Likewise.
64965         * lib/trim.h: Likewise.
64966         * lib/trunc.c: Likewise.
64967         * lib/truncf.c: Likewise.
64968         * lib/truncl.c: Likewise.
64969         * lib/tsearch.c: Likewise.
64970         * lib/unicodeio.c: Likewise.
64971         * lib/unicodeio.h: Likewise.
64972         * lib/unistd--.h: Likewise.
64973         * lib/unistd-safer.h: Likewise.
64974         * lib/unistdio/ulc-fprintf.c: Likewise.
64975         * lib/unistdio/ulc-vfprintf.c: Likewise.
64976         * lib/unlinkdir.c: Likewise.
64977         * lib/unlinkdir.h: Likewise.
64978         * lib/unlocked-io.h: Likewise.
64979         * lib/unsetenv.c: Likewise.
64980         * lib/userspec.c: Likewise.
64981         * lib/utime.c: Likewise.
64982         * lib/utimecmp.c: Likewise.
64983         * lib/utimecmp.h: Likewise.
64984         * lib/utimens.c: Likewise.
64985         * lib/verify.h: Likewise.
64986         * lib/verror.c: Likewise.
64987         * lib/verror.h: Likewise.
64988         * lib/version-etc-fsf.c: Likewise.
64989         * lib/version-etc.c: Likewise.
64990         * lib/version-etc.h: Likewise.
64991         * lib/vfprintf.c: Likewise.
64992         * lib/vprintf.c: Likewise.
64993         * lib/vsprintf.c: Likewise.
64994         * lib/w32spawn.h: Likewise.
64995         * lib/wait-process.c: Likewise.
64996         * lib/wait-process.h: Likewise.
64997         * lib/wcwidth.c: Likewise.
64998         * lib/write-any-file.c: Likewise.
64999         * lib/xalloc-die.c: Likewise.
65000         * lib/xalloc.h: Likewise.
65001         * lib/xasprintf.c: Likewise.
65002         * lib/xgetcwd.c: Likewise.
65003         * lib/xgetcwd.h: Likewise.
65004         * lib/xgetdomainname.c: Likewise.
65005         * lib/xgetdomainname.h: Likewise.
65006         * lib/xgethostname.c: Likewise.
65007         * lib/xmalloc.c: Likewise.
65008         * lib/xmalloca.c: Likewise.
65009         * lib/xmalloca.h: Likewise.
65010         * lib/xmemcoll.c: Likewise.
65011         * lib/xnanosleep.c: Likewise.
65012         * lib/xreadlink.c: Likewise.
65013         * lib/xreadlink.h: Likewise.
65014         * lib/xsetenv.c: Likewise.
65015         * lib/xsetenv.h: Likewise.
65016         * lib/xstriconv.c: Likewise.
65017         * lib/xstriconv.h: Likewise.
65018         * lib/xstrndup.c: Likewise.
65019         * lib/xstrndup.h: Likewise.
65020         * lib/xstrtod.c: Likewise.
65021         * lib/xstrtod.h: Likewise.
65022         * lib/xstrtol-error.c: Likewise.
65023         * lib/xstrtol.c: Likewise.
65024         * lib/xstrtol.h: Likewise.
65025         * lib/xtime.h: Likewise.
65026         * lib/xvasprintf.c: Likewise.
65027         * lib/xvasprintf.h: Likewise.
65028         * lib/yesno.c: Likewise.
65029         * lib/yesno.h: Likewise.
65030         * posix-modules: Likewise.
65031         * tests/test-alloca-opt.c: Likewise.
65032         * tests/test-arcfour.c: Likewise.
65033         * tests/test-arctwo.c: Likewise.
65034         * tests/test-argmatch.c: Likewise.
65035         * tests/test-argp-2.sh: Likewise.
65036         * tests/test-argp.c: Likewise.
65037         * tests/test-arpa_inet.c: Likewise.
65038         * tests/test-array_list.c: Likewise.
65039         * tests/test-array_oset.c: Likewise.
65040         * tests/test-atexit.c: Likewise.
65041         * tests/test-avltree_list.c: Likewise.
65042         * tests/test-avltree_oset.c: Likewise.
65043         * tests/test-avltreehash_list.c: Likewise.
65044         * tests/test-base64.c: Likewise.
65045         * tests/test-binary-io.c: Likewise.
65046         * tests/test-byteswap.c: Likewise.
65047         * tests/test-c-ctype.c: Likewise.
65048         * tests/test-c-strcasecmp.c: Likewise.
65049         * tests/test-c-strcasestr.c: Likewise.
65050         * tests/test-c-strncasecmp.c: Likewise.
65051         * tests/test-c-strstr.c: Likewise.
65052         * tests/test-canonicalize-lgpl.c: Likewise.
65053         * tests/test-canonicalize.c: Likewise.
65054         * tests/test-carray_list.c: Likewise.
65055         * tests/test-ceilf.c: Likewise.
65056         * tests/test-ceill.c: Likewise.
65057         * tests/test-count-one-bits.c: Likewise.
65058         * tests/test-crc.c: Likewise.
65059         * tests/test-dirname.c: Likewise.
65060         * tests/test-fbufmode.c: Likewise.
65061         * tests/test-fcntl.c: Likewise.
65062         * tests/test-fflush.c: Likewise.
65063         * tests/test-floorf.c: Likewise.
65064         * tests/test-floorl.c: Likewise.
65065         * tests/test-fopen.c: Likewise.
65066         * tests/test-fprintf-posix.c: Likewise.
65067         * tests/test-fprintf-posix.h: Likewise.
65068         * tests/test-fpurge.c: Likewise.
65069         * tests/test-freadable.c: Likewise.
65070         * tests/test-freadahead.c: Likewise.
65071         * tests/test-freading.c: Likewise.
65072         * tests/test-freopen.c: Likewise.
65073         * tests/test-frexp.c: Likewise.
65074         * tests/test-frexpl.c: Likewise.
65075         * tests/test-fseek.c: Likewise.
65076         * tests/test-fseeko.c: Likewise.
65077         * tests/test-fseterr.c: Likewise.
65078         * tests/test-fstrcmp.c: Likewise.
65079         * tests/test-ftell.c: Likewise.
65080         * tests/test-ftello.c: Likewise.
65081         * tests/test-fwritable.c: Likewise.
65082         * tests/test-fwriting.c: Likewise.
65083         * tests/test-getaddrinfo.c: Likewise.
65084         * tests/test-getpass.c: Likewise.
65085         * tests/test-gettimeofday.c: Likewise.
65086         * tests/test-hmac-md5.c: Likewise.
65087         * tests/test-hmac-sha1.c: Likewise.
65088         * tests/test-iconv.c: Likewise.
65089         * tests/test-iconvme.c: Likewise.
65090         * tests/test-inttypes.c: Likewise.
65091         * tests/test-isnan.c: Likewise.
65092         * tests/test-isnanf.c: Likewise.
65093         * tests/test-isnanl-nolibm.c: Likewise.
65094         * tests/test-isnanl.c: Likewise.
65095         * tests/test-isnanl.h: Likewise.
65096         * tests/test-ldexpl.c: Likewise.
65097         * tests/test-linked_list.c: Likewise.
65098         * tests/test-linkedhash_list.c: Likewise.
65099         * tests/test-locale.c: Likewise.
65100         * tests/test-localename.c: Likewise.
65101         * tests/test-lock.c: Likewise.
65102         * tests/test-lseek.c: Likewise.
65103         * tests/test-malloca.c: Likewise.
65104         * tests/test-math.c: Likewise.
65105         * tests/test-mbscasecmp.c: Likewise.
65106         * tests/test-mbscasestr1.c: Likewise.
65107         * tests/test-mbscasestr2.c: Likewise.
65108         * tests/test-mbscasestr3.c: Likewise.
65109         * tests/test-mbscasestr4.c: Likewise.
65110         * tests/test-mbschr.c: Likewise.
65111         * tests/test-mbscspn.c: Likewise.
65112         * tests/test-mbsncasecmp.c: Likewise.
65113         * tests/test-mbspbrk.c: Likewise.
65114         * tests/test-mbspcasecmp.c: Likewise.
65115         * tests/test-mbsrchr.c: Likewise.
65116         * tests/test-mbsspn.c: Likewise.
65117         * tests/test-mbsstr1.c: Likewise.
65118         * tests/test-mbsstr2.c: Likewise.
65119         * tests/test-mbsstr3.c: Likewise.
65120         * tests/test-md5.c: Likewise.
65121         * tests/test-memmem.c: Likewise.
65122         * tests/test-netinet_in.c: Likewise.
65123         * tests/test-open.c: Likewise.
65124         * tests/test-printf-frexp.c: Likewise.
65125         * tests/test-printf-frexpl.c: Likewise.
65126         * tests/test-printf-posix.c: Likewise.
65127         * tests/test-printf-posix.h: Likewise.
65128         * tests/test-rbtree_list.c: Likewise.
65129         * tests/test-rbtree_oset.c: Likewise.
65130         * tests/test-rbtreehash_list.c: Likewise.
65131         * tests/test-read-file.c: Likewise.
65132         * tests/test-rijndael.c: Likewise.
65133         * tests/test-search.c: Likewise.
65134         * tests/test-signbit.c: Likewise.
65135         * tests/test-sleep.c: Likewise.
65136         * tests/test-snprintf-posix.c: Likewise.
65137         * tests/test-snprintf-posix.h: Likewise.
65138         * tests/test-snprintf.c: Likewise.
65139         * tests/test-sprintf-posix.c: Likewise.
65140         * tests/test-sprintf-posix.h: Likewise.
65141         * tests/test-stat-time.c: Likewise.
65142         * tests/test-stdbool.c: Likewise.
65143         * tests/test-stdint.c: Likewise.
65144         * tests/test-stdio.c: Likewise.
65145         * tests/test-stdlib.c: Likewise.
65146         * tests/test-stpncpy.c: Likewise.
65147         * tests/test-strcasestr.c: Likewise.
65148         * tests/test-striconv.c: Likewise.
65149         * tests/test-striconveh.c: Likewise.
65150         * tests/test-striconveha.c: Likewise.
65151         * tests/test-string.c: Likewise.
65152         * tests/test-sys_select.c: Likewise.
65153         * tests/test-sys_socket.c: Likewise.
65154         * tests/test-sys_stat.c: Likewise.
65155         * tests/test-sys_time.c: Likewise.
65156         * tests/test-sysexits.c: Likewise.
65157         * tests/test-time.c: Likewise.
65158         * tests/test-tls.c: Likewise.
65159         * tests/test-trunc.c: Likewise.
65160         * tests/test-truncf.c: Likewise.
65161         * tests/test-truncl.c: Likewise.
65162         * tests/test-unistd.c: Likewise.
65163         * tests/test-vasnprintf-posix.c: Likewise.
65164         * tests/test-vasnprintf-posix2.c: Likewise.
65165         * tests/test-vasnprintf.c: Likewise.
65166         * tests/test-vasprintf-posix.c: Likewise.
65167         * tests/test-vasprintf.c: Likewise.
65168         * tests/test-verify.c: Likewise.
65169         * tests/test-vfprintf-posix.c: Likewise.
65170         * tests/test-vprintf-posix.c: Likewise.
65171         * tests/test-vsnprintf-posix.c: Likewise.
65172         * tests/test-vsnprintf.c: Likewise.
65173         * tests/test-vsprintf-posix.c: Likewise.
65174         * tests/test-wchar.c: Likewise.
65175         * tests/test-wctype.c: Likewise.
65176         * tests/test-wcwidth.c: Likewise.
65177         * tests/test-xstrtol.c: Likewise.
65178         * tests/test-xvasprintf.c: Likewise.
65179         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65180         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65181         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65182         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65183         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65184         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65185         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65186         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65187         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65188         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65189         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65190         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65191         * tests/uniname/test-uninames.c: Likewise.
65192         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65193         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65194         * tests/unistdio/test-u16-printf1.h: Likewise.
65195         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65196         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65197         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65198         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65199         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65200         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65201         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65202         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65203         * tests/unistdio/test-u32-printf1.h: Likewise.
65204         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65205         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65206         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65207         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65208         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65209         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65210         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65211         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65212         * tests/unistdio/test-u8-printf1.h: Likewise.
65213         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65214         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65215         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65216         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65217         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65218         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65219         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65220         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65221         * tests/unistdio/test-ulc-printf1.h: Likewise.
65222         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65223         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65224         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65225         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65226         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65227         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65228         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65229         * tests/uniwidth/test-u16-width.c: Likewise.
65230         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65231         * tests/uniwidth/test-u32-width.c: Likewise.
65232         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65233         * tests/uniwidth/test-u8-width.c: Likewise.
65234         * tests/uniwidth/test-uc_width.c: Likewise.
65235         * config/srclist-update: Likewise.
65236         (fixlicense): Update to GPLv3+.
65237
65238         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65239         * tests/test-tsearch.c: Change copyright notice.
65240
65241         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65242         * lib/c-strcaseeq.h: Change copyright notice.
65243         * lib/streq.h: Likewise.
65244         * lib/uniconv.h: Likewise.
65245         * lib/uniconv/u-conv-from-enc.h: Likewise.
65246         * lib/uniconv/u-conv-to-enc.h: Likewise.
65247         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65248         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65249         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65250         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65251         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65252         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65253         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65254         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65255         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65256         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65257         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65258         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65259         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65260         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65261         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65262         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65263         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65264         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65265         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65266         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65267         * lib/uniname.h: Likewise.
65268         * lib/uniname/uniname.c: Likewise.
65269         * lib/unistdio.h: Likewise.
65270         * lib/unistdio/u-asnprintf.h: Likewise.
65271         * lib/unistdio/u-asprintf.h: Likewise.
65272         * lib/unistdio/u-printf-args.c: Likewise.
65273         * lib/unistdio/u-printf-args.h: Likewise.
65274         * lib/unistdio/u-printf-parse.h: Likewise.
65275         * lib/unistdio/u-snprintf.h: Likewise.
65276         * lib/unistdio/u-sprintf.h: Likewise.
65277         * lib/unistdio/u-vasprintf.h: Likewise.
65278         * lib/unistdio/u-vsnprintf.h: Likewise.
65279         * lib/unistdio/u-vsprintf.h: Likewise.
65280         * lib/unistdio/u16-asnprintf.c: Likewise.
65281         * lib/unistdio/u16-asprintf.c: Likewise.
65282         * lib/unistdio/u16-printf-parse.c: Likewise.
65283         * lib/unistdio/u16-snprintf.c: Likewise.
65284         * lib/unistdio/u16-sprintf.c: Likewise.
65285         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65286         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65287         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65288         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65289         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65290         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65291         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65292         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65293         * lib/unistdio/u16-vasnprintf.c: Likewise.
65294         * lib/unistdio/u16-vasprintf.c: Likewise.
65295         * lib/unistdio/u16-vsnprintf.c: Likewise.
65296         * lib/unistdio/u16-vsprintf.c: Likewise.
65297         * lib/unistdio/u32-asnprintf.c: Likewise.
65298         * lib/unistdio/u32-asprintf.c: Likewise.
65299         * lib/unistdio/u32-printf-parse.c: Likewise.
65300         * lib/unistdio/u32-snprintf.c: Likewise.
65301         * lib/unistdio/u32-sprintf.c: Likewise.
65302         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65303         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65304         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65305         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65306         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65307         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65308         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65309         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65310         * lib/unistdio/u32-vasnprintf.c: Likewise.
65311         * lib/unistdio/u32-vasprintf.c: Likewise.
65312         * lib/unistdio/u32-vsnprintf.c: Likewise.
65313         * lib/unistdio/u32-vsprintf.c: Likewise.
65314         * lib/unistdio/u8-asnprintf.c: Likewise.
65315         * lib/unistdio/u8-asprintf.c: Likewise.
65316         * lib/unistdio/u8-printf-parse.c: Likewise.
65317         * lib/unistdio/u8-snprintf.c: Likewise.
65318         * lib/unistdio/u8-sprintf.c: Likewise.
65319         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65320         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65321         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65322         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65323         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65324         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65325         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65326         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65327         * lib/unistdio/u8-vasnprintf.c: Likewise.
65328         * lib/unistdio/u8-vasprintf.c: Likewise.
65329         * lib/unistdio/u8-vsnprintf.c: Likewise.
65330         * lib/unistdio/u8-vsprintf.c: Likewise.
65331         * lib/unistdio/ulc-asnprintf.c: Likewise.
65332         * lib/unistdio/ulc-asprintf.c: Likewise.
65333         * lib/unistdio/ulc-printf-parse.c: Likewise.
65334         * lib/unistdio/ulc-snprintf.c: Likewise.
65335         * lib/unistdio/ulc-sprintf.c: Likewise.
65336         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65337         * lib/unistdio/ulc-vasprintf.c: Likewise.
65338         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65339         * lib/unistdio/ulc-vsprintf.c: Likewise.
65340         * lib/unistr.h: Likewise.
65341         * lib/unistr/u-cpy-alloc.h: Likewise.
65342         * lib/unistr/u-cpy.h: Likewise.
65343         * lib/unistr/u-endswith.h: Likewise.
65344         * lib/unistr/u-move.h: Likewise.
65345         * lib/unistr/u-set.h: Likewise.
65346         * lib/unistr/u-startswith.h: Likewise.
65347         * lib/unistr/u-stpcpy.h: Likewise.
65348         * lib/unistr/u-stpncpy.h: Likewise.
65349         * lib/unistr/u-strcat.h: Likewise.
65350         * lib/unistr/u-strcpy.h: Likewise.
65351         * lib/unistr/u-strcspn.h: Likewise.
65352         * lib/unistr/u-strdup.h: Likewise.
65353         * lib/unistr/u-strlen.h: Likewise.
65354         * lib/unistr/u-strncat.h: Likewise.
65355         * lib/unistr/u-strncpy.h: Likewise.
65356         * lib/unistr/u-strnlen.h: Likewise.
65357         * lib/unistr/u-strpbrk.h: Likewise.
65358         * lib/unistr/u-strspn.h: Likewise.
65359         * lib/unistr/u-strstr.h: Likewise.
65360         * lib/unistr/u-strtok.h: Likewise.
65361         * lib/unistr/u16-check.c: Likewise.
65362         * lib/unistr/u16-chr.c: Likewise.
65363         * lib/unistr/u16-cmp.c: Likewise.
65364         * lib/unistr/u16-cpy-alloc.c: Likewise.
65365         * lib/unistr/u16-cpy.c: Likewise.
65366         * lib/unistr/u16-endswith.c: Likewise.
65367         * lib/unistr/u16-mblen.c: Likewise.
65368         * lib/unistr/u16-mbsnlen.c: Likewise.
65369         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65370         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65371         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65372         * lib/unistr/u16-mbtouc.c: Likewise.
65373         * lib/unistr/u16-mbtoucr.c: Likewise.
65374         * lib/unistr/u16-move.c: Likewise.
65375         * lib/unistr/u16-next.c: Likewise.
65376         * lib/unistr/u16-prev.c: Likewise.
65377         * lib/unistr/u16-set.c: Likewise.
65378         * lib/unistr/u16-startswith.c: Likewise.
65379         * lib/unistr/u16-stpcpy.c: Likewise.
65380         * lib/unistr/u16-stpncpy.c: Likewise.
65381         * lib/unistr/u16-strcat.c: Likewise.
65382         * lib/unistr/u16-strchr.c: Likewise.
65383         * lib/unistr/u16-strcmp.c: Likewise.
65384         * lib/unistr/u16-strcpy.c: Likewise.
65385         * lib/unistr/u16-strcspn.c: Likewise.
65386         * lib/unistr/u16-strdup.c: Likewise.
65387         * lib/unistr/u16-strlen.c: Likewise.
65388         * lib/unistr/u16-strmblen.c: Likewise.
65389         * lib/unistr/u16-strmbtouc.c: Likewise.
65390         * lib/unistr/u16-strncat.c: Likewise.
65391         * lib/unistr/u16-strncmp.c: Likewise.
65392         * lib/unistr/u16-strncpy.c: Likewise.
65393         * lib/unistr/u16-strnlen.c: Likewise.
65394         * lib/unistr/u16-strpbrk.c: Likewise.
65395         * lib/unistr/u16-strrchr.c: Likewise.
65396         * lib/unistr/u16-strspn.c: Likewise.
65397         * lib/unistr/u16-strstr.c: Likewise.
65398         * lib/unistr/u16-strtok.c: Likewise.
65399         * lib/unistr/u16-to-u32.c: Likewise.
65400         * lib/unistr/u16-to-u8.c: Likewise.
65401         * lib/unistr/u16-uctomb-aux.c: Likewise.
65402         * lib/unistr/u16-uctomb.c: Likewise.
65403         * lib/unistr/u32-check.c: Likewise.
65404         * lib/unistr/u32-chr.c: Likewise.
65405         * lib/unistr/u32-cmp.c: Likewise.
65406         * lib/unistr/u32-cpy-alloc.c: Likewise.
65407         * lib/unistr/u32-cpy.c: Likewise.
65408         * lib/unistr/u32-endswith.c: Likewise.
65409         * lib/unistr/u32-mblen.c: Likewise.
65410         * lib/unistr/u32-mbsnlen.c: Likewise.
65411         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65412         * lib/unistr/u32-mbtouc.c: Likewise.
65413         * lib/unistr/u32-mbtoucr.c: Likewise.
65414         * lib/unistr/u32-move.c: Likewise.
65415         * lib/unistr/u32-next.c: Likewise.
65416         * lib/unistr/u32-prev.c: Likewise.
65417         * lib/unistr/u32-set.c: Likewise.
65418         * lib/unistr/u32-startswith.c: Likewise.
65419         * lib/unistr/u32-stpcpy.c: Likewise.
65420         * lib/unistr/u32-stpncpy.c: Likewise.
65421         * lib/unistr/u32-strcat.c: Likewise.
65422         * lib/unistr/u32-strchr.c: Likewise.
65423         * lib/unistr/u32-strcmp.c: Likewise.
65424         * lib/unistr/u32-strcpy.c: Likewise.
65425         * lib/unistr/u32-strcspn.c: Likewise.
65426         * lib/unistr/u32-strdup.c: Likewise.
65427         * lib/unistr/u32-strlen.c: Likewise.
65428         * lib/unistr/u32-strmblen.c: Likewise.
65429         * lib/unistr/u32-strmbtouc.c: Likewise.
65430         * lib/unistr/u32-strncat.c: Likewise.
65431         * lib/unistr/u32-strncmp.c: Likewise.
65432         * lib/unistr/u32-strncpy.c: Likewise.
65433         * lib/unistr/u32-strnlen.c: Likewise.
65434         * lib/unistr/u32-strpbrk.c: Likewise.
65435         * lib/unistr/u32-strrchr.c: Likewise.
65436         * lib/unistr/u32-strspn.c: Likewise.
65437         * lib/unistr/u32-strstr.c: Likewise.
65438         * lib/unistr/u32-strtok.c: Likewise.
65439         * lib/unistr/u32-to-u16.c: Likewise.
65440         * lib/unistr/u32-to-u8.c: Likewise.
65441         * lib/unistr/u32-uctomb.c: Likewise.
65442         * lib/unistr/u8-check.c: Likewise.
65443         * lib/unistr/u8-chr.c: Likewise.
65444         * lib/unistr/u8-cmp.c: Likewise.
65445         * lib/unistr/u8-cpy-alloc.c: Likewise.
65446         * lib/unistr/u8-cpy.c: Likewise.
65447         * lib/unistr/u8-endswith.c: Likewise.
65448         * lib/unistr/u8-mblen.c: Likewise.
65449         * lib/unistr/u8-mbsnlen.c: Likewise.
65450         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65451         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65452         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65453         * lib/unistr/u8-mbtouc.c: Likewise.
65454         * lib/unistr/u8-mbtoucr.c: Likewise.
65455         * lib/unistr/u8-move.c: Likewise.
65456         * lib/unistr/u8-next.c: Likewise.
65457         * lib/unistr/u8-prev.c: Likewise.
65458         * lib/unistr/u8-set.c: Likewise.
65459         * lib/unistr/u8-startswith.c: Likewise.
65460         * lib/unistr/u8-stpcpy.c: Likewise.
65461         * lib/unistr/u8-stpncpy.c: Likewise.
65462         * lib/unistr/u8-strcat.c: Likewise.
65463         * lib/unistr/u8-strchr.c: Likewise.
65464         * lib/unistr/u8-strcmp.c: Likewise.
65465         * lib/unistr/u8-strcpy.c: Likewise.
65466         * lib/unistr/u8-strcspn.c: Likewise.
65467         * lib/unistr/u8-strdup.c: Likewise.
65468         * lib/unistr/u8-strlen.c: Likewise.
65469         * lib/unistr/u8-strmblen.c: Likewise.
65470         * lib/unistr/u8-strmbtouc.c: Likewise.
65471         * lib/unistr/u8-strncat.c: Likewise.
65472         * lib/unistr/u8-strncmp.c: Likewise.
65473         * lib/unistr/u8-strncpy.c: Likewise.
65474         * lib/unistr/u8-strnlen.c: Likewise.
65475         * lib/unistr/u8-strpbrk.c: Likewise.
65476         * lib/unistr/u8-strrchr.c: Likewise.
65477         * lib/unistr/u8-strspn.c: Likewise.
65478         * lib/unistr/u8-strstr.c: Likewise.
65479         * lib/unistr/u8-strtok.c: Likewise.
65480         * lib/unistr/u8-to-u16.c: Likewise.
65481         * lib/unistr/u8-to-u32.c: Likewise.
65482         * lib/unistr/u8-uctomb-aux.c: Likewise.
65483         * lib/unistr/u8-uctomb.c: Likewise.
65484         * lib/unitypes.h: Likewise.
65485         * lib/uniwidth.h: Likewise.
65486         * lib/uniwidth/cjk.h: Likewise.
65487         * lib/uniwidth/u16-strwidth.c: Likewise.
65488         * lib/uniwidth/u16-width.c: Likewise.
65489         * lib/uniwidth/u32-strwidth.c: Likewise.
65490         * lib/uniwidth/u32-width.c: Likewise.
65491         * lib/uniwidth/u8-strwidth.c: Likewise.
65492         * lib/uniwidth/u8-width.c: Likewise.
65493         * lib/uniwidth/width.c: Likewise.
65494
65495 2007-10-07  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65498         The file is still under LGPL (see modules/inttypes).
65499
65500 2007-10-06  Bruno Haible  <bruno@clisp.org>
65501
65502         * modules/trunc (Dependencies): Add 'extensions'.
65503         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65504         Reported by Ben Pfaff <blp@gnu.org>.
65505
65506 2007-10-06  Bruno Haible  <bruno@clisp.org>
65507
65508         * modules/freopen-tests: New file.
65509         * tests/test-freopen.c: New file.
65510
65511         * modules/fopen-tests: New file.
65512         * tests/test-fopen.c: New file.
65513
65514         * modules/fopen: New file.
65515         * lib/fopen.c: New file.
65516         * m4/fopen.m4: New file.
65517         * modules/freopen: New file.
65518         * lib/freopen.c: New file.
65519         * m4/freopen.m4: New file.
65520         * lib/stdio.in.h (fopen, freopen): New declarations.
65521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65522         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65523         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65524         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65525         * doc/functions/fopen.texi: Mention the 'fopen' module.
65526         * doc/functions/freopen.texi: Mention the 'freopen' module.
65527
65528 2007-10-06  Bruno Haible  <bruno@clisp.org>
65529
65530         * modules/open-tests: New file.
65531         * tests/test-open.c: New file.
65532
65533         * modules/open: New file.
65534         * lib/open.c: New file.
65535         * m4/open.m4: New file.
65536         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65537         lib/open.c does.
65538         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65539         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65540         macros.
65541         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65542         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65543         REPLACE_OPEN.
65544         * doc/functions/open.texi: Mention the 'open' module.
65545
65546 2007-10-04  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/ceill-tests: New file.
65549         * tests/test-ceill.c: New file.
65550
65551         * modules/ceill: New file.
65552         * lib/ceill.c: Replace entire file.
65553         * m4/ceill.m4: New file.
65554         * lib/math.in.h (ceill): Replace declaration.
65555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65556         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65557         * doc/functions/ceill.texi: Mention the 'ceill' module.
65558         * modules/mathl (Files): Remove lib/ceill.c.
65559         (Depends-on): Add ceill.
65560
65561 2007-10-04  Bruno Haible  <bruno@clisp.org>
65562
65563         * modules/ceilf-tests: New file.
65564         * tests/test-ceilf.c: New file.
65565
65566         * modules/ceilf: New file.
65567         * lib/ceil.c: New file.
65568         * lib/ceilf.c: New file.
65569         * m4/ceilf.m4: New file.
65570         * lib/math.in.h (ceilf): New declaration.
65571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65572         HAVE_DECL_CEILF.
65573         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65574         HAVE_DECL_CEILF.
65575         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65576
65577 2007-10-04  Bruno Haible  <bruno@clisp.org>
65578
65579         * modules/floorl-tests: New file.
65580         * tests/test-floorl.c: New file.
65581
65582         * modules/floorl: New file.
65583         * lib/floorl.c: Replace entire file.
65584         * m4/floorl.m4: New file.
65585         * lib/math.in.h (floorl): Replace declaration.
65586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65587         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65588         * doc/functions/floorl.texi: Mention the 'floorl' module.
65589         * modules/mathl (Files): Remove lib/floorl.c.
65590         (Depends-on): Add floorl.
65591
65592 2007-10-04  Bruno Haible  <bruno@clisp.org>
65593
65594         * modules/floorf-tests: New file.
65595         * tests/test-floorf.c: New file.
65596
65597         * modules/floorf: New file.
65598         * lib/floor.c: New file.
65599         * lib/floorf.c: New file.
65600         * m4/floorf.m4: New file.
65601         * lib/math.in.h (floorf): New declaration.
65602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65603         HAVE_DECL_FLOORF.
65604         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65605         HAVE_DECL_FLOORF.
65606         * doc/functions/floorf.texi: Mention the 'floorf' module.
65607
65608 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65609             Bruno Haible  <bruno@clisp.org>
65610
65611         Advertise for the Git server instead of the CVS server.
65612         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65613         repository instead of the CVS one.
65614         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65615         about all VCS systems generically.
65616         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65617
65618 2007-10-04  Bruno Haible  <bruno@clisp.org>
65619
65620         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65621         means.
65622         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65623
65624 2007-10-04  Bruno Haible  <bruno@clisp.org>
65625
65626         * modules/truncl-tests: New file.
65627         * tests/test-truncl.c: New file.
65628
65629         * modules/truncl: New file.
65630         * lib/truncl.c: New file.
65631         * m4/truncl.m4: New file.
65632         * lib/math.in.h (truncl): New declaration.
65633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65634         HAVE_DECL_TRUNCL.
65635         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65636         HAVE_DECL_TRUNCL.
65637         * doc/functions/truncl.texi: Mention the 'truncl' module.
65638
65639 2007-10-04  Bruno Haible  <bruno@clisp.org>
65640
65641         * modules/truncf-tests: New file.
65642         * tests/test-truncf.c: New file.
65643
65644         * modules/truncf: New file.
65645         * lib/trunc.c: Make paramerizable through USE_* macros.
65646         * lib/truncf.c: New file.
65647         * m4/truncf.m4: New file.
65648         * lib/math.in.h (truncf): New declaration.
65649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65650         HAVE_DECL_TRUNCF.
65651         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65652         HAVE_DECL_TRUNCF.
65653         * doc/functions/truncf.texi: Mention the 'truncf' module.
65654
65655 2007-10-03  Bruno Haible  <bruno@clisp.org>
65656
65657         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65658         augmentation also for tests modules.
65659         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65660         * modules/atexit-tests (Makefile.am): Likewise.
65661         * modules/binary-io-tests (Makefile.am): Likewise.
65662         * modules/c-strcase-tests (Makefile.am): Likewise.
65663         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65664         * modules/canonicalize-tests (Makefile.am): Likewise.
65665         * modules/closein-tests (Makefile.am): Likewise.
65666         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65667         * modules/freadahead-tests (Makefile.am): Likewise.
65668         * modules/fseek-tests (Makefile.am): Likewise.
65669         * modules/fseeko-tests (Makefile.am): Likewise.
65670         * modules/ftell-tests (Makefile.am): Likewise.
65671         * modules/ftello-tests (Makefile.am): Likewise.
65672         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65673         * modules/isnanl-tests (Makefile.am): Likewise.
65674         * modules/lseek-tests (Makefile.am): Likewise.
65675         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65676         * modules/mbscasestr-tests (Makefile.am): Likewise.
65677         * modules/mbschr-tests (Makefile.am): Likewise.
65678         * modules/mbscspn-tests (Makefile.am): Likewise.
65679         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65680         * modules/mbspbrk-tests (Makefile.am): Likewise.
65681         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65682         * modules/mbsrchr-tests (Makefile.am): Likewise.
65683         * modules/mbsspn-tests (Makefile.am): Likewise.
65684         * modules/mbsstr-tests (Makefile.am): Likewise.
65685         * modules/printf-posix-tests (Makefile.am): Likewise.
65686         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65687         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65688         * modules/tsearch-tests (Makefile.am): Likewise.
65689         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65690         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65691         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65692         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65693         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65694         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65695         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65696         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65697         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65698         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65699         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65700         * modules/xstrtol-tests (Makefile.am): Likewise.
65701         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65702         * modules/yesno-tests (Makefile.am): Likewise.
65703
65704 2007-10-03  Bruno Haible  <bruno@clisp.org>
65705
65706         * modules/trunc-tests: New file.
65707         * tests/test-trunc.c: New file.
65708
65709         * modules/trunc: New file.
65710         * lib/trunc.c: New file.
65711         * m4/trunc.m4: New file.
65712         * lib/math.in.h (trunc): New declaration.
65713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65714         HAVE_DECL_TRUNC.
65715         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65716         HAVE_DECL_TRUNC.
65717         * doc/functions/trunc.texi: Mention the 'trunc' module.
65718
65719 2007-10-03  Bruno Haible  <bruno@clisp.org>
65720
65721         * tests/test-fpending.c: New file, mostly copied
65722         from coreutils/lib/t-fpending.c.
65723         * modules/fpending-tests: New file.
65724
65725 2007-10-03  Bruno Haible  <bruno@clisp.org>
65726
65727         Port the stdio extensions to QNX (untested).
65728         * lib/fseterr.c (fseterr): Add support for QNX.
65729         * lib/fbufmode.c (fbufmode): Likewise.
65730         * lib/freadable.c (freadable): Likewise.
65731         * lib/fwritable.c (fwritable): Likewise.
65732         * lib/freading.c (freading): Likewise.
65733         * lib/fwriting.c (fwriting): Likewise.
65734         * lib/freadahead.c (freadahed): Likewise.
65735         * lib/fpurge.c (fpurge): Likewise.
65736         * lib/fseeko.c (rpl_fseeko): Likewise.
65737
65738 2007-10-03  Bruno Haible  <bruno@clisp.org>
65739             Jim Meyering  <jim@meyering.net>
65740             Eric Blake  <ebb9@byu.net>
65741
65742         * doc/relocatable.texi: Use @command instead of @program.
65743
65744 2007-10-02  Jim Meyering  <jim@meyering.net>
65745
65746         Perform one more "_.h" -> ".in.h" substitution.
65747         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65748         instead of unistd_.h here, too.
65749
65750 2007-10-01  Bruno Haible  <bruno@clisp.org>
65751
65752         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65753         Needed for the alloca-opt module.
65754
65755 2007-09-30  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65758         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65759         alloca_.h.
65760         * lib/argz.in.h: Renamed from lib/argz_.h.
65761         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65762         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65763         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65764         byteswap_.h.
65765         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65766         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65767         dirent_.h.
65768         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65769         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65770         fcntl_.h.
65771         * lib/float.in.h: Renamed from lib/float_.h.
65772         * modules/float (Files, Makefile.am): Use float.in.h instead of
65773         float_.h.
65774         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65775         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65776         fnmatch_.h.
65777         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65778         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65779         getopt_.h.
65780         * lib/glob.in.h: Renamed from lib/glob_.h.
65781         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65782         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65783         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65784         iconv_.h.
65785         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65786         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65787         inttypes_.h.
65788         * lib/locale.in.h: Renamed from lib/locale_.h.
65789         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65790         locale_.h.
65791         * lib/math.in.h: Renamed from lib/math_.h.
65792         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65793         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65794         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65795         of netinet_in_.h. Add dependency.
65796         * lib/poll.in.h: Renamed from lib/poll_.h.
65797         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65798         * lib/search.in.h: Renamed from lib/search_.h.
65799         * modules/search (Files, Makefile.am): Use search.in.h instead of
65800         search_.h.
65801         * lib/signal.in.h: Renamed from lib/signal_.h.
65802         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65803         _signal.h.
65804         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65805         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65806         stdbool_.h.
65807         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65808         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65809         stdint_.h.
65810         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65811         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65812         stdio_.h.
65813         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65814         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65815         stdlib_.h.
65816         * lib/string.in.h: Renamed from lib/string_.h.
65817         * modules/string (Files, Makefile.am): Use string.in.h instead of
65818         string_.h.
65819         * doc/gnulib-tool.texi (Initial import): Update.
65820         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65821         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65822         of sys_select_.h. Add dependency.
65823         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65824         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65825         of sys_socket_.h.
65826         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65827         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65828         sys_stat_.h.
65829         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65830         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65831         sys_time_.h.
65832         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65833         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65834         sysexits_.h.
65835         * lib/time.in.h: Renamed from lib/time_.h.
65836         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65837         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65838         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65839         unistd_.h.
65840         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65841         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65842         wchar_.h.
65843         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65844         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65845         wctype_.h.
65846         * build-aux/bootstrap (slurp): Update.
65847         * lib/.cppi-disable: Update.
65848
65849 2007-09-30  Bruno Haible  <bruno@clisp.org>
65850
65851         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65852         Needed on BeOS.
65853
65854 2007-09-30  Bruno Haible  <bruno@clisp.org>
65855
65856         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65857
65858 2007-09-29  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65861
65862 2007-09-29  Bruno Haible  <bruno@clisp.org>
65863
65864         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65865         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65866         * build-aux/install-reloc: Compile also areadlink.c.
65867         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65868
65869 2007-09-29  Bruno Haible  <bruno@clisp.org>
65870
65871         * gnulib-tool (func_emit_initmacro_done): Indentation.
65872
65873 2007-09-29  Bruno Haible  <bruno@clisp.org>
65874
65875         * README: Add CVS checkout update instructions.
65876         Info from Bob Proulx <bob@proulx.com>.
65877
65878 2007-09-28  Eric Blake  <ebb9@byu.net>
65879
65880         Provide move-if-change.
65881         * build-aux/move-if-change: New file, based on best practice
65882         rather than any canonical upstream location.
65883
65884 2007-09-28  Jim Meyering  <jim@meyering.net>
65885
65886         Fix canonicalize loop-detection corner case.
65887         Do not attempt to stat the symlink values stored via seen_triple.
65888         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65889         on linux-2.6.18, (but not 2.6.22).
65890         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65891         triple_compare.  The former compares dev,ino,filename, while the latter
65892         would actually stat dirname(filename) when dev and ino were equal.
65893         * lib/hash-triple.c: Install <string.h>.
65894         (STREQ): Define.
65895         (triple_compare_ino_str): New function.
65896         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65897
65898 2007-09-28  Eric Blake  <ebb9@byu.net>
65899
65900         Enforce that AC_REPLACE_FUNCS files exist.
65901         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65902         override check for typos.
65903
65904         Fix test-closein on Solaris 10.
65905         * tests/test-closein.c (main): Don't assume stdin can be inherited
65906         closed on all systems.
65907         * tests/test-closein.sh: Likewise.
65908         Reported by Piotr Tarnowski.
65909
65910 2007-09-28  Jim Meyering  <jim@meyering.net>
65911
65912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65913
65914 2007-09-27  Jim Meyering  <jim@meyering.net>
65915
65916         canonicalize: Avoid a false-positive cycle failure.
65917         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65918         Sort.  Remove cycle-check.
65919         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65920         not cycle-check.h.
65921         (seen_triple): New function.
65922         (canonicalize_filename_mode): Use it instead of cycle-check.
65923         * tests/test-canonicalize.c: Add a test for this bug.
65924         * tests/test-canonicalize.sh: Set up and run the test.
65925
65926         New module, file-set, from coreutils.
65927         * modules/file-set: Define it.
65928         * lib/file-set.c, lib/file-set.h: Implement.
65929
65930         New module, hash-triple, from coreutils.
65931         * modules/hash-triple: Define it.
65932         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65933
65934 2007-09-25  Eric Blake  <ebb9@byu.net>
65935
65936         Fix strerror on Interix.
65937         * lib/string_.h (strerror): Declare replacement.
65938         * doc/functions/strerror.texi (strerror): Document the Interix
65939         shortcoming.
65940         * modules/string (Makefile.am): Support new hooks.
65941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65942         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65943         gl_FUNC_STRERROR_SEPARATE.
65944         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65945         * lib/strerror.c (rpl_strerror): Provide replacement.
65946         * modules/strerror (Depends-on): Add string.
65947         (configure.ac): Detect use of module.
65948         * tests/test-strerror.c: New file.
65949         * modules/strerror-tests: New test module.
65950         * modules/argp (Depends-on): Add strerror.
65951         * modules/error (Depends-on): Likewise.
65952         Reported by Martin Koeppe.
65953
65954 2007-09-24  Bruno Haible  <bruno@clisp.org>
65955
65956         * README: Update git instructions.
65957
65958 2007-09-24  Eric Blake  <ebb9@byu.net>
65959
65960         Revert fpending breakage from 2007-09-08.
65961         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65962         __fpending.c.
65963
65964 2007-09-24  Jim Meyering  <jim@meyering.net>
65965
65966         filenamecat.c: Add a test.
65967         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65968         showing how the function works when DIR is the empty string.
65969
65970 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65971
65972         * tests/test-canonicalize.sh: Turn on executable bit.
65973
65974 2007-09-19  Eric Blake  <ebb9@byu.net>
65975
65976         * README: Update CVS instructions.
65977
65978 2007-09-18  Bruno Haible  <bruno@clisp.org>
65979
65980         * modules/areadlink: New file.
65981         * lib/areadlink.h (areadlink): New declaration.
65982         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65983
65984 2007-09-17  Jim Meyering  <jim@meyering.net>
65985
65986         * lib/savewd.c (ESTALE) [!defined]: Define.
65987         Reported to be required on Interix by Martin Koeppe.
65988
65989 2007-09-17  Bruno Haible  <bruno@clisp.org>
65990
65991         * gnulib-tool (func_version): Use $version.
65992
65993 2007-09-16  Bruno Haible  <bruno@clisp.org>
65994
65995         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65996         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65997         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65998         Reported by Greg Schafer <gschafer@zip.com.au>.
65999
66000 2007-09-15  Bruno Haible  <bruno@clisp.org>
66001
66002         * gnulib-tool (sed): Try a little harder to make bash understand the
66003         alias.
66004         Reported by Bruce Korb <bruce.korb@gmail.com>.
66005
66006 2007-09-13  Eric Blake  <ebb9@byu.net>
66007
66008         * ChangeLog: Remove conflict markers.
66009
66010 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66011
66012         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66013         Reported by Bruno Haible <bruno@clisp.org>.
66014
66015 2007-09-12  Bruno Haible  <bruno@clisp.org>
66016
66017         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66018         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66019         is not defined.
66020
66021 2007-09-12  Eric Blake  <ebb9@byu.net>
66022
66023         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66024         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66025         Autoconf definition.
66026         * modules/euidaccess (Depends-on): Add extensions, for
66027         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66028         * modules/fnmatch (Depends-on): Likewise.
66029         * modules/getaddrinfo (Depends-on): Likewise.
66030         * modules/getdelim (Depends-on): Likewise.
66031         * modules/getline (Depends-on): Likewise.
66032         * modules/getsubopt (Depends-on): Likewise.
66033         * modules/gettext (Depends-on): Likewise.
66034         * modules/group-member (Depends-on): Likewise.
66035         * modules/mbchar (Depends-on): Likewise.
66036         * modules/memmem (Depends-on): Likewise.
66037         * modules/mempcpy (Depends-on): Likewise.
66038         * modules/memrchr (Depends-on): Likewise.
66039         * modules/pagealign_alloc (Depends-on): Likewise.
66040         * modules/readutmp (Depends-on): Likewise.
66041         * modules/stpcpy (Depends-on): Likewise.
66042         * modules/stpncpy (Depends-on): Likewise.
66043         * modules/strchrnul (Depends-on): Likewise.
66044         * modules/strndup (Depends-on): Likewise.
66045         * modules/strsep (Depends-on): Likewise.
66046         * modules/strverscmp (Depends-on): Likewise.
66047         * modules/vasprintf (Depends-on): Likewise.
66048         * modules/wcwidth (Depends-on): Likewise.
66049         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66050         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66051         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66052         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66053         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66054         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66055         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66056         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66057         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66058         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66060         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66062         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66063         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66064         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66065         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66068         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66070         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66071         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66072         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66073         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66075         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66076         so that lock.m4 can be used in gettext without extensions module.
66077
66078 2007-09-11  Bruno Haible  <bruno@clisp.org>
66079
66080         * m4/isc-posix.m4: Remove file.
66081         Suggested by Eric Blake.
66082
66083 2007-09-11  Eric Blake  <ebb9@byu.net>
66084
66085         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66086
66087 2007-09-10  Bruno Haible  <bruno@clisp.org>
66088
66089         * posix-modules: Fix typo in error message.
66090         Reported by Matt <mkraai@beckman.com>.
66091
66092 2007-09-09  Bruno Haible  <bruno@clisp.org>
66093
66094         * doc/functions/getdelim.texi: Update list of platforms lacking the
66095         function.
66096         * doc/functions/getline.texi: Likewise.
66097
66098 2007-09-09  Jim Meyering  <jim@meyering.net>
66099
66100         * lib/hash.c (hash_initialize): Detect calloc failure.
66101         Reported by Bruno Haible.
66102
66103 2007-09-09  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66106         malloc or realloc fails.
66107
66108 2007-09-09  Bruno Haible  <bruno@clisp.org>
66109
66110         * modules/getcwd (Depends-on): Add malloc-posix.
66111         * modules/glob (Depends-on): Likewise.
66112         * modules/putenv (Depends-on): Likewise.
66113         * modules/strdup (Depends-on): Likewise.
66114         * modules/getdelim (Depends-on): Add realloc-posix.
66115         * modules/read-file (Depends-on): Likewise.
66116
66117 2007-09-09  Bruno Haible  <bruno@clisp.org>
66118
66119         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66120         (gl_FUNC_MALLOC_POSIX): Require it.
66121         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66122         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66123         * modules/realloc (Files): Add m4/malloc.m4.
66124         * modules/calloc (Files): Likewise.
66125
66126 2007-09-09  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/malloc-posix: New file.
66129         * modules/malloc (Depends-on): Add malloc-posix.
66130         * lib/malloc.c: Include errno.h.
66131         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66132         and a POSIX-compatible malloc into a single function. Set ENOMEM
66133         when returning NULL.
66134         * m4/malloc.m4: New file.
66135         * doc/functions/malloc.texi: Mention the malloc-posix module.
66136         * lib/stdlib_.h (malloc): New declaration.
66137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66138         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66139         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66140         and HAVE_MALLOC_POSIX.
66141
66142 2007-09-09  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/realloc-posix: New file.
66145         * modules/realloc (Depends-on): Add realloc-posix.
66146         * lib/realloc.c: Include errno.h.
66147         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66148         and a POSIX-compatible realloc into a single function. Set ENOMEM
66149         when returning NULL.
66150         * m4/realloc.m4: New file.
66151         * doc/functions/realloc.texi: Mention the realloc-posix module.
66152         * lib/stdlib_.h (realloc): New declaration.
66153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66154         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66155         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66156         and HAVE_REALLOC_POSIX.
66157
66158 2007-09-09  Bruno Haible  <bruno@clisp.org>
66159
66160         * modules/calloc-posix: New file.
66161         * modules/calloc (Depends-on): Add calloc-posix.
66162         * lib/calloc.c: Include errno.h.
66163         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66164         and a POSIX-compatible calloc into a single function. Set ENOMEM
66165         when returning NULL.
66166         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66167         * doc/functions/calloc.texi: Mention the calloc-posix module.
66168         * lib/stdlib_.h (calloc): New declaration.
66169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66170         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66171         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66172         and HAVE_CALLOC_POSIX.
66173
66174 2007-09-09  Bruno Haible  <bruno@clisp.org>
66175
66176         Allow for modules to show an arbitrary notice.
66177         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66178         * gnulib-tool: New option --extract-notice.
66179         (func_usage): Document it.
66180         (sed_extract_prog): Update.
66181         (func_get_notice): New function.
66182         (func_modules_notice): New function.
66183         (func_import, func_create_testdir): Invoke it.
66184         Suggested by Jim Meyering.
66185
66186 2007-09-09  Bruno Haible  <bruno@clisp.org>
66187
66188         * gnulib-tool: New options --verbose, --quiet.
66189         (func_usage): Document them.
66190         (verbose): New variable.
66191         (func_execute_command): New function.
66192         (func_import): Don't show the module list and the file list if
66193         $verbose < 0.
66194         (func_create_testdir): Likewise. Use func_execute_command.
66195         (func_create_megatestdir): Use func_execute_command.
66196
66197 2007-09-08  Bruno Haible  <bruno@clisp.org>
66198
66199         * gnulib-tool (func_import): Prefer rsync over wget when available,
66200         for fetching the PO files.
66201
66202 2007-09-08  Bruno Haible  <bruno@clisp.org>
66203
66204         * posix-modules: New file. Portions copied from gnulib-tool.
66205         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66206
66207 2007-09-08  Jim Meyering  <jim@meyering.net>
66208
66209         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66210         * lib/fpending.h: Rename from __fpending.h.
66211         * lib/fpending.c: Rename from __fpending.c.
66212         Include "fpending.h", not "__fpending.h".
66213         * lib/__fpending.h, lib/__fpending.c: Remove files.
66214         * modules/fpending (Files): Reflect new file names.
66215         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66216
66217 2007-09-08  Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/inttypes-h.m4: Remove stub file.
66220
66221 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66222
66223         * doc/headers/stdint.texi: Discuss #include_next issue.
66224
66225 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66226
66227         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66228
66229 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66230
66231         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66232         in variable name.
66233
66234 2007-09-03  Jim Meyering  <jim@meyering.net>
66235
66236         New module: git-version-gen.
66237         * modules/git-version-gen: New file.
66238
66239         Import changes from coreutils for bootstrap script.
66240
66241         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66242
66243         bootstrap: uses rsync to download the .po files
66244         * build-aux/bootstrap (po_download_command_format): New global.
66245         (download_po_files): Use rsync.
66246         (update_po_files): Don't remove .po files after download,
66247         so future rsync runs can take advantage of the copies.
66248
66249         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66250
66251         Solve the unnecessary-.po-file-regeneration problem once and for all.
66252         * build-aux/bootstrap (download_po_files): New function, renamed from
66253         get_translations.  Now, downloads, but doesn't update LINGUAS.
66254         (update_po_files): New function.
66255
66256         bootstrap: Ignore more.
66257         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66258         uniwidth to e.g., lib/.gitignore.
66259         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66260
66261         * build-aux/bootstrap: New setting: vc_ignore.
66262         (insert_sorted_if_absent): Create $file if absent.
66263         Adapt to new, possibly empty, list: $vc_ignore.
66264
66265         bootstrap: generate more ignorable names
66266         * build-aux/bootstrap (slurp): When generating ignorable names,
66267         also map .sin to .sed, .gperf to .c, and .y to .c.
66268
66269 2007-09-03  Jim Meyering  <jim@meyering.net>
66270
66271         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66272         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66273
66274 2007-09-02  Bruno Haible  <bruno@clisp.org>
66275
66276         Fix mis-recognition of 'mcs' on QNX 6.
66277         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66278         output contains the string "Mono".
66279         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66280         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66281
66282 2007-09-01  Bruno Haible  <bruno@clisp.org>
66283
66284         Fix collision between uniwidth/* and linebreak modules.
66285         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66286         u32_width): Remove declarations.
66287         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66288         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66289         streq3, streq2, streq1, streq0): Remove functions.
66290         (STREQ): Remove macro.
66291         (is_cjk_encoding): Remove function.
66292         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66293         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66294         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66295         * NEWS: Document the change.
66296
66297 2007-09-01  Bruno Haible  <bruno@clisp.org>
66298
66299         * lib/streq.h: Add double-inclusion guard.
66300
66301 2007-09-01  Karl Berry  <karl@gnu.org>
66302
66303         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66304
66305 2007-08-28  Jim Meyering  <jim@meyering.net>
66306
66307         Rename mreadlink_with_size to areadlink_with_size.
66308         * NEWS: Document the change.
66309         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66310         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66311         * lib/mreadlink.h: Rename this to...
66312         * lib/areadlink.h: ...this.
66313         * modules/mreadlink-with-size: Rename this to...
66314         * modules/areadlink-with-size: ...this.
66315         * lib/canonicalize.c: Reflect the renaming.
66316         * modules/canonicalize: Likewise.
66317
66318 2007-08-26  Bruno Haible  <bruno@clisp.org>
66319
66320         * gnulib-tool (func_import): When deciding which files to remove,
66321         consider also dangling symbolic links.
66322         Reported by Eric Blake.
66323
66324 2007-08-26  Bruno Haible  <bruno@clisp.org>
66325
66326         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66327
66328 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66329
66330         * lib/readline.c: Don't include getline.h, the prototype is now
66331         found in stdio.h.
66332
66333 2007-08-23  Jim Meyering  <jim@meyering.net>
66334
66335         Getdelim touchup.
66336         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66337         around the funlockfile call, since funlockfile never sets errno.
66338         Don't set errno upon failed realloc.
66339
66340 2007-08-22  Eric Blake  <ebb9@byu.net>
66341
66342         Getline touchups.
66343         * lib/getdelim.c (getdelim): Revert regression that required *n to
66344         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66346         getdelim, rather than whether implementation is missing.
66347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66348         * lib/stdio_.h (getline): Also declare if replacement is
66349         required.
66350         * doc/functions/getdelim.texi: New file.
66351         * doc/functions/getline.texi: Likewise.
66352         * doc/gnulib.texi (Function Substitutes): Add new files.
66353         Reported by Bruno Haible.
66354
66355 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66356
66357         * users.txt: Add Guile.
66358
66359 2007-08-22  Eric Blake  <ebb9@byu.net>
66360
66361         * tests/test-getdelim.c (main): Use remove, not unlink.
66362         * tests/test-getline.c (main): Likewise.
66363
66364         Move getline and getdelim into stdio.h, per POSIX 200x.
66365         * modules/getline (Files): Remove getline.h.
66366         (Depends-on): Add stdio.
66367         (configure.ac): Add module indicator.
66368         * modules/getdelim (Files): Remove getdelim.h.
66369         (Depends-on): Add stdio.
66370         (configure.ac): Add module indicator.
66371         * modules/stdio (Makefile.am): Work with new indicators.
66372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66373         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66374         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66375         * lib/getdelim.h: Delete.
66376         * lib/getline.h: Delete.
66377         * lib/stdio_.h (getdelim, getline): Declare.
66378         * modules/getdelim-tests: New module.
66379         * modules/getline-tests: Likewise.
66380         * tests/test-getdelim.c: New file.
66381         * tests/test-getline.c: Likewise.
66382         * NEWS: Document the change.
66383         * lib/getline.c: Update choice of header.
66384         * lib/csharpcomp.c: Likewise.
66385         * lib/getpass.c: Likewise.
66386         * lib/javacomp.c: Likewise.
66387         * lib/javaversion.c: Likewise.
66388         * lib/yesno.c: Likewise.
66389         * lib/getdelim.c: Likewise.
66390         (getdelim): Set errno on failure, and avoid memory leak.
66391
66392 2007-08-19  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/closein (Depends-on): Add freadahead.
66395         * lib/closein.c: Include freadahead.h.
66396         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66397         is zero.
66398
66399 2007-08-19  Bruno Haible  <bruno@clisp.org>
66400
66401         * modules/freadahead-tests: New file.
66402         * tests/test-freadahead.sh: New file.
66403         * tests/test-freadahead.c: New file.
66404
66405         * modules/freadahead: New file.
66406         * lib/freadahead.h: New file.
66407         * lib/freadahead.c: New file.
66408         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66409         fbufmode, fpurge, freadable, fwritable.
66410
66411 2007-08-19  Eric Blake  <ebb9@byu.net>
66412
66413         Test yesno in combination with closein.
66414         * lib/yesno.c (yesno): Document use of stdin.
66415         * modules/yesno-tests (Files): New module.
66416         * tests/test-yesno.c (main): New file.
66417         * tests/test-yesno.sh: Likewise.
66418
66419 2007-08-19  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66422         * lib/fseeko.c (rpl_fseeko): Likewise.
66423         * lib/fseterr.c (fseterr): Likewise.
66424
66425 2007-08-19  Bruno Haible  <bruno@clisp.org>
66426
66427         * tests/test-lseek.c (main): Disable a test for BeOS.
66428         * doc/functions/lseek.texi: Document the BeOS bug.
66429
66430 2007-08-19  Bruno Haible  <bruno@clisp.org>
66431             Eric Blake  <ebb9@byu.net>
66432
66433         * lib/lseek.c: Include <sys/stat.h>.
66434         (rpl_lseek): Add workaround code also for Unix platforms.
66435         Needed for BeOS.
66436         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66437         * doc/functions/lseek.texi: Document BeOS definiency.
66438
66439 2007-08-18  Bruno Haible  <bruno@clisp.org>
66440
66441         * modules/fstrcmp-tests: New file.
66442         * tests/test-fstrcmp.c: New file.
66443
66444 2007-08-18  Bruno Haible  <bruno@clisp.org>
66445
66446         * modules/fstrcmp: New file, from GNU gettext with modifications.
66447         * lib/fstrcmp.h: New file, from GNU gettext.
66448         * lib/fstrcmp.c: New file, from GNU gettext.
66449         * MODULES.html.sh (String handling): Add fstrcmp.
66450
66451 2007-08-18  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66454         'bool'.
66455         (diag, compareseq): Remove const from the ctxt argument.
66456         (USE_HEURISTIC): Undefine at the end.
66457
66458 2007-08-18  Jim Meyering  <jim@meyering.net>
66459
66460         New file: lib/idcache.h
66461         * NEWS: Mention the addition.
66462         * modules/idcache (Files): Add lib/idcache.h
66463         * lib/idcache.c: Include "idcache.h".
66464         Don't include <sys/types.h>.
66465         Add a FIXME comment.
66466         Move file-scoped "static" declarations to the top.
66467         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66468
66469 2007-08-17  Bruno Haible  <bruno@clisp.org>
66470         and Paul Eggert  <eggert@cs.ucla.edu>
66471
66472         * MODULES.html.sh: Add diffseq.
66473         * modules/diffseq: New file.
66474         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66475         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66476
66477 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         Import changes from coreutils for bootstrap script.
66480
66481         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         * build-aux/bootstrap (slurp): Work even in environments where
66484         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66485         current code does not slurp files whose names start with ".", and
66486         this looks like it might be a troublesome area.
66487
66488         2007-07-11  Jim Meyering  <jim@meyering.net>
66489
66490         If there's a GPL vN copyright comment, require that N == 3.
66491
66492         2007-07-08  Jim Meyering  <jim@meyering.net>
66493
66494         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66495         * build-aux/bootstrap (mam_template): Move definition out of loop.
66496
66497         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66498
66499         * build-aux/bootstrap (symlink_to_dir): Rename function from
66500         symlink_to_gnulib.  Add a directory parameter.  Update all
66501         callers.
66502         (cp_mark_as_generated): Also check for -- and link to -- files in
66503         gl/.
66504
66505         2007-07-08  Jim Meyering  <jim@meyering.net>
66506
66507         Adapt to deeper hierarchy in gnulib.
66508         * build-aux/bootstrap (symlink_to_dir): If the destination
66509         directory doesn't exist, create it. This is required at least for
66510         "lib/uniwidth/cjk.h".
66511
66512         2007-05-15  Jim Meyering  <jim@meyering.net>
66513
66514         * build-aux/bootstrap: Now that generated Makefile.am files
66515         are no longer under version control, they must be created at
66516         bootstrap time.
66517
66518 2007-08-14  Ben Pfaff  <blp@gnu.org>
66519
66520         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66521
66522 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66525         given the changes below.
66526         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66527         even on hosts that have padding bits beyond the supported 64.
66528
66529 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66532         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66533         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66534         depends on it.
66535         (xstrtol_error): Remove.
66536         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66537         but with a different signature.
66538         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66539         * lib/xstrtol-error.c: Include exitfail.h.
66540         (xstrtol_fatal): New function, with a different signature from the
66541         old xstrtol_error, so that the caller need not worry about passing
66542         in an exit status, or about storage management of the option argument.
66543         (xstrtol_error): Now a static function.  Redo signature to
66544         implement xstrtol_fatal.  Output the correct number of hyphens in
66545         front of the option so that the caller need not worry about
66546         storage management.
66547         (N_): New macro.
66548         (_): Remove; not used now.
66549         * modules/xstrtol: Depend on getopt.
66550         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66551         of old STRTOL_FATAL_ERROR macro.
66552         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66553         of test program.
66554         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66555         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66556
66557 2007-08-08  Eric Blake  <ebb9@byu.net>
66558
66559         * lib/xstrtol-error.c: Add missing include.
66560
66561         Move xstrtol messages into gnulib domain, when --pobase is used.
66562         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66563         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66564         * modules/xstrtol (Files): Distribute new file.
66565         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66566         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66567         * tests/test-xstrtol.c: ...into new file.
66568         * tests/test-xstrtoul.c: Also test xstrtoul.
66569         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66570         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66571         * tests/test-xstrtol.sh: Drive the tests.
66572         * tests/test-xstrtoimax.sh: Likewise.
66573         * tests/test-xstrtoumax.sh: Likewise.
66574         * modules/xstrtol-tests: New module.
66575         * modules/xstrtoimax-tests: Likewise.
66576         * modules/xstrtoumax-tests: Likewise.
66577
66578 2007-08-08  Jim Meyering  <jim@meyering.net>
66579
66580         New function: mfile_name_concat.
66581         * lib/filenamecat.c (mfile_name_concat): New function, just like
66582         file_name_concat, but return NULL upon failure rather than exiting
66583         with a diagnostic.
66584         * lib/filenamecat.h: Declare it.
66585
66586 2007-08-07  Bruno Haible  <bruno@clisp.org>
66587
66588         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66589         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66590         warning from gcc.
66591         Reported by Eric Blake.
66592
66593 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66594
66595         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66596         * modules/crypto/arcfour (License): Likewise.
66597         * modules/crypto/des-tests (License): Likewise.
66598         * modules/crypto/gc-arctwo-tests (License): Likewise.
66599         * modules/crypto/gc-des-tests (License): Likewise.
66600         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66601         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66602         * modules/crypto/gc-md2-tests (License): Likewise.
66603         * modules/crypto/gc-md4-tests (License): Likewise.
66604         * modules/crypto/gc-md5-tests (License): Likewise.
66605         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66606         * modules/crypto/gc-rijndael-tests (License): Likewise.
66607         * modules/crypto/gc-sha1-tests (License): Likewise.
66608         * modules/crypto/gc-tests (License): Likewise.
66609         * modules/crypto/hmac-md5 (License): Likewise.
66610         * modules/crypto/hmac-sha1 (License): Likewise.
66611         * modules/crypto/md2-tests (License): Likewise.
66612         * modules/crypto/md4-tests (License): Likewise.
66613         * modules/crypto/md5 (License): Likewise.
66614         * modules/crypto/rijndael (License): Likewise.
66615         * modules/crypto/sha1 (License): Likewise.
66616         * modules/memxor (License): Likewise.
66617
66618 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66619         and Bruno Haible  <bruno@clisp.org>
66620
66621         * NEWS: Describe interface changes to human, xstrtol.
66622         * lib/human.h: Include <xstrtol.h>.
66623         (human_options): Return enum strtol_error, not int.  Remove
66624         bool arg; take int * instead.
66625         * lib/human.c: Don't include "gettext.h".
66626         (_): Remove; no longer used.
66627         Don't include <xstrtol.h>, since human.h does it.
66628         (human_options): Adjust to abovementioned interface changes.
66629         Do not report error to stderr; that's now the caller's
66630         responsibility.
66631         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66632         interface change.
66633         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66634         Str, Argument_type_string.  All uses changed.  Put " argument"
66635         in diagnostics to make them clearer.  Change wording of suffix
66636         message for clarity.
66637         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66638         Argument_type_string.
66639         (STRTOL_FATAL_WARN): Remove; no longer used.
66640         * modules/human (Depends-on): Remove gettext-h.
66641
66642 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66643
66644         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66645
66646 2007-07-31  Bruno Haible  <bruno@clisp.org>
66647
66648         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66649         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66650         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66651
66652 2007-07-31  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66655         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66656
66657 2007-07-30  Bruno Haible  <bruno@clisp.org>
66658
66659         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66660         * modules/c-ctype (License): Likewise.
66661         * modules/c-strcase (License): Likewise.
66662         * modules/check-version (License): Likewise.
66663         * modules/iconv (License): Likewise.
66664         * modules/iconv_open (License): Likewise.
66665         * modules/read-file (License): Likewise.
66666         * modules/striconv (License): Likewise.
66667         * modules/strverscmp (License): Likewise.
66668         * modules/vasprintf (License): Likewise.
66669         * modules/crypto/des (License): Likewise.
66670         * modules/crypto/gc (License): Likewise.
66671         * modules/crypto/gc-arcfour (License): Likewise.
66672         * modules/crypto/gc-arctwo (License): Likewise.
66673         * modules/crypto/gc-des (License): Likewise.
66674         * modules/crypto/gc-hmac-md5 (License): Likewise.
66675         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66676         * modules/crypto/gc-md2 (License): Likewise.
66677         * modules/crypto/gc-md4 (License): Likewise.
66678         * modules/crypto/gc-md5 (License): Likewise.
66679         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66680         * modules/crypto/gc-random (License): Likewise.
66681         * modules/crypto/gc-rijndael (License): Likewise.
66682         * modules/crypto/gc-sha1 (License): Likewise.
66683         * modules/crypto/md2 (License): Likewise.
66684         * modules/crypto/md4 (License): Likewise.
66685
66686 2007-07-30  Jim Meyering  <jim@meyering.net>
66687
66688         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66689         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66690         it has valid stat data.  This bug would cause du not to count the
66691         sizes of inaccessible directories.
66692         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66693         in <http://bugzilla.redhat.com/250077>.
66694
66695 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66696             Bruno Haible  <bruno@clisp.org>
66697
66698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66699         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66700         #include_next, gives a diagnostic about it, but reports no error in
66701         the exit code.
66702         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66703
66704 2007-07-24  Ben Pfaff  <blp@gnu.org>
66705
66706         Improve name: "count-one-bits" is better than "popcount".
66707         * MODULES.html.sh: Update name.
66708         * lib/popcount.h: Renamed lib/count-one-bits.h.
66709         (popcount): Renamed count_one_bits.
66710         (popcountl): Renamed count_one_bits_l.
66711         (popcountll): Renamed count_one_bits_ll.
66712         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66713         * modules/popcount: Renamed module/count-one-bits.
66714         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66715         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66716
66717 2007-07-23  Ben Pfaff  <blp@gnu.org>
66718
66719         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66720         better code generation, and add U to large constants to avoid
66721         warnings, in non-GCC case.
66722         Suggested by Bruno Haible.
66723
66724 2007-07-23  Ben Pfaff  <blp@gnu.org>
66725
66726         * lib/popcount.h: Use verify_true instead of if...abort.
66727         * modules/popcount: Depend on verify module.
66728         Suggested by Jim Meyering.
66729
66730 2007-07-23  Bruno Haible  <bruno@clisp.org>
66731
66732         * gnulib-tool (func_import): Create a .cvsignore file also when the
66733         directory is not yet in CVS but the toplevel directory is. When
66734         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66735         Reported by Karl Berry.
66736
66737 2007-07-22  Ben Pfaff  <blp@gnu.org>
66738
66739         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66740         case.
66741         Suggested by Eric Blake.
66742
66743 2007-07-22  Ben Pfaff  <blp@gnu.org>
66744
66745         New module: popcount.
66746         * MODULES.html.sh: Add popcount.
66747         * modules/popcount: New file.
66748         * modules/popcount-tests: New file.
66749         * tests/test-popcount.c: New file.
66750         * lib/popcount.h: New file.
66751         * m4/popcount.m4: New file.
66752
66753 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * build-aux/announce-gen: Update to GPLv3.
66756
66757         * build-aux/config.guess: Update from config.
66758
66759 2007-07-21  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66762         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66763
66764 2007-07-20  Jim Meyering  <jim@meyering.net>
66765
66766         * check-module: Diagnose a self-dependency.
66767
66768 2007-07-19  Bruno Haible  <bruno@clisp.org>
66769
66770         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66771         empty.
66772         Reported by Eric Blake.
66773
66774 2007-07-18  Bruno Haible  <bruno@clisp.org>
66775
66776         * gnulib-tool: New options --po-base, --po-domain.
66777         (func_usage): Document them.
66778         (pobase, po_domain): New variables.
66779         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66780         DEFAULT_TEXT_DOMAIN.
66781         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66782         (func_import): Consider pobase and po_domain. Create a po/ directory.
66783         (func_create_testdir): Set pobase and po_domain to empty.
66784         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66785         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66786
66787 2007-07-18  Bruno Haible  <bruno@clisp.org>
66788
66789         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66790         EXTRA_DIST augmentation for files in build-aux/.
66791
66792 2007-07-16  Bruno Haible  <bruno@clisp.org>
66793
66794         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66795         * modules/getdelim (License): Likewise.
66796
66797 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66798
66799         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66800         * modules/d-type (License): Likewise.
66801         * modules/extensions (License): Likewise.
66802         * modules/fnmatch (License): Likewise.
66803         * modules/fseeko (License): Likewise.
66804         * modules/getaddrinfo (License): Likewise.
66805         * modules/getline (License): Likewise.
66806         * modules/getlogin_r (License): Likewise.
66807         * modules/getpass (License): Likewise.
66808         * modules/gettimeofday (License): Likewise.
66809         * modules/glob (License): Likewise.
66810         * modules/inet_ntop (License): Likewise.
66811         * modules/malloc (License): Likewise.
66812         * modules/malloca (License): Likewise.
66813         * modules/memmem (License): Likewise.
66814         * modules/mempcpy (License): Likewise.
66815         * modules/memset (License): Likewise.
66816         * modules/minmax (License): Likewise.
66817         * modules/mktime (License): Likewise.
66818         * modules/netinet_in (License): Likewise.
66819         * modules/pathmax (License): Likewise.
66820         * modules/poll (License): Likewise.
66821         * modules/regex (License): Likewise.
66822         * modules/snprintf (License): Likewise.
66823         * modules/stdbool (License): Likewise.
66824         * modules/stdint (License): Likewise.
66825         * modules/stdio (License): Likewise.
66826         * modules/strcase (License): Likewise.
66827         * modules/strcasestr (License): Likewise.
66828         * modules/strdup (License): Likewise.
66829         * modules/string (License): Likewise.
66830         * modules/strndup (License): Likewise.
66831         * modules/strnlen (License): Likewise.
66832         * modules/strpbrk (License): Likewise.
66833         * modules/strptime (License): Likewise.
66834         * modules/strsep (License): Likewise.
66835         * modules/sys_select (License): Likewise.
66836         * modules/sys_socket (License): Likewise.
66837         * modules/sys_stat (License): Likewise.
66838         * modules/sys_time (License): Likewise.
66839         * modules/time (License): Likewise.
66840         * modules/time_r (License): Likewise.
66841         * modules/timegm (License): Likewise.
66842         * modules/unistd (License): Likewise.
66843         * modules/vsnprintf (License): Likewise.
66844         * modules/wctype (License): Likewise.
66845
66846 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66847
66848         * modules/argz (License): LGPLv2+.
66849
66850 2007-07-15  Karl Berry  <karl@gnu.org>
66851
66852         * doc/gnulib.texi: revise node structure per new fdl.texi.
66853
66854 2007-07-14  Bruno Haible  <bruno@clisp.org>
66855
66856         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66857         the output file.
66858         * lib/uniname/uninames.h: Regenerated.
66859
66860 2007-07-14  Karl Berry  <karl@gnu.org>
66861
66862         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66863         omitting sectioning and index commands.
66864
66865 2007-07-13  Bruno Haible  <bruno@clisp.org>
66866
66867         New gnulib-tool option --more-symlinks.
66868         * gnulib-tool (func_usage): Document --more-symlinks.
66869         (do_copyrights): New variable.
66870         Recognize option --more-symlinks.
66871         (func_import): Don't add a copyright notice transform to
66872         sed_transform_lib_file if do_copyrights is empty.
66873
66874 2007-07-13  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/vasnprintf.c (decimal_point_char): Define also if
66877         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66878         && !NEED_PRINTF_DIRECTIVE_A.
66879         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66880         Gary V. Vaughan <gary@gnu.org>.
66881
66882 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66883
66884         * lib/inttypes_.h: Undo previous change, since it was fixed
66885         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66886
66887 2007-07-13  Bruno Haible  <bruno@clisp.org>
66888
66889         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66890         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66891
66892 2007-07-13  Jim Meyering  <jim@meyering.net>
66893
66894         df: Don't fail for Tru64's "file-on-file mount".
66895         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66896         so we fall through and use statfs instead.  Details here:
66897         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66898         Reported by Albert Chin.
66899
66900 2007-07-13  Bruno Haible  <bruno@clisp.org>
66901
66902         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66903         * modules/configmake (License): Likewise.
66904         * modules/gettext (License): Likewise.
66905         * modules/gettext-h (License): Likewise.
66906         * modules/include_next (License): Likewise.
66907         * modules/link-warning (License): Likewise.
66908         * modules/localcharset (License): Likewise.
66909         * modules/localename (License): Likewise.
66910         * modules/lock (License): Likewise.
66911         * modules/relocatable-lib-lgpl (License): Likewise.
66912         * modules/size_max (License): Likewise.
66913         * modules/vasnprintf (License): Likewise.
66914         * modules/wchar (License): Likewise.
66915         * modules/xsize (License): Likewise.
66916
66917 2007-07-13  Bruno Haible  <bruno@clisp.org>
66918
66919         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66920         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66921
66922 2007-07-12  Bruno Haible  <bruno@clisp.org>
66923
66924         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66925         in the modules files.
66926
66927 2007-07-11  Karl Berry  <karl@gnu.org>
66928
66929         * MODULES.html.sh (func_module): use
66930          sed -e '\|^'"${includefile}"'$|d'
66931          instead of /.../d, to avoid errors on $includefile's containing /.
66932
66933 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66934
66935         * gnulib-tool (func_import): Avoid duplication of --avoid
66936         statements
66937         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66938         names to `_' in variable names.
66939
66940 2007-07-10  Eric Blake  <ebb9@byu.net>
66941
66942         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66943         * NEWS: Document this change.
66944
66945 2007-07-08  Bruno Haible  <bruno@clisp.org>
66946
66947         Update to Unicode 5.0.
66948         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66949         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66950         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66951         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66952         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66953         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66954         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66955         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66956         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66957         U+10A3F, U+1D242..U+1D244.
66958         (nonspacing_table_ind): Update.
66959         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66960         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66961
66962 2007-07-08  Bruno Haible  <bruno@clisp.org>
66963
66964         Update to Unicode 5.0.
66965         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66966         code transform. Extend the name index field of unicode_name_to_code and
66967         unicode_code_to_name from 16 to 24 bits.
66968         * lib/uniname/uniname.c (unicode_character_name,
66969         unicode_name_character): Add the range 0x12xxx to the code transform.
66970         * lib/uniname/uninames.h: Regenerated.
66971         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66972
66973 2007-07-07  Bruno Haible  <bruno@clisp.org>
66974
66975         * modules/wcwidth-tests: New file.
66976         * tests/test-wcwidth.c: New file.
66977
66978         Work around MacOS X wcwidth() bug.
66979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66980         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66981         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66982         original wcwidth in non-UTF-8 locales.
66983         * modules/wcwidth (Depends-on): Add localcharset, streq,
66984         uniwidth/width.
66985         * doc/functions/wcwidth.texi: Update.
66986
66987 2007-07-07  Bruno Haible  <bruno@clisp.org>
66988
66989         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66990         (wcwidth): New declaration.
66991         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66992         macros.
66993         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66994         here. Prepare for creating <wchar.h> unconditionally.
66995         * modules/wchar (Depends-on): Add link-warning.
66996         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66997         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66998         * lib/wcwidth.h: Remove file.
66999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67000         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67001         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67002         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67003         (Include): Replace wcwidth.h with <wchar.h>.
67004         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67005         * lib/mbchar.h: Don't include wcwidth.h.
67006         * lib/mbswidth.c: Likewise.
67007         * NEWS: Mention the change.
67008
67009 2007-07-07  Bruno Haible  <bruno@clisp.org>
67010
67011         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67012         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67013         definition with an external declaration.
67014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67015         defined as a function. Remove AC_C_INLINE requirement.
67016         * modules/wcwidth (Files): Add lib/wcwidth.c.
67017         (Makefile.am): Remove redundant statement.
67018
67019 2007-07-07  Bruno Haible  <bruno@clisp.org>
67020
67021         * MODULES.html.sh (Unicode string functions): Add the new modules.
67022
67023         * tests/uniwidth/test-u32-strwidth.c: New file.
67024         * modules/uniwidth/u32-strwidth-tests: New file.
67025
67026         * lib/uniwidth/u32-strwidth.c: New file.
67027         * modules/uniwidth/u32-strwidth: New file.
67028
67029         * tests/uniwidth/test-u16-strwidth.c: New file.
67030         * modules/uniwidth/u16-strwidth-tests: New file.
67031
67032         * lib/uniwidth/u16-strwidth.c: New file.
67033         * modules/uniwidth/u16-strwidth: New file.
67034
67035         * tests/uniwidth/test-u8-strwidth.c: New file.
67036         * modules/uniwidth/u8-strwidth-tests: New file.
67037
67038         * lib/uniwidth/u8-strwidth.c: New file.
67039         * modules/uniwidth/u8-strwidth: New file.
67040
67041         * tests/uniwidth/test-u32-width.c: New file.
67042         * modules/uniwidth/u32-width-tests: New file.
67043
67044         * lib/uniwidth/u32-width.c: New file.
67045         * modules/uniwidth/u32-width: New file.
67046
67047         * tests/uniwidth/test-u16-width.c: New file.
67048         * modules/uniwidth/u16-width-tests: New file.
67049
67050         * lib/uniwidth/u16-width.c: New file.
67051         * modules/uniwidth/u16-width: New file.
67052
67053         * tests/uniwidth/test-u8-width.c: New file.
67054         * modules/uniwidth/u8-width-tests: New file.
67055
67056         * lib/uniwidth/u8-width.c: New file.
67057         * modules/uniwidth/u8-width: New file.
67058
67059         * tests/uniwidth/test-uc_width.c: New file.
67060         * modules/uniwidth/width-tests: New file.
67061
67062         * lib/uniwidth/width.c: New file, from GNU libiconv.
67063         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67064         * modules/uniwidth/width: New file.
67065
67066         * lib/uniwidth.h: New file, from GNU libiconv.
67067         * modules/uniwidth/base: New file.
67068
67069 2007-07-07  Bruno Haible  <bruno@clisp.org>
67070
67071         * lib/uniname.h: New file, from GNU gettext.
67072         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67073         * lib/uniname/uninames.h: New file, from GNU gettext.
67074         * lib/uniname/uniname.c: New file, from GNU gettext.
67075         * tests/uniname/test-uninames.sh: New file.
67076         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67077         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67078         * modules/uniname/base: New file.
67079         * modules/uniname/uniname: New file.
67080         * modules/uniname/uniname-tests: New file.
67081         * MODULES.html.sh (Unicode string functions): Add the new modules.
67082
67083 2007-07-06  Bruno Haible  <bruno@clisp.org>
67084
67085         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67086
67087 2007-07-06  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67090         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67091         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67092         include <sys/time.h>.
67093         Reported by Eric Blake.
67094
67095 2007-07-06  Eric Blake  <ebb9@byu.net>
67096
67097         Fix testing canonicalize on cygwin.
67098         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67099         Revert patch from 2007-06-19.
67100         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67101         canonicalize module is also in use.
67102         * tests/test-canonicalize.c: New file.
67103         * tests/test-canonicalize.sh: Likewise.
67104         * modules/canonicalize-tests: Likewise.
67105
67106 2007-07-06  Jim Meyering  <jim@meyering.net>
67107
67108         * lib/getugroups.c (getugroups): Detect getgrent failure.
67109         Adjust comment to reflect reality: this function may return -1.
67110
67111 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67112
67113         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67114         the new TP address.
67115         (usage): Fix typo
67116         (gnulib_mk): New variable.
67117
67118 2007-07-05  Jim Meyering  <jim@meyering.net>
67119
67120         Don't let endgrent clobber errno, no matter how improbable.
67121         * lib/getugroups.c (getugroups): Save and restore errno around
67122         endgrent call.
67123
67124         Close the group DB even when failing with 2^31 or more members.
67125         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67126
67127 2007-07-04  Jim Meyering  <jim@meyering.net>
67128
67129         * lib/getugroups.h: New file.
67130         * lib/getugroups.c: Include "getugroups.h".
67131         Remove uses of "register" keyword.
67132         Move local variable, "cp", down into scope where used.
67133         Give "username" parameter the "const" attribute.
67134         * modules/getugroups (Files): Add lib/getugroups.h
67135
67136 2007-07-04  Karl Berry  <karl@gnu.org>
67137
67138         * MODULES.html.sh (func_all_modules): Complete rename of
67139         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67140
67141 2007-07-02  Bruno Haible  <bruno@clisp.org>
67142
67143         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67144         mode, when inttypes.h comes from gnulib.
67145         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67146
67147 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67148
67149         * NEWS: Mention lgpl module name change.
67150
67151         * modules/lgpl-2.1: Renamed from lgpl.
67152
67153         * NEWS: Mention gpl module name change.
67154
67155         * modules/gpl-3.0: New file, based on gpl-2.0.
67156
67157         * modules/gpl-2.0: Renamed from gpl.
67158
67159         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67160         doc/gpl-2.0.texi.
67161
67162 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67165         #define __STDC_LIMIT_MACROS temporarily while including
67166         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67167         Problem reported by Joel E. Denny in
67168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67169
67170 2007-07-01  Bruno Haible  <bruno@clisp.org>
67171
67172         * lib/unistdio.h: New file.
67173         * lib/unistdio/u-asnprintf.h: New file.
67174         * lib/unistdio/u-asprintf.h: New file.
67175         * lib/unistdio/u-printf-args.c: New file.
67176         * lib/unistdio/u-printf-args.h: New file.
67177         * lib/unistdio/u-printf-parse.h: New file.
67178         * lib/unistdio/u-snprintf.h: New file.
67179         * lib/unistdio/u-sprintf.h: New file.
67180         * lib/unistdio/u-vasprintf.h: New file.
67181         * lib/unistdio/u-vsnprintf.h: New file.
67182         * lib/unistdio/u-vsprintf.h: New file.
67183         * lib/unistdio/ulc-asnprintf.c: New file.
67184         * lib/unistdio/ulc-asprintf.c: New file.
67185         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67186         * lib/unistdio/ulc-printf-parse.c: New file.
67187         * lib/unistdio/ulc-snprintf.c: New file.
67188         * lib/unistdio/ulc-sprintf.c: New file.
67189         * lib/unistdio/ulc-vasnprintf.c: New file.
67190         * lib/unistdio/ulc-vasprintf.c: New file.
67191         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67192         * lib/unistdio/ulc-vsnprintf.c: New file.
67193         * lib/unistdio/ulc-vsprintf.c: New file.
67194         * lib/unistdio/u8-asnprintf.c: New file.
67195         * lib/unistdio/u8-asprintf.c: New file.
67196         * lib/unistdio/u8-printf-parse.c: New file.
67197         * lib/unistdio/u8-snprintf.c: New file.
67198         * lib/unistdio/u8-sprintf.c: New file.
67199         * lib/unistdio/u8-vasnprintf.c: New file.
67200         * lib/unistdio/u8-vasprintf.c: New file.
67201         * lib/unistdio/u8-vsnprintf.c: New file.
67202         * lib/unistdio/u8-vsprintf.c: New file.
67203         * lib/unistdio/u8-u8-asnprintf.c: New file.
67204         * lib/unistdio/u8-u8-asprintf.c: New file.
67205         * lib/unistdio/u8-u8-snprintf.c: New file.
67206         * lib/unistdio/u8-u8-sprintf.c: New file.
67207         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67208         * lib/unistdio/u8-u8-vasprintf.c: New file.
67209         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67210         * lib/unistdio/u8-u8-vsprintf.c: New file.
67211         * lib/unistdio/u16-asnprintf.c: New file.
67212         * lib/unistdio/u16-asprintf.c: New file.
67213         * lib/unistdio/u16-printf-parse.c: New file.
67214         * lib/unistdio/u16-snprintf.c: New file.
67215         * lib/unistdio/u16-sprintf.c: New file.
67216         * lib/unistdio/u16-vasnprintf.c: New file.
67217         * lib/unistdio/u16-vasprintf.c: New file.
67218         * lib/unistdio/u16-vsnprintf.c: New file.
67219         * lib/unistdio/u16-vsprintf.c: New file.
67220         * lib/unistdio/u16-u16-asnprintf.c: New file.
67221         * lib/unistdio/u16-u16-asprintf.c: New file.
67222         * lib/unistdio/u16-u16-snprintf.c: New file.
67223         * lib/unistdio/u16-u16-sprintf.c: New file.
67224         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67225         * lib/unistdio/u16-u16-vasprintf.c: New file.
67226         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67227         * lib/unistdio/u16-u16-vsprintf.c: New file.
67228         * lib/unistdio/u32-asnprintf.c: New file.
67229         * lib/unistdio/u32-asprintf.c: New file.
67230         * lib/unistdio/u32-printf-parse.c: New file.
67231         * lib/unistdio/u32-snprintf.c: New file.
67232         * lib/unistdio/u32-sprintf.c: New file.
67233         * lib/unistdio/u32-vasnprintf.c: New file.
67234         * lib/unistdio/u32-vasprintf.c: New file.
67235         * lib/unistdio/u32-vsnprintf.c: New file.
67236         * lib/unistdio/u32-vsprintf.c: New file.
67237         * lib/unistdio/u32-u32-asnprintf.c: New file.
67238         * lib/unistdio/u32-u32-asprintf.c: New file.
67239         * lib/unistdio/u32-u32-snprintf.c: New file.
67240         * lib/unistdio/u32-u32-sprintf.c: New file.
67241         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67242         * lib/unistdio/u32-u32-vasprintf.c: New file.
67243         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67244         * lib/unistdio/u32-u32-vsprintf.c: New file.
67245         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67246         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67247         * tests/unistdio/test-ulc-printf1.h: New file.
67248         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67249         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67250         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67251         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67252         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67253         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67254         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67255         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67256         * tests/unistdio/test-u8-asnprintf1.c: New file.
67257         * tests/unistdio/test-u8-asnprintf1.h: New file.
67258         * tests/unistdio/test-u8-printf1.h: New file.
67259         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67260         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67261         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67262         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67263         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67264         * tests/unistdio/test-u8-vasprintf1.c: New file.
67265         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67266         * tests/unistdio/test-u8-vsprintf1.c: New file.
67267         * tests/unistdio/test-u16-asnprintf1.c: New file.
67268         * tests/unistdio/test-u16-asnprintf1.h: New file.
67269         * tests/unistdio/test-u16-printf1.h: New file.
67270         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67271         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67272         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67273         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67274         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67275         * tests/unistdio/test-u16-vasprintf1.c: New file.
67276         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67277         * tests/unistdio/test-u16-vsprintf1.c: New file.
67278         * tests/unistdio/test-u32-asnprintf1.c: New file.
67279         * tests/unistdio/test-u32-asnprintf1.h: New file.
67280         * tests/unistdio/test-u32-printf1.h: New file.
67281         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67282         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67283         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67284         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67285         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67286         * tests/unistdio/test-u32-vasprintf1.c: New file.
67287         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67288         * tests/unistdio/test-u32-vsprintf1.c: New file.
67289         * modules/unistdio/base: New file.
67290         * modules/unistdio/u-printf-args: New file.
67291         * modules/unistdio/ulc-asnprintf: New file.
67292         * modules/unistdio/ulc-asprintf: New file.
67293         * modules/unistdio/ulc-fprintf: New file.
67294         * modules/unistdio/ulc-printf-parse: New file.
67295         * modules/unistdio/ulc-snprintf: New file.
67296         * modules/unistdio/ulc-sprintf: New file.
67297         * modules/unistdio/ulc-vasnprintf: New file.
67298         * modules/unistdio/ulc-vasprintf: New file.
67299         * modules/unistdio/ulc-vfprintf: New file.
67300         * modules/unistdio/ulc-vsnprintf: New file.
67301         * modules/unistdio/ulc-vsprintf: New file.
67302         * modules/unistdio/u8-asnprintf: New file.
67303         * modules/unistdio/u8-asprintf: New file.
67304         * modules/unistdio/u8-printf-parse: New file.
67305         * modules/unistdio/u8-snprintf: New file.
67306         * modules/unistdio/u8-sprintf: New file.
67307         * modules/unistdio/u8-vasnprintf: New file.
67308         * modules/unistdio/u8-vasprintf: New file.
67309         * modules/unistdio/u8-vsnprintf: New file.
67310         * modules/unistdio/u8-vsprintf: New file.
67311         * modules/unistdio/u8-u8-asnprintf: New file.
67312         * modules/unistdio/u8-u8-asprintf: New file.
67313         * modules/unistdio/u8-u8-snprintf: New file.
67314         * modules/unistdio/u8-u8-sprintf: New file.
67315         * modules/unistdio/u8-u8-vasnprintf: New file.
67316         * modules/unistdio/u8-u8-vasprintf: New file.
67317         * modules/unistdio/u8-u8-vsnprintf: New file.
67318         * modules/unistdio/u8-u8-vsprintf: New file.
67319         * modules/unistdio/u16-asnprintf: New file.
67320         * modules/unistdio/u16-asprintf: New file.
67321         * modules/unistdio/u16-printf-parse: New file.
67322         * modules/unistdio/u16-snprintf: New file.
67323         * modules/unistdio/u16-sprintf: New file.
67324         * modules/unistdio/u16-vasnprintf: New file.
67325         * modules/unistdio/u16-vasprintf: New file.
67326         * modules/unistdio/u16-vsnprintf: New file.
67327         * modules/unistdio/u16-vsprintf: New file.
67328         * modules/unistdio/u16-u16-asnprintf: New file.
67329         * modules/unistdio/u16-u16-asprintf: New file.
67330         * modules/unistdio/u16-u16-snprintf: New file.
67331         * modules/unistdio/u16-u16-sprintf: New file.
67332         * modules/unistdio/u16-u16-vasnprintf: New file.
67333         * modules/unistdio/u16-u16-vasprintf: New file.
67334         * modules/unistdio/u16-u16-vsnprintf: New file.
67335         * modules/unistdio/u16-u16-vsprintf: New file.
67336         * modules/unistdio/u32-asnprintf: New file.
67337         * modules/unistdio/u32-asprintf: New file.
67338         * modules/unistdio/u32-printf-parse: New file.
67339         * modules/unistdio/u32-snprintf: New file.
67340         * modules/unistdio/u32-sprintf: New file.
67341         * modules/unistdio/u32-vasnprintf: New file.
67342         * modules/unistdio/u32-vasprintf: New file.
67343         * modules/unistdio/u32-vsnprintf: New file.
67344         * modules/unistdio/u32-vsprintf: New file.
67345         * modules/unistdio/u32-u32-asnprintf: New file.
67346         * modules/unistdio/u32-u32-asprintf: New file.
67347         * modules/unistdio/u32-u32-snprintf: New file.
67348         * modules/unistdio/u32-u32-sprintf: New file.
67349         * modules/unistdio/u32-u32-vasnprintf: New file.
67350         * modules/unistdio/u32-u32-vasprintf: New file.
67351         * modules/unistdio/u32-u32-vsnprintf: New file.
67352         * modules/unistdio/u32-u32-vsprintf: New file.
67353         * modules/unistdio/ulc-asnprintf-tests: New file.
67354         * modules/unistdio/ulc-vasnprintf-tests: New file.
67355         * modules/unistdio/ulc-vasprintf-tests: New file.
67356         * modules/unistdio/ulc-vsnprintf-tests: New file.
67357         * modules/unistdio/ulc-vsprintf-tests: New file.
67358         * modules/unistdio/u8-asnprintf-tests: New file.
67359         * modules/unistdio/u8-vasnprintf-tests: New file.
67360         * modules/unistdio/u8-vasprintf-tests: New file.
67361         * modules/unistdio/u8-vsnprintf-tests: New file.
67362         * modules/unistdio/u8-vsprintf-tests: New file.
67363         * modules/unistdio/u16-asnprintf-tests: New file.
67364         * modules/unistdio/u16-vasnprintf-tests: New file.
67365         * modules/unistdio/u16-vasprintf-tests: New file.
67366         * modules/unistdio/u16-vsnprintf-tests: New file.
67367         * modules/unistdio/u16-vsprintf-tests: New file.
67368         * modules/unistdio/u32-asnprintf-tests: New file.
67369         * modules/unistdio/u32-vasnprintf-tests: New file.
67370         * modules/unistdio/u32-vasprintf-tests: New file.
67371         * modules/unistdio/u32-vsnprintf-tests: New file.
67372         * modules/unistdio/u32-vsprintf-tests: New file.
67373         * MODULES.html.sh (Unicode string functions): Add the new modules.
67374
67375 2007-07-01  Bruno Haible  <bruno@clisp.org>
67376
67377         * lib/sprintf.c (sprintf): Limit the available length estimation,
67378         to avoid address wraparound.
67379         * lib/vsprintf.c (vsprintf): Likewise.
67380         * modules/sprintf-posix (Dependencies): Add stdint.
67381         * modules/vsprintf-posix (Dependencies): Likewise.
67382
67383 2007-07-01  Bruno Haible  <bruno@clisp.org>
67384
67385         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67386         Windows PATH as well. Conservative double-quoting. Comments.
67387
67388 2007-07-01  Bruno Haible  <bruno@clisp.org>
67389             Eric Blake  <ebb9@byu.net>
67390             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67391
67392         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67393         empty components in $PATH, denoting '.'.
67394
67395 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67396
67397         * gnulib-tool: Fix indentation.
67398         (func_create_megatestdir): Likewise.
67399         Report by Bruno Haible.
67400
67401 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67402
67403         Sync from Automake.
67404         * build-aux/gnupload: Fix shell portability issues with for loops.
67405         Report by Karl Berry.
67406
67407 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67408
67409         * build-aux/maint.mk (POURL): Use translationproject.org.
67410
67411 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67412             Bruno Haible  <bruno@clisp.org>
67413
67414         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67415         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67416         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67417         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67418         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67419
67420 2007-06-27  Bruno Haible  <bruno@clisp.org>
67421
67422         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67423         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67424
67425 2007-06-26  Karl Berry  <karl@gnu.org>
67426
67427         * MODULES.html.sh: remove xreadlink-with-size.
67428
67429 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67432         method that I hope also handles the double-include problem noted
67433         by Bruno Haible in
67434         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67435
67436 2007-06-23  Bruno Haible  <bruno@clisp.org>
67437
67438         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67439         Don't let the 'mostlyclean' target fail if the last subdirectory could
67440         not be removed.
67441         Reported by Karl Berry.
67442
67443 2007-06-23  Bruno Haible  <bruno@clisp.org>
67444
67445         * gnulib-tool (echo): Add a speedier workaround for ksh.
67446         * tests/test-echo.sh: Likewise.
67447
67448 2007-06-23  Bruno Haible  <bruno@clisp.org>
67449
67450         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67451         * tests/test-echo.sh: Likewise.
67452
67453 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67454
67455         * gnulib-tool (IFS): Initialize early, so we don't set it to
67456         empty later.
67457         (self_abspathname): Rewrite algorithm to set it, reindent.
67458         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67459         (func_create_megatestdir): Merge some sed scripts.
67460
67461 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67464         exposed by Sun Studio 11 cc on Solaris 8.
67465
67466 2007-06-22  Bruno Haible  <bruno@clisp.org>
67467
67468         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67469         backslashes.
67470         * tests/test-echo.sh: New file.
67471
67472 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67473
67474         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67475         simplify `sed_replace_build_aux' scripts, they are portable but
67476         echoing them with `echo' is not.
67477         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67478
67479 2007-06-21  Karl Berry  <karl@gnu.org>
67480
67481         * config/srclist.txt: guess we can't handle the licenses via
67482         srclist at the moment.
67483
67484 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * MODULES.html.sh: Add include_next.
67487         * modules/include_next: New file.
67488
67489 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67490
67491         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67492         INCLUDE_NEXT.
67493         (gl_CHECK_NEXT_HEADERS): New macro.
67494         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67495         the obsolescent gl_ABSOLUTE_HEADER.
67496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67497         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67498         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67499         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67500         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67501         * m4/math_h.m4 (gl_MATH_H): Likewise.
67502         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67503         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67504         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67505         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67506         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67507         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67508         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67509         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67511         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67512         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67513         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67514         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67515         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67516         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67517         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67518         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67519         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67520         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67521         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67522         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67523         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67524         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67525         * lib/float_.h: Likewise.
67526         * lib/inttypes_.h: Likewise.
67527         * lib/math_.h: Likewise.
67528         * lib/search_.h: Likewise.
67529         * lib/signal_.h: Likewise.
67530         * lib/stdint_.h: Likewise.
67531         * lib/stdio_.h: Likewise.
67532         * lib/stdlib_.h: Likewise.
67533         * lib/string_.h: Likewise.
67534         * lib/sys_stat_.h: Likewise.
67535         * lib/sys_time_.h: Likewise.
67536         * lib/time_.h: Likewise.
67537         * lib/unistd_.h: Likewise.
67538         * lib/wchar_.h: Likewise.
67539         * lib/wctype_.h: Likewise.
67540         * lib/dirent_.h: Likewise.
67541         * lib/iconv_.h: Likewise.
67542         * lib/locale_.h: Likewise.
67543         * lib/netinet_in_.h: Likewise.
67544         * lib/sys_select_.h: Likewise.
67545         * lib/sys_socket_.h: Likewise.
67546         * lib/sysexits_.h: Likewise.
67547         * modules/fcntl (Depends-on): Depend on include_next, not
67548         absolute_header.
67549         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67550         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67551         * modules/fchdir: Likewise.
67552         * modules/float: Likewise.
67553         * modules/iconv_open: Likewise.
67554         * modules/inttypes: Likewise.
67555         * modules/locale: Likewise.
67556         * modules/math: Likewise.
67557         * modules/netinet_in: Likewise.
67558         * modules/search: Likewise.
67559         * modules/signal: Likewise.
67560         * modules/stdint: Likewise.
67561         * modules/stdio: Likewise.
67562         * modules/stdlib: Likewise.
67563         * modules/string: Likewise.
67564         * modules/sys_select: Likewise.
67565         * modules/sys_socket: Likewise.
67566         * modules/sys_stat: Likewise.
67567         * modules/sys_time: Likewise.
67568         * modules/sysexits: Likewise.
67569         * modules/time: Likewise.
67570         * modules/unistd: Likewise.
67571         * modules/wchar: Likewise.
67572         * modules/wctype: Likewise.
67573         * modules/sys_stat: Change maintainer to "all".
67574         * modules/unistd: Likewise.
67575
67576 2007-06-20  Karl Berry  <karl@gnu.org>
67577
67578         * config/srclist.txt: track www changes in license files.
67579
67580 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67581
67582         * build-aux/bootstrap: Remove stray dot.
67583         Make sure build_aux settings are honored when linking
67584         gnulib_extra_files.
67585
67586 2007-06-19  Eric Blake  <ebb9@byu.net>
67587
67588         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67589         Allow compilation on cygwin.
67590
67591 2007-06-19  Jim Meyering  <jim@meyering.net>
67592
67593         xreadlink-with-size: Remove module.  No longer used.
67594         Ex-callers now use xreadlink or mreadlink-with-size.
67595         * modules/xreadlink-with-size: Remove module.
67596         * lib/xreadlink-with-size.c: Remove file.
67597         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67598         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67599         just before the function definition *is* accurate.
67600
67601         Eliminate one way canonicalize_filename_mode could exit.
67602         * lib/canonicalize.c (canonicalize_filename_mode):
67603         Use mreadlink_with_size, not xreadlink_with_size.
67604
67605 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67606
67607         Detect porting problems to FreeBSD/arm, which has time_t wider than
67608         long int.  Original problem reported for GNU diff by Xin Li in
67609         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67610         * modules/getdate (Depends-on): Add intprops, verify.
67611         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67612         is an integer type no wider than long int.
67613
67614 2007-06-18  Jim Meyering  <jim@meyering.net>
67615
67616         New module: mreadlink-with-size.
67617         * MODULES.html.sh: Add mreadlink-with-size.
67618         * modules/mreadlink-with-size: New module
67619         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67620         not xreadlink-with-size.
67621         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67622
67623 2007-06-16  Bruno Haible  <bruno@clisp.org>
67624
67625         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67626         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67627         Reported by Gary V. Vaughan <gary@gnu.org>.
67628
67629 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67630
67631         Revamp lchown so that it lives in unistd.h where it belongs.
67632         * lib/lchown.h: Remove.
67633         * lib/dirchownmod.c: Don't include lib/lchown.h.
67634         * lib/fchownat.c: Likewise.
67635         * lib/openat.c: Likewise.
67636         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67637         does not follow symlinks.
67638         (EOPNOTSUPP): Define if not defined.
67639         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67640         is defined to 0.
67641         (lchown): New decl.
67642         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67643         Do not check for lchown decl.
67644         Set REPLACE_LCHOWN.
67645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67646         REPLACE_LCHOWN.
67647         * modules/chown: Make it clear it follows symlinks.
67648         * modules/lchown: Make it clear it doesn't follow symlinks.
67649         (Files): Remove lib/lchown.h
67650         (Depends-on): Add unistd.
67651         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67652         (Include): Include <unistd.h>, not "lchown.h".
67653         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67654         REPLACE_LCHOWN.
67655
67656 2007-06-15  Jim Meyering  <jim@meyering.net>
67657
67658         Change license (GPL to LGPL) of fsusage and dependents.
67659         * modules/fsusage (License): Change to LGPL.
67660         * modules/full-read (License): Likewise.
67661         * modules/full-write (License): Likewise.
67662         * modules/safe-read (License): Likewise.
67663         * modules/safe-write (License): Likewise.
67664
67665 2007-06-14  Ben Pfaff  <blp@gnu.org>
67666
67667         Missing part of allocsa -> malloca transition.
67668         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67669         gl_MALLOCA.
67670
67671 2007-06-12  Bruno Haible  <bruno@clisp.org>
67672
67673         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67674         to ia64, x86_64, i386.
67675         Reported by Eric Blake.
67676
67677 2007-06-12  Bruno Haible  <bruno@clisp.org>
67678
67679         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67680         cross-compiling to x86_64.
67681
67682 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67685         glitch reported by Ralf Wildenhues in
67686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67687
67688         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67689         Vin Shelton.
67690
67691 2007-06-11  Bruno Haible  <bruno@clisp.org>
67692
67693         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67694         replacement string.
67695         Reported by Eric Blake.
67696
67697 2007-06-10  Bruno Haible  <bruno@clisp.org>
67698
67699         Prepare vasnprintf code for use with Unicode strings.
67700         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67701         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67702         TYPE_U32_STRING.
67703         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67704         a_u32_string variants.
67705         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67706         * lib/printf-args.c: Don't include config.h and the specification
67707         header if PRINTF_FETCHARGS is already defined.
67708         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67709         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67710         TYPE_U16_STRING, TYPE_U32_STRING.
67711         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67712         u16_directive, u16_directives, u32_directive, u32_directives): New
67713         types.
67714         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67715         New declarations.
67716         * lib/printf-parse.c: Don't include config.h and the specification
67717         header if PRINTF_PARSE is already defined. Eliminate the set of
67718         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67719         them now. Include c-ctype.h.
67720         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67721         directive and CHAR_T_ONLY_ASCII.
67722         * lib/vasnprintf.c: Don't include config.h and the specification header
67723         if VASNPRINTF is already defined.
67724         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67725         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67726         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67727         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67728         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67729         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67730         code accordingly.
67731         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67732         pad_ourselves also in this case, with the 'c' and 's' directives, and
67733         with a different notion of "width".
67734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67735
67736 2007-06-10  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/unistr/u32-mbsnlen: New file.
67739         * lib/unistr/u32-mbsnlen.c: New file.
67740
67741         * modules/unistr/u16-mbsnlen: New file.
67742         * lib/unistr/u16-mbsnlen.c: New file.
67743
67744         * modules/unistr/u8-mbsnlen: New file.
67745         * lib/unistr/u8-mbsnlen.c: New file.
67746
67747         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67748         declarations.
67749
67750 2007-06-10  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/string_.h (mbsnlen): New declaration.
67753         * lib/mbsnlen.c: New file.
67754         * m4/mbsnlen.m4: New file.
67755         * modules/mbsnlen: New file.
67756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67757         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67758         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67759
67760 2007-06-10  Bruno Haible  <bruno@clisp.org>
67761
67762         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67763
67764 2007-06-10  Bruno Haible  <bruno@clisp.org>
67765
67766         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67767         * lib/mbuiter.h: Likewise.
67768
67769 2007-06-10  Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67772         declaration.
67773
67774 2007-06-10  Karl Berry  <karl@gnu.org>
67775
67776         * config/srclist.txt: remove gettext entries, Bruno prefers
67777         to update individually.
67778
67779 2007-06-10  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67782         'maxlen'. Ensure only length + width bytes are allocated, not
67783         length + 1 + width.
67784
67785 2007-06-09  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67788         (CHAR_T): Remove macro.
67789         (VASNPRINTF): Update.
67790
67791 2007-06-09  Bruno Haible  <bruno@clisp.org>
67792
67793         * MODULES.html.sh (Unicode string functions): Add the new modules.
67794
67795         * modules/uniconv/u32-conv-to-enc: New file.
67796         * lib/uniconv/u32-conv-to-enc.c: New file.
67797         * modules/uniconv/u32-conv-to-enc-tests: New file.
67798         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67799
67800         * modules/uniconv/u16-conv-to-enc: New file.
67801         * lib/uniconv/u16-conv-to-enc.c: New file.
67802         * lib/uniconv/u-conv-to-enc.h: New file.
67803         * modules/uniconv/u16-conv-to-enc-tests: New file.
67804         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67805
67806         * modules/uniconv/u8-conv-to-enc: New file.
67807         * lib/uniconv/u8-conv-to-enc.c: New file.
67808         * modules/uniconv/u8-conv-to-enc-tests: New file.
67809         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67810
67811         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67812         u32_conv_to_encoding): New declarations.
67813
67814 2007-06-09  Bruno Haible  <bruno@clisp.org>
67815
67816         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67817
67818 2007-06-09  Bruno Haible  <bruno@clisp.org>
67819
67820         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67821         * modules/malloca: Renamed from modules/allocsa, updated.
67822         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67823         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67824         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67825         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67826         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67827         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67828         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67829         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67830         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67831         * modules/c-strcasestr (Depends-on): Update.
67832         * lib/c-strcasestr.c: Update.
67833         * modules/c-strstr (Depends-on): Update.
67834         * lib/c-strstr.c: Update.
67835         * modules/canonicalize-lgpl (Depends-on): Update.
67836         * lib/canonicalize-lgpl.c: Update.
67837         * modules/clean-temp (Depends-on): Update.
67838         * lib/clean-temp.c: Update.
67839         * modules/csharpcomp (Depends-on): Update.
67840         * lib/csharpcomp.c: Update.
67841         * modules/csharpexec (Depends-on): Update.
67842         * lib/csharpexec.c: Update.
67843         * modules/javacomp (Depends-on): Update.
67844         * lib/javacomp.c: Update.
67845         * modules/javaexec (Depends-on): Update.
67846         * lib/javaexec.c: Update.
67847         * modules/mbscasestr (Depends-on): Update.
67848         * lib/mbscasestr.c: Update.
67849         * modules/mbsstr (Depends-on): Update.
67850         * lib/mbsstr.c: Update.
67851         * modules/setenv (Depends-on): Update.
67852         * lib/setenv.c: Update.
67853         * modules/strcasestr (Depends-on): Update.
67854         * lib/strcasestr.c: Update.
67855         * modules/striconveha (Depends-on): Update.
67856         * lib/striconveha.c: Update.
67857         * modules/relocatable-prog-wrapper (Files): Update.
67858         * lib/relocwrapper.c: Update.
67859         * build-aux/install-reloc: Update.
67860         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67861
67862 2007-06-08  Bruno Haible  <bruno@clisp.org>
67863
67864         Port to uClibc.
67865         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67866         * lib/fpurge.c (fpurge): Likewise.
67867         * lib/freading.c (freading): Likewise.
67868         * lib/fseeko.c (rpl_fseeko): Likewise.
67869         * lib/fseterr.c (fseterr): Likewise.
67870         * lib/fwriting.c (fwriting): Likewise.
67871         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67872
67873 2007-06-08  Bruno Haible  <bruno@clisp.org>
67874
67875         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67876         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67877         * modules/gettext (Files): Add m4/intlmacosx.m4.
67878
67879 2007-06-07  Bruno Haible  <bruno@clisp.org>
67880
67881         * modules/localename-tests: New file.
67882         * tests/test-localename.c: New file.
67883
67884         New module 'localename'.
67885         * lib/localename.h: New file.
67886         * lib/localename.c: New file, from GNU gettext.
67887         * m4/localename.m4: New file.
67888         * modules/localename: New file.
67889
67890 2007-06-07  Bruno Haible  <bruno@clisp.org>
67891
67892         Work around the lack of <wchar.h> on some builds of uClibc.
67893         * doc/headers/wchar.texi: Update.
67894         * lib/wchar_.h: Include <wchar.h> only if it exists.
67895         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67896         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67897         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67898         doesn't exist.
67899         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67900         * modules/mbfile (Depends-on): Add wchar.
67901         * modules/mbiter (Depends-on): Likewise.
67902         * modules/mbuiter (Depends-on): Likewise.
67903         Reported by Simon Josefsson.
67904
67905 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67906
67907         Work around problem reported by Steven M. Schweda in
67908         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67909         Tru64 5.1B with the Compaq compiler environment installed declares
67910         an 'isblank' function but does not define it in the C library.
67911         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67912         * lib/regex_internal.h (isblank): Likewise.
67913         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67914         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67915
67916 2007-06-05  Bruno Haible  <bruno@clisp.org>
67917
67918         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67919         ia64.
67920         * modules/printf-safe: New file.
67921         * modules/fprintf-posix (Depends-on): Add printf-safe.
67922         * modules/printf-posix (Depends-on): Likewise.
67923         * modules/snprintf-posix (Depends-on): Likewise.
67924         * modules/sprintf-posix (Depends-on): Likewise.
67925         * modules/vasnprintf-posix (Depends-on): Likewise.
67926         * modules/vasprintf-posix (Depends-on): Likewise.
67927         * modules/vfprintf-posix (Depends-on): Likewise.
67928         * modules/vprintf-posix (Depends-on): Likewise.
67929         * modules/vsnprintf-posix (Depends-on): Likewise.
67930         * modules/vsprintf-posix (Depends-on): Likewise.
67931         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67932         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67933         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67934         "no" on i386, x86_64, ia64.
67935         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67936         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67937         on i386, x86_64, ia64.
67938         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67939         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67940         on i386, x86_64, ia64.
67941         * tests/test-vasnprintf-posix.c: Include float.h.
67942         (LDBL80_WORDS): New macro.
67943         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67944         on i386, x86_64, ia64.
67945         * tests/test-vasprintf-posix.c: Include float.h.
67946         (LDBL80_WORDS): New macro.
67947         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67948         on i386, x86_64, ia64.
67949         * tests/test-snprintf-posix.c: Include float.h.
67950         * tests/test-sprintf-posix.c: Likewise.
67951         * tests/test-vsnprintf-posix.c: Likewise.
67952         * tests/test-vsprintf-posix.c: Likewise.
67953
67954 2007-06-05  Bruno Haible  <bruno@clisp.org>
67955
67956         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67957         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67958         non-IEEE numbers on i386, x86_64, ia64.
67959         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67960         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67961         * tests/test-isnanl.h: Include float.h.
67962         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67963
67964 2007-06-05  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67967         also the %a / %A. Handle the %a / %A code before this extra handling.
67968
67969 2007-06-05  Bruno Haible  <bruno@clisp.org>
67970
67971         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67972         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67973
67974 2007-06-05  Bruno Haible  <bruno@clisp.org>
67975
67976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67977         typo in variable name.
67978
67979 2007-06-05  Eric Blake  <ebb9@byu.net>
67980
67981         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67982         Reported by Simon Josefsson.
67983
67984 2007-06-04  Bruno Haible  <bruno@clisp.org>
67985
67986         Avoid test failures on some PowerPC platforms.
67987         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67988         Define differently for PowerPC.
67989         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67990         Reported by Gary V. Vaughan <gary@gnu.org>.
67991
67992 2007-06-02  Bruno Haible  <bruno@clisp.org>
67993
67994         Fix test-stdint failure on FreeBSD/ia64.
67995         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67996         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67997         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67998         * doc/headers/stdint.texi: Update.
67999
68000 2007-06-01  Bruno Haible  <bruno@clisp.org>
68001
68002         * tests/test-binary-io.c (main): Pass a third argument to open().
68003         Reported by Gary V. Vaughan <gary@gnu.org>.
68004
68005 2007-06-01  Bruno Haible  <bruno@clisp.org>
68006
68007         * doc/functions/frexpl.texi: Update for mingw.
68008
68009 2007-06-01  Bruno Haible  <bruno@clisp.org>
68010
68011         * tests/test-lseek.c (main): Disable test of errno for invalid third
68012         argument.
68013         * doc/functions/lseek.texi: Update.
68014         Reported by Gary V. Vaughan <gary@gnu.org>.
68015
68016 2007-05-28  Bruno Haible  <bruno@clisp.org>
68017
68018         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68019
68020 2007-05-31  Eric Blake  <ebb9@byu.net>
68021
68022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68023         cross compiling.
68024
68025 2007-05-30  Eric Blake  <ebb9@byu.net>
68026         and Bruno Haible  <bruno@clisp.org>
68027
68028         Work around mingw test failures exposed by m4-1.4.9b.
68029         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68030         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68031         moment.
68032
68033 2007-05-30  Bruno Haible  <bruno@clisp.org>
68034
68035         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68036         assuming that they are closed. Needed on HP-UX 11.
68037
68038 2007-05-29  Bruno Haible  <bruno@clisp.org>
68039
68040         Fix a problem with #include_next.
68041         * lib/dirent_.h: Split the double-inclusion guard.
68042         * lib/fcntl_.h: Likewise.
68043         * lib/float_.h: Likewise.
68044         * lib/iconv_.h: Likewise.
68045         * lib/inttypes_.h: Likewise.
68046         * lib/locale_.h: Likewise.
68047         * lib/math_.h: Likewise.
68048         * lib/netinet_in_.h: Likewise.
68049         * lib/search_.h: Likewise.
68050         * lib/signal_.h: Likewise.
68051         * lib/stdint_.h: Likewise.
68052         * lib/stdio_.h: Likewise.
68053         * lib/stdlib_.h: Likewise.
68054         * lib/string_.h: Likewise.
68055         * lib/sys_select_.h: Likewise.
68056         * lib/sys_socket_.h: Likewise.
68057         * lib/sys_stat_.h: Likewise.
68058         * lib/sys_time_.h: Likewise.
68059         * lib/sysexits_.h: Likewise.
68060         * lib/time_.h: Likewise.
68061         * lib/unistd_.h: Likewise.
68062         * lib/wchar_.h: Likewise.
68063         * lib/wctype_.h: Likewise.
68064
68065 2007-05-29  Bruno Haible  <bruno@clisp.org>
68066
68067         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68068         for the moment.
68069
68070 2007-05-29  Bruno Haible  <bruno@clisp.org>
68071
68072         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68073         invocation.
68074         Reported by Eric Blake.
68075
68076 2007-05-29  Bruno Haible  <bruno@clisp.org>
68077
68078         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68079         compiling case.
68080
68081 2007-05-29  Eric Blake  <ebb9@byu.net>
68082             Bruno Haible  <bruno@clisp.org>
68083
68084         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68085         cross compiles.
68086
68087 2007-05-28  Eric Blake  <ebb9@byu.net>
68088
68089         * modules/closein-tests (test_closein_LDADD): Support test on
68090         cygwin with libtool.
68091
68092 2007-05-28  Bruno Haible  <bruno@clisp.org>
68093
68094         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68095         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68096         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68097         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68098         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68099         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68100         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68101         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68102         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68103
68104 2007-05-28  Eric Blake  <ebb9@byu.net>
68105
68106         Unconditionally include <config.h> in unit tests.
68107         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68108         * tests/test-allocsa.c, tests/test-arcfour.c,
68109         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68110         tests/test-array_list.c, tests/test-array_oset.c,
68111         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68112         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68113         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68114         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68115         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68116         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68117         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68118         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68119         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68120         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68121         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68122         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68123         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68124         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68125         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68126         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68127         test-md5.c, test-memmem.c, test-printf-posix.c,
68128         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68129         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68130         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68131         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68132         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68133         test-vasnprintf-posix2.c, test-vasnprintf.c,
68134         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68135         test-vfprintf-posix.c, test-vprintf-posix.c,
68136         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68137         test-xvasprintf.c: Likewise.
68138
68139 2007-05-28  Bruno Haible  <bruno@clisp.org>
68140
68141         * gnulib-tool (func_import): Remember the --with-tests command-line
68142         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68143         Reported by Eric Blake.
68144
68145 2007-05-28  Bruno Haible  <bruno@clisp.org>
68146
68147         * modules/ftell-tests: New file.
68148         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68149         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68150
68151         * lib/ftell.c: New file.
68152         * modules/ftell: New file.
68153         * m4/ftell.m4: New file.
68154         * doc/functions/ftell.texi: Update.
68155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68156         REPLACE_FTELL.
68157         * lib/stdio_.h (rpl_ftell): New declaration.
68158         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68159         REPLACE_FTELL.
68160
68161 2007-05-28  Eric Blake  <ebb9@byu.net>
68162
68163         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68164
68165 2007-05-28  Bruno Haible  <bruno@clisp.org>
68166
68167         * modules/fseek-tests: New file.
68168         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68169         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68170
68171         * lib/fseek.c: New file.
68172         * modules/fseek: New file.
68173         * m4/fseek.m4: New file.
68174         * doc/functions/fseek.texi: Update.
68175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68176         REPLACE_FSEEK.
68177         * lib/stdio_.h (rpl_fseek): New declaration.
68178         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68179         REPLACE_FSEEK.
68180
68181 2007-05-28  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/stdio_.h (fflush): More comments.
68184
68185 2007-05-28  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68188         runtime test.
68189
68190 2007-05-28  Eric Blake  <ebb9@byu.net>
68191
68192         Improve lseek module.
68193         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68194         * lib/unistd_.h (lseek): Scale back link warning message.
68195         * tests/test-lseek.c: Beef up test.
68196         * tests/test-lseek.sh: Exercise more facets of lseek.
68197         Reported by Bruno Haible.
68198
68199 2007-05-28  Bruno Haible  <bruno@clisp.org>
68200
68201         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68202         to define.
68203
68204 2007-05-27  Bruno Haible  <bruno@clisp.org>
68205
68206         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68207
68208 2007-05-27  Bruno Haible  <bruno@clisp.org>
68209
68210         * modules/openmp: New file.
68211         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68212         Noah Misch.
68213
68214 2007-05-26  Bruno Haible  <bruno@clisp.org>
68215
68216         * modules/chdir-long (Depends-on): Add fchdir.
68217         * modules/chdir-safer (Depends-on): Likewise.
68218         * modules/fts (Depends-on): Likewise.
68219         * modules/fts-lgpl (Depends-on): Likewise.
68220         * modules/openat (Depends-on): Likewise.
68221         * modules/savewd (Depends-on): Likewise.
68222
68223 2007-05-24  Eric Blake  <ebb9@byu.net>
68224
68225         Fix lseek on mingw.
68226         * modules/lseek: New module.
68227         * m4/lseek.m4: New file.
68228         * lib/lseek.c: New file.
68229         * modules/lseek-tests: New file.
68230         * tests/test-lseek.c: New file.
68231         * tests/test-lseek.sh: New file.
68232         * MODULES.html.sh: Document lseek module.
68233         * modules/fflush (Depends-on): Add lseek, fseeko.
68234         * modules/fseeko (Depends-on): Likewise.
68235         * modules/ftello (Depends-on): Likewise.
68236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68237         broken.
68238         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68239         broken.
68240         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68241         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68242         * lib/ftello.c (rpl_ftello): Likewise.
68243         * tests/test-fseeko.c (main): Test this.
68244         * tests/test-fseeko.sh: Likewise.
68245         * tests/test-ftello.c (main): Likewise.
68246         * tests/test-ftello.sh: Likewise.
68247         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68248         implies replacing fseek.
68249         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68250         HAVE_FTELLO.
68251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68252         * modules/unistd (Makefile.am): Likewise.
68253         * lib/unistd_.h (lseek): Declare a replacement.
68254         * doc/functions/lseek.texi (lseek): Document this fix.
68255         * doc/functions/fseek.texi (fseek): Likewise.
68256         * doc/functions/ftell.texi (ftell): Likewise.
68257
68258 2007-05-24  Bruno Haible  <bruno@clisp.org>
68259
68260         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68261         in the printed representation of a NaN.
68262         * tests/test-vasprintf-posix.c (test_function): Likewise.
68263         * tests/test-snprintf-posix.h (test_function): Likewise.
68264         * tests/test-sprintf-posix.h (test_function): Likewise.
68265         Reported by Eric Blake.
68266
68267 2007-05-23  Eric Blake  <ebb9@byu.net>
68268
68269         Fix fseeko/ftello on cygwin 1.5.24.
68270         * doc/functions/fseeko.texi (fseeko): Document the fix.
68271         * doc/functions/ftello.texi (ftello): Document the fix.
68272         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68273         * doc/functions/stdout.text (stdout): New file.
68274         * doc/functions/stderr.text (stderr): New file.
68275         * doc/gnulib.texi (Function Substitutes): Use new files.
68276         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68277         prior to 1.7.0.
68278         * tests/test-ftello.c (main): Likewise for ftello.
68279         * tests/test-fseeko.sh: New file.
68280         * tests/test-ftello.sh: New file.
68281         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68282         with seekable stdin.
68283         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68284         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68285         (gl_REPLACE_FSEEKO): New macro.
68286         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68287         * modules/fseeko (Files): Distribute fseeko.c.
68288         * modules/ftello (Files): Distribute ftello.c.
68289         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68290         mode.
68291         * lib/ftello.c (rpl_ftello): New file.
68292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68293         fseeko, ftello.
68294         (gl_STDIN_LARGE_OFFSET): New macro.
68295         * modules/stdio (Makefile.am): Perform the replacement.
68296         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68297
68298 2007-05-23  Bruno Haible  <bruno@clisp.org>
68299
68300         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68301         GNULIB_POSIXCHECK is defined.
68302
68303 2007-05-21  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68306         Check also the output for NaN arguments. When cross-compiling, guess
68307         no on IRIX.
68308         * lib/vasnprintf.c: Update comments.
68309         * tests/test-vasnprintf-posix.c (strisnan): New function.
68310         (test_function): Use it.
68311         * tests/test-vasprintf-posix.c (strisnan): New function.
68312         (test_function): Use it.
68313         * tests/test-snprintf-posix.h (strisnan): New function.
68314         (test_function): Use it.
68315         * tests/test-sprintf-posix.h (strisnan): New function.
68316         (test_function): Use it.
68317         Reported by Eric Blake.
68318
68319 2007-05-20  Bruno Haible  <bruno@clisp.org>
68320
68321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68322         numbers that fails on BeOS.
68323         * doc/functions/frexpl.texi: Update.
68324
68325 2007-05-20  Jim Meyering  <jim@meyering.net>
68326
68327         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68328         forced upon us by glibc-2.6.
68329
68330 2007-05-20  Bruno Haible  <bruno@clisp.org>
68331
68332         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68333         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68334         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68335         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68336         NEED_PRINTF_INFINITE.
68337         (is_infinitel): New function.
68338         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68340         gl_PREREQ_VASNPRINTF_INFINITE.
68341         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68343         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68344         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68345         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68346         gl_PREREQ_VASNPRINTF_INFINITE.
68347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68349         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68350         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68351         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68352         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68353         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68354         * doc/functions/fprintf.texi: Update.
68355         * doc/functions/printf.texi: Update.
68356         * doc/functions/snprintf.texi: Update.
68357         * doc/functions/sprintf.texi: Update.
68358         * doc/functions/vfprintf.texi: Update.
68359         * doc/functions/vprintf.texi: Update.
68360         * doc/functions/vsnprintf.texi: Update.
68361         * doc/functions/vsprintf.texi: Update.
68362
68363 2007-05-20  Bruno Haible  <bruno@clisp.org>
68364
68365         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68366         was not found in libc.
68367         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68368
68369 2007-05-20  Bruno Haible  <bruno@clisp.org>
68370
68371         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68372         printed as "-nan" instead of "nan".
68373         * tests/test-vasprintf-posix.c (test_function): Likewise.
68374         * tests/test-snprintf-posix.h (test_function): Likewise.
68375         * tests/test-sprintf-posix.h (test_function): Likewise.
68376         Needed for HP-UX 11.
68377
68378 2007-05-20  Jim Meyering  <jim@meyering.net>
68379
68380         Fix buggy test for the fchownat-deref bug.
68381         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68382         symlink required for the run-test.  Without it, this test would
68383         always declare that fchownat doesn't work, and client code would
68384         unnecessarily use the replacement function with fixed libc.
68385         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68386         Reported by Greg Schafer.
68387
68388 2007-05-19  Bruno Haible  <bruno@clisp.org>
68389
68390         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68391         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68392         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68393         Needed for IRIX 6.5 and Solaris 2.5.1.
68394
68395 2007-05-19  Bruno Haible  <bruno@clisp.org>
68396
68397         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68398         (test_function): Skip tests involving -0.0 on platforms where
68399         -0.0 = 0.0.
68400         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68401         (test_function): Skip tests involving -0.0 on platforms where
68402         -0.0 = 0.0.
68403         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68404         (test_function): Skip tests involving -0.0 on platforms where
68405         -0.0 = 0.0.
68406         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68407         (test_function): Skip tests involving -0.0 on platforms where
68408         -0.0 = 0.0.
68409         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68410         tests.
68411         * tests/test-printf-posix.h (test_function): Likewise.
68412         * tests/test-printf-posix.output: Remove all -0.0 related results.
68413         Needed for IRIX 6.5.
68414
68415 2007-05-19  Bruno Haible  <bruno@clisp.org>
68416
68417         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68418         printed as "nan0x7fffffff" instead of "nan".
68419         * tests/test-vasprintf-posix.c (test_function): Likewise.
68420         * tests/test-snprintf-posix.h (test_function): Likewise.
68421         * tests/test-sprintf-posix.h (test_function): Likewise.
68422         * tests/test-fprintf-posix.h (NaN): Remove macro.
68423         (test_function): Remove all NaN related tests.
68424         * tests/test-printf-posix.h (NaN): Remove macro.
68425         (test_function): Remove all NaN related tests.
68426         * tests/test-printf-posix.output: Remove all NaN related results.
68427         Needed for IRIX 6.5.
68428
68429 2007-05-19  Bruno Haible  <bruno@clisp.org>
68430
68431         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68433
68434 2007-05-19  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/float_.h: New file.
68437         * m4/float_h.m4: New file.
68438         * modules/float: New file.
68439         * modules/isnanl (Dependencies): Add float.
68440         * modules/isnanl-nolibm (Dependencies): Likewise.
68441         * modules/mathl (Dependencies): Likewise.
68442         * modules/printf-frexpl (Dependencies): Likewise.
68443         * modules/signbit (Dependencies): Likewise.
68444         * modules/vasnprintf (Dependencies): Likewise.
68445         * doc/headers/float.texi: Update.
68446
68447 2007-05-19  Jim Meyering  <jim@meyering.net>
68448
68449         * lib/utimens.c (gl_futimens): Rename from futimens,
68450         now that glibc-2.6 declares futimens.
68451         * lib/utimens.h: Likewise.
68452
68453 2007-05-19  Bruno Haible  <bruno@clisp.org>
68454
68455         Avoid test failures on mingw.
68456         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68457         * tests/test-printf-posix.sh: Likewise.
68458         * tests/test-vfprintf-posix.sh: Likewise.
68459         * tests/test-vprintf-posix.sh: Likewise.
68460
68461 2007-05-19  Bruno Haible  <bruno@clisp.org>
68462
68463         Fix *printf result for NaN, Inf, -0.0 on mingw.
68464         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68465         * lib/vasnprintf.c: Include math.h and isnan.h.
68466         (is_infinite_or_zero): New function.
68467         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68468         values in the %f, %F, %e, %E, %g, %G directives.
68469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68471         gl_PRINTF_INFINITE and test its result. Invoke
68472         gl_PREREQ_VASNPRINTF_INFINITE.
68473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68474         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68475         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68476         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68480         * doc/functions/fprintf.texi: Update.
68481         * doc/functions/printf.texi: Update.
68482         * doc/functions/snprintf.texi: Update.
68483         * doc/functions/sprintf.texi: Update.
68484         * doc/functions/vfprintf.texi: Update.
68485         * doc/functions/vprintf.texi: Update.
68486         * doc/functions/vsnprintf.texi: Update.
68487         * doc/functions/vsprintf.texi: Update.
68488
68489 2007-05-19  Bruno Haible  <bruno@clisp.org>
68490
68491         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68492         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68493         Instead of multiplying with 10^k, set extra_zeroes to k.
68494         (scale10_round_long_double): Remove function.
68495
68496 2007-05-18  Bruno Haible  <bruno@clisp.org>
68497
68498         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68499         introduced on 2007-05-06.
68500
68501 2007-05-18  Bruno Haible  <bruno@clisp.org>
68502
68503         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68504         %g directives.
68505         * tests/test-vasprintf-posix.c (test_function): Likewise.
68506         * tests/test-snprintf-posix.h (test_function): Likewise.
68507         * tests/test-sprintf-posix.h (test_function): Likewise.
68508
68509 2007-05-18  Bruno Haible  <bruno@clisp.org>
68510
68511         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68512         (strmatch): New function.
68513         (test_function): Test the %f directive on numbers of various exponents.
68514         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68515         (strmatch): New function.
68516         (test_function): Test the %f directive on numbers of various exponents.
68517         * tests/test-snprintf-posix.h (strmatch): New function.
68518         (test_function): Test the %f directive on numbers of various exponents.
68519         * tests/test-sprintf-posix.h (strmatch): New function.
68520         (test_function): Test the %f directive on numbers of various exponents.
68521         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68522         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68523         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68524         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68525
68526 2007-05-18  Bruno Haible  <bruno@clisp.org>
68527
68528         Add support for 'long double' number output.
68529         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68530         * lib/vasnprintf.c: Include math.h and float+.h.
68531         (mp_limb_t): New type.
68532         (GMP_LIMB_BITS): New macro.
68533         (mp_twolimb_t): New type.
68534         (GMP_TWOLIMB_BITS): New macro.
68535         (mpn_t): New type.
68536         (multiply, divide, convert_to_decimal, decode_long_double,
68537         scale10_round_long_double, scale10_round_decimal_long_double,
68538         floorlog10l): New functions.
68539         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68540         for the %f, %F, %e, %E, %g, %G directives.
68541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68543         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68544         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68552         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68553         * modules/snprintf-posix (Depends-on): Likewise.
68554         * modules/sprintf-posix (Depends-on): Likewise.
68555         * modules/vasnprintf-posix (Depends-on): Likewise.
68556         * modules/vasprintf-posix (Depends-on): Likewise.
68557         * modules/vfprintf-posix (Depends-on): Likewise.
68558         * modules/vsnprintf-posix (Depends-on): Likewise.
68559         * modules/vsprintf-posix (Depends-on): Likewise.
68560         * modules/vasnprintf (Files): Add lib/float+.h.
68561         * doc/functions/fprintf.texi: Update.
68562         * doc/functions/printf.texi: Update.
68563         * doc/functions/snprintf.texi: Update.
68564         * doc/functions/sprintf.texi: Update.
68565         * doc/functions/vfprintf.texi: Update.
68566         * doc/functions/vprintf.texi: Update.
68567         * doc/functions/vsnprintf.texi: Update.
68568         * doc/functions/vsprintf.texi: Update.
68569
68570 2007-05-18  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68573
68574 2007-05-18  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68577         for printing 64-bit integers. Needed for mingw.
68578
68579 2007-05-18  Bruno Haible  <bruno@clisp.org>
68580
68581         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68582         gl_FUNC_FREXPL_WORKS.
68583         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68584
68585 2007-05-18  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/frexpl-nolibm-tests: New file.
68588
68589         * modules/frexpl-nolibm: New file.
68590         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68591
68592 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68595         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68596         GCC 4.2, which otherwise issues a lot of warnings.
68597         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68598         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68599         Likewise.
68600         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68601         * modules/iconv_open (iconv.h): Likewise.
68602         * modules/locale (locale.h): Likewise.
68603         * modules/netinet_in (netinet/in.h): Likewise.
68604         * modules/sys_select (sys_select.h): Likewise.
68605         * modules/sys_socket (sys/socket.h): Likewise.
68606         * modules/sys_stat (sys/stat.h): Likewise.
68607         * modules/sysexits (sysexits.h): Likewise.
68608         * modules/unistd (unistd.h): Likewise.
68609
68610 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68611
68612         * modules/closein-tests (Makefile.am): Distribute
68613         `test-closein.sh'.
68614
68615 2007-05-17  Bruno Haible  <bruno@clisp.org>
68616
68617         * tests/test-printf-posix.output: Renamed from
68618         tests/test-fprintf-posix.out.
68619         * modules/fprintf-posix-tests: Update.
68620         * modules/printf-posix-tests: Update.
68621         * modules/vfprintf-posix-tests: Update.
68622         * modules/vprintf-posix-tests: Update.
68623         * tests/test-fprintf-posix.sh: Update.
68624         * tests/test-printf-posix.sh: Update.
68625         * tests/test-vfprintf-posix.sh: Update.
68626         * tests/test-vprintf-posix.sh: Update.
68627         Reported by Ralf Wildenhues.
68628
68629 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68632         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68633         GCC 4.2, which otherwise issues a lot of warnings.
68634         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68635         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68636         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68637         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68638         it should no longer be needed.
68639         * lib/string_.h: Likewise.
68640         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68641         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68642         * modules/inttypes (inttypes.h): Likewise.
68643         * modules/math (math.h): Likewise.
68644         * modules/search (search.h): Likewise.
68645         * modules/signal (signal.h): Likewise.
68646         * modules/stdint (stdint.h): Likewise.
68647         * modules/stdio (stdio.h): Likewise.
68648         * modules/stdlib (stdlib.h): Likewise.
68649         * modules/string (string.h): Likewise.
68650         * modules/sys_time (sys/time.h): Likewise.
68651         * modules/time (time.h): Likewise.
68652         * modules/wchar (wchar.h): Likewise.
68653         * modules/wctype (wtype.h): Likewise.
68654
68655 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68656
68657         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68658
68659 2007-05-13  Bruno Haible  <bruno@clisp.org>
68660
68661         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68662         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68663         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68664         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68665         (gl_PREREQ_STRTOK_R): Don't require it here.
68666
68667 2007-05-13  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68670         when used in C++ mode.
68671
68672 2007-05-12  Bruno Haible  <bruno@clisp.org>
68673
68674         * lib/linebuffer.h: Tweak doc.
68675         * lib/linebuffer.c: Likewise.
68676
68677 2007-05-12  James Youngman  <jay@gnu.org>
68678
68679         * lib/linebuffer.c (readlinebuffer_delim): New function,
68680         like readlinebuffer, but use a caller-specified delimiter.
68681         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68682         as the delimiter.
68683         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68684
68685 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68686
68687         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68688         * modules/openat (Files): Remove openat-die.c.
68689         (Depends-on): Add openat-die.
68690         * modules/openat-die: New module.
68691
68692 2007-05-06  Bruno Haible  <bruno@clisp.org>
68693
68694         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68695         Update with info about Cygwin.
68696         * doc/functions/fprintf.texi: Update.
68697         * doc/functions/printf.texi: Update.
68698         * doc/functions/snprintf.texi: Update.
68699         * doc/functions/sprintf.texi: Update.
68700         * doc/functions/vfprintf.texi: Update.
68701         * doc/functions/vprintf.texi: Update.
68702         * doc/functions/vsnprintf.texi: Update.
68703         * doc/functions/vsprintf.texi: Update.
68704         Reported by Eric Blake.
68705
68706 2007-05-06  Bruno Haible  <bruno@clisp.org>
68707
68708         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68709         padding ourselves for the floating-point directives.
68710         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68712         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68713         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68714         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68716         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68722         * tests/test-snprintf-posix.h (test_function): Also check the width
68723         and some flags in the %f directive.
68724         * tests/test-sprintf-posix.h (test_function): Likewise.
68725         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68726         * tests/test-vasprintf-posix.c (test_function): Likewise.
68727         * doc/functions/fprintf.texi: Update.
68728         * doc/functions/printf.texi: Update.
68729         * doc/functions/snprintf.texi: Update.
68730         * doc/functions/sprintf.texi: Update.
68731         * doc/functions/vfprintf.texi: Update.
68732         * doc/functions/vprintf.texi: Update.
68733         * doc/functions/vsnprintf.texi: Update.
68734         * doc/functions/vsprintf.texi: Update.
68735
68736 2007-05-06  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68739         pass the ' flag character to sprintf or snprintf.
68740         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68743         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68744         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68745         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68746         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68752         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68753         flag.
68754         * tests/test-sprintf-posix.h (test_function): Likewise.
68755         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68756         * tests/test-vasprintf-posix.c (test_function): Likewise.
68757         * doc/functions/fprintf.texi: Update.
68758         * doc/functions/printf.texi: Update.
68759         * doc/functions/snprintf.texi: Update.
68760         * doc/functions/sprintf.texi: Update.
68761         * doc/functions/vfprintf.texi: Update.
68762         * doc/functions/vprintf.texi: Update.
68763         * doc/functions/vsnprintf.texi: Update.
68764         * doc/functions/vsprintf.texi: Update.
68765
68766 2007-05-01  Bruno Haible  <bruno@clisp.org>
68767
68768         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68769
68770 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68773         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68774
68775 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68778         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68780
68781 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68782
68783         * lib/argp-help.c (struct hol_entry): New member `ord'.
68784         (HOL_ENTRY_PTRCMP): Use ord for comparison
68785         (hol_sort): Initialize ord.
68786
68787 2007-05-01  Bruno Haible  <bruno@clisp.org>
68788
68789         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68790         Reported by Eric Blake.
68791         * doc/gnulib.texi (Function Substitutes): Update.
68792
68793 2007-05-01  Bruno Haible  <bruno@clisp.org>
68794
68795         * doc/functions.texi: Remove file, now redundant through
68796         doc/functions/*.texi.
68797
68798 2007-05-01  Bruno Haible  <bruno@clisp.org>
68799
68800         * modules/argp (Depends-on): Add sleep.
68801
68802 2007-05-01  Bruno Haible  <bruno@clisp.org>
68803
68804         * modules/sleep-tests: New file.
68805         * tests/test-sleep.c: New file.
68806
68807         * modules/sleep: New file.
68808         * lib/sleep.c: New file.
68809         * m4/sleep.m4: New file.
68810         * lib/unistd_.h (sleep): New declaration.
68811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68812         HAVE_SLEEP.
68813         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68814         * doc/functions/sleep.texi: Document the sleep module.
68815
68816 2007-05-01  Bruno Haible  <bruno@clisp.org>
68817
68818         * lib/sigprocmask.h: Remove file.
68819         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68820         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68821         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68822         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68823         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68824         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68825         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68826         HAVE_SIGSET_T as a shell variable.
68827         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68828         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68829         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68830         (Depends-on): Add signal. Remove verify.
68831         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68832         (Include): Mention <signal.h> instead of sigprocmask.h.
68833         * NEWS: Mention the change.
68834         * lib/fatal-signal.c: Don't include sigprocmask.h.
68835
68836 2007-05-01  Bruno Haible  <bruno@clisp.org>
68837
68838         * modules/signal: New file.
68839         * lib/signal_.h: New file.
68840         * m4/signal_h.m4: New file.
68841
68842 2007-05-01  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68845         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68846         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68847         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68848
68849 2007-05-01  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68852         configure time.
68853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68854         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68855         * modules/sys_stat (Makefile.am): Substitute their values into
68856         sys/stat.h.
68857
68858 2007-05-01  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68861         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68862         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68863
68864 2007-05-01  Bruno Haible  <bruno@clisp.org>
68865
68866         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68867         'assert' module here.
68868
68869 2007-05-01  Bruno Haible  <bruno@clisp.org>
68870
68871         * doc/functions/*.texi: New files.
68872         * doc/functions/google-ranking.txt: New file.
68873         * doc/gnulib.texi (Function Substitutes): New chapter.
68874         (ctime, inet_ntoa): Remove sections.
68875         * doc/ctime.texi: Remove file.
68876         * doc/inet_ntoa.texi: Remove file.
68877         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68878         dependencies.
68879         (%.info): New rule, specifying a --reference-limit.
68880
68881 2007-05-01  Bruno Haible  <bruno@clisp.org>
68882
68883         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68884
68885 2007-05-01  Bruno Haible  <bruno@clisp.org>
68886
68887         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68888         the portability of 'mkdir' to mingw systems.
68889
68890 2007-05-01  Bruno Haible  <bruno@clisp.org>
68891
68892         * doc/headers/google-ranking.txt: New file.
68893
68894 2007-04-30  Eric Blake  <ebb9@byu.net>
68895
68896         Prefer fseeko to fseek.
68897         * modules/getpass (Depends-on): Add fseeko.
68898         * lib/getpass.c (getpass): Use fseeko, not fseek.
68899
68900 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68901
68902         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68903         assumes the sorting is stable, while most qsort implementations
68904         are not.  Use argument addresses to ensure they never compare as
68905         equal.
68906
68907         * tests/test-argp-2.sh (usage-indent test): Fix output
68908         (func_compare): Restore diff options
68909         * tests/test-argp.c: Restore #include "progname.h"
68910
68911 2007-04-29  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68914         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68915         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68917         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68918         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68919         (TESTS, check_PROGRAMS): Add test-snprintf.
68920         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68921         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68922         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68923         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68924         assertions that fail on HP-UX, OSF/1, or IRIX.
68925         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68926
68927 2007-04-29  Bruno Haible  <bruno@clisp.org>
68928
68929         * MODULES.html.sh (posix_functions): Remove 'contents'.
68930
68931 2007-04-29  Karl Berry  <karl@gnu.org>
68932
68933         * config/srclist.txt (gendocs_template_min): new entry.
68934
68935 2007-04-29  Bruno Haible  <bruno@clisp.org>
68936
68937         Work around fpurge bug on BSD systems.
68938         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68939         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68940         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68941         fpurge to rpl_fpurge if the system already has this function.
68942         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68943         the case where the system already has this function. Correct invariants
68944         on BSD systems.
68945         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68946         BSD systems.
68947
68948 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68949
68950         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68951         proposed by Sven Verdoolaege.
68952
68953         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68954         options.
68955         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68956         (usage and help tests): Update
68957
68958 2007-04-29  Bruno Haible  <bruno@clisp.org>
68959
68960         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68961         Print more information in case of failure. Disable a test on BeOS.
68962
68963 2007-04-29  Bruno Haible  <bruno@clisp.org>
68964
68965         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68966         This helps debugging on systems on which no gdb is available.
68967
68968 2007-04-29  Bruno Haible  <bruno@clisp.org>
68969
68970         * lib/freading.h: Improve comments.
68971         * lib/fwriting.h: Likewise.
68972         * tests/test-freading.c (main): Don't check freading immediately after
68973         repositioning. Needed for glibc.
68974
68975 2007-04-29  Bruno Haible  <bruno@clisp.org>
68976
68977         * lib/freading.c (freading): Trivial simplification.
68978
68979 2007-04-28  Bruno Haible  <bruno@clisp.org>
68980
68981         * tests/test-fwriting.c (main): Also test the interaction between
68982         fflush and fwriting.
68983         * modules/fwriting-tests (Depends-on): Add fflush.
68984
68985         * tests/test-freading.c (main): Also test the interaction between
68986         fflush and freading.
68987         * modules/freading-tests (Depends-on): Add fflush.
68988
68989 2007-04-28  Bruno Haible  <bruno@clisp.org>
68990
68991         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68992         fseeko and ftello.
68993         Suggested by Eric Blake.
68994
68995 2007-04-28  Jim Meyering  <jim@meyering.net>
68996
68997         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68998         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68999         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69000
69001 2007-04-27  Eric Blake  <ebb9@byu.net>
69002
69003         * doc/headers/assert.texi (assert.h): Document assert module use.
69004
69005 2007-04-27  Bruno Haible  <bruno@clisp.org>
69006
69007         * doc/headers/*.texi: New files.
69008         * doc/gnulib.texi (Header File Substitutes): New chapter.
69009         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69010         dependencies.
69011         (standards.info ,standards.html, standards.dvi): Update dependencies.
69012         (mostlyclean, clean): New targets.
69013
69014 2007-04-27  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69017         * modules/sysexits (Files, Makefile.am): Update.
69018
69019         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69020         * modules/sys_socket (Files, Makefile.am): Update.
69021
69022         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69023         * modules/sys_stat (Files, Makefile.am): Update.
69024
69025 2007-04-27  Eric Blake  <ebb9@byu.net>
69026
69027         * lib/freading.h: Improve comments.
69028         * lib/fwriting.h: Likewise.
69029         * lib/fflush.c: Likewise.
69030
69031         Fix closein for mingw.
69032         * modules/closein-tests: Add tests for closein.
69033         * tests/test-closein.c: New file.
69034         * tests/test-closein.sh: Likewise.
69035         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69036         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69037
69038 2007-04-27  Bruno Haible  <bruno@clisp.org>
69039
69040         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69041         version is < 6.
69042         * lib/math_.h [__DECC]: Likewise.
69043         * lib/stdio_.h [__DECC]: Likewise.
69044         * lib/stdlib_.h [__DECC]: Likewise.
69045         * lib/string_.h [__DECC]: Likewise.
69046         * lib/time_.h [__DECC]: Likewise.
69047         * lib/wchar_.h [__DECC]: Likewise.
69048         * lib/wctype_.h [__DECC]: Likewise.
69049
69050 2007-04-27  Bruno Haible  <bruno@clisp.org>
69051
69052         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69053
69054 2007-04-27  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/fflush.c: Add comments.
69057         * modules/fpurge-tests (Depends-on): Add fflush.
69058         * modules/freadable-tests (Depends-on): Likewise.
69059         * modules/fwritable-tests (Depends-on): Likewise.
69060
69061 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69062
69063         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69064         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69065         Report by Bruno Haible <bruno@clisp.org>.
69066
69067 2007-04-26  Eric Blake  <ebb9@byu.net>
69068
69069         Fix fflush on mingw.
69070         * modules/fflush (Depends-on): Add freading.
69071         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69072         but unread data.
69073
69074 2007-04-26  Eric Blake  <ebb9@byu.net>
69075         and Bruno Haible  <bruno@clisp.org>
69076
69077         Implement freading and fwriting.
69078         * lib/freading.c: New file.
69079         * lib/freading.h: Likewise.
69080         * m4/freading.m4: Likewise.
69081         * modules/freading: Likewise.
69082         * modules/freading-tests: Likewise.
69083         * tests/test-freading.c: Likewise.
69084         * lib/fwriting.c: New file.
69085         * lib/fwriting.h: Likewise.
69086         * m4/fwriting.m4: Likewise.
69087         * modules/fwriting: Likewise.
69088         * modules/fwriting-tests: Likewise.
69089         * tests/test-fwriting.c: Likewise.
69090         * MODULES.html.sh (File stream based Input/Output): Mention them.
69091
69092 2007-04-26  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69095         'long' when we assume it.
69096         Suggested by Eric Blake.
69097
69098 2007-04-26  Bruno Haible  <bruno@clisp.org>
69099
69100         Ensure fseeko, ftello are declared on glibc systems.
69101         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69102         * modules/fseeko (configure.ac-early): Likewise.
69103         * modules/ftello (configure.ac-early): Likewise.
69104         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69105         AC_FUNC_FSEEKO for this.
69106         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69107         (gl_CHECK_FSEEKO): Remove macro.
69108
69109 2007-04-26  Bruno Haible  <bruno@clisp.org>
69110
69111         * tests/test-fflush.c (main): Also check the ftell result after
69112         fflush and fseek/fseeko.
69113         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69114         file descriptor position cache in the stream.
69115         * lib/fseeko.c (rpl_fseeko): Likewise.
69116
69117 2007-04-26  Bruno Haible  <bruno@clisp.org>
69118
69119         * modules/fflush-tests (Depends-on): Add fseeko.
69120
69121 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69122             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69123
69124         * lib/argz_.h: ensure error_t definition is obtained in same
69125         mechanism system argz.h would have.
69126         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69127         argz facilities are known bad.  Err on the side of caution if
69128         cross-compiling.
69129
69130 2007-04-25  Eric Blake  <ebb9@byu.net>
69131
69132         * lib/fpurge.c (includes): Use stdlib.h for free.
69133         * tests/test-fflush.c (main): Also test fflush-fseeko.
69134
69135 2007-04-25  Bruno Haible  <bruno@clisp.org>
69136
69137         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69138         * lib/fseeko.c: New file.
69139         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69140         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69141         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69142         gl_FUNC_FSEEKO.
69143         (gl_FUNC_FSEEKO): Invoke it.
69144         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69145         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69146         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69147
69148 2007-04-25  Bruno Haible  <bruno@clisp.org>
69149
69150         * modules/fflush (Depends-on): Add ftello.
69151
69152 2007-04-25  Bruno Haible  <bruno@clisp.org>
69153
69154         * modules/ftello-tests: New file.
69155         * tests/test-ftello.c: New file.
69156
69157         * modules/ftello: New file.
69158         * m4/ftello.m4: New file.
69159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69160         HAVE_FTELLO.
69161         * lib/stdio_.h (ftello): New declaration.
69162         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69163         HAVE_FTELLO.
69164
69165 2007-04-25  Bruno Haible  <bruno@clisp.org>
69166
69167         * modules/fseeko-tests: New file.
69168         * tests/test-fseeko.c: New file.
69169
69170         * modules/fseeko: New file.
69171         * m4/fseeko.m4: New file.
69172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69173         HAVE_FSEEKO.
69174         * lib/stdio_.h (fseeko): New declaration.
69175         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69176         HAVE_FSEEKO.
69177
69178 2007-04-25  Bruno Haible  <bruno@clisp.org>
69179
69180         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69181
69182 2007-04-25  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69185         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69186         * tests/test-unistd.c: Likewise.
69187         * tests/test-fcntl.c: Likewise.
69188
69189 2007-04-23  Eric Blake  <ebb9@byu.net>
69190
69191         * lib/fflush.c: Fix missing include.
69192         Reported by Bruno Haible.
69193
69194 2007-04-23  Bruno Haible  <bruno@clisp.org>
69195
69196         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69197         Reported by Eric Blake.
69198
69199 2007-04-23  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69202
69203 2007-04-23  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69206
69207 2007-04-23  Bruno Haible  <bruno@clisp.org>
69208
69209         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69210         Needed on HP-UX 11.
69211
69212 2007-04-16  Eric Blake  <ebb9@byu.net>
69213
69214         Make fflush rely on fpurge.
69215         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69216         open coding all variants.
69217         * modules/fflush (Depends-on): Add fpurge and unistd.
69218         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69219         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69220
69221         Fix --with-tests compilation on cygwin.
69222         * modules/argmatch-tests (Makefile.am): List gnulib library first
69223         in LDADD.
69224         * modules/argp-tests (Makefile.am): Likewise.
69225         * modules/array-list-tests (Makefile.am): Likewise.
69226         * modules/array-oset-tests (Makefile.am): Likewise.
69227         * modules/avltree-list-tests (Makefile.am): Likewise.
69228         * modules/avltree-oset-tests (Makefile.am): Likewise.
69229         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69230         * modules/carray-list-tests (Makefile.am): Likewise.
69231         * modules/dirname-tests (Makefile.am): Likewise.
69232         * modules/frexp-tests (Makefile.am): Likewise.
69233         * modules/isnanl-tests (Makefile.am): Likewise.
69234         * modules/linked-list-tests (Makefile.am): Likewise.
69235         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69236         * modules/lock-tests (Makefile.am): Likewise.
69237         * modules/rbtree-list-tests (Makefile.am): Likewise.
69238         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69239         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69240         * modules/tls-tests (Makefile.am): Likewise.
69241         * modules/tsearch-tests (Makefile.am): Likewise.
69242         * modules/xvasprintf-tests (Makefile.am): Likewise.
69243
69244         Fix fpurge for cygwin.
69245         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69246         value.
69247         * modules/fpurge-tests (Depends-on): Clean up trash.
69248
69249 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69250
69251         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69252
69253         * m4/autobuild.m4: Re-indent.
69254
69255 2007-04-13  Bruno Haible  <bruno@clisp.org>
69256
69257         * modules/fpurge-tests: New file.
69258         * tests/test-fpurge.c: New file.
69259
69260         * modules/fpurge: New file.
69261         * lib/fpurge.h: New file.
69262         * lib/fpurge.c: New file.
69263         * m4/fpurge.m4: New file.
69264
69265 2007-04-13  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/fbufmode-tests: New file.
69268         * tests/test-fbufmode.c: New file.
69269
69270         * modules/fbufmode: New file.
69271         * lib/fbufmode.h: New file.
69272         * lib/fbufmode.c: New file.
69273         * m4/fbufmode.m4: New file.
69274
69275 2007-04-13  Bruno Haible  <bruno@clisp.org>
69276
69277         * modules/fwritable-tests: New file.
69278         * tests/test-fwritable.c: New file.
69279
69280         * modules/fwritable: New file.
69281         * lib/fwritable.h: New file.
69282         * lib/fwritable.c: New file.
69283         * m4/fwritable.m4: New file.
69284
69285 2007-04-13  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/freadable-tests: New file.
69288         * tests/test-freadable.c: New file.
69289
69290         * modules/freadable: New file.
69291         * lib/freadable.h: New file.
69292         * lib/freadable.c: New file.
69293         * m4/freadable.m4: New file.
69294
69295 2007-04-13  Bruno Haible  <bruno@clisp.org>
69296
69297         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69298         MOSTLYCLEANFILES.
69299
69300 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69303         gzip bootstrap.conf to avoid dragging in i18n machinery.
69304         (gnulib_tool_option): Use it.
69305
69306 2007-04-13  Bruno Haible  <bruno@clisp.org>
69307
69308         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69309         %F directives.
69310         * tests/test-vasprintf-posix.c (test_function): Likewise.
69311         * tests/test-snprintf-posix.h (test_function): Likewise.
69312         * tests/test-sprintf-posix.h (test_function): Likewise.
69313         * tests/test-fprintf-posix.h (test_function): Likewise.
69314         * tests/test-printf-posix.h (test_function): Likewise.
69315         * tests/test-fprintf-posix.out: Likewise.
69316
69317 2007-04-13  Bruno Haible  <bruno@clisp.org>
69318
69319         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69320         * modules/tls-tests (configure.ac): Likewise.
69321         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69322
69323 2007-04-13  Bruno Haible  <bruno@clisp.org>
69324
69325         * lib/tls.c (glthread_tls_get): Fix return type.
69326         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69327
69328 2007-04-12  Eric Blake  <ebb9@byu.net>
69329
69330         * modules/gettime (Depends-on): Remove gettime.
69331         Reported by Dmitry V. Levin.
69332
69333 2007-04-12  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/fflush (Include): Mention <stdio.h>.
69336         * modules/strtoimax (Include): Mention <inttypes.h>.
69337         * modules/strtoumax (Include): Likewise.
69338
69339 2007-04-12  Eric Blake  <ebb9@byu.net>
69340
69341         * .cvsignore: New file.
69342         * .gitignore: Likewise.
69343
69344 2007-04-12  Bruno Haible  <bruno@clisp.org>
69345
69346         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69347         not before, since $(LDADD) often contains libgnu.a.
69348         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69349         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69350         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69351         Needed on Cygwin.
69352
69353 2007-04-12  Eric Blake  <ebb9@byu.net>
69354
69355         Work around glibc's failure to flush stdin on fclose.
69356         * lib/closein.c (close_stdin): Flush stdin before closing.
69357
69358         Work around glibc's failure to reset seekable stdin on exit.
69359         * modules/closein: New module.
69360         * lib/closein.c: New file.
69361         * lib/closein.h: Likewise.
69362         * m4/closein.m4: Likewise.
69363         * MODULES.html.sh (File stream based Input/Output): Document it.
69364
69365 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69366
69367         * gnulib-tool: Rename generated 'autobuild' script to
69368         'do-autobuild' in --create-megatestdir output.
69369
69370         * doc/gnulib.texi (Build robot for gnulib): Fix.
69371
69372 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69373
69374         * modules/sysexits (Depends-on): Add absolute-header.
69375
69376 2007-04-12  Eric Blake  <ebb9@byu.net>
69377
69378         No need to preserve errno on success.
69379         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69380         Reported by Bruno Haible.
69381
69382 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69383
69384         * MODULES.html.sh (Support for maintaining and releasing
69385         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69386
69387 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69388
69389         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69390
69391 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69392
69393         * modules/autobuild: New module.
69394
69395         * m4/autobuild.m4: New file.
69396
69397 2007-04-11  Bruno Haible  <bruno@clisp.org>
69398
69399         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69400         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69402         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69404         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69405         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69407         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69408         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69410         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69411         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69412         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69413         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69414         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69416         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69417         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69419         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69420         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69421         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69422         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69423         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69424         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69425         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69426         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69427         Reported by Eric Blake.
69428
69429 2007-04-11  Bruno Haible  <bruno@clisp.org>
69430
69431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69432
69433 2007-04-10  Bruno Haible  <bruno@clisp.org>
69434
69435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69436         for NaN and Infinity. Needed on FreeBSD 6.1.
69437         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69438         regarding results for "%010a" of Infinity and NaN.
69439         * tests/test-vasprintf-posix.c (test_function): Likewise.
69440         * tests/test-snprintf-posix.h (test_function): Likewise.
69441         * tests/test-sprintf-posix.h (test_function): Likewise.
69442         * tests/test-fprintf-posix.h (test_function): Likewise.
69443         * tests/test-printf-posix.h (test_function): Likewise.
69444         * tests/test-fprintf-posix.out: Likewise.
69445
69446 2007-04-10  Bruno Haible  <bruno@clisp.org>
69447
69448         * modules/locale-tests: New file.
69449         * tests/test-locale.c: New file.
69450
69451         * modules/locale: New file.
69452         * lib/locale_.h: New file.
69453         * m4/locale_h.m4: New file.
69454
69455 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69456             Bruno Haible  <bruno@clisp.org>
69457
69458         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69459         be determined, test for availability of the copysignf, copysign,
69460         copysignl functions.
69461         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69462         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69463         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69464
69465 2007-04-09  Eric Blake  <ebb9@byu.net>
69466
69467         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69468         * modules/stdio (Makefile.am): Support fflush.
69469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69470         * modules/fflush: New file.
69471         * lib/fflush.c: Likewise.
69472         * m4/fflush.m4: Likewise.
69473         * modules/fflush-tests: New test.
69474         * tests/test-fflush.c: Likewise.
69475         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69476
69477 2007-04-06  Bruno Haible  <bruno@clisp.org>
69478
69479         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69480         (VASNPRINTF): Use signbit for faster determination whether to print a
69481         minus sign.
69482         * modules/vasnprintf (Files): Remove lib/float+.h.
69483         * modules/fprintf-posix (Depends-on): Add signbit.
69484         * modules/snprintf-posix (Depends-on): Likewise.
69485         * modules/sprintf-posix (Depends-on): Likewise.
69486         * modules/vasnprintf-posix (Depends-on): Likewise.
69487         * modules/vasprintf-posix (Depends-on): Likewise.
69488         * modules/vfprintf-posix (Depends-on): Likewise.
69489         * modules/vsnprintf-posix (Depends-on): Likewise.
69490         * modules/vsprintf-posix (Depends-on): Likewise.
69491
69492 2007-04-06  Bruno Haible  <bruno@clisp.org>
69493
69494         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69495         * tests/test-frexpl.c (main): Likewise.
69496         * tests/test-ldexpl.c (main): Likewise.
69497         * modules/frexp-tests (Depends-on): Add signbit.
69498         * modules/frexpl-tests (Depdends-on): Likewise.
69499         * modules/ldexpl-tests (Depdends-on): Likewise.
69500
69501 2007-04-06  Bruno Haible  <bruno@clisp.org>
69502
69503         * modules/signbit-tests: New file.
69504         * tests/test-signbit.c: New file.
69505
69506         * modules/signbit: New file.
69507         * lib/signbitf.c: New file.
69508         * lib/signbitd.c: New file.
69509         * lib/signbitl.c: New file.
69510         * m4/signbit.m4: New file.
69511         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69512         (signbit): New macro.
69513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69514         REPLACE_SIGNBIT.
69515         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69516         REPLACE_FREXPL into math.h.
69517
69518 2007-04-06  Bruno Haible  <bruno@clisp.org>
69519
69520         * modules/isnanf-nolibm-tests: New file.
69521         * tests/test-isnanf.c: New file.
69522
69523         * modules/isnanf-nolibm: New file.
69524         * lib/isnanf.h: New file.
69525         * lib/isnanf.c: New file.
69526         * lib/isnan.c: Consider the USE_FLOAT macro.
69527         * m4/isnanf.m4: New file.
69528
69529 2007-04-06  Bruno Haible  <bruno@clisp.org>
69530
69531         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69532         (Link): New section.
69533
69534         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69535
69536 2007-04-06  Bruno Haible  <bruno@clisp.org>
69537
69538         Assume the 'long double' type.
69539         * m4/longdouble.m4: Remove file.
69540         * config/srclist.txt: Don't mention longdouble.m4.
69541         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69542         * lib/float+.h: Likewise.
69543         * lib/frexp.c: Likewise.
69544         * lib/printf-args.h: Likewise.
69545         * lib/printf-args.c: Likewise.
69546         * lib/printf-frexp.c: Likewise.
69547         * lib/printf-parse.c: Likewise.
69548         * lib/vasnprintf.c: Likewise.
69549         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69550         * m4/intl.m4: Likewise.
69551         * m4/isnanl.m4: Likewise.
69552         * m4/printf.m4: Likewise.
69553         * m4/printf-frexpl.m4: Likewise.
69554         * m4/vasnprintf.m4: Likewise.
69555         * modules/allocsa (Files): Remove m4/longdouble.m4.
69556         * modules/gettext (Files): Likewise.
69557         * modules/relocatable-prog-wrapper (Files): Likewise.
69558         * modules/vasnprintf (Files): Likewise.
69559         * modules/isnanl (Files): Likewise.
69560         (Include): Simplify.
69561         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69562         (Include): Simplify.
69563         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69564         (Include): Simplify.
69565         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69566         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69567         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69568         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69569         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69570         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69571         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69572         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69573         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69574         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69575         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69576         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69577         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69578         * tests/test-isnanl.c: Likewise.
69579         * tests/test-snprintf-posix.h: Likewise.
69580         * tests/test-sprintf-posix.h: Likewise.
69581         * tests/test-vasnprintf-posix.c: Likewise.
69582         * tests/test-vasnprintf-posix2.c: Likewise.
69583         * tests/test-vasprintf-posix.c: Likewise.
69584
69585 2007-04-06  Bruno Haible  <bruno@clisp.org>
69586
69587         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69588         * lib/math_.h [__DECC]: Include the overridden include file through
69589         #include_next, outside the double-inclusion guard.
69590         * lib/stdio_.h [__DECC]: Likewise.
69591         * lib/stdlib_.h [__DECC]: Likewise.
69592         * lib/string_.h [__DECC]: Likewise.
69593         * lib/time_.h [__DECC]: Likewise.
69594         * lib/wchar_.h [__DECC]: Likewise.
69595         * lib/wctype_.h [__DECC]: Likewise.
69596         * lib/inttypes_.h [__DECC]: Likewise.
69597         Reported by Albert Chin <china@thewrittenword.com> in
69598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69599
69600 2007-04-04  Eric Blake  <ebb9@byu.net>
69601
69602         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69603         1.5.x.
69604
69605 2007-04-04  Bruno Haible  <bruno@clisp.org>
69606
69607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69608         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69609
69610 2007-04-04  Bruno Haible  <bruno@clisp.org>
69611
69612         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69613         results for "%010a" of Infinity and NaN.
69614         * tests/test-vasprintf-posix.c (test_function): Likewise.
69615         * tests/test-snprintf-posix.h (test_function): Likewise.
69616         * tests/test-sprintf-posix.h (test_function): Likewise.
69617         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69618         * tests/test-printf-posix.h (test_function): Likewise.
69619         * tests/test-fprintf-posix.out: Update.
69620         Needed for FreeBSD 6.1.
69621
69622 2007-04-04  Bruno Haible  <bruno@clisp.org>
69623
69624         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69625         directly used by the gnulib modules nor by gnulib-tool.
69626
69627 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * DEPENDENCIES: Give overall description of version dependency
69630         desirability.  Use more-typical names for apps.
69631         Add shell, coreutils, diffutils, grep, tar, gzip.
69632
69633 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69634
69635         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69636
69637 2007-04-04  Karl Berry  <karl@gnu.org>
69638
69639         * MODULES.html.sh (func_module): missing '.
69640
69641 2007-04-03  Bruno Haible  <bruno@clisp.org>
69642
69643         * modules/argmatch-tests (Makefile.am): New variable
69644         test_argmatch_LDADD.
69645         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69646         * modules/array-list-tests (Makefile.am): New variable
69647         test_array_list_LDADD.
69648         * modules/array-oset-tests (Makefile.am): New variable
69649         test_array_oset_LDADD.
69650         * modules/avltree-list-tests (Makefile.am): New variable
69651         test_avltree_list_LDADD.
69652         * modules/avltree-oset-tests (Makefile.am): New variable
69653         test_avltree_oset_LDADD.
69654         * modules/avltreehash-list-tests (Makefile.am): New variable
69655         test_avltreehash_list_LDADD.
69656         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69657         test_canonicalize_lgpl_LDADD.
69658         * modules/carray-list-tests (Makefile.am): New variable
69659         test_carray_list_LDADD.
69660         * modules/dirname-tests (Makefile.am): New variable
69661         test_dirname_LDADD.
69662         * modules/linked-list-tests (Makefile.am): New variable
69663         test_linked_list_LDADD.
69664         * modules/linkedhash-list-tests (Makefile.am): New variable
69665         test_linkedhash_list_LDADD.
69666         * modules/rbtree-list-tests (Makefile.am): New variable
69667         test_rbtree_list_LDADD.
69668         * modules/rbtree-oset-tests (Makefile.am): New variable
69669         test_rbtree_oset_LDADD.
69670         * modules/rbtreehash-list-tests (Makefile.am): New variable
69671         test_rbtreehash_list_LDADD.
69672         * modules/xvasprintf-tests (Makefile.am): New variable
69673         test_xvasprintf_LDADD.
69674         Reported by Eric Blake.
69675
69676 2007-04-03  Eric Blake  <ebb9@byu.net>
69677
69678         * DEPENDENCIES: Weaken m4 requirements.
69679
69680 2007-04-03  Bruno Haible  <bruno@clisp.org>
69681
69682         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69683         * modules/isnanl-tests (configure.ac): Likewise.
69684
69685 2007-04-03  Ben Pfaff  <blp@gnu.org>
69686
69687         * modules/iconv_open: Add $(srcdir)/ to source directory
69688         references in Makefile fragments that call gperf, to fix VPATH
69689         builds.
69690
69691 2007-04-03  Bruno Haible  <bruno@clisp.org>
69692
69693         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69694         * lib/ldexpl.c: Undo last change.
69695
69696 2007-04-03  Bruno Haible  <bruno@clisp.org>
69697
69698         * modules/printf-frexpl (Depends-on): Undo last change.
69699         (Files): Add m4/ldexpl.m4.
69700
69701 2007-04-03  Bruno Haible  <bruno@clisp.org>
69702
69703         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69704         * modules/isnanl (Link): New section.
69705
69706         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69707         * modules/frexp (Link): New section.
69708
69709         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69710         * modules/frexpl (Link): New section.
69711
69712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69713         * modules/ldexpl (Link): New section.
69714
69715 2007-04-03  Bruno Haible  <bruno@clisp.org>
69716
69717         * modules/TEMPLATE-EXTENDED: New file.
69718         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69719
69720 2007-04-03  Bruno Haible  <bruno@clisp.org>
69721
69722         * DEPENDENCIES: New file.
69723         Suggested by Simon Josefsson.
69724
69725 2007-04-03  Bruno Haible  <bruno@clisp.org>
69726
69727         * doc/gnulib.texi: Escape @.
69728
69729 2007-04-03  James Youngman  <jay@gnu.org>
69730         and Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69733         birthtime on all systems that have birthtime, not just those which
69734         use st_birthtimensec rather than st_birthtim.  Putting zero in
69735         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69736         that the birth time is not available for files on an NFS mount.
69737
69738 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69739
69740         * modules/memxor: Move back from crypto/, suggested by Bruno.
69741         * modules/crypto/hmac-sha1: Fix memxor dependency.
69742
69743         * modules/crypto/gc: Moved from ../.
69744
69745 2007-04-02  Eric Blake  <ebb9@byu.net>
69746
69747         * lib/ldexpl.c (includes): Avoid libm.
69748
69749         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69750
69751 2007-04-02  Bruno Haible  <bruno@clisp.org>
69752
69753         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69754         on IRIX.
69755
69756 2007-04-02  Bruno Haible  <bruno@clisp.org>
69757
69758         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69759         x86 or x86_64 platforms running MacOS X.
69760         Reported by Ryan Schmidt <@ryandesign.com>.
69761
69762 2007-04-02  Bruno Haible  <bruno@clisp.org>
69763
69764         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69765         i386.
69766
69767 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69768
69769         * modules/crypto/arcfour: Moved from ../.
69770         * modules/crypto/arcfour-tests: Moved from ../.
69771         * modules/crypto/arctwo: Moved from ../.
69772         * modules/crypto/arctwo-tests: Moved from ../.
69773         * modules/crypto/des: Moved from ../.
69774         * modules/crypto/des-tests: Moved from ../.
69775         * modules/crypto/gc-arcfour: Moved from ../.
69776         * modules/crypto/gc-arcfour-tests: Moved from ../.
69777         * modules/crypto/gc-arctwo: Moved from ../.
69778         * modules/crypto/gc-arctwo-tests: Moved from ../.
69779         * modules/crypto/gc-des: Moved from ../.
69780         * modules/crypto/gc-des-tests: Moved from ../.
69781         * modules/crypto/gc-hmac-md5: Moved from ../.
69782         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69783         * modules/crypto/gc-hmac-sha1: Moved from ../.
69784         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69785         * modules/crypto/gc-md2: Moved from ../.
69786         * modules/crypto/gc-md2-tests: Moved from ../.
69787         * modules/crypto/gc-md4: Moved from ../.
69788         * modules/crypto/gc-md4-tests: Moved from ../.
69789         * modules/crypto/gc-md5: Moved from ../.
69790         * modules/crypto/gc-md5-tests: Moved from ../.
69791         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69792         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69793         * modules/crypto/gc-random: Moved from ../.
69794         * modules/crypto/gc-rijndael: Moved from ../.
69795         * modules/crypto/gc-rijndael-tests: Moved from ../.
69796         * modules/crypto/gc-sha1: Moved from ../.
69797         * modules/crypto/gc-sha1-tests: Moved from ../.
69798         * modules/crypto/gc-tests: Moved from ../.
69799         * modules/crypto/hmac-md5: Moved from ../.
69800         * modules/crypto/hmac-md5-tests: Moved from ../.
69801         * modules/crypto/hmac-sha1: Moved from ../.
69802         * modules/crypto/hmac-sha1-tests: Moved from ../.
69803         * modules/crypto/md2: Moved from ../.
69804         * modules/crypto/md2-tests: Moved from ../.
69805         * modules/crypto/md4: Moved from ../.
69806         * modules/crypto/md4-tests: Moved from ../.
69807         * modules/crypto/md5: Moved from ../.
69808         * modules/crypto/md5-tests: Moved from ../.
69809         * modules/crypto/memxor: Moved from ../.
69810         * modules/crypto/rijndael: Moved from ../.
69811         * modules/crypto/rijndael-tests: Moved from ../.
69812         * modules/crypto/sha1: Moved from ../.
69813
69814 2007-03-30  James Youngman  <jay@gnu.org>
69815
69816         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69817         rename() to change the ctime of a file (because ctime is unaffected
69818         by rename on jfs2 on AIX 5.1).
69819         (main): Start by doing cleanup, in case a previous run failed leaving
69820         test files behind.
69821
69822 2007-03-31  Bruno Haible  <bruno@clisp.org>
69823
69824         Support old proprietary implementations of iconv.
69825         * modules/iconv_open: New file.
69826         * lib/iconv_.h: New file.
69827         * m4/iconv_h.m4: New file.
69828         * lib/iconv_open.c: New file.
69829         * lib/iconv_open-aix.gperf: New file.
69830         * lib/iconv_open-hpux.gperf: New file.
69831         * lib/iconv_open-irix.gperf: New file.
69832         * lib/iconv_open-osf.gperf: New file.
69833         * m4/iconv_open.m4: New file.
69834         * modules/linebreak (Depends-on): Add iconv_open.
69835         * modules/striconv (Depends-on): Likewise.
69836         * modules/striconveh (Depends-on): Likewise.
69837         * modules/unicodeio (Depends-on): Likewise.
69838         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69839         (iconv_t)(-1).
69840         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69841         conversion if cd is (iconv_t)(-1).
69842         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69843         is not possible.
69844
69845 2007-03-31  Bruno Haible  <bruno@clisp.org>
69846
69847         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69848         work on Solaris either. Protect also second use of "autodetect_jp".
69849
69850 2007-03-31  Bruno Haible  <bruno@clisp.org>
69851
69852         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69853         the function is not present.
69854
69855 2007-03-31  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69858         the function is not present.
69859
69860 2007-03-31  Bruno Haible  <bruno@clisp.org>
69861
69862         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69863         a bug in HP-UX iconv_open().
69864
69865 2007-03-31  Bruno Haible  <bruno@clisp.org>
69866
69867         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69868         (Mathematics <math.h>): New section, add fpieee.
69869         (Input/output <stdio.h>): Add fseterr.
69870         (Mathematics <math.h>): New section, add printf-frexp.
69871         (Container data structures): Add sublist.
69872         (Core language properties): Add fpucw, inline.
69873         (Functions for greatest-width integer types <inttypes.h>): Add
69874         imaxabs, imaxdiv, inttypes.
69875         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69876         isnanl-nolibm, ldexp.
69877         (Mathematics <math.h>): New section, add printf-frexpl.
69878         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69879         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69880         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69881         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69882         (Unicode string functions): Add unistr/u*-mbtoucr.
69883         (Java): Add javacomp-script, javaexec-script.
69884         (C#): Add csharpcomp-script, csharpexec-script.
69885         (Support for building libraries and executables): Add havelib,
69886         relocatable-*.
69887         (Support for maintaining and releasing projects): Renamed from
69888         'Support for maintaining and release projects'. Add announce-gen.
69889
69890 2007-03-31  Bruno Haible  <bruno@clisp.org>
69891
69892         * README: Talk primarily about git.
69893         (git and CVS): Renamed from CVS.
69894         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69895         gnulib is available through git.
69896         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69897
69898 2007-03-30  Bruno Haible  <bruno@clisp.org>
69899
69900         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69901         * lib/poll_.h: Likewise.
69902         * lib/stat_.h: Likewise.
69903         * lib/sys_time_.h: Likewise.
69904         * lib/sysexit_.h: Likewise.
69905         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69906         * lib/stdbool_.h: Likewise.
69907         * lib/byteswap_.h: Add double-inclusion guard.
69908
69909 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69910
69911         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69912
69913 2007-03-30  Karl Berry  <karl@gnu.org>
69914
69915         * config/srclist-update: double space after USA in the license
69916         substitution, since that's how it's usually (?) written.
69917
69918 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69921         reported by Bruno Haible.
69922
69923 2007-03-29  Bruno Haible  <bruno@clisp.org>
69924
69925         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69926         a bug in AIX iconv().
69927
69928 2007-03-29  Bruno Haible  <bruno@clisp.org>
69929
69930         * modules/ldexpl-tests: New file.
69931         * tests/test-ldexpl.c: New file.
69932
69933 2007-03-29  Bruno Haible  <bruno@clisp.org>
69934
69935         * lib/ldexpl.c: Include fpucw.h.
69936         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69937         multiplication.
69938         * modules/ldexpl (Depends-on): Add fpucw.
69939
69940 2007-03-29  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/ldexpl: New file.
69943         * m4/ldexpl.m4: New file.
69944         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69945         set.
69946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69947         REPLACE_LDEXPL.
69948         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69949         REPLACE_LDEXPL.
69950         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69951         gl_FUNC_LDEXPL_WORKS.
69952         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69953         * modules/mathl (Files): Remove lib/ldexpl.c.
69954         (Depends-on): Add ldexpl.
69955
69956 2007-03-29  Bruno Haible  <bruno@clisp.org>
69957
69958         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69959
69960 2007-03-29  Bruno Haible  <bruno@clisp.org>
69961
69962         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69963         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69964         and possibly also HP-UX.
69965         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69966         work on AIX, IRIX, HP-UX, OSF/1.
69967         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69968         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69969         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69970         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69971         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69972         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69973
69974 2007-03-29  Bruno Haible  <bruno@clisp.org>
69975
69976         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69977
69978 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69981         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69982
69983 2007-03-29  Eric Blake  <ebb9@byu.net>
69984
69985         * lib/acl-internal.h: Remove redundant include.
69986         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69987         Cygwin when a file is locked.
69988
69989 2007-03-29  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69992         file.
69993         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69994
69995 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69998         try to remove a parent directory if the child couldn't be removed
69999         (except for the first rmdir, which could fail because the child
70000         doesn't exist).  Problem reported by Jeff Blaine in
70001         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70002
70003 2007-03-28  Bruno Haible  <bruno@clisp.org>
70004
70005         * lib/striconveh.c (utf8conv_carefully): New function.
70006         (mem_cd_iconveh_internal): Invoke it.
70007
70008 2007-03-28  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70011         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70012         input.
70013         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70014         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70015         unistr/u8-uctomb.
70016
70017 2007-03-28  Bruno Haible  <bruno@clisp.org>
70018
70019         * modules/unistr/u8-mbtoucr: New file.
70020         * lib/unistr/u8-mbtoucr.c: New file.
70021         * modules/unistr/u16-mbtoucr: New file.
70022         * lib/unistr/u16-mbtoucr.c: New file.
70023         * modules/unistr/u16-mbtoucr: New file.
70024         * lib/unistr/u16-mbtoucr.c: New file.
70025         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70026
70027 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70028             Bruno Haible  <bruno@clisp.org>
70029
70030         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70031         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70032         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70033
70034         * m4/stdio_h.m4: Add stubs for vasprintf too.
70035
70036         * modules/stdio: Support vasprintf in sed command.
70037
70038         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70039         vasprintf.h.  Add stdio module indicator.
70040
70041         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70042         vasprintf.h.
70043
70044         * lib/vasprintf.h: File removed.
70045
70046         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70047         * lib/vasprintf.c: Ditto.
70048         * lib/xvasprintf.c: Ditto.
70049         * tests/test-vasprintf-posix.c: Ditto.
70050         * tests/test-vasprintf.c: Ditto.
70051
70052 2007-03-27  Bruno Haible  <bruno@clisp.org>
70053
70054         Make vasnprintf multithread-safe.
70055         * lib/vasnprintf.c (decimal_point_char): New function.
70056         (VASNPRINTF): Use it.
70057         Suggested by Simon Josefsson.
70058
70059 2007-03-27  Eric Blake  <ebb9@byu.net>
70060
70061         Support sub-second birthtime on cygwin.
70062         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70063         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70064         (get_stat_birthtime): Also work with st_birthtim.
70065
70066 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70069         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70070         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70071         (get_stat_birthtime_ns): Simplify compile-time tests.
70072         (get_stat_birthtime): Change the API to look like
70073         get_stat_mtime etc., except return a negative tv_nsec on error.
70074         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70075         Don't check for "spare" fields.
70076         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70077         or for struct stat.st_birthtime, as these tests aren't used.
70078         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70079
70080 2007-03-27  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/stat-time.h: Include <sys/stat.h>.
70083
70084 2007-03-27  James Youngman  <jay@gnu.org>
70085
70086         * lib/stat-time.h (get_stat_birthtime): New function for
70087           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70088         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70089           and its variants.
70090         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70091         * modules/stat-time-test: New file.
70092         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70093
70094 2007-03-26  Bruno Haible  <bruno@clisp.org>
70095
70096         Better support of signalling NaNs.
70097         * lib/atanl.c: Include isnanl.h.
70098         (atanl): Perform test for NaN at the beginning of the function and
70099         through a call to isnanl.
70100         * lib/cosl.c: Include isnanl.h.
70101         (cosl): Perform test for NaN at the beginning of the function and
70102         through a call to isnanl.
70103         * lib/ldexpl.c: Include isnanl.h.
70104         (ldexpl): Perform test for NaN through a call to isnanl.
70105         * lib/logl.c: Include isnanl.h.
70106         (logl): Perform test for NaN at the beginning of the function and
70107         through a call to isnanl.
70108         * lib/sinl.c: Include isnanl.h.
70109         (sinl): Perform test for NaN at the beginning of the function and
70110         through a call to isnanl.
70111         * lib/sqrtl.c: Include isnanl.h.
70112         (sqrtl): Perform test for NaN at the beginning of the function and
70113         through a call to isnanl.
70114         * lib/tanl.c: Include isnanl.h.
70115         (tanl): Perform test for NaN at the beginning of the function and
70116         through a call to isnanl.
70117         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70118         * modules/mathl (Depends-on): Add isnanl.
70119
70120 2007-03-26  Eric Blake  <ebb9@byu.net>
70121
70122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70123         regression in logic sense of previous patch.
70124
70125 2007-03-26  Bruno Haible  <bruno@clisp.org>
70126
70127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70128         unportable shell command "if ! ...".
70129         Reported by Ralf Wildenhues.
70130
70131 2007-03-25  Bruno Haible  <bruno@clisp.org>
70132
70133         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70134         <sysexits.h> file, and only add EX_CONFIG.
70135         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70136         absolute file name and whether it is sufficient. Substitute also
70137         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70138         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70139         ABSOLUTE_SYSEXITS_H into sysexits.h.
70140
70141 2007-03-25  Bruno Haible  <bruno@clisp.org>
70142
70143         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70144         hints is NULL.
70145
70146 2007-03-25  Bruno Haible  <bruno@clisp.org>
70147
70148         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70149         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70150
70151 2007-03-25  Bruno Haible  <bruno@clisp.org>
70152
70153         * lib/vasnprintf.c: Include langinfo.h.
70154         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70155         multithread-safe.
70156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70165         Reported by Simon Josefsson.
70166
70167 2007-03-25  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70170         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70171         * modules/vasnprintf (Depends-on): Add stdint.
70172
70173 2007-03-25  Bruno Haible  <bruno@clisp.org>
70174
70175         * modules/fpieee: New file.
70176         * m4/fpieee.m4: New file.
70177         * modules/isnan-nolibm (Depends-on): Add fpieee.
70178         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70179         * modules/isnanl (Depends-on): Add fpieee.
70180
70181 2007-03-25  Bruno Haible  <bruno@clisp.org>
70182
70183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70184
70185 2007-03-25  Bruno Haible  <bruno@clisp.org>
70186
70187         Avoid test failures on IRIX 6.5.
70188         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70189         (main): Use it.
70190         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70191         macros.
70192         (main): Use them.
70193
70194 2007-03-25  Bruno Haible  <bruno@clisp.org>
70195
70196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70197         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70198         exists but doesn't work.
70199         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70200         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70202         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70203         math.h.
70204
70205 2007-03-25  Bruno Haible  <bruno@clisp.org>
70206
70207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70208         returns inf. Needed on IRIX 6.5.
70209
70210 2007-03-25  Bruno Haible  <bruno@clisp.org>
70211
70212         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70213         (main): Use isnanl instead of x != x idiom.
70214         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70215
70216         * tests/test-frexp.c: Include isnan.h.
70217         (main): Use isnan instead of x != x idiom.
70218         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70219
70220 2007-03-25  Bruno Haible  <bruno@clisp.org>
70221
70222         * tests/test-frexp.c (NaN): New function/macro.
70223         (main): Use it instead of 0.0 / 0.0.
70224         * tests/test-isnan.c (NaN): New function/macro.
70225         (main): Use it instead of 0.0 / 0.0.
70226         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70227         (test_function): Use it instead of 0.0 / 0.0.
70228         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70229         (test_function): Use it instead of 0.0 / 0.0.
70230         * tests/test-snprintf-posix.h (NaN): New function/macro.
70231         (test_function): Use it instead of 0.0 / 0.0.
70232         * tests/test-sprintf-posix.h (NaN): New function/macro.
70233         (test_function): Use it instead of 0.0 / 0.0.
70234         * tests/test-fprintf-posix.h (NaN): New function/macro.
70235         (test_function): Use it instead of 0.0 / 0.0.
70236         * tests/test-printf-posix.h (NaN): New function/macro.
70237         (test_function): Use it instead of 0.0 / 0.0.
70238
70239         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70240
70241 2007-03-25  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70244
70245 2007-03-25  Bruno Haible  <bruno@clisp.org>
70246
70247         * lib/regexec.c (merge_state_with_log): Make static.
70248
70249 2007-03-25  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/trigl.c (kernel_rem_pio2): Make static.
70252
70253 2007-03-25  Bruno Haible  <bruno@clisp.org>
70254
70255         * lib/sincosl.c (sincosl_table): Make static.
70256
70257 2007-03-25  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70260         if the compiler does not support C99.
70261
70262 2007-03-25  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/time (Makefile.am): Ensure all rule action lines start with a
70265         tab.
70266
70267 2007-03-24  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/tsearch-tests: New file.
70270         * tests/test-tsearch.sh: New file.
70271         * tests/test-tsearch.c: New file, mostly copied from glibc.
70272
70273         * modules/search-tests: New file.
70274         * tests/test-search.c: New file.
70275
70276         * modules/search: New file.
70277         * lib/search_.h: New file, incorporating lib/tsearch.h.
70278         * m4/search_h.m4: New file.
70279         * lib/tsearch.h: Remove file.
70280         * lib/tsearch.c: Include search.h instead of tsearch.h.
70281         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70282         HAVE_TSEARCH.
70283         * modules/tsearch (Files): Remove lib/tsearch.h.
70284         (Depends-on): Add search.
70285         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70286         (Include): Change tsearch.h into search.h.
70287
70288 2007-03-24  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/fpucw: New file.
70291         * lib/fpucw.h: New file.
70292         * lib/frexp.c: Include fpucw.h.
70293         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70294         (FUNC): Use them.
70295         * lib/printf-frexp.c: Include fpucw.h.
70296         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70297         (FUNC): Use them.
70298         * lib/vasnprintf.c: Include fpucw.h.
70299         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70300         'long double' calculations.
70301         * tests/test-frexpl.c: Include fpucw.h.
70302         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70303         * tests/test-printf-frexpl.c: Include fpucw.h.
70304         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70305         * modules/frexpl (Depends-on): Add fpucw.
70306         * modules/printf-frexpl (Depends-on): Likewise.
70307         * modules/fprintf-posix (Depends-on): Likewise.
70308         * modules/snprintf-posix (Depends-on): Likewise.
70309         * modules/sprintf-posix (Depends-on): Likewise.
70310         * modules/vasnprintf-posix (Depends-on): Likewise.
70311         * modules/vasprintf-posix (Depends-on): Likewise.
70312         * modules/vfprintf-posix (Depends-on): Likewise.
70313         * modules/vsnprintf-posix (Depends-on): Likewise.
70314         * modules/vsprintf-posix (Depends-on): Likewise.
70315         * modules/frexpl-tests (Depends-on): Likewise.
70316         * modules/printf-frexpl-tests (Depends-on): Likewise.
70317
70318 2007-03-24  Bruno Haible  <bruno@clisp.org>
70319
70320         * lib/float+.h: New file.
70321         * lib/isnan.c: Include float+.h.
70322         (SIZE): New macro.
70323         (FUNC): Compare only SIZE bytes of the value.
70324         * lib/vasnprintf.c: Include float+.h.
70325         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70326         SIZEOF_LDBL or SIZEOF_DBL bytes.
70327         * modules/isnan-nolibm (Files): Add lib/float+.h.
70328         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70329         * modules/isnanl (Files): Add lib/float+.h.
70330         * modules/vasnprintf (Files): Add lib/float+.h.
70331
70332 2007-03-24  Bruno Haible  <bruno@clisp.org>
70333
70334         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70335         include isnanl-nolibm.h.
70336
70337 2007-03-24  Bruno Haible  <bruno@clisp.org>
70338
70339         * tests/test-read-file.c (main): Don't produce spurious output for
70340         expected situations. Make the test fail if it encountered unexpected
70341         results.
70342
70343 2007-03-24  Bruno Haible  <bruno@clisp.org>
70344
70345         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70346         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70347
70348 2007-03-24  Bruno Haible  <bruno@clisp.org>
70349
70350         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70351
70352 2007-03-24  Bruno Haible  <bruno@clisp.org>
70353
70354         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70355         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70356
70357         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70358         * modules/utf8-ucs4: Turn into a symbolic link to module
70359         unistr/u8-mbtouc.
70360
70361         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70362         utf8-ucs4-unsafe.
70363         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70364         unistr/u8-mbtouc-unsafe.
70365
70366         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70367         * modules/utf16-ucs4: Turn into a symbolic link to module
70368         unistr/u16-mbtouc.
70369
70370         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70371         utf16-ucs4-unsafe.
70372         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70373         unistr/u16-mbtouc-unsafe.
70374
70375         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70376         * modules/ucs4-utf8: Turn into a symbolic link to module
70377         unistr/u8-ubtomb.
70378
70379         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70380         * modules/ucs4-utf16: Turn into a symbolic link to module
70381         unistr/u16-ubtomb.
70382
70383 2007-03-24  Bruno Haible  <bruno@clisp.org>
70384
70385         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70386         Enable the function only if HAVE_INLINE.
70387         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70388         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70389         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70390         Enable the function only if HAVE_INLINE.
70391         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70392         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70393         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70394         Enable the function only if HAVE_INLINE.
70395         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70396         Enable the function only if HAVE_INLINE.
70397         * modules/utf8-ucs4: Update.
70398         * modules/utf8-ucs4-unsafe: Update.
70399         * modules/utf16-ucs4: Update.
70400         * modules/utf16-ucs4-unsafe: Update.
70401         * modules/ucs4-utf8: Update.
70402         * modules/ucs4-utf16: Update.
70403
70404 2007-03-24  Bruno Haible  <bruno@clisp.org>
70405
70406         * lib/utf8-ucs4.h: Remove file.
70407         * lib/utf8-ucs4-unsafe.h: Remove file.
70408         * lib/utf16-ucs4.h: Remove file.
70409         * lib/utf16-ucs4-unsafe.h: Remove file.
70410         * lib/ucs4-utf8.h: Remove file.
70411         * lib/ucs4-utf16.h: Remove file.
70412         * lib/unistr.h: Include their previous contents.
70413         * m4/utf-ucs4.m4: Remove file.
70414         * m4/ucs4-utf.m4: Remove file.
70415         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70416         (Depends-on): Add unistr/base.
70417         (configure.ac): Remove gl_UTF_UCS4.
70418         (Makefile.am): Update.
70419         (Include): Change to unistr.h.
70420         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70421         (Depends-on): Add unistr/base.
70422         (configure.ac): Remove gl_UTF_UCS4.
70423         (Makefile.am): Update.
70424         (Include): Change to unistr.h.
70425         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70426         (Depends-on): Add unistr/base.
70427         (configure.ac): Remove gl_UTF_UCS4.
70428         (Makefile.am): Update.
70429         (Include): Change to unistr.h.
70430         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70431         (Depends-on): Add unistr/base.
70432         (configure.ac): Remove gl_UTF_UCS4.
70433         (Makefile.am): Update.
70434         (Include): Change to unistr.h.
70435         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70436         (Depends-on): Add unistr/base.
70437         (configure.ac): Remove gl_UCS4_UTF.
70438         (Makefile.am): Update.
70439         (Include): Change to unistr.h.
70440         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70441         (Depends-on): Add unistr/base.
70442         (configure.ac): Remove gl_UCS4_UTF.
70443         (Makefile.am): Update.
70444         (Include): Change to unistr.h.
70445         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70446         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70447         utf8-ucs4-unsafe.h.
70448         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70449         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70450         utf16-ucs4-unsafe.h.
70451         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70452         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70453         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70454         * lib/unistr/u8-strchr.c: Likewise.
70455         * lib/unistr/u8-strrchr.c: Likewise.
70456         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70457         * lib/unistr/u16-strchr.c: Likewise.
70458         * lib/unistr/u16-strrchr.c: Likewise.
70459         * lib/striconveh.c: Update.
70460         * lib/linebreak.c: Update.
70461
70462 2007-03-24  Bruno Haible  <bruno@clisp.org>
70463
70464         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70465         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70466
70467 2007-03-22  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70470
70471 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * MODULES.html.sh (File system functions): New module write-any-file.
70474         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70475         * m4/write-any-file.m4: New files.
70476
70477 2007-03-23  Eric Blake  <ebb9@byu.net>
70478
70479         * gnulib-tool: Rearrange space-tab sequences, since some editors
70480         like to eat them.
70481
70482 2007-03-23  Eric Blake  <ebb9@byu.net>
70483
70484         * lib/version-etc.c (version_etc_va): Update license wording to
70485         be more concise.  Recommended by Richard Stallman.
70486
70487 2007-03-22  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/poll.c (MSG_PEEK): New fallback definition.
70490
70491 2007-03-22  Bruno Haible  <bruno@clisp.org>
70492
70493         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70494         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70495         (main): Update.
70496         Fixes a compilation error on BeOS.
70497
70498 2007-03-22  Bruno Haible  <bruno@clisp.org>
70499
70500         * modules/frexpl-tests: New file.
70501         * tests/test-frexpl.c: New file.
70502
70503         * modules/frexpl: New file.
70504         * m4/frexpl.m4: New file.
70505         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70506         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70508         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70509         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70510         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70511
70512 2007-03-22  Bruno Haible  <bruno@clisp.org>
70513
70514         * lib/frexpl.c: Share code with lib/frexp.c.
70515         * modules/mathl (Files): Add lib/frexp.c.
70516         (Depends-on): Add isnanl-nolibm.
70517
70518 2007-03-22  Bruno Haible  <bruno@clisp.org>
70519
70520         * modules/printf-frexp (Files): Add m4/frexp.m4.
70521         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70522         only if the found frexp function actually works.
70523
70524 2007-03-22  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/frexp.c: Remove older implementation that uses divisions.
70527
70528 2007-03-21  Bruno Haible  <bruno@clisp.org>
70529
70530         * modules/frexp-tests: New file.
70531         * tests/test-frexp.c: New file.
70532
70533         * modules/frexp: New file.
70534         * lib/frexp.c: New file.
70535         * m4/frexp.m4: New file.
70536         * lib/math_.h (frexp): New declaration.
70537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70538         REPLACE_FREXP.
70539         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70540
70541 2007-03-21  Bruno Haible  <bruno@clisp.org>
70542
70543         * modules/isnanl-tests: New file.
70544         * tests/test-isnanl.c: New file.
70545
70546         * modules/isnanl: New file.
70547         * lib/isnanl.h: New file.
70548         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70549         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70550         gl_FUNC_ISNANL_WORKS.
70551         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70552         New macros.
70553
70554 2007-03-21  Bruno Haible  <bruno@clisp.org>
70555
70556         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70557         lib/isnanl.h.
70558         (Include): Update.
70559         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70560         * lib/vasnprintf.c: Update.
70561         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70562         tests/test-isnanl.h, remove tests/test-isnanl.c.
70563         (Makefile.am): Update.
70564         * tests/test-isnanl-nolibm.c: New file.
70565         * tests/test-isnanl.h: New file.
70566         * tests/test-isnanl.c: Remove file.
70567
70568 2007-03-21  Jim Meyering  <jim@meyering.net>
70569
70570         When trying to open ".", treat ESTALE like EACCES.
70571         * lib/savewd.c (savewd_save): Resort to forking not just upon
70572         failure with EACCES, but also when errno is ESTALE.
70573
70574 2007-03-20  Bruno Haible  <bruno@clisp.org>
70575
70576         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70577         Needed on AIX 5.1. Reported by Matthew Woehlke.
70578
70579 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         Suggestions by Bruno Haible:
70582         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70583         our own.
70584         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70585         * modules/acl (Depends-on): Add gettext.
70586
70587 2007-03-19  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/iconvme: Remove file.
70590         * lib/iconvme.h: Remove file.
70591         * lib/iconvme.c: Remove file.
70592         * m4/iconvme.m4: Remove file.
70593
70594 2007-03-19  Bruno Haible  <bruno@clisp.org>
70595
70596         * doc/relocatable-maint.texi: Break long shell script line.
70597         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70598
70599 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70602         handle file_has_acl.
70603         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70604         * lib/acl.c: Move header inclusions and related macro defns into
70605         lib/acl-internal.h.
70606         (S_ISLNK): Remove defn, since that's now done for us.
70607         (file_has_acl): Move to lib/file-has-acl.c.
70608         Call acl_trivial if available.  This is the crucial part of the fix.
70609         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70610         shared within the library.  Rewrite a bit, partly to make it compatible
70611         with the GNU coding style.
70612         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70613         Remove unnecessary double-quotes.
70614         Don't test for acl_to_text; the build will catch that.
70615         Replace acl_entries if it doesn't exist and it is needed.
70616         Check for -lsec and acl_trivial (as used on Solaris 10).
70617         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70618         lib/file-has-acl.c.
70619         (Depends-on): Add sys_stat, for S_ISLNK.
70620
70621 2007-03-19  Ben Pfaff  <blp@gnu.org>
70622
70623         * doc/gnulib.texi: Fix typos.
70624         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70625
70626 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70629         If size is zero here, buf must be zero.
70630
70631 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70632
70633         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70634         <bruno@clisp.org>.
70635
70636 2007-03-18  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70639         Suggested by Eric Blake.
70640
70641 2007-03-18  Ben Pfaff  <blp@gnu.org>
70642
70643         * doc/relocatable.texi: Recommend using as prefix a directory
70644         that does not exist and will never be created.  Based on
70645         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70646         and others.
70647
70648 2007-03-17  Bruno Haible  <bruno@clisp.org>
70649
70650         * lib/fchownat.c: Include lchown.h.
70651
70652 2007-03-17  Bruno Haible  <bruno@clisp.org>
70653
70654         Fix endless loop when the given allocated size was > INT_MAX.
70655         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70656         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70657         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70658         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70659         * lib/sprintf.c (sprintf): Likewise.
70660
70661 2007-03-17  Bruno Haible  <bruno@clisp.org>
70662
70663         * tests/test-argp-2.sh (func_compare): Output a context diff.
70664
70665 2007-03-17  Bruno Haible  <bruno@clisp.org>
70666
70667         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70668         locale's decimal-point character.
70669
70670 2007-03-17  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70673         before comparing it. Needed because on some platforms (e.g. x86) a
70674         'long double' occupies less bytes than sizeof (long double).
70675
70676 2007-03-17  Bruno Haible  <bruno@clisp.org>
70677
70678         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70679         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70680         * tests/test-getaddrinfo.c (simple): Likewise.
70681         * tests/test-read-file.c (main): Likewise.
70682
70683 2007-03-17  Bruno Haible  <bruno@clisp.org>
70684
70685         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70686
70687 2007-03-17  Bruno Haible  <bruno@clisp.org>
70688
70689         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70690         unused variable.
70691
70692 2007-03-17  Bruno Haible  <bruno@clisp.org>
70693
70694         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70695         * tests/test-c-strncasecmp.c: Likewise.
70696
70697 2007-03-17  Bruno Haible  <bruno@clisp.org>
70698
70699         * modules/stdlib (Depends-on): Add unistd.
70700         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70701         Needed for MacOS X 10.3.
70702
70703 2007-03-17  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70706
70707 2007-03-17  Bruno Haible  <bruno@clisp.org>
70708
70709         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70710
70711 2007-03-17  Bruno Haible  <bruno@clisp.org>
70712
70713         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70714         to reflect files copied from gnulib (with or without modifications).
70715         Suggested by Jim Meyering.
70716
70717 2007-03-17  Eric Blake  <ebb9@byu.net>
70718
70719         * NEWS: Document stdlib change from 2007-02-18.
70720
70721 2007-03-17  Jim Meyering  <jim@meyering.net>
70722
70723         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70724         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70725         someone uses a name containing shell meta-characters.
70726         Reported by Alfred M. Szmidt.
70727
70728         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70729
70730 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70731
70732         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70733         and copy gettext configuration files only if configure.ac contains
70734         a use of AM_GNU_GETTEXT_VERSION.
70735
70736 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70737
70738         * build-aux/bootstrap (gnulib_name): New variable.
70739         (gnulib_tool_options): Use it.
70740
70741 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70742
70743         * tests/test-des.c: Use new namespace.
70744
70745 2007-03-15  Bruno Haible  <bruno@clisp.org>
70746
70747         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70748         Reported by James Youngman <jay@gnu.org>.
70749
70750 2007-03-15  Bruno Haible  <bruno@clisp.org>
70751
70752         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70753         declared prototype. Needed with cc on OSF/1 5.1.
70754
70755 2007-03-15  Bruno Haible  <bruno@clisp.org>
70756
70757         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70758         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70759         (struct gl_list_implementation): Add dispose_fn argument to the
70760         'create_empty', 'create' methods.
70761         (struct gl_list_impl_base): Add field 'dispose_fn'.
70762         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70763         argument.
70764         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70765         dispose_fn argument.
70766         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70767         dispose_fn on the dropped values.
70768         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70769         dispose_fn argument.
70770         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70771         dropped values.
70772         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70773         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70774         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70775         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70776         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70777         argument.
70778         (gl_tree_list_free): Call dispose_fn on the dropped values.
70779         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70780         the dropped values.
70781         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70782         Add dispose_fn argument.
70783         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70784         Call dispose_fn on the dropped values.
70785         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70786         Add dispose_fn argument.
70787         (gl_sublist_create): Initialize the 'dispose_fn' field.
70788         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70789         * tests/test-array_list.c (main): Update.
70790         * tests/test-carray_list.c (main): Update.
70791         * tests/test-avltree_list.c (main): Update.
70792         * tests/test-rbtree_list.c (main): Update.
70793         * tests/test-avltreehash_list.c (main): Update.
70794         * tests/test-rbtreehash_list.c (main): Update.
70795         * tests/test-linked_list.c (main): Update.
70796         * tests/test-linkedhash_list.c (main): Update.
70797         * tests/test-array_oset.c (main): Update.
70798
70799 2007-03-15  Bruno Haible  <bruno@clisp.org>
70800
70801         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70802         (gl_oset_create_empty): Add dispose_fn argument.
70803         (struct gl_oset_implementation): Add dispose_fn argument to
70804         'create_empty' method.
70805         (struct gl_oset_impl_base): Add dispose_fn field.
70806         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70807         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70808         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70809         values.
70810         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70811         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70812         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70813         dropped value.
70814         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70815         dropped value.
70816         * tests/test-array_oset.c (main): Update.
70817         * tests/test-avltree_oset.c (main): Update.
70818         * tests/test-rbtree_oset.c (main): Update.
70819         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70820
70821 2007-03-13  Bruno Haible  <bruno@clisp.org>
70822
70823         * tests/test-stdbool.c (i): Update after last patch.
70824
70825 2007-03-12  Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70828         the iswprint macro. Needed on Solaris 2.5.1.
70829
70830 2007-03-12  Bruno Haible  <bruno@clisp.org>
70831
70832         * tests/test-printf-frexp.c (main): Declare x as volatile.
70833
70834 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70835
70836         * doc/gnulib.texi (Build robot for gnulib): New section.
70837
70838 2007-03-12  Jim Meyering  <jim@meyering.net>
70839
70840         * build-aux/bootstrap: New file.
70841         * build-aux/bootstrap.conf: New file, from coreutils.
70842
70843 2007-03-11  Bruno Haible  <bruno@clisp.org>
70844
70845         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70846
70847 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70848
70849         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70850         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70851         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70852
70853 2007-03-11  Bruno Haible  <bruno@clisp.org>
70854
70855         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70856         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70857
70858 2007-03-11  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70861         formula. Needed for SunPRO C 5.0.
70862
70863 2007-03-11  Bruno Haible  <bruno@clisp.org>
70864
70865         * modules/long-options (Depends-on): Add getopt.
70866
70867 2007-03-11  Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/modechange (Depends-on): Add stdbool.
70870
70871 2007-03-11  Bruno Haible  <bruno@clisp.org>
70872
70873         * modules/i-ring (Depends-on): Add stdbool.
70874
70875 2007-03-11  Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/gc-des (Depends-on): Add stdbool.
70878
70879 2007-03-11  Bruno Haible  <bruno@clisp.org>
70880
70881         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70882
70883 2007-03-11  Bruno Haible  <bruno@clisp.org>
70884
70885         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70886
70887 2007-03-11  Bruno Haible  <bruno@clisp.org>
70888
70889         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70890
70891 2007-03-11  Bruno Haible  <bruno@clisp.org>
70892
70893         * lib/vasnprintf.c (sprintf): Undefine.
70894
70895 2007-03-11  Bruno Haible  <bruno@clisp.org>
70896
70897         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70898         initializers in SunPRO C and Compaq C compilers.
70899
70900 2007-03-11  Bruno Haible  <bruno@clisp.org>
70901
70902         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70903         decrementing code ANSI C compliant.
70904
70905 2007-03-11  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70908         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70909
70910 2007-03-11  Bruno Haible  <bruno@clisp.org>
70911
70912         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70913         <stdbool.h> substitute doesn't pass.
70914
70915 2007-03-11  Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70918
70919 2007-03-11  Bruno Haible  <bruno@clisp.org>
70920
70921         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70922         script, for submission to autobuild.josefsson.org.
70923
70924 2007-03-10  Bruno Haible  <bruno@clisp.org>
70925
70926         * modules/canonicalize-lgpl-tests: New file.
70927         * tests/test-canonicalize-lgpl.sh: New file.
70928         * tests/test-canonicalize-lgpl.c: New file.
70929
70930         * modules/c-strcase-tests: New file.
70931         * tests/test-c-strcase.sh: New file.
70932         * tests/test-c-strcasecmp.c: New file.
70933         * tests/test-c-strncasecmp.c: New file.
70934
70935         * modules/atexit-tests: New file.
70936         * tests/test-atexit.sh: New file.
70937         * tests/test-atexit.c: New file.
70938
70939 2007-03-10  Bruno Haible  <bruno@clisp.org>
70940
70941         * tests/test-binary-io.sh: Use temporary filenames that are not so
70942         likely to clash with those of other tests (in a parallel make).
70943         * tests/test-binary-io.c: Likewise.
70944
70945 2007-03-10  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70948         fallback; use #error instead.
70949         Suggested by Simon Josefsson.
70950
70951 2007-03-10  Bruno Haible  <bruno@clisp.org>
70952
70953         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70954         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70955         first and the last.
70956
70957 2007-03-10  Bruno Haible  <bruno@clisp.org>
70958
70959         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70960
70961 2007-03-10  Bruno Haible  <bruno@clisp.org>
70962
70963         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70964         "make distcheck".
70965         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70966         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70967         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70968
70969 2007-03-10  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70972         variable.
70973         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70974         variable.
70975
70976 2007-03-09  Eric Blake  <ebb9@byu.net>
70977         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70978
70979         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70980         types are not being provided by gnulib.
70981         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70982         types are supported.
70983
70984 2007-03-10  Bruno Haible  <bruno@clisp.org>
70985
70986         * lib/stdio_.h (__attribute__): New macro.
70987         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70988         vsprintf): Specify __attribute__ __format__ for GCC.
70989         Suggested by Eric Blake.
70990
70991 2007-03-09  Bruno Haible  <bruno@clisp.org>
70992
70993         * modules/printf-posix-tests: New file.
70994         * tests/test-printf-posix.sh: New file.
70995         * tests/test-printf-posix.c: New file.
70996
70997         * modules/printf-posix: New file.
70998         * lib/printf.c: New file.
70999         * m4/printf-posix-rpl.m4: New file.
71000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71001         REPLACE_PRINTF.
71002         * lib/stdio_.h (printf): New declaration.
71003         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71004         ____strfmon____): New macros.
71005         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71006         REPLACE_PRINTF.
71007
71008 2007-03-09  Bruno Haible  <bruno@clisp.org>
71009
71010         * tests/test-vasnprintf-posix2.sh: New file.
71011         * tests/test-vasnprintf-posix2.c: New file.
71012         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71013         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71014         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71015
71016         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71017         a locale dependent decimal point, rather than always '.'.
71018
71019 2007-03-09  Eric Blake  <ebb9@byu.net>
71020
71021         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71022         spite of platforms like Tandem/NSK that define it to -1.
71023
71024 2007-03-08  Bruno Haible  <bruno@clisp.org>
71025
71026         * modules/vprintf-posix-tests: New file.
71027         * tests/test-vprintf-posix.sh: New file.
71028         * tests/test-vprintf-posix.c: New file.
71029         * tests/test-printf-posix.h: New file.
71030
71031         * modules/vprintf-posix: New file.
71032         * lib/vprintf.c: New file.
71033         * m4/vprintf-posix.m4: New file.
71034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71035         REPLACE_VPRINTF.
71036         * lib/stdio_.h (vprintf): New declaration.
71037         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71038         REPLACE_VPRINTF.
71039
71040 2007-03-08  Bruno Haible  <bruno@clisp.org>
71041
71042         * modules/fprintf-posix-tests: New file.
71043         * tests/test-fprintf-posix.sh: New file.
71044         * tests/test-fprintf-posix.c: New file.
71045
71046         * modules/fprintf-posix: New file.
71047         * lib/fprintf.c: New file.
71048         * m4/fprintf-posix.m4: New file.
71049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71050         REPLACE_FPRINTF.
71051         * lib/stdio_.h (fprintf): New declaration.
71052         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71053         REPLACE_FPRINTF.
71054
71055 2007-03-08  Bruno Haible  <bruno@clisp.org>
71056
71057         * modules/vfprintf-posix-tests: New file.
71058         * tests/test-vfprintf-posix.sh: New file.
71059         * tests/test-vfprintf-posix.c: New file.
71060         * tests/test-fprintf-posix.h: New file.
71061         * tests/test-fprintf-posix.out: New file.
71062
71063         * modules/vfprintf-posix: New file.
71064         * lib/vfprintf.c: New file.
71065         * m4/vfprintf-posix.m4: New file.
71066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71067         REPLACE_VFPRINTF.
71068         * lib/stdio_.h (vfprintf): New declaration.
71069         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71070         REPLACE_VFPRINTF.
71071
71072 2007-03-08  Bruno Haible  <bruno@clisp.org>
71073
71074         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71075
71076 2007-03-08  Bruno Haible  <bruno@clisp.org>
71077
71078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71079         instead of 'expr' invocations.
71080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71084         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71085         Suggested by Paul Eggert.
71086
71087 2007-03-08  Bruno Haible  <bruno@clisp.org>
71088
71089         * modules/fseterr-tests: New file.
71090         * tests/test-fseterr.c: New file.
71091
71092         * modules/fseterr: New file.
71093         * lib/fseterr.h: New file.
71094         * lib/fseterr.c: New file.
71095
71096 2007-03-08  Bruno Haible  <bruno@clisp.org>
71097
71098         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71099         * lib/getopt_.h: Likewise.
71100         * lib/mbswidth.h: Likewise.
71101         * lib/setenv.h: Likewise.
71102         * lib/vasnprintf.h: Likewise.
71103         * lib/vasprintf.h: Likewise.
71104         * lib/verror.h: Likewise.
71105         * lib/xsetenv.h: Likewise.
71106         * lib/xvasprintf.h: Likewise.
71107
71108 2007-03-08  Jim Meyering  <jim@meyering.net>
71109
71110         * users.txt: Add parted.
71111
71112         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71113
71114 2007-03-07  Bruno Haible  <bruno@clisp.org>
71115
71116         * m4/printf.m4: Make the shell script snippets copy&pastable.
71117
71118 2007-03-02  Bruno Haible  <bruno@clisp.org>
71119
71120         * lib/netinet_in_.h: New file.
71121         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71122         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71123         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71124         (Depends-on): Add absolute-header.
71125         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71126         into netinet/in.h.
71127
71128 2007-03-03  Bruno Haible  <bruno@clisp.org>
71129
71130         * lib/sys_select_.h: New file.
71131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71132         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71133         * modules/sys_select (Files): Add lib/sys_select_.h.
71134         (Depends-on): Add absolute-header.
71135         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71136         into sys/select.h.
71137
71138 2007-03-02  Bruno Haible  <bruno@clisp.org>
71139
71140         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71141         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71142         values.
71143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71144         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71145         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71146         * modules/sys_socket (Depends-on): Add absolute-header.
71147         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71148         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71149         (Include): Remove requirement of inclusion of <sys/types.h>.
71150
71151 2007-03-02  Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/byteswap_.h (bswap_32): Fix formula.
71154
71155 2007-03-06  Bruno Haible  <bruno@clisp.org>
71156
71157         * modules/sprintf-posix-tests: New file.
71158         * tests/test-sprintf-posix.c: New file.
71159
71160         * modules/sprintf-posix: New file.
71161         * lib/sprintf.c: New file.
71162         * m4/sprintf-posix.m4: New file.
71163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71164         REPLACE_SPRINTF.
71165         * lib/stdio_.h (sprintf): New declaration.
71166         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71167         REPLACE_SPRINTF.
71168
71169 2007-03-06  Bruno Haible  <bruno@clisp.org>
71170
71171         * modules/vsprintf-posix-tests: New file.
71172         * tests/test-vsprintf-posix.c: New file.
71173         * tests/test-sprintf-posix.h: New file.
71174
71175         * modules/vsprintf-posix: New file.
71176         * lib/vsprintf.c: New file.
71177         * m4/vsprintf-posix.m4: New file.
71178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71179         REPLACE_VSPRINTF.
71180         * lib/stdio_.h (vsprintf): New declaration.
71181         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71182         REPLACE_VSPRINTF.
71183
71184 2007-03-06  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/vsnprintf (Depend-on): Remove minmax.
71187
71188 2007-03-06  Bruno Haible  <bruno@clisp.org>
71189
71190         * modules/snprintf-posix-tests: New file.
71191         * tests/test-snprintf-posix.c: New file.
71192
71193         * modules/snprintf-posix: New file.
71194         * m4/snprintf-posix.m4: New file.
71195         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71196         gl_FUNC_SNPRINTF.
71197         (gl_FUNC_SNPRINTF): Invoke it.
71198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71199         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71200         is set.
71201         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71202
71203 2007-03-06  Bruno Haible  <bruno@clisp.org>
71204
71205         * modules/vsnprintf-posix-tests: New file.
71206         * tests/test-vsnprintf-posix.c: New file.
71207         * tests/test-snprintf-posix.h: New file.
71208
71209         * modules/vsnprintf-posix: New file.
71210         * m4/vsnprintf-posix.m4: New file.
71211         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71212         gl_FUNC_VSNPRINTF.
71213         (gl_FUNC_VSNPRINTF): Invoke it.
71214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71215         * lib/stdio_.h (vsnprintf): Define as a replacement if
71216         REPLACE_VSNPRINTF is set.
71217         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71218
71219 2007-03-06  Bruno Haible  <bruno@clisp.org>
71220
71221         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71223
71224 2007-03-06  Bruno Haible  <bruno@clisp.org>
71225
71226         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71227         (asinl): Declare also if HAVE_DECL_ASINL is set.
71228         (atanl): Declare also if HAVE_DECL_ATANL is set.
71229         (ceill): Declare also if HAVE_DECL_CEILL is set.
71230         (cosl): Declare also if HAVE_DECL_COSL is set.
71231         (expl): Declare also if HAVE_DECL_EXPL is set.
71232         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71233         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71234         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71235         (logl): Declare also if HAVE_DECL_LOGL is set.
71236         (sinl): Declare also if HAVE_DECL_SINL is set.
71237         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71238         (tanl): Declare also if HAVE_DECL_TANL is set.
71239         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71241         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71242         declaration of frexpl, ldexpl.
71243         * modules/printf-frexpl (Depends-on): Add math.
71244         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71245
71246 2007-03-05  Bruno Haible  <bruno@clisp.org>
71247
71248         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71249         frexpl and ldexpl are declared.
71250         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71251
71252 2007-03-05  Bruno Haible  <bruno@clisp.org>
71253
71254         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71255         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71256
71257 2007-03-05  Bruno Haible  <bruno@clisp.org>
71258
71259         * lib/stdio_.h: Include <stddef.h>.
71260
71261 2007-03-05  Bruno Haible  <bruno@clisp.org>
71262
71263         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71264
71265 2007-03-05  Bruno Haible  <bruno@clisp.org>
71266
71267         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71268         NetBSD 4, from Ralf Wildenhues.
71269
71270 2007-03-04  Bruno Haible  <bruno@clisp.org>
71271
71272         * lib/vasprintf.h: Update #if logic for the case when the functions
71273         exist but are overridden.
71274
71275 2007-03-04  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71278         implementations: glibc-2.4 and MacOS X 10.3.
71279         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71280         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71281         * tests/test-vasprintf-posix.c (test_function): Likewise.
71282
71283 2007-03-04  Bruno Haible  <bruno@clisp.org>
71284
71285         * modules/vasprintf-posix-tests: New file.
71286         * tests/test-vasprintf-posix.c: New file.
71287
71288         * modules/vasprintf-posix: New file.
71289         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71290         defined.
71291         * m4/vasprintf-posix.m4: New file.
71292         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71293         gl_FUNC_VASPRINTF.
71294         (gl_FUNC_VASPRINTF): Invoke it.
71295         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71296         here.
71297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71298
71299 2007-03-04  Bruno Haible  <bruno@clisp.org>
71300
71301         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71302         REPLACE_GETTIMEOFDAY.
71303         * modules/sys_time (Makefile.am): Likewise.
71304         * m4/sys_time_h.m4: Likewise.
71305         * m4/gettimeofday.m4: Likewise.
71306
71307 2007-03-04  Bruno Haible  <bruno@clisp.org>
71308
71309         * modules/vasnprintf-posix-tests: New file.
71310         * tests/test-vasnprintf-posix.c: New file.
71311
71312         * modules/vasnprintf-posix: New file.
71313         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71314         printf-frexpl.h.
71315         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71316         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71317         REPLACE_VASNPRINTF is defined.
71318         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71319         gl_FUNC_VASNPRINTF.
71320         (gl_FUNC_VASNPRINTF): Invoke it.
71321         * m4/vasnprintf-posix.m4: New file.
71322         * m4/printf.m4: New file.
71323
71324 2007-03-04  Bruno Haible  <bruno@clisp.org>
71325
71326         Compile progreloc.c only if --enable-relocatable is specified.
71327         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71328         if --enable-relocatable was specified.
71329         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71330         lib_SOURCES.
71331
71332 2007-03-04  Jim Meyering  <jim@meyering.net>
71333
71334         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71335         Use it consistently, rather than enumerating errno constants.
71336
71337 2007-03-04  Bruno Haible  <bruno@clisp.org>
71338
71339         * modules/xvasprintf-tests: New file.
71340         * tests/test-xvasprintf.c: New file.
71341
71342         * modules/vasprintf-tests: New file.
71343         * tests/test-vasprintf.c: New file.
71344
71345         * modules/vasnprintf-tests: New file.
71346         * tests/test-vasnprintf.c: New file.
71347
71348         * modules/vsnprintf-tests: New file.
71349         * tests/test-vsnprintf.c: New file.
71350
71351         * modules/snprintf-tests: New file.
71352         * tests/test-snprintf.c: New file.
71353
71354 2007-03-04  Bruno Haible  <bruno@clisp.org>
71355
71356         Compile relocatable.c only if --enable-relocatable is specified.
71357         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71358         gl_RELOCATABLE_LIBRARY.
71359         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71360         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71361         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71362         gl_RELOCATABLE_LIBRARY.
71363         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71364         (Makefile.am): Remove lib_SOURCES.
71365         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71366         gl_RELOCATABLE_LIBRARY.
71367         (Makefile.am): Remove lib_SOURCES.
71368         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71369         always.
71370         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71371         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71372
71373 2007-03-04  Bruno Haible  <bruno@clisp.org>
71374
71375         * modules/argmatch-tests: New file.
71376         * tests/test-argmatch.c: New file.
71377
71378         * tests/test-allocsa.c (main): Halve the number of loop runs.
71379
71380         * modules/alloca-opt-tests: New file.
71381         * tests/test-alloca-opt.c: New file.
71382
71383 2007-03-04  Jim Meyering  <jim@meyering.net>
71384
71385         Work around difference between Linux ACLs and Solaris 10 ZFS.
71386         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71387         for EINVAL.
71388
71389 2007-03-03  Bruno Haible  <bruno@clisp.org>
71390
71391         * modules/relocatable-prog (Depends-on): Add back progreloc's
71392         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71393
71394 2007-03-03  Bruno Haible  <bruno@clisp.org>
71395
71396         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71397         * modules/relocatable-lib: New file.
71398
71399 2007-03-03  Bruno Haible  <bruno@clisp.org>
71400
71401         * modules/relocatable-prog: Renamed from modules/relocatable.
71402         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71403
71404 2007-03-03  Bruno Haible  <bruno@clisp.org>
71405
71406         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71407         m4/relocatable-lib.m4.
71408         (Depends-on): Remove 'relocatable'.
71409         (configure.ac): Add gl_RELOCATABLE_NOP.
71410
71411 2007-03-03  Bruno Haible  <bruno@clisp.org>
71412
71413         * modules/relocatable-prog-wrapper: New file.
71414         * modules/relocatable (Depends-on): Add it. Remove all other
71415         dependencies except progname.
71416         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71417
71418         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71419         (gl_FUNC_STRERROR): Nop.
71420         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71421
71422         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71423         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71424
71425         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71426         (gl_FUNC_READLINK): Update.
71427
71428         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71429
71430 2007-03-03  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71433         * modules/xreadlink (Depends-on): Add unistd.
71434         * modules/xreadlink-with-size (Depends-on): Likewise.
71435
71436 2007-03-03  Bruno Haible  <bruno@clisp.org>
71437
71438         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71439         extracted from gt_FUNC_SETENV.
71440         (gt_FUNC_SETENV): Remove macro.
71441         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71442         remove gt_FUNC_SETENV.
71443
71444 2007-03-03  Bruno Haible  <bruno@clisp.org>
71445
71446         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71447         ENABLE_RELOCATABLE here.
71448         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71449
71450 2007-03-03  Bruno Haible  <bruno@clisp.org>
71451
71452         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71453         * tests/test-rbtreehash_list.c: Include progname.h.
71454         (main): Call set_program_name.
71455
71456         * modules/rbtree-oset-tests (Depends-on): Add progname.
71457         * tests/test-rbtree_oset.c: Include progname.h.
71458         (main): Call set_program_name.
71459
71460         * modules/rbtree-list-tests (Depends-on): Add progname.
71461         * tests/test-rbtree_list.c: Include progname.h.
71462         (main): Call set_program_name.
71463
71464         * modules/linked-list-tests (Depends-on): Add progname.
71465         * tests/test-linked_list.c: Include progname.h.
71466         (main): Call set_program_name.
71467
71468 2007-03-03  Bruno Haible  <bruno@clisp.org>
71469
71470         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71471         All uses of __restrict changed to _Restrict_.
71472         * lib/glob_.h (__restrict): Remove macro.
71473
71474 2007-03-02  Bruno Haible  <bruno@clisp.org>
71475
71476         * modules/gettext (configure.ac): Require gettext infrastructure
71477         from version 0.16.1.
71478
71479 2007-03-02  Bruno Haible  <bruno@clisp.org>
71480
71481         * modules/linkedhash-list-tests (Depends-on): Add progname.
71482         * tests/test-linkedhash_list.c: Include progname.h.
71483         (main): Call set_program_name.
71484
71485         * modules/carray-list-tests (Depends-on): Add progname.
71486         * tests/test-carray_list.c: Include progname.h.
71487         (main): Call set_program_name.
71488
71489         * modules/avltreehash-list-tests (Depends-on): Add progname.
71490         * tests/test-avltreehash_list.c: Include progname.h.
71491         (main): Call set_program_name.
71492
71493         * modules/avltree-oset-tests (Depends-on): Add progname.
71494         * tests/test-avltree_oset.c: Include progname.h.
71495         (main): Call set_program_name.
71496
71497         * modules/avltree-list-tests (Depends-on): Add progname.
71498         * tests/test-avltree_list.c: Include progname.h.
71499         (main): Call set_program_name.
71500
71501         * modules/array-oset-tests (Depends-on): Add progname.
71502         * tests/test-array_oset.c: Include progname.h.
71503         (main): Call set_program_name.
71504
71505         * modules/array-list-tests (Depends-on): Add progname.
71506         * tests/test-array_list.c: Include progname.h.
71507         (main): Call set_program_name.
71508
71509         * modules/argp-tests (Depends-on): Add progname.
71510         * tests/test-argp.c: Include argp.h first. Include progname.h.
71511         (main): Call set_program_name.
71512
71513 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         * doc/gnulib-tool.texi (Initial import): Reword description of
71516         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71517         limited effect even if defined after the first system include.
71518
71519 2007-03-01  Bruno Haible  <bruno@clisp.org>
71520
71521         * build-aux/config.libpath: Update to libtool-1.5.22.
71522         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71523
71524 2007-03-01  Bruno Haible  <bruno@clisp.org>
71525
71526         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71527         foo_CFLAGS.
71528         Reported by Ralf Wildenhues.
71529
71530 2007-03-01  Bruno Haible  <bruno@clisp.org>
71531
71532         * build-aux/install-reloc: Remove object files left over by some
71533         compilers.
71534         Reported by Ralf Wildenhues.
71535
71536 2007-03-01  Bruno Haible  <bruno@clisp.org>
71537
71538         * build-aux/install-reloc: Break long lines.
71539
71540 2007-03-01  Bruno Haible  <bruno@clisp.org>
71541
71542         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71543         Reported by Ralf Wildenhues.
71544
71545 2007-03-01  Bruno Haible  <bruno@clisp.org>
71546
71547         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71548         include ordering constraints.
71549
71550 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71554         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71555         as another example.
71556         * lib/time_.h: Fix misspelling.
71557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71558         Require gl_HEADER_TIME_H_DEFAULTS.
71559         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71560         * m4/time_r.m4 (gl_TIME_R): Likewise.
71561         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71562
71563 2007-03-01  Bruno Haible  <bruno@clisp.org>
71564
71565         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71566         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71567
71568 2007-03-01  Jim Meyering  <jim@meyering.net>
71569
71570         * modules/xreadlink (Maintainer): Add my name.
71571         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71572
71573 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71574             Bruno Haible  <bruno@clisp.org>
71575
71576         * build-aux/install-reloc: Compile also c-ctype.c.
71577         * build-aux/relocatable.sh.in: New file.
71578         * doc/relocatable.texi: New file.
71579         * doc/relocatable-maint.texi: New file.
71580         * doc/gnulib.texi: Include relocatable-maint.texi.
71581         * lib/progreloc.c: Include unistd.h unconditionally.
71582         * lib/relocwrapper.c: Include unistd.h unconditionally.
71583         Include c-ctype.h.
71584         (add_dotbin): Use c_tolower.
71585         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71586         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71587         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71588         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71589         to m4/relocatable-lib.m4.
71590         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71591         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71592         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71593         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71594         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71595         * modules/relocatable: New file.
71596         * modules/relocatable-lib: New file.
71597         * modules/relocatable-script: New file.
71598
71599 2007-02-28  Bruno Haible  <bruno@clisp.org>
71600
71601         Import --enable-relocatable infrastructure.
71602         * build-aux/config.libpath: New file, from GNU gettext.
71603         * build-aux/install-reloc: New file, from GNU gettext.
71604         * build-aux/reloc-ldflags: New file, from GNU gettext.
71605         * lib/relocatable.h: New file, from GNU gettext.
71606         * lib/relocatable.c: New file, from GNU gettext.
71607         * lib/relocwrapper.c: New file, from GNU gettext.
71608         * m4/relocatable.m4: New file, from GNU gettext.
71609
71610 2007-02-28  Bruno Haible  <bruno@clisp.org>
71611
71612         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71613
71614         * modules/xreadlink: New file, from GNU gettext with modifications.
71615         * lib/xreadlink.c: New file, from GNU gettext.
71616         * lib/xreadlink.h: Add comments.
71617         (xreadlink): New declaration.
71618
71619         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71620         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71621         lib/xreadlink-with-size.c.
71622         (configure.ac): Remove gl_XREADLINK invocation.
71623         (Makefile.am): Augment lib_SOURCES.
71624         * m4/xreadlink.m4: Remove file.
71625         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71626         (xreadlink_with_size): Renamed from xreadink.
71627         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71628         * modules/canonicalize (Depends-on): Replace xreadlink with
71629         xreadlink-with-size.
71630         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71631
71632 2007-02-25  Jim Meyering  <jim@meyering.net>
71633
71634         * build-aux/announce-gen: When complaining about excess arguments,
71635         list them.
71636
71637 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * README: Document signed integer overflow situation more
71640         accurately.
71641
71642 2007-02-25  Bruno Haible  <bruno@clisp.org>
71643
71644         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71645         'a' or 'A' conversion.
71646
71647 2007-02-25  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/filename: Renamed from modules/pathname.
71650         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71651         lib/concatpath.c with lib/concat-filename.c.
71652         (Makefile.am): Update.
71653         (Include): Replace pathname.h with filename.h.
71654         * lib/filename.h: Renamed from lib/pathname.h.
71655         (concatenated_filename): Renamed from concatenated_pathname.
71656         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71657         (concatenated_filename): Renamed from concatenated_pathname.
71658         * lib/findprog.c: Include filename.h instead of pathname.h.
71659         (find_in_path): Update.
71660         * lib/javacomp.c: Include filename.h instead of pathname.h.
71661         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71662         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71663         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71664         is_oldgcj_14_13_usable, is_javac_usable): Update.
71665         * lib/javaexec.c: Include filename.h instead of pathname.h.
71666         (execute_java_class): Update.
71667         * modules/findprog: Update.
71668         * modules/javacomp: Update.
71669         * modules/javaexec: Update.
71670         * MODULES.html.sh (File system functions): Add 'filename', remove
71671         'pathname'.
71672
71673 2007-02-25  Bruno Haible  <bruno@clisp.org>
71674
71675         * modules/printf-frexpl-tests: New file.
71676         * tests/test-printf-frexpl.c: New file.
71677
71678         * modules/printf-frexpl: New file.
71679         * lib/printf-frexpl.h: New file.
71680         * lib/printf-frexpl.c: New file.
71681         * m4/printf-frexpl.m4: New file.
71682
71683 2007-02-25  Bruno Haible  <bruno@clisp.org>
71684
71685         * modules/printf-frexp-tests: New file.
71686         * tests/test-printf-frexp.c: New file.
71687
71688         * modules/printf-frexp: New file.
71689         * lib/printf-frexp.h: New file.
71690         * lib/printf-frexp.c: New file.
71691         * m4/printf-frexp.m4: New file.
71692
71693 2007-02-25  Bruno Haible  <bruno@clisp.org>
71694
71695         Assume automake >= 1.10 for the tests.
71696         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71697         * modules/arctwo-tests: Likewise.
71698         * modules/argp-tests: Likewise.
71699         * modules/avltree-list-tests: Likewise.
71700         * modules/avltree-oset-tests: Likewise.
71701         * modules/avltreehash-list-tests: Likewise.
71702         * modules/carray-list-tests: Likewise.
71703         * modules/crc-tests: Likewise.
71704         * modules/des-tests: Likewise.
71705         * modules/gc-arcfour-tests: Likewise.
71706         * modules/gc-arctwo-tests: Likewise.
71707         * modules/gc-des-tests: Likewise.
71708         * modules/gc-hmac-md5-tests: Likewise.
71709         * modules/gc-hmac-sha1-tests: Likewise.
71710         * modules/gc-md2-tests: Likewise.
71711         * modules/gc-md4-tests: Likewise.
71712         * modules/gc-md5-tests: Likewise.
71713         * modules/gc-pbkdf2-sha1-tests: Likewise.
71714         * modules/gc-rijndael-tests: Likewise.
71715         * modules/gc-sha1-tests: Likewise.
71716         * modules/gc-tests: Likewise.
71717         * modules/getaddrinfo-tests: Likewise.
71718         * modules/hmac-md5-tests: Likewise.
71719         * modules/hmac-sha1-tests: Likewise.
71720         * modules/linked-list-tests: Likewise.
71721         * modules/linkedhash-list-tests: Likewise.
71722         * modules/lock-tests: Likewise.
71723         * modules/md2-tests: Likewise.
71724         * modules/md4-tests: Likewise.
71725         * modules/md5-tests: Likewise.
71726         * modules/rbtree-list-tests: Likewise.
71727         * modules/rbtree-oset-tests: Likewise.
71728         * modules/rbtreehash-list-tests: Likewise.
71729         * modules/read-file-tests: Likewise.
71730         * modules/rijndael-tests: Likewise.
71731         * modules/stdint-tests: Likewise.
71732         * modules/tls-tests: Likewise.
71733
71734 2007-02-24  Bruno Haible  <bruno@clisp.org>
71735
71736         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71737         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71738         function; instead check whether isnan with a double argument links.
71739         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71740         function; instead check whether isnan with a 'long double' argument
71741         links.
71742         Reported by Eric Blake <ebb9@byu.net>.
71743
71744 2007-02-24  Bruno Haible  <bruno@clisp.org>
71745
71746         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71747         defined.
71748         * lib/isnanl.c: Remove all code. Just include isnan.c.
71749         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71750
71751 2007-02-25  Jim Meyering  <jim@meyering.net>
71752
71753         Avoid conflicting types for 'unsetenv' on FreeBSD.
71754         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71755         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71756         in stdlib.h.
71757
71758 2007-02-24  Bruno Haible  <bruno@clisp.org>
71759
71760         * modules/isnanl-nolibm-tests: New file.
71761         * tests/test-isnanl.c: New file.
71762
71763         * modules/isnanl-nolibm: New file.
71764         * lib/isnanl.h: New file.
71765         * lib/isnanl.c: New file.
71766         * m4/isnanl.m4: New file.
71767
71768 2007-02-24  Bruno Haible  <bruno@clisp.org>
71769
71770         * modules/isnan-nolibm-tests: New file.
71771         * tests/test-isnan.c: New file.
71772
71773         * modules/isnan-nolibm: New file.
71774         * lib/isnan.h: New file.
71775         * lib/isnan.c: New file.
71776         * m4/isnan.m4: New file.
71777
71778 2007-02-24  Bruno Haible  <bruno@clisp.org>
71779
71780         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71781         assume that an exponent fits in 20 bits.
71782
71783 2007-02-24  Jim Meyering  <jim@meyering.net>
71784
71785         * m4/regex.m4: Update the description of the configure-time option,
71786         --without-included-regex, to state accurately what the defaults are,
71787         and perhaps to give people an idea why using this option is risky.
71788
71789 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71792         loops on small arguments.  This attempts to avoid the problem
71793         Bruno Haible reported for AIX 4.3.2 in
71794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71795
71796 2007-02-23  Bruno Haible  <bruno@clisp.org>
71797
71798         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71799         Needed for help2man.
71800
71801 2007-02-23  Karl Berry  <karl@gnu.org>
71802
71803         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71804         exists, foo.h should be cvs-ignored, not committed.
71805
71806 2007-02-23  Eric Blake  <ebb9@byu.net>
71807
71808         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71809         * lib/stat-time.h (includes): Likewise.
71810         * lib/utimecmp.c (includes): Likewise.
71811         * lib/utimens.h (includes): Likewise.
71812         * lib/getdate.y (includes): Also include "timespec.h" for use
71813         internal to the module.
71814         * modules/utimens (Depends-on): Revert yesterday's patch.
71815         * modules/nanosleep (Depends-on): Add missing dependency.
71816
71817 2007-02-22  Bruno Haible  <bruno@clisp.org>
71818
71819         * lib/glob.c: Don't include getlogin_r.h.
71820
71821 2007-02-22  Jim Meyering  <jim@meyering.net>
71822
71823         * modules/utimens (Depends-on): Add timespec, required for
71824         utimens.h's inclusion of timespec.h.
71825
71826 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71829         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71830         Schwab in
71831         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71832         I'll try to think of a better way to fix the Solaris problem.
71833
71834         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71835         like glibc; on Solaris 10, it fails with errno == EINVAL.
71836         POSIX says the behavior is unspecified if the first argument is NULL,
71837         so play it safe and never pass NULL to the system getcwd.
71838
71839 2007-02-21  Jim Meyering  <jim@meyering.net>
71840
71841         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71842         of gettimeofday.  It would conflict with the one now always
71843         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71844         an IRIX 6.5 build failure.
71845
71846 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         Minor fixups to port to Solaris 10 with Sun C 5.8.
71849         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71850         * modules/getcwd (Depends-on): Add dirfd.
71851         * lib/putenv.c (putenv): #undef it.
71852         (rpl_putenv): New decl.
71853         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71854
71855 2007-02-20  Bruno Haible  <bruno@clisp.org>
71856
71857         * modules/stdio-tests: New file.
71858         * tests/test-stdio.c: New file.
71859
71860         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71861         (Depends-on): Add stdio.
71862         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71863         (Include): Use <stdio.h> instead of vsnprintf.h.
71864         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71865         HAVE_DECL_VSNPRINTF.
71866         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71867
71868         * modules/snprintf (Files): Remove lib/snprintf.h.
71869         (Depends-on): Add stdio.
71870         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71871         (Include): Use <stdio.h> instead of snprintf.h.
71872         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71873         HAVE_DECL_SNPRINTF.
71874         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71875         * lib/getaddrinfo.c: Likewise.
71876
71877         * modules/stdio: New file.
71878         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71879         * lib/snprintf.h: Remove file.
71880         * lib/vsnprintf.h: Remove file.
71881         * lib/.cppi-disable: Remove snprintf.h.
71882         * m4/stdio_h.m4: New file.
71883         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71884
71885 2007-02-20  Jim Meyering  <jim@meyering.net>
71886
71887         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71888         used by e.g., mingw.  From Bruno Haible.
71889
71890 2007-02-19  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71893         warnings.
71894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71895
71896 2007-02-19  Bruno Haible  <bruno@clisp.org>
71897
71898         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71899         from mingw users.
71900
71901 2007-02-19  Bruno Haible  <bruno@clisp.org>
71902
71903         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71904         warnings.
71905         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71906
71907 2007-02-19  Jim Meyering  <jim@meyering.net>
71908
71909         Don't use FD after a successful "fdopendir (fd)".
71910         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71911         Reset it by calling dirfd on the just-obtained DIR*.
71912
71913         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71914         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71915
71916 2007-02-18  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/readlink.c: Include <unistd.h>.
71919         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71920         HAVE_READLINK.
71921         * modules/readlink (Depends-on): Add unistd.
71922         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71923         (Include): Add <unistd.h>.
71924
71925         * lib/getlogin_r.h: Remove file.
71926         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71927         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71928         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71929         HAVE_DECL_GETLOGIN_R.
71930         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71931         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71932         (Include): Use <unistd.h> instead of getlogin_r.h.
71933
71934         * lib/getcwd.h: Remove file.
71935         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71936         * lib/xgetcwd.c: Likewise.
71937         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71938         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71939         * modules/getcwd (Files): Remove lib/getcwd.h.
71940         (Depends-on): Add unistd.
71941         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71942         (Include): Use <unistd.h> instad of getcwd.h.
71943
71944         * lib/ftruncate.c: Include <unistd.h> first.
71945         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71946         Set HAVE_FTRUNCATE.
71947         * modules/ftruncate (Depends-on): Add unistd.
71948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71949
71950         * lib/fchdir.c: Include <unistd.h> first.
71951         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71953         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71954         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71955         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71956
71957         * lib/dup2.c: Include <unistd.h> first.
71958         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71959         HAVE_DUP2.
71960         * modules/dup2 (Depends-on): Add unistd.
71961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71962
71963         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71964         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71965         REPLACE_CHOWN. Don't define chown as a macro here.
71966         * modules/chown (Depends-on): Add unistd.
71967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71968
71969         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71970         Add definition for GL_LINK_WARNING.
71971         (chown, dup2): New declarations.
71972         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71973         link warning.
71974         (ftruncate): New declaration.
71975         (getcwd): New declaration, taken from old getcwd.h.
71976         (getlogin_r): New declaration, taken from old getlogin_r.h.
71977         (readlink): New declaration.
71978         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71979         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71980         (gl_PREREQ_UNISTD): Remove macro.
71981         (gl_UNISTD_MODULE_INDICATOR): New macro.
71982         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71983         many new variables. Don't set UNISTD_H.
71984         * modules/unistd (Description): Change.
71985         (Depends-on): Add link-warning.
71986         (configure.ac): Update.
71987         (Makefile.am): Create unistd.h always. Substitute many new variables
71988         into it.
71989
71990 2007-02-18  Bruno Haible  <bruno@clisp.org>
71991
71992         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71993         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71994         HAVE_GETSUBOPT.
71995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71996         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71997         * lib/getsubopt.h: Remove file.
71998         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71999         (Depends-on): Add stdlib.
72000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72001         (Includes): Use <stdlib.h> instead of getsubopt.h.
72002         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72003         Set HAVE_GETSUBOPT.
72004         * lib/getsubopt.c: Don't include getsubopt.h.
72005
72006 2007-02-18  Bruno Haible  <bruno@clisp.org>
72007
72008         * modules/fchdir (Depends-on): Add dup2.
72009
72010 2007-02-18  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/stdlib_.h: Handle glibc's special invocation convention
72013         specially.
72014
72015 2007-02-18  Bruno Haible  <bruno@clisp.org>
72016
72017         * modules/stdlib-tests: New file.
72018         * tests/test-stdlib.c: New file.
72019
72020         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72021         (Depends-on): Add stdlib.
72022         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72023         (Includes): Use <stdlib.h> instead of mkstemp.h.
72024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72025         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72026         * lib/mkstemp.c: Don't include mkstemp.h.
72027         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72028         * lib/stdlib--.h: Don't include mkstemp.h.
72029
72030         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72031         (Depends-on): Add stdlib.
72032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72033         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72034         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72035         HAVE_MKDTEMP.
72036         * lib/mkdtemp.c: Don't include mkdtemp.h.
72037         * lib/clean-temp.c: Don't include mkdtemp.h.
72038
72039         * modules/exit (Files): Remove lib/exit.h.
72040         (Depends-on): Add stdlib.
72041         (Makefile.am): Remove lib_SOURCES.
72042         (Include): Use <stdlib.h> instead of exit.h.
72043         * lib/argmatch.c: Don't include exit.h.
72044         * lib/execute.c: Likewise.
72045         * lib/pagealign_alloc.c: Likewise.
72046         * lib/pipe.c: Likewise.
72047         * lib/wait-process.c: Likewise.
72048         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72049         * lib/exitfail.c: Likewise.
72050         * lib/savewd.c: Likewise.
72051         * lib/xsetenv.c: Likewise.
72052
72053         * modules/stdlib: New file.
72054         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72055         and extra comments about mkstemp().
72056         * lib/exit.h: Remove file.
72057         * lib/mkdtemp.h: Remove file.
72058         * lib/mkstemp.h: Remove file.
72059         * m4/stdlib_h.m4: New file.
72060         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72061
72062 2007-02-18  Bruno Haible  <bruno@clisp.org>
72063
72064         * modules/math-tests: New file.
72065         * tests/test-math.c: New file.
72066
72067         * modules/math: New file.
72068         * modules/mathl (Files): Remove lib/mathl.h.
72069         (Depends-on): Add math.
72070         (Makefile.am): Don't mention mathl.h.
72071         (Include): Use <math.h> instead of mathl.h.
72072         * lib/math_.h: New file.
72073         * lib/mathl.h: Remove file.
72074         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72075         mathl.h.
72076         * lib/asinl.c: Likewise.
72077         * lib/atanl.c: Likewise.
72078         * lib/ceill.c: Likewise.
72079         * lib/cosl.c: Likewise.
72080         * lib/expl.c: Likewise.
72081         * lib/floorl.c: Likewise.
72082         * lib/frexpl.c: Likewise.
72083         * lib/ldexpl.c: Likewise.
72084         * lib/logl.c: Likewise.
72085         * lib/sincosl.c: Likewise.
72086         * lib/sinl.c: Likewise.
72087         * lib/sqrtl.c: Likewise.
72088         * lib/tanl.c: Likewise.
72089         * lib/trigl.c: Likewise.
72090         * m4/math_h.m4: New file.
72091         * MODULES.html.sh (Mathematics): Add math.
72092
72093 2007-02-17  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/wctype-tests: New file.
72096         * tests/test-wctype.c: New file.
72097
72098         * modules/wchar-tests: New file.
72099         * tests/test-wchar.c: New file.
72100
72101         * modules/unistd-tests: New file.
72102         * tests/test-unistd.c: New file.
72103
72104         * modules/time-tests: New file.
72105         * tests/test-time.c: New file.
72106
72107         * modules/sysexits-tests: New file.
72108         * tests/test-sysexits.c: New file.
72109
72110         * modules/sys_time-tests: New file.
72111         * tests/test-sys_time.c: New file.
72112
72113         * modules/sys_stat-tests: New file.
72114         * tests/test-sys_stat.c: New file.
72115
72116         * modules/sys_socket-tests: New file.
72117         * tests/test-sys_socket.c: New file.
72118
72119         * modules/sys_select-tests: New file.
72120         * tests/test-sys_select.c: New file.
72121
72122         * modules/string-tests: New file.
72123         * tests/test-string.c: New file.
72124
72125         * modules/stdbool-tests: New file.
72126         * tests/test-stdbool.c: New file.
72127
72128         * modules/netinet_in-tests: New file.
72129         * tests/test-netinet_in.c: New file.
72130
72131         * modules/inttypes-tests: New file.
72132         * tests/test-inttypes.c: New file.
72133
72134         * modules/fcntl-tests: New file.
72135         * tests/test-fcntl.c: New file.
72136
72137         * modules/byteswap-tests: New file.
72138         * tests/test-byteswap.c: New file.
72139
72140         * modules/arpa_inet-tests: New file.
72141         * tests/test-arpa_inet.c: New file.
72142
72143 2007-02-17  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72146         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72147         if the corresponding module is not enabled. Emit link warnings if
72148         the function is used nevertheless.
72149         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72150         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72151         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72152         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72153         * modules/inttypes (Depends-on): Add link-warning.
72154         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72155         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72156         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72157         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72158         * modules/imaxdiv (configure.ac): Likewise.
72159         * modules/strtoimax (configure.ac): Likewise.
72160         * modules/strtoumax (configure.ac): Likewise.
72161
72162 2007-02-17  Bruno Haible  <bruno@clisp.org>
72163
72164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72165         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72166         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72167         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72168
72169 2007-02-17  Bruno Haible  <bruno@clisp.org>
72170
72171         * modules/link-warning: New file.
72172         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72173         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72174         * modules/string (Depends-on): Add link-warning.
72175         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72176         string.h.
72177         * MODULES.html.sh (Support for building libraries and executables): Add
72178         link-warning.
72179
72180 2007-02-17  Bruno Haible  <bruno@clisp.org>
72181
72182         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72183         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72184         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72185         long lines.
72186
72187 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72188             Bruno Haible  <bruno@clisp.org>
72189
72190         * modules/tmpfile: New file.
72191         * lib/tmpfile.c: New file.
72192         * m4/tmpfile.m4: New file.
72193         * MODULES.html.sh (func_all_modules): New section "Input/output".
72194
72195 2007-02-15  Bruno Haible  <bruno@clisp.org>
72196
72197         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72198         (supports_delete_on_close): New function.
72199         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72200
72201 2007-02-14  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/mbspcasecmp-tests: New file.
72204         * tests/test-mbspcasecmp.sh: New file.
72205         * tests/test-mbspcasecmp.c: New file.
72206
72207         New module mbspcasecmp.
72208         * modules/mbspcasecmp: New file.
72209         * lib/mbspcasecmp.c: New file.
72210         * lib/string_.h (strncasecmp): Change warning message.
72211         (mbspcasecmp): New declaration.
72212         * m4/mbspcasecmp.m4: New file.
72213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72214         GNULIB_MBSPCASECMP.
72215         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72216         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72217
72218 2007-02-14  Bruno Haible  <bruno@clisp.org>
72219
72220         * modules/mbsncasecmp-tests: New file.
72221         * tests/test-mbsncasecmp.sh: New file.
72222         * tests/test-mbsncasecmp.c: New file.
72223
72224         New module mbsncasecmp.
72225         * modules/mbsncasecmp: New file.
72226         * lib/mbsncasecmp.c: New file.
72227         * lib/string_.h (mbsncasecmp): New declaration.
72228         * m4/mbsncasecmp.m4: New file.
72229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72230         GNULIB_MBSNCASECMP.
72231         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72232         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72233
72234 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72237         Verify that it doesn't overlap with our flags.
72238         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72239         do not have the desired effect in multibyte locales; instead, use
72240         mbscasecmp.
72241         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72242         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72243         we don't require GNU fnmatch ourselves (if our users require it, they
72244         should do so explicitly).
72245
72246         Fix regex code so it doesn't rely on strcasecmp.
72247         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72248         Otherwise, include gnulib's langinfo.h.
72249         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72250         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72251         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72252         * modules/regex (FILES): Remove m4/codeset.m4.
72253         (Depends-on): Add localcharset.  Remove strcase.
72254
72255 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72256
72257         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72258         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72259
72260 2007-02-13  Bruno Haible  <bruno@clisp.org>
72261
72262         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72264
72265 2007-02-12  Bruno Haible  <bruno@clisp.org>
72266
72267         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72268         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72269         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72270         time warning rather than a link error.
72271
72272 2007-02-12  Bruno Haible  <bruno@clisp.org>
72273
72274         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72275         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72277
72278 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72281         args, not 2.
72282
72283 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         New module 'time', so that apps can include <time.h> as per
72286         POSIX and GNU instead of separate include files like time_r.h
72287         and timegm.h.  This implementation tries out a simpler approach
72288         for replacing decls in standard include files (as compared to
72289         the string module), somewhat as an experiment.
72290
72291         * config/srclist.txt: Comment out mktime.c for now.
72292         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72293         since it doesn't apply any more.  Use generic wording instead.
72294         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72295         'time'.
72296         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72297         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72298         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72299         Don't include <sys/types.h>; no longer needed since we assume C89.
72300         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72301         * lib/strftime.c: Likewise.
72302         * lib/time_r.c: Likewise.
72303         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72304         * lib/nanosleep.c: Include <time.h> first, to check interface.
72305         * lib/strptime.c: Likewise.
72306         * lib/time_r.c: Likewise.
72307         * lib/timegm.c: Likewise.
72308         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72309         needed.
72310         * lib/timegm.c: Don't include timegm.h; no longer needed.
72311         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72312         time.h now handles any problems in that area.
72313         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72314         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72315         that time.h defines struct timespec.
72316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72317         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72318         handles that.
72319         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72320         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72321         needed.  Set REPLACE_LOCALTIME.
72322         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72323         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72324         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72325         nanosleep; time_h.m4 now does that.  Don't require
72326         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72327         module handles this now.
72328         * modules/getdate (Depends-on): Remove timespec.  Add time.
72329         * modules/nanosleep (Depends-on): Likewise.
72330         * modules/stat-time (Depends-on): Likewise.
72331         * modules/nanosleep (Include): Include time.h, not timespec.h.
72332         * modules/strptime (Files): Remove lib/strptime.h.
72333         (Depends-on): Add extensions, time.
72334         (Include): Include time.h, not strptime.h.
72335         * modules/time_r (Files): Remove lib/time_r.h.
72336         (Depends-on): Add time.
72337         (Include): Include time.h, not time_r.h.
72338         * modules/timegm: Likewise.
72339         * modules/timespec (Description): Now does timespec-related decls
72340         of our own, instead of struct timespec itself.
72341         (Depends-on): Add time; remove extensions.
72342         (Maintainer): Add self.
72343         * modules/utimecmp (Depends-on): Add time; remove timespec.
72344         * modules/utimens (Depends-on): Likewise.
72345         * modules/xnanosleep (Depends-on): Likewise.
72346
72347 2007-02-11  Bruno Haible  <bruno@clisp.org>
72348
72349         * lib/c-strstr.c: Include allocsa.h.
72350         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72351         * lib/c-strcasestr.c: Include allocsa.h.
72352         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72353         * lib/strcasestr.c: Include allocsa.h.
72354         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72355         * lib/mbsstr.c: Include allocsa.h.
72356         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72357         allocsa/freesa instead of malloc/free.
72358         * lib/mbscasestr.c: Include allocsa.h.
72359         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72360         allocsa/freesa instead of malloc/free.
72361         * modules/c-strstr (Depends-on): Add allocsa.
72362         * modules/c-strcasestr (Depends-on): Likewise.
72363         * modules/strcasestr (Depends-on): Likewise.
72364         * modules/mbsstr (Depends-on): Likewise.
72365         * modules/mbscasestr (Depends-on): Likewise.
72366
72367 2007-02-11  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72370
72371         * modules/mbsspn-tests: New file.
72372         * tests/test-mbsspn.sh: New file.
72373         * tests/test-mbsspn.c: New file.
72374
72375 2007-02-11  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72378
72379         * modules/mbspbrk-tests: New file.
72380         * tests/test-mbspbrk.sh: New file.
72381         * tests/test-mbspbrk.c: New file.
72382
72383 2007-02-11  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72386         unneeded cast.
72387
72388         * modules/mbscspn-tests: New file.
72389         * tests/test-mbscspn.sh: New file.
72390         * tests/test-mbscspn.c: New file.
72391
72392 2007-02-11  Bruno Haible  <bruno@clisp.org>
72393
72394         * modules/mbscasecmp-tests: New file.
72395         * tests/test-mbscasecmp.sh: New file.
72396         * tests/test-mbscasecmp.c: New file.
72397
72398 2007-02-11  Bruno Haible  <bruno@clisp.org>
72399
72400         Ensure O(n) worst-case complexity of mbscasestr.
72401         * lib/mbscasestr.c: Include stdbool.h.
72402         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72403         functions.
72404         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72405         the bookkeeping indicates that it's worth it.
72406         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72407
72408         * modules/mbscasestr-tests: New file.
72409         * tests/test-mbscasestr1.c: New file.
72410         * tests/test-mbscasestr2.sh: New file.
72411         * tests/test-mbscasestr2.c: New file.
72412         * tests/test-mbscasestr3.sh: New file.
72413         * tests/test-mbscasestr3.c: New file.
72414         * tests/test-mbscasestr4.sh: New file.
72415         * tests/test-mbscasestr4.c: New file.
72416         * m4/locale-tr.m4: New file.
72417
72418 2007-02-11  Bruno Haible  <bruno@clisp.org>
72419
72420         Ensure O(n) worst-case complexity of mbsstr.
72421         * lib/mbsstr.c: Include stdbool.h.
72422         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72423         functions.
72424         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72425         bookkeeping indicates that it's worth it.
72426         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72427
72428         * modules/mbsstr-tests: New file.
72429         * tests/test-mbsstr1.c: New file.
72430         * tests/test-mbsstr2.sh: New file.
72431         * tests/test-mbsstr2.c: New file.
72432         * tests/test-mbsstr3.sh: New file.
72433         * tests/test-mbsstr3.c: New file.
72434         * m4/locale-fr.m4: New file.
72435
72436 2007-02-11  Bruno Haible  <bruno@clisp.org>
72437
72438         * lib/mbsrchr.c (mbsrchr): Fix bug.
72439
72440         * modules/mbsrchr-tests: New file.
72441         * tests/test-mbsrchr.sh: New file.
72442         * tests/test-mbsrchr.c: New file.
72443
72444 2007-02-11  Bruno Haible  <bruno@clisp.org>
72445
72446         * lib/mbschr.c (mbschr): Fix bug.
72447
72448         * modules/mbschr-tests: New file.
72449         * tests/test-mbschr.sh: New file.
72450         * tests/test-mbschr.c: New file.
72451         * m4/locale-zh.m4: New file.
72452
72453 2007-02-11  Bruno Haible  <bruno@clisp.org>
72454
72455         Support for copying multibyte string iterators.
72456         * lib/mbiter.h: Include <string.h>.
72457         (mbiter_multi_copy): New function.
72458         (mbi_copy): New macro.
72459         * lib/mbuiter.h: Include <string.h>.
72460         (mbuiter_multi_copy): New function.
72461         (mbui_copy): New macro.
72462
72463 2007-02-11  Bruno Haible  <bruno@clisp.org>
72464
72465         New module mbslen.
72466         * modules/mbslen: New file.
72467         * lib/mbslen.c: New file.
72468         * lib/string_.h (mbslen): New declaration.
72469         * m4/mbslen.m4: New file.
72470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72471         GNULIB_MBSLEN.
72472         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72473         * MODULES.html.sh (Internationalization functions): Add mbslen.
72474
72475 2007-02-11  Bruno Haible  <bruno@clisp.org>
72476
72477         Ensure O(n) worst-case complexity of strcasestr substitute.
72478         * lib/strcasestr.c: Include stdbool.h.
72479         (knuth_morris_pratt): New function.
72480         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72481         bookkeeping indicates that it's worth it.
72482         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72483
72484         * modules/strcasestr-tests: New file.
72485         * tests/test-strcasestr.c: New file.
72486
72487 2007-02-11  Bruno Haible  <bruno@clisp.org>
72488
72489         Ensure O(n) worst-case complexity of c_strcasestr.
72490         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72491         (knuth_morris_pratt): New function.
72492         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72493         the bookkeeping indicates that it's worth it.
72494         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72495
72496         * modules/c-strcasestr-tests: New file.
72497         * tests/test-c-strcasestr.c: New file.
72498
72499 2007-02-11  Bruno Haible  <bruno@clisp.org>
72500
72501         Ensure O(n) worst-case complexity of c_strstr.
72502         * lib/c-strstr.c: Include stdbool.h, string.h.
72503         (knuth_morris_pratt): New function.
72504         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72505         bookkeeping indicates that it's worth it.
72506         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72507
72508         * lib/c-strstr.c: Complete rewrite for maintainability.
72509
72510         * modules/c-strstr-tests: New file.
72511         * tests/test-c-strstr.c: New file.
72512
72513 2007-02-11  Bruno Haible  <bruno@clisp.org>
72514
72515         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72516         5.2.1 and earlier, whereby \055 was treated just like the range
72517         delimiter '-'.
72518         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72519
72520 2007-02-08  Bruno Haible  <bruno@clisp.org>
72521
72522         * modules/regex (Depends-on): Add stdbool.
72523         Reported by Dalibor Topic <robilad@kaffe.org>.
72524
72525 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72528         Prefer returning from main to exiting from it.
72529         Remove unnecessary parens after sizeof.
72530
72531 2007-02-05  Bruno Haible  <bruno@clisp.org>
72532
72533         New module mbssep.
72534         * modules/mbssep: New file.
72535         * lib/mbssep.c: New file.
72536         * lib/string_.h (strsep): Add a conditional link warning.
72537         (mbssep): New declaration.
72538         * m4/mbssep.m4: New file.
72539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72540         GNULIB_MBSSEP.
72541         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72542         * MODULES.html.sh (Internationalization functions): Add mbssep.
72543
72544 2007-02-05  Bruno Haible  <bruno@clisp.org>
72545
72546         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72547         Optimize search in case of 1 delimiter.
72548
72549 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72550
72551         * lib/acl.h: Include sys/types.h before sys/acl.h.
72552
72553 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72554
72555         Merge upstream fix for glibc bugzilla #3957:
72556
72557         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72558
72559         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72560         bit for RE_HAT_LISTS_NOT_NEWLINE.
72561         (build_charclass_op): Remove bogus comment.
72562
72563 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72564
72565         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72566
72567 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72570         * lib/memmem.c [!defined _LIBC]: Include config.h.
72571
72572 2007-02-04  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72575         warning message.
72576
72577 2007-02-04  Bruno Haible  <bruno@clisp.org>
72578
72579         New module mbstok_r.
72580         * modules/mbstok_r: New file.
72581         * lib/mbstok_r.c: New file.
72582         * lib/string_.h (strtok_r): Change argument names to match the
72583         comments. Add a conditional link warning.
72584         (mbstok_r): New declaration.
72585         * m4/mbstok_r.m4: New file.
72586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72587         GNULIB_MBSTOK_R.
72588         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72589         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72590
72591 2007-02-04  Bruno Haible  <bruno@clisp.org>
72592
72593         New module mbsspn.
72594         * modules/mbsspn: New file.
72595         * lib/mbsspn.c: New file.
72596         * lib/string_.h (strspn): Add a conditional link warning.
72597         (mbsspn): New declaration.
72598         * m4/mbsspn.m4: New file.
72599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72600         GNULIB_MBSSPN.
72601         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72602         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72603
72604 2007-02-04  Bruno Haible  <bruno@clisp.org>
72605
72606         New module mbspbrk.
72607         * modules/mbspbrk: New file.
72608         * lib/mbspbrk.c: New file.
72609         * lib/string_.h (strpbrk): Add a conditional link warning.
72610         (mbspbrk): New declaration.
72611         * m4/mbspbrk.m4: New file.
72612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72613         GNULIB_MBSPBRK.
72614         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72615         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72616
72617 2007-02-04  Bruno Haible  <bruno@clisp.org>
72618
72619         New module mbscspn.
72620         * modules/mbscspn: New file.
72621         * lib/mbscspn.c: New file.
72622         * lib/string_.h (strcspn): Add a conditional link warning.
72623         (mbscspn): New declaration.
72624         * m4/mbscspn.m4: New file.
72625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72626         GNULIB_MBSCSPN.
72627         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72628         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72629
72630 2007-02-04  Bruno Haible  <bruno@clisp.org>
72631
72632         New module mbscasestr, reduced goal of strcasestr.
72633         * modules/mbscasestr: New file.
72634         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72635         (mbscasestr): Renamed from strcasestr.
72636         * lib/strcasestr.c: Don't include mbuiter.h.
72637         (strcasestr): Remove support for multibyte locales.
72638         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72639         Change the conditional link warning.
72640         (mbscasestr): New declaration.
72641         * m4/mbscasestr.m4: New file.
72642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72643         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72644         REPLACE_STRCASESTR.
72645         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72647         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72648         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72649         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72650         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72651         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72652         (Depends-on): Remove mbuiter.
72653         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72654
72655 2007-02-04  Bruno Haible  <bruno@clisp.org>
72656
72657         Simplify handling of strncasecmp.
72658         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72659         the conditional link warning.
72660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72661         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72662         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72663         * modules/strcase (configure.ac): Don't invoke
72664         gl_STRING_MODULE_INDICATOR.
72665         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72666
72667 2007-02-04  Bruno Haible  <bruno@clisp.org>
72668
72669         New module mbscasecmp, reduced goal of strcasecmp.
72670         * modules/mbscasecmp: New file.
72671         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72672         (mbscasecmp): Renamed from strcasecmp.
72673         * lib/strcasecmp.c: Don't include mbuiter.h.
72674         (strcasecmp): Remove support for multibyte locales.
72675         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72676         Change the conditional link warning.
72677         (mbscasecmp): New declaration.
72678         * m4/mbscasecmp.m4: New file.
72679         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72680         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72681         REPLACE_STRCASECMP.
72682         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72684         GNULIB_MBSCASECMP.
72685         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72686         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72687         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72688         (Depends-on): Remove mbuiter.
72689         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72690
72691 2007-02-04  Bruno Haible  <bruno@clisp.org>
72692
72693         New module mbsstr. Remove module strstr.
72694         * modules/mbsstr: New file.
72695         * modules/strstr: Remove file.
72696         * lib/mbsstr.c: Renamed from lib/strstr.c.
72697         (mbsstr): Renamed from strstr.
72698         * lib/string_.h (strstr): Remove declaration. Change the conditional
72699         link warning.
72700         (mbsstr): New declaration.
72701         * m4/mbsstr.m4: New file.
72702         * m4/strstr.m4: Remove file.
72703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72704         REPLACE_STRSTR.
72705         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72706         Don't initialize GNULIB_STRSTR.
72707         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72708         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72709         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72710         (Support for systems lacking ANSI C 89): Remove strstr.
72711
72712 2007-02-04  Bruno Haible  <bruno@clisp.org>
72713
72714         New module mbsrchr.
72715         * modules/mbsrchr: New file.
72716         * lib/mbsrchr.c: New file.
72717         * lib/string_.h (strrchr): Add a conditional link warning.
72718         (mbsrchr): New declaration.
72719         * m4/mbsrchr.m4: New file.
72720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72721         GNULIB_MBSRCHR.
72722         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72723         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72724
72725 2007-02-04  Bruno Haible  <bruno@clisp.org>
72726
72727         New module mbschr.
72728         * modules/mbschr: New file.
72729         * lib/mbschr.c: New file.
72730         * lib/string_.h (strchr): Add a conditional link warning.
72731         (mbschr): New declaration.
72732         * m4/mbschr.m4: New file.
72733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72734         GNULIB_MBSCHR.
72735         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72736         * MODULES.html.sh (Internationalization functions): Add mbschr.
72737
72738 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72739
72740         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72741
72742         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72743
72744 2007-02-04  Bruno Haible  <bruno@clisp.org>
72745
72746         New module description section 'configure.ac-early'.
72747         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72748         (func_get_autoconf_early_snippet): New function.
72749         (func_import, func_create_testdir): Use it. Remove special cases for
72750         modules 'extensions' and 'lock'.
72751         * modules/extensions (configure.ac-early): Require
72752         gl_USE_SYSTEM_EXTENSIONS.
72753         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72754
72755 2007-02-04  Bruno Haible  <bruno@clisp.org>
72756
72757         Make use of gcj-4.3's -fsource and -ftarget option.
72758         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72759         and if so try the options -fsource and -ftarget.
72760         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72761         source_version, ftarget_option, target_version arguments.
72762         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72763         (is_envjavac_oldgcj_14_14_usable): Renamed from
72764         is_envjavac_gcj_14_14_usable.
72765         (is_envjavac_oldgcj_14_13_usable): Renamed from
72766         is_envjavac_gcj_14_13_usable.
72767         (is_gcj_present): Update.
72768         (is_gcj_43, is_gcj43_usable): New functions.
72769         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72770         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72771         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72772         try the options -fsource and -ftarget.
72773
72774 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72777         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72778         larger value.
72779
72780 2007-02-03  Jim Meyering  <jim@meyering.net>
72781
72782         Give tools a better chance to allocate space for very large buffers.
72783         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72784
72785         Make pwd and readlink work also when run with an unreadable parent dir
72786         on systems with openat support.
72787         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72788         provided getcwd function, even when we have openat support.
72789         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72790
72791 2007-02-02  Bruno Haible  <bruno@clisp.org>
72792
72793         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72794         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72795         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72796         portability problems if one of these functions is only used on specific
72797         platforms.
72798         Reported by Paul Eggert.
72799
72800 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72801
72802         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72803         is causing more trouble than it's curing.
72804         * lib/regex_internal.h (__mempcpy): Remove.
72805         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72806         (and make the code a tad smaller to boot).
72807         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72808
72809 2007-02-02  Jim Meyering  <jim@meyering.net>
72810
72811         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72812         section, not in the Makefile.am: one.
72813
72814 2007-02-02  Eric Blake  <ebb9@byu.net>
72815
72816         * lib/strchrnul.c: Always include config.h first.
72817
72818         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72819         gnulib strstr is not necessary here.
72820
72821 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72822
72823         * m4/socklen.m4: Fix typo.
72824
72825 2007-02-02  Eric Blake  <ebb9@byu.net>
72826
72827         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72828         * modules/netinet_in (Makefile.am): Likewise.
72829
72830 2007-02-01  Bruno Haible  <bruno@clisp.org>
72831
72832         * lib/string_.h (GL_LINK_WARNING): New macro.
72833         (strcasecmp, strstr, strcasestr): If provided by the system,
72834         conditionally define as a macro that leads to a warning instead of to
72835         an error.
72836         (strncasecmp): Conditionally define as a macro that leads to a warning.
72837
72838 2007-02-01  Karl Berry  <karl@gnu.org>
72839
72840         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72841
72842 2007-02-01  Bruno Haible  <bruno@clisp.org>
72843
72844         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72845         renamings.
72846
72847 2007-02-01  Eric Blake  <ebb9@byu.net>
72848
72849         * modules/regex (Depends-on): Revert dependence on mempcpy.
72850         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72851         module's definition of mempcpy.
72852         Reported by Paul Eggert.
72853
72854 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72857         the symbol XYZ before redefining it.  This fixes a problem with
72858         programs that don't use XYZ, when compiled on systems that define
72859         XYZ to something else.
72860
72861 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72864         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72865         writeable to group or other and (2) is intended to have a special
72866         mode bit that is set or cleared.  In such a case, the directory
72867         should be neither group- nor other-writeable until the special
72868         mode bits are right.
72869
72870 2007-01-31  Eric Blake  <ebb9@byu.net>
72871
72872         * modules/mountlist (Depends-on): Add strstr.
72873
72874         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72875         bug.
72876         * modules/string (Makefile.am): Remove redundant replacement.
72877         * modules/regex (Depends-on): Add mempcpy.
72878
72879 2007-01-31  Bruno Haible  <bruno@clisp.org>
72880
72881         New module description field 'Link'.
72882         * gnulib-tool (func_usage): Document --extract-link-directive.
72883         (sed_extract_prog): Recognize 'Link' directive.
72884         (func_get_link_directive): New function.
72885         (func_import): Show summary of link directives.
72886         Handle --extract-link-directive option.
72887         * modules/acl (Link): New section.
72888         * modules/clock-time (Link): New section.
72889         * modules/euidaccess (Link): New section.
72890         * modules/gettext (Link): New section.
72891         * modules/iconv (Link): New section.
72892         * modules/lock (Link): New section.
72893         * modules/nanosleep (Link): New section.
72894         * modules/readline (Link): New section.
72895
72896 2007-01-27  Bruno Haible  <bruno@clisp.org>
72897
72898         Enforce the use of gnulib modules for unportable <string.h> functions.
72899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72900         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72901         (gl_HEADER_STRING_H_BODY): Require it.
72902         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72903         the symbol XYZ to one that gives a link error.
72904         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72905         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72906         * modules/mempcpy (configure.ac): Likewise.
72907         * modules/memrchr (configure.ac): Likewise.
72908         * modules/stpcpy (configure.ac): Likewise.
72909         * modules/stpncpy (configure.ac): Likewise.
72910         * modules/strcase (configure.ac): Likewise.
72911         * modules/strcasestr (configure.ac): Likewise.
72912         * modules/strchrnul (configure.ac): Likewise.
72913         * modules/strdup (configure.ac): Likewise.
72914         * modules/strndup (configure.ac): Likewise.
72915         * modules/strnlen (configure.ac): Likewise.
72916         * modules/strpbrk (configure.ac): Likewise.
72917         * modules/strsep (configure.ac): Likewise.
72918         * modules/strstr (configure.ac): Likewise.
72919         * modules/strtok_r (configure.ac): Likewise.
72920
72921 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72922
72923         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72924
72925 2007-01-30  Jim Meyering  <jim@meyering.net>
72926
72927         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72928
72929 2007-01-29  Bruno Haible  <bruno@clisp.org>
72930
72931         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72932         * lib/execute.c: Likewise.
72933         * lib/pipe.c: Likewise.
72934         * lib/printf-args.h: Likewise.
72935         * lib/printf-args.c: Likewise.
72936         * lib/printf-parse.c: Likewise.
72937         * lib/vasnprintf.c: Likewise.
72938
72939 2007-01-29  Eric Blake  <ebb9@byu.net>
72940
72941         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72942         declaration.
72943
72944 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * lib/strptime.h (strptime): Use 'restrict' for args where
72947         POSIX requires this.
72948         * lib/strptime.c (strptime): Likewise.
72949         Change license notice from LGPL to GPL, since gnulib-tool will
72950         change this as needed.
72951         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72952         defined.
72953         Include "strptime.h" first, to check interface.
72954         Do not #undef _LIBC and _NL_CURRENT.
72955         Do not include <stdlib.h>; no longer needed.
72956         Include "time_r.h" and declare ptime_locale_status
72957         only if _LIBC is not defined.
72958         (__P): Remove unused macro.
72959         (match_string): Bring back glibc version, but use it only if _LIBC
72960         is defined.
72961         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72962         Remove unnecessary assertion and abort() call.
72963         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72964         * m4/strptime.m4: Fix serial number comment.
72965         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72966         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72967         (Depends-on): Add time_r.
72968
72969 2007-01-29  Bruno Haible  <bruno@clisp.org>
72970
72971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72972         strptime.
72973         * modules/strptime (Depends-on): Add stdbool.
72974         * lib/strptime.h: Include <time.h> always. Add comments.
72975
72976 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72977
72978         * modules/strptime: New file.
72979         * lib/strptime.h: New file.
72980         * lib/strptime.c: New file.
72981         * m4/strptime.m4: New file.
72982
72983 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * MODULES.html.sh: New module mpsort.
72986         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72987
72988         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72989         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72991         All uses changed.
72992         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72993         All uses changed.
72994         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72995         to _Restrict_.
72996         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72997         the parameter matches the prototype.
72998
72999 2007-01-28  Jim Meyering  <jim@meyering.net>
73000
73001         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73002         sys/time.h here, reverting that part of the previous patch:
73003         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73004
73005 2007-01-28  Bruno Haible  <bruno@clisp.org>
73006
73007         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73008         value of $(SYS_TIME_H).
73009         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73010         remove it conditionally, too. [added by Jim Meyering]
73011         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73013         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73014         GETTIMEOFDAY_REPLACEMENT to 1.
73015
73016 2007-01-28  Bruno Haible  <bruno@clisp.org>
73017
73018         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73019         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73021         Set UNISTD_H instead of UNISTD_H2.
73022         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73023
73024 2007-01-28  Bruno Haible  <bruno@clisp.org>
73025
73026         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73027         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73028
73029 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73030
73031         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73032         (func_create_testdir): Ensure C locale for `grep' and `tr'
73033         character ranges.
73034         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73035         ACLOCAL_AMFLAGS parsing state machine.
73036
73037 2007-01-27  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/unistr/base: Update.
73040
73041 2007-01-27  Bruno Haible  <bruno@clisp.org>
73042
73043         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73044         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73045         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73046         modules/unistr/u32-mbtouc.
73047         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73048         * lib/unistr.h: Update.
73049         * lib/linebreak.c: Update.
73050         * modules/unistr/u32-mbtouc: Renamed from
73051         modules/unistr/u32-mbtouc-safe.
73052         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73053         * lib/unistr.h: Update.
73054         * lib/unistr/u32-to-u8.c: Update.
73055         * lib/unistr/u32-to-u16.c: Update.
73056
73057 2007-01-27  Bruno Haible  <bruno@clisp.org>
73058
73059         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73060         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73061         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73062         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73063         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73064         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73065         modules/unistr/u16-mbtouc.
73066         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73067         * lib/unistr.h: Update.
73068         * lib/linebreak.c: Update.
73069         * modules/linebreak: Update.
73070         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73071         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73072         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73073         * modules/unistr/u16-mbtouc: Renamed from
73074         modules/unistr/u16-mbtouc-safe.
73075         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73076         * lib/unistr.h: Update.
73077         * lib/unistr/u16-to-u8.c: Update.
73078         * modules/unistr/u16-to-u8: Update.
73079         * lib/unistr/u16-to-u32.c: Update.
73080         * modules/unistr/u16-to-u32: Update.
73081
73082 2007-01-27  Bruno Haible  <bruno@clisp.org>
73083
73084         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73085         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73086         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73087         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73088         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73089         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73090         modules/unistr/u8-mbtouc.
73091         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73092         * lib/unistr.h: Update.
73093         * lib/striconveh.c: Update.
73094         * modules/striconveh: Update.
73095         * lib/linebreak.c: Update.
73096         * modules/linebreak: Update.
73097         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73098         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73099         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73100         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73101         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73102         * lib/unistr.h: Update.
73103         * lib/striconveh.c: Update.
73104         * modules/striconveh: Update.
73105         * lib/unistr/u8-to-u16.c: Update.
73106         * modules/unistr/u8-to-u16: Update.
73107         * lib/unistr/u8-to-u32.c: Update.
73108         * modules/unistr/u8-to-u32: Update.
73109
73110 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73111
73112         Sync from Libtool.
73113         * lib/argz.c: Do not include strings.h nor memory.h, include
73114         string.h unconditionally.  Patch by Simon Josefsson.
73115
73116 2007-01-27  Bruno Haible  <bruno@clisp.org>
73117
73118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73119         from gl_HEADER_STRING_H_BODY.
73120         (gl_HEADER_STRING_H_BODY): Require it.
73121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73122         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73123         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73124         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73126         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73128         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73129         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73131         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73132         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73133         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73134         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73135         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73136
73137 2007-01-27  Bruno Haible  <bruno@clisp.org>
73138
73139         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73140         check_PROGRAMS into noinst_PROGRAMS.
73141         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73142         check_PROGRAMS in this case.
73143         (func_import): Set for_test to false.
73144         (func_create_testdir): Set for_test to true.
73145
73146 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73147             Bruno Haible  <bruno@clisp.org>
73148
73149         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73150         (Depends-on): Add string.
73151         (Includes): Use <string.h> instead of strcasestr.h.
73152         * modules/string (Makefile.am): Also substitute the value of
73153         REPLACE_STRCASESTR.
73154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73155         assume strcasestr is declared in <string.h> not <strings.h>. Also
73156         set REPLACE_STRCASESTR.
73157         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73158         REPLACE_STRCASESTR.
73159         * lib/strcasestr.h: Remove file.
73160         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73161         * lib/string_.h (strcasestr): New declaration.
73162
73163 2007-01-27  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/string_.h: Use 'extern'.
73166
73167 2007-01-27  Jim Meyering  <jim@meyering.net>
73168
73169         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73170         of set-but-not-used local, "q".
73171
73172         * lib/mempcpy.c: Include <config.h> before <string.h>.
73173         This fixes a compilation error on HP-UX, due to the system's
73174         "restrict"-using mempcpy prototype.
73175
73176 2007-01-26  Bruno Haible  <bruno@clisp.org>
73177
73178         Small optimization.
73179         * lib/javacomp.c: Include c-strstr.h.
73180          (is_envjavac_gcj): Use c_strstr instead of strstr.
73181         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73182
73183 2007-01-26  Bruno Haible  <bruno@clisp.org>
73184
73185         * MODULES.html.sh (Unicode string functions): Add the new modules.
73186
73187         * modules/uniconv/u32-strconv-to-locale: New file.
73188         * lib/uniconv/u32-strconv-to-locale.c: New file.
73189
73190         * modules/uniconv/u16-strconv-to-locale: New file.
73191         * lib/uniconv/u16-strconv-to-locale.c: New file.
73192
73193         * modules/uniconv/u8-strconv-to-locale: New file.
73194         * lib/uniconv/u8-strconv-to-locale.c: New file.
73195
73196         * modules/uniconv/u32-strconv-from-locale: New file.
73197         * lib/uniconv/u32-strconv-from-locale.c: New file.
73198
73199         * modules/uniconv/u16-strconv-from-locale: New file.
73200         * lib/uniconv/u16-strconv-from-locale.c: New file.
73201
73202         * modules/uniconv/u8-strconv-from-locale: New file.
73203         * lib/uniconv/u8-strconv-from-locale.c: New file.
73204
73205         * modules/uniconv/u32-strconv-to-enc: New file.
73206         * lib/uniconv/u32-strconv-to-enc.c: New file.
73207         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73208         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73209
73210         * modules/uniconv/u16-strconv-to-enc: New file.
73211         * lib/uniconv/u16-strconv-to-enc.c: New file.
73212         * lib/uniconv/u-strconv-to-enc.h: New file.
73213         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73214         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73215
73216         * modules/uniconv/u8-strconv-to-enc: New file.
73217         * lib/uniconv/u8-strconv-to-enc.c: New file.
73218         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73219         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73220
73221         * modules/uniconv/u32-strconv-from-enc: New file.
73222         * lib/uniconv/u32-strconv-from-enc.c: New file.
73223         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73224         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73225
73226         * modules/uniconv/u16-strconv-from-enc: New file.
73227         * lib/uniconv/u16-strconv-from-enc.c: New file.
73228         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73229         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73230
73231         * modules/uniconv/u8-strconv-from-enc: New file.
73232         * lib/uniconv/u8-strconv-from-enc.c: New file.
73233         * lib/uniconv/u-strconv-from-enc.h: New file.
73234         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73235         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73236
73237         * modules/uniconv/u32-conv-from-enc: New file.
73238         * lib/uniconv/u32-conv-from-enc.c: New file.
73239         * modules/uniconv/u32-conv-from-enc-tests: New file.
73240         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73241
73242         * modules/uniconv/u16-conv-from-enc: New file.
73243         * lib/uniconv/u16-conv-from-enc.c: New file.
73244         * lib/uniconv/u-conv-from-enc.h: New file.
73245         * modules/uniconv/u16-conv-from-enc-tests: New file.
73246         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73247
73248         * modules/uniconv/u8-conv-from-enc: New file.
73249         * lib/uniconv/u8-conv-from-enc.c: New file.
73250         * modules/uniconv/u8-conv-from-enc-tests: New file.
73251         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73252
73253         * modules/uniconv/base: New file.
73254         * lib/uniconv.h: New file.
73255
73256 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * doc/gnulib-tool.texi (Initial import): Update to match current
73259         behavior with strdup module.
73260         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73261         * lib/memmem.h: Remove; all uses removed.  This is now done
73262         by <string.h>.
73263         * lib/mempcpy.h: Likewise.
73264         * lib/memrchr.h: Likewise.
73265         * lib/stpcpy.h: Likewise.
73266         * lib/stpncpy.h: Likewise.
73267         * lib/strcase.h: Likewise.
73268         * lib/strchrnul.h: Likewise.
73269         * lib/strdup.h: Likewise.
73270         * lib/strndup.h: Likewise.
73271         * lib/strnlen.h: Likewise.
73272         * lib/strpbrk.h: Likewise.
73273         * lib/strsep.h: Likewise.
73274         * lib/strstr.h: Likewise.
73275         * lib/strtok_r.h: Likewise.
73276         * lib/string_.h: New file.
73277         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73278         Rely on <string.h> instead.
73279         * lib/canon-host.c: Likewise.
73280         * lib/chdir-long.c: Likewise.
73281         * lib/concatpath.c: Likewise.
73282         * lib/exclude.c: Likewise.
73283         * lib/fchdir.c: Likewise.
73284         * lib/getaddrinfo.c: Likewise.
73285         * lib/getcwd.c: Likewise.
73286         * lib/getsubopt.c: Likewise.
73287         * lib/glob.c: Likewise.
73288         * lib/hard-locale.c: Likewise.
73289         * lib/iconvme.c: Likewise.
73290         * lib/javacomp.c: Likewise.
73291         * lib/mempcpy.c: Likewise.
73292         * lib/memrchr.c: Likewise.
73293         * lib/regex_internal.h: Likewise.
73294         * lib/stpncpy.c: Likewise.
73295         * lib/strcasecmp.c: Likewise.
73296         * lib/strchrnul.c: Likewise.
73297         * lib/strdup.c: Likewise.
73298         * lib/striconv.c: Likewise.
73299         * lib/striconveh.c: Likewise.
73300         * lib/striconveha.c: Likewise.
73301         * lib/strncasecmp.c: Likewise.
73302         * lib/strndup.c: Likewise.
73303         * lib/strnlen.c: Likewise.
73304         * lib/strsep.c: Likewise.
73305         * lib/strstr.c: Likewise.
73306         * lib/strtok_r.c: Likewise.
73307         * lib/userspec.c: Likewise.
73308         * lib/w32spawn.h: Likewise.
73309         * lib/xstrndup.c: Likewise.
73310         * lib/mountlist.c (strstr): Remove decl.
73311         * m4/string_h.m4: New file.
73312         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73313         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73314         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73315         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73316         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73317         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73318         Set REPLACE_STRCASECMP if necessary.
73319         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73320         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73321         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73322         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73323         HAVE_DECL_STRDUP if necessary.
73324         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73325         since gl_FUNC_STRNDUP does that now.
73326         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73327         Check for decl here...
73328         (gl_PREREQ_STRNLEN): ... not here.
73329         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73330         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73331         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73332         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73333         necessary.
73334         * modules/string: New file.
73335         * modules/memmem (Files): Remove special-purpose include file.
73336         (Depends-on): Add string.
73337         (Include): Include <string.h>, not the removed file.
73338         * modules/mempcpy: Likewise.
73339         * modules/memrchr: Likewise.
73340         * modules/stpcpy: Likewise.
73341         * modules/stpncpy: Likewise.
73342         * modules/strcase: Likewise.
73343         * modules/strchrnul: Likewise.
73344         * modules/strdup: Likewise.
73345         * modules/strndup: Likewise.
73346         * modules/strnlen: Likewise.
73347         * modules/strpbrk: Likewise.
73348         * modules/strsep: Likewise.
73349         * modules/strstr: Likewise.
73350         * modules/strtok_r: Likewise.
73351         * tests/test-dirname.c: Don't include "strdup.h", since
73352         <string.h> now suffices.
73353         * tests/test-memmem.c: Don't include "memmem.h", since
73354         <string.h> now suffices.
73355
73356 2007-01-25  Bruno Haible  <bruno@clisp.org>
73357
73358         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73359         *resultp is 0.
73360
73361         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73362         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73363         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73364         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73365
73366         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73367         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73368         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73369         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73370         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73371         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73372
73373 2007-01-24  Bruno Haible  <bruno@clisp.org>
73374
73375         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73376         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73377         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73378         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73379         gl_FUNC_FTS_CORE.
73380         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73381         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73382         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73383         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73384         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73385         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73386         gl_FUNC_FCHOWNAT.
73387         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73388         gl_FUNC_STRFTIME.
73389         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73390         Reported by Ralf Wildenhues.
73391
73392 2007-01-24  Bruno Haible  <bruno@clisp.org>
73393
73394         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73395         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73396         gl_GETADDRINFO.
73397         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73398         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73399         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73400
73401 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73404         Don't use 'exit'; just return from 'main'.
73405         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73406
73407         * lib/fnmatch_.h: Readjust white space and comments to match
73408         glibc, to avoid spurious diffs.
73409
73410 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73411
73412         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73413         2004-12-01 change by Jakub Jelinek, since this code won't compile
73414         if !LIBC.  Problem reported by Bob Proulx.
73415
73416 2007-01-23  Bruno Haible  <bruno@clisp.org>
73417
73418         * lib/striconveh.c: Include c-strcaseeq.h.
73419         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73420         * modules/striconveh (Depends-on): Add c-strcaseeq.
73421
73422 2007-01-23  Bruno Haible  <bruno@clisp.org>
73423
73424         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73425
73426         * modules/c-strcaseeq: New file.
73427         * lib/c-strcaseeq.h: New file.
73428
73429         * modules/streq: New file.
73430         * lib/streq.h: New file.
73431
73432 2007-01-23  Bruno Haible  <bruno@clisp.org>
73433
73434         * modules/striconveha-tests: New file.
73435         * tests/test-striconveha.c: New file.
73436
73437         * lib/striconveha.h: Include <stdbool.h>.
73438         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73439         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73440         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73441         (mem_iconveha): New function.
73442         (str_iconveha_notranslit): Renamed from str_iconveha.
73443         (str_iconveha): New function.
73444         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73445         c-strcase.
73446
73447 2007-01-23  Bruno Haible  <bruno@clisp.org>
73448
73449         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73450         encodings without forgiving before trying any encoding with handler.
73451         (str_iconveha): Try all encodings without forgiving before trying any
73452         encoding with handler.
73453
73454 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         Import the following changes from libc.
73457
73458         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73459
73460         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73461
73462         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73463
73464         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73465         normal_bracket label.
73466
73467         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73468
73469         [BZ #361]
73470         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73471         to normal_bracket after fetching the next character.
73472
73473 2007-01-22  Bruno Haible  <bruno@clisp.org>
73474
73475         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73476         argument.
73477         * lib/striconveh.c (iconv_carefully_1): New function.
73478         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73479         argument.
73480         (str_cd_iconveh): Update.
73481         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73482         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73483         * tests/test-striconveh.c (MAGIC): New macro.
73484         (new_offsets): New function.
73485         (main): Test call with and without offsets.
73486
73487 2007-01-22  Bruno Haible  <bruno@clisp.org>
73488
73489         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73490         * modules/sys_select (Makefile.am): Likewise.
73491         * modules/sys_socket (Makefile.am): Likewise.
73492         * modules/sys_time (Makefile.am): Likewise.
73493
73494 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * modules/gettimeofday (License): Change from GPL to LGPL, since
73497         gettimeofday is a library function.
73498
73499 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73500
73501         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73502
73503 2007-01-21  Bruno Haible  <bruno@clisp.org>
73504
73505         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73506
73507 2007-01-21  Bruno Haible  <bruno@clisp.org>
73508
73509         * modules/striconveha: New file.
73510         * lib/striconveha.h: New file.
73511         * lib/striconveha.c: New file.
73512         * MODULES.html.sh (Internationalization functions): Add striconveha.
73513         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73514         string.
73515         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73516
73517 2007-01-21  Bruno Haible  <bruno@clisp.org>
73518
73519         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73520         * lib/striconveh.c (str_iconveh): Likewise.
73521
73522 2007-01-21  Bruno Haible  <bruno@clisp.org>
73523
73524         * lib/striconveh.h (mem_iconveh): New declaration.
73525         * lib/striconveh.c (mem_iconveh): New function.
73526         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73527
73528 2007-01-21  Bruno Haible  <bruno@clisp.org>
73529
73530         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73531
73532         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73533         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73534         original result buffer.
73535         (str_cd_iconveh): Update.
73536         * tests/test-striconveh.c (main): Update.
73537
73538         * lib/striconv.h (mem_cd_iconv): Change specification.
73539         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73540         result buffer.
73541         (str_cd_iconv): Update.
73542         * tests/test-striconv.c (main): Update.
73543
73544 2007-01-21  Bruno Haible  <bruno@clisp.org>
73545
73546         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73547
73548 2007-01-20  Jim Meyering  <jim@meyering.net>
73549
73550         * lib/userspec.c (parse_with_separator): If a user or group string
73551         starts with "+", skip the corresponding name-to-ID look-up, since
73552         such a look-up must fail: user and group names may not include "+".
73553
73554 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73557         since we now assume the sys_time module.
73558         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73559         check for sys/time.h; no longer needed.
73560         * modules/poll (Depends-on): Depend on sys_time.
73561
73562 2007-01-18  Bruno Haible  <bruno@clisp.org>
73563
73564         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73565         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73566
73567         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73568         gettimeofday.
73569
73570         * tests/test-gettimeofday.c: Include <time.h>.
73571         (dummy): Remove variable.
73572
73573         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73574         gl_HEADER_SYS_TIME_H.
73575         (gl_HEADER_SYS_TIME_H): New macro.
73576
73577         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73578         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73579         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73580         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73581         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73582         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73583         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73584         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73585         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73586         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73587         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73588
73589         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73590         last change; it caused a compilation error when cross-compiling to
73591         Cygwin.
73592
73593 2007-01-18  Jim Meyering  <jim@meyering.net>
73594
73595         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73596         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73597         than the race-prone "test -d sys || mkdir sys".
73598         (configure.ac): Use AC_PROG_MKDIR_P.
73599         * modules/sys_select: Likewise.
73600         * modules/sys_socket: Likewise.
73601         * modules/sys_time: Likewise.
73602
73603 2007-01-18  Eric Blake  <ebb9@byu.net>
73604
73605         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73606         replace gettimeofday.
73607         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73608         name, to avoid infinite recursion.
73609
73610 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73611
73612         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73613         module sys_time.
73614         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73615         assume timespec.h defines struct timeval.
73616         * lib/settime.c: Likewise.
73617         * lib/utimens.c: Likewise.
73618         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73619         since we now assume the gettimeofday module.
73620         * lib/tempname.c (__gen_tempname): Likewise.
73621         * lib/gettimeofday.h: Remove.
73622         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73623         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73624         Include <time.h>, for 'time()'.
73625         (localtime_buffer_addr): Also use this workaround if
73626         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73627         to simplify the uses.  All uses changed.
73628         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73629         that #undef is inside {}, and 'const' follows type name consistently.
73630         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73631         (gettimeofday): Do not use the maximum possible value for
73632         tv->tv_usec, since that might break usages other than ls.c.
73633         Instead, we'll leave ls.c alone.  This undoes today's patch
73634         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73635         we've never observed the problem but might as well keep the
73636         canary.
73637         * lib/nanosleep.c: Include timespec.h first, for interface check.
73638         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73639         now assume the sys_time module.
73640         * lib/tempname.c: Likewise.
73641         * lib/timespec.h: Likewise.
73642         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73643         needed.
73644         * lib/strftime.c: Likewise.
73645         * lib/timespec.h: Likewise.
73646         * lib/posixtm.c: Include posixtm.h first, for interface check.
73647         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73648         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73649         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73650         * lib/sys_time_.h: New file.
73651         * lib/timespec.h (struct timespec): Use long int, not long.
73652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73653         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73654         Remove obsolescent call to AC_HEADER_TIME.
73655         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73657         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73658         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73659         Likewise.
73660         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73661         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73663         into the sys_time module.  Check for gettimeofday just once.
73664         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73665         for gettimeofday signature to just check the signature.  Merely
73666         compile it, since linking doesn't test signature.  Improve test for
73667         whether gettimeofday.o is actually needed.
73668         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73669         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73670         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73671         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73672         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73673         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73674         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73675         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73676         than worrying about sys/time.h.
73677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73678         Don't bother worrying about TIME_WITH_SYS_TIME.
73679         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73680         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73681         * m4/sys_time_h.m4: New file.
73682         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73683         Don't include sys/time.h.  Return from main rather than exiting.
73684         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73685         all uses changed.
73686         * modules/gethrxtime (Depends-on): Add sys_time.
73687         * modules/gettime (Depends-on): Likewise.
73688         * modules/gettimeofday (Depends-on): Likewise.
73689         * modules/nanosleep (Depends-on): Likewise.
73690         * modules/settime (Depends-on): Likewise.
73691         * modules/tempname (Depends-on): Likewise.
73692         * modules/utimens (Depends-on): Likewise.
73693         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73694         (Include): Change back to <sys/time.h>.
73695         (Maintainer): Add self.
73696         * modules/sys_time: New file.
73697         * modules/tempname (Depends-on): Add gettimeofday.
73698         * tests/test-gettimeofday.c: Include <sys/time.h>
73699         rather than gettimeofday.h.
73700
73701 2007-01-17  Bruno Haible  <bruno@clisp.org>
73702
73703         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73704         the license default to GPL.
73705         (func_create_testdir): Don't complain if a module is LGPL and its
73706         tests module depends on GPLed modules.
73707
73708 2007-01-17  Bruno Haible  <bruno@clisp.org>
73709
73710         * lib/gettimeofday.c (gettimeofday): Add code for the case
73711         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73712         maximum possible value for tv->tv_usec, rather than the minimum one.
73713
73714 2005-10-08  Martin Lambers  <marlam@marlam.de>
73715 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73716 2007-01-16  Bruno Haible  <bruno@clisp.org>
73717
73718         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73719         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73720         gl_FUNC_GETTIMEOFDAY.
73721         (Include): Add gettimeofday.h.
73722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73723         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73724         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73725         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73726         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73727         * lib/gettimeofday.h: New file.
73728         * lib/gettimeofday.c: Include <sys/timeb.h>.
73729         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73730         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73731         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73732         fall back on time().
73733
73734         * tests/test-gettimeofday.c: New file.
73735         * modules/gettimeofday-tests: New file.
73736
73737 2007-01-16  Eric Blake  <ebb9@byu.net>
73738
73739         * modules/fnmatch (Depends-on): Depend on wchar.
73740         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73741         * m4/fnmatch.m4: Likewise.
73742         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73743         * m4/mbchar.m4: Likewise.
73744         * modules/mbswidth (Depends-on): Depend on wchar.
73745         * lib/mbswidth.c: Assume <wchar.h>.
73746         * m4/mbswidth.m4: Likewise.
73747         * modules/quotearg (Depends-on): Depend on wchar.
73748         * lib/quotearg.c: Assume <wchar.h>.
73749         * m4/quotearg.m4: Likewise.
73750         * modules/regex (Depends-on): Depend on wchar.
73751         * lib/regex_internal.h: Assume <wchar.h>.
73752         * m4/regex.m4: Likewise.
73753         * modules/stdint (Depends-on): Depend on wchar.
73754         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73755         * m4/stdint.m4: Likewise.
73756         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73757         * modules/strftime (Depends-on): Depend on wchar.
73758         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73759         * modules/strtol (Depends-on): Depend on wchar.
73760         * lib/strtol.c: Assume <wchar.h>.
73761         * modules/wcwidth (Depends-on): Depend on wchar.
73762         * lib/wcwidth.h: Assume <wchar.h>.
73763         * m4/wcwidth.m4: Likewise.
73764
73765 2007-01-16  Bruno Haible  <bruno@clisp.org>
73766
73767         * modules/csharpexec-script: New, created from...
73768         * modules/csharpexec: ... this.
73769
73770 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73771
73772         * modules/javaexec-script: New, created from...
73773         * modules/javaexec: ... this.
73774
73775 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73776
73777         * modules/poll (Dependencies): Add sys_select.
73778
73779 2007-01-15  Jim Meyering  <jim@meyering.net>
73780
73781         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73782         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73783         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73784         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73785
73786 2007-01-15  Bruno Haible  <bruno@clisp.org>
73787
73788         * modules/striconveh: New file.
73789         * lib/striconveh.h: New file.
73790         * lib/striconveh.c: New file.
73791         * MODULES.html.sh (Internationalization functions): Add striconveh.
73792
73793         * modules/striconveh-tests: New file.
73794         * tests/test-striconveh.c: New file.
73795
73796 2007-01-15  Bruno Haible  <bruno@clisp.org>
73797
73798         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73799         not from GNU libiconv or GNU libc.
73800
73801 2007-01-15  Bruno Haible  <bruno@clisp.org>
73802
73803         * doc/gnulib-intro.texi (Copyright): Explain the different license
73804         terms for module descriptions, autoconf macros, tests, documentation.
73805
73806 2007-01-14  Bruno Haible  <bruno@clisp.org>
73807
73808         * modules/striconv-tests: New file.
73809         * tests/test-striconv.c: New file.
73810
73811 2007-01-14  Bruno Haible  <bruno@clisp.org>
73812
73813         * modules/iconv-tests: New file.
73814         * tests/test-iconv.c: New file.
73815
73816 2007-01-14  Bruno Haible  <bruno@clisp.org>
73817
73818         * gnulib-tool (func_get_license): For test modules, use the license of
73819         the main module.
73820
73821 2007-01-14  Bruno Haible  <bruno@clisp.org>
73822
73823         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73824         if iconv is found to exist.
73825
73826 2007-01-14  Bruno Haible  <bruno@clisp.org>
73827
73828         * modules/c-ctype-tests: New file.
73829         * tests/test-c-ctype.c: New file.
73830
73831 2007-01-14  Bruno Haible  <bruno@clisp.org>
73832
73833         * modules/binary-io-tests: New file.
73834         * tests/test-binary-io.sh: New file.
73835         * tests/test-binary-io.c: New file.
73836
73837 2007-01-14  Bruno Haible  <bruno@clisp.org>
73838
73839         * modules/array-oset-tests: New file.
73840         * tests/test-array_oset.c: New file.
73841
73842 2007-01-14  Bruno Haible  <bruno@clisp.org>
73843
73844         * modules/array-list-tests: New file.
73845         * tests/test-array_list.c: New file.
73846
73847 2007-01-14  Bruno Haible  <bruno@clisp.org>
73848
73849         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73850         and make.
73851         Reported by Simon Josefsson in
73852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73853
73854 2007-01-14  Bruno Haible  <bruno@clisp.org>
73855
73856         * modules/allocsa-tests: New file.
73857         * tests/test-allocsa.c: New file.
73858
73859 2007-01-14  Bruno Haible  <bruno@clisp.org>
73860
73861         * modules/fchdir (Depends-on): Add absolute-header.
73862         * modules/unistd (Depends-on): Likewise.
73863
73864 2006-12-30  Bruno Haible  <bruno@clisp.org>
73865
73866         * modules/fchdir: New file.
73867         * modules/unistd (Files): Add lib/unistd_.h.
73868         (Makefile.am): Generate unistd.h from unistd_.h.
73869         * lib/fchdir.c: New file.
73870         * lib/dirent_.h: New file.
73871         * lib/unistd_.h: New file.
73872         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73873         * m4/fchdir.m4: New file.
73874         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73875         (gl_HEADER_UNISTD): Invoke it.
73876         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73877         function.
73878         * lib/backupfile.c (opendir, closedir): Undefine.
73879         * lib/chown.c (open, close): Undefine.
73880         * lib/clean-temp.c (open, close): Undefine.
73881         * lib/copy-file.c (open, close): Undefine.
73882         * lib/execute.c (open, close): Undefine.
73883         * lib/fsusage.c (open, close): Undefine.
73884         * lib/gc-gnulib.c (open, close): Undefine.
73885         * lib/getcwd.c (opendir, closedir): Undefine.
73886         * lib/glob.c (opendir, closedir): Undefine.
73887         * lib/javacomp.c (open, close): Undefine.
73888         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73889         * lib/openat-proc.c (open, close): Undefine.
73890         * lib/pagealign_alloc.c (open, close): Undefine.
73891         * lib/pipe.c (open, close): Undefine.
73892         * lib/progreloc.c (open, close): Undefine.
73893         * lib/savedir.c (opendir, closedir): Undefine.
73894         * lib/utime.c (open, close): Undefine.
73895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73896
73897 2007-01-10  Bruno Haible  <bruno@clisp.org>
73898
73899         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73900
73901 2007-01-12  Eric Blake  <ebb9@byu.net>
73902
73903         Provide a robust <wchar.h>.  Further simplifications are now
73904         possible in other modules, but not included here.
73905         * modules/wchar: New module.
73906         * m4/wchar.m4: New file.
73907         * lib/wchar_.h: Likewise.
73908         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73909         of the new module.
73910         * MODULES.html.sh (Extended multibyte and wide character utilities):
73911         New section.
73912
73913 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73916         to a reasonable default for memory allocation.
73917         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73918         file system that reports garbage st_size values for symlinks.
73919         Problem reported by Liyang Hu.
73920
73921 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73922
73923         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73924         Emacs .#* auto-save files).
73925
73926 2007-01-11  Bruno Haible  <bruno@clisp.org>
73927
73928         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73929         directory.
73930
73931 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         Use @...@ consistently in lib/wctype_.h.
73934         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73935         on it being set to 1 or 0.
73936         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73937         go back to AC_SUBSTing it.
73938         * modules/wctype (Makefile.am): Undo previous change.
73939
73940 2007-01-10  Eric Blake  <ebb9@byu.net>
73941
73942         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73943         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73944         * modules/wctype (Makefile.am): Likewise.
73945         Reported by Chris McGuire.
73946
73947 2007-01-10  Jim Meyering  <jim@meyering.net>
73948
73949         fts.c: a small readability/maintainability improvement
73950         * lib/fts.c (fts_read): Make this code slightly more readable and
73951         maintainable by hoisting the "sp->fts_cur = p" assignments to
73952         immediately follow the statements that set P.  Derived from
73953         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73954
73955 2007-01-10  Eric Blake  <ebb9@byu.net>
73956
73957         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73958         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73960         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73961         Reported by Chris McGuire.
73962
73963 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73964
73965         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73966         in sed script.
73967
73968 2007-01-09  Bruno Haible  <bruno@clisp.org>
73969
73970         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73971         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73972         variables.
73973         (func_module): Use them.
73974
73975 2007-01-09  Bruno Haible  <bruno@clisp.org>
73976
73977         * modules/unistr/base: New file.
73978         * lib/unistr.h: New file.
73979
73980         * modules/unistr/u8-to-u16: New file.
73981         * lib/unistr/u8-to-u16.c: New file.
73982
73983         * modules/unistr/u8-to-u32: New file.
73984         * lib/unistr/u8-to-u32.c: New file.
73985
73986         * modules/unistr/u16-to-u8: New file.
73987         * lib/unistr/u16-to-u8.c: New file.
73988
73989         * modules/unistr/u16-to-u32: New file.
73990         * lib/unistr/u16-to-u32.c: New file.
73991
73992         * modules/unistr/u32-to-u8: New file.
73993         * lib/unistr/u32-to-u8.c: New file.
73994
73995         * modules/unistr/u32-to-u16: New file.
73996         * lib/unistr/u32-to-u16.c: New file.
73997
73998         * modules/unistr/u8-check: New file.
73999         * modules/unistr/u16-check: New file.
74000         * modules/unistr/u32-check: New file.
74001         * lib/unistr/u8-check.c: New file.
74002         * lib/unistr/u16-check.c: New file.
74003         * lib/unistr/u32-check.c: New file.
74004
74005         * modules/unistr/u8-chr: New file.
74006         * modules/unistr/u16-chr: New file.
74007         * modules/unistr/u32-chr: New file.
74008         * lib/unistr/u8-chr.c: New file.
74009         * lib/unistr/u16-chr.c: New file.
74010         * lib/unistr/u32-chr.c: New file.
74011
74012         * modules/unistr/u8-cmp: New file.
74013         * modules/unistr/u16-cmp: New file.
74014         * modules/unistr/u32-cmp: New file.
74015         * lib/unistr/u8-cmp.c: New file.
74016         * lib/unistr/u16-cmp.c: New file.
74017         * lib/unistr/u32-cmp.c: New file.
74018
74019         * modules/unistr/u8-cpy: New file.
74020         * modules/unistr/u16-cpy: New file.
74021         * modules/unistr/u32-cpy: New file.
74022         * lib/unistr/u8-cpy.c: New file.
74023         * lib/unistr/u16-cpy.c: New file.
74024         * lib/unistr/u32-cpy.c: New file.
74025         * lib/unistr/u-cpy.h: New file.
74026
74027         * modules/unistr/u8-cpy-alloc: New file.
74028         * modules/unistr/u16-cpy-alloc: New file.
74029         * modules/unistr/u32-cpy-alloc: New file.
74030         * lib/unistr/u8-cpy-alloc.c: New file.
74031         * lib/unistr/u16-cpy-alloc.c: New file.
74032         * lib/unistr/u32-cpy-alloc.c: New file.
74033         * lib/unistr/u-cpy-alloc.h: New file.
74034
74035         * modules/unistr/u8-endswith: New file.
74036         * modules/unistr/u16-endswith: New file.
74037         * modules/unistr/u32-endswith: New file.
74038         * lib/unistr/u8-endswith.c: New file.
74039         * lib/unistr/u16-endswith.c: New file.
74040         * lib/unistr/u32-endswith.c: New file.
74041         * lib/unistr/u-endswith.h: New file.
74042
74043         * modules/unistr/u8-mblen: New file.
74044         * modules/unistr/u16-mblen: New file.
74045         * modules/unistr/u32-mblen: New file.
74046         * lib/unistr/u8-mblen.c: New file.
74047         * lib/unistr/u16-mblen.c: New file.
74048         * lib/unistr/u32-mblen.c: New file.
74049
74050         * modules/unistr/u8-mbtouc: New file.
74051         * modules/unistr/u16-mbtouc: New file.
74052         * modules/unistr/u32-mbtouc: New file.
74053         * lib/unistr/u8-mbtouc.c: New file.
74054         * lib/unistr/u16-mbtouc.c: New file.
74055         * lib/unistr/u32-mbtouc.c: New file.
74056
74057         * modules/unistr/u8-mbtouc-safe: New file.
74058         * modules/unistr/u16-mbtouc-safe: New file.
74059         * modules/unistr/u32-mbtouc-safe: New file.
74060         * lib/unistr/u8-mbtouc-safe.c: New file.
74061         * lib/unistr/u16-mbtouc-safe.c: New file.
74062         * lib/unistr/u32-mbtouc-safe.c: New file.
74063
74064         * modules/unistr/u8-move: New file.
74065         * modules/unistr/u16-move: New file.
74066         * modules/unistr/u32-move: New file.
74067         * lib/unistr/u8-move.c: New file.
74068         * lib/unistr/u16-move.c: New file.
74069         * lib/unistr/u32-move.c: New file.
74070         * lib/unistr/u-move.h: New file.
74071
74072         * modules/unistr/u8-next: New file.
74073         * modules/unistr/u16-next: New file.
74074         * modules/unistr/u32-next: New file.
74075         * lib/unistr/u8-next.c: New file.
74076         * lib/unistr/u16-next.c: New file.
74077         * lib/unistr/u32-next.c: New file.
74078
74079         * modules/unistr/u8-prev: New file.
74080         * modules/unistr/u16-prev: New file.
74081         * modules/unistr/u32-prev: New file.
74082         * lib/unistr/u8-prev.c: New file.
74083         * lib/unistr/u16-prev.c: New file.
74084         * lib/unistr/u32-prev.c: New file.
74085
74086         * modules/unistr/u8-set: New file.
74087         * modules/unistr/u16-set: New file.
74088         * modules/unistr/u32-set: New file.
74089         * lib/unistr/u8-set.c: New file.
74090         * lib/unistr/u16-set.c: New file.
74091         * lib/unistr/u32-set.c: New file.
74092         * lib/unistr/u-set.h: New file.
74093
74094         * modules/unistr/u8-startswith: New file.
74095         * modules/unistr/u16-startswith: New file.
74096         * modules/unistr/u32-startswith: New file.
74097         * lib/unistr/u8-startswith.c: New file.
74098         * lib/unistr/u16-startswith.c: New file.
74099         * lib/unistr/u32-startswith.c: New file.
74100         * lib/unistr/u-startswith.h: New file.
74101
74102         * modules/unistr/u8-stpcpy: New file.
74103         * modules/unistr/u16-stpcpy: New file.
74104         * modules/unistr/u32-stpcpy: New file.
74105         * lib/unistr/u8-stpcpy.c: New file.
74106         * lib/unistr/u16-stpcpy.c: New file.
74107         * lib/unistr/u32-stpcpy.c: New file.
74108         * lib/unistr/u-stpcpy.h: New file.
74109
74110         * modules/unistr/u8-stpncpy: New file.
74111         * modules/unistr/u16-stpncpy: New file.
74112         * modules/unistr/u32-stpncpy: New file.
74113         * lib/unistr/u8-stpncpy.c: New file.
74114         * lib/unistr/u16-stpncpy.c: New file.
74115         * lib/unistr/u32-stpncpy.c: New file.
74116         * lib/unistr/u-stpncpy.h: New file.
74117
74118         * modules/unistr/u8-strcat: New file.
74119         * modules/unistr/u16-strcat: New file.
74120         * modules/unistr/u32-strcat: New file.
74121         * lib/unistr/u8-strcat.c: New file.
74122         * lib/unistr/u16-strcat.c: New file.
74123         * lib/unistr/u32-strcat.c: New file.
74124         * lib/unistr/u-strcat.h: New file.
74125
74126         * modules/unistr/u8-strchr: New file.
74127         * modules/unistr/u16-strchr: New file.
74128         * modules/unistr/u32-strchr: New file.
74129         * lib/unistr/u8-strchr.c: New file.
74130         * lib/unistr/u16-strchr.c: New file.
74131         * lib/unistr/u32-strchr.c: New file.
74132
74133         * modules/unistr/u8-strcmp: New file.
74134         * modules/unistr/u16-strcmp: New file.
74135         * modules/unistr/u32-strcmp: New file.
74136         * lib/unistr/u8-strcmp.c: New file.
74137         * lib/unistr/u16-strcmp.c: New file.
74138         * lib/unistr/u32-strcmp.c: New file.
74139
74140         * modules/unistr/u8-strcpy: New file.
74141         * modules/unistr/u16-strcpy: New file.
74142         * modules/unistr/u32-strcpy: New file.
74143         * lib/unistr/u8-strcpy.c: New file.
74144         * lib/unistr/u16-strcpy.c: New file.
74145         * lib/unistr/u32-strcpy.c: New file.
74146         * lib/unistr/u-strcpy.h: New file.
74147
74148         * modules/unistr/u8-strcspn: New file.
74149         * modules/unistr/u16-strcspn: New file.
74150         * modules/unistr/u32-strcspn: New file.
74151         * lib/unistr/u8-strcspn.c: New file.
74152         * lib/unistr/u16-strcspn.c: New file.
74153         * lib/unistr/u32-strcspn.c: New file.
74154         * lib/unistr/u-strcspn.h: New file.
74155
74156         * modules/unistr/u8-strdup: New file.
74157         * modules/unistr/u16-strdup: New file.
74158         * modules/unistr/u32-strdup: New file.
74159         * lib/unistr/u8-strdup.c: New file.
74160         * lib/unistr/u16-strdup.c: New file.
74161         * lib/unistr/u32-strdup.c: New file.
74162         * lib/unistr/u-strdup.h: New file.
74163
74164         * modules/unistr/u8-strlen: New file.
74165         * modules/unistr/u16-strlen: New file.
74166         * modules/unistr/u32-strlen: New file.
74167         * lib/unistr/u8-strlen.c: New file.
74168         * lib/unistr/u16-strlen.c: New file.
74169         * lib/unistr/u32-strlen.c: New file.
74170         * lib/unistr/u-strlen.h: New file.
74171
74172         * modules/unistr/u8-strmblen: New file.
74173         * modules/unistr/u16-strmblen: New file.
74174         * modules/unistr/u32-strmblen: New file.
74175         * lib/unistr/u8-strmblen.c: New file.
74176         * lib/unistr/u16-strmblen.c: New file.
74177         * lib/unistr/u32-strmblen.c: New file.
74178
74179         * modules/unistr/u8-strmbtouc: New file.
74180         * modules/unistr/u16-strmbtouc: New file.
74181         * modules/unistr/u32-strmbtouc: New file.
74182         * lib/unistr/u8-strmbtouc.c: New file.
74183         * lib/unistr/u16-strmbtouc.c: New file.
74184         * lib/unistr/u32-strmbtouc.c: New file.
74185
74186         * modules/unistr/u8-strncat: New file.
74187         * modules/unistr/u16-strncat: New file.
74188         * modules/unistr/u32-strncat: New file.
74189         * lib/unistr/u8-strncat.c: New file.
74190         * lib/unistr/u16-strncat.c: New file.
74191         * lib/unistr/u32-strncat.c: New file.
74192         * lib/unistr/u-strncat.h: New file.
74193
74194         * modules/unistr/u8-strncmp: New file.
74195         * modules/unistr/u16-strncmp: New file.
74196         * modules/unistr/u32-strncmp: New file.
74197         * lib/unistr/u8-strncmp.c: New file.
74198         * lib/unistr/u16-strncmp.c: New file.
74199         * lib/unistr/u32-strncmp.c: New file.
74200
74201         * modules/unistr/u8-strncpy: New file.
74202         * modules/unistr/u16-strncpy: New file.
74203         * modules/unistr/u32-strncpy: New file.
74204         * lib/unistr/u8-strncpy.c: New file.
74205         * lib/unistr/u16-strncpy.c: New file.
74206         * lib/unistr/u32-strncpy.c: New file.
74207         * lib/unistr/u-strncpy.h: New file.
74208
74209         * modules/unistr/u8-strnlen: New file.
74210         * modules/unistr/u16-strnlen: New file.
74211         * modules/unistr/u32-strnlen: New file.
74212         * lib/unistr/u8-strnlen.c: New file.
74213         * lib/unistr/u16-strnlen.c: New file.
74214         * lib/unistr/u32-strnlen.c: New file.
74215         * lib/unistr/u-strnlen.h: New file.
74216
74217         * modules/unistr/u8-strpbrk: New file.
74218         * modules/unistr/u16-strpbrk: New file.
74219         * modules/unistr/u32-strpbrk: New file.
74220         * lib/unistr/u8-strpbrk.c: New file.
74221         * lib/unistr/u16-strpbrk.c: New file.
74222         * lib/unistr/u32-strpbrk.c: New file.
74223         * lib/unistr/u-strpbrk.h: New file.
74224
74225         * modules/unistr/u8-strrchr: New file.
74226         * modules/unistr/u16-strrchr: New file.
74227         * modules/unistr/u32-strrchr: New file.
74228         * lib/unistr/u8-strrchr.c: New file.
74229         * lib/unistr/u16-strrchr.c: New file.
74230         * lib/unistr/u32-strrchr.c: New file.
74231
74232         * modules/unistr/u8-strspn: New file.
74233         * modules/unistr/u16-strspn: New file.
74234         * modules/unistr/u32-strspn: New file.
74235         * lib/unistr/u8-strspn.c: New file.
74236         * lib/unistr/u16-strspn.c: New file.
74237         * lib/unistr/u32-strspn.c: New file.
74238         * lib/unistr/u-strspn.h: New file.
74239
74240         * modules/unistr/u8-strstr: New file.
74241         * modules/unistr/u16-strstr: New file.
74242         * modules/unistr/u32-strstr: New file.
74243         * lib/unistr/u8-strstr.c: New file.
74244         * lib/unistr/u16-strstr.c: New file.
74245         * lib/unistr/u32-strstr.c: New file.
74246         * lib/unistr/u-strstr.h: New file.
74247
74248         * modules/unistr/u8-strtok: New file.
74249         * modules/unistr/u16-strtok: New file.
74250         * modules/unistr/u32-strtok: New file.
74251         * lib/unistr/u8-strtok.c: New file.
74252         * lib/unistr/u16-strtok.c: New file.
74253         * lib/unistr/u32-strtok.c: New file.
74254         * lib/unistr/u-strtok.h: New file.
74255
74256         * modules/unistr/u8-uctomb: New file.
74257         * modules/unistr/u16-uctomb: New file.
74258         * modules/unistr/u32-uctomb: New file.
74259         * lib/unistr/u8-uctomb.c: New file.
74260         * lib/unistr/u16-uctomb.c: New file.
74261         * lib/unistr/u32-uctomb.c: New file.
74262
74263         * MODULES.html.sh (Unicode string functions): Add the new modules.
74264
74265 2007-01-08  Bruno Haible  <bruno@clisp.org>
74266
74267         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74268         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74269         subdirectories.
74270
74271 2007-01-08  Karl Berry  <karl@gnu.org>
74272
74273         * doc/error.texi: mention that main() fns must set program_name
74274         when progname is used.
74275
74276 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74279         WCTYPE_H is empty, for the benefit of builds from non-distclean
74280         directories.  Problem reported by Eric Blake in
74281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74282
74283 2007-01-08  Bruno Haible  <bruno@clisp.org>
74284
74285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74286         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74287         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74288         PROVIDE_CANONICALIZE_FILENAME_MODE.
74289         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74290
74291 2007-01-08  Bruno Haible  <bruno@clisp.org>
74292
74293         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74294         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74295         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74296         * lib/fts.c: Likewise.
74297         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74298
74299 2006-12-25  Bruno Haible  <bruno@clisp.org>
74300
74301         * modules/utf8-ucs4-safe: New file.
74302         * lib/utf8-ucs4-safe.h: New file.
74303         * lib/unistr/utf8-ucs4-safe.c: New file.
74304
74305         * modules/utf16-ucs4-safe: New file.
74306         * lib/utf16-ucs4-safe.h: New file.
74307         * lib/unistr/utf16-ucs4-safe.c: New file.
74308
74309         * MODULES.html.sh (Unicode string functions): Add the new modules.
74310
74311 2007-01-08  Bruno Haible  <bruno@clisp.org>
74312
74313         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74314         (Depends-on): Add unitypes.
74315         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74316         (u8_mbtouc_aux): Move out to separate file.
74317         (u8_mbtouc): Use ucs4_t, uint8_t types.
74318         * lib/unistr/utf8-ucs4.c: New file.
74319
74320         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74321         (Depends-on): Add unitypes.
74322         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74323         (u16_mbtouc_aux): Move out to separate file.
74324         (u16_mbtouc): Use ucs4_t, uint16_t types.
74325         * lib/unistr/utf16-ucs4.c: New file.
74326
74327         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74328         (Depends-on): Add unitypes.
74329         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74330         (u8_uctomb_aux): Move out to separate file.
74331         (u8_uctomb): Use ucs4_t, uint8_t types.
74332         * lib/unistr/ucs4-utf8.c: New file.
74333
74334         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74335         (Depends-on): Add unitypes.
74336         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74337         (u16_uctomb_aux): Move out to separate file.
74338         (u16_uctomb): Use ucs4_t, uint16_t types.
74339         * lib/unistr/ucs4-utf16.c: New file.
74340
74341 2006-12-25  Bruno Haible  <bruno@clisp.org>
74342
74343         * modules/unitypes: New file.
74344         * lib/unitypes.h: New file.
74345         * MODULES.html.sh (func_all_modules): New section "Unicode string
74346         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74347         this section. Add unitypes.
74348
74349 2007-01-08  Bruno Haible  <bruno@clisp.org>
74350
74351         Avoid variable names that conflict with those from libtool.
74352         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74353         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74354         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74355         library_names_spec to acl_library_names_spec, hardcode_* to
74356         acl_hardcode_*.
74357         Reported by Ralf Wildenhues.
74358
74359 2007-01-08  Bruno Haible  <bruno@clisp.org>
74360
74361         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74362         definition.
74363         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74364         definition.
74365         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74366         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74367         definition.
74368         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74369         definition.
74370         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74371         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74372         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74373         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74374         definition.
74375         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74376         definition.
74377         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74378         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74379         GC_USE_<algorithm>.
74380         * lib/gc-libgcrypt.c: Likewise.
74381         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74382         * modules/gc-arctwo (configure.ac): Likewise.
74383         * modules/gc-des (configure.ac): Likewise.
74384         * modules/gc-hmac-md5 (configure.ac): Likewise.
74385         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74386         * modules/gc-md2 (configure.ac): Likewise.
74387         * modules/gc-md4 (configure.ac): Likewise.
74388         * modules/gc-md5 (configure.ac): Likewise.
74389         * modules/gc-random (configure.ac): Likewise.
74390         * modules/gc-rijndael (configure.ac): Likewise.
74391         * modules/gc-sha1 (configure.ac): Likewise.
74392
74393 2007-01-08  Bruno Haible  <bruno@clisp.org>
74394
74395         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74396         macro definition.
74397         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74398         definition.
74399         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74400         definition.
74401         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74402         * modules/fcntl-safer (configure.ac): Likewise.
74403         * modules/fopen-safer (configure.ac): Likewise.
74404         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74405         GNULIB_FWRITEERROR macro definition.
74406
74407 2007-01-08  Bruno Haible  <bruno@clisp.org>
74408
74409         * m4/gnulib-common.m4: New file.
74410         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74411         (func_get_filelist): Add m4/gnulib-common.m4.
74412
74413 2007-01-08  Bruno Haible  <bruno@clisp.org>
74414
74415         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74416         command.
74417
74418 2007-01-08  Jim Meyering  <jim@meyering.net>
74419
74420         Use a more robust test for a "can't happen" condition.
74421         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74422         narrowed the st_size value.  Presuming the "can't happen" condition
74423         is true, that narrowing could conceivably convert an invalid st_size
74424         value into a valid one.  Instead, use a change based on Matthew
74425         Woehlke's original patch.
74426
74427         Slight readability improvement: use an assert-like macro
74428         in place of literal "abort ()" uses.
74429         * lib/fts.c (fts_assert): Define.
74430         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74431         Use this macro instead of a bare 'abort'.
74432
74433 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74436         simply work around them.
74437         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74438         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74439         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74440         declaring.
74441         Don't bother to define as macros, since the standard doesn't require it.
74442         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74443         longer worry about IRIX 5.3.
74444         (HAVE_WCTYPE_CTMP_BUG): Remove.
74445
74446 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74449         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74450         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74451         Problems reported by Georg Schwarz for IRIX 5.3.
74452
74453         * gnulib-tool (autoconf_minversion): Take the maximum version number
74454         found, not the minimum.  Problem reported by James Youngman.
74455
74456 2007-01-03  Karl Berry  <karl@gnu.org>
74457
74458         * doc/error.texi: new file, explaining interaction with progname.
74459         * doc/gnulib.texi: include it.  Update copyright.
74460
74461 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74462
74463         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74464         AC_CANONICAL_HOST, to improve autobuild outputs.
74465
74466 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74467             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74468
74469         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74470         sockets, server sockets, and other file descriptors.  Count errors
74471         to compute the return value.  Reorder the code a bit to be easier
74472         to follow.  Don't set event bits that were not requested (except
74473         POLLERR and POLLHUP).
74474
74475 2007-01-01  Bruno Haible  <bruno@clisp.org>
74476
74477         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74478
74479 2007-01-03  Jim Meyering  <jim@meyering.net>
74480
74481         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74482
74483 2007-01-02  Bruno Haible  <bruno@clisp.org>
74484
74485         * modules/settime (Include): Require timespec.h.
74486         * modules/nanosleep (Include): Likewise.
74487
74488 2007-01-01  Bruno Haible  <bruno@clisp.org>
74489
74490         * gnulib-tool (func_emit_copyright_notice): Bump year.
74491         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74492
74493 2007-01-01  Bruno Haible  <bruno@clisp.org>
74494
74495         Improve support for OpenBSD.
74496         * build-aux/config.rpath (libname_spec): Export.
74497         (library_names_spec): New variable. Export.
74498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74499         library_names_spec from the config.rpath output. Locate shared library
74500         through the name pattern in library_names_spec.
74501
74502 2007-01-01  Eric Blake  <ebb9@byu.net>
74503
74504         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74505
74506 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74509         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74510         assume the C locale, and avoid an "eval" that could cause trouble.
74511         Problem with SORT reported by Bob Proulx.
74512
74513         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74514         Define.  Trivial patch from Henning Nielsen Lund, originally
74515         sent to bug-grep@gnu.org today.
74516
74517 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74520         struct stat.  Problem reported by Henning Nielsen Lund.
74521         * lib/acl.c: Include acl.h first, to check interface.  Don't
74522         bother to include sys/types.h and sys/stat.h again.
74523
74524 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         Import the following change from libc; problem reported by
74527         Sven Verdoolaege.
74528
74529         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74530
74531         [BZ #1373]
74532         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74533
74534 2006-12-28  Jim Meyering  <jim@meyering.net>
74535
74536         * build-aux/announce-gen: Do not assume that the package
74537         builds any of tar.gz, tar.bz2, and .xdelta files.
74538         Suggestion from Simon Josefsson.
74539
74540 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74541
74542         * modules/announce-gen: New file.
74543
74544 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74547         handles its gotchas now.
74548         * lib/mbswidth.c: Likewise.
74549         * lib/wcwidth.h: Likewise.
74550         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74551         and iswcntrl; the wctype module does this stuff now.
74552         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74554         * modules/mbchar (Depends-on): Add wctype.
74555         * modules/mbswidth (Depends-on): Likewise.
74556         * modules/wcwidth (Depends-on): Likewise.
74557
74558 2006-12-27  Eric Blake  <ebb9@byu.net>
74559
74560         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74561         module uses more than what <wctype.h> is required to provide.
74562
74563 2006-12-26  Eric Blake  <ebb9@byu.net>
74564
74565         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74566
74567 2006-12-26  Eric Blake  <ebb9@byu.net>
74568
74569         * modules/absolute-header: New module.
74570         * modules/fcntl (Depends-on): Depend on it.
74571         * modules/inttypes (Depends-on): Likewise.
74572         * modules/stdint (Depends-on): Likewise.
74573         * modules/sys_stat (Depends-on): Likewise.
74574         * modules/wctype (Depends-on): Likewise.
74575         * MODULES.html.sh (Support for building libraries and
74576         executables): Document it.
74577
74578 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * gnulib-tool (SED): Remove, undoing previous change.
74581         The problem was that it broke coreutils on Solaris, because
74582         "sed --posix" leaked into a makefile.
74583         (sed): New alias, if 'alias' and GNU sed.
74584
74585 2006-12-24  Jim Meyering  <jim@meyering.net>
74586
74587         Work around an fchownat bug in glibc-2.4:
74588         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74589         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74590         in spite of the -P option.
74591         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74592         New macros.
74593         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74594         * modules/openat (Files): Add lib/fchownat.c.
74595         * lib/openat.c (fchownat): Don't define here.  Move to...
74596         * lib/fchownat.c: ...this new file.
74597
74598 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         Fix bug reported by Bruno Haible in
74601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74602         where quotearg.c didn't compile on Mac OS X 10.2 because it
74603         lacks <wchar.h> and wint_t.
74604         * lib/wctype_.h (__wctype_wint_t): New type.
74605         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74606         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74607         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74608         Arg is now of type __wctype_wint_t, not wint_t.
74609         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74610         substitute HAVE_WINT_T.
74611         * modules/wctype (Files): Add m4/wint_t.m4.
74612         (wctype.h): Substitute HAVE_WINT_T.
74613
74614 2006-12-23  Bruno Haible  <bruno@clisp.org>
74615
74616         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74617
74618 2006-12-23  Bruno Haible  <bruno@clisp.org>
74619
74620         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74621         S_ISLNK.
74622         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74623         mingw.
74624
74625 2006-12-22  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/copy-file.c: Include acl.h.
74628         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74629         Close the file descriptors only after being done with copy_acl.
74630         * modules/copy-file (Depends-on): Add acl.
74631
74632 2006-12-22  Bruno Haible  <bruno@clisp.org>
74633
74634         * gnulib-tool (SED): New variable.
74635         Use $SED instead of sed everywhere.
74636
74637 2006-12-22  Bruno Haible  <bruno@clisp.org>
74638
74639         * modules/no-c++: New file.
74640         * m4/no-c++.m4: New file.
74641         * MODULES.html.sh (Support for building libraries and executables):
74642         Add no-c++.
74643
74644 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74647         Include <limits.h>, and use its INT_MAX to rewrite the
74648         j loop so that it does not overflow 'int'.  Problem reported by
74649         Ralf Wildenhues in
74650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74651         Play it safe by shifting left by 1 rather than multiplying by 2,
74652         as GCC is less likely to optimize this away when the value
74653         is signed (when it assumes overflow leads to undefined behavior).
74654         Also, don't assume time_t uses two's complement.
74655
74656 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * MODULES.html.sh: New module wctype.
74659         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74660         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74661         <wctype.h>, since the new wctype module should fix this.
74662         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74663         the wctype module should arrange for it.
74664         * lib/regex_internal.h: Likewise.
74665         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74666         since the wctype module should handle this now.
74667         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74668         * modules/fnmatch (Depends-on): Add wctype.
74669         * modules/quotearg (Depends-on): Likewise.
74670         * modules/regex (Depends-on): Likewise.
74671
74672 2006-12-19  Bruno Haible  <bruno@clisp.org>
74673
74674         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74675         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74676
74677 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74678
74679         * modules/savewd (Depends-on): Fix dependency on fcntl.
74680
74681 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74684         conforms to C99, rather than relying on the user's environment
74685         setting of STDINT_H.
74686
74687 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74688         and Eric Blake  <ebb9@byu.net>
74689
74690         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74691         This is more consistent with the other defines here.
74692         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74693         Port to z/OS.  Problem reported by Paul Gilmartin.
74694         Change local vars to use gl_ prefix rather than ac_.
74695         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74696         with other defines.
74697         * modules/double-slash-root: New module.
74698         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74699         (Depends-on): Add double-slash-root.
74700         * MODULES.html.sh (File system functions): Mention new module.
74701
74702 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74705         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74706         This is for the benefit of gzip, which doesn't do i18n.
74707
74708 2006-12-12  Jim Meyering  <jim@meyering.net>
74709
74710         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74711         Reported by Andreas Schwab <schwab@suse.de>.
74712
74713 2006-12-12  Bruno Haible  <bruno@clisp.org>
74714
74715         Merge these changes.
74716         2006-09-05  Bruno Haible  <bruno@clisp.org>
74717         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74718         iconv_alloc succeeded.
74719         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74720         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74721         test for " && dest " at the end - dest is always != NULL there. Call
74722         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74723         with 2xNULL arguments, also to flush the state storage. Handle the
74724         IRIX iconv behaviour. Realloc the final result, to throw away unused
74725         memory.
74726
74727 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74730         and fchmodat unconditionally, since glibc 2.4 has them.
74731         Problem reported by Arkadiusz Miskiewicz.
74732
74733 2006-12-10  Bruno Haible  <bruno@clisp.org>
74734
74735         * gnulib-tool (func_import): Show the include files only for those
74736         modules that are copied and specified.
74737         Reported by Karl Berry.
74738
74739 2006-12-08  Jim Meyering  <jim@meyering.net>
74740
74741         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74742         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74743
74744         * build-aux/announce-gen: Add two new options, both optional:
74745         --bootstrap-tools=TOOL_LIST
74746               a comma-separated list of tools, e.g.,
74747               autoconf,automake,bison,gnulib
74748         --gnulib-snapshot-date=DATE
74749               if gnulib is in the bootstrap tool list,
74750               then report this as the snapshot date.
74751               If not specified, use the current date/time.
74752               If you specify a date here, be sure it's UTC.
74753
74754 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74755
74756         * tests/test-argp-2.sh: Fix test to match actual output.
74757         (func_compare): Fix sed script to be portable.
74758
74759 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74762         workaround for this case.  It is not autoconfigured now; offhand
74763         it's hard to see how to autoconfigure it.
74764
74765 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74766
74767         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74768         a directory that is about to be chowned.  Such a directory's
74769         initial file permissions should permit the owner only and this
74770         should not be changed until after the chown, since the group and
74771         other bits would be incorrect if they granted permission before
74772         the chown.
74773
74774         Fix porting problem for iswctype reported by Georg Schwarz in:
74775         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74776         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74777         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74779         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74780
74781 2006-12-03  Jim Meyering  <jim@meyering.net>
74782
74783         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74784         p->fts_statp may not yet be defined.
74785         (fts_read): Instead, set it in the caller, once p->fts_statp is
74786         sure to be defined, and corresponds to a top-level directory.
74787         This bug made du -x fail.  Here's the coreutils test case:
74788         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74789         Reported by Mike Frysinger.
74790
74791 2006-12-01  Jim Meyering  <jim@meyering.net>
74792
74793         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74794         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74795         Reported by Simon Josefsson.
74796
74797 2006-11-30  Jim Meyering  <jim@meyering.net>
74798
74799         * m4/warning.m4: Use the all-permissive copyright notice
74800         recommended by RMS (rather than LGPL).
74801         * m4/vararrays.m4: Likewise.
74802         * m4/flexmember.m4: Likewise.
74803
74804 2006-11-29  Bruno Haible  <bruno@clisp.org>
74805
74806         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74807         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74808         using +=.
74809         Reported by Simon Josefsson <simon@josefsson.org>.
74810
74811 2006-11-28  James Youngman <jay@gnu.org>
74812
74813         * README: Advise users that they might find the bug-gnulib@gnu.org
74814         and autotools-announce@gnu.org mailing lists useful.
74815
74816 2006-11-28  Bruno Haible  <bruno@clisp.org>
74817
74818         * m4/ptrdiff_max.m4: Remove file.
74819
74820 2006-11-21  Bruno Haible  <bruno@clisp.org>
74821
74822         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74823         _AC_COMPUTE_INT.
74824         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74825         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74826         _AC_COMPUTE_INT.
74827         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74828         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74829         _AC_COMPUTE_INT.
74830         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74831
74832 2006-11-28  Jim Meyering  <jim@meyering.net>
74833
74834         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74835         warning from "gcc -Wshadow" about shadowing the builtin.
74836
74837 2006-11-27  Bruno Haible  <bruno@clisp.org>
74838
74839         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74840         _AC_COMPUTE_INT.
74841         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74842
74843 2006-11-27  Bruno Haible  <bruno@clisp.org>
74844             Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74847
74848 2006-11-26  Bruno Haible  <bruno@clisp.org>
74849
74850         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74851         noinst_LTLIBRARIES.
74852
74853 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74854             Bruno Haible  <bruno@clisp.org>
74855
74856         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74857         if compiling with "gcc -ansi".
74858
74859 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         Fix some incompatibilities with gcc -ansi -pedantic.
74862         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74863         if compiling pedantically with GCC, unless it's C99 or later.
74864         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74865         it mishandles gcc -ansi -pedantic as well.
74866         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74867         if gcc -pedantic.
74868         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74869         initializers for struct if -pedantic, unless it's C99 or later.
74870
74871 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74872
74873         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74874         Don't close an fd more than once. Identical atimes indicate
74875         success, not failure.
74876
74877 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74878
74879         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74880
74881 2006-11-23  Jim Meyering  <jim@meyering.net>
74882
74883         * build-aux/announce-gen: New file.  From coreutils.
74884
74885 2006-11-22  Jim Meyering  <jim@meyering.net>
74886
74887         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74888         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74889         (fts_read): Use a temporary to narrow the overused st_size member
74890         before using it in a switch statement.  Reported by Matthew Woehlke.
74891
74892         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74893         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74894
74895 2006-11-20  Bruno Haible  <bruno@clisp.org>
74896
74897         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74898         changequote instead of pairs of brackets.
74899         Reported by Andreas Schwab <schwab@suse.de>.
74900
74901 2006-11-21  Jim Meyering  <jim@meyering.net>
74902
74903         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74904         so as to remain compatible with older compilers.
74905         Patch from Michael Deutschmann.
74906
74907 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * MODULES.html.sh (File system functions): Add openat.
74910
74911         * lib/openat.h (rpl_fstatat): New macro, if
74912         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74913         (fstatat): Define to rpl_fstatat under the same conditions,
74914         unless COMPILING_FSTATAT.
74915         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74916         seems to have the bug.
74917         * lib/fstatat.c: New file.
74918         * modules/openat (Files): Add it.
74919
74920 2006-11-20  Bruno Haible  <bruno@clisp.org>
74921
74922         * Makefile: New file.
74923
74924 2006-11-20  Jim Meyering  <jim@meyering.net>
74925
74926         The beginnings of syntax-related checks for gnulib.
74927         * lib/Makefile: New file.
74928         * lib/t-idcache: New script.  Ensure that the two halves of
74929         idcache.c stay in sync.
74930
74931         * lib/idcache.c: Adjust comments in user- and group- portions to
74932         be more accurate, and to be consistent with one another.
74933
74934 2006-11-20  Jim Meyering  <jim@meyering.net>
74935
74936         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74937         continue using the flexible array member (thus, this module performs
74938         half as many malloc calls), with the addition that...
74939         (getgroup, getuser): Consistently record a non-match via an empty
74940         "name" string, and map an empty string match to a NULL return value.
74941         * modules/idcache (Depends-on): Re-add flexmember.
74942
74943         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74944         (getuidbyname, getgroup, getgidbyname): Likewise.
74945
74946         Use cleaner syntax: NULL rather than 0.
74947         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74948
74949 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74952         It mishandled the case where the group was missing.
74953         Problem reported by Greg Schafer.
74954         * modules/idcache: Likewise.
74955
74956 2006-11-18  Jim Meyering  <jim@meyering.net>
74957
74958         * check-module (%exempt_header): Add exception for some
74959         conditionally-included headers.
74960
74961         * modules/i-ring (Depends-on): Add verify.
74962         (License): Change to LGPL.
74963
74964 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74967         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74968         and inttostr.h.  Use snprintf rather than uinttostr, so that
74969         LGPLed code doesn't depend on GPLed.
74970
74971 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * modules/inline (License): Change from GPL to LGPL.
74974
74975 2006-11-17  Jim Meyering  <jim@meyering.net>
74976
74977         * modules/d-type (License): Switch to LGPL.
74978
74979 2006-11-15  Bruno Haible  <bruno@clisp.org>
74980
74981         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74982
74983 2006-11-15  Eric Blake  <ebb9@byu.net>
74984
74985         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74986         the module dependency.
74987
74988 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74989             Bruno Haible  <bruno@clisp.org>
74990
74991         * gnulib-tool (func_create_testdir): Add license consistency check.
74992
74993 2006-11-15  Eric Blake  <ebb9@byu.net>
74994
74995         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74996         random "(cached)" in configure output.
74997
74998 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74999
75000         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75001         test for conforming inttypes.h is both announced and cached.
75002
75003         * MODULES.html.sh (seen_modules, seen_files): New variables.
75004         (func_module): Rewrite to use a few less gnulib-tool and sed
75005         invocations.  Avoid a couple of quadratic algorithms for ...
75006         (missed_modules, missed_files): ... these, with ...
75007         (func_append, func_tmpdir): ... these new functions, from
75008         gnulib-tool.  Analogously, install traps for cleanup.
75009
75010         * tests/test-gc.c (main): Remove unused variables.
75011         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75012
75013 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * modules/inttostr (License): Change to LGPL.
75016
75017 2006-11-14  Eric Blake  <ebb9@byu.net>
75018
75019         * modules/tempname (License): Change to LGPL.
75020
75021 2006-11-14  Eric Blake  <ebb9@byu.net>
75022
75023         * doc/functions.texi (Function Portability): *printf functions on
75024         Cygwin now understand all POSIX size specifiers.
75025
75026 2006-11-14  Bruno Haible  <bruno@clisp.org>
75027
75028         * modules/c-ctype (License): Change to LGPL.
75029
75030 2006-11-12  Bruno Haible  <bruno@clisp.org>
75031
75032         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75033         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75034         for GNOME libraries, for which the include files are installed in
75035         subdirectories of $prefix/include.
75036
75037 2006-11-12  Bruno Haible  <bruno@clisp.org>
75038
75039         * m4/lib-link.m4: Require at least autoconf-2.54.
75040         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75041         name to underscores for the --with option.
75042
75043 2006-11-13  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75046         the tests directory.
75047         Reported by Ralf Wildenhues.
75048
75049 2006-11-13  Bruno Haible  <bruno@clisp.org>
75050
75051         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75052         (func_emit_initmacro_end): Undo the override here.
75053         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75054         Works around the famous automake error in coreutils.
75055
75056 2006-11-13  Eric Blake  <ebb9@byu.net>
75057
75058         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75059         element, not its node.
75060
75061 2006-11-12  Bruno Haible  <bruno@clisp.org>
75062
75063         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75064         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75065
75066 2006-11-12  Bruno Haible  <bruno@clisp.org>
75067
75068         * gnulib-tool: New option --local-symlink.
75069         (func_usage): Document it.
75070         (lsymbolic): New variable.
75071         (func_import, func_create_testdir): If --symlink was not specified,
75072         test whether --local-symlink was specified and the file comes from
75073         the local_gnulib_dir.
75074
75075 2006-11-12  Bruno Haible  <bruno@clisp.org>
75076
75077         * gnulib-tool (func_ln): New function.
75078         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75079
75080 2006-11-12  Bruno Haible  <bruno@clisp.org>
75081
75082         Finish support for source files in subdirectories.
75083         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75084         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75085         AUTOMAKE_OPTIONS.
75086         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75087
75088 2006-11-12  Bruno Haible  <bruno@clisp.org>
75089
75090         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75091         EXTRA_lib_SOURCES augmentation.
75092         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75093
75094 2006-11-12  Jim Meyering  <jim@meyering.net>
75095
75096         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75097         file descriptors.  This also averts a failure on systems with
75098         native openat support when a traversed directory lacks "x" access.
75099         * lib/fts_.h: Include "i-ring.h"
75100         (struct FTS) [fts_fd_ring]: New member.
75101         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75102         (FCHDIR): Add parentheses.
75103         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75104         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75105         When descending, rather than simply closing the previous
75106         fts_cwd_fd value, push that file descriptor onto the ring.
75107         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75108         (fts_open): Initialize the new fd_ring member.
75109         (fts_close): Clear the ring.
75110         (fts_safe_changedir): When possible, use our new fd_ring to skip
75111         the diropen and fstat and dev/ino comparison that would normally
75112         accompany a virtual `chdir ("..")'.
75113
75114         * modules/fts (Depends-on): Add i-ring.
75115         * modules/i-ring: New module.
75116         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75117         * m4/i-ring.m4: New file.
75118
75119 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75120
75121         * gnulib-tool (func_create_testdir): Fix replacement of
75122         `build-aux' in configure.ac.  Run autotools in gltests
75123         subdirectory.
75124         (func_create_testdir, func_create_megatestdir, test): There is
75125         no need for '--force' in most autotool invocations in a new
75126         tree.  Actually fail the whole test if any of the tools, or the
75127         configure or make stages fail.
75128
75129         Sync from Automake.
75130         * build-aux/gnupload: Revert last change.  Add pointer to upload
75131         instructions of the GNU Maintenance Instructions.
75132         Suggestion by Karl Berry.
75133
75134 2006-11-10  Jim Meyering  <jim@meyering.net>
75135
75136         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75137
75138 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75141         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75142         (bind_textdomain_codeset) [! ENABLE_NLS]:
75143         Evaluate all the arguments.  That way, callers get compatible behavior
75144         if the arguments have side effects.  Also, it avoids some GCC
75145         diagnostics in some cases; Joel E. Denny reported problems when Bison
75146         was configured with --enable-gcc-warnigs.
75147
75148 2006-11-10  Jim Meyering  <jim@meyering.net>
75149
75150         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75151         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75152         account.
75153
75154 2006-11-10  Jim Meyering  <jim@meyering.net>
75155
75156         * modules/inline: New file/module.
75157         * modules/xalloc (Files): Remove m4/inline.m4.
75158         (Depends-on): Add inline, instead.
75159         * modules/oset: Likewise.
75160         * modules/list: Likewise.
75161
75162 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75165         Problem reported by Matthew Woehlke.
75166
75167 2006-11-09  Bruno Haible  <bruno@clisp.org>
75168
75169         * lib/tempname.c (gen_tempname): Remove variant that invokes
75170         __gen_tempname.
75171         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75172         __gen_tempname.
75173
75174 2006-11-08  Bruno Haible  <bruno@clisp.org>
75175
75176         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75177         to 'yes' instead of 'cross-compiling'.
75178
75179 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         * lib/quotearg.h (quotearg_free): New decl.
75182         * lib/quotearg.c (quotearg_free): New function.
75183         (slot0, nslots, slotvec0, slotvec):
75184         Now file-scope so that quotearg_free can get at them.
75185
75186 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75187
75188         Sync from Automake.
75189         * build-aux/gnupload: Add missing 'gnu' to example URL.
75190         Report by Karl Berry.
75191
75192 2006-11-08  Bruno Haible  <bruno@clisp.org>
75193
75194         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75195         Suggested by Paul Eggert.
75196
75197 2006-11-08  Jim Meyering  <jim@meyering.net>
75198
75199         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75200         It's already included if !_LIBC.
75201         (fts_safe_changedir): Add a comment.
75202
75203 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75204
75205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75206         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75207         Matthew Woehlke.
75208
75209         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75210         definitions up, to avoid colliding with change below.
75211         (static_inline) [HAVE_INLINE]: New macro.
75212         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75213         Provide extern decls when !HAVE_INLINE.  Do not define unless
75214         static_inline is defined, either by us or by xmalloc.c.  Use
75215         static_inline rather than static inline.
75216         (XCALLOC): Optimize sizeof(T) = 1 case.
75217         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75218
75219 2006-11-07  Bruno Haible  <bruno@clisp.org>
75220
75221         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75222         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75223         AC_C_INLINE.
75224         * modules/xalloc (Files): Add m4/inline.m4.
75225
75226 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75227
75228         * README: Fix typo.
75229         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75230         (Miscellanous Notes): ...from this.
75231
75232 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75235         Mention that offsetof should be used instead of sizeof.
75236         From Bruno Haible.
75237
75238 2006-11-07  Bruno Haible  <bruno@clisp.org>
75239
75240         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75241
75242 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75245         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75246         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75247         (gl_tree_add_before, gl_tree_add_after):
75248         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75249         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75250         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75251         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75252         (gl_linked_add_after, gl_linked_add_at): Likewise.
75253         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75254         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75255         (gl_tree_add_before, gl_tree_add_after): Likewise.
75256         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75257         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75258         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75259
75260 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75261
75262         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75263
75264 2006-11-06  Bruno Haible  <bruno@clisp.org>
75265
75266         * m4/inline.m4: New file.
75267         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75268         * modules/list (Files): Add m4/inline.m4.
75269         * modules/oset (Files): Likewise.
75270
75271 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75272
75273         * lib/idcache.c: Include <stddef.h>, for offsetof.
75274         (struct userid.name): Change from char * to a flexible array member.
75275         All uses changed.
75276         * modules/idcache (Depends-on): Add flexmember.
75277
75278         * MODULES.html.sh (Core language properties): New module flexmember.
75279         * modules/flexmember, m4/flexmember.m4: New files.
75280
75281         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75282         inline functions that are identical with the old xnmalloc_inline,
75283         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75284         that we can avoid some unnecessary integer multiplications and
75285         divisions in the common case where the element size is known at
75286         compile time.
75287         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75288         needed.
75289         (xnboundedmalloc): Remove.
75290         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75291         arguments, for consistency with rest of this header.
75292         (xcharalloc): Rewrite using XNMALLOC.
75293         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75294         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75295         versions have been moved to lib/xalloc.h and renamed to be the
75296         non-*_inline versions.
75297         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75298         and xnrealloc functions, since those functions are now inline and
75299         now call us.
75300         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75301         renaming described above.
75302         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75303         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75304         captures the dependency in AC_C_INLINE.
75305
75306         New module canonicalize-lgpl, proposed by Charles Wilson in
75307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75308         with a few small changes afterwards.
75309         * MODULES.html.sh (File system functions): New module
75310         canonicalize-lgpl.
75311         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75312         and canonicalize_file_name.
75313         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75314         * modules/canonicalize-lgpl: New files.
75315
75316 2006-11-05  Bruno Haible  <bruno@clisp.org>
75317
75318         * gnulib-tool (func_import, func_create_testdir): Create directories
75319         also for files in subdirectories of lib/.
75320
75321 2006-11-05  Bruno Haible  <bruno@clisp.org>
75322
75323         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75324         ANSI C compliant.
75325
75326 2006-11-03  Bruno Haible  <bruno@clisp.org>
75327
75328         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75329         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75330         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75331         (xnboundedmalloc): New inline function.
75332         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75333         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75334         xmalloc.
75335         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75336         xmalloc.
75337         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75338         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75339         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75340         xmalloc.
75341         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75342         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75343         xmalloc.
75344         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75345         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75346         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75347         xmalloc.
75348         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75349         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75350         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75351         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75352         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75353         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75354         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75355
75356 2006-11-03  Bruno Haible  <bruno@clisp.org>
75357
75358         * lib/c-ctype.h [C++]: Define functions without name mangling.
75359         * lib/fwriteerror.h [C++]: Likewise.
75360         * lib/gcd.h [C++]: Likewise.
75361         * lib/linebreak.h [C++]: Likewise.
75362
75363 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75366         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75367         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75368         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75369         Check for functions and headers just once.
75370         Check for declaration of canonicalize_file_name.
75371         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75372
75373 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75374
75375         * gnulib-tool (func_import): Fix typo in actioncmd.
75376
75377 2006-11-02  Bruno Haible  <bruno@clisp.org>
75378
75379         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75380         newline sequence in the Makefile.am snippet as a space, like "make"
75381         does.
75382         Reported by Roger Persson <perrog@gmail.com>.
75383
75384 2006-11-01  Bruno Haible  <bruno@clisp.org>
75385
75386         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75387         already declared in <string.h>.
75388         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75389
75390 2006-11-01  Bruno Haible  <bruno@clisp.org>
75391
75392         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75393         * lib/strcase.h: Include <string.h>.
75394         (strcasecmp): Define to rpl_strcasecmp here.
75395
75396 2006-11-01  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75399
75400 2006-11-01  Eric Blake  <ebb9@byu.net>
75401
75402         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75403
75404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75405
75406 2006-10-29  Bruno Haible  <bruno@clisp.org>
75407
75408         Make it compile in C++ mode.
75409         * lib/full-write.c (full_rw): Add a cast.
75410
75411 2006-11-01  Bruno Haible  <bruno@clisp.org>
75412
75413         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75414         be POSIX compliant.
75415         Reported by Roger Persson <perrog@gmail.com>.
75416
75417 2006-11-01  Eric Blake  <ebb9@byu.net>
75418
75419         * lib/getopt_.h: Fix comments.
75420
75421 2006-10-31  Eric Blake  <ebb9@byu.net>
75422
75423         * modules/tmpdir (Depends-on): Add sys_stat.
75424         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75425         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75426         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75427         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75428         tempname.
75429
75430 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         Avoid some C++ diagnostics reported by Bruno Haible.
75433         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75434         xmalloc.
75435         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75436         (struct slotvec): Move to top level.
75437         (quotearg_n_options): Rewrite to avoid xmalloc.
75438         * lib/xalloc.h (xcharalloc): New function.
75439         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75440         [defined __cplusplus]: Add function template that provides result
75441         type propagation.  This part of the change is from Bruno Haible.
75442
75443 2006-10-29  Bruno Haible  <bruno@clisp.org>
75444
75445         Make it compile in C++ mode.
75446         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75447         * lib/strnlen1.c (strnlen1): Cast memchr result.
75448         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75449         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75450         (create_temp_dir): Rename local variable 'template'.
75451         (compile_csharp_using_sscli): Add cast.
75452         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75453         * lib/findprog.c (find_in_path): Likewise.
75454         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75455         * lib/wait-process.c (register_slave_subprocess): Likewise.
75456
75457 2006-10-22  Bruno Haible  <bruno@clisp.org>
75458
75459         * modules/tsearch: New file.
75460         * lib/tsearch.h: New file.
75461         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75462         * m4/tsearch.m4: New file.
75463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75464
75465 2006-10-29  Eric Blake  <ebb9@byu.net>
75466
75467         * lib/arcfour.c: Assume config.h.
75468         * lib/arctwo.c: Likewise.
75469         * lib/base64.c: Likewise.
75470         * lib/check-version.c: Likewise.
75471         * lib/crc.c: Likewise.
75472         * lib/des.c: Likewise.
75473         * lib/gc-gnulib.c: Likewise.
75474         * lib/gc-libgcrypt.c: Likewise.
75475         * lib/gc-pbkdf2-sha1.c: Likewise.
75476         * lib/getaddrinfo.c: Likewise.
75477         * lib/getdelim.c: Likewise.
75478         * lib/getline.c: Likewise.
75479         * lib/hmac-md5.c: Likewise.
75480         * lib/hmac-sha1.c: Likewise.
75481         * lib/iconvme.c: Likewise.
75482         * lib/md2.c: Likewise.
75483         * lib/md4.c: Likewise.
75484         * lib/memxor.c: Likewise.
75485         * lib/read-file.c: Likewise.
75486         * lib/readline.c: Likewise.
75487         * lib/rijndael-alg-fst.c: Likewise.
75488         * lib/rijndael-api-fst.c: Likewise.
75489         * lib/xgetdomainname.c: Likewise.
75490
75491 2006-10-28  Eric Blake  <ebb9@byu.net>
75492
75493         * lib/xstrndup.c: Assume config.h.
75494
75495 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75498         stat-macros.h is now for our own macros, whereas stat_h is for
75499         macros in the <sys/stat.h> name space.
75500         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75501         (STAT_MACROS_H): Remove.
75502         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75503         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75504         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75505         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75506         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75507         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75508         Move these macros to ...
75509         * lib/stat_.h: here.  Don't include stat-macros.h.
75510         * lib/canonicalize.c: Don't include stat-macros.h.
75511         * lib/chown.c: Likewise.
75512         * lib/euidaccess.c: Likewise.
75513         * lib/file-type.c: Likewise.
75514         * lib/filemode.c: Likewise.
75515         * lib/glob.c: Likewise.
75516         * lib/isapipe.c: Likewise.
75517         * lib/lchown.c: Likewise.
75518         * lib/lstat.c: Likewise.
75519         * lib/mkdir-p.c: Likewise.
75520         * lib/rmdir.c: Likewise.
75521         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75523         unless mkdir isn't declared, to speed up 'configure'.
75524         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75525         would define all the S_* symbols.
75526         * modules/canonicalize (Depends-on):
75527         Depend on sys_stat, not stat-macros.
75528         * modules/chown: Likewise.
75529         * modules/euidaccess: Likewise.
75530         * modules/filemode: Likewise.
75531         * modules/file-type: Likewise.
75532         * modules/glob: Likewise.
75533         * modules/isapipe: Likewise.
75534         * modules/lchown: Likewise.
75535         * modules/lstat: Likewise.
75536         * modules/mkancesdirs: Likewise.
75537         * modules/rmdir: Likewise.
75538         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75539         * modules/modechange: Likewise.
75540         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75541         (configure.ac): Remove gl_STAT_MACROS.
75542         * modules/sys_stat (Depends-on): Remove stat-macros.
75543
75544 2006-10-27  Bruno Haible  <bruno@clisp.org>
75545
75546         * m4/signed.m4: Remove file.
75547         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75548         invocation.
75549         * modules/vasnprintf (Files): Remove m4/signed.m4.
75550
75551 2006-10-27  Bruno Haible  <bruno@clisp.org>
75552
75553         Update to GNU gettext 0.16.
75554         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75555         m4/inttypes-h.m4, m4/signed.m4.
75556         * m4/gettext.m4: Update to GNU gettext 0.16.
75557         * m4/intl.m4: New file, from GNU gettext.
75558         * m4/intldir.m4: New file, from GNU gettext.
75559         * config/srclist.txt: Update
75560
75561 2006-10-27  Eric Blake  <ebb9@byu.net>
75562
75563         * MODULES.html.sh: Document tempname.
75564         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75565         dependencies.
75566         (Files): Move lib/tempname.c...
75567         * modules/tempname: ...to this new module.
75568         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75569         (gl_PREREQ_TEMPNAME): Move...
75570         * m4/tempname.m4: ...to this new file.
75571         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75572         * modules/sys_stat (Depends-on): Add stat-macros.
75573         * lib/stat_.h (includes): Pick up stat macros.
75574         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75575         if stat macros are broken.
75576         * lib/tempname.c (includes): No need to include "stat-macros.h".
75577         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75578         (direxists, __path_search) [!_LIBC]: Don't compile these in
75579         gnulib; the tmpdir module covers that.
75580         * lib/tempname.h: New file.
75581
75582 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75583
75584         * COPYING: Explain how gnulib-tool converts licence headers.
75585         Almost all wording by Eric Blake.
75586
75587 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         * lib/mbchar.h (is_basic_table): Make read-only.
75590         * lib/mbchar.c (is_basic_table): Likewise.
75591         Reported by John Darrington.
75592
75593 2006-10-25  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/progname.h (set_program_name): Undefine before defining.
75596
75597 2006-10-25  Bruno Haible  <bruno@clisp.org>
75598
75599         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75600         false for non-gcc C++ compilers.
75601         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75602
75603 2006-10-24  Bruno Haible  <bruno@clisp.org>
75604
75605         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75606         iconv implementations like Irix iconv.
75607
75608 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * modules/vararrays: New file.
75611         * m4/vararrays.m4: New file, taken from diffutils.
75612         * MODULES.html.sh: New module vararrays.
75613
75614 2006-10-24  Karl Berry  <karl@gnu.org>
75615
75616         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75617         Don't call GNU Unix.
75618
75619 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75620
75621         * users.txt: Add Libtool.
75622
75623         Sync from Libtool:
75624
75625         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75628         to gnulib's policy of including config.h unconditionally.
75629
75630 2006-10-24  Bruno Haible  <bruno@clisp.org>
75631
75632         * modules/wcwidth (Files): Add m4/wint_t.m4.
75633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75634         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75635
75636 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75639         to pacify GCC with some -W flags enabled.  Problem reported by
75640         Bruno Haible.
75641
75642 2006-10-24  Jim Meyering  <jim@meyering.net>
75643
75644         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75645         Reported by Karl Berry.
75646
75647 2006-10-23  Bruno Haible  <bruno@clisp.org>
75648
75649         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75650
75651 2006-10-24  Bruno Haible  <bruno@clisp.org>
75652
75653         * lib/gl_list.h: Use C comment style, not C++ comment style.
75654
75655 2006-10-23  Eric Blake  <ebb9@byu.net>
75656
75657         * lib/getaddrinfo.c (includes): Add missing include.
75658
75659 2006-10-23  Bruno Haible  <bruno@clisp.org>
75660             Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         Ability to rename obstack_free.
75663         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75664         obstack_free.
75665         (obstack_free): Invoke the __obstack_free macro.
75666         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75667
75668 2006-10-23  Bruno Haible  <bruno@clisp.org>
75669             Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75672         __argc, __argv from the declaration. (They are defined as macros on
75673         mingw.)
75674
75675 2006-10-22  Bruno Haible  <bruno@clisp.org>
75676
75677         * doc/gnulib-intro.texi: New file.
75678         * doc/gnulib.texi: Include it.
75679
75680 2006-10-21  Bruno Haible  <bruno@clisp.org>
75681
75682         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75683         "Introduction", "Miscellanous Notes", "Particular Modules".
75684
75685 2006-10-21  Bruno Haible  <bruno@clisp.org>
75686
75687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75688         Change mostlyclean-local rule to avoid sh syntax error from bash
75689         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75690
75691 2006-10-23  Jim Meyering  <jim@meyering.net>
75692
75693         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75694         in place of snprintf.
75695
75696         * modules/inttostr (Files): Add lib/uinttostr.c.
75697         * lib/uinttostr.c (inttostr): New file/function.
75698         * lib/inttostr.h (uinttostr): Declare.
75699         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75700         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75701         Add uinttostr.
75702         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75703
75704 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75705
75706         * lib/canonicalize.c (ELOOP): Define if not already defined.
75707         Problem reported by Bruno Haible in
75708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75709
75710 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75713         Problem reported by Perry Smith and Ville Laurikari.
75714
75715         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75716         uses.
75717
75718 2006-10-19  Bruno Haible  <bruno@clisp.org>
75719
75720         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75721         for mingw.
75722
75723 2006-10-19  Bruno Haible  <bruno@clisp.org>
75724
75725         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75726         Needed for mingw.
75727
75728 2006-10-19  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75731
75732 2006-10-19  Bruno Haible  <bruno@clisp.org>
75733
75734         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75735         it.
75736
75737 2006-10-19  Bruno Haible  <bruno@clisp.org>
75738
75739         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75740         invocation.
75741
75742 2006-10-19  Bruno Haible  <bruno@clisp.org>
75743
75744         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75745         mountlist by default.
75746
75747 2006-10-16  Bruno Haible  <bruno@clisp.org>
75748
75749         * lib/c-strstr.c: Include c-strstr.h.
75750
75751 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75752
75753         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75754         in a slash.
75755
75756 2006-10-18  Bruno Haible  <bruno@clisp.org>
75757
75758         * lib/lock.h [C++]: Wrap definitions in extern "C".
75759
75760 2006-10-18  Bruno Haible  <bruno@clisp.org>
75761
75762         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75763         gl_LIBOBJS list.
75764
75765 2006-10-18  Bruno Haible  <bruno@clisp.org>
75766
75767         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75768
75769 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75770
75771         * lib/xstrtol.h: Include gettext.h.
75772         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75773         Problem reported by Eric Blake.
75774         * modules/xstrtol (Depends-on): Add gettext-h.
75775
75776 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75777
75778         * lib/strftime.c (advance): New macro.
75779         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75780         incomplete type, so you can't add 0 to it.  Problem and patch
75781         reported by Eelco Dolstra for dietlibc.
75782
75783 2006-10-18  Jim Meyering  <jim@meyering.net>
75784
75785         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75786         type for a local, and rename it: s/up/user_proc/.
75787
75788 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75789
75790         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75791         READ_UTMP_USER_PROCESS.
75792         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75793
75794 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75795
75796         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75797         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75798
75799 2006-10-17  Eric Blake  <ebb9@byu.net>
75800
75801         * lib/sigprocmask.c (sigprocmask): Fix typo.
75802
75803         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75804
75805         * modules/clean-temp (Makefile.am): Don't add to make output...
75806         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75807         config.h.
75808
75809 2006-10-17  Bruno Haible  <bruno@clisp.org>
75810
75811         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75812         differently if DEFAULT_TEXT_DOMAIN is set.
75813
75814 2006-10-16  Bruno Haible  <bruno@clisp.org>
75815
75816         * lib/clean-temp.c: Include fwriteerror.h.
75817
75818 2006-10-16  Bruno Haible  <bruno@clisp.org>
75819
75820         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75821
75822 2006-10-16  Bruno Haible  <bruno@clisp.org>
75823
75824         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75825         * lib/sigprocmask.h: Include <sys/types.h>.
75826         (sigset_t): Use the system's definition if present.
75827
75828 2006-10-17  Eric Blake  <ebb9@byu.net>
75829
75830         * lib/xvasprintf.c (includes): Assume config.h.
75831         * lib/xasprintf.c (includes): Likewise.
75832
75833 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75834
75835         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75836         at least as wide as intmax_t.
75837
75838 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75839
75840         (Imported from Automake.)
75841         * build-aux/gnupload: Update to version 1.1 of directive file.
75842
75843 2006-10-16  Eric Blake  <ebb9@byu.net>
75844
75845         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75846         match Automake 1.10a.
75847
75848 2006-10-14  Bruno Haible  <bruno@clisp.org>
75849
75850         * modules/sigprocmask: New file.
75851         * lib/sigprocmask.h: New file.
75852         * lib/sigprocmask.c: New file.
75853         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75854         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75855         request sigprocmask.o.
75856         (gl_PREREQ_SIGPROCMASK): New macro.
75857         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75858         (Depends-on): Add sigprocmask.
75859         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75860         gt_SIGNALBLOCKING. Test for 'raise' only once.
75861         * lib/fatal-signal.c: Include sigprocmask.h.
75862         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75863         unblock_fatal_signals): Define always.
75864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75865         sigprocmask.
75866
75867 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         Sync from Automake.
75870         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75871         which incorrectly sets the mode of an existing destination
75872         directory.  In some cases the unpatched install-sh could do the
75873         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75874         system.  We hope this is rare in practice, but it's clearly worth
75875         fixing.  Problem reported by Alex Unleashed in
75876         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75877         Also, don't bother to check for -m bugs unless we're using -m;
75878         suggested by Stepan Kasal.
75879
75880 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75881
75882         Sync from Automake.
75883         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75884         `-c' flag, so they appear at the same position as in %FASTDEP%
75885         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75886         which ignores unknown options only after the first non-option.
75887         Bug report against M4 by Nelson H. F. Beebe.
75888
75889 2006-10-13  Jim Meyering  <jim@meyering.net>
75890
75891         Fix a bug in yesterday's change.
75892         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75893         p->fts_statp->st_dev would be used uninitialized.
75894         Ensures that we always call fts_stat on the very first entry.
75895         Miklos Szeredi reported that find -xdev stopped working.
75896
75897 2006-10-12  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_get_automake_snippet): Append an automatically
75900         computed EXTRA_DIST augmentation.
75901         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75902         * modules/alloca-opt (Makefile.am): Likewise.
75903         * modules/allocsa (Makefile.am): Likewise.
75904         * modules/arcfour (Makefile.am): Likewise.
75905         * modules/arctwo (Makefile.am): Likewise.
75906         * modules/argmatch (Makefile.am): Likewise.
75907         * modules/argz (Makefile.am): Likewise.
75908         * modules/atexit (Makefile.am): Likewise.
75909         * modules/backupfile (Makefile.am): Likewise.
75910         * modules/byteswap (Makefile.am): Likewise.
75911         * modules/c-strtod (Makefile.am): Likewise.
75912         * modules/c-strtold (Makefile.am): Likewise.
75913         * modules/calloc (Makefile.am): Likewise.
75914         * modules/canon-host (Makefile.am): Likewise.
75915         * modules/canonicalize (Makefile.am): Likewise.
75916         * modules/chdir-long (Makefile.am): Likewise.
75917         * modules/chdir-safer (Makefile.am): Likewise.
75918         * modules/check-version (Makefile.am): Likewise.
75919         * modules/chown (Makefile.am): Likewise.
75920         * modules/cloexec (Makefile.am): Likewise.
75921         * modules/close-stream (Makefile.am): Likewise.
75922         * modules/closeout (Makefile.am): Likewise.
75923         * modules/crc (Makefile.am): Likewise.
75924         * modules/csharpexec (Makefile.am): Likewise.
75925         * modules/cycle-check (Makefile.am): Likewise.
75926         * modules/des (Makefile.am): Likewise.
75927         * modules/dev-ino (Makefile.am): Likewise.
75928         * modules/dirfd (Makefile.am): Likewise.
75929         * modules/dirname (Makefile.am): Likewise.
75930         * modules/dup2 (Makefile.am): Likewise.
75931         * modules/eealloc (Makefile.am): Likewise.
75932         * modules/error (Makefile.am): Likewise.
75933         * modules/euidaccess (Makefile.am): Likewise.
75934         * modules/exclude (Makefile.am): Likewise.
75935         * modules/exitfail (Makefile.am): Likewise.
75936         * modules/fcntl-safer (Makefile.am): Likewise.
75937         * modules/fcntl (Makefile.am): Likewise.
75938         * modules/file-type (Makefile.am): Likewise.
75939         * modules/fileblocks (Makefile.am): Likewise.
75940         * modules/filemode (Makefile.am): Likewise.
75941         * modules/filenamecat (Makefile.am): Likewise.
75942         * modules/fnmatch (Makefile.am): Likewise.
75943         * modules/fopen-safer (Makefile.am): Likewise.
75944         * modules/fpending (Makefile.am): Likewise.
75945         * modules/fprintftime (Makefile.am): Likewise.
75946         * modules/free (Makefile.am): Likewise.
75947         * modules/fsusage (Makefile.am): Likewise.
75948         * modules/ftruncate (Makefile.am): Likewise.
75949         * modules/fts (Makefile.am): Likewise.
75950         * modules/gc-arcfour (Makefile.am): Likewise.
75951         * modules/gc-des (Makefile.am): Likewise.
75952         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75953         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75954         * modules/gc-md4 (Makefile.am): Likewise.
75955         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75956         * modules/gc-sha1 (Makefile.am): Likewise.
75957         * modules/gc (Makefile.am): Likewise.
75958         * modules/getaddrinfo (Makefile.am): Likewise.
75959         * modules/getcwd (Makefile.am): Likewise.
75960         * modules/getdelim (Makefile.am): Likewise.
75961         * modules/getdomainname (Makefile.am): Likewise.
75962         * modules/getgroups (Makefile.am): Likewise.
75963         * modules/gethostname (Makefile.am): Likewise.
75964         * modules/gethrxtime (Makefile.am): Likewise.
75965         * modules/getline (Makefile.am): Likewise.
75966         * modules/getloadavg (Makefile.am): Likewise.
75967         * modules/getlogin_r (Makefile.am): Likewise.
75968         * modules/getndelim2 (Makefile.am): Likewise.
75969         * modules/getopt (Makefile.am): Likewise.
75970         * modules/getpagesize (Makefile.am): Likewise.
75971         * modules/getpass-gnu (Makefile.am): Likewise.
75972         * modules/getpass (Makefile.am): Likewise.
75973         * modules/getsubopt (Makefile.am): Likewise.
75974         * modules/gettime (Makefile.am): Likewise.
75975         * modules/gettimeofday (Makefile.am): Likewise.
75976         * modules/getugroups (Makefile.am): Likewise.
75977         * modules/getusershell (Makefile.am): Likewise.
75978         * modules/glob (Makefile.am): Likewise.
75979         * modules/group-member (Makefile.am): Likewise.
75980         * modules/hard-locale (Makefile.am): Likewise.
75981         * modules/hash (Makefile.am): Likewise.
75982         * modules/hmac-md5 (Makefile.am): Likewise.
75983         * modules/hmac-sha1 (Makefile.am): Likewise.
75984         * modules/human (Makefile.am): Likewise.
75985         * modules/idcache (Makefile.am): Likewise.
75986         * modules/imaxabs (Makefile.am): Likewise.
75987         * modules/imaxdiv (Makefile.am): Likewise.
75988         * modules/inet_ntop (Makefile.am): Likewise.
75989         * modules/inet_pton (Makefile.am): Likewise.
75990         * modules/intprops (Makefile.am): Likewise.
75991         * modules/inttostr (Makefile.am): Likewise.
75992         * modules/inttypes (Makefile.am): Likewise.
75993         * modules/isapipe (Makefile.am): Likewise.
75994         * modules/javaversion (Makefile.am): Likewise.
75995         * modules/lchmod (Makefile.am): Likewise.
75996         * modules/lchown (Makefile.am): Likewise.
75997         * modules/localcharset (Makefile.am): Likewise.
75998         * modules/long-options (Makefile.am): Likewise.
75999         * modules/lstat (Makefile.am): Likewise.
76000         * modules/malloc (Makefile.am): Likewise.
76001         * modules/mathl (Makefile.am): Likewise.
76002         * modules/mbchar (Makefile.am): Likewise.
76003         * modules/md2 (Makefile.am): Likewise.
76004         * modules/md4 (Makefile.am): Likewise.
76005         * modules/md5 (Makefile.am): Likewise.
76006         * modules/memcasecmp (Makefile.am): Likewise.
76007         * modules/memchr (Makefile.am): Likewise.
76008         * modules/memcmp (Makefile.am): Likewise.
76009         * modules/memcoll (Makefile.am): Likewise.
76010         * modules/memcpy (Makefile.am): Likewise.
76011         * modules/memmem (Makefile.am): Likewise.
76012         * modules/memmove (Makefile.am): Likewise.
76013         * modules/mempcpy (Makefile.am): Likewise.
76014         * modules/memrchr (Makefile.am): Likewise.
76015         * modules/memset (Makefile.am): Likewise.
76016         * modules/memxor (Makefile.am): Likewise.
76017         * modules/mkancesdirs (Makefile.am): Likewise.
76018         * modules/mkdir-p (Makefile.am): Likewise.
76019         * modules/mkdir (Makefile.am): Likewise.
76020         * modules/mkdtemp (Makefile.am): Likewise.
76021         * modules/mkstemp (Makefile.am): Likewise.
76022         * modules/mktime (Makefile.am): Likewise.
76023         * modules/modechange (Makefile.am): Likewise.
76024         * modules/mountlist (Makefile.am): Likewise.
76025         * modules/nanosleep (Makefile.am): Likewise.
76026         * modules/obstack (Makefile.am): Likewise.
76027         * modules/openat (Makefile.am): Likewise.
76028         * modules/pagealign_alloc (Makefile.am): Likewise.
76029         * modules/pathmax (Makefile.am): Likewise.
76030         * modules/physmem (Makefile.am): Likewise.
76031         * modules/poll (Makefile.am): Likewise.
76032         * modules/posixtm (Makefile.am): Likewise.
76033         * modules/posixver (Makefile.am): Likewise.
76034         * modules/putenv (Makefile.am): Likewise.
76035         * modules/quote (Makefile.am): Likewise.
76036         * modules/quotearg (Makefile.am): Likewise.
76037         * modules/raise (Makefile.am): Likewise.
76038         * modules/read-file (Makefile.am): Likewise.
76039         * modules/readline (Makefile.am): Likewise.
76040         * modules/readlink (Makefile.am): Likewise.
76041         * modules/readtokens (Makefile.am): Likewise.
76042         * modules/readutmp (Makefile.am): Likewise.
76043         * modules/realloc (Makefile.am): Likewise.
76044         * modules/regex (Makefile.am): Likewise.
76045         * modules/rename-dest-slash (Makefile.am): Likewise.
76046         * modules/rename (Makefile.am): Likewise.
76047         * modules/rijndael (Makefile.am): Likewise.
76048         * modules/rmdir (Makefile.am): Likewise.
76049         * modules/rpmatch (Makefile.am): Likewise.
76050         * modules/safe-read (Makefile.am): Likewise.
76051         * modules/safe-write (Makefile.am): Likewise.
76052         * modules/same-inode (Makefile.am): Likewise.
76053         * modules/same (Makefile.am): Likewise.
76054         * modules/save-cwd (Makefile.am): Likewise.
76055         * modules/savedir (Makefile.am): Likewise.
76056         * modules/setenv (Makefile.am): Likewise.
76057         * modules/settime (Makefile.am): Likewise.
76058         * modules/sha1 (Makefile.am): Likewise.
76059         * modules/sig2str (Makefile.am): Likewise.
76060         * modules/snprintf (Makefile.am): Likewise.
76061         * modules/stat-macros (Makefile.am): Likewise.
76062         * modules/stat-time (Makefile.am): Likewise.
76063         * modules/stdbool (Makefile.am): Likewise.
76064         * modules/stdint (Makefile.am): Likewise.
76065         * modules/stdlib-safer (Makefile.am): Likewise.
76066         * modules/stpcpy (Makefile.am): Likewise.
76067         * modules/stpncpy (Makefile.am): Likewise.
76068         * modules/strcase (Makefile.am): Likewise.
76069         * modules/strcasestr (Makefile.am): Likewise.
76070         * modules/strchrnul (Makefile.am): Likewise.
76071         * modules/strcspn (Makefile.am): Likewise.
76072         * modules/strdup (Makefile.am): Likewise.
76073         * modules/strerror (Makefile.am): Likewise.
76074         * modules/strftime (Makefile.am): Likewise.
76075         * modules/strndup (Makefile.am): Likewise.
76076         * modules/strnlen (Makefile.am): Likewise.
76077         * modules/strpbrk (Makefile.am): Likewise.
76078         * modules/strsep (Makefile.am): Likewise.
76079         * modules/strstr (Makefile.am): Likewise.
76080         * modules/strtod (Makefile.am): Likewise.
76081         * modules/strtoimax (Makefile.am): Likewise.
76082         * modules/strtok_r (Makefile.am): Likewise.
76083         * modules/strtol (Makefile.am): Likewise.
76084         * modules/strtoll (Makefile.am): Likewise.
76085         * modules/strtoul (Makefile.am): Likewise.
76086         * modules/strtoull (Makefile.am): Likewise.
76087         * modules/strtoumax (Makefile.am): Likewise.
76088         * modules/strverscmp (Makefile.am): Likewise.
76089         * modules/sys_socket (Makefile.am): Likewise.
76090         * modules/sys_stat (Makefile.am): Likewise.
76091         * modules/sysexits (Makefile.am): Likewise.
76092         * modules/time_r (Makefile.am): Likewise.
76093         * modules/timegm (Makefile.am): Likewise.
76094         * modules/timespec (Makefile.am): Likewise.
76095         * modules/tmpfile-safer (Makefile.am): Likewise.
76096         * modules/trim (Makefile.am): Likewise.
76097         * modules/unistd-safer (Makefile.am): Likewise.
76098         * modules/unlinkdir (Makefile.am): Likewise.
76099         * modules/unlocked-io (Makefile.am): Likewise.
76100         * modules/userspec (Makefile.am): Likewise.
76101         * modules/utime (Makefile.am): Likewise.
76102         * modules/utimecmp (Makefile.am): Likewise.
76103         * modules/utimens (Makefile.am): Likewise.
76104         * modules/vasnprintf (Makefile.am): Likewise.
76105         * modules/vasprintf (Makefile.am): Likewise.
76106         * modules/vsnprintf (Makefile.am): Likewise.
76107         * modules/xalloc (Makefile.am): Likewise.
76108         * modules/xgetcwd (Makefile.am): Likewise.
76109         * modules/xnanosleep (Makefile.am): Likewise.
76110         * modules/xreadlink (Makefile.am): Likewise.
76111         * modules/xstrtod (Makefile.am): Likewise.
76112         * modules/xstrtol (Makefile.am): Likewise.
76113         * modules/xstrtold (Makefile.am): Likewise.
76114         * modules/yesno (Makefile.am): Likewise.
76115         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76116
76117 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * modules/error (Makefile.am): Distribute files through
76120         EXTRA_DIST, not lib_SOURCES.
76121
76122 2006-10-12  Eric Blake  <ebb9@byu.net>
76123
76124         * modules/error (Makefile.am): Distribute files in /lib.
76125         * modules/obstack (Makefile.am): Likewise.
76126
76127 2006-10-12  Bruno Haible  <bruno@clisp.org>
76128
76129         * modules/acl (Makefile.am): Distribute all files in lib/ through
76130         EXTRA_DIST.
76131         * modules/arcfour (Makefile.am): Likewise.
76132         * modules/arctwo (Makefile.am): Likewise.
76133         * modules/argmatch (Makefile.am): Likewise.
76134         * modules/argz (Makefile.am): Likewise.
76135         * modules/atexit (Makefile.am): Likewise.
76136         * modules/backupfile (Makefile.am): Likewise.
76137         * modules/c-strtod (Makefile.am): Likewise.
76138         * modules/c-strtold (Makefile.am): Likewise.
76139         * modules/calloc (Makefile.am): Likewise.
76140         * modules/canon-host (Makefile.am): Likewise.
76141         * modules/canonicalize (Makefile.am): Likewise.
76142         * modules/chdir-long (Makefile.am): Likewise.
76143         * modules/chdir-safer (Makefile.am): Likewise.
76144         * modules/check-version (Makefile.am): Likewise.
76145         * modules/chown (Makefile.am): Likewise.
76146         * modules/cloexec (Makefile.am): Likewise.
76147         * modules/close-stream (Makefile.am): Likewise.
76148         * modules/closeout (Makefile.am): Likewise.
76149         * modules/crc (Makefile.am): Likewise.
76150         * modules/cycle-check (Makefile.am): Likewise.
76151         * modules/des (Makefile.am): Likewise.
76152         * modules/dirfd (Makefile.am): Likewise.
76153         * modules/dirname (Makefile.am): Likewise.
76154         * modules/dup2 (Makefile.am): Likewise.
76155         * modules/euidaccess (Makefile.am): Likewise.
76156         * modules/exclude (Makefile.am): Likewise.
76157         * modules/exitfail (Makefile.am): Likewise.
76158         * modules/fcntl-safer (Makefile.am): Likewise.
76159         * modules/file-type (Makefile.am): Likewise.
76160         * modules/fileblocks (Makefile.am): Likewise.
76161         * modules/filemode (Makefile.am): Likewise.
76162         * modules/filenamecat (Makefile.am): Likewise.
76163         * modules/fnmatch (Makefile.am): Likewise.
76164         * modules/fopen-safer (Makefile.am): Likewise.
76165         * modules/fpending (Makefile.am): Likewise.
76166         * modules/fprintftime (Makefile.am): Likewise.
76167         * modules/free (Makefile.am): Likewise.
76168         * modules/fsusage (Makefile.am): Likewise.
76169         * modules/ftruncate (Makefile.am): Likewise.
76170         * modules/fts (Makefile.am): Likewise.
76171         * modules/gc (Makefile.am): Likewise.
76172         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76173         * modules/getaddrinfo (Makefile.am): Likewise.
76174         * modules/getcwd (Makefile.am): Likewise.
76175         * modules/getdelim (Makefile.am): Likewise.
76176         * modules/getdomainname (Makefile.am): Likewise.
76177         * modules/getgroups (Makefile.am): Likewise.
76178         * modules/gethostname (Makefile.am): Likewise.
76179         * modules/gethrxtime (Makefile.am): Likewise.
76180         * modules/getline (Makefile.am): Likewise.
76181         * modules/getloadavg (Makefile.am): Likewise.
76182         * modules/getlogin_r (Makefile.am): Likewise.
76183         * modules/getopt (Makefile.am): Likewise.
76184         * modules/getpass (Makefile.am): Likewise.
76185         * modules/getpass-gnu (Makefile.am): Likewise.
76186         * modules/getsubopt (Makefile.am): Likewise.
76187         * modules/gettime (Makefile.am): Likewise.
76188         * modules/gettimeofday (Makefile.am): Likewise.
76189         * modules/getugroups (Makefile.am): Likewise.
76190         * modules/getusershell (Makefile.am): Likewise.
76191         * modules/glob (Makefile.am): Likewise.
76192         * modules/group-member (Makefile.am): Likewise.
76193         * modules/hard-locale (Makefile.am): Likewise.
76194         * modules/hash (Makefile.am): Likewise.
76195         * modules/hmac-md5 (Makefile.am): Likewise.
76196         * modules/hmac-sha1 (Makefile.am): Likewise.
76197         * modules/human (Makefile.am): Likewise.
76198         * modules/idcache (Makefile.am): Likewise.
76199         * modules/imaxabs (Makefile.am): Likewise.
76200         * modules/imaxdiv (Makefile.am): Likewise.
76201         * modules/inet_ntop (Makefile.am): Likewise.
76202         * modules/inet_pton (Makefile.am): Likewise.
76203         * modules/inttostr (Makefile.am): Likewise.
76204         * modules/isapipe (Makefile.am): Likewise.
76205         * modules/lchown (Makefile.am): Likewise.
76206         * modules/long-options (Makefile.am): Likewise.
76207         * modules/lstat (Makefile.am): Likewise.
76208         * modules/malloc (Makefile.am): Likewise.
76209         * modules/mathl (Makefile.am): Likewise.
76210         * modules/mbchar (Makefile.am): Likewise.
76211         * modules/md2 (Makefile.am): Likewise.
76212         * modules/md4 (Makefile.am): Likewise.
76213         * modules/md5 (Makefile.am): Likewise.
76214         * modules/memcasecmp (Makefile.am): Likewise.
76215         * modules/memchr (Makefile.am): Likewise.
76216         * modules/memcmp (Makefile.am): Likewise.
76217         * modules/memcoll (Makefile.am): Likewise.
76218         * modules/memcpy (Makefile.am): Likewise.
76219         * modules/memmem (Makefile.am): Likewise.
76220         * modules/memmove (Makefile.am): Likewise.
76221         * modules/mempcpy (Makefile.am): Likewise.
76222         * modules/memrchr (Makefile.am): Likewise.
76223         * modules/memset (Makefile.am): Likewise.
76224         * modules/memxor (Makefile.am): Likewise.
76225         * modules/mkancesdirs (Makefile.am): Likewise.
76226         * modules/mkdir (Makefile.am): Likewise.
76227         * modules/mkdir-p (Makefile.am): Likewise.
76228         * modules/mkdtemp (Makefile.am): Likewise.
76229         * modules/mkstemp (Makefile.am): Likewise.
76230         * modules/mktime (Makefile.am): Likewise.
76231         * modules/modechange (Makefile.am): Likewise.
76232         * modules/mountlist (Makefile.am): Likewise.
76233         * modules/nanosleep (Makefile.am): Likewise.
76234         * modules/openat (Makefile.am): Likewise.
76235         * modules/pagealign_alloc (Makefile.am): Likewise.
76236         * modules/physmem (Makefile.am): Likewise.
76237         * modules/poll (Makefile.am): Likewise.
76238         * modules/posixtm (Makefile.am): Likewise.
76239         * modules/posixver (Makefile.am): Likewise.
76240         * modules/putenv (Makefile.am): Likewise.
76241         * modules/quote (Makefile.am): Likewise.
76242         * modules/quotearg (Makefile.am): Likewise.
76243         * modules/raise (Makefile.am): Likewise.
76244         * modules/read-file (Makefile.am): Likewise.
76245         * modules/readline (Makefile.am): Likewise.
76246         * modules/readlink (Makefile.am): Likewise.
76247         * modules/readtokens (Makefile.am): Likewise.
76248         * modules/readutmp (Makefile.am): Likewise.
76249         * modules/realloc (Makefile.am): Likewise.
76250         * modules/regex (Makefile.am): Likewise.
76251         * modules/rename (Makefile.am): Likewise.
76252         * modules/rename-dest-slash (Makefile.am): Likewise.
76253         * modules/rijndael (Makefile.am): Likewise.
76254         * modules/rmdir (Makefile.am): Likewise.
76255         * modules/rpmatch (Makefile.am): Likewise.
76256         * modules/safe-read (Makefile.am): Likewise.
76257         * modules/safe-write (Makefile.am): Likewise.
76258         * modules/same (Makefile.am): Likewise.
76259         * modules/save-cwd (Makefile.am): Likewise.
76260         * modules/savedir (Makefile.am): Likewise.
76261         * modules/setenv (Makefile.am): Likewise.
76262         * modules/settime (Makefile.am): Likewise.
76263         * modules/sha1 (Makefile.am): Likewise.
76264         * modules/sig2str (Makefile.am): Likewise.
76265         * modules/snprintf (Makefile.am): Likewise.
76266         * modules/stdlib-safer (Makefile.am): Likewise.
76267         * modules/stpcpy (Makefile.am): Likewise.
76268         * modules/stpncpy (Makefile.am): Likewise.
76269         * modules/strcase (Makefile.am): Likewise.
76270         * modules/strcasestr (Makefile.am): Likewise.
76271         * modules/strchrnul (Makefile.am): Likewise.
76272         * modules/strcspn (Makefile.am): Likewise.
76273         * modules/strdup (Makefile.am): Likewise.
76274         * modules/strerror (Makefile.am): Likewise.
76275         * modules/strftime (Makefile.am): Likewise.
76276         * modules/strndup (Makefile.am): Likewise.
76277         * modules/strnlen (Makefile.am): Likewise.
76278         * modules/strpbrk (Makefile.am): Likewise.
76279         * modules/strsep (Makefile.am): Likewise.
76280         * modules/strstr (Makefile.am): Likewise.
76281         * modules/strtod (Makefile.am): Likewise.
76282         * modules/strtoimax (Makefile.am): Likewise.
76283         * modules/strtok_r (Makefile.am): Likewise.
76284         * modules/strtol (Makefile.am): Likewise.
76285         * modules/strtoll (Makefile.am): Likewise.
76286         * modules/strtoul (Makefile.am): Likewise.
76287         * modules/strtoull (Makefile.am): Likewise.
76288         * modules/strtoumax (Makefile.am): Likewise.
76289         * modules/strverscmp (Makefile.am): Likewise.
76290         * modules/time_r (Makefile.am): Likewise.
76291         * modules/timegm (Makefile.am): Likewise.
76292         * modules/tmpfile-safer (Makefile.am): Likewise.
76293         * modules/unistd-safer (Makefile.am): Likewise.
76294         * modules/unlinkdir (Makefile.am): Likewise.
76295         * modules/userspec (Makefile.am): Likewise.
76296         * modules/utime (Makefile.am): Likewise.
76297         * modules/utimecmp (Makefile.am): Likewise.
76298         * modules/utimens (Makefile.am): Likewise.
76299         * modules/vasnprintf (Makefile.am): Likewise.
76300         * modules/vasprintf (Makefile.am): Likewise.
76301         * modules/vsnprintf (Makefile.am): Likewise.
76302         * modules/xalloc (Makefile.am): Likewise.
76303         * modules/xgetcwd (Makefile.am): Likewise.
76304         * modules/xnanosleep (Makefile.am): Likewise.
76305         * modules/xreadlink (Makefile.am): Likewise.
76306         * modules/xstrtod (Makefile.am): Likewise.
76307         * modules/xstrtol (Makefile.am): Likewise.
76308         * modules/xstrtold (Makefile.am): Likewise.
76309         * modules/yesno (Makefile.am): Likewise.
76310
76311 2006-10-12  Jim Meyering  <jim@meyering.net>
76312
76313         * m4/getloadavg.m4: Revert the change below.
76314
76315         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76316         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76317         fail with a symlink, which is what coreutils' ./bootstrap now
76318         creates by default.
76319
76320 2006-10-12  Bruno Haible  <bruno@clisp.org>
76321
76322         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76323         mingw.
76324         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76325         MSVC and mingw explicitly.
76326
76327 2006-10-11  Simon Josefsson  <jas@extundo.com>
76328             Bruno Haible  <bruno@clisp.org>
76329
76330         Add support for multiple gnulib-tool invocations in the scope of a
76331         single configure.ac file.
76332         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76333         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76334         with the same contents as the _LIBADD variable.
76335         (func_emit_initmacro_start, func_emit_initmacro_end,
76336         func_emit_initmacro_done): New functions.
76337         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76338         gl_LIBOBJS and gl_LTLIBOBJS.
76339
76340 2006-10-11  Bruno Haible  <bruno@clisp.org>
76341
76342         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76343         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76344         autoreconf. Instead, invoke autopoint explicitly but move back the
76345         *.m4 files from gnulib.
76346
76347 2006-10-11  Bruno Haible  <bruno@clisp.org>
76348
76349         * gnulib-tool (func_usage): Make module names after --create-testdir
76350         optional.
76351         (func_create_testdir): If no module was specified, use nearly all
76352         modules.
76353
76354 2006-10-12  Jim Meyering  <jim@meyering.net>
76355
76356         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76357         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76358         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76359         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76360         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76361         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76362         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76363         (fts_set_stat_required): New function.
76364         (fts_open): Defer the calls to fts_stat, if possible or requested.
76365         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76366         into fts_stat itself.
76367         (fts_read): Perform any required (deferred) fts_stat call.
76368         (fts_build): Likewise, for the directory we're about to open and read.
76369         In the readdir loop, carefully decide whether each entry will require
76370         an eventual call to fts_stat, using dirent.d_type info if available.
76371         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76372         a command line argument into this function.  Update all callers.
76373         Map a return value of FTS_DOT to FTS_D for a command line argument.
76374         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76375         Thanks to Miklos Szeredi for his tenacity and for the initial
76376         bug report about "find" failing on a FUSE-based file system.
76377
76378         * lib/fts.c (fts_open): Use consistent indentation.
76379
76380 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76383         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76384         reported by Jim Meyering.  All uses of cache variables renamed
76385         to match Autoconf's.
76386         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76387         the other one.
76388
76389         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76390         Fix misspelling in diagnostic.
76391
76392 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76395         defined.  Problem reported by Matthew Woehlke.
76396
76397         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76398         Add support for Tandem NonStop R series.
76399         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76400         Use new macro.
76401
76402         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76403         (has_trailing_slash): Omit size arg; all callers changed.
76404         Omit 'inline', since it doesn't help performance and we'd
76405         need to configure it.
76406         Don't count //, ///, etc. as having a trailing slash.
76407         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76408         (rpl_rename_dest_slash): On failure, use rename's errno rather
76409         than (in some cases) an incorrect or junk errno.
76410         Simplify code by removing need to compute length; this does
76411         cause it to make two passes instead of one over the file name,
76412         but it's worth it.
76413
76414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76415         change, since Autoconf's version may no longer be appropriate now
76416         that we are using CVS Autoconf's version.  Add support for Tandem.
76417
76418 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76419             Bruno Haible  <bruno@clisp.org>
76420
76421         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76422         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76423         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76424         gl_AC_TYPE_LONG_LONG.
76425
76426         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76427         instead of HAVE_LONG_LONG.
76428         * lib/printf-args.c (printf_fetchargs): Likewise.
76429         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76430         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76431         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76432         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76433         gl_AC_TYPE_LONG_LONG.
76434
76435 2006-10-11  Bruno Haible  <bruno@clisp.org>
76436
76437         * m4/longlong.m4: Add comments.
76438         * m4/ulonglong.m4: Likewise.
76439
76440 2006-10-10  Bruno Haible  <bruno@clisp.org>
76441
76442         Make it possible to #define stpcpy, strdup to aliases.
76443         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76444         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76445
76446 2006-10-10  Bruno Haible  <bruno@clisp.org>
76447
76448         Make it possible to #define gcd to an alias.
76449         * lib/gcd.c: Include config.h.
76450
76451 2006-10-10  Bruno Haible  <bruno@clisp.org>
76452
76453         Make it possible to #define c_isascii to an alias.
76454         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76455         defined. Undefine the macros before defining them, to avoid gcc
76456         warnings.
76457         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76458         define NO_C_CTYPE_MACROS early.
76459
76460 2006-10-10  Bruno Haible  <bruno@clisp.org>
76461
76462         Make it possible to #define set_program_name to an alias.
76463         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76464         ENABLE_RELOCATABLE early.
76465
76466 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76469         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76470         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76471         More generally, don't assume that 64-bit signed int is available
76472         if unsigned int is, and vice versa.
76473         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76474         unsigned symbols, not on their signed counterparts.
76475         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76476         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76477         (UINT64_C, UINTMAX_C):
76478         Likewise.
76479         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76480         unsigned counterparts.
76481         (Have_long_long, Unsigned): New macros.
76482         (Int): Renamed from INT.
76483         (strtoimax): Use the new macros.
76484         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76485         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76486         * modules/inttypes (inttypes.h): Substitute
76487         HAVE_UNSIGNED_LONG_LONG_INT.
76488         * modules/stdint (stdint.h): Likewise.
76489         (Files): Add m4/ulonglong.m4.
76490
76491 2006-10-10  Bruno Haible  <bruno@clisp.org>
76492
76493         Fix a gcc -Wshadow warning.
76494         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76495         to 'bucket'.
76496         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76497         gl_linked_indexof_from_to): Likewise.
76498         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76499         Likewise.
76500         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76501         Likewise.
76502         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76503         Reported by Eric Blake.
76504
76505 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76508         for NetBSD.  Problem reported by Bruno Haible.
76509
76510 2006-10-09  Jim Meyering  <jim@meyering.net>
76511
76512         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76513         Patch from Bruno Haible.
76514
76515 2006-10-09  Jim Meyering  <jim@meyering.net>
76516
76517         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76518         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76519         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76520
76521 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         Don't include <config.h> twice; this doesn't work in some cases,
76524         e.g., when config.h has "#define intmax_t long long int" and
76525         we include <config.h>, <inttypes.h>, <config.h> in that order.
76526         Problem reported by Matthew Woehlke in:
76527         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76528         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76529         * lib/fts-cycle.c: Don't include config.h.
76530         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76531         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76532         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76533         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76534         inttypes.h.
76535         * lib/xstrtoumax.c: Likewise.
76536         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76537         __strtol and the like, so that this module is more like its siblings.
76538         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76539         Remove; no longer needed now that we assume gnulib inttypes.h.
76540
76541 2006-10-08  Bruno Haible  <bruno@clisp.org>
76542
76543         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76544         option.
76545
76546 2006-10-07  Jim Meyering  <jim@meyering.net>
76547
76548         * modules/inttypes (inttypes.h): Revert what seems to have been
76549         an inadvertent part of today's change: use "|", not "/" in the
76550         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76551
76552 2006-10-07  Bruno Haible  <bruno@clisp.org>
76553
76554         * modules/sublist: New file.
76555
76556 2006-10-07  Bruno Haible  <bruno@clisp.org>
76557
76558         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76559         * modules/argz (argz.h): Likewise.
76560         * modules/arpa_inet (arpa/inet.h): Likewise.
76561         * modules/byteswap (byteswap.h): Likewise.
76562         * modules/configmake (configmake.h): Likewise.
76563         * modules/fcntl (fcntl.h): Likewise.
76564         * modules/fnmatch (fnmatch.h): Likewise.
76565         * modules/getopt (getopt.h): Likewise.
76566         * modules/glob (glob.h): Likewise.
76567         * modules/inttypes (inttypes.h): Likewise.
76568         * modules/netinet_in (netinet/in.h): Likewise.
76569         * modules/poll (poll.h): Likewise.
76570         * modules/stdbool (stdbool.h): Likewise.
76571         * modules/stdint (stdint.h): Likewise.
76572         * modules/sys_select (sys/select.h): Likewise.
76573         * modules/sys_socket (sys/socket.h): Likewise.
76574         * modules/sys_stat (sys/stat.h): Likewise.
76575         * modules/sysexits (sysexits.h): Likewise.
76576         * modules/unistd (unistd.h): Likewise.
76577         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76578         Add a "DO NOT EDIT" comment to the generated file.
76579         (func_import): Likewise for gnulib-comp.m4.
76580
76581 2006-10-07  Bruno Haible  <bruno@clisp.org>
76582
76583         * lib/gl_sublist.h: New file.
76584         * lib/gl_sublist.c: New file.
76585
76586 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76589         name (relative to the original working directory) and the file
76590         name component (relative to the temporary working directory).  All
76591         callers changed.
76592         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76593         * lib/mkdir-p.c (make_dir_parents): Likewise.
76594         * lib/mkdir-p.h (make_dir_parents): Likewise.
76595
76596 2006-10-06  Eric Blake  <ebb9@byu.net>
76597
76598         Define several macros for use by the clean-temp module.
76599         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76600         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76601         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76602
76603         * lib/clean-temp.h (close_stream_temp): New declaration.
76604         * lib/clean-temp.c (includes): Pull in headers according to what
76605         other modules are in use.
76606         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76607
76608 2006-10-06  Bruno Haible  <bruno@clisp.org>
76609
76610         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76611         instead of fopen, fwriteerror.
76612
76613 2006-10-06  Bruno Haible  <bruno@clisp.org>
76614
76615         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76616         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76617         int.
76618         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76619         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76620         Return an error indicator.
76621         Suggested by Eric Blake.
76622
76623 2006-10-06  Bruno Haible  <bruno@clisp.org>
76624
76625         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76626         Reported by Eric Blake.
76627
76628 2006-10-06  Bruno Haible  <bruno@clisp.org>
76629
76630         * modules/closeout (Description): Mention stderr too.
76631
76632 2006-10-06  Bruno Haible  <bruno@clisp.org>
76633         and Paul Eggert  <eggert@cs.ucla.edu>
76634
76635         * lib/closeout.c (close_stdout): Also close stderr.
76636         * lib/closeout.h: Update comment.
76637
76638 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76639
76640         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76641         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76642         * lib/dirchownmod.c: Include lchown.h.
76643         * lib/lchown.c: Don't include files that lchown.h now includes.
76644         Don't declare chown, since lchown.h now does that.
76645         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76646         (lchown): Define to rpl_chown if lchown is declared but
76647         does not exist.  Declare using a prototype if lchown is not
76648         declared.  Add a copyright notice.
76649         * lib/mkstemp.h: Include <unistd.h>.
76650         * lib/openat.c: Include lchown.h.
76651
76652         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76653         we now test for that separately.
76654         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76655         rather than O_NOFOLLOW, when testing whether it's possible to
76656         avoid a race condition reliably.
76657         * lib/savewd.c (savewd_chdir): Likewise.
76658
76659         Remove macros that are no longer needed now that stdint.h is
76660         reliable.
76661         * lib/fsusage.c (UINTMAX_MAX): Remove.
76662         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76663         * lib/utimecmp.c (SIZE_MAX): Remove.
76664
76665         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76666
76667         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76668         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76669         O_NOATIME works.
76670
76671 2006-10-05  Bruno Haible  <bruno@clisp.org>
76672
76673         * lib/gl_list.h (gl_sortedlist_search_from_to,
76674         gl_sortedlist_indexof_from_to): New declarations.
76675         (gl_list_implementation): New fields sortedlist_search_from_to,
76676         sortedlist_indexof_from_to.
76677         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76678         inline functions.
76679         * lib/gl_list.c (gl_sortedlist_search_from_to,
76680         gl_sortedlist_indexof_from_to): New functions.
76681         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76682         function.
76683         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76684         (gl_array_sortedlist_search_from_to): New function.
76685         (gl_array_list_implementation): Update.
76686         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76687         function.
76688         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76689         (gl_carray_sortedlist_search_from_to): New function.
76690         (gl_carray_list_implementation): Update.
76691         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76692         gl_linked_sortedlist_indexof_from_to): New functions.
76693         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76694         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76695         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76696         gl_tree_sortedlist_indexof_from_to): New functions.
76697         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76698         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76699         Update.
76700         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76701         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76702         Update.
76703
76704 2006-10-05  Bruno Haible  <bruno@clisp.org>
76705
76706         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76707         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76708         (struct gl_list_implementation): Add fields search_from_to,
76709         indexof_from_to. Remove fields search, indexof.
76710         (gl_list_search): Use the search_from_to method.
76711         (gl_list_search_from, gl_list_search_from_to): New functions.
76712         (gl_list_indexof): Use the indexof_from_to method.
76713         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76714         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76715         (gl_list_search_from, gl_list_search_from_to): New functions.
76716         (gl_list_indexof): Use the indexof_from_to method.
76717         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76718         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76719         gl_array_indexof. Add start_index, end_index arguments.
76720         (gl_array_search_from_to): Renamed from gl_array_search. Add
76721         start_index, end_index arguments.
76722         (gl_array_remove, gl_array_list_implementation): Update.
76723         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76724         gl_carray_indexof. Add start_index, end_index arguments.
76725         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76726         start_index, end_index arguments.
76727         (gl_carray_remove, gl_carray_list_implementation): Update.
76728         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76729         gl_linked_search. Add start_index, end_index arguments.
76730         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76731         start_index, end_index arguments.
76732         (gl_linked_remove): Update.
76733         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76734         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76735         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76736         field to 'size_t'.
76737         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76738         gl_tree_search. Add start_index, end_index arguments.
76739         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76740         start_index, end_index arguments.
76741         (gl_tree_remove): Update.
76742         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76743         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76744         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76745         function.
76746         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76747         gl_tree_search. Add start_index, end_index arguments.
76748         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76749         start_index, end_index arguments.
76750         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76751         Update.
76752         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76753
76754 2006-10-05  Bruno Haible  <bruno@clisp.org>
76755
76756         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76757
76758         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76759         fwriteerror_temp): New declarations.
76760         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76761         (descriptors): New variable.
76762         (cleanup): First, close the descriptors.
76763         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76764         fclose_temp, fwriteerror_temp): New functions.
76765
76766 2006-10-04  Jim Meyering  <jim@meyering.net>
76767
76768         * lib/fts.c (fts_open): Tiny comment change.
76769
76770 2006-10-04  Bruno Haible  <bruno@clisp.org>
76771
76772         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76773         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76774         gl_LOCK_BODY.
76775         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76776         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76777         gl_LOCK_EARLY_BODY.
76778         (gl_LOCK): Require gl_LOCK_BODY.
76779
76780 2006-10-04  Bruno Haible  <bruno@clisp.org>
76781
76782         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76783         (gl_oset_search_atleast): New declaration.
76784         (struct gl_oset_implementation): Add field 'search_atleast'.
76785         (gl_oset_search_atleast): New inline function.
76786         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76787         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76788         (gl_array_oset_implementation): Update.
76789         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76790         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76791         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76792
76793 2006-10-04  Bruno Haible  <bruno@clisp.org>
76794
76795         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76796
76797 2006-10-03  Bruno Haible  <bruno@clisp.org>
76798
76799         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76800         from gl_avltreehash_list_implementation.
76801
76802 2006-10-03  Bruno Haible  <bruno@clisp.org>
76803
76804         * lib/gl_oset.c (gl_oset_add): Fix return type.
76805
76806 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76807
76808         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76809
76810 2006-10-02  Eric Blake  <ebb9@byu.net>
76811
76812         * modules/strnlen (Depends-on): Add extensions.
76813
76814 2006-10-02  Eric Blake  <ebb9@byu.net>
76815
76816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76817         definition in 2.60+.
76818
76819 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76820
76821         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76822         checks.
76823
76824 2006-10-02  Bruno Haible  <bruno@clisp.org>
76825
76826         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76827         to the AUTOMAKE_OPTIONS.
76828         Reported by Jim Meyering.
76829
76830 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         Work around bug in Solaris 10 /proc file system:
76833         /proc/self/fd/NNN/.. isn't the parent directory of
76834         the directory whose file descriptor is NNN.  This needs to
76835         be worked around at run time, not compile time, since a
76836         program might be built on Solaris 8, where things work, and
76837         run on Solaris 10.
76838         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76839         to use the following interface instead:
76840         (OPENAT_BUFFER_SIZE): New macro.
76841         (openat_proc_name): New function.
76842         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76843         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76844         Likewise.
76845         * lib/openat-proc.c: New file.
76846         * modules/openat (Files): Add lib/openat-proc.c.
76847         (Depends-on): Add same-inode, stdbool.
76848         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76849
76850 2006-09-29  Bruno Haible  <bruno@clisp.org>
76851
76852         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76853         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76854         argument. Set stdout_closed before testing for ferror, not after.
76855         (fwriteerror, fwriteerror_no_ebadf): New functions.
76856
76857 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76858
76859         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76860
76861 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76862
76863         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76864         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76865
76866 2006-09-28  Jim Meyering  <jim@meyering.net>
76867
76868         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76869         Include <unistd.h>.
76870
76871 2006-09-28  Bruno Haible  <bruno@clisp.org>
76872
76873         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76874         * modules/linkedhash-list (Depends-on): Likewise.
76875         * modules/rbtreehash-list (Depends-on): Likewise.
76876
76877 2006-09-28  Bruno Haible  <bruno@clisp.org>
76878
76879         * lib/strndup.h: Simplify the redefinition of strndup.
76880         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76881         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76882
76883 2006-09-28  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76886         * lib/gl_linkedhash_list.c: Likewise.
76887         * lib/gl_rbtreehash_list.c: Likewise.
76888
76889 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76892         getaddrinfo.
76893
76894         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76895         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76896         it causes <stdio_ext.h> to cause a compile-time error.
76897         Problem reported by Nelson H. F. Beebe.
76898         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76899         of HAVE_DECL___PENDING.
76900
76901         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76902         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76903         declaration.
76904
76905 2006-09-27  Jim Meyering  <jim@meyering.net>
76906
76907         This file could end up with a definition for a function
76908         named __strndup, rather than rpl_strndup on a system with
76909         incomplete weak_alias support.
76910         * lib/strndup.c (strndup): Rename from __strndup.
76911         Remove #defines that used to map __strndup to strndup.
76912         Don't use K&R prototypes.
76913         Remove LIBC-related code, since this file is not sync'd with glibc.
76914         * lib/strndup.h: Revamp, accordingly.
76915         * m4/strndup.m4: Modernize.
76916
76917 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76918
76919         * modules/savewd (Depends-on): Add 'raise'.
76920         * lib/savewd.c: Include <signal.h>, for 'raise'.
76921
76922 2006-09-26  Jim Meyering  <jim@meyering.net>
76923
76924         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76925         when we detect Darwin 8.7.0's acl_get_file bug.
76926         Rearrange to perform the new (below) run-test while $LIBS
76927         contains any acl-related library.  Set USE_ACL at the end.
76928         (gl_ACL_GET_FILE): New function.
76929
76930 2006-09-26  Eric Blake  <ebb9@byu.net>
76931
76932         * lib/verror.c: Include <config.h> unconditionally.
76933
76934 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * modules/clock-time (Maintainer): Add self.
76937         * modules/getlogin_r (Depends-on): Add extensions.
76938
76939 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76940
76941         * modules/clock-time: New module.
76942         * modules/nanosleep (Depends-on): Add clock-time.
76943         * modules/gethrxtime (Depends-on): Likewise.
76944         * modules/gettime (Depends-on): Likewise.
76945         * modules/settime (Depends-on): Likewise.
76946
76947         * modules/fts-lgpl: Depend on openat.
76948         * modules/mkancesdirs: Depend on savewd.
76949         * modules/mkdir-p: Likewise.
76950
76951 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76952
76953         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76954
76955         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76956         `gl_have_arbitrary_file_name_length_limit' to
76957         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76958         actually works between configure runs.
76959
76960 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76961             Bruno Haible  <bruno@clisp.org>
76962
76963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76964
76965 2006-09-25  Jim Meyering  <jim@meyering.net>
76966
76967         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76968         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76969
76970 2006-09-25  Eric Blake  <ebb9@byu.net>
76971
76972         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76973         exec's in 2006-09-18 patch when shuffling fds.
76974
76975 2006-09-25  Bruno Haible  <bruno@clisp.org>
76976
76977         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76978         Reported by Jim Meyering.
76979
76980 2006-09-24  Jim Meyering  <jim@meyering.net>
76981
76982         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76983         compare a pointer against a literal "0".  That caused failures with
76984         at least HP-UX's hpcc.
76985
76986 2006-09-22  Simon Josefsson  <jas@extundo.com>
76987
76988         * modules/gc-sha1:
76989         * modules/gc-md4:
76990         * modules/gc-hmac-sha1:
76991         * modules/gc-hmac-md5:
76992         * modules/gc-des:
76993         * modules/gc-arcfour: Distribute more files.
76994
76995 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76996
76997         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76998         (gl_linked_iterator_from_to): Initialize struct completely.
76999         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77000         (gl_tree_iterator_from_to): Likewise
77001         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77002         * lib/gl_array_list.c [lint] (gl_array_iterator)
77003         (gl_array_iterator_from_to): Likewise.
77004         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77005         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77006         (gl_carray_iterator_from_to): Likewise.
77007
77008         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77009         * lib/md4.c (md4_process_block): Remove unused variable.
77010         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77011         parentheses for clarity.
77012
77013 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77014
77015         * modules/bison-i18n (Depends-on): Add gettext.
77016
77017 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77018
77019         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77020         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77021         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77022         also add missing comma that caused broken test.
77023         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77024         stdlib.h, for `abort'.
77025         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77026         variables.
77027         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77028         include unistd.h if present, for `rmdir'.
77029         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77030         variables.
77031         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77032         in the process include standard headers for prototypes.
77033         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77034         gets declared on GNU/Linux.
77035         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77036         unistd.h, for `rmdir'.
77037         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77038
77039         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77040         always true.
77041         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77042
77043         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77044
77045 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77046
77047         * gnulib-tool (func_version): Create output all at once.  This
77048         may help avoid triggering unnecessary SIGPIPEs, and at any
77049         rate it doesn't hurt.
77050
77051 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77052             Bruno Haible  <bruno@clisp.org>
77053
77054         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77055         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77056         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77057
77058         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77059         (gl_FUNC_VASPRINTF): Invoke it.
77060
77061 2006-09-22  Bruno Haible  <bruno@clisp.org>
77062
77063         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77064         getloadavg.c as first argument.
77065
77066 2006-09-22  Bruno Haible  <bruno@clisp.org>
77067
77068         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77069         at the beginning of the gl_INIT macro.
77070         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77071         gl_GETLOADAVG.
77072
77073 2006-09-22  Bruno Haible  <bruno@clisp.org>
77074
77075         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77076         module.
77077         Suggested by Ralf Wildenhues.
77078
77079 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77080
77081         Import this patch from libc:
77082
77083         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77084
77085         * lib/regex_internal.c (re_string_reconstruct): Handle
77086         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77087         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77088         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77089         re_string_context_at.
77090
77091         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77092         now requires it.
77093         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77094         gl_REGEX now does it for us.
77095         (gl_REGEX): Add test taken from
77096         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77097
77098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77099         Check that large offsets work.  Modernize Autoconf usages.
77100         Prefer "yes" to mean a good thing rather than a bad.
77101         Don't put "#define mkstemp" in config.h, as this might interfere
77102         with standard system headers that "#define mkstemp mkstemp64".
77103
77104         * modules/mkstemp (Depends-on): Add extensions, so that
77105         mkstemp is visible on some platforms.
77106         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77107         (Include): Change to "mkstemp.h" from <stdlib.h>.
77108         (Files): Add mkstemp.h.
77109
77110         * lib/mkstemp.h: New file, since some standard headers
77111         #define mkstemp.
77112         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77113         Include "mkstemp.h".
77114         Make the _LIBC code resemble glibc original more,
77115         e.g., use K&R style.
77116         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77117         (mkstemp): Remove, since mkstemp.h does this for us.
77118         * lib/stdlib--.h: Include mkstemp.h.
77119
77120         Import this patch from libc:
77121
77122         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77123
77124         * lib/tempname.c (__gen_tempname): Change attempts_min
77125         into a macro.  Use preprocessor to decide how to initialize
77126         attempts [Coverity CID 67].
77127
77128 2006-09-20  Bruno Haible  <bruno@clisp.org>
77129
77130         * lib/mkdtemp.c: Import from libc.
77131         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77132                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77133                 attempts_min into a macro.  Use preprocessor to decide how to
77134                 initialize attempts [Coverity CID 67].
77135         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77136                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77137                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77138
77139 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77140
77141         * gnulib-tool (func_exit): New function, to allow to pass the
77142         exit status portably through the trap.  Use everywhere.
77143         (--help, --version): Signal a write error.
77144         (trap): catch SIGPIPE, for write errors.
77145         Exit at the end of the trap, with the correct exit status.
77146
77147 2006-09-19  Karl Berry  <karl@gnu.org>
77148
77149         * doc/gnulib.texi: note about the license texinfo files.
77150
77151 2006-09-19  Eric Blake  <ebb9@byu.net>
77152
77153         * gnulib-tool: Avoid space-tab.
77154
77155 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77156
77157         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77158         that prevented coreutils 6.1 from building.  Problem reported
77159         by Petter Reinholdtsen.
77160
77161 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * gnulib-tool (avoidlist): Fix typo that broke options like
77164         --avoid=lock that are used by coreutils bootstrap.
77165
77166 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77167
77168         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77169         more systematically.
77170
77171 2006-09-18  Jim Meyering  <jim@meyering.net>
77172
77173         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77174
77175 2006-09-18  Bruno Haible  <bruno@clisp.org>
77176
77177         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77178
77179 2006-09-18  Bruno Haible  <bruno@clisp.org>
77180
77181         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77182         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77183         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77184         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77185         * m4/gettext.m4: Require autoconf >= 2.52.
77186         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77187         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77188         of gl_cv_header_inttypes_h.
77189
77190 2006-09-18  Bruno Haible  <bruno@clisp.org>
77191
77192         * lib/javaversion.c: Include configmake.h.
77193
77194 2006-09-18  Bruno Haible  <bruno@clisp.org>
77195
77196         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77197         avoid that the while loops be executed in a subshell.
77198
77199 2006-09-18  Bruno Haible  <bruno@clisp.org>
77200
77201         * MODULES.html.sh (func_module): Break long lines.
77202         Suggested by Bruce Korb <bkorb@gnu.org>.
77203
77204 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77205
77206         Speed up by a factor of 1.12.
77207         * gnulib-tool (nl): New variable.
77208         (func_import): Rewrite include directive extraction to only read each
77209         directive once.
77210
77211 2006-09-17  Bruno Haible  <bruno@clisp.org>
77212
77213         * modules/javaversion (Makefile.am): Remove DEFS setting.
77214         (Depends-on): Add configmake, for PKGDATADIR definition.
77215
77216 2006-09-17  Bruno Haible  <bruno@clisp.org>
77217
77218         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77219
77220 2006-09-17  Bruno Haible  <bruno@clisp.org>
77221
77222         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77223         (func_modules_transitive_closure, func_modules_add_dummy,
77224         func_modules_to_filelist, func_import, func_create_testdir,
77225         func_create_megatestdir, ...): Use it wherever possible.
77226         Suggested by Ralf Wildenhues.
77227
77228 2006-09-16  Karl Berry  <karl@gnu.org>
77229
77230         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77231         to avoid sectioning errors.
77232         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77233         [ifinfo]: blank line after @center-ed titles.
77234         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77235         Spell FSF address consistently with others.
77236         (These changes approved by rms.)
77237
77238 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77239
77240         Speed up by a factor of 1.61.
77241         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77242         already checked module names again.
77243
77244 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77245
77246         Speed up by a factor of 1.13.
77247         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77248         for new_files, and the input to func_add_or_update.
77249
77250 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77251
77252         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77253         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77254
77255 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * modules/mkancesdirs (Depends-on): Add fcntl.
77258         * modules/savewd: New file.
77259         * MODULES.html.sh (File system functions): Add savewd.
77260
77261         * modules/configmake (Makefile.am): Add support for the
77262         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77263
77264 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * m4/savewd.m4: New file.
77267
77268 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77269
77270         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77271         (dirchownmod): New arg FD.  All callers changed.
77272         Use FD rather than opening the directory ourself, as opening is
77273         now the caller's responsibility.
77274         * lib/dirchownmod.h: Likewise.
77275         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77276         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77277         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77278         (test_dir): Remove.
77279         (mkancesdirs): Return length of prefix of FILE that has already
77280         been made, or -2 if there is a child doing the work.  Redo
77281         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77282         ".", and treat ".." specially since it might stray back into
77283         already-created areas.  Use a subprocess if necessary.  New arg
77284         WD; all users changed.  MAKE_DIR function should now return 1
77285         if it creates a directory that is not readable.  Return -2 if
77286         a child process is spun off.
77287         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77288         Adjust signature to match code.
77289         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77290         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77291         all users changed.
77292         * lib/savewd.c, lib/savewd.h: New files.
77293
77294 2006-09-15  Jim Meyering  <jim@meyering.net>
77295
77296         * modules/rename-dest-slash: New module.
77297         * MODULES.html.sh (posix_compat): Add it here.
77298
77299         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77300
77301 2006-09-15  Jim Meyering  <jim@meyering.net>
77302
77303         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77304         file.
77305
77306         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77307
77308 2006-09-15  Jim Meyering  <jim@meyering.net>
77309
77310         * lib/rename-dest-slash.c (has_trailing_slash): Use
77311         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77312         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77313         test before testing whether SRC is a directory.
77314         Suggestions from Bruno Haible.
77315
77316         Avoid a warning about an unused variable.
77317         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77318         into the #ifdef block where it's used.
77319
77320         * lib/rename-dest-slash.c: New file.
77321
77322 2006-09-14  Bruno Haible  <bruno@clisp.org>
77323
77324         * lib/allocsa.c: Include <config.h> unconditionally.
77325         * lib/asnprintf.c: Likewise.
77326         * lib/asprintf.c: Likewise.
77327         * lib/c-strcasecmp.c: Likewise.
77328         * lib/c-strcasestr.c: Likewise.
77329         * lib/c-strncasecmp.c: Likewise.
77330         * lib/c-strstr.c: Likewise.
77331         * lib/classpath.c: Likewise.
77332         * lib/clean-temp.c: Likewise.
77333         * lib/concatpath.c: Likewise.
77334         * lib/copy-file.c: Likewise.
77335         * lib/csharpcomp.c: Likewise.
77336         * lib/csharpexec.c: Likewise.
77337         * lib/execute.c: Likewise.
77338         * lib/fatal-signal.c: Likewise.
77339         * lib/findprog.c: Likewise.
77340         * lib/fwriteerror.c: Likewise.
77341         * lib/gl_array_list.c: Likewise.
77342         * lib/gl_array_oset.c: Likewise.
77343         * lib/gl_avltree_list.c: Likewise.
77344         * lib/gl_avltree_oset.c: Likewise.
77345         * lib/gl_avltreehash_list.c: Likewise.
77346         * lib/gl_carray_list.c: Likewise.
77347         * lib/gl_linked_list.c: Likewise.
77348         * lib/gl_linkedhash_list.c: Likewise.
77349         * lib/gl_list.c: Likewise.
77350         * lib/gl_oset.c: Likewise.
77351         * lib/gl_rbtree_list.c: Likewise.
77352         * lib/gl_rbtree_oset.c: Likewise.
77353         * lib/gl_rbtreehash_list.c: Likewise.
77354         * lib/imaxabs.c: Likewise.
77355         * lib/imaxdiv.c: Likewise.
77356         * lib/javacomp.c: Likewise.
77357         * lib/javaexec.c: Likewise.
77358         * lib/javaversion.c: Likewise.
77359         * lib/linebreak.c: Likewise.
77360         * lib/localcharset.c: Likewise.
77361         * lib/lock.c: Likewise.
77362         * lib/mbchar.c: Likewise.
77363         * lib/mbswidth.c: Likewise.
77364         * lib/mkdtemp.c: Likewise.
77365         * lib/pipe.c: Likewise.
77366         * lib/printf-args.c: Likewise.
77367         * lib/printf-parse.c: Likewise.
77368         * lib/progname.c: Likewise.
77369         * lib/progreloc.c: Likewise.
77370         * lib/readlink.c: Likewise.
77371         * lib/sh-quote.c: Likewise.
77372         * lib/stpcpy.c: Likewise.
77373         * lib/stpncpy.c: Likewise.
77374         * lib/strcasecmp.c: Likewise.
77375         * lib/strcasestr.c: Likewise.
77376         * lib/strcspn.c: Likewise.
77377         * lib/striconv.c: Likewise.
77378         * lib/strncasecmp.c: Likewise.
77379         * lib/strnlen1.c: Likewise.
77380         * lib/strstr.c: Likewise.
77381         * lib/strtok_r.c: Likewise.
77382         * lib/tls.c: Likewise.
77383         * lib/tmpdir.c: Likewise.
77384         * lib/unicodeio.c: Likewise.
77385         * lib/unsetenv.c: Likewise.
77386         * lib/vasnprintf.c: Likewise.
77387         * lib/vasprintf.c: Likewise.
77388         * lib/wait-process.c: Likewise.
77389         * lib/xallocsa.c: Likewise.
77390         * lib/xsetenv.c: Likewise.
77391         * lib/xstriconv.c: Likewise.
77392
77393 2006-09-13  Simon Josefsson  <jas@extundo.com>
77394
77395         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77396         that internally, suggested by Ralf Wildenhues
77397         <Ralf.Wildenhues@gmx.de>.
77398
77399 2006-09-13  Simon Josefsson  <jas@extundo.com>
77400
77401         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77402         @LIBOBJS@.
77403         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77404
77405 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77406
77407         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77408         longer worry about uses that don't define HAVE_CONFIG_H.
77409         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77410         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77411         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77412         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77413         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77414         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77415         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77416         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77417         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77418         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77419         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77420         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77421         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77422         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77423         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77424         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77425         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77426         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77427         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77428         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77429         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77430         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77431         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77432         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77433         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77434         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77435         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77436         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77437         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77438         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77439         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77440         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77441         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77442         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77443         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77444         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77445         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77446         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77447         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77448         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77449         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77450         Likewise.
77451
77452 2006-09-13  Eric Blake  <ebb9@byu.net>
77453
77454         * lib/getopt.c: Fix typo in last commit.
77455
77456 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77457
77458         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77459         dgettext.
77460
77461 2006-09-12  Jim Meyering  <jim@meyering.net>
77462
77463         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77464         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77465         Reported by Nelson H. F. Beebe.
77466
77467 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77468
77469         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77470         program_invocation_name and program_invocation_short_name are
77471         initialized.
77472         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77473         and program_invocation_short_name to argp.h, so they are visible
77474         to user programs.
77475         * lib/argp.h: Likewise
77476
77477 2006-09-10  Bruno Haible  <bruno@clisp.org>
77478
77479         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77480         m4/inttypes_h.m4, m4/uintmax_t.m4.
77481
77482 2006-09-10  Bruno Haible  <bruno@clisp.org>
77483
77484         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77485         gl_AC_TYPE_UINTMAX_T.
77486
77487 2006-09-10  Bruno Haible  <bruno@clisp.org>
77488
77489         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77490
77491 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77492
77493         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77494         convention.  Text proposed by Bruno Haible.
77495         (struct argp_option): Document the use of N_() wrappers.
77496
77497         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77498         '\v', and translate the two parts separately, instead of feeding
77499         the whole string to gettext.  This allows to exclude
77500         '\v' from the strings visible to the translator by writing doc
77501         strings as N_("..") "\v" N_("..").
77502
77503 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77504
77505         * config/srclist.txt: Undo latest change; the bug was fixed.
77506
77507 2006-09-09  Bruno Haible  <bruno@clisp.org>
77508
77509         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77510         assignments if building a library without libtool.
77511         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77512         in func_emit_lib_Makefile_am.
77513         (func_import): When building a static library libfoo.a, arrange to
77514         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77515         (func_create_testdir): Likewise.
77516         * modules/gc (configure.ac, Makefile.am): If building statically,
77517         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77518         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77519         * modules/striconv (configure.ac, Makefile.am): Likewise.
77520         Based on a suggestion by Ralf Wildenhues.
77521
77522 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77523
77524         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77525         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77526         Also:
77527
77528         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77529         Add year_2050_test to catch glibc bug 2821
77530         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77531
77532         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77533         Prefer #ifdef to #if.
77534
77535         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77536         Return from 'main' instead of calling 'exit'.
77537
77538 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77539
77540         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77541         returned the maximum time_t value rather than (time_t) -1.
77542         Problem originally reported by William Bardwell
77543         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77544
77545         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77546         Moved to here ...
77547         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77548         ... from here.
77549
77550 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77553         2821 is fixed.
77554
77555 2006-09-08  Jim Meyering  <jim@meyering.net>
77556
77557         Don't make generated files read-only.  That would bother too many
77558         people.  However, do retain the ability to work when targets are
77559         read-only: remove the destination and temporary files before writing
77560         them (when generated via sed or echo), or by using the -f option for
77561         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77562         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77563         * modules/byteswap, modules/configmake, modules/fcntl:
77564         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77565         * modules/localcharset, modules/netinet_in, modules/poll:
77566         * modules/stdbool, modules/stdint, modules/sys_select:
77567         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77568
77569 2006-09-08  Jim Meyering  <jim@meyering.net>
77570
77571         Avoid new build failure on FreeBSD 6.0.
77572         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77573         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77574         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77575
77576 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77577
77578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77579
77580 2006-09-07  Jim Meyering  <jim@meyering.net>
77581
77582         Fix global typo in last change: use chmod u-w, not chmod u-x.
77583         Spotted by Paul Eggert and Bruce Korb.
77584         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77585         * modules/byteswap, modules/configmake, modules/fcntl:
77586         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77587         * modules/localcharset, modules/netinet_in, modules/poll:
77588         * modules/stdbool, modules/stdint, modules/sys_select:
77589         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77590
77591 2006-09-06  Jim Meyering  <jim@meyering.net>
77592
77593         Make generated files be read-only.
77594         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77595         Ensure that each generated file is now read-only.
77596         * modules/argz: Likewise.
77597         * modules/arpa_inet: Likewise.
77598         * modules/byteswap: Likewise.
77599         * modules/configmake: Likewise.
77600         * modules/fcntl: Likewise.
77601         * modules/fnmatch: Likewise.
77602         * modules/getopt: Likewise.
77603         * modules/glob: Likewise.
77604         * modules/inttypes: Likewise.
77605         * modules/netinet_in: Likewise.
77606         * modules/poll: Likewise.
77607         * modules/stdbool: Likewise.
77608         * modules/stdint: Likewise.
77609         * modules/sys_select: Likewise.
77610         * modules/sys_socket: Likewise.
77611         * modules/sys_stat: Likewise.
77612         * modules/sysexits: Likewise.
77613         * modules/localcharset: Same as above, but continue using temporary
77614         file named "t-$@" (why different?) rather than the "$@-t" used
77615         everywhere else.
77616
77617         * modules/sysexits (Makefile.am): Replace literal occurrences
77618         of "sysexit.h" more readable, and more consistent, "$@".
77619
77620 2006-09-06  Bruno Haible  <bruno@clisp.org>
77621
77622         * modules/striconv: New file.
77623         * modules/xstriconv: New file.
77624         * MODULES.html.sh (Internationalization functions): Add striconv,
77625         xstriconv.
77626
77627 2006-09-06  Bruno Haible  <bruno@clisp.org>
77628
77629         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77630         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77631         not using libtool correctly.
77632
77633 2006-09-06  Bruno Haible  <bruno@clisp.org>
77634
77635         * lib/striconv.h: New file.
77636         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77637         iconvstring.c.
77638         * lib/xstriconv.h: New file.
77639         * lib/xstriconv.c: New file.
77640
77641 2006-09-06  Bruno Haible  <bruno@clisp.org>
77642
77643         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77644         lib_..._LDFLAGS.
77645
77646 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77647
77648         * lib/argz_.h: Sync from Libtool.
77649
77650         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77651                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77652
77653         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77654
77655 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77656
77657         * modules/trim: New file.
77658
77659 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77660
77661         * lib/trim.h: New file.
77662         * lib/trim.c: New file.
77663
77664 2006-09-05  Bruno Haible  <bruno@clisp.org>
77665
77666         * MODULES.html.sh (String handling): Add trim.
77667
77668 2006-09-04  Karl Berry  <karl@gnu.org>
77669
77670         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77671         until next release.
77672
77673 2006-09-03  Bruno Haible  <bruno@clisp.org>
77674
77675         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77676         correctly.
77677
77678 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77681         not gl_GETLOADAVG.  Omit unneeded semicolons.
77682         Problems reported by Ralf Wildenhues in
77683         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77684         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77685         at the end, which is the usual gnulib style.
77686
77687         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77688         of doing all the work ourselves.
77689         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77690         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77691
77692 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77695         Problem reported by Ralf Wildenhues in
77696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77697
77698         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77699         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77700
77701 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77704         yesterday's patch by changing test -n to test -z.
77705
77706 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77709         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77710         the former is now obsolescent.
77711
77712         * modules/chdir-long (Depends-on): Add fcntl.
77713
77714 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77717         obsolescent, and programs should use gnulib instead.
77718         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77719         but with prefixes changed.
77720
77721 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77722
77723         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77724         or stdbool.h, because they might not exist while configuring.
77725
77726         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77727         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77728         does that for us.
77729         (O_DIRECTORY): Remove.
77730
77731 2006-08-31  Eric Blake  <ebb9@byu.net>
77732
77733         * gnulib-tool: Don't let emacs change spaces to TAB.
77734
77735 2006-08-31  Bruno Haible  <bruno@clisp.org>
77736
77737         * gnulib-tool: When calling func_import more than once, do it in a
77738         subshell.
77739         Reported by Eric Blake <ebb9@byu.net>.
77740
77741 2006-08-31  Bruno Haible  <bruno@clisp.org>
77742
77743         * gnulib-tool (nl): Remove variable.
77744         (sed_transform_lib_file): Use more robust test for config-h module.
77745         (func_import): Fix typo in 2006-08-25 patch.
77746
77747 2006-08-31  Bruno Haible  <bruno@clisp.org>
77748
77749         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77750         specified, augment Makefile.am variables instead of assigning them.
77751
77752 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         Work around a bug in both the Linux and SunOS 64-bit kernels:
77755         nanosleep mishandles sleeps for longer than 2**31 seconds.
77756         Problem reported by Frank v Waveren in
77757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77759         Check for nanosleep bug.
77760         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77761
77762 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         Work around a bug in both the Linux and SunOS 64-bit kernels:
77765         nanosleep mishandles sleeps for longer than 2**31 seconds.
77766         Problem reported by Frank v Waveren in
77767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77768         * lib/nanosleep.c (BILLION): New constant.
77769         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77770         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77771         implementation.
77772
77773 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * modules/nanosleep (Depends-on): Add gettime.
77776
77777 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77778         and Simon Josefsson  <jas@extundo.com>
77779         and Oskar Liljeblad  <oskar@osk.mine.nu>
77780
77781         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77782         * gnulib-tool (func_import): New license type 'unmodifiable license
77783         text'.
77784         * modules/fdl: Use it.  Longer description.
77785         * module/gpl, module/lgpl: New files.
77786
77787 2006-08-30  Jim Meyering  <jim@meyering.net>
77788
77789         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77790         shadowing the parameter.
77791
77792 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77793
77794         Sync from Libtool:
77795
77796         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77797
77798         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77799         sharing with gnulib.  Report by Eric Blake.
77800
77801 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77802
77803         * modules/isapipe: New file.
77804         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77805
77806 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * modules/configmake (Makefile.am): Add a comment, and omit
77809         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77810         by Bruno Haible.
77811
77812 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * m4/isapipe.m4: New file.
77815
77816 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * lib/isapipe.c, lib/isapipe.h: New files.
77819
77820 2006-08-29  Jim Meyering  <jim@meyering.net>
77821
77822         * modules/configmake (Makefile.am): Make configmake.h depend on
77823         Makefile.  Otherwise, a stale configmake.h could hang around.
77824
77825 2006-08-29  Eric Blake  <ebb9@byu.net>
77826
77827         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77828         resolution of upstream bug 3044.
77829
77830 2006-08-29  Bruno Haible  <bruno@clisp.org>
77831
77832         * modules/localcharset (Depends-on): Add configmake.
77833         (Makefile.am): Remove setting of LIBDIR through DEFS.
77834
77835 2006-08-29  Bruno Haible  <bruno@clisp.org>
77836
77837         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77838         defined.
77839
77840 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * modules/fcntl: New file.
77843         * modules/chdir-safer (Depends-on): Add fcntl.
77844         * modules/fts: Likewise.
77845         * modules/mkdir-p: Likewise.
77846
77847         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77848         This undoes the most recent change, since we're now addressing the
77849         problem in a different way.
77850
77851         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77852         into output, since the output might be called Makefile.am even
77853         if $makefile_name is something different.
77854         (func_import): Use $makefile_am rather than
77855         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77856         empty.
77857
77858         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77859
77860 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77863         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77864         recent change to stdint.m4, since we're now addressing the problem in a
77865         different way.
77866
77867 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * m4/fcntl_h.m4: New file.
77870
77871 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * lib/fcntl_.h: New file.
77874         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77875         the fcntl module.
77876         * lib/dirchownmod.c: Likewise.
77877         * lib/fts.c: Likewise.
77878
77879         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77880         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77881         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77882         just before including <inttypes.h>, to avoid circular inclusion.
77883
77884 2006-08-28  Jim Meyering  <jim@meyering.net>
77885
77886         * doc/visibility.texi: Actually read and correct the grammar of the
77887         sentence affected by yesterday's change.
77888
77889 2006-08-28  Eric Blake  <ebb9@byu.net>
77890
77891         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77892         needs wrapper.
77893
77894 2006-08-28  Eric Blake  <ebb9@byu.net>
77895
77896         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77897
77898 2006-08-28  Eric Blake  <ebb9@byu.net>
77899
77900         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77901
77902 2006-08-28  Bruno Haible  <bruno@clisp.org>
77903
77904         * modules/c-strstr: New file, from GNU gettext.
77905         * MODULES.html.sh (String handling): Add c-strstr.
77906
77907 2006-08-28  Bruno Haible  <bruno@clisp.org>
77908
77909         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77910         macros.
77911         Reported by Eric Blake.
77912
77913 2006-08-28  Bruno Haible  <bruno@clisp.org>
77914
77915         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77916         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77917         * lib/vasprintf.c: Include errno.h, limits.h.
77918         (EOVERFLOW): New fallback definition.
77919         (vasprintf): Test here whether the string length is > INT_MAX.
77920         * lib/vsnprintf.c: Include errno.h, limits.h.
77921         (EOVERFLOW): New fallback definition.
77922         (vsnprintf): Fix bug when generated string was too long for the buffer.
77923         Test here whether the string length is > INT_MAX.
77924
77925 2006-08-28  Bruno Haible  <bruno@clisp.org>
77926
77927         * lib/inttypes_.h (SCNX*): Remove definitions.
77928         Reported by Eric Blake.
77929
77930 2006-08-28  Bruno Haible  <bruno@clisp.org>
77931
77932         * lib/c-strstr.h: New file, from GNU gettext.
77933         * lib/c-strstr.c: New file, from GNU gettext.
77934
77935 2006-08-28  Bruno Haible  <bruno@clisp.org>
77936
77937         * gnulib-tool: Reorder some statements.
77938
77939 2006-08-28  Bruno Haible  <bruno@clisp.org>
77940
77941         * gnulib-tool: New option --makefile-name.
77942         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77943         $makefile_name.
77944         (func_import): Write $makefile_name to the cache file, and read it from
77945         there unless explicitly specified. Use $makefile_name as file name
77946         instead of Makefile.am. Adjust the recommendations accordingly.
77947
77948 2006-08-28  Bruno Haible  <bruno@clisp.org>
77949
77950         * gnulib-tool (func_verify_module): Check against misapplying patch.
77951
77952 2006-08-28  Bruno Haible  <bruno@clisp.org>
77953
77954         * gnulib-tool (func_relativize, func_relconcat): New functions.
77955         Give an error if --local-dir is given with --update.
77956         Remove trailing slashes from $local_gnulib_dir.
77957         (func_import): Store the relativized $local_gnulib_dir in
77958         gnulib-cache.m4, and read it from there if not specified explicitly.
77959
77960 2006-08-28  Bruno Haible  <bruno@clisp.org>
77961
77962         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77963         is the current directory. Respect also $local_gnulib_dir.
77964
77965 2006-08-28  Bruno Haible  <bruno@clisp.org>
77966             Simon Josefsson  <jas@extundo.com>
77967
77968         BeOS portability.
77969         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77970
77971 2006-08-27  Jim Meyering  <jim@meyering.net>
77972
77973         * doc/visibility.texi: Remove duplicate word: "pointer".
77974
77975 2006-08-26  Bruno Haible  <bruno@clisp.org>
77976
77977         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77978         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77979         (Makefile.am): Create inttypes.h from inttypes_.h.
77980         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77981
77982         * modules/imaxabs: New file.
77983
77984         * modules/imaxdiv: New file.
77985
77986 2006-08-26  Bruno Haible  <bruno@clisp.org>
77987
77988         * m4/inttypes.m4: New file.
77989         * m4/_inttypes_h.m4: Remove file.
77990         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77991         PRI_MACROS_BROKEN.
77992         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77993
77994         * m4/imaxabs.m4: New file.
77995
77996         * m4/imaxdiv.m4: New file.
77997
77998 2006-08-26  Bruno Haible  <bruno@clisp.org>
77999
78000         * lib/inttypes_.h: New file.
78001         * lib/inttypes.h: Remove file.
78002         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78003
78004         * lib/imaxabs.c: New file.
78005
78006         * lib/imaxdiv.c: New file.
78007
78008 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         New config-h module, so that "make" output needn't be cluttered
78011         by -DHAVE_CONFIG_H.
78012         * MODULES.html.sh (Support for building libraries and executables):
78013         Add config-h.
78014         * modules/config-h: New file.
78015         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78016         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78017         the config-h module is used.
78018
78019         New configmake module, so that "make" output needn't be cluttered
78020         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78021         * MODULES.html.sh (Support for building libraries and executables):
78022         Add configmake.
78023         * modules/configmake: New file.
78024
78025 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * m4/config-h.m4: New file.
78028
78029 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         * config/srclist.txt: Add elisp-comp.
78032
78033 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * MODULES.html.sh (Support for building libraries and executables):
78036         Add elisp-comp.
78037         * build-aux/elisp-comp: New file.
78038         * modules/elisp-comp: New file.
78039
78040 2006-08-24  Bruno Haible  <bruno@clisp.org>
78041
78042         * gnulib-tool (func_create_testdir): Use non-default values of
78043         sourcebase and m4base.
78044
78045 2006-08-24  Bruno Haible  <bruno@clisp.org>
78046
78047         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78048         HTML structure.
78049
78050 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * modules/openat (Depends-on): Add lchown.
78053
78054 2006-08-23  Bruno Haible  <bruno@clisp.org>
78055
78056         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78057         of gl_LOCK_EARLY instead of gl_LOCK.
78058
78059 2006-08-23  Bruno Haible  <bruno@clisp.org>
78060
78061         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78062         on OSF/1 to no.
78063         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78064
78065 2006-08-23  Bruno Haible  <bruno@clisp.org>
78066
78067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78068         as unusable.
78069
78070         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78071         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78072         (gl_LOCK): New macro.
78073
78074 2006-08-22  Simon Josefsson  <jas@extundo.com>
78075
78076         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78077         to md5 module.
78078
78079 2006-08-22  Simon Josefsson  <jas@extundo.com>
78080
78081         * MODULES.html.sh: Add "Support for maintaining and release
78082         projects".
78083
78084         * build-aux/gnupload: New file, from coreutils.
78085
78086 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         Avoid the need for AC_LIBSOURCES in m4 macros.
78089         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78090         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78091         * modules/check-version (EXTRA_DIST): Add check-version.h.
78092         * modules/crc (EXTRA_DIST): Add crc.h.
78093         * modules/des (EXTRA_DIST): Add des.h.
78094         * modules/gc (EXTRA_DIST): Add gc.h.
78095         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78096         * modules/getline (EXTRA_DIST): Add getline.h.
78097         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78098         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78099         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78100         * modules/md2 (EXTRA_DIST): Add md2.h.
78101         * modules/md4 (EXTRA_DIST): Add md4.h.
78102         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78103         * modules/read-file (EXTRA_DIST): Add read-file.h.
78104         * modules/readline (EXTRA_DIST): Add readline.h.
78105         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78106         rijndael-api-fst.h.
78107
78108 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * m4/rijndael.m4 (gl_ARCFOUR):
78111         * m4/arctwo.m4 (gl_ARCTWO):
78112         * m4/check-version.m4 (gl_CHECK_VERSION):
78113         * m4/crc.m4 (gl_CRC):
78114         * m4/des.m4 (gl_DES):
78115         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78116         * m4/gc.m4 (gl_GC):
78117         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78118         * m4/getline.m4 (gl_FUNC_GETLINE):
78119         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78120         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78121         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78122         * m4/md2.m4 (gl_MD2):
78123         * m4/md4.m4 (gl_MD4):
78124         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78125         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78126         * m4/readline.m4 (gl_FUNC_READLINE):
78127         * m4/rijndael.m4 (gl_RIJNDAEL):
78128         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78129         to get the necessary .h files and whatnot.
78130
78131 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78134         gnulib rather than the other way around.
78135         * config/srclistvars.sh (COREUTILS): Remove.
78136
78137 2006-08-22  Jim Meyering  <jim@meyering.net>
78138
78139         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78140
78141         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78142
78143 2006-08-22  Eric Blake  <ebb9@byu.net>
78144
78145         * modules/regexprops-generic: New file.
78146         * MODULES.html.sh (Support for building documentation): List it.
78147
78148 2006-08-22  Eric Blake  <ebb9@byu.net>
78149
78150         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78151         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78153         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78154
78155 2006-08-22  Bruno Haible  <bruno@clisp.org>
78156
78157         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78158         and lib_LTLIBRARIES like the other lib_* variables.
78159
78160 2006-08-22  Bruno Haible  <bruno@clisp.org>
78161
78162         * build-aux/x-to-1.in: New file, from GNU gettext.
78163
78164 2006-08-22  Bruno Haible  <bruno@clisp.org>
78165
78166         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78167         <utmpx.h> exists.
78168
78169 2006-08-22  Bruno Haible  <bruno@clisp.org>
78170
78171         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78172         <utmpx.h> exists.
78173
78174 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78175
78176         BeOS portability.
78177         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78178         exist.
78179         Problem reported by Bruno Haible.
78180
78181 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         Avoid the need for AC_LIBSOURCES in m4 macros.
78184         * modules/acl (EXTRA_DIST): Add acl.h.
78185         * modules/argmatch (Files): Add m4/argmatch.m4.
78186         (configure.ac): Add gl_ARGMATCH.
78187         (EXTRA_DIST): Renamed from lib_SOURCES, for
78188         consistency with the other modules.  Remove argmatch.c.
78189         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78190         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78191         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78192         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78193         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78194         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78195         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78196         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78197         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78198         * modules/closeout (EXTRA_DIST): Add closeout.h.
78199         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78200         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78201         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78202         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78203         dirname.h; remove basename.c and stripslash.c.
78204         * modules/exclude (EXTRA_DIST): Add exclude.h.
78205         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78206         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78207         * modules/file-type (EXTRA_DIST): Add file-type.h.
78208         * modules/filemode (EXTRA_DIST): Add filemode.h.
78209         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78210         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78211         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78212         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78213         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78214         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78215         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78216         * modules/getdate (EXTRA_DIST): Add getdate.c.
78217         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78218         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78219         * modules/getpass (EXTRA_DIST): Add getpass.h.
78220         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78221         * modules/group-member (EXTRA_DIST): Add group-member.h.
78222         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78223         * modules/hash (EXTRA_DIST): Add hash.h.
78224         * modules/human (EXTRA_DIST): Add human.h.
78225         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78226         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78227         * modules/lchown (EXTRA_DIST): Add lchown.h.
78228         * modules/long-options (EXTRA_DIST): Add long-options.h.
78229         * modules/lstat (EXTRA_DIST): Add lstat.h.
78230         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78231         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78232         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78233         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78234         * modules/memxor (EXTRA_DIST): Add memxor.h.
78235         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78236         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78237         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78238         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78239         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78240         * modules/physmem (EXTRA_DIST): Add physmem.h.
78241         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78242         * modules/posixver (EXTRA_DIST): Add posixver.h.
78243         * modules/quote (EXTRA_DIST): Add quote.h.
78244         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78245         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78246         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78247         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78248         regex_internal.h regexec.c.
78249         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78250         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78251         * modules/same (EXTRA_DIST): Add same.h.
78252         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78253         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78254         * modules/savedir (EXTRA_DIST): Add savedir.h.
78255         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78256         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78257         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78258         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78259         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78260         * modules/strdup (EXTRA_DIST): Add strdup.h.
78261         * modules/strftime (EXTRA_DIST): Add strftime.h.
78262         * modules/strndup (EXTRA_DIST): Add strndup.h.
78263         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78264         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78265         * modules/time_r (EXTRA_DIST): Add time_r.h.
78266         * modules/timespec (EXTRA_DIST): Add timespec.h.
78267         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78268         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78269         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78270         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78271         * modules/userspec (EXTRA_DIST): Add userspec.h.
78272         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78273         * modules/utimens (EXTRA_DIST): Add utimens.h.
78274         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78275         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78276         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78277         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78278         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78279         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78280         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78281         * modules/yesno (EXTRA_DIST): Add yesno.h.
78282
78283 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78286
78287         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78288         * m4/dev-ino.m4, same-inode.m4: Remove.
78289
78290         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78291         * m4/acl.m4 (AC_FUNC_ACL):
78292         * m4/backupfile.m4 (gl_BACKUPFILE):
78293         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78294         * m4/canon-host.m4 (gl_CANON_HOST):
78295         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78296         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78297         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78298         * m4/cloexec.m4 (gl_CLOEXEC):
78299         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78300         * m4/closeout.m4 (gl_CLOSEOUT):
78301         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78302         * m4/dirname.m4 (gl_DIRNAME):
78303         * m4/exclude.m4 (gl_EXCLUDE):
78304         * m4/exitfail.m4 (gl_EXITFAIL):
78305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78306         * m4/file-type.m4 (gl_FILE_TYPE):
78307         * m4/filemode.m4 (gl_FILEMODE):
78308         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78309         * m4/fpending.m4 (gl_FUNC_FPENDING):
78310         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78311         * m4/fts.m4 (gl_FUNC_FTS):
78312         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78313         * m4/getdate.m4 (gl_GETDATE):
78314         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78315         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78316         * m4/getpass.m4 (gl_FUNC_GETPASS):
78317         * m4/gettime.m4 (gl_GETTIME):
78318         * m4/getugroups.m4 (gl_GETUGROUPS):
78319         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78320         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78321         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78322         * m4/hash.m4 (gl_HASH):
78323         * m4/idcache.m4 (gl_IDCACHE):
78324         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78325         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78326         * m4/long-options.m4 (gl_LONG_OPTIONS):
78327         * m4/lstat.m4 (gl_FUNC_LSTAT):
78328         * m4/md5.m4 (gl_MD5):
78329         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78330         * m4/memcoll.m4 (gl_MEMCOLL):
78331         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78333         * m4/memxor.m4 (gl_MEMXOR):
78334         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78335         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78336         * m4/modechange.m4 (gl_MODECHANGE):
78337         * m4/mountlist.m4 (gl_MOUNTLIST):
78338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78339         * m4/openat.m4 (gl_FUNC_OPENAT):
78340         * m4/pathmax.m4 (gl_PATHMAX):
78341         * m4/physmem.m4 (gl_PHYSMEM):
78342         * m4/posixtm.m4 (gl_POSIXTM):
78343         * m4/posixver.m4 (gl_POSIXVER):
78344         * m4/quote.m4 (gl_QUOTE):
78345         * m4/quotearg.m4 (gl_QUOTEARG):
78346         * m4/readtokens.m4 (gl_READTOKENS):
78347         * m4/readutmp.m4 (gl_READUTMP):
78348         * m4/regex.m4 (gl_REGEX):
78349         * m4/safe-read.m4 (gl_SAFE_READ):
78350         * m4/safe-write.m4 (gl_SAFE_WRITE):
78351         * m4/same.m4 (gl_SAME):
78352         * m4/save-cwd.m4 (gl_SAVE_CWD):
78353         * m4/savedir.m4 (gl_SAVEDIR):
78354         * m4/settime.m4 (gl_SETTIME):
78355         * m4/sha1.m4 (gl_SHA1):
78356         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78357         * m4/stat-macros.m4 (gl_STAT_MACROS):
78358         * m4/stat-time.m4 (gl_STAT_TIME):
78359         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78360         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78361         * m4/strdup.m4 (gl_FUNC_STRDUP):
78362         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78363         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78364         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78365         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78366         * m4/time_r.m4 (gl_TIME_R):
78367         * m4/timespec.m4 (gl_TIMESPEC):
78368         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78369         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78370         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78371         * m4/userspec.m4 (gl_USERSPEC):
78372         * m4/utimecmp.m4 (gl_UTIMECMP):
78373         * m4/utimens.m4 (gl_UTIMENS):
78374         * m4/xalloc.m4 (gl_XALLOC):
78375         * m4/xgetcwd.m4 (gl_XGETCWD):
78376         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78377         * m4/xreadlink.m4 (gl_XREADLINK):
78378         * m4/xstrtod.m4 (gl_XSTRTOD):
78379         * m4/yesno.m4 (gl_YESNO):
78380         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78381         to get the necessary .h files and whatnot.
78382
78383 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78384             Bruno Haible  <bruno@clisp.org>
78385
78386         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78387         /bin/sh understanding of '!' conditional negation.
78388
78389 2006-08-21  Jim Meyering  <jim@meyering.net>
78390
78391         * modules/openat (Depends-on): Really alphabetize.
78392
78393         * modules/acl (Depends-on): Add error and quote.
78394
78395         * check-module (find_included_lib_files): Add at-func.c to the
78396         ok-to-include-more-than-once white list.
78397
78398         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78399
78400 2006-08-21  Bruno Haible  <bruno@clisp.org>
78401
78402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78403         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78404         Reported by Martin Lambers <marlam@marlam.de>.
78405
78406 2006-08-21  Bruno Haible  <bruno@clisp.org>
78407
78408         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78409         specify an installation location, don't emit a noinst_LIBRARIES or
78410         noinst_LTLIBRARIES assignment.
78411
78412 2006-08-21  Bruno Haible  <bruno@clisp.org>
78413
78414         BeOS portability.
78415         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78416         BeOS has mbrtowc() but no <wctype.h>.
78417
78418 2006-08-21  Bruno Haible  <bruno@clisp.org>
78419
78420         BeOS portability.
78421         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78422         exist.
78423
78424 2006-08-21  Bruno Haible  <bruno@clisp.org>
78425
78426         BeOS portability.
78427         * lib/mbchar.h: Include <wctype.h> only if it exists.
78428
78429 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         Remove files that are no longer needed by their respective modules.
78432         * m4/obstack.m4: Remove.
78433         * m4/strerror_r.m4: Remove.
78434         * m4/uint32_t.m4: Remove.
78435         * m4/uintptr_t.m4: Remove.
78436         * m4/ullong_max.m4: Remove.
78437         * m4/xstrtoimax.m4: Remove.
78438         * m4/xstrtoumax.m4: Remove.
78439
78440         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78441         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78442         dependencies now capture this.
78443
78444         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78445         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78446         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78447         * m4/human.m4 (gl_HUMAN): Likewise.
78448         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78449         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78450
78451         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78452
78453         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78454         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78455         stdint.
78456         * m4/human.m4 (gl_HUMAN): Likewise.
78457         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78458         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78459         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78460         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78461         * m4/xstrtol (gl_XSTRTOL): Likewise.
78462
78463         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78464         AC_TYPE_LONG_LONG_INT.
78465         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78466         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78467         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78468         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78469
78470         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78471         on stdbool.
78472
78473         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78474         (gl_PREREQ_XSTRTOUL): Remove.
78475
78476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78477
78478         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78479         mode.
78480
78481 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         Add and change modules to make it easier for coreutils to use
78484         gnulib-tool.
78485         * modules/backupfile (Files): Remove m4/d-ino.m4.
78486         (Depends-on): Add d-ino.
78487         * modules/cycle-check (Depends-on): Add stdint.
78488         (lib_SOURCES): Add cycle-check.h.
78489         * modules/d-ino: New module.
78490         * modules/d-type: New module.
78491         * modules/error (Files): Remove m4/strerror_r.m4.
78492         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78493         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78494         m4/inttypes_h.m4, m4/uintmax_t.m4.
78495         (Depends-on): Add stdint.
78496         (lib_SOURCES): Add fsusage.h.
78497         * modules/getcwd (Files): Remove d-ino.m4.
78498         (Depends-on): Add d-ino.
78499         * modules/getndelim2 (Depends-on): Add stdint.
78500         * modules/glob (Files): Remove m4/d-type.m4.
78501         (Depends-on): Add d-type.
78502         * modules/host-os: New module.
78503         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78504         m4/inttypes_h.m4, m4/uintmax_t.m4.
78505         * Depends-on: Add stdint.
78506         (lib_SOURCES): Add human.h.
78507         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78508         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78509         m4/uintmax_t.m4, m4/ulonglong.m4.
78510         (Depends-on): Add stdint.
78511         (EXTRA_DIST): Add inttostr.h.
78512         * modules/lchmod: New module.
78513         * modules/link-follow: New module.
78514         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78515         (Depends-on): Add lchmod.
78516         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78517         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78518         (Depends-on): Add stdint.
78519         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78520         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78521         (Depends-on): Add stdint.
78522         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78523         * modules/perl: New module.
78524         * modules/regex (Depends-on): Add stdint.
78525         * modules/rmdir-errno: New module.
78526         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78527         m4/intmax_t.m4.
78528         (Depends-on): Add stdint.
78529         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78530         m4/uintmax_t.m4.
78531         (Depends-on): Add stdint.
78532         * modules/unlink-busy: New module.
78533         * modules/utimecmp (Depends-on): Add stdint.
78534         * modules/uptime: New module.
78535         * modules/winsz-ioctl: New module.
78536         * modules/winsz-termios: New module.
78537         * modules/xnanosleep (Depends-on): Add nanosleep.
78538         * modules/ullong_max: Remove.
78539         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78540         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78541         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78542         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78543         (Depends-on): Add inttypes.
78544         (lib_SOURCES): Add xstrtol.h.
78545         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78546         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78547         * MODULES.html.sh: Move 'assert' into the assert section.
78548         Move 'dummy' into the linking section.
78549         Remove ullong_max.
78550         Add section for compatibility checks for POSIX:2001 functions,
78551         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78552         winsz-ioctl, and winsz-termios into it.
78553         Add lchmod.
78554         Add top-level Misc section and put host-os, perl, and uptime
78555         into it.
78556
78557 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78560         now assume the stdint module.  Do not include inttypes.h.
78561         * lib/fsusage.h: Likewise.
78562         * lib/getndelim2.c: Likewise.
78563         * lib/human.h: Likewise.
78564         * lib/inttostr.h: Likewise.
78565         * lib/obstack.c: Likewise.
78566         * lib/regex_internal.h: Likewise.
78567         * lib/tempname.c: Likewise.
78568         * lib/utimecmp.c: Likewise.
78569         * lib/xstrtol.h: Likewise.
78570
78571         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78572
78573         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78574         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78575         * lib/xtime.h: Likewise.
78576
78577 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78578
78579         * modules/openat (Files): Add lib/fchmodat.c.
78580         Fixes problem reported by Jay Youngman.
78581
78582 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78585         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78586
78587 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78588             Bruno Haible  <bruno@clisp.org>
78589
78590         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78591         and is a script that invokes bison. Tighten the code. Add comments.
78592
78593 2006-08-18  Jim Meyering  <jim@meyering.net>
78594
78595         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78596         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78597         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78598         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78599
78600 2006-08-18  Bruno Haible  <bruno@clisp.org>
78601
78602         * modules/bison-i18n: New file.
78603         * MODULES.html.sh (Internationalization functions): Add it.
78604
78605 2006-08-18  Bruno Haible  <bruno@clisp.org>
78606
78607         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78608         sys/statvfs.h. When getmntinfo was found, check its declaration and
78609         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78610
78611 2006-08-18  Bruno Haible  <bruno@clisp.org>
78612
78613         * m4/bison-i18n.m4: New file, from bison.
78614
78615 2006-08-18  Bruno Haible  <bruno@clisp.org>
78616
78617         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78618         (ME_DUMMY): Treat "kernfs" as a dummy.
78619         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78620
78621 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         Update from coreutils.
78624
78625         2006-08-15  Jim Meyering  <jim@meyering.net>
78626
78627         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78628
78629         2006-01-17  Jim Meyering  <jim@meyering.net>
78630
78631         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78632
78633         2006-01-11  Jim Meyering  <jim@meyering.net>
78634
78635         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78636         Check for the lchmod function.
78637
78638 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         Update from coreutils.
78641
78642         * lib/__fpending.h: Add copyright notice.
78643         * lib/fprintftime.h: Likewise.
78644         * lib/savedir.c: Use (C) in copyright notice.
78645         * lib/savedir.h: Likewise.
78646
78647         2006-08-15  Jim Meyering  <jim@meyering.net>
78648
78649         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78650         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78651         in support of the EXPECTED_ERRNO macro.
78652         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78653         definitions.  Instead, define the appropriate symbols and include
78654         "at-func.c".
78655         * lib/mkdirat.c (mkdirat): Likewise.
78656         * lib/fchmodat.c (fchmodat): Likewise.
78657         (ENOSYS): Remove definition.
78658         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78659         it.  Don't include "unistd--.h" -- it wasn't ever used.
78660
78661         2006-01-17  Jim Meyering  <jim@meyering.net>
78662
78663         Rewrite fts.c not to change the current working directory,
78664         by using openat, fstatat, fdopendir, etc..
78665
78666         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78667         (HAVE_OPENAT_SUPPORT): Define.
78668         [_LIBC] (fchdir): Don't undef or define; no longer used.
78669         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78670         Now, this `function' always succeeds, and consumes its file descriptor
78671         parameter -- so callers must not close such FDs.  Update callers.
78672         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78673         (diropen): Add parameter, SP.  Adjust all callers.
78674         Implement using diropen_fd, rather than open.
78675         (fts_open): Initialize new member, fts_cwd_fd.
78676         Remove fts_rft-setting code.
78677         (fts_close): Close fts_cwd_fd, if necessary.
78678         (__opendir2): Define in terms of opendir or opendirat,
78679         depending on whether the FST_NOCHDIR flag is set.
78680         (fts_build): Since fts_safe_changedir consumes its FD, and since
78681         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78682         and close the dup'd file descriptor upon failure.
78683         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78684         (fts_safe_changedir): Tweak semantics to reflect that this function
78685         now calls cwd_advance_fd and hence consumes its FD argument.
78686         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78687         [struct FTS] (fts_rft): Remove now-unused member.
78688         [struct FTS] (fts_cycle.state): Improve comment.
78689
78690         * lib/openat.c (openat_needs_fchdir): New function.
78691         * lib/openat.h (openat_needs_fchdir): Declare it.
78692
78693 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78694
78695         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78696         Problem and fix reported by Pádraig Brady in
78697         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78698
78699 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78702
78703 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * lib/memcoll.c (memcoll): Optimize for the common case where the
78706         arguments are bytewise equal.
78707
78708 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * doc/regexprops-generic.texi: Add a copyright notice.
78711
78712 2006-08-15  Bruno Haible  <bruno@clisp.org>
78713
78714         * modules/tmpdir (License): Change to LGPL.
78715
78716 2006-08-15  Bruno Haible  <bruno@clisp.org>
78717
78718         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78719         module.
78720
78721 2006-08-14  Simon Josefsson  <jas@extundo.com>
78722
78723         * config/srclist.txt: Add gnupload.
78724
78725 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         Change copyright notice from LGPL 2 to GPL 2, since that's the
78728         standard form used in the gnulib repository.
78729         * tests/test-lock.c: Likewise.
78730         * tests/test-stdint.c: Likewise.
78731         * tests/test-tls.c: Likewise.
78732
78733         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78734         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78735         Add copyright notice.
78736
78737         * check-module: Add copyright notice.  Output a copyright
78738         notice if "--version" is specified.
78739         * modules/COPYING: New file.
78740         * tests/test-getaddrinfo.c: Add copyright notice.
78741         * tests/test-verify.c: Likewise.
78742
78743 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         Change copyright notice from LGPL 2 to GPL 2, since that's the
78746         standard form used in the gnulib repository.
78747         * lib/lock.c: LGPL -> GPL.
78748         * lib/lock.h: Likewise.
78749         * lib/strnlen1.c: Likewise.
78750         * lib/strnlen1.h: Likewise.
78751         * lib/tls.c: Likewise.
78752         * lib/tls.h: Likewise.
78753         * lib/tmpdir.c: Likewise.
78754
78755         * lib/TODO: Remove; this belongs only in coreutils.
78756
78757 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         Add copyright notices to long-enough files that lack them, since
78760         otherwise the files aren't clearly free.  Use the same notice that
78761         getdate.texi already uses.
78762         * doc/alloca-opt.texi: Add copyright notice.
78763         * doc/alloca.texi: Likewise.
78764         * doc/ctime.texi: Likewise.
78765         * doc/functions.texi: Likewise.
78766         * doc/gcd.texi: Likewise.
78767         * doc/gnulib-tool.texi: Likewise.
78768         * doc/inet_ntoa.texi: Likewise.
78769         * doc/visibility.texi: Likewise.
78770
78771         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78772         * doc/quote.texi: Add copyright notice.
78773
78774         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78775         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78776         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78777         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78778         is now obsolete, and give a pointer to the Sun list.
78779         Add copyright notice.
78780
78781 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78782
78783         * config/srclistvars.sh: Add copyright notice.
78784
78785 2006-08-14  Eric Blake  <ebb9@byu.net>
78786
78787         Import the following change from libc:
78788
78789         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78790
78791         Upstream bug 2997.
78792         * lib/misc/error.c: Add space between program name and message if file
78793         name is missing.
78794
78795 2006-08-12  Karl Berry  <karl@gnu.org>
78796
78797         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78798         remove, these originate in gnulib now.
78799
78800 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78801
78802         * doc/Makefile (standards.info standards.html standards.dvi):
78803         Also depend on make-stds.texi.
78804
78805 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78808         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78809
78810         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78811         in wchar_t.  Problem reported by Eric Blake.
78812
78813         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78814         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78815         Also, help the compiler to keep LEN in a register.
78816
78817 2006-08-11  Eric Blake  <ebb9@byu.net>
78818
78819         * users.txt: Sort.  Add tar.
78820
78821 2006-08-11  Bruno Haible  <bruno@clisp.org>
78822
78823         * users.txt: New file.
78824
78825 2006-08-11  Bruno Haible  <bruno@clisp.org>
78826
78827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78828         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78829
78830 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * modules/snprintf (Depends-on): Remove minmax.
78833         (Maintainer): Add self and Bruno.
78834
78835 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78838         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78839         (EOVERFLOW): Define if the system does not.
78840         Do not include "minmax.h"; it wasn't used.
78841         (snprintf): Don't assume size_t promotes to an unsigned type.
78842         Fix bug when generated string was too long for the buffer: the
78843         buffer's contents are supposed to be the initial prefix of the
78844         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78845         exceeds INT_MAX; do the check ourselves.
78846
78847         Import the following changes from libc:
78848
78849         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78850
78851         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78852         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78853         set wc to the byte which couldn't be converted.
78854         (re_string_reconstruct): Don't clear valid_raw_len before calling
78855         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78856         tip_context using re_string_context_at.
78857
78858         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78859
78860         * lib/posix/regex.h: g++ still cannot handled [restrict].
78861
78862         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78863
78864         * lib/posix/regex.h: Remove special handling for VMS.
78865
78866 2006-08-10  Jim Meyering  <jim@meyering.net>
78867
78868         * modules/same-inode: New module.
78869         * modules/dev-ino: New module.
78870         * modules/cycle-check: Depend on these modules, rather than simply
78871         including their .h files.
78872         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78873         required via m4/cycle-check.m4.
78874         * modules/same: Depend on new same-inode module, rather than
78875         including same-inode.h.
78876         * modules/chdir-safer: New file.
78877
78878         * modules/chown (Depends-on): Add stat-macros.
78879
78880 2006-08-10  Jim Meyering  <jim@meyering.net>
78881
78882         * m4/cycle-check.m4: New file.
78883         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78884         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78885
78886 2006-08-10  Eric Blake  <ebb9@byu.net>
78887
78888         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78889         in from original proposal.
78890
78891 2006-08-10  Eric Blake  <ebb9@byu.net>
78892         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78893
78894         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78895         namespace.
78896
78897 2006-08-10  Bruno Haible  <bruno@clisp.org>
78898
78899         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78900         as well.
78901
78902 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         Sync from coreutils.
78905
78906         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78907
78908         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78909         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78910
78911 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         * modules/restrict: Remove; no longer needed now that we assume
78914         Autoconf 2.59 or later.
78915         * MODULES.html.sh: Remove 'restrict'.
78916         * modules/argp (Depends-on): Remove 'restrict'.
78917         * modules/base64 (Depends-on): Likewise.
78918         * modules/gc (Depends-on): Likewise.
78919         * modules/getaddrinfo (Depends-on): Likewise.
78920         * modules/glob (Depends-on): Likewise.
78921         * modules/inet_ntop (Depends-on): Likewise.
78922         * modules/inet_pton (Depends-on): Likewise.
78923         * modules/memxor (Depends-on): Likewise.
78924         * modules/regex (Depends-on): Likewise.
78925         * modules/strtok_r (Depends-on): Likewise.
78926         * modules/time_r (Depends-on): Likewise.
78927
78928 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78931         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78932         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78933         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78934         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78935         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78936         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78937         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78938
78939         Merge from coreutils.
78940         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78941         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78942         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78943         * m4/time_r.m4 (gl_TIME_R): Likewise.
78944
78945 2006-08-09  Karl Berry  <karl@gnu.org>
78946
78947         * config/srclist.txt: no more gettext-tools, per Bruno.
78948
78949 2006-08-08  Eric Blake  <ebb9@byu.net>
78950
78951         * modules/verror: New module.
78952         * MODULES.html.sh: Document it.
78953
78954 2006-08-08  Eric Blake  <ebb9@byu.net>
78955
78956         * lib/verror.h, lib/verror.c: New files.
78957
78958 2006-08-08  Eric Blake  <ebb9@byu.net>
78959
78960         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78961         verror_at_line output complies with GNU Coding Standards even when
78962         file is NULL.
78963
78964 2006-08-07  Bruno Haible  <bruno@clisp.org>
78965
78966         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78967         versions of AIX.
78968         Reported by Ralf Wildenhues.
78969
78970 2006-08-07  Bruno Haible  <bruno@clisp.org>
78971
78972         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78973         in an AC_DEFUN. Needed so that the autoconf snippets can use
78974         AC_REQUIRE.
78975
78976 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78977
78978         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78979         Initialize pkgdata_DATA.
78980         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78981         overriding it.
78982
78983 2006-08-06  Eric Blake  <ebb9@byu.net>
78984
78985         * lib/error.h: Fold in some upstream changes from glibc.
78986         * lib/error.c: Likewise.
78987
78988 2006-08-04  Bruno Haible  <bruno@clisp.org>
78989
78990         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78991         Make the mostlyclean-local rule depend on mostlyclean-generic.
78992         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78993
78994 2006-07-31  Bruno Haible  <bruno@clisp.org>
78995
78996         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78997         <stdlib.h>, <string.h>.
78998
78999 2006-07-30  Bruno Haible  <bruno@clisp.org>
79000
79001         * modules/readlink (License): Change to LGPL.
79002
79003 2006-07-30  Bruno Haible  <bruno@clisp.org>
79004
79005         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79006         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79007         set PKGDATADIR to point to it.
79008
79009 2006-07-30  Bruno Haible  <bruno@clisp.org>
79010
79011         * modules/csharpexec (configure.ac): Comment out macro invocation.
79012         * modules/javaexec (configure.ac): Likewise.
79013         * modules/javacomp-script (configure.ac): Likewise.
79014
79015         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79016
79017 2006-07-30  Bruno Haible  <bruno@clisp.org>
79018
79019         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79020         linked-list.
79021
79022 2006-07-30  Bruno Haible  <bruno@clisp.org>
79023
79024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79025
79026 2006-07-30  Bruno Haible  <bruno@clisp.org>
79027
79028         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79029         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79030         get removed.
79031
79032 2006-07-29  Bruno Haible  <bruno@clisp.org>
79033
79034         Make it possible for gnulib-tool to work with locally modified or
79035         augmented gnulib repositories.
79036         * gnulib-tool (func_usage): Document --local-dir option.
79037         (local_gnulib_dir): New variable.
79038         Handle --local-dir option.
79039         (func_lookup_file): New function.
79040         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79041         (func_get_description, func_get_filelist, func_get_description,
79042         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79043         func_get_automake_snippet, func_get_include_directive,
79044         func_get_license, func_get_maintainer): Use func_lookup_file.
79045         (func_import, func_create_testdir): Use func_lookup_file.
79046
79047 2006-07-29  Bruno Haible  <bruno@clisp.org>
79048
79049         * modules/setenv (Depends-on): Add unistd.
79050
79051 2006-07-29  Bruno Haible  <bruno@clisp.org>
79052
79053         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79054
79055 2006-07-29  Bruno Haible  <bruno@clisp.org>
79056
79057         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79058
79059 2006-07-29  Bruno Haible  <bruno@clisp.org>
79060
79061         * gnulib-tool (import, update): If there is no Makefile.am, look at
79062         aclocal.m4, instead of bailing out.
79063
79064 2006-07-29  Bruno Haible  <bruno@clisp.org>
79065
79066         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79067         Categorize the options by when they are useful.
79068
79069 2006-07-29  Bruno Haible  <bruno@clisp.org>
79070
79071         * gnulib-tool (func_usage): Document option --no-libtool.
79072         Handle option --no-libtool.
79073         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79074         for changed semantics of $libtool variable.
79075         (func_import): Likewise. If libtool is not used, show this through
79076         an option --no-libtool.
79077         (func_create_testdir): Update.
79078
79079 2006-07-29  Bruno Haible  <bruno@clisp.org>
79080
79081         * gnulib-tool (func_import): Extend error message about missing
79082         --doc-base.
79083
79084 2006-07-29  Bruno Haible  <bruno@clisp.org>
79085
79086         * gnulib-tool (func_import): Don't create the $docbase directory if
79087         there is no file to store there.
79088
79089 2006-07-29  Bruno Haible  <bruno@clisp.org>
79090
79091         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79092         relevant, look for configure.ac there, not in the current directory.
79093         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79094
79095 2006-07-29  Bruno Haible  <bruno@clisp.org>
79096
79097         * gnulib-tool (SORT): New variable.
79098         (func_usage): Undocument --assume-autoconf option.
79099         Remove --assume-autoconf option handling.
79100         (autoconf_minversion): Determine from the contents of configure.ac.
79101         (func_import): Remove autoconf_minversion handling.
79102         Suggested by Eric Blake.
79103
79104 2006-07-29  Bruno Haible  <bruno@clisp.org>
79105
79106         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79107
79108 2006-07-29  Bruno Haible  <bruno@clisp.org>
79109
79110         * config/srclist.txt (*setenv.[ch]): Remove rules.
79111
79112 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79113
79114         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79115
79116 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79117
79118         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79119         arpa/inet.h.
79120
79121 2006-07-28  Simon Josefsson  <jas@extundo.com>
79122
79123         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79124         * modules/inet_pton (Depends-on): Likewise.
79125
79126 2006-07-28  Simon Josefsson  <jas@extundo.com>
79127
79128         * m4/netinet_in_h.m4: New file.
79129
79130 2006-07-28  Simon Josefsson  <jas@extundo.com>
79131
79132         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79133         #include's.
79134
79135 2006-07-28  Simon Josefsson  <jas@extundo.com>
79136
79137         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79138         #include's.
79139
79140 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79143         setgid on directories only if they set these bits.
79144         * lib/modechange.h: Remove obsolete comment about masks.
79145
79146 2006-07-28  Eric Blake  <ebb9@byu.net>
79147
79148         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79149         macro expansion.
79150
79151 2006-07-28  Bruno Haible  <bruno@clisp.org>
79152
79153         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79154
79155 2006-07-28  Bruno Haible  <bruno@clisp.org>
79156
79157         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79158
79159 2006-07-28  Bruno Haible  <bruno@clisp.org>
79160
79161         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79162         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79163         Define fallbacks.
79164         Avoids link error on FreeBSD 4.x.
79165         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79166
79167         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79168         encoding.
79169         * lib/mbswidth.c (iswcntrl): Likewise.
79170
79171 2006-07-27  Bruno Haible  <bruno@clisp.org>
79172
79173         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79174         test.
79175
79176 2006-07-27  Bruno Haible  <bruno@clisp.org>
79177
79178         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79179         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79180         defined.
79181
79182 2006-07-26  Eric Blake  <ebb9@byu.net>
79183
79184         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79185
79186 2006-07-26  Eric Blake  <ebb9@byu.net>
79187
79188         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79189         like mingw that lack mkstemp.
79190         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79191         avoid compilation warning on mingw.
79192
79193 2006-07-26  Bruno Haible  <bruno@clisp.org>
79194
79195         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79196         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79197         INT_FAST*_MIN, INTPTR_MIN.
79198
79199 2006-07-25  Bruno Haible  <bruno@clisp.org>
79200
79201         * modules/version-etc (Depends-on): Add stdarg.
79202
79203 2006-07-25  Bruno Haible  <bruno@clisp.org>
79204
79205         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79206         complex commands.
79207
79208 2006-07-25  Bruno Haible  <bruno@clisp.org>
79209
79210         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79211         defined in <stdarg.h> or config.h.
79212
79213 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79216         (gl_STDIO_SAFER): Remove.
79217
79218 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79219
79220         * MODULES.html.sh (File stream based Input/Output):
79221         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79222         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79223         * modules/fopen-safer, modules/tmpfile-safer: New files.
79224         * modules/stdio-safer: Remove.
79225
79226 2006-07-24  Bruno Haible  <bruno@clisp.org>
79227
79228         * modules/tmpdir: New file.
79229         * MODULES.html.sh (File system functions): Add it.
79230
79231 2006-07-24  Bruno Haible  <bruno@clisp.org>
79232
79233         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79234         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79235
79236 2006-07-24  Bruno Haible  <bruno@clisp.org>
79237
79238         * modules/clean-temp: New file.
79239
79240 2006-07-24  Bruno Haible  <bruno@clisp.org>
79241
79242         * m4/tmpdir.m4: New file, from GNU gettext.
79243
79244 2006-07-24  Bruno Haible  <bruno@clisp.org>
79245
79246         * lib/tmpdir.h: New file, from GNU gettext.
79247         * lib/tmpdir.c: New file, from GNU gettext.
79248
79249 2006-07-24  Bruno Haible  <bruno@clisp.org>
79250
79251         * lib/clean-temp.h: New file, from GNU gettext.
79252         * lib/clean-temp.c: New file, from GNU gettext.
79253
79254 2006-07-23  Eric Blake  <ebb9@byu.net>
79255
79256         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79257         (Depends-on): Add binary-io.
79258
79259 2006-07-23  Eric Blake  <ebb9@byu.net>
79260
79261         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79262
79263 2006-07-23  Eric Blake  <ebb9@byu.net>
79264
79265         * lib/tmpfile-safer.c: New file.
79266         * lib/stdio-safer.h (fopen_safer): Add prototype.
79267         * lib/stdio--.h (tmpfile): Make safer.
79268
79269 2006-07-23  Bruno Haible  <bruno@clisp.org>
79270
79271         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79272         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79273         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79274         gl_linked_remove_at): Use it.
79275
79276 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79277         and Simon Josefsson <jas@extundo.com>
79278
79279         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79280
79281         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79282
79283 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * modules/close-stream: New file.
79286         * modules/closeout (Description): Make it clear that it exits
79287         with a diagnostic on error.
79288         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79289         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79290
79291 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * m4/close-stream.m4: New file.
79294
79295 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         * lib/close-stream.c, lib/close-stream.h: New files.
79298
79299 2006-07-22  Bruno Haible  <bruno@clisp.org>
79300
79301         Merge from GNU gettext 0.15.
79302
79303         2006-05-01  Bruno Haible  <bruno@clisp.org>
79304
79305                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79306
79307         2006-07-22  Bruno Haible  <bruno@clisp.org>
79308
79309                 * modules/javaversion: New file.
79310                 * MODULES.html.sh (Java): Add javaversion.
79311
79312         2006-03-12  Bruno Haible  <bruno@clisp.org>
79313
79314                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79315
79316         2005-12-04  Bruno Haible  <bruno@clisp.org>
79317
79318                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79319                 (untested).
79320
79321         2006-06-21  Bruno Haible  <bruno@clisp.org>
79322
79323                 Avoid warnings from recent versions of mcs.
79324                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79325                 -o, -L, -r any more. Use options documented since mcs-1.0
79326                 instead. Similarly for -g.
79327
79328         2005-12-04  Bruno Haible  <bruno@clisp.org>
79329
79330                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79331                 .resources, not .resource.
79332
79333         2005-07-09  Bruno Haible  <bruno@clisp.org>
79334
79335                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79336                 add a .dll suffix.
79337                 Reported by Mark Junker <mjscod@gmx.de>.
79338
79339         2006-07-22  Bruno Haible  <bruno@clisp.org>
79340
79341                 * modules/gettext: Upgrade to gettext-0.15.
79342                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79343                 m4/visibility.m4.
79344                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79345
79346 2006-07-22  Bruno Haible  <bruno@clisp.org>
79347
79348         Merge from GNU gettext 0.15.
79349
79350         2006-03-25  Bruno Haible  <bruno@clisp.org>
79351
79352                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79353
79354         2006-07-21  Bruno Haible  <bruno@clisp.org>
79355
79356                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79357                 "1.1".
79358
79359         2006-05-09  Bruno Haible  <bruno@clisp.org>
79360
79361                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79362                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79363                 for the conftestver execution.
79364
79365         2006-05-01  Bruno Haible  <bruno@clisp.org>
79366
79367                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79368                 optional target-version argument. Verify that the compiler
79369                 groks source of the specified source-version, or add -source
79370                 option as necessary. Verify that the compiler produces
79371                 bytecode in the specified target-version, or add -target and
79372                 -source options as necessary. Make the result of the test
79373                 available as variable CONF_JAVAC. Also log error output in
79374                 config.log.
79375
79376         2006-03-11  Bruno Haible  <bruno@clisp.org>
79377
79378                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79379
79380         2006-05-09  Bruno Haible  <bruno@clisp.org>
79381
79382                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79383                 CLASSPATH_SEPARATOR to a semicolon.
79384
79385         2006-03-12  Bruno Haible  <bruno@clisp.org>
79386
79387                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79388                 available as variable CONF_JAVA, for subsequent autoconf
79389                 tests. Also log error output in config.log.
79390
79391         2006-07-19  Bruno Haible  <bruno@clisp.org>
79392
79393                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79394                 that getline works on glibc2 systems. Needed to avoid trouble
79395                 in relocatable.c.
79396                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79397
79398         2005-12-04  Bruno Haible  <bruno@clisp.org>
79399
79400                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79401                 launcher (untested).
79402
79403         2005-12-04  Bruno Haible  <bruno@clisp.org>
79404
79405                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79406
79407         2006-07-22  Bruno Haible  <bruno@clisp.org>
79408
79409                 * gettext.m4: Update from GNU gettext-0.15.
79410                 * nls.m4: Likewise.
79411                 * po.m4: Likewise.
79412                 * inttypes-pri.m4: Likewise.
79413                 * inttypes-h.m4: Renamed from inttypes.m4.
79414                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79415
79416 2006-07-22  Bruno Haible  <bruno@clisp.org>
79417
79418         Merge from GNU gettext 0.15.
79419
79420         2005-07-05  Bruno Haible  <bruno@clisp.org>
79421
79422                 * printf-args.c (printf_fetchargs): Work around broken
79423                 definition of wint_t on mingw.
79424
79425         2005-02-12  Bruno Haible  <bruno@clisp.org>
79426
79427                 * xallocsa.h: Add extern "C" for C++.
79428
79429         2006-05-17  Bruno Haible  <bruno@clisp.org>
79430
79431                 Cygwin portability.
79432                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79433
79434         2006-04-30  Bruno Haible  <bruno@clisp.org>
79435
79436                 * progreloc.c: Include <mach-o/dyld.h> if available.
79437                 (find_executable): Use _NSGetExecutablePath when possible.
79438
79439         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79440
79441                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79442                 function.
79443
79444         2005-12-29  Bruno Haible  <bruno@clisp.org>
79445
79446                 * progreloc.c (set_program_name_and_installdir): Fix
79447                 compilation error.
79448
79449         2005-12-04  Bruno Haible  <bruno@clisp.org>
79450
79451                 Cygwin portability.
79452                 * progreloc.c: Include <windows.h> also on Cygwin.
79453                 (find_executable): Add support for Cygwin.
79454                 (set_program_name_and_installdir): Handle also platforms with
79455                 nonempty EXEEXT.
79456
79457         2006-07-11  Bruno Haible  <bruno@clisp.org>
79458
79459                 * javacomp.c: Fix a comment.
79460                 Reported by Jim Meyering.
79461
79462         2006-04-30  Bruno Haible  <bruno@clisp.org>
79463
79464                 * javacomp.h (compile_java_class): Add source_version,
79465                 target_version arguments.
79466                 * javacomp.c: Rewritten to choose only a compiler that
79467                 respects the specified source_version and target_version.
79468
79469         2006-06-27  Bruno Haible  <bruno@clisp.org>
79470
79471                 Assume correct S_ISDIR macro.
79472                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79473
79474         2006-07-22  Bruno Haible  <bruno@clisp.org>
79475
79476                 * javaversion.h: New file, from GNU gettext.
79477                 * javaversion.c: New file, from GNU gettext.
79478                 * javaversion.java: New file, from GNU gettext.
79479                 * javaversion.class: New file, from GNU gettext.
79480
79481         2006-05-17  Bruno Haible  <bruno@clisp.org>
79482
79483                 Cygwin portability.
79484                 * javaexec.c (execute_java_class): Test for jview program
79485                 also on Cygwin.
79486
79487         2006-04-09  Bruno Haible  <bruno@clisp.org>
79488
79489                 * fatal-signal.c: Don't include string.h.
79490                 (at_fatal_signal): Use a copying loop instead of memcpy.
79491
79492         2005-12-04  Bruno Haible  <bruno@clisp.org>
79493
79494                 * csharpexec.c: Add support for 'clix' launcher (untested).
79495                 (execute_csharp_using_sscli): New function.
79496                 (execute_csharp_program): Call it.
79497
79498         2006-06-21  Bruno Haible  <bruno@clisp.org>
79499
79500                 Avoid warnings from recent versions of mcs.
79501                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79502                 -o, -L, -r any more. Use options documented since mcs-1.0
79503                 instead. Similarly for -g.
79504
79505         2005-07-09  Bruno Haible  <bruno@clisp.org>
79506
79507                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79508                 add a .dll suffix.
79509                 Reported by Mark Junker <mjscod@gmx.de>.
79510
79511         2006-06-17  Bruno Haible  <bruno@clisp.org>
79512
79513                 * config.charset: Update for NetBSD 3.0.
79514
79515         2006-05-17  Bruno Haible  <bruno@clisp.org>
79516
79517                 Cygwin portability.
79518                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79519
79520         2006-05-16  Bruno Haible  <bruno@clisp.org>
79521
79522                 * localcharset.c [CYGWIN]: Include <windows.h>.
79523                 (get_charset_aliases): For Cygwin, return the same CPxxx
79524                 aliases list as under WIN32.
79525                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79526                 the environment variables. Fall back to GetACP().
79527
79528         2006-04-05  Bruno Haible  <bruno@clisp.org>
79529
79530                 * config.charset: Update Juan Manuel Guerrero's address.
79531
79532         2005-02-12  Bruno Haible  <bruno@clisp.org>
79533
79534                 * allocsa.h: Add extern "C" for C++.
79535
79536         2005-02-10  Bruno Haible  <bruno@clisp.org>
79537
79538                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79539                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79540
79541         2006-07-22  Bruno Haible  <bruno@clisp.org>
79542
79543                 * gettext.h: Update to GNU gettext-0.15.
79544
79545 2006-07-22  Bruno Haible  <bruno@clisp.org>
79546
79547         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79548         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79549         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79550
79551 2006-07-21  Eric Blake  <ebb9@byu.net>
79552
79553         * modules/stdlib-safer: New file.
79554         * MODULES.html.sh (File stream based Input/Output): Add
79555         stdlib-safer.
79556
79557 2006-07-21  Eric Blake  <ebb9@byu.net>
79558
79559         * lib/stdlib-safer.h: New file from coreutils, required by
79560         stdlib--.h.
79561
79562 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79565
79566 2006-07-20  Bruno Haible  <bruno@clisp.org>
79567
79568         * gnulib-tool: Recognize new option --assume-autoconf.
79569         (autoconf_minversion): New variable.
79570         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79571
79572 2006-07-20  Bruno Haible  <bruno@clisp.org>
79573
79574         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79575
79576 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79577
79578         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79579         Reindent and repaginate.
79580
79581 2006-07-19  Derek Price  <derek@ximbiot.com>
79582
79583         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79584         Correct grammar.
79585
79586 2006-07-17  Bruno Haible  <bruno@clisp.org>
79587
79588         * modules/list: New file.
79589         * modules/array-list: New file.
79590         * modules/carray-list, modules/carray-list-tests: New files.
79591         * modules/linked-list, modules/linked-list-tests: New files.
79592         * modules/avltree-list, modules/avltree-list-tests: New files.
79593         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79594         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79595         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79596         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79597         * modules/oset: New file.
79598         * modules/array-oset: New file.
79599         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79600         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79601         * tests/test-carray_list.c: New file.
79602         * tests/test-linked_list.c: New file.
79603         * tests/test-avltree_list.c: New file.
79604         * tests/test-rbtree_list.c: New file.
79605         * tests/test-linkedhash_list.c: New file.
79606         * tests/test-avltreehash_list.c: New file.
79607         * tests/test-rbtreehash_list.c: New file.
79608         * tests/test-avltree_oset.c: New file.
79609         * tests/test-rbtree_oset.c: New file.
79610         * MODULES.html.sh (Container data structures): New section.
79611
79612 2006-07-17  Bruno Haible  <bruno@clisp.org>
79613
79614         * m4/gl_list.m4: New file.
79615
79616 2006-07-17  Bruno Haible  <bruno@clisp.org>
79617
79618         * lib/gl_list.h: New file.
79619         * lib/gl_list.c: New file.
79620         * lib/gl_array_list.h: New file.
79621         * lib/gl_array_list.c: New file.
79622         * lib/gl_carray_list.h: New file.
79623         * lib/gl_carray_list.c: New file.
79624         * lib/gl_linked_list.h: New file.
79625         * lib/gl_linked_list.c: New file.
79626         * lib/gl_anylinked_list1.h: New file.
79627         * lib/gl_anylinked_list2.h: New file.
79628         * lib/gl_avltree_list.h: New file.
79629         * lib/gl_avltree_list.c: New file.
79630         * lib/gl_anyavltree_list1.h: New file.
79631         * lib/gl_anyavltree_list2.h: New file.
79632         * lib/gl_rbtree_list.h: New file.
79633         * lib/gl_rbtree_list.c: New file.
79634         * lib/gl_anyrbtree_list1.h: New file.
79635         * lib/gl_anyrbtree_list2.h: New file.
79636         * lib/gl_anytree_list1.h: New file.
79637         * lib/gl_anytree_list2.h: New file.
79638         * lib/gl_linkedhash_list.h: New file.
79639         * lib/gl_linkedhash_list.c: New file.
79640         * lib/gl_anyhash_list1.h: New file.
79641         * lib/gl_anyhash_list2.h: New file.
79642         * lib/gl_avltreehash_list.h: New file.
79643         * lib/gl_avltreehash_list.c: New file.
79644         * lib/gl_rbtreehash_list.h: New file.
79645         * lib/gl_rbtreehash_list.c: New file.
79646         * lib/gl_anytreehash_list1.h: New file.
79647         * lib/gl_anytreehash_list2.h: New file.
79648
79649         * lib/gl_oset.h: New file.
79650         * lib/gl_oset.c: New file.
79651         * lib/gl_array_oset.h: New file.
79652         * lib/gl_array_oset.c: New file.
79653         * lib/gl_avltree_oset.h: New file.
79654         * lib/gl_avltree_oset.c: New file.
79655         * lib/gl_rbtree_oset.h: New file.
79656         * lib/gl_rbtree_oset.c: New file.
79657         * lib/gl_anytree_oset.h: New file.
79658
79659 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79660
79661         * m4/mkancesdirs.m4: New file.
79662         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79663         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79664         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79665         it.
79666
79667 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79668
79669         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79670         * lib/mkancesdirs.h: New files.
79671         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79672         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79673         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79674         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79675         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79676         callers changed.  Revamp internals significantly, by not
79677         attempting to create directories that are temporarily more
79678         permissive than the final results.  Do not attempt to use
79679         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79680         This removes some race conditions, fixes some bugs, and simplifies
79681         things.  Use new dirchownmod function to do owner and mode changes.
79682         * lib/mkdir-p.h: Likewise.
79683         * lib/modechange.c (octal_to_mode): New function.
79684         (struct mode_change): New member mentioned.
79685         (make_node_op_equals): New arg mentioned.  All callers changed.
79686         (mode_compile): Keep track of which mode bits the user has explicitly
79687         mentioned.
79688         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79689         New arg PMODE_BITS, to keep track of which mode bits the user
79690         mentioned; it treats S_ISUID and S_ISGID speciall.
79691         All callers changed.
79692         * lib/modechange.h: Likewise.
79693
79694 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * MODULES.html.sh: Add mkancestors.
79697         * modules/mkancesdirs: New module.
79698         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79699         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79700         The chdir-safer and afs files are now orphans; I'll remove them
79701         unless someone speaks up.
79702         Add lib/dirchownmod.c, lib/dirchownmod.h.
79703         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79704         Add lchown, mkancesdirs.
79705         (Maintainer): Add self.
79706
79707 2006-07-15  Karl Berry  <karl@gnu.org>
79708
79709         * gnulib-tool: help message wording/arrangement.
79710
79711 2006-07-14  Simon Josefsson  <jas@extundo.com>
79712
79713         * doc/gnulib.texi (Libtool and Windows): New section.
79714
79715 2006-07-12  Simon Josefsson  <jas@extundo.com>
79716
79717         * modules/gendocs (License): Fix license, approved by Karl.
79718
79719 2006-07-12  Eric Blake  <ebb9@byu.net>
79720
79721         * MODULES.html.sh: Add gendocs.
79722
79723 2006-07-11  Eric Blake  <ebb9@byu.net>
79724
79725         * modules/fdl: New module, to install doc/fdl.texi.
79726         * MODULES.html.sh: Add new section for documentation modules.
79727         * gnulib-tool: Avoid space-tab.
79728         (--doc-base): New option, to manage files from doc.
79729
79730 2006-07-11  Eric Blake  <ebb9@byu.net>
79731
79732         * m4/absolute-header.m4: Fix comments to match recent change.
79733
79734 2006-07-11  Eric Blake  <ebb9@byu.net>
79735
79736         * gnulib-tool: List --doc-base before --tests-base.
79737
79738 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79739
79740         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79741
79742 2006-07-11  Bruno Haible  <bruno@clisp.org>
79743
79744         * README: Mention where to put documentation.
79745
79746 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79747
79748         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79749
79750 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79753         to stdint.m4.
79754
79755 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79758         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79759         "no/such/file/stdint.h" when there is no such file, so that
79760         the resulting C code can be parsed by dodgy compilers.
79761         Problems reported by Bob Proulx.
79762
79763 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79764
79765         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79766         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79767         macros into the GNU _D_EXACT_NAMLEN.
79768         * lib/savedir.c:  Likewise.
79769         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79770
79771 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79772         and Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79775         * m4/savedir.m4:
79776         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79777         macros into the GNU _D_EXACT_NAMLEN.
79778
79779 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79782         around the absolute name, to work around a problem with the HP-UX
79783         11.23 native C compiler, reported by Bob Proulx.
79784
79785 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * doc/maintain.texi, make-stds.texi: Sync from
79788         <http://savannah.gnu.org/projects/gnustandards>.
79789
79790 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79793
79794 2006-07-09  Jim Meyering  <jim@meyering.net>
79795
79796         * m4/glob.m4: Remove a doubled word in a comment.
79797
79798 2006-07-09  Jim Meyering  <jim@meyering.net>
79799
79800         * lib/argp-pv.c: Remove a doubled word in a comment.
79801         * lib/check-version.c (check_version): Likewise.
79802         * lib/javacomp.c (compile_java_class): Likewise.
79803
79804 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79805
79806         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79807         for the benefit of people using Autoconf 2.60.  If you want to
79808         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79809         (or m4/onceonly.m4, if pre-2.57) manually.
79810
79811 2006-07-08  Jim Meyering  <jim@meyering.net>
79812
79813         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79814         comment.
79815         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79816         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79817         comment.
79818
79819 2006-07-08  Jim Meyering  <jim@meyering.net>
79820
79821         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79822
79823 2006-07-07  Simon Josefsson  <jas@extundo.com>
79824
79825         * tests/test-crc.c: Change expected crc value, the test vector
79826         were probably computed using the old broken crc.c?
79827
79828 2006-07-06  Simon Josefsson  <jas@extundo.com>
79829
79830         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79831         now the canonical place for the M4 file).
79832
79833         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79834         from the sys_socket dependency now.
79835
79836         * modules/inet_pton (Files): Ditto.
79837
79838         * modules/inet_ntop (Files): Ditto.
79839
79840 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79841
79842         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79843         not gl_PREREQ_GETUSERSHELL.
79844
79845 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79846
79847         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79848         with only one argument, for Autoconf 2.60.
79849         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79850         expand to nothing, so add a shell command to avoid syntax error.
79851         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79852
79853 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79854
79855         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79856
79857 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79860         no longer needed.  Check for isblank decl.
79861         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79862         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79863         of existence.
79864
79865 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * lib/getloadavg.c: Use __VMS, not VMS.
79868         * lib/getopt.c: Likewise.
79869         * lib/getpagesize.h: Likewise.
79870         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79871         and probably does not work.
79872
79873 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79874
79875         * lib/.cppi-disable: Add wcwidth.
79876         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79877         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79878         (ISGRAPH): Remove.  All uses changed to isgraph.
79879         (FOLD) [!defined _LIBC]: Remove special case.
79880         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79881         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79882         HAVE_ISBLANK.
79883         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79884         case.
79885
79886 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79887
79888         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79889         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79890         brackets.  Other minor changes to suppress some compiler
79891         warnings.
79892
79893 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79894         and Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79897         of invoking obsolescent AC_HEADER_DIRENT macro.
79898         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79899         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79901         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79902         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79903         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79904         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79905         * m4/readdir.m4: Remove; no longer needed.
79906
79907 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79908         and Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79911         Don't worry about this obsolete case any more.
79912         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79913         directories.
79914         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79915         worry about this obsolete case any more.
79916         * lib/fts.c: Likewise.
79917         * lib/getcwd.c: Likewise.
79918         * lib/glob.h: Likewise.
79919         * lib/savedir.c: Likewise.
79920
79921 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79924         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79925         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79926         needed.
79927         All uses removed.
79928         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79929         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79930         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79931         needed.
79932         * m4/getdate.m4 (gl_GETDATE): Likewise.
79933         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79934         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79935         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79936         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79937         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79938         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79939         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79940         needed.
79941
79942 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * lib/memcasecmp.c: Include <limits.h>.
79945         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79946         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79947         Don't assume isdigit succeeds only on '0' through '9'.
79948
79949 2006-07-05  Eric Blake  <ebb9@byu.net>
79950
79951         * modules/getaddrinfo (Depends-on): Add snprintf.
79952
79953 2006-07-05  Eric Blake  <ebb9@byu.net>
79954
79955         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79956         to avoid 'header present but could not be compiled' on cygwin.
79957
79958 2006-07-05  Eric Blake  <ebb9@byu.net>
79959
79960         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79961         missing from netdb.h.
79962         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79963
79964 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79965
79966         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79967         no longer needed.
79968         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79969         * m4/getdate.m4 (gl_GETDATE): Likewise.
79970         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79971         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79972         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79973         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79974         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79975
79976 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79977
79978         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79979         All uses of is_space replaced by isspace.
79980         * lib/exit.h: Don't talk about STDC_HEADERS.
79981         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79982         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79983         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79984         replaced by isprint etc.
79985         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79986         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79987         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79988         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79989         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79990         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79991
79992 2006-07-05  Bruno Haible  <bruno@clisp.org>
79993
79994         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79995         the function exists, before testing against AIX.
79996         Reported by Martin Lambers <marlam@marlam.de>.
79997
79998 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80001         From Mark D. Baushke.
80002
80003 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80006         to the absolute name, not just one, to bypass Sun C 5.8's
80007         "warning: #include of /usr/include/... may be non-portable".
80008
80009 2006-07-04  Eric Blake  <ebb9@byu.net>
80010
80011         * modules/dirname-tests: New test module.
80012         * tests/test-dirname.c: New file, replacing dirname.c
80013         TEST_DIRNAME section that was recently deleted.
80014
80015 2006-07-04  Bruno Haible  <bruno@clisp.org>
80016
80017         Assume ANSI C header files and <ctype.h> functions.
80018         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80019         (mbsnwidth): Use isprint, iscntrl instead.
80020
80021 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         Merge from coreutils.
80024         * MODULES.html.sh: Add xstrtold.
80025         * modules/xstrtold: New file.
80026         * modules/cycle-check (Files): Add lib/same-inode.h.
80027         * modules/dirname (Files): Add m4/double-slash-root.m4.
80028         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80029         * modules/mkdir-p (Files): Add lib/same-inode.h.
80030         * modules/same (Files): Add lib/same-inode.h.
80031
80032 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80033
80034         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80035         This is to keep the terminology clean; POSIX talks about
80036         "absolute pathnames", not "full pathnames", but the GNU
80037         Coding Standards say to use "path" for something else;
80038         so use "absolute" to keep both sides happy.
80039         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80040         Set gl_absolute_header, not gl_full_header_path.
80041         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80042         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80043         All uses changed.
80044
80045         Merge from coreutils.
80046
80047         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80050         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80051         want to require the building of c-strtod.o.
80052         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80053         needs -lm directly.
80054         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80055
80056         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80059         --as-needed option if available.  Problem reported by Albert Chin in
80060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80061         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80062         cc merely issues a bunch of annoying warnings for --as-needed
80063         (this problem was reported by Bob Proulx).  Also, try linking with
80064         -lm to detect a bug in binutils 2.16 (this problem was reported
80065         by Ralf Wildenhues).
80066
80067         2006-06-18  Jim Meyering  <jim@meyering.net>
80068
80069         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80070         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80071         macro.
80072         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80073         also check for glibc-2.4's abort-inducing bug.
80074
80075         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80076         Low-probability clean-up should be to use rmdir to get rid of
80077         the just-created directory, not unlink.
80078
80079         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80080         configure fail, and request a bug report to inform us about it.
80081         Add a comment that, barring reports to the contrary, in 2007 we'll
80082         assume ftruncate is universally available.
80083
80084         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80087
80088         2006-03-12  Jim Meyering  <jim@meyering.net>
80089
80090         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80091         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80092         * m4/same.m4 (gl_SAME): Likewise.
80093         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80094
80095         2006-03-11  Eric Blake  <ebb9@byu.net>
80096
80097         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80098         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80099         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80100         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80101
80102 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80105         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80106         reported by Mark D. Baushke, one in
80107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80108
80109         Merge from coreutils.
80110
80111         * lib/.cppi-disable: Add stdint_.h.
80112         * lib/.cvsignore: Add stdint.h.
80113
80114         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80117         both double and long double versions.
80118         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80119         * lib/xstrtold.c: New file.
80120         * lib/xstrtod.h (xstrtold): New decl.
80121
80122         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * lib/filemode.c (setst): Remove.
80125         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80126         (arguably) clearer, and the generated code is a bit smaller on my
80127         Debian GNU/Linux stable x86 host.
80128
80129         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80132         Assume that filemode.h includes sys/types.h and sys/stat.h.
80133         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80134         (ftypelet): Reorder to put common cases first, for efficiency.
80135         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80136         to do 'M'.
80137         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80138         of 10, for compatibility with FreeBSD.  All callers changed.
80139         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80140         types that can't be deduced solely from st_mode.  First arg is now a
80141         const pointer.
80142         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80143         (strmode): Renamed from mode_string.
80144         (filemodestring): New decl.
80145         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80146         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80147         needed.
80148         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80149
80150         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80153         fsusage.h now does that.  Include fsusage.h first, to test interface.
80154         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80155         at most one method (the old code could have generated decls that
80156         didn't conform to C89, not that this was ever exercised).
80157         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80158
80159         2006-03-19  Jim Meyering  <jim@meyering.net>
80160
80161         Work even in a chroot where d_ino values for entries in "/"
80162         don't match the stat.st_ino values for the same names.
80163         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80164         number, iterate through all entries again, using lstat instead.
80165         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80166         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80167
80168         * lib/getcwd.c (__getcwd): Clarify a comment.
80169         Use memcpy in place of a call to strcpy.
80170
80171         2006-03-12  Jim Meyering  <jim@meyering.net>
80172
80173         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80174         matches that of the current directory (which we're about to chdir ".."
80175         out of), then save the dev-ino of the parent, instead.
80176
80177         * lib/same-inode.h (SAME_INODE): New file/macro.
80178         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80179         Include "same-inode.h", instead.
80180         * lib/same.c: Likewise.
80181         * lib/cycle-check.h: Include "same-inode.h".
80182         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80183         * lib/cycle-check.c (SAME_INODE): Remove definition.
80184         * lib/root-dev-ino.h: Include "same-inode.h".
80185
80186         2006-03-11  Eric Blake  <ebb9@byu.net>
80187
80188         * lib/same.c (same_name): s/base_name/last_component/
80189         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80190         * lib/filenamecat.c (file_name_concat): Likewise.
80191
80192         2006-03-11  Eric Blake  <ebb9@byu.net>,
80193                     Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80196         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80197         drive prefix.
80198         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80199         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80200         (last_component): New method.
80201         * lib/dirname.c (dir_len): Determine when drive letters need a
80202         subsequent slash.  Preserve // when it is special.
80203         (dir_name): Don't append dot when drive letter is absolute.
80204         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80205         * lib/basename.c (base_name): New semantics - malloc the result.
80206         Preserve // when it is special.  Preserve relative files that look
80207         like drive letters.
80208         (base_len): Preserve // when it is special.
80209         (last_component): New method, similar to old base_name semantics.
80210         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80211         base_name.  Strip redundant slashes from ///.
80212
80213 2006-07-03  Jim Meyering  <jim@meyering.net>
80214
80215         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80216         macro is used before the first cycle_check call.
80217
80218 2006-07-03  Eric Blake  <ebb9@byu.net>
80219
80220         * modules/dirname (Depends-on): Add xstrndup.
80221
80222 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80225         test cases, so that config.log is a bit easier to follow.
80226
80227 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80230         both are 64 bits, since this seems to be the tradition, and this
80231         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80232         we ever run into a host that prefers long long to long in this
80233         case, we'll need another configure-time test.  Problem reported by
80234         Jim Meyering.
80235
80236 2006-07-02  Eric Blake  <ebb9@byu.net>
80237
80238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80239
80240 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         * modules/inttypes (Depends-on): No longer depends on stdint.
80243         * modules/stdint (Description): Say more about assumptions.
80244         Say that the fast types might differ.  Say macros are used.
80245         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80246         (Makefile.am): Revise list of substituted symbols to match
80247         new stdint.m4.
80248         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80249         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80250         * tests/test-stdint.c (verify_same_types)
80251         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80252         the code conforms to C99/C89.
80253         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80254         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80255
80256 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80259         but fix a bug, by requiring at least 64 bits.
80260         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80261         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80262         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80263         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80264
80265         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80266         changes.  Make 2.59 a prerequisite.  Check and substitute for
80267         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80268         inttypes.h.  Do not use special include files; just use the
80269         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80270         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80271         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80272         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80273         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80274         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80275         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80276         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80277         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80278         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80279         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80280         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80281         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80282         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80283         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80284         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80285         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80286         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80287         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80288         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80289         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80290         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80291         not check for things that C99 does not require, e.g., int8_t.  If
80292         a test isn't needed unless <stdint.h> isn't working, and is
80293         unlikely to be needed for any other reason, then don't do it
80294         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80295         size_t, since we assume C89 freestanding at least.  Do not check
80296         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80297         the right thing even if the types are not defined.  Instead use:
80298         (gl_STDINT_TYPE_PROPERTIES): New macro.
80299         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80300         testing whether <sys/types.h> clashes, as Autoconf does this for
80301         us now.  All uses removed.
80302         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80303         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80304         (gl_CHECK_TYPE_SAME):
80305         Remove; no longer needed.
80306         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80307         exists, since we'll return 0 anyway in that case.
80308         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80309
80310 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80313         possible collision with system files.
80314         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80315         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80316         WCHAR_MIN and WCHAR_MAX in this case.
80317         (<stddef.h>): Do not include; no longer needed.
80318         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80319         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80320         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80321         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80322         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80323         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80324         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80325         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80326         !defined(__c99))]: Include in this case too, since it's harmless
80327         now.
80328         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80329         dangerous to do so.
80330         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80331         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80332         (_STDINT_MIN, _STDINT_MAX): New macros.
80333         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80334         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80335         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80336         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80337         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80338         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80339         macros, not typedefs; this simplifies things quite a bit.
80340         Use long int for all types narrower than int64_t.
80341         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80342         Define in terms of long long int or int64_t or long int,
80343         not int64_t or int32_t.  This saves some compile-time testing.
80344         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80345         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80346         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80347         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80348         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80349         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80350         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80351         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80352         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80353         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80354         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80355         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80356         undef any previous version and define our own version, for
80357         simplicity and consistency with the new macros for types.
80358         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80359         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80360         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80361         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80362         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80363         @WINT_T_SUFFIX@ to keep things simple here.
80364         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80365         Simplify by assuming typical 8/16/32/64 host, since we're
80366         already doing that elsewhere anyway.
80367         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80368         and assume long long int is 64 bits if available.  This
80369         speeds up 'configure'.
80370
80371 2006-07-01  Eric Blake  <ebb9@byu.net>
80372
80373         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80374         Reported by Andreas Buening.
80375
80376 2006-07-01  Eric Blake  <ebb9@byu.net>
80377
80378         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80379
80380 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80381
80382         * lib/getaddrinfo.c: fixed typo
80383
80384 2006-06-29  Jim Meyering  <jim@meyering.net>
80385
80386         * modules/strftime (Maintainer): Add my name, since with the
80387         FPRINTFTIME changes strftime.c has forked from glibc.
80388
80389 2006-06-29  Eric Blake  <ebb9@byu.net>
80390
80391         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80392
80393 2006-06-29  Eric Blake  <ebb9@byu.net>
80394
80395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80396
80397 2006-06-29  Eric Blake  <ebb9@byu.net>
80398
80399         * lib/stat_.h: New file.
80400
80401 2006-06-29  Eric Blake  <ebb9@byu.net>
80402
80403         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80404         unused static function.
80405
80406 2006-06-29  Eric Blake  <ebb9@byu.net>
80407
80408         * doc/functions.texi (Function Portability): Document missing lstat
80409         on mingw.
80410
80411 2006-06-29  Eric Blake  <ebb9@byu.net>
80412
80413         * MODULES.html.sh: Add sys_stat.
80414         * modules/sys_stat: New module.
80415         * modules/mkstemp (Depends-on): Add sys_stat.
80416
80417 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80418
80419         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80420
80421 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80422
80423         * m4/c-bs-a.m4: Removed.
80424
80425 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80426
80427         * lib/strftime.c: Assume strftime() exists.
80428
80429 2006-06-29  Derek Price  <derek@ximbiot.com>
80430
80431         * modules/c-bs-a: Removed - \a is C89.
80432         * MODULES.html.sh: Remove c-bs-a.
80433
80434 2006-06-29  Bruno Haible  <bruno@clisp.org>
80435
80436         * modules/wcwidth (License): Change to LGPL.
80437
80438 2006-06-28  Simon Josefsson  <jas@extundo.com>
80439
80440         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80441         on _WIN32.
80442
80443         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80444         getnameinfo.
80445
80446 2006-06-28  Simon Josefsson  <jas@extundo.com>
80447
80448         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80449
80450 2006-06-28  Simon Josefsson  <jas@extundo.com>
80451
80452         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80453         functions there.  It will succeed on Windows XP, but on Windows
80454         2000 and (presumably) earlier, it will fail, and use the internal
80455         re-implementation.
80456         (use_win32_p): New function.
80457         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80458         Support AI_NUMERICSERV to disable getservbyname.
80459         (getnameinfo): New function, only supports
80460         NI_NUMERICHOST|NI_NUMERICSERV for now.
80461
80462         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80463         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80464         getnameinfo.
80465
80466 2006-06-28  Eric Blake  <ebb9@byu.net>
80467
80468         * modules/wcwidth: New file.
80469         * modules/mbchar (Depends-on): Add wcwidth.
80470         * modules/mbswidth (Depends-on): Add wcwidth.
80471         * MODULES.html.sh: Add wcwidth.
80472
80473 2006-06-28  Eric Blake  <ebb9@byu.net>
80474
80475         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80477
80478 2006-06-28  Eric Blake  <ebb9@byu.net>
80479
80480         * lib/xvasprintf.h: Fix comments.
80481
80482 2006-06-28  Eric Blake  <ebb9@byu.net>
80483
80484         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80485         * lib/mbswidth.c (wcwidth): Move from here...
80486         * lib/wcwidth.h: ...to this new file.
80487
80488 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80489
80490         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80491
80492         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80493         it's obsolete.
80494         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80495
80496 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80497
80498         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80499         Autoconf 2.60 says this stuff was obsolete.
80500
80501 2006-06-28  Bruno Haible  <bruno@clisp.org>
80502
80503         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80504
80505 2006-06-28  Bruno Haible  <bruno@clisp.org>
80506
80507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80508         gt_TYPE_WCHAR_T.
80509
80510 2006-06-28  Bruno Haible  <bruno@clisp.org>
80511
80512         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80513         declaration for wcwidth.
80514         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80515
80516 2006-06-28  Bruno Haible  <bruno@clisp.org>
80517
80518         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80519         (mkdir): Define using _mkdir.
80520
80521 2006-06-28  Bruno Haible  <bruno@clisp.org>
80522
80523         * lib/getaddrinfo.h: Fix POSIX URL.
80524         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80525         _WIN32.
80526         (use_win32_p): Make static.
80527         (getaddrinfo): Reject service name if it is empty or does not consist
80528         solely of decimal digits, or if its value is > 65535.
80529         (getnameinfo): Remove useless casts.
80530
80531 2006-06-27  Simon Josefsson  <jas@extundo.com>
80532
80533         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80534         Eggert and Martin Lambers.
80535
80536 2006-06-27  Simon Josefsson  <jas@extundo.com>
80537
80538         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80539         Eggert and Martin Lambers.
80540
80541 2006-06-27  Bruno Haible  <bruno@clisp.org>
80542
80543         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80544         result to 0, not to empty.
80545         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80546
80547 2006-06-27  Bruno Haible  <bruno@clisp.org>
80548
80549         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80550
80551 2006-06-26  Simon Josefsson  <jas@extundo.com>
80552
80553         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80554         present.
80555
80556 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80557
80558         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80559         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80561
80562 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80563
80564         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80565
80566 2006-06-26  Bruno Haible  <bruno@clisp.org>
80567
80568         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80569
80570 2006-06-26  Bruno Haible  <bruno@clisp.org>
80571
80572         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80573
80574 2006-06-26  Bruno Haible  <bruno@clisp.org>
80575
80576         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80577         SGI C compiler in pre-C99 mode.
80578         Suggested by Mark D. Baushke and Larry Jones.
80579
80580 2006-06-26  Bruno Haible  <bruno@clisp.org>
80581
80582         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80583         WCHAR_MAX.
80584         Reported by Mark D. Baushke and Larry Jones.
80585
80586 2006-06-26  Bruno Haible  <bruno@clisp.org>
80587
80588         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80589         in pre-C99 mode.
80590         Suggested by Mark D. Baushke and Larry Jones.
80591
80592 2006-06-23  Simon Josefsson  <jas@extundo.com>
80593             Bruno Haible  <bruno@clisp.org>
80594
80595         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80596         Emit mostlyclean-local rule.
80597         (func_emit_tests_Makefile_am): Likewise.
80598         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80599
80600 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80601
80602         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80603
80604 2006-06-23  Bruno Haible  <bruno@clisp.org>
80605
80606         * tests/test-stdint.c: Update to match ISO C 99 Technical
80607         Corrigendum 1.
80608
80609 2006-06-23  Bruno Haible  <bruno@clisp.org>
80610
80611         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80612
80613 2006-06-23  Bruno Haible  <bruno@clisp.org>
80614
80615         * lib/stdint_.h: Treat IRIX like OpenBSD.
80616
80617 2006-06-23  Bruno Haible  <bruno@clisp.org>
80618
80619         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80620         ISO C 99 Technical Corrigendum 1.
80621
80622 2006-06-22  Simon Josefsson  <jas@extundo.com>
80623
80624         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80625         MinGW.
80626
80627 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80630         needed.  Some compiler complained about some of them.  Problem reported
80631         by Larry Jones in
80632         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80633
80634 2006-06-21  Simon Josefsson  <jas@extundo.com>
80635
80636         * tests/test-getaddrinfo.c: New file.
80637
80638         * modules/getaddrinfo-tests: New file.
80639
80640         * MODULES.html.sh: Add inet_pton.
80641
80642         * modules/inet_pton: New file.
80643
80644 2006-06-21  Simon Josefsson  <jas@extundo.com>
80645
80646         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80647         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80648         of using the (limited) gnulib implementation on Windows XP.
80649
80650         * m4/inet_pton.m4: New file.
80651
80652 2006-06-21  Simon Josefsson  <jas@extundo.com>
80653
80654         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80655         variable.
80656
80657         * lib/socket_.h: Don't define WINVER.
80658
80659         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80660         slightly modified to work in gnulib.
80661
80662 2006-06-21  Simon Josefsson  <jas@extundo.com>
80663
80664         * doc/gnulib.texi (Windows sockets): Add.
80665
80666 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80667
80668         * lib/read-file.c (fread_file): Start with buffer allocation of
80669         0 bytes rather than 1 byte; this simplifies the code.
80670         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80671         code to free buffer and save/restore errno.
80672         (internal_read_file): Remove unused local.
80673
80674 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80675
80676         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80677         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80678         Problem reported by Denis Excoffier in
80679         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80680
80681 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80682
80683         * modules/sys_socket, modules/socklen: Include sys/types since
80684         FreeBSD 4.x's sys/socket.h needs it.
80685
80686 2006-06-19  Simon Josefsson  <jas@extundo.com>
80687
80688         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80689
80690 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80693
80694 2006-06-19  Bruno Haible  <bruno@clisp.org>
80695
80696         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80697         and FULL_PATH_INTTYPES_H in angle brackets.
80698         Reported by Mark D. Baushke <mdb@gnu.org>.
80699
80700 2006-06-17  Eric Blake  <ebb9@byu.net>
80701
80702         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80703         errno.
80704
80705 2006-06-17  Bruno Haible  <bruno@clisp.org>
80706
80707         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80708         <sys/inttypes.h>.
80709
80710 2006-06-17  Bruno Haible  <bruno@clisp.org>
80711
80712         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80713         whether errno is declared. Assume <errno.h> declares errno.
80714
80715 2006-06-17  Bruno Haible  <bruno@clisp.org>
80716
80717         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80718
80719 2006-06-17  Bruno Haible  <bruno@clisp.org>
80720
80721         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80722         problem on Solaris 2.5.1.
80723
80724 2006-06-16  Eric Blake  <ebb9@byu.net>
80725
80726         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80727         * lib/unicodeio.c [!defined errno]: Likewise.
80728         * lib/strtol.c [!defined errno]: Likewise.
80729         * lib/strtod.c [!defined errno]: Likewise.
80730
80731 2006-06-15  Eric Blake  <ebb9@byu.net>
80732
80733         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80734
80735 2006-06-15  Eric Blake  <ebb9@byu.net>
80736
80737         * config/srclist.txt (ssize_t.m4): Lose sync.
80738
80739 2006-06-15  Bruno Haible  <bruno@clisp.org>
80740
80741         * modules/stdint (Files): Include m4/full-header-path.m4,
80742         m4/size_max.m4, m4/wchar_t.m4.
80743         (Makefile.am): Many more substitutions.
80744         * modules/stdint-tests: New file.
80745         * tests/test-stdint.c: New file.
80746
80747 2006-06-15  Bruno Haible  <bruno@clisp.org>
80748
80749         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80750         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80751         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80752         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80753         gl_CHECK_TYPE_SAME): New macros.
80754
80755 2006-06-15  Bruno Haible  <bruno@clisp.org>
80756
80757         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80758
80759 2006-06-15  Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/stdint_.h: Rewritten to be fully auto-configured.
80762         Fixes bug on HP-UX/IA64.
80763
80764 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80765
80766         * lib/getdate.y (__attribute__): Don't define if already defined.
80767         Problem reported by Larry Jones.
80768         * lib/utimens.c (__attribute__): Likewise.
80769
80770 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80771
80772         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80773         reported by Andreas Schwab.
80774
80775 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80776             Bruno Haible  <bruno@clisp.org>
80777
80778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80779         check for the declaration of strnlen and a run test that exposes the
80780         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80781         rpl_strndup.
80782
80783 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80784             Bruno Haible  <bruno@clisp.org>
80785
80786         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80787
80788 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80789
80790         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80791         compile test, for Tru64 4.0D.
80792
80793 2006-05-28  Karl Berry  <karl@gnu.org>
80794
80795         * config/srclist.txt (printf-args.c): lose sync.
80796
80797 2006-05-26  Martin Lambers  <marlam@marlam.de>
80798
80799         * lib/getpass.c: Updates the test for the native W32 API, and adds
80800         missing includes, thus fixing compilation warnings.
80801
80802 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80803
80804         * lib/exclude.c (exclude_fnmatch): New function.
80805         (excluded_file_name): Call exclude_fnmatch.
80806         * lib/exclude.h (excluded_file_name): New prototype
80807
80808 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * lib/tempname.c (small_open, large_open): New macros.
80811         (__open, __open64) [!_LIBC]: Remove.
80812         (__gen_tempname): Use small_open and large_open instead of __open
80813         and __open64.  This fixes a portability bug on HP-UX 11.11i
80814         reported by Simon Wing-Tang in
80815         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80816
80817 2006-05-24  Bruno Haible  <bruno@clisp.org>
80818
80819         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80820         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80821         Reported by Thorsten Maerz <torte@netztorte.de> via
80822         Aaron Stone <aaron@serendipity.cx>.
80823
80824 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80827         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80828         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80829         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80830         not really conditional on the cache.
80831         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80832
80833 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80834
80835         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80836         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80837         (my_usleep): Don't mishandle maximum value.
80838
80839 2006-05-19  Jim Meyering  <jim@meyering.net>
80840
80841         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80842
80843 2006-05-17  Bruno Haible  <bruno@clisp.org>
80844
80845         Cygwin portability.
80846         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80847
80848 2006-05-17  Bruno Haible  <bruno@clisp.org>
80849
80850         * lib/stdint_.h: Fix recognition of Cygwin.
80851
80852 2006-05-15  Bruno Haible  <bruno@clisp.org>
80853
80854         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80855         on libtool patch by Ralf Wildenhues.
80856
80857 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80860         test for C99 conformance; (bool) 0.5 is an integer constant
80861         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80862         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80863
80864 2006-05-11  Simon Josefsson  <jas@extundo.com>
80865
80866         * m4/xvasprintf.m4: Fix obvious typo.
80867
80868 2006-05-11  Jim Meyering  <jim@meyering.net>
80869
80870         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80871         James Lemley.
80872
80873 2006-05-10  Simon Josefsson  <jas@extundo.com>
80874
80875         * lib/md4.c: Typo fix, update copyright years.
80876         (K1, K2): Don't use L because it turn computations into 64-bit on
80877         64-bit platforms.
80878
80879 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80882         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80883         unwanted sign propagation, e.g., on hosts with 64-bit int.
80884         There still are some problems with reeelly weird theoretical hosts
80885         (e.g., 33-bit int) but it's not worth worrying about now.
80886         * lib/sha1.c (rol): Likewise.
80887         (K1, K2, K3, K4): Remove unnecessary L suffix.
80888
80889 2006-05-10  Bruno Haible  <bruno@clisp.org>
80890
80891         * lib/des.c: Cast to avoid warnings.
80892
80893 2006-05-09  Bruno Haible  <bruno@clisp.org>
80894
80895         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80896         (Depends-on): Depend also on xsize, stdarg.
80897         (configure.ac): Add gl_XVASPRINTF.
80898
80899 2006-05-09  Bruno Haible  <bruno@clisp.org>
80900
80901         * m4/xvasprintf.m4: New file.
80902
80903 2006-05-09  Bruno Haible  <bruno@clisp.org>
80904
80905         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80906         (EOVERFLOW): Define fallback value.
80907         (xstrcat): New function.
80908         (xvasprintf): Recognize the special case of a string concatenation.
80909
80910 2006-05-08  Eric Blake  <ebb9@byu.net>
80911
80912         * gnulib-tool (func_version): Base copyright year on CVS date.
80913         (func_emit_copyright_notice): New function.
80914         (func_emit_lib_Makefile_am): Use it.
80915         (func_emit_tests_Makefile_am): Likewise.
80916         (func_import): Likewise.
80917
80918 2006-05-08  Bruno Haible  <bruno@clisp.org>
80919
80920         * modules/stdarg: New file.
80921         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80922
80923 2006-05-08  Bruno Haible  <bruno@clisp.org>
80924
80925         * m4/stdarg.m4: New file, from GNU gettext.
80926
80927 2006-05-08  Bruno Haible  <bruno@clisp.org>
80928
80929         * config/srclist.txt (build-aux/config.rpath): different from latest
80930         release.
80931
80932 2006-05-08  Bruno Haible  <bruno@clisp.org>
80933
80934         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80935
80936 2006-05-05  Jim Meyering  <jim@meyering.net>
80937
80938         * m4/warning.m4: New file, derived from bison's file by the same name.
80939
80940 2006-05-03  Bruno Haible  <bruno@clisp.org>
80941
80942         * lib/stdint_.h: Shorter URL.
80943         * lib/inttypes.h: Likewise.
80944
80945 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80946
80947         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80948
80949 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80950
80951         * lib/verify.h: Document the internals better.  Most of this change
80952         was written by Bruno Haible.
80953
80954 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * doc/verify.texi: New file, partly based on a proposal by
80957         Bruno Haible.
80958
80959 2006-05-02  Bruno Haible  <bruno@clisp.org>
80960
80961         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80962         test from here...
80963         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80964
80965 2006-04-29  Bruno Haible  <bruno@clisp.org>
80966
80967         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80968         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80969
80970 2006-04-29  Bruno Haible  <bruno@clisp.org>
80971
80972         * gnulib-tool: Make --update option actually work.
80973
80974 2006-04-29  Bruno Haible  <bruno@clisp.org>
80975
80976         * doc/gcd.texi: New file.
80977         * doc/gnulib.texi: Include it.
80978
80979 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * lib/getdate.y (get_date): When adding relative date, start with the
80982         initial time, not with the result of the first mktime call.
80983
80984 2006-04-25  Bruno Haible  <bruno@clisp.org>
80985
80986         * gnulib-tool (func_import): Output the include directives in three
80987         blocks, sorted separately.
80988         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80989
80990 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80991
80992         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80993         to define main with arguments, for C++.  Reported by Eric Blake.
80994         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80995         Prefer 'int main ()' to 'int main (void)', for C++.
80996         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80998         for 'main', for C99 and C++.
80999
81000 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81001
81002         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81003         Don't assume that exit status -1 is valid.
81004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81005         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81006         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81007         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81008         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81009         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81010         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81011         functions can be used without declaring them, or that you can
81012         exit with status -1.
81013         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81014
81015 2006-04-24  Karl Berry  <karl@gnu.org>
81016
81017         * config/srclist.txt (longdouble.m4): sync lost.
81018
81019 2006-04-24  Eric Blake  <ebb9@byu.net>
81020
81021         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81022
81023 2006-04-24  Bruno Haible  <bruno@clisp.org>
81024
81025         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81026         poll() implementation in AIX.
81027         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81028
81029 2006-04-24  Bruno Haible  <bruno@clisp.org>
81030
81031         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81032         assigned exactly once.
81033
81034 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81035             Bruno Haible  <bruno@clisp.org>
81036
81037         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81038         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81039         for AM_CPPFLAGS.
81040
81041 2006-04-23  Bruno Haible  <bruno@clisp.org>
81042
81043         * modules/copy-file: Depend on unistd.
81044         * modules/execute: Likewise.
81045         * modules/fatal-signal: Likewise.
81046         * modules/findprog: Likewise.
81047         * modules/mkdtemp : Likewise.
81048         * modules/pipe: Likewise.
81049         * modules/wait-process: Likewise.
81050
81051 2006-04-23  Bruno Haible  <bruno@clisp.org>
81052
81053         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81054         condition was already detected.
81055         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81056
81057 2006-04-23  Bruno Haible  <bruno@clisp.org>
81058
81059         * lib/copy-file.c: Include <unistd.h> unconditionally.
81060         * lib/execute.c: Likewise.
81061         * lib/fatal-signal.c: Likewise.
81062         * lib/findprog.c: Likewise.
81063         * lib/mkdtemp.c: Likewise.
81064         * lib/pipe.h: Likewise.
81065         * lib/pipe.c: Likewise.
81066         * lib/wait-process.h: Likewise.
81067
81068 2006-04-23  Bruno Haible  <bruno@clisp.org>
81069
81070         * gnulib-tool (func_usage): Fix --import description. Document
81071         --update.
81072         (func_import): Create temporary file in a temporary directory, if
81073         --dry-run is specified. Silence errors from 'grep' when there are no
81074         m4 files in $m4dir.
81075         (func_create_testdir): Silence errors from 'grep' when there are no
81076         m4 files in $m4dir.
81077         Reported by Karl Berry <karl@freefriends.org>.
81078
81079 2006-04-20  Bruno Haible  <bruno@clisp.org>
81080
81081         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81082         one argument, so that the code will be portable to Autoconf 2.60.
81083         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81084         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81085         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81086
81087 2006-04-19  Derek Price  <derek@ximbiot.com>
81088             Eric Blake  <ebb9@byu.net>
81089
81090         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81091         rather than "/full/path.h".  Update comment to match.  Shorten &
81092         generalize m4_translit call via AS_TR_CPP.
81093
81094 2006-04-19  Derek Price  <derek@ximbiot.com>
81095             Eric Blake  <ebb9@byu.net>
81096
81097         * lib/inttypes.h: Correct grammar in comment.
81098
81099 2006-04-18  Derek Price  <derek@ximbiot.com>
81100             Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * modules/inttypes: New file.
81103         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81104
81105 2006-04-18  Derek Price  <derek@ximbiot.com>
81106             Paul Eggert  <eggert@cs.ucla.edu>
81107
81108         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81109         New files.
81110
81111 2006-04-18  Derek Price  <derek@ximbiot.com>
81112             Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * lib/inttypes.h: New file.
81115         * lib/strtoimax.c: Assume <inttypes.h>.
81116
81117 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81118
81119         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81120         isn't mounted.  Problem reported by Kir Kolyshkin.
81121
81122 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81123
81124         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81125         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81126         Derek R. Price.
81127         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81128         implementation.
81129
81130 2006-04-12  Eric Blake  <ebb9@byu.net>
81131
81132         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81133         is now done automatically by the corresponding Autoconf macro.
81134
81135 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81138         time_r.h.
81139
81140 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         Merge regex changes from libc, removing some of our
81143         POSIX-conformance changes that were rejected and redoing them in a
81144         less-intrusive way.
81145
81146         * lib/regcomp.c (re_compile_internal, init_dfa):
81147         Length arg is now size_t, not Idx.  All uses changed.
81148         (peek_token): Forward decl now says internal_function.
81149         (__re_error_msgid, __re_error_msgid_idx):
81150         Now static rather than extern with attribute_hidden.
81151         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81152         For some reason libc prefers K&R style defns for external functions.
81153         (regerror) [!defined _LIBC]: Likewise.
81154         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81155         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81156         (build_range_exp, build_collating_symbol):
81157         Use K&R-style defn.
81158         (re_compile_fastmap): Use '\0' to memset, not 0.
81159         (utf8_sb_map): Make the calculations more obvious.
81160         (init_dfa, parse_bracket_exp, build_charclass_op):
81161         Call calloc and cast result, as glibc does.
81162         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81163         (build_range_exp, build_collating_symbol):
81164         Now internal functions.
81165
81166         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81167
81168         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81169         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81170         Don't depend on VMS; depend on __VMS instead, for POSIX
81171         namespace cleanness.
81172         (regoff_t): Define to ssize_t, not long int.
81173
81174         Remove the REG_ macros named below.  Instead, make the old names
81175         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81176         __USE_GNU_REGEX.
81177         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81178         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81179         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81180         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81181         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81182         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81183         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81184         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81185         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81186         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81187         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81188         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81189         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81190         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81191         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81192         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81193         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81194         (REG_NREGS):
81195         Remove.  All uses replaced by the old RE_* names.
81196         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81197         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81198         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81199         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81200         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81201         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81202         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81203         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81204         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81205         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81206         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81207         Don't bother having these macros be independent of each others'
81208         values, since they no longer exist in the POSIX name space.
81209
81210         Rename the following member names back to their old names,
81211         unless !__USE_GNU_REGEX.  All uses changed back.
81212         (buffer): Renamed from re_buffer.
81213         (allocated): Renamed from re_allocated.
81214         (used): Renamed from re_used.
81215         (syntax): Renamed from re_syntax.
81216         (fastmap): Renamed from re_fastmap.
81217         (translate): Renamed from re_translate.
81218         (can_be_null): Renamed from re_can_be_null.
81219         (regs_allocated): Renamed from re_regs_allocated.
81220         (fastmap_accurate): Renamed from re_fastmap_accurate.
81221         (no_sub): Renamed from re_no_sub.
81222         (not_bol): Renamed from re_not_bol.
81223         (not_eol): Renamed from re_not_eol.
81224         (newline_anchor): Renamed from re_newline_anchor.
81225         (num_regs): Renamed from rm_num_regs.
81226         (start): Renamed from rm_start.
81227         (end): Renamed from rm_end.
81228
81229         (free_state): Move up a bit.
81230
81231         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81232         #define to be empty.
81233         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81234         when that is what is intended.
81235         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81236         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81237         (MAX): New macro.
81238         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81239         All uses changed back to re_malloc, etc.  It's now the caller's
81240         responsibility to check for overflow; all callers changed.
81241         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81242         (re_x2nrealloc): Remove.
81243         (free_state): Remove decl.
81244
81245         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81246         (re_set_registers, re_exec):
81247         Use K&R-style defn.
81248
81249         2006-01-31  Roland McGrath  <roland@redhat.com>
81250
81251         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81252         Reported by Mike Frysinger <vapier@gentoo.org>.
81253
81254         2006-01-15  Andreas Jaeger  <aj@suse.de>
81255
81256         [BZ #1950]
81257         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81258         build_wcs_upper_buffer change.
81259         (build_wcs_upper_buffer): Change return type.
81260
81261         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81262
81263         * lib/regex_internal.h: Include <stdint.h> if available.
81264
81265         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81266
81267         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81268
81269         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81270
81271         * lib/regcomp.c: Adjust for changed secondary hash function.
81272
81273         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81274
81275         * lib/regex.h: Pretty printing.
81276         Clean up namespace a bit.
81277
81278         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81279
81280         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81281         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81282
81283         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81284                     Ulrich Drepper  <drepper@redhat.com>
81285
81286         [BZ #1302]
81287         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81288         changed.
81289         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81290
81291         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81292
81293         [BZ #281]
81294         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81295         * lib/regcomp.c: Remove unnecessary uses of
81296         unsigned RE_TRANSLATE_TYPE.
81297         * lib/regex_internal.h: Likewise.
81298         * lib/regex_internal.c: Likewise.
81299         * lib/regexec.c: Likewise.
81300         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81301
81302         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81303
81304         * lib/regexec.c (find_recover_state): Remove unnecessary
81305         initialization.
81306         (transit_state_bkref): Make DFA a const pointer.
81307         (get_subexp): Likewise.
81308         (check_arrival): Likewise.
81309         (update_cur_sifted_state): Likewise.
81310         (re_search_internal): Likewise.
81311         (prune_impossible_nodes): Likewise.
81312         (acquire_init_state_context): Likewise.
81313         (proceed_next_node): Likewise.
81314         (set_regs): Likewise.
81315         (free_fail_stack_return): Likewise.
81316         (check_arrival_expand_ecl): Mark DFA parameter as const.
81317         (check_arrival_expand_ecl_sub): Likewise.
81318         (check_subexp_limits): Likewise.
81319         (sub_epsilon_src_nodes):  Likewise.
81320         (add_epsilon_src_nodes):  Likewise.
81321         (merge_state_array): Likewise.
81322         (update_regs): Likewise.
81323         (build_trtable): Likewise.
81324         (sift_states_backward): Mark MCTX parameter as const.
81325         (build_sifted_states): Likewise.
81326         (update_cur_sifted_state): Likewise.
81327         (sift_states_mkref): Likewise.
81328         (check_arrival_expand_ecl): Mark eclosure as const.
81329         (check_dst_limits_calc_pos_1): Likewise.
81330         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81331         pointer.
81332
81333         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81334
81335         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81336         (transit_state_sb): Likewise.
81337         (transit_state_mb): Likewise.
81338         (sift_states_iter_mb): Likewise.
81339         (check_arrival_add_next_nodes): Likewise.
81340         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81341         [_LIBC] (re_search_2_stub): Use mempcpy.
81342
81343         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81344         mbrtowc for very simple UTF-8 case.
81345
81346         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81347         a pointer-to-const.
81348         (re_acquire_state_context): Likewise.
81349         * lib/regex_internal.h: Adjust prototypes.
81350
81351         * lib/regex.c: Prevent using C++ compilers.
81352
81353         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81354         (re_acquire_state_context): Likewise.
81355
81356 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         * modules/regex (Depends-on): Add ssize_t.
81359
81360 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81363         translation table.
81364
81365 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81368
81369 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81370             Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81373         <sys/types.h> and <inttypes.h>.
81374
81375 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81376
81377         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81378         `__error_t_defined', so argp.h will not typedef the former.
81379
81380 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81381
81382         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81383         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81384         glibc names.  Even if glibc is changed to conform to POSIX, the
81385         traditional names will be available anyway, since regex depends on
81386         the extensions module.  Also, fix a longstanding typo in the
81387         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81388         reported by Emanuele Giaquinta.  Also, change sense of cached
81389         variable, so that the message makes sense.
81390
81391 2006-03-24  Simon Josefsson  <jas@extundo.com>
81392
81393         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81394         including some doc fixes.
81395         (base64_encode_alloc): Fix +1 bug on allocation failures.
81396
81397 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81398
81399         * lib/base64.c (base64_encode): Do not read past end of array with
81400         unsanitized input on systems with CHAR_BIT > 8.
81401
81402 2006-03-24  Eric Blake  <ebb9@byu.net>
81403
81404         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81405
81406 2006-03-22  Karl Berry  <karl@gnu.org>
81407
81408         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81409         * config/srclistvars.sh (COREUTILS): new var.
81410
81411 2006-03-17  Jim Meyering  <jim@meyering.net>
81412
81413         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81414         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81415
81416 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81419         no longer needs it.  Instead, check that regoff_t is as least
81420         as wide as ptrdiff_t.
81421
81422         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81423         so that our regex.h stays compatible with the installed regex.
81424         This is helpful for installers who configure --without-included-regex.
81425         Problem reported by Emanuele Giaquinta.
81426
81427 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81430         Typedef to long int, not to off_, as POSIX will likely change
81431         in that direction.
81432
81433 2006-03-15  Eric Blake  <ebb9@byu.net>
81434
81435         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81436
81437 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81438
81439         * lib/argp-help.c (validate_uparams): Fix typo
81440         * lib/argp-parse.c (argp_default_options): Consistently begin help
81441         messages with a lowercase letter.
81442
81443 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81446         overrun buffers and shouldn't be used (much as gets shouldn't be
81447         used).
81448         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81449
81450 2006-03-08  Simon Josefsson  <jas@extundo.com>
81451
81452         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81453         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81454
81455 2006-03-08  Simon Josefsson  <jas@extundo.com>
81456
81457         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81458         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81459
81460 2006-03-08  Simon Josefsson  <jas@extundo.com>
81461
81462         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81463         signal that configure disabled the device.
81464
81465 2006-03-08  Simon Josefsson  <jas@extundo.com>
81466
81467         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81468         languages.
81469
81470 2006-03-07  Simon Josefsson  <jas@extundo.com>
81471
81472         * modules/getopt (Depends-on): Add unistd.
81473
81474         * modules/unistd: New file.
81475
81476 2006-03-07  Simon Josefsson  <jas@extundo.com>
81477
81478         * modules/gc-random: New file.
81479
81480 2006-03-07  Simon Josefsson  <jas@extundo.com>
81481
81482         * m4/unistd_h.m4: New file.
81483
81484 2006-03-07  Simon Josefsson  <jas@extundo.com>
81485
81486         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81487         test to be side-effect free by storing the result in the cache
81488         variable gl_cv_lib_readline, and moving the assignment of
81489         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81490         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81491
81492 2006-03-07  Simon Josefsson  <jas@extundo.com>
81493
81494         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81495         error on missing devices (the functions will return an error).
81496
81497         * m4/gc.m4: Move random stuff to gc-random.m4
81498
81499 2006-03-07  Simon Josefsson  <jas@extundo.com>
81500
81501         * lib/unistd_.h: New file.
81502
81503 2006-03-07  Simon Josefsson  <jas@extundo.com>
81504
81505         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81506
81507 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81510         Problem reported by Juan Manuel Guerrero.
81511
81512 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81513
81514         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81515         the unistd module.
81516         * lib/getlogin_r.c: Likewise.
81517         * lib/getlogin_r.h: Likewise.
81518         * lib/glob.c: Likewise.
81519         * lib/pagealign_alloc.c: Likewise.
81520         * lib/unistd_.h: Remove; no longer needed.
81521
81522 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81525         Add unistd.
81526         * modules/c-stack (Depends-on): Add unistd.
81527         * modules/getlogin_r: Likewise.
81528         * modules/glob: Likewise.
81529         * modules/pagealign_alloc: Likewise.
81530         * modules/unistd (Files): Remove lib/unistd_.h.
81531         (EXTRA_DIST): Remove.
81532         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81533         need unistd_.h.
81534         (MOSTLYCLEANFILES): Remove unistd.h-t.
81535
81536 2006-03-03  Simon Josefsson  <jas@extundo.com>
81537
81538         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81539
81540 2006-03-03  Simon Josefsson  <jas@extundo.com>
81541
81542         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81543         libidn and bison.
81544
81545 2006-03-03  Simon Josefsson  <jas@extundo.com>
81546
81547         * build-aux/maint.mk: Add indent target.
81548
81549 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81550
81551         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81552         our replacement poll.h in any case, to avoid a differing
81553         declaration from a system header.  Seen on AIX.
81554
81555 2006-03-01  Simon Josefsson  <jas@extundo.com>
81556
81557         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81558         <kasal@ucw.cz>.
81559
81560 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81561
81562         * modules/gettime (Depends-on): Add extensions module.
81563         * modules/nanosleep (Depends-on): Likewise.
81564         * modules/settime (Depends-on): Likewise.
81565
81566 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81569         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81570         pedantically.
81571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81572         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81573
81574         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81575         not "==".  Reported by Ralf Wildenhues.
81576
81577 2006-03-01  Karl Berry  <karl@gnu.org>
81578
81579         * doc/Copyright/request-*: new files, synced from gnuorg.
81580
81581 2006-03-01  Karl Berry  <karl@gnu.org>
81582
81583         * config/srclist.txt (Copyright/*): new entries.
81584
81585 2006-02-28  Simon Josefsson  <jas@extundo.com>
81586
81587         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81588
81589 2006-02-27  Simon Josefsson  <jas@extundo.com>
81590
81591         * lib/base64.h: Indent #define's.  From Jim Meyering
81592         <jim@meyering.net>.
81593
81594 2006-02-27  Jim Meyering  <jim@meyering.net>
81595
81596         Revert the change of 2006-02-24, so these files can continue
81597         to be sync'd from gettext.
81598         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81599         of `config.h'.
81600
81601 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81602
81603         * modules/intprops: New file.
81604         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81605         Add intprops.
81606         * modules/getloadavg (Files): Remove lib/intprops.h.
81607         (Depends-on): Add intprops.
81608         * modules/human: Likewise.
81609         * modules/inttostr: Likewise.
81610         * modules/openat: Likewise.
81611         * modules/sig2str: Likewise.
81612         * modules/userspec: Likewise.
81613         * modules/utimecmp: Likewise.
81614         * modules/xnanosleep: Likewise.
81615         * modules/xstrtol: Likewise.
81616
81617 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81618
81619         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81620         * modules/lock-tests (TESTS): Use $(EXEEXT).
81621         * modules/tls-tests: Likewise.
81622         * modules/argp-tests: Likewise.
81623         (check_PROGRAMS): New var, replacing...
81624         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81625
81626 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81627
81628         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81629         `config.h'.
81630
81631 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81632
81633         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81634
81635 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81636
81637         Sync from coreutils.
81638         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81639         gl_CHDIR_SAFER.
81640
81641 2006-02-22  Jim Meyering  <jim@meyering.net>
81642
81643         Sync from coreutils.
81644         * m4/chdir-safer.m4: New file.
81645
81646 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81647
81648         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81649         AT_FDCWD exceeds INT_MAX.
81650         * lib/openat.h (AT_FDCWD): Likewise.
81651
81652 2006-02-17  Eric Blake  <address@hidden>
81653
81654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81655
81656 2006-02-16  Simon Josefsson  <jas@extundo.com>
81657
81658         * modules/getaddrinfo (Depends-on): Add sys_socket.
81659
81660 2006-02-15  Simon Josefsson  <jas@extundo.com>
81661
81662         * build-aux/maint.mk: Add dsyntax-check rule.
81663
81664 2006-02-15  Eric Blake  <ebb9@byu.net>
81665
81666         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81667         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81668         'present but cannot compile' warnings on cygwin.
81669         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81670         use ws2tcpip.h if sys/socket.h works.
81671         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81672         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81673
81674 2006-02-14  Simon Josefsson  <jas@extundo.com>
81675
81676         * modules/maintainer-makefile (Files): Rename.
81677
81678         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81679         and (the local) Makefile.cfg to maint-cfg.mk.
81680
81681         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81682         to the latter.
81683
81684         * modules/maintainer-makefile: New module.
81685
81686         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81687         severaly stripped to make it possible to build it up from scratch
81688         with reliable tests.
81689
81690         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81691         fixes to permit overriding the default actions when configure and
81692         makefile are not available.
81693
81694 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         Sync from coreutils.
81697         * modules/lstat (Depends-on): Don't depend on xalloc.
81698         (License): Change from GPL to LGPL, since this is now simply a
81699         replacement for a libc function.
81700
81701 2006-02-14  Jim Meyering  <jim@meyering.net>
81702
81703         Sync from coreutils.
81704
81705         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81706         failure on deficient systems, and simplify gnulib lgpl dependencies.
81707         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81708         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81709
81710         * lib/xalloc-die.c: Remove unused definition of N_.
81711
81712 2006-02-14  Jim Meyering  <jim@meyering.net>
81713
81714         Sync from coreutils.
81715         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81716         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81717         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81718         double-quote uses of that variable, to accommodate the rare case in
81719         which getmntent is available in none of the libraries checked.  This
81720         happens at least on FreeBSD 5.0.
81721
81722 2006-02-13  Simon Josefsson  <jas@extundo.com>
81723
81724         * gnulib-tool (Usage): Fix --import, from
81725         karl@freefriends.org (Karl Berry).
81726
81727 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81728
81729         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81730
81731 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81732
81733         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81734         "autoupdate" on 2005-12-12.
81735
81736 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81737
81738         * modules/closeout (Depends-on): Remove atexit.
81739
81740 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81743         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81744
81745 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81748         __EXTENSIONS__ if this causes compilation to fail.  Problem
81749         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81750         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81751
81752 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81753
81754         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81755         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81756         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81757         All uses changed.
81758
81759 2006-01-26  Simon Josefsson  <jas@extundo.com>
81760
81761         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81762         prototype is visible on mingw32.
81763
81764         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81765         for mingw32.
81766
81767         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81768         mingw32).
81769
81770 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81771
81772         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81773         attempt to open for write; this always fails, at least on POSIX
81774         hosts.  This reinstates the 2006-01-09 change, which was
81775         inadvertently removed.
81776
81777 2006-01-26  Bruno Haible  <bruno@clisp.org>
81778
81779         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81780         Reported by Paul Eggert.
81781
81782 2006-01-26  Bruno Haible  <bruno@clisp.org>
81783             Paul Eggert  <eggert@cs.ucla.edu>
81784
81785         * lib/stdbool_.h (_Bool)
81786         [(! (defined __cplusplus || defined __BEOS__)
81787           && !defined __GNUC__
81788           && !(defined __HP_cc || defined __xlc__
81789                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81790                || defined __sgi))]:
81791         #define to signed char in these cases too; this simplifies
81792         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81793         etc., separately) and makes it more conservative.
81794
81795 2006-01-25  Simon Josefsson  <jas@extundo.com>
81796
81797         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81798         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81799         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81800
81801 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81802
81803         * lib/argp-namefrob.h: Bugfix. Remove stray #
81804
81805 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81806
81807         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81808         so that we test the test.
81809         Check for yet another HP-UX cc bug involving *bool |= bool.
81810
81811 2006-01-25  Karl Berry  <karl@gnu.org>
81812
81813         * config/srclist.txt (vasnprintf.c): sync lost.
81814
81815 2006-01-25  Jim Meyering  <jim@meyering.net>
81816
81817         Sync from the stable (b5) branch of coreutils:
81818
81819         * lib/fts.c (fts_children): Don't let close() clobber errno from
81820         failed fchdir().
81821
81822         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81823         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81824         a dangling symlink.  That can also happen at least for ELOOP.
81825         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81826         FYI, this bug predates the inclusion of fts.c in coreutils.
81827
81828         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81829         in their own block, so pre-c99 compilers don't object.
81830
81831         Avoid the double-free (first in fts_read, second in fts_close) that
81832         would occur when an `active' directory is made inaccessible (e.g.,
81833         via chmod a-x) during a traversal.
81834         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81835         before returning.  Reproduce this failure by
81836         mkdir -p a/b; cd a; chmod a-x . b
81837         Reported by Stavros Passas.
81838
81839 2006-01-25  Jim Meyering  <jim@meyering.net>
81840
81841         * lib/fileblocks.c: Remove more useless parentheses.
81842         * lib/readutmp.h: Likewise.
81843
81844 2006-01-25  Bruno Haible  <bruno@clisp.org>
81845
81846         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81847         warnings.
81848         Reported by Paul Eggert.
81849
81850 2006-01-25  Bruno Haible  <bruno@clisp.org>
81851
81852         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81853         rid of a trap command. For Solaris sh.
81854         Reported by Mark D. Baushke <mdb@gnu.org>.
81855
81856 2006-01-24  Simon Josefsson  <jas@extundo.com>
81857
81858         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81859         Bruno.
81860
81861 2006-01-24  Karl Berry  <karl@gnu.org>
81862
81863         * config/srclist.txt (argp-namefrob.h): sync lost.
81864
81865 2006-01-24  Jim Meyering  <jim@meyering.net>
81866
81867         * modules/openat (Files): Add lib/intprops.h.
81868         From Mark D. Baushke.
81869
81870 2006-01-24  Jim Meyering  <jim@meyering.net>
81871
81872         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81873         Reported by Mark D. Baushke.
81874
81875 2006-01-24  Jim Meyering  <jim@meyering.net>
81876
81877         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81878
81879 2006-01-24  Bruno Haible  <bruno@clisp.org>
81880
81881         * modules/strnlen (Maintainer): Change from glibc to all.
81882
81883 2006-01-24  Bruno Haible  <bruno@clisp.org>
81884
81885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81886         Patch by Paul Eggert.
81887
81888 2006-01-24  Bruno Haible  <bruno@clisp.org>
81889
81890         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81891         already has it.
81892         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81893         2005-11-26.
81894
81895         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81896         'signed char' to avoid problems with the built-in _Bool type.
81897         Reported by Paul Eggert on 2005-11-26.
81898
81899 2006-01-24  Bruno Haible  <bruno@clisp.org>
81900
81901         * gnulib-tool (func_import): Avoid constructing complicated sed
81902         expressions inside backquote.
81903         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81904
81905 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81906
81907         These changes imported from libc.
81908         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81909         test and two separate function calls.
81910         * lib/strndup.c (__strndup): Add libc_hidden_def.
81911
81912 2006-01-23  Simon Josefsson  <jas@extundo.com>
81913
81914         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81915         Remove the test_*_SOURCES variable: automake infers it by default.
81916         * modules/tls-tests: Likewise.
81917
81918 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81919
81920         Work around porting bugs reported by Dieter in
81921         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81922         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81923         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81924         Include "getopt.h" first, to check interface.
81925         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81926         !HAVE_DECL_GETENV.
81927         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81928         (__strndup): Revert to K&R-style function dfns, the glibc style.
81929         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81930         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81931         Include strnlen.h first, to get prototype properly.
81932         (strnlen): Renamed from __strnlen.
81933         Remove weak alias.
81934
81935 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81936
81937         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81938
81939 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81940
81941         * config/srclist.txt: Adjust to reflect glibc reorganization.
81942         This affects only comments.
81943
81944 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81945
81946          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81947          Reported by Bruce Korb <bkorb@gnu.org>.
81948
81949 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81950
81951         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81952         to pacify gcc -Wswitch-default.
81953
81954 2006-01-22  Bruno Haible  <bruno@clisp.org>
81955
81956         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81957         temporary buffer for sprintf, take into account the precision also
81958         for 'd', 'i', 'u', 'o', 'x', 'X'.
81959
81960 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81961
81962         * modules/argp-tests: New module
81963         * tests/test-argp.c: New file
81964         * tests/test-argp-2.sh: New file
81965
81966 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81967
81968         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81969         (__argp_base_name): Removed
81970         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81971         typo.
81972         (__argp_base_name): Provide macro definition or extern declaration
81973         depending on the configuration
81974
81975 2006-01-20  Simon Josefsson  <jas@extundo.com>
81976
81977         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81978
81979 2006-01-20  Simon Josefsson  <jas@extundo.com>
81980
81981         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81982
81983 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81986         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81987         Suggested by Bruno Haible.
81988
81989 2006-01-20  Karl Berry  <karl@gnu.org>
81990
81991         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81992         until changes propagate, I guess.
81993
81994 2006-01-19  Simon Josefsson  <jas@extundo.com>
81995
81996         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81997
81998 2006-01-19  Simon Josefsson  <jas@extundo.com>
81999
82000         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82001
82002 2006-01-19  Simon Josefsson  <jas@extundo.com>
82003
82004         * gnulib-tool: Set check_PROGRAMS.
82005
82006         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82007         modules/des-tests, modules/gc-arcfour-tests,
82008         modules/gc-arctwo-tests, modules/gc-des-tests,
82009         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82010         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82011         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82012         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82013         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82014         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82015         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82016         test_*_SOURCES.
82017
82018 2006-01-18  Simon Josefsson  <jas@extundo.com>
82019
82020         * modules/socklen (Depends-on): Depend on sys_socket.
82021
82022 2006-01-18  Simon Josefsson  <jas@extundo.com>
82023
82024         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82025         modules/des-tests, modules/gc-arcfour-tests,
82026         modules/gc-arctwo-tests, modules/gc-des-tests,
82027         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82028         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82029         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82030         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82031         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82032         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82033         $(EXEEXT) to automake TESTS variable, for mingw32.
82034
82035 2006-01-17  Simon Josefsson  <jas@extundo.com>
82036
82037         * modules/socklen (Include): Need sys/socket.h.
82038
82039 2006-01-17  Bruno Haible  <bruno@clisp.org>
82040
82041         * modules/ssize_t (Include): Add <sys/types.h>.
82042
82043 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82046         it's not portable and it doesn't work with cross-compiles.
82047         Problem reported by Bruno Haible.  Fix missing-$ typo in
82048         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82049         -zignore from being used with Sun's C compiler.
82050
82051 2006-01-12  Simon Josefsson  <jas@extundo.com>
82052
82053         * lib/base64.c: Fix warning, reported by Bruno Haible
82054         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82055
82056 2006-01-12  Bruno Haible  <bruno@clisp.org>
82057
82058         * modules/ldd: New file.
82059         * build-aux/ldd.sh.in: New file.
82060         * MODULES.html.sh (Support for building libraries and executables): Add
82061         ldd.
82062
82063 2006-01-12  Bruno Haible  <bruno@clisp.org>
82064
82065         * m4/ldd.m4: New file.
82066
82067 2006-01-12  Bruno Haible  <bruno@clisp.org>
82068
82069         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82070         endless loop while replacing $auxdir with build-aux.
82071
82072 2006-01-11  Simon Josefsson  <jas@extundo.com>
82073
82074         * lib/stdint_.h (SIZE_MAX): Add missing (.
82075
82076 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82077
82078         Sync from coreutils.
82079         * lib/md5.c: Fix commentary typos.
82080         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82081         * lib/md5.h (__attribute__): Remove; unused.
82082         * lib/sha1.c: Fix commentary to match md5 better.
82083         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82084         so that we don't need to worry about alignment.  All uses changed.
82085         This merges the 2005-10-28 md5 change into sha1.
82086
82087 2006-01-11  Jim Meyering  <jim@meyering.net>
82088
82089         Sync from coreutils.
82090         * lib/md5.c (OP): Fix spacing.
82091
82092 2006-01-11  Bruno Haible  <bruno@clisp.org>
82093
82094         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82095         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82096         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82097
82098 2006-01-11  Bruno Haible  <bruno@clisp.org>
82099
82100         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82101         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82102         the "early" section as well.
82103
82104 2006-01-11  Bruno Haible  <bruno@clisp.org>
82105
82106         Avoid "ar: no archive members specified" error on MacOS X.
82107         * gnulib-tool (func_modules_add_dummy): New function.
82108         (func_import, func_create_testdir): Invoke it.
82109
82110 2006-01-11  Bruno Haible  <bruno@clisp.org>
82111
82112         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82113         with $auxdir in AC_CONFIG_FILES statements.
82114
82115 2006-01-11  Bruno Haible  <bruno@clisp.org>
82116
82117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82118         Initialize also noinst_HEADERS to empty.
82119
82120 2006-01-11  Bruno Haible  <bruno@clisp.org>
82121
82122         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82123         variables.
82124         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82125         autoreconf.
82126
82127 2006-01-11  Bruno Haible  <bruno@clisp.org>
82128
82129         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82130         overridable by the user.
82131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82132
82133 2006-01-10  Simon Josefsson  <jas@extundo.com>
82134
82135         * modules/sys_socket: New file.
82136
82137 2006-01-10  Simon Josefsson  <jas@extundo.com>
82138
82139         * m4/sys_socket_h.m4: New file.
82140
82141 2006-01-10  Simon Josefsson  <jas@extundo.com>
82142
82143         * lib/socket_.h: New file.
82144
82145 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         * modules/readutmp (Maintainer): Add myself.
82148
82149 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82150
82151         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82152         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82153         People who are still concerned with buggy memcmp implementations
82154         can invoke gl_FUNC_MEMCMP themselves.
82155
82156 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         * lib/regex_internal.h (BITSET_WORD_BITS):
82159         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82160         preprocessor mishandles large unsigned values as if they were signed.
82161         Problem reported by Claudio Fontana in
82162         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82163
82164 2006-01-10  Jim Meyering  <jim@meyering.net>
82165
82166         Avoid the double-free (first in fts_read, second in fts_close) that
82167         would occur when an `active' directory is made inaccessible (e.g.,
82168         via chmod a-x) during a traversal.
82169         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82170         before returning.  Reproduce this failure by
82171         mkdir -p a/b; cd a; chmod a-x . b
82172         Reported by Stavros Passas.
82173
82174         Sync from coreutils.
82175         * lib/sha1.c: Tweak grammar in a comment.
82176
82177 2006-01-10  Jim Meyering  <jim@meyering.net>
82178
82179         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82180         Patch by Joerg Sonnenberger.
82181
82182 2006-01-10  Bruno Haible  <bruno@clisp.org>
82183
82184         * modules/readutmp: Depend on module free.
82185         * modules/strtok_r: Depend on module restrict.
82186
82187 2006-01-10  Bruno Haible  <bruno@clisp.org>
82188
82189         * modules/gettext (configure.ac): Add an invocation of
82190         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82191
82192 2006-01-10  Bruno Haible  <bruno@clisp.org>
82193
82194         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82195         Reported by Werner Lemberg <wl@gnu.org>.
82196
82197 2006-01-10  Bruno Haible  <bruno@clisp.org>
82198
82199         * lib/localcharset.c: Update from GNU gettext.
82200
82201 2006-01-10  Bruno Haible  <bruno@clisp.org>
82202
82203         * lib/argp.h (__const): Remove macro. Use const instead.
82204         * lib/argp-fmtstream.h (__const): Likewise.
82205         * lib/glob_.h (__const): Remove macro.
82206         * lib/glob-libc.h: Use const instead of __const.
82207
82208 2006-01-10  Bruno Haible  <bruno@clisp.org>
82209
82210         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82211         variable.
82212         Needed to avoid an automake error regarding the 'gettext' module.
82213
82214 2006-01-09  Simon Josefsson  <jas@extundo.com>
82215
82216         * modules/inet_ntop (Depends-on): Add restrict.
82217
82218 2006-01-09  Simon Josefsson  <jas@extundo.com>
82219
82220         * modules/gc-rijndael-tests (License): Put under LGPL.
82221
82222         * modules/gc-des-tests (License): Likewise.
82223
82224         * modules/gc-arcfour-tests (License): Likewise.
82225
82226         * modules/gc-arctwo-tests (License): Likewise.
82227
82228         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82229
82230         * modules/gc-hmac-sha1-tests (Files): Likewise.
82231
82232         * modules/gc-hmac-md5-tests (License): Likewise.
82233
82234         * modules/gc-sha1-tests (License): Likewise.
82235
82236         * modules/gc-md5-tests (License): Likewise.
82237
82238         * modules/gc-md4-tests (License): Likewise.
82239
82240         * modules/gc-md2-tests (License): Likewise.
82241
82242         * modules/gc-tests (License): Likewise.
82243
82244         * modules/des-tests (License): Likewise.
82245
82246         * modules/md4-tests (License): Likewise.
82247
82248         * modules/md2-tests (License): Likewise.
82249
82250 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82251
82252         Sync from coreutils:
82253
82254         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82255         * modules/lib-ignore: New file.
82256         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82257         chdir-safer.m4, lchmod.m4.
82258         * modules/openat: Add mkdirat.c, openat-priv.h.
82259
82260 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         Sync from coreutils.
82263         * m4/lib-ignore.m4: New file.
82264         * m4/lchmod.m4: New file.
82265
82266 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82267
82268         Sync from coreutils.
82269         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82270         for write access: POSIX says that must fail.
82271         * lib/fts.c (diropen): Likewise.
82272         * lib/save-cwd.c (save_cwd): Likewise.
82273         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82274         well, for minor improvements on hosts that lack O_DIRECTORY.
82275         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82276         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82277         Fall back on chown if open failed with EACCES.
82278
82279         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82280         Report an error at compile-time if only a 1-second nominal clock
82281         resolution is found.
82282
82283         * lib/lchmod.h: New file.
82284         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82285         (make_dir_parents): Use lchown rather than chown, and
82286         lchmod rather than chmod.
82287
82288         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82289         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82290         "proc" reported by n0dalus.
82291
82292         * lib/mountlist.c: Include <limits.h>.
82293         (dev_from_mount_options)
82294         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82295         New function.  It no longer assumes "dev=" has the System V meaning
82296         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82297         (read_file_system_list)
82298         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82299         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82300         dev= in that case.
82301
82302         * lib/posixtm.h (PDS_PRE_2000): New macro.
82303         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82304         allow_century.  All usages changed.  Reject dates outside the range
82305         1969-1999 if PDS_PRE_2000 is used.
82306
82307 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82308
82309         Sync from coreutils.
82310         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82311         (Time of day items): Mention the possibility of leap seconds.
82312         Problem reported by Dr. David Alan Gilbert.
82313
82314 2006-01-09  Jim Meyering  <jim@meyering.net>
82315
82316         Sync from coreutils.
82317
82318         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82319
82320         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82321
82322         * lib/modechange.c (mode_compile): Reject an invalid mode string
82323         that starts with an octal digit.  From Andreas Gruenbacher.
82324
82325         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82326         and dup to open_safer and dup_safer, respectively.
82327         (openat_permissive): Fix typo in comment.
82328
82329         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82330         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82331         (_): Remove; no longer needed.
82332         (openat): Renamed from rpl_openat; no need for rpl_openat
82333         since openat.h renames openat for us.
82334         Replace most of the body with a call to openat_permissive,
82335         to avoid duplicate code.
82336         Port to (probably hypothetical) environments were mode_t is
82337         wider than int.
82338         (openat_permissive): Require mode arg, so that we can check
82339         types better.  Put it just after flags.  Change cwd failure
82340         indicator from pointer-to-bool to pointer-to-errno-value.
82341         All callers changed.
82342         Invoke openat_save_fail and/or openat_restore_fail if
82343         cwd_errno is null, so that openat can call us.
82344         (openat_permissive, fdopendir, fstatat, unlinkat):
82345         Simplify errno handling to avoid some duplicate code,
82346         as it's OK to set errno on success.
82347         * lib/openat.h: Revamp code so that function macros depend on
82348         __OPENAT_PREFIX only, not also on AT_FDCWD.
82349         (openat_ro): Remove.  Caller changed to use openat_permissive.
82350         (openat_permissive): Now a macro, if not a function.
82351         (openat_restore_fail, openat_save_fail): Now always functions,
82352         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82353
82354         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82355         and openat.c.
82356         * lib/mkdirat.c: Include openat-priv.h.
82357         Remove definitions of macros defined therein.
82358         * lib/openat.c: Likewise.
82359
82360         * lib/mkdirat.c (mkdirat): New file and function.
82361         * lib/openat.h (mkdirat): Declare.
82362
82363         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82364
82365         * lib/openat.h (openat_permissive): Declare.
82366         (openat_ro): Define.
82367
82368         * lib/openat.c (EXPECTED_ERRNO): New macro.
82369         (openat_permissive): New function -- used in remove.c rewrite.
82370         (all functions): Set errno just before returning, only if there
82371         was an actual failure.
82372         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82373
82374         Emulate openat-family functions using Linux's procfs, if possible.
82375         Idea and some code based on Ulrich Drepper's glibc changes.
82376
82377         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82378         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82379         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82380         before falling back on save_cwd and restore_cwd.
82381         (fdopendir, fstatat, unlinkat): Likewise.
82382
82383         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82384         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82385
82386         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82387         as second argument to va_arg.  Otherwise, some versions of gcc
82388         warn that `if this code is reached, the program will abort'.
82389
82390 2006-01-09  Jim Meyering  <jim@meyering.net>
82391
82392         Sync from coreutils.
82393         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82394         Require openat-priv.h.
82395
82396 2006-01-09  Bruno Haible  <bruno@clisp.org>
82397
82398         * modules/strnlen (Include): Use strnlen.h.
82399
82400 2006-01-09  Bruno Haible  <bruno@clisp.org>
82401
82402         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82403
82404 2006-01-09  Bruno Haible  <bruno@clisp.org>
82405
82406         * lib/sysexit_.h (EX_OK): New macro.
82407         Suggested by Martin Lambers <marlam@marlam.de>.
82408
82409 2006-01-09  Bruno Haible  <bruno@clisp.org>
82410
82411         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82412         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82413
82414 2006-01-09  Bruno Haible  <bruno@clisp.org>
82415
82416         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82417         numbers.
82418
82419 2006-01-09  Bruno Haible  <bruno@clisp.org>
82420
82421         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82422         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82423         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82424         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82425
82426 2006-01-09  Bruno Haible  <bruno@clisp.org>
82427
82428         * build-aux/javacomp.sh.in: New file, moved from lib/.
82429         * modules/javacomp-script (Files): Update.
82430         (configure.ac): Add AC_CONFIG_FILES invocation.
82431         (EXTRA_DIST): Remove variable.
82432
82433         * build-aux/javaexec.sh.in: New file, moved from lib/.
82434         * modules/javaexec (Files): Update.
82435         (configure.ac): Add AC_CONFIG_FILES invocation.
82436         (EXTRA_DIST): Remove javaexec.sh.in.
82437
82438         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82439         * modules/csharpcomp-script (Files): Update.
82440         (configure.ac): Add AC_CONFIG_FILES invocation.
82441         (EXTRA_DIST): Remove variable.
82442
82443         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82444         * modules/csharpexec (Files): Update.
82445         (configure.ac): Add AC_CONFIG_FILES invocation.
82446         (EXTRA_DIST): Remove csharpexec.sh.in.
82447
82448 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82449
82450         Sync from coreutils.
82451
82452         Add POSIX ACL support
82453         * lib/acl.h (copy_acl, set_acl): Add declarations.
82454         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82455         systems other than Linux.
82456         (chmod_or_fchmod): New function: use fchmod when possible,
82457         and chmod otherwise.
82458         (file_has_acl): Add a POSIX ACL implementation, with a
82459         Linux-specific subcase.
82460         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82461         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82462         acls are unsupported.
82463         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82464         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82465         are unsupported.
82466
82467 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82468
82469         Sync from coreutils.
82470         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82471
82472 2006-01-07  Bruno Haible  <bruno@clisp.org>
82473
82474         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82475         gl_EARLY.
82476
82477 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82478
82479         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82480         Problem reported for Mingw by Mark Junker.
82481
82482 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82483
82484         * README: Gnulib normally doesn't generate a tarball.
82485
82486 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82489         long int, not int, for nanosecond counts, so that people who are
82490         used to POSIX struct timespec won't be surprised.  Reported by Jim
82491         Meyering.
82492
82493 2005-12-28  Bruno Haible  <bruno@clisp.org>
82494
82495         * build-aux/config.rpath: Update from GNU gettext.
82496
82497 2005-12-16  Jim Meyering  <jim@meyering.net>
82498
82499         * modules/fprintftime: New module.
82500         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82501
82502 2005-12-16  Jim Meyering  <jim@meyering.net>
82503
82504         * m4/fprintftime.m4: New file.
82505
82506 2005-12-16  Jim Meyering  <jim@meyering.net>
82507
82508         * lib/fprintftime.c, lib/fprintftime.h: New files.
82509
82510 2005-12-15  Simon Josefsson  <jas@extundo.com>
82511
82512         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82513         new m4/socklen.m4.
82514
82515 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82516
82517         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82518         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82519
82520 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82521
82522         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82523         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82524         struct uparams is valid. Fall back to the default values if it is
82525         not.
82526
82527 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82528
82529         * modules/argp (Files): Add argp-pin.c
82530         (Depends-on): dirname
82531         (lib_SOURCES): Add argp-pin.c
82532
82533 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82534
82535         * m4/argp.m4:  Check if program_invocation_name and
82536         program_invocation_short_name are declared and define appropriate
82537         macros if they are not.
82538
82539 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82540
82541         * lib/argp-help.c (__argp_base_name): New function
82542         (__argp_short_program_name): Rewrite using __argp_base_name
82543         * lib/argp-namefrob.h: Define program_invocation_name and
82544         program_invocation_short_name if requested
82545         (__argp_base_name): Add prototype
82546         * lib/argp-parse.c (argp_def): Use gettext wrappers
82547         (argp_default_parser): Use __argp_base_name
82548         * lib/argp-pin.c: New file. Defines program_invocation_name and
82549         program_invocation_short_name on systems that lack them.
82550
82551 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82552
82553         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82554         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82555         porting problem reported by Georg Schwarz in
82556         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82557
82558 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82559
82560         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82561         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82562         porting problem reported by Georg Schwarz in
82563         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82564
82565 2005-12-05  Bruno Haible  <bruno@clisp.org>
82566
82567         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82568         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82569         Reported by Mark Junker <mjscod@gmx.de>.
82570
82571 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82572
82573         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82574         Use implementation from Albert Chin, with some
82575         comments/corrections by Stepan Kasal and myself.
82576
82577 2005-12-02  Bruno Haible  <bruno@clisp.org>
82578
82579         * gnulib-tool (func_import): Accept GPLed build tool modules when
82580         --lgpl is given.
82581         * modules/csharpcomp-script: New file.
82582         * modules/csharpcomp: Depend on it.
82583         * modules/javacomp-script: New file.
82584         * modules/javacomp: Depend on it.
82585         Suggested by Simon Josefsson.
82586
82587 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82588
82589         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82590         statement, to work around an HP-UX 10.20 compiler bug reported by
82591         Peter O'Gorman.
82592
82593 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * modules/savedir (Depends-on): Add openat.
82596
82597 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82600         (uintmax_t) [defined uintmax_t]: Do not declare.
82601         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82602         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82603         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82604         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82605         sake of portability to weird hosts that C allows (though we don't
82606         know of any practical examples).
82607
82608         * lib/savedir.h (fdsavedir): New decl.
82609         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82610         contains most of the former guts of savedir.
82611         (savedir): Use savedirstream.
82612         Include "openat.h".
82613
82614 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         * modules/obstack (Files): Add m4/ulonglong.m4.
82617         Problem reported by Davide Angelocola.
82618
82619 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82620
82621         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82622         coreutils no longer futzes with rounding modes.
82623
82624 2005-11-14  Jim Meyering  <jim@meyering.net>
82625
82626         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82627         replacement of mkstemp.
82628
82629 2005-11-10  Simon Josefsson  <jas@extundo.com>
82630
82631         * lib/readline.c: Remove EOL.
82632
82633 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82634
82635         * modules/gethrxtime (Depends-on): Add gettime.
82636
82637 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82638
82639         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82640         or gettimeofday; no longer needed.
82641
82642 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82643
82644         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82645         time business.
82646         (gethrxtime) [! (HAVE_NANOUPTIME
82647         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82648         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82649         our own approximation.
82650
82651 2005-11-08  Eric Blake  <ebb9@byu.net>
82652
82653         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82654
82655 2005-11-08  Eric Blake  <ebb9@byu.net>
82656
82657         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82658
82659 2005-11-04  Bruno Haible  <bruno@clisp.org>
82660
82661         * gnulib-tool: Implement --update mode.
82662
82663 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82664
82665         Fix porting problem reported by Theodoros V. Kalamatianos.
82666         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82667         Don't assume that futimes failing means we must fail.
82668
82669 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82670
82671         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82672         variables to suggest the intended function of the PATH_MAX check.
82673
82674 2005-10-30  Kean Johnston  <jkj@sco.com>
82675
82676         Trivial changes to support SCO systems.
82677         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82678         as PATH_MAX.
82679         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82680         where __ptr is null when no I/O is pending.
82681
82682 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82683
82684         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82685         leave errno alone.  Problem reported by Dmitry V. Levin.
82686
82687 2005-10-28  Simon Josefsson  <jas@extundo.com>
82688
82689         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82690         Test more.
82691
82692         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82693
82694         * modules/md2, modules/md2-tests: New files.
82695
82696 2005-10-28  Simon Josefsson  <jas@extundo.com>
82697
82698         * m4/inet_ntop.m4: More tests.
82699
82700         * m4/gc-md2.m4, md2.m4: New file.
82701
82702 2005-10-28  Simon Josefsson  <jas@extundo.com>
82703
82704         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82705         "restrict" keywords, as per POSIX.  Protect the function
82706         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82707         Don't use K&R prototypes.  Check the sprintf return values.
82708         Re-define EAFNOSUPPORT if not present.  Indent.
82709
82710         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82711         suggested by Bruno Haible <bruno@clisp.org>.
82712
82713         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82714
82715         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82716
82717         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82718         libgcrypt).
82719
82720         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82721
82722         * lib/md2.h, lib/md2.c: New files.
82723
82724 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82725
82726         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82727         errno alone.  Problem reported by Frederic Jolliton.
82728
82729 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         * modules/verify (License): Change from GPL to LGPL.  This is a
82732         tiny module and there are apparently near-equivalents that are
82733         under the BSD license.
82734
82735 2005-10-24  Simon Josefsson  <jas@extundo.com>
82736
82737         * modules/sha1: Relicense to LGPL.
82738
82739 2005-10-24  Simon Josefsson  <jas@extundo.com>
82740
82741         * lib/md4.h: Shrink buffer size, now that we changed the type.
82742
82743 2005-10-23  Simon Josefsson  <jas@extundo.com>
82744
82745         * gnulib-tool (func_import): Fix --tests-base.
82746
82747 2005-10-22  Simon Josefsson  <jas@extundo.com>
82748
82749         * modules/arcfour (Depends-on): Need stdint.
82750
82751 2005-10-22  Simon Josefsson  <jas@extundo.com>
82752
82753         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82754         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82755
82756 2005-10-22  Simon Josefsson  <jas@extundo.com>
82757
82758         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82759         suggested by Bruno Haible <bruno@clisp.org>.
82760
82761 2005-10-22  Simon Josefsson  <jas@extundo.com>
82762
82763         * lib/crc.h: Include stddef.h, for size_t.
82764
82765 2005-10-22  Simon Josefsson  <jas@extundo.com>
82766
82767         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82768         arcfour_context struct (simplify test vector testing in GNU
82769         Shishi).
82770
82771 2005-10-21  Simon Josefsson  <jas@extundo.com>
82772
82773         * modules/des, modules/des-tests: New files.
82774
82775         * modules/gc-des, modules/gc-des-tests: New files.
82776
82777         * tests/test-des.c, tests/test-gc-des.c: New file.
82778
82779 2005-10-21  Simon Josefsson  <jas@extundo.com>
82780
82781         * modules/arctwo, modules/arctwo-tests: New files.
82782
82783         * tests/test-arctwo.c: New file.
82784
82785         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82786
82787         * tests/test-gc-arctwo.c: New file.
82788
82789 2005-10-21  Simon Josefsson  <jas@extundo.com>
82790
82791         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82792         Bruno Haible <bruno@clisp.org>.
82793
82794         * m4/gc-des.m4: New file.
82795
82796 2005-10-21  Simon Josefsson  <jas@extundo.com>
82797
82798         * m4/arctwo.m4: New file.
82799
82800         * m4/gc-arctwo.m4: New file.
82801
82802 2005-10-21  Simon Josefsson  <jas@extundo.com>
82803
82804         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82805         block.
82806
82807 2005-10-21  Simon Josefsson  <jas@extundo.com>
82808
82809         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82810         <bruno@clisp.org>.
82811
82812         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82813
82814         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82815         Bruno Haible <bruno@clisp.org>.
82816
82817         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82818         <bruno@clisp.org>.
82819
82820 2005-10-21  Simon Josefsson  <jas@extundo.com>
82821
82822         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82823
82824 2005-10-21  Simon Josefsson  <jas@extundo.com>
82825
82826         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82827
82828 2005-10-21  Simon Josefsson  <jas@extundo.com>
82829
82830         * lib/des.h, lib/des.c: New files.
82831
82832         * lib/gc-gnulib.c: Support DES.c
82833
82834 2005-10-21  Simon Josefsson  <jas@extundo.com>
82835
82836         * lib/arctwo.h, lib/arctwo.c: New files.
82837
82838         * lib/gc-gnulib.c: Support ARCTWO.
82839
82840 2005-10-21  Simon Josefsson  <jas@extundo.com>
82841
82842         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82843         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82844
82845 2005-10-21  Simon Josefsson  <jas@extundo.com>
82846
82847         * gnulib-tool (func_import, func_create_testdir): Define automake
82848         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82849         Makefile.am snippet),
82850         suggested by Bruno Haible <bruno@clisp.org>.
82851
82852         * modules/gc (Makefile.am): Use it.
82853
82854 2005-10-21  Bruno Haible  <bruno@clisp.org>
82855
82856         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82857         patch.
82858
82859 2005-10-19  Simon Josefsson  <jas@extundo.com>
82860
82861         * tests/test-gc-rijndael.c: New file.
82862
82863         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82864
82865 2005-10-19  Simon Josefsson  <jas@extundo.com>
82866
82867         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82868         interface too.
82869
82870 2005-10-19  Simon Josefsson  <jas@extundo.com>
82871
82872         * tests/test-gc-arcfour.c: New file.
82873
82874         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82875
82876 2005-10-19  Simon Josefsson  <jas@extundo.com>
82877
82878         * modules/gc-md4, modules/gc-md4-tests: New file.
82879
82880         * tests/test-gc-md4.c: New file.
82881
82882 2005-10-19  Simon Josefsson  <jas@extundo.com>
82883
82884         * m4/gc-md4.m4: New file.
82885
82886 2005-10-19  Simon Josefsson  <jas@extundo.com>
82887
82888         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82889         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82890         <kasal@ucw.cz>.
82891
82892 2005-10-19  Simon Josefsson  <jas@extundo.com>
82893
82894         * m4/gc-arcfour.m4: New file.
82895
82896         * m4/gc-rijndael.m4: New file.
82897
82898 2005-10-19  Simon Josefsson  <jas@extundo.com>
82899
82900         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82901
82902 2005-10-19  Simon Josefsson  <jas@extundo.com>
82903
82904         * lib/gc-gnulib.c: Support ARCFOUR.
82905
82906 2005-10-19  Simon Josefsson  <jas@extundo.com>
82907
82908         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82909         support.
82910
82911         * lib/gc.h: Add ECB enum type.
82912
82913         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82914
82915 2005-10-18  Simon Josefsson  <jas@extundo.com>
82916
82917         * tests/test-md5.c: New file.
82918
82919         * modules/md5-tests: New file.
82920
82921 2005-10-18  Simon Josefsson  <jas@extundo.com>
82922
82923         * tests/test-md4.c: New file.
82924
82925         * modules/md4, modules/md4-tests: New files.
82926
82927 2005-10-18  Simon Josefsson  <jas@extundo.com>
82928
82929         * m4/md4.m4: New file.
82930
82931 2005-10-18  Simon Josefsson  <jas@extundo.com>
82932
82933         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82934
82935 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82936
82937         * gnulib-tool (func_create_testdir): Omit the second check whether
82938         BUILT_SOURCES in nonempty.
82939
82940 2005-10-17  Simon Josefsson  <jas@extundo.com>
82941
82942         * tests/test-rijndael.c: New file.
82943
82944 2005-10-17  Simon Josefsson  <jas@extundo.com>
82945
82946         * modules/sha1: Depend on stdint instead of md5.
82947
82948         * modules/md5: Depend on stdint, remove uint32_t.
82949
82950 2005-10-17  Simon Josefsson  <jas@extundo.com>
82951
82952         * modules/gc-sha1-tests: New file.
82953
82954         * tests/test-gc-sha1.c: New file.
82955
82956 2005-10-17  Simon Josefsson  <jas@extundo.com>
82957
82958         * m4/md5.m4: Remove call to uint32_t.m4.
82959
82960 2005-10-17  Simon Josefsson  <jas@extundo.com>
82961
82962         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82963
82964         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82965         md5.h.
82966
82967         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82968
82969         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82970
82971 2005-10-17  Simon Josefsson  <jas@extundo.com>
82972
82973         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82974
82975 2005-10-17  Simon Josefsson  <jas@extundo.com>
82976
82977         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82978
82979 2005-10-17  Simon Josefsson  <jas@extundo.com>
82980
82981         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82982
82983         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82984
82985 2005-10-17  Bruno Haible  <bruno@clisp.org>
82986
82987         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82988         that it can also be used in a test.
82989
82990 2005-10-16  Bruno Haible  <bruno@clisp.org>
82991
82992         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82993         TESTS_ENVIRONMENT, so that individual tests can augment it.
82994
82995         * gnulib-tool (func_create_testdir): Use an intermediate target for
82996         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82997         macros, like $(ALLOCA_H), which cannot be passed through the command
82998         line.
82999
83000 2005-10-15  Simon Josefsson  <jas@extundo.com>
83001
83002         * modules/rijndael-tests: New file.
83003
83004         * modules/rijndael: New file.
83005
83006 2005-10-15  Simon Josefsson  <jas@extundo.com>
83007
83008         * m4/rijndael.m4: New file.
83009
83010 2005-10-15  Simon Josefsson  <jas@extundo.com>
83011
83012         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83013
83014         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83015
83016 2005-10-14  Simon Josefsson  <jas@extundo.com>
83017
83018         * tests/test-arcfour.c: New file.
83019
83020         * modules/arcfour, modules/arcfour-tests: New files.
83021
83022 2005-10-14  Simon Josefsson  <jas@extundo.com>
83023
83024         * m4/arcfour.m4: New file.
83025
83026 2005-10-14  Simon Josefsson  <jas@extundo.com>
83027
83028         * lib/arcfour.h, lib/arcfour.c: New files.
83029
83030 2005-10-14  Roland McGrath  <roland@redhat.com>
83031
83032         Import from libc.  [BZ #1331]
83033         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83034         macro argument.
83035         Reported by Matej Vela <vela@debian.org>.
83036
83037 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83038
83039         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83040         include <wchar.h>; no longer needed.
83041
83042 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83045
83046 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83047         and  Ulrich Drepper  <drepper@redhat.com>
83048
83049         Import from libc.
83050         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83051         instead of inline stream orientation test and two separate
83052         function calls.  Pay no attention to USE_IN_LIBIO.
83053
83054 2005-10-13  Simon Josefsson  <jas@extundo.com>
83055
83056         * modules/gc-hmac-md5-tests: New file.
83057
83058         * tests/test-gc-hmac-sha1.c: New file.
83059
83060         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83061
83062         * modules/gc-hmac-md5-tests: New file.
83063
83064         * tests/test-gc-md5.c: New file.
83065
83066         * modules/gc-md5-tests: New file.
83067
83068 2005-10-13  Simon Josefsson  <jas@extundo.com>
83069
83070         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83071         Move memory allocation outside of loop.
83072
83073 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83074
83075         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83076         intermediate directory is in a read-only file system.  Problem
83077         reported by Eric Blake.
83078
83079 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83080
83081         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83082
83083 2005-10-12  Simon Josefsson  <jas@extundo.com>
83084
83085         * tests/test-hmac-sha1.c: New file.
83086
83087         * modules/hmac-sha1-tests: New file.
83088
83089         * modules/hmac-sha1: New file.
83090
83091 2005-10-12  Simon Josefsson  <jas@extundo.com>
83092
83093         * modules/gc-sha1: New file.
83094
83095 2005-10-12  Simon Josefsson  <jas@extundo.com>
83096
83097         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83098
83099         * tests/test-gc-pbkdf2-sha1.c: New file.
83100
83101 2005-10-12  Simon Josefsson  <jas@extundo.com>
83102
83103         * modules/gc-md5, modules/gc-hmac-md5: New files.
83104
83105         * modules/gc (Files): Remove md5, memxor and hmac files.
83106
83107 2005-10-12  Simon Josefsson  <jas@extundo.com>
83108
83109         * m4/gc-pbkdf2-sha1.m4: New file.
83110
83111         * m4/gc-hmac-sha1.m4: New file.
83112
83113         * m4/gc-sha1: New file.
83114
83115         * m4/hmac-sha1.m4: New file.
83116
83117 2005-10-12  Simon Josefsson  <jas@extundo.com>
83118
83119         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83120
83121         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83122
83123 2005-10-12  Simon Josefsson  <jas@extundo.com>
83124
83125         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83126         suggested by Bruno Haible <bruno@clisp.org>.
83127
83128 2005-10-12  Simon Josefsson  <jas@extundo.com>
83129
83130         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83131
83132 2005-10-12  Simon Josefsson  <jas@extundo.com>
83133
83134         * lib/gc-pbkdf2-sha1.c: New file.
83135
83136         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83137
83138 2005-10-12  Simon Josefsson  <jas@extundo.com>
83139
83140         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83141
83142         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83143
83144 2005-10-12  Simon Josefsson  <jas@extundo.com>
83145
83146         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83147         GC_USE_HMAC_MD5, respectively.
83148
83149         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83150         (gc_md5): Fix typo.
83151
83152         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83153
83154         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83155
83156         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83157
83158 2005-10-12  Bruno Haible  <bruno@clisp.org>
83159
83160         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83161         Reported by Stepan Kasal <kasal@ucw.cz>.
83162
83163 2005-10-11  Simon Josefsson  <jas@extundo.com>
83164
83165         * tests/test-crc.c: New file.
83166
83167         * modules/crc, modules/crc-tests: New files.
83168
83169 2005-10-11  Simon Josefsson  <jas@extundo.com>
83170
83171         * m4/crc.m4: New file.
83172
83173 2005-10-11  Simon Josefsson  <jas@extundo.com>
83174
83175         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83176
83177         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83178
83179         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83180
83181 2005-10-11  Simon Josefsson  <jas@extundo.com>
83182
83183         * lib/crc.h, lib/crc.c: New files.
83184
83185         * lib/gc.h (gc_hash_buffer): Add doc.
83186
83187 2005-10-11  Bruno Haible  <bruno@clisp.org>
83188
83189         * modules/c-strcasestr: New file.
83190         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83191
83192 2005-10-11  Bruno Haible  <bruno@clisp.org>
83193
83194         * modules/c-strcase: New file.
83195         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83196
83197 2005-10-11  Bruno Haible  <bruno@clisp.org>
83198
83199         * lib/strcasecmp.c: Include limits.h.
83200         (strcasecmp): Avoid integer overflow on exotic platforms.
83201         * lib/strncasecmp.c: Include limits.h.
83202         (strncasecmp): Avoid integer overflow on exotic platforms.
83203         Reported by Paul Eggert.
83204
83205 2005-10-11  Bruno Haible  <bruno@clisp.org>
83206
83207         * lib/c-strcasestr.h: New file, from GNU gettext.
83208         * lib/c-strcasestr.c: New file, from GNU gettext.
83209
83210 2005-10-11  Bruno Haible  <bruno@clisp.org>
83211
83212         * lib/c-strcase.h: New file, from GNU gettext.
83213         * lib/c-strcasecmp.c: New file, from GNU gettext.
83214         * lib/c-strncasecmp.c: New file, from GNU gettext.
83215
83216 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83217
83218         * modules/mempcpy (License): GPL -> LGPL.
83219         * modules/strchrnul (License): Likewise.
83220         * modules/sysexits (License): Likewise.
83221
83222 2005-10-08  Simon Josefsson  <jas@extundo.com>
83223
83224         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83225
83226 2005-10-07  Simon Josefsson  <jas@extundo.com>
83227
83228         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83229
83230 2005-10-06  Simon Josefsson  <jas@extundo.com>
83231
83232         * tests/test-hmac-md5.c: New file.
83233
83234         * modules/hmac-md5-tests: New file.
83235
83236         * modules/hmac-md5: New file.
83237
83238 2005-10-06  Simon Josefsson  <jas@extundo.com>
83239
83240         * m4/hmac-md5.m4: New file.
83241
83242         * m4/memxor.m4: Require gl_C_RESTRICT.
83243
83244 2005-10-06  Simon Josefsson  <jas@extundo.com>
83245
83246         * lib/memxor.c (memxor): Avoid casts and warnings.
83247
83248 2005-10-06  Simon Josefsson  <jas@extundo.com>
83249
83250         * lib/hmac-md5.c: New file.
83251
83252         * lib/hmac.h: New file.
83253
83254 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83255
83256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83257         promotes to int, not unsigned int, to catch the AIX 5.3
83258         compiler bug.
83259
83260 2005-10-05  Simon Josefsson  <jas@extundo.com>
83261
83262         * modules/memxor: New file.
83263
83264         * modules/iconv (Files): Move config.rpath to havelib, it is used
83265         there.
83266
83267         * modules/havelib (Files): Add config.rpath.
83268
83269 2005-10-05  Simon Josefsson  <jas@extundo.com>
83270
83271         * m4/memxor.m4: New file.
83272
83273 2005-10-05  Simon Josefsson  <jas@extundo.com>
83274
83275         * lib/memxor.c (memxor): Fix compiler error.
83276
83277         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83278         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83279
83280         * lib/memxor.h, lib/memxor.c: New files.
83281
83282         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83283         we assume all systems have it, suggested by Jim Meyering
83284         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83285         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83286         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83287         same reasons.
83288
83289 2005-10-05  Simon Josefsson  <jas@extundo.com>
83290
83291         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83292
83293 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83296         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83297         needed, since the source code now assumes these .h files.
83298
83299 2005-10-05  Derek Price  <derek@ximbiot.com>
83300
83301         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83302
83303 2005-10-05  Bruno Haible  <bruno@clisp.org>
83304
83305         * modules/stdint (License): Change to LGPL.
83306
83307 2005-10-04  Simon Josefsson  <jas@extundo.com>
83308
83309         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83310         D. Baushke" <mdb@gnu.org>.
83311
83312 2005-10-04  Bruno Haible  <bruno@clisp.org>
83313
83314         * lib/verify.h (verify_true): Provide alternative definition for C++.
83315
83316 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83319         (SSIZE_MAX): New macro, if not already defined.
83320         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83321         than 2 GiB.
83322
83323 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83324
83325         Sync from coreutils.
83326         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83327         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83328         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83329         ULLONG_MAX doesn't work with 2.7.2.1.
83330
83331 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83332
83333         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83334         From Ben Pfaff.
83335
83336         * modules/exclude (Depends-on): Depend on verify.
83337         * modules/strtoimax (Depends-on): Likewise.
83338         * modules/utimecmp (Depends-on): Likewise.
83339
83340 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83341
83342         * lib/exclude.c: Include verify.h.
83343         (verify): Remove.  All callers changed to use verify.h's version.
83344         * lib/strtoimax.c: Likewise.
83345         * lib/utimecmp.c: Likewis.e
83346
83347         Sync from coreutils.
83348         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83349         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83350         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83351         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83352         bother returning ENOSYS if settimeofday or stime fails; just let
83353         them return whatever errno they want to return.
83354         * lib/utimens.c: Include unistd.h, for dup2.
83355         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83356         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83357
83358 2005-10-02  Jim Meyering  <jim@meyering.net>
83359
83360         Sync from coreutils.
83361         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83362         from glibc-2.2.5 that fails for read-only files.
83363
83364 2005-10-02  Jim Meyering  <jim@meyering.net>
83365
83366         Sync from coreutils.
83367         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83368         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83369         `#if HAVE_CONFIG_H'.
83370         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83371         Remove AT_FDCWD test.
83372         Do not consume the fd unless successful.
83373         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83374         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83375         block, so that we don't even try to compile it if settimeofday is
83376         available.  This works around a compilation failure on OSF1 V5.1,
83377         due to stime requiring a `long int*' while tv_sec is `int'.
83378
83379 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83380
83381         Sync from coreutils.
83382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83383         against `yes', rather than just testing for nonempty.
83384
83385 2005-10-01  Simon Josefsson  <jas@extundo.com>
83386
83387         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83388         and Darwin.
83389
83390         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83391         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83392         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83393         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83394         Check if struct addrinfo is declared.
83395
83396 2005-10-01  Simon Josefsson  <jas@extundo.com>
83397
83398         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83399         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83400         AI_* and EAI_* definitions.  Protect function declarations.
83401
83402 2005-10-01  Jim Meyering  <jim@meyering.net>
83403
83404         Sync from coreutils.
83405
83406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83407         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83408         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83410         in the inet and nsl libraries.  Required on Solaris 5.7.
83411
83412 2005-10-01  Jim Meyering  <jim@meyering.net>
83413
83414         Sync from coreutils.
83415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83416         in the inet and nsl libraries.  Required on Solaris 5.7.
83417
83418 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83419
83420         * lib/getdelim.c (getdelim): Remove unused variables.
83421
83422 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83423
83424         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83425         so that the code works even with ancient cpp.  Portability problem
83426         with GCC 2.7.2.1 reported by Thomas M.Ott.
83427
83428 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83429
83430         * modules/regex (Depends-on): Add strcase.
83431
83432         * modules/gethostname (Licence): Change from GPL to LGPL, since
83433         gethostname.c is a trivial implementation of a standard library
83434         function.
83435         * modules/poll (License): Change from GPL to LGPL, since it's
83436         derived from LGPL code.
83437
83438 2005-09-27  Jim Meyering  <jim@meyering.net>
83439
83440         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83441         HAVE_CONFIG_H.
83442
83443         * lib/intprops.h (signed_type_or_expr__): Define.
83444         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83445         for unsigned types.
83446
83447 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83448
83449         * lib/verify.h (verify_expr): Remove, replacing with:
83450         (verify_true): New macro that returns true instead of void.
83451         (verify_type__): Remove.
83452         (verify): Use verify_true rather than verify_type__.
83453
83454 2005-09-26  Bruno Haible  <bruno@clisp.org>
83455
83456         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83457         is necessary.
83458         (lib_SOURCES): Remove mbchar.c.
83459         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83460         (Files): Add m4/mbrtowc.m4.
83461         * modules/mbiter: Likewise.
83462         * modules/mbuiter: Likewise.
83463
83464 2005-09-26  Bruno Haible  <bruno@clisp.org>
83465
83466         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83467         compile mbchar.c if they are not both present.
83468         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83469         * m4/mbiter.m4 (gl_MBITER): Likewise.
83470         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83471         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83472         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83473
83474 2005-09-25  Jim Meyering  <jim@meyering.net>
83475
83476         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83477         also uses socklen_t.
83478
83479 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83480
83481         * lib/utimens.c (ENOSYS): Define if not already defined.
83482         (futimens): Support having a null PATH if the file descriptor
83483         is nonnegative.
83484
83485         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83486         Remove.
83487         (__attribute): Define to empty unless GCC 3.1 or later.
83488         This works around a core dump on OpenBSD 3.4, which has GCC
83489         2.95.3, which dumps core when given __attribute__(()).  It also
83490         simplifies other tests, since we really don't want to bother with
83491         worrying about which ancient version of GCC supported what.
83492         Original problem reported by Yoann Vandoorselaere, with part of
83493         the fix suggested by Derek Price.
83494
83495 2005-09-24  Jim Meyering  <jim@meyering.net>
83496
83497         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83498         so we can once again use a positive bitfield width of 1 -- now we
83499         don't have to explain why we were using a bitfield width of 2.
83500
83501 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83502
83503         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83504         and similarly for the other external symbols.  Problem reported
83505         by James Gallager.
83506
83507         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83508         bug reported by Jim Meyering.
83509
83510         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83512         not needed, since socklen is a prerequisite module.
83513
83514 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83517         Problem reported by Eric Blake.
83518         (getaddrinfo): Initialize se so that it's not garbage.
83519         Redo internal storage allocation so that it doesn't make unportable
83520         assumptions about alignment.
83521         Fix a memory leak.
83522
83523         * lib/utimens.c (futimens): Use futimesat if available.
83524         Prefer it to futimes since it doesn't have the futimes bug.
83525
83526         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83527         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83528         Instead, declare a function that returns a pointer to an array,
83529         and use verify_type__ to declare the size of the array.
83530         Problem and germ of a solution reported by Bruno Haible.
83531         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83532         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83533
83534 2005-09-23  Jim Meyering  <jim@meyering.net>
83535
83536         Sync from coreutils.
83537         Correct build failure (socklen_t not defined) on at least
83538         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83539         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83540
83541 2005-09-23  Jim Meyering  <jim@meyering.net>
83542
83543         * modules/getaddrinfo (Depends-on): Add socklen.
83544
83545 2005-09-23  Bruno Haible  <bruno@clisp.org>
83546
83547         * tests/test-verify.c: New file.
83548
83549 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83550
83551         Sync from coreutils.
83552
83553         * modules/argmatch (Depends-on): Add verify.
83554         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83555         unistd-safer.
83556         * modules/save-cwd (Depends-on): Likewise.
83557
83558         * modules/openat (Files): Add lib/openat-die.c.
83559         (Depends-on): Remove error, exitfail.
83560         Add dirname.
83561
83562         * modules/verify: New file.
83563         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83564         with "verify" module.
83565
83566 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         Sync from coreutils.
83569
83570         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83571         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83572         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83573         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83574         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83575         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83576         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83577         Don't bother checking for string.h, stdlib.h, unistd.h.
83578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83579         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83580         module's job.
83581         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83582         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83583
83584         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83585         (gl_GETDATE): Use it.
83586
83587         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83588
83589 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83590
83591         Sync from coreutils.
83592
83593         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83594         stat-time.h.
83595         * lib/argmatch.h: Include verify.h
83596         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83597         (ARGMATCH_ASSERT): Remove; unused.
83598         * lib/canonicalize.c: Assume STDC_HEADERS.
83599         * lib/exclude.c: Include "strcase.h".
83600         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83601         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83602         and stdio-safer.h.
83603         (getusershell): Call fopen, not fopen_safer.
83604         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83605         Do not include unistd-safer.h.
83606         (save_cwd): Don't call fd_safer; no longer needed
83607         now that we include fcntl--.h.
83608
83609         * lib/getdate.y (relative_time): New type.
83610         (RELATIVE_TIME_0): New constant.
83611         (parser_control): Use relative_time instead of doing it ourselves.
83612         (%union): Add new relative_time rel member.
83613         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83614         Now typeless.
83615         (relunit, relunit_snumber): Now of type rel.
83616         (zone, rel, relunit, get_date): Adjust to above changes.
83617
83618         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83619         Do not include unistd-safer.h.
83620         (getloadavg): Don't call fd_safer; no longer needed
83621         now that we include fcntl--.h.
83622
83623         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83624         (make_dir_parents): Treat ENOSYS like EEXIST.
83625
83626         Improve quality of diagnostics on restore_cwd failure.
83627         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83628         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83629         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83630         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83631         each time through the loop.  Do not diagnose restore_cwd failure;
83632         that is the caller's job (and perhaps the caller does not care).
83633
83634         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83635         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83636         If the file already exists but is not a directory, don't bother
83637         to try to make its parents.
83638         Close potential file descriptor leak if we can't chdir("/") (!).
83639         Don't always return true if chdir($PWD) fails; return true only
83640         if the requested action was done successfully (except for the
83641         chdir($PWD)).
83642         Don't log final directory unless we actually made it.
83643         Refactor to avoid duplicate code to fix up permissions.
83644         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83645
83646         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83647         to make it a bit faster and (I hope) clearer.
83648         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83649         Fix bug in formats like %2N.
83650
83651         * lib/verify.h: New file.
83652
83653 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         Sync from coreutils.
83656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83657
83658 2005-09-22  Jim Meyering  <jim@meyering.net>
83659
83660         Sync from coreutils.
83661
83662         * m4/lstat.m4 (gl_FUNC_LSTAT):
83663         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83664         Remove obsolete comment.
83665         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83666         * m4/xstrtod.m4: Likewise.
83667
83668         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83669
83670 2005-09-22  Jim Meyering  <jim@meyering.net>
83671
83672         Sync from coreutils.
83673
83674         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83675
83676         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83677         the .tm_year member, since otherwise gcc-4.0 would now warn about
83678         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83679
83680         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83681         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83682
83683         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83684         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83685         when run in a time zone for which daylight savings time is in effect
83686         for the starting date.
83687
83688         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83689         stop us from restricting permissions of just-created absolute-named
83690         directories.
83691         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83692         to restore initial working directory.
83693         * lib/mkdir-p.c (make_dir_parents): New parameter:
83694         different_working_dir, to tell caller if/when we change the working
83695         directory and are unable to return to the initial one.
83696         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83697         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83698         `return false'.  This fixes a bug introduced on 2004-07-30.
83699
83700         * lib/openat.c (fdopendir): Be sure to close the supplied
83701         file descriptor before returning.  This makes our replacement
83702         implementation a little closer to Solaris's, where fdopendir
83703         ties the file descriptor to the returned DIR* pointer.
83704         * lib/openat.c (unlinkat): New function.
83705         * lib/openat.h (unlinkat): Add prototype.
83706         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83707         (openat_restore_fail): Rename from openat_restore_die.
83708         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83709
83710         Provide an alternative to exiting immediately upon save_cwd or
83711         restore_cwd failure.  Now, an application can arrange e.g.,
83712         to perform a longjump in that case.
83713         * lib/openat.c: Include dirname.h.
83714         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83715         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83716         and openat_restore_die rather than calling error directly.
83717         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83718
83719         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83720         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83721         define.
83722
83723         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83724         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83725                             int utc, int nanoseconds);
83726         Background:
83727         date should not have to allocate a megabyte of virtual memory to
83728         handle a format argument like +%1048575T.  When implemented with
83729         strftime, it must allocate such a buffer, use strftime to fill it
83730         in, print it, then free it.
83731         With fprintftime, it simply prints everything and exits.
83732         With no need for memory allocation, that's one fewer way to fail.
83733         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83734         optional field width, not before, so we accept %9:z, not %:9z.
83735         (my_strftime): Be sure to use L_('x') for literals.
83736
83737         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83738         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83739         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83740         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83741         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83742         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83743         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83744         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83745         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83746         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83747         * lib/xgethostname.c, lib/xreadlink.c:
83748         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83749
83750         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83751         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83752         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83753         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83754         and don't include <sys/file.h>).
83755
83756 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83757
83758         Sync from coreutils.
83759
83760         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83761         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83762         [!LDAV_DONE]: Avoid unused variable warning.
83763
83764 2005-09-21  Bruno Haible  <bruno@clisp.org>
83765
83766         * lib/unicodeio.h (unicode_to_mb): New declaration.
83767
83768 2005-09-20  Derek Price  <derek@ximbiot.com>
83769
83770         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83771         getaddrinfo.h.
83772
83773 2005-09-20  Bruno Haible  <bruno@clisp.org>
83774
83775         * gnulib-tool: Remove trailing slashes from the values specified for
83776         --source-base, --m4-base, --tests-base, --aux-dir.
83777         Suggested by Simon Josefsson <jas@extundo.com>.
83778
83779 2005-09-20  Bruno Haible  <bruno@clisp.org>
83780
83781         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83782         func_modules_to_filelist, func_import, func_create_testdir): Make all
83783         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83784         change when gnulib-tool is invoked in a different locale.
83785
83786 2005-09-19  Simon Josefsson  <jas@extundo.com>
83787
83788         * m4/socklen.m4: Fix typo.
83789
83790 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83791
83792         Use a consistent style for including <config.h>.
83793         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83794         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83795         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83796         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83797         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83798         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83799         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83800         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83801         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83802         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83803         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83804         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83805         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83806         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83807         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83808         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83809         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83810         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83811         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83812         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83813         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83814         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83815         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83816         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83817         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83818         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83819         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83820         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83821         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83822         lib/xstrtoumax.c, lib/yesno.c:
83823         Standardize inclusion of config.h.
83824         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83825         lib/inttostr.h:  Removed inclusion of config.h from header files.
83826         * lib/inttostr.c:  Adjusted in-tree users.
83827         * lib/timespec.h: Remove superfluous warning to include config.h.
83828         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83829         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83830         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83831         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83832         config.h with HAVE_CONFIG_H.
83833
83834 2005-09-19  Jim Meyering  <jim@meyering.net>
83835
83836         * modules/pathmax (License): Change to LGPL.
83837
83838 2005-09-19  Derek Price  <derek@ximbiot.com>
83839
83840         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83841
83842 2005-09-19  Bruno Haible  <bruno@clisp.org>
83843
83844         * gnulib-tool (import): Provide default for --tests-base.
83845
83846 2005-09-19  Bruno Haible  <bruno@clisp.org>
83847
83848         * doc/quote.texi: New file, extracted from gnulib.texi.
83849         * doc/ctime.texi: New file, extracted from gnulib.texi.
83850         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83851         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83852         * doc/gnulib.texi: Include them.
83853
83854 2005-09-18  Bruno Haible  <bruno@clisp.org>
83855
83856         Portability fix.
83857         * gnulib-tool (func_readlink): New function.
83858         (func_ln_if_changed): Use it.
83859
83860 2005-09-18  Bruno Haible  <bruno@clisp.org>
83861
83862         * gnulib-tool: Support --with-tests also with --import.
83863         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83864         (func_import): Use variables $testsbase and $inctests. Emit a
83865         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83866         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83867         SUBDIRS += $testsdir.
83868         (func_create_testdir): Update.
83869
83870 2005-09-18  Bruno Haible  <bruno@clisp.org>
83871
83872         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83873         instead of $dry_run.
83874         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83875         (func_ln_if_changed): Don't handle dry-run here.
83876         (func_import): In dry-run mode, detect more precisely which actions
83877         would be performed, and don't use "...ing" verbs.
83878
83879 2005-09-18  Bruno Haible  <bruno@clisp.org>
83880
83881         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83882         (func_import): Use join on two temporary files instead of three nested
83883         loops, in order to determine which files are new or old.
83884
83885 2005-09-18  Bruno Haible  <bruno@clisp.org>
83886
83887         * gnulib-tool (func_import): Comment out code that spits out the
83888         new files with --dry-run.
83889
83890 2005-09-18  Bruno Haible  <bruno@clisp.org>
83891
83892         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83893
83894 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83895
83896         * lib/stat-time.h: New file.
83897         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83898         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83899         in a different way.
83900         (timespec_cmp): New function.
83901         * lib/utimecmp.c: Include stat-time.h.
83902         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83903         members exist, not on the obsolescent ST_MTIM_NSEC.
83904         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83905
83906 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83909
83910 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * MODULES.html.sh (File system functions): Add stat-time.
83913         * modules/stat-time: New file.
83914         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83915         is now done in a different way, by the stat-time module.
83916         * modules/utimecmp (Depends-on): Add stat-time.
83917
83918 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83919
83920         * m4/st_mtim.m4: Remove.  Superseded by...
83921         * m4/stat-time.m4: New file.
83922         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83923         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83924
83925 2005-09-15  Derek Price  <derek@ximbiot.com>
83926
83927         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83928
83929 2005-09-15  Derek Price  <derek@ximbiot.com>
83930
83931         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83932         * lib/regex_internal.c: Ditto, using this...
83933         (__GNUC_PREREQ): ...new macro.
83934         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83935         using...
83936         (__GNUC_PREREQ): ...this new macro.
83937
83938         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83939
83940 2005-09-15  Derek Price  <derek@ximbiot.com>
83941             Paul Eggert  <eggert@cs.ucla.edu>
83942
83943         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83944         changes, consolidating in...
83945         * lib/regex_internal.h: ...this file.
83946
83947 2005-09-13  Jim Meyering  <jim@meyering.net>
83948
83949         * lib/canon-host.c: Filter through gnu indent and reword comments
83950         slightly.
83951         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83952
83953 2005-09-13  Derek Price  <derek@ximbiot.com>
83954
83955         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83956         failure.
83957         Reported by Jim Meyering  <jim@meyering.net>.
83958
83959 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83960
83961         * lib/base64.c: Typo.
83962         (base64_encode): Put b64str in initialized data section.
83963
83964 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83965
83966         Merge glibc and coreutils changes into gnulib, plus a few
83967         extra fixes.
83968         * lib/md5.c: Use #error rather than a string.
83969         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83970         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83971         (__attribute__): Define to empty for non recent-GCC.
83972         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83973         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83974         Renamed from their non-__ counterparts, with new macros replacing
83975         them if not _LIBC.  Add __THROW attribute.
83976         (rol): Remove.
83977         (struct md5_ctx): Align buffer if using GCC.
83978         * lib/sha1.h (struct sha1_ctx): Likewise.
83979         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83980         The old name was backwards.
83981         (NOTSWAP): Remove; not used.
83982         (rol): New macro, moved here from md5.h.
83983         (sha1_process_block): Remove a FIXME that doesn't make sense.
83984
83985 2005-09-12  Derek Price  <derek@ximbiot.com>
83986
83987         Return usable errors from canon-host.
83988         * lib/canon-host.h: New file.
83989         * lib/canon-host.c (canon_host): Wrap...
83990         (canon_host_r): ...this new function, which now relies exclusively on
83991         getaddrinfo.
83992         (ch_strerror): New function.
83993         (last_cherror): New global.
83994         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83995         interface.
83996         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83997         void *.
83998         (freeaddrinfo): Free ai->ai_canonname when set.
83999
84000 2005-09-12  Derek Price  <derek@ximbiot.com>
84001
84002         Make canon-host require getaddrinfo.
84003         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84004         AC_LIBSOURCE canon-host.h.  Call...
84005         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84006         gl_GETADDRINFO.
84007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84008
84009 2005-09-12  Derek Price  <derek@ximbiot.com>
84010
84011         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84012         LGPL.
84013         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84014
84015 2005-09-12  Derek Price  <derek@ximbiot.com>
84016
84017         * lib/gai_strerror.c: Include config.h when available.  Include
84018         getaddrinfo.h before other headers to test interface.
84019         Reported by Larry Jones <lawrence.jones@ugs.com>.
84020
84021 2005-09-12  Derek Price  <derek@ximbiot.com>
84022             Paul Eggert  <eggert@cs.ucla.edu>
84023
84024         * modules/glob (Files): Add glob-libc.h.
84025
84026 2005-09-12  Derek Price  <derek@ximbiot.com>
84027             Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84030         glob_.h, glob-libc.h.
84031         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84032
84033 2005-09-12  Derek Price  <derek@ximbiot.com>
84034             Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84037         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84038         protecting things that should be done only in gnulib contexts.
84039         * lib/glob_.h: New file, containing only the glob things needed for
84040         gnulib.
84041         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84042         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84043         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84044         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84045         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84046         and to respect the namespace rules better.
84047
84048 2005-09-08  Simon Josefsson  <jas@extundo.com>
84049
84050         * modules/socklen: New file.
84051
84052 2005-09-08  Simon Josefsson  <jas@extundo.com>
84053
84054         * m4/socklen.m4: New file.
84055
84056 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84057
84058         * modules/utimens (Files): Add m4/utimbuf.m4, since
84059         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84060         Reported by Sergey Poznyakoff.
84061
84062 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84063
84064         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84065         definitions, since that's the preferred style in glibc.
84066         Fix a minor spacing issue, and update copyright notice to match
84067         glibc's.
84068
84069 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84070
84071         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84072
84073 2005-09-06  Simon Josefsson  <jas@extundo.com>
84074
84075         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84076         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84077
84078 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84081         warning.
84082
84083 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * config/srclist.txt: Add glibc bug 1302.
84086
84087 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84088
84089         Change bitset word type from unsigned int to unsigned long int,
84090         as this has better performance on typical 64-bit hosts.
84091         Port bitset code to hosts with unusual word sizes.
84092         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84093         (build_collating_symbol):
84094         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84095         argument is a bitset.  This is merely a style issue, but it makes
84096         it clearer that an entire array is expected.
84097         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84098         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84099         Port to the case where bitset_word is not the same as unsigned int.
84100         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84101         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84102         Likewise.
84103         * lib/regexec.c (check_dst_limits_calc_pos_1,
84104         check_subexp_matching_top):
84105         (build_trtable, group_nodes_into_DFAstates):
84106         Likewise.
84107         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84108         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84109         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84110         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84111         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84112         * lib/regcomp.c (optimize_subexps, lower_subexp):
84113         Work even if bitset_word has holes in its bitwise representation.
84114         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84115         * lib/regexec.c (check_dst_limits_calc_pos_1,
84116         check_subexp_matching_top):
84117         Likewise.
84118         * lib/regex_internal.c (re_string_reconstruct):
84119         Don't assume UCHAR_MAX == 255.
84120         * lib/regex_internal.h (bitset_set_all): Likewise.
84121         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84122         All uses changed.
84123         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84124         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84125         All uses changed.
84126         (BITSET_WORD_MAX): New macro.
84127         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84128         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84129         (bitset_empty, bitset_copy):
84130         Prefer sizeof (bitset) to multiplying it out ourselves.
84131         (bitset_not_merge): Remove; unused.
84132         (bitset_contain): Return bool, not unsigned int with one bit on.
84133         All callers changed.
84134         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84135         alignment than re_node_set; do this by defining a new internal
84136         type struct dests_alloc and using it to allocate memory.
84137
84138 2005-09-05  Bruno Haible  <bruno@clisp.org>
84139
84140         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84141         links.
84142
84143 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84144
84145         * modules/size_max (Makefile.am): Add size_max.h
84146
84147 2005-09-04  Derek Price  <derek@ximbiot.com>
84148
84149         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84150
84151 2005-09-03  Simon Josefsson  <jas@extundo.com>
84152
84153         * gnulib-tool: Fix typo.
84154
84155 2005-09-03  Simon Josefsson  <jas@extundo.com>
84156
84157         * config/srclist.txt: Add glibc bug 1293.
84158
84159 2005-09-03  Derek Price  <derek@ximbiot.com>
84160
84161         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84162         From Larry Jones <lawrence.jones@ugs.com>.
84163
84164 2005-09-02  Simon Josefsson  <jas@extundo.com>
84165
84166         * modules/socklen: New file.
84167
84168 2005-09-02  Simon Josefsson  <jas@extundo.com>
84169
84170         * modules/havelib: New module.
84171
84172         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84173         Use havelib.
84174
84175 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84176
84177         Check for arithmetic overflow when calculating sizes, to prevent
84178         some buffer-overflow issues.  These patches are conservative, in the
84179         sense that when I couldn't determine whether an overflow was possible,
84180         I inserted a run-time check.
84181         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84182         macros.
84183         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84184         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84185         (re_xnrealloc, re_x2nrealloc): New inline functions.
84186         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84187         parse_bracket_exp):
84188         (build_equiv_class, build_charclass): Check for arithmetic overflow
84189         in size expression calculations.
84190         * lib/regex_internal.c (re_string_realloc_buffers):
84191         (build_wcs_upper_buffer, re_node_set_add_intersect):
84192         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84193         (re_dfa_add_node, register_state): Likewise.
84194         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84195         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84196         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84197         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84198
84199 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84202         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84203
84204 2005-09-02  Bruno Haible  <bruno@clisp.org>
84205
84206         Support for lib vs. lib64 distinction on biarch platforms.
84207         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84208         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84209         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84210
84211 2005-09-02  Bruno Haible  <bruno@clisp.org>
84212
84213         * gnulib-tool (import): In the other first-use case, provide defaults
84214         as well.
84215
84216 2005-09-02  Bruno Haible  <bruno@clisp.org>
84217
84218         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84219         patches not yet found in the latest gettext release.
84220
84221 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84222
84223         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84224         to avoid a collision with bits/local_lim.h in glibc.
84225         All uses changed.  Problem reported by Dmitry V. Levin in
84226         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84227
84228         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84229         bugs in int versus size_t comparisons.
84230         (re_string_context_at): Fix bug where the code assumed that
84231         Idx is signed.
84232
84233         Use bool where appropriate.
84234         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84235         All callers changed.
84236         (calc_eclosure_iter): Likewise, for ROOT arg.
84237         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84238         (build_charclass_op): Likewise, for NON_MATCH arg.
84239         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84240         (re_string_construct_common): Likewise, for ICASE arg.
84241         * lib/regexec.c (re_search_2_stub, re_search_stub):
84242         Likewise, for RET_LEN arg.
84243         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84244         (set_regs): Likewise, for FL_BACKTRACK arg.
84245         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84246         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84247         (calc_eclosure_iter, parse_bracket_exp):
84248         Use bool for internal variables that are booleans.
84249         * lib/regexec.c (re_search_internal, check_matching,
84250         proceed_next_node):
84251         (set_regs, build_sifted_states, sift_states_bkref):
84252         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84253         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84254         (find_collation_sequence_value):
84255         Likewise.
84256         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84257         (re_node_set_compare):
84258         Return bool, not int. All callers changed.
84259         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84260         (build_trtable, check_node_accept): Likewise.
84261         * lib/regex_internal.h: Include stdbool.h.
84262
84263         Fix bugs uncovered when converting to bool.
84264         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84265         failure instead of charging ahead blindly.
84266         * lib/regex_internal.c (register_state): Likewise.
84267         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84268         for freeing internal storage.
84269         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84270         bitset pieces used as boolean, to avoid undefined behavior
84271         on hosts that do int overflow checking.
84272
84273 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * config/srclist.txt: Add glibc bugs 1285-1287.
84276
84277 2005-09-01  Jim Meyering  <jim@meyering.net>
84278
84279         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84280         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84281         Require gl_STAT_MACROS, too.
84282
84283 2005-09-01  Bruno Haible  <bruno@clisp.org>
84284
84285         * gnulib-tool (import): In the first-use case, provide defaults.
84286
84287 2005-09-01  Bruno Haible  <bruno@clisp.org>
84288
84289         * gnulib-tool (func_import): Remove the .tmp files.
84290
84291 2005-09-01  Bruno Haible  <bruno@clisp.org>
84292
84293         * gnulib-tool (func_import): Fix handling of symbolic links.
84294
84295 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84296
84297         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84298         old glibc regex code mishandles strings longer than 2**31 bytes.
84299         This patch fixes this when the regex code is used in gnulib
84300         (i.e., outside glibc).
84301
84302         This patch should not affect the use of the regex code inside
84303         glibc.  No doubt this problem also needs to be handled for glibc
84304         as well, but the result will be an incompatible change to the
84305         glibc ABI, and the old ABI will have to be supported too.  That
84306         can be the the subject for another patch.
84307
84308         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84309         governing whether the rest of this patch is active.  By default,
84310         the macro is disabled and the patch has no effect.
84311         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84312         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84313         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84314         (re_match_2, re_set_registers): Use the new types.
84315         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84316         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84317         New macros.
84318         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84319         (re_string_context_at, bin_tree_t, re_dfastate_t):
84320         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84321         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84322         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84323         (re_string_char_size_at, re_string_wchar_at):
84324         (re_string_elem_size_at):
84325         Use the new types and macros to port to 64-bit hosts.
84326         Use unsigned types for internal values, so that the code
84327         mostly works even for arrays larger than SSIZE_MAX.
84328         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84329         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84330         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84331         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84332         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84333         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84334         (calc_inveclosure, parse_dup_op, build_range_exp):
84335         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84336         (fetch_number, create_token_tree, mark_opt_subexp):
84337         Likewise.
84338         * lib/regex_internal.c (re_string_construct_common,
84339         create_ci_newstate):
84340         (create_cd_newstate, re_string_allocate, re_string_construct):
84341         (re_string_realloc_buffers, build_wcs_upper_buffer):
84342         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84343         (re_string_reconstruct, re_string_peek_byte_case):
84344         (re_string_fetch_byte_case, re_string_context_at):
84345         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84346         (re_node_set_init_copy, re_node_set_add_intersect):
84347         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84348         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84349         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84350         (re_acquire_state, re_acquire_state_context, register_state):
84351         Likewise.
84352         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84353         search_cur_bkref_entry):
84354         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84355         (re_search_internal, re_search_2_stub, re_search_stub)
84356         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84357         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84358         (update_cur_sifted_state, check_dst_limits):
84359         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84360         (check_subexp_limits, sift_states_bkref, merge_state_array):
84361         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84362         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84363         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84364         (expand_bkref_cache, check_node_accept_bytes):
84365         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84366         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84367         (acquire_init_state_context, check_halt_node_context):
84368         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84369         (sift_states_backward, clean_state_log_if_needed):
84370         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84371         (find_recover_state, transit_state_sb, transit_state_mb):
84372         (transit_state_bkref, build_trtable, match_ctx_clean):
84373         Likewise.
84374         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84375         to work around an assumption that REG_MISSING is negative.
84376
84377         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84378         (seek_collating_symbol_entry) [defined _LIBC]:
84379         (lookup_collation_sequence_value) [defined _LIBC]:
84380         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84381         Use prototypes rather than old-style function definitions.
84382         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84383         (transit_state_sb) [0]:
84384         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84385
84386         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84387         rm_eo.
84388
84389         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84390         (optimize_subexps, lower_subexp):
84391         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84392         since the signed shift might overflow.  Use 1u<<31 instead.
84393         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84394         Likewise.
84395         * lib/regexec.c (check_dst_limits_calc_pos_1,
84396         check_subexp_matching_top): Likewise.
84397
84398         * lib/regcomp.c (optimize_subexps, lower_subexp):
84399         Use CHAR_BIT rather than 8, for clarity.
84400         * lib/regexec.c (check_dst_limits_calc_pos_1):
84401         (check_subexp_matching_top): Likewise.
84402         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84403         have to worry about portability issues when shifting it left.
84404         Remove no-longer-needed test for table_size > 0.
84405         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84406         in a word, as the resulting behavior is undefined.
84407         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84408         in one case, a <= should have been an <, and in another case the
84409         whole test was missing.
84410         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84411         the standard name CHAR_BIT.
84412         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84413         this is not true on one's complement and signed-magnitude hosts.
84414
84415         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84416         next_last_offset.
84417         (struct re_dfa_t): Remove unused member states_alloc.
84418         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84419
84420 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84421
84422         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84423         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84424         and large-file glibc and in 32-bit large-file Solaris.
84425
84426 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84427
84428         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84429         lengths fit in regoff_t; this isn't true if regoff_t is the same
84430         width as size_t.
84431         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84432         (= START + RANGE) instead of RANGE.  This avoids overflow
84433         problems when regoff_t is the same width as size_t.
84434         All callers changed.
84435         (re_search_2_stub): Check for overflow when adding the
84436         sizes of the two strings.
84437         (re_search_stub): Check for overflow when adding START
84438         to RANGE; if it occurs, substitute the extreme value.
84439
84440 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84443
84444 2005-08-31  Jim Meyering  <jim@meyering.net>
84445
84446         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84447         a pointer-to-const.
84448         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84449         (register_state): Likewise.
84450         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84451         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84452         (group_nodes_into_DFAstates): Likewise.
84453
84454 2005-08-31  Jim Meyering  <jim@meyering.net>
84455
84456         * check-module: Add a FIXME comment.
84457
84458 2005-08-31  Eric Blake  <ebb9@byu.net>
84459
84460         * modules/unistd-safer (Files): Add unistd--.h.
84461         * modules/stdio-safer (Files): Add stdio--.h.
84462
84463 2005-08-31  Derek Price  <derek@ximbiot.com>
84464
84465         * lib/getdelim.c (getdelim): Return EOF on EOF.
84466         Reported by Larry Jones <lawrence.jones@ugs.com>.
84467
84468 2005-08-31  Bruno Haible  <bruno@clisp.org>
84469
84470         Avoid unnecessary diffs in the generated lib/Makefile.am.
84471         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84472         the generated files.
84473         (func_import): Don't set cmd.
84474
84475 2005-08-31  Bruno Haible  <bruno@clisp.org>
84476
84477         * lib/strstr.c: Include <stddef.h>, for NULL.
84478         * lib/strcasestr.c: Likewise.
84479         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84480
84481 2005-08-31  Bruno Haible  <bruno@clisp.org>
84482
84483         * gnulib-tool: New option --macro-prefix.
84484         (func_import): Use macro_prefix.
84485         (import): Handle option --macro-prefix.
84486
84487 2005-08-31  Bruno Haible  <bruno@clisp.org>
84488
84489         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84490         Also use new variables cached_lgpl, cached_libtool.
84491
84492 2005-08-31  Bruno Haible  <bruno@clisp.org>
84493
84494         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84495         always instantiating them.
84496
84497 2005-08-31  Bruno Haible  <bruno@clisp.org>
84498
84499         * gnulib-tool (func_import): Read the previous cached settings
84500         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84501         earlier added by gnulib but are now dropped. Warn when a gnulib file
84502         overwrites a non-gnulib file.
84503
84504 2005-08-31  Bruno Haible  <bruno@clisp.org>
84505
84506         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84507         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84508         projects that don't keep autogenerated files in CVS. Put into
84509         actioncmd only the specified modules, not the transitive closure.
84510
84511 2005-08-31  Bruno Haible  <bruno@clisp.org>
84512
84513         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84514         Create directories that shall be filled.
84515         (import): Don't look for gl_* macros in configure.ac. Recurse across
84516         all directories containing a gnulib-cache.m4 files, if meaningful.
84517
84518 2005-08-31  Bruno Haible  <bruno@clisp.org>
84519
84520         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84521         (import): Set seen_libtool when we see gl_LIBTOOL.
84522
84523 2005-08-31  Bruno Haible  <bruno@clisp.org>
84524
84525         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84526         declaration macro definitions from generated gnulib.m4.
84527
84528 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84529
84530         * lib/iconvme.h: Add prototype for iconv_alloc.
84531
84532 2005-08-29  Simon Josefsson  <jas@extundo.com>
84533
84534         * lib/iconvme.c: Fix errno.
84535
84536 2005-08-29  Bruno Haible  <bruno@clisp.org>
84537
84538         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84539         that it works when the directory contains spaces.
84540
84541 2005-08-29  Bruno Haible  <bruno@clisp.org>
84542
84543         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84544
84545 2005-08-29  Bruno Haible  <bruno@clisp.org>
84546
84547         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84548         Emit more advice.
84549
84550 2005-08-29  Bruno Haible  <bruno@clisp.org>
84551         and Stepan Kasal  <kasal@ucw.cz>
84552
84553         * check-module: If more parameters are given, check each of them
84554         separately; add more exceptions, as noted by Jim Meyering.
84555         (check_module): New procedure.
84556         (%exempt_header): Now contains all exceptions.
84557
84558 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84559
84560         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84561
84562 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84563
84564         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84565
84566 2005-08-28  Bruno Haible  <bruno@clisp.org>
84567
84568         * m4/gnulib-tool.m4: New file.
84569
84570 2005-08-27  Jim Meyering  <jim@meyering.net>
84571
84572         * modules/unistd-safer (Files): Add pipe-safer.c.
84573         * modules/fcntl-safer (Files): Add creat-safer.c.
84574
84575 2005-08-27  Jim Meyering  <jim@meyering.net>
84576
84577         * m4/stdlib-safer.m4: New file.  From coreutils.
84578         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84579         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84580         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84581         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84582         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84583
84584 2005-08-27  Jim Meyering  <jim@meyering.net>
84585
84586         * lib/fopen-safer.c: Merge minor changes from coreutils.
84587         * lib/dup-safer.c: Likewise.
84588         * lib/fd-safer.c: Likewise.
84589
84590         Merge from coreutils.
84591         * lib/stdio--.h: New file.
84592         * lib/stdlib--.h: New file.
84593         * lib/mkstemp-safer.c: New file.
84594
84595         GNU tar needs these.
84596         * lib/pipe-safer.c: New file.
84597         * lib/creat-safer.c: New file.
84598         * lib/fcntl--.h (creat): Define to creat_safer.
84599         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84600         * lib/unistd--.h (pipe): Define to pipe_safer.
84601         * lib/unistd-safer.h: Declare pipe_safer.
84602
84603 2005-08-26  Simon Josefsson  <jas@extundo.com>
84604
84605         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84606         Haible <bruno@clisp.org>.
84607
84608 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * lib/regex_internal.h: Remove all references to
84611         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84612         or better.
84613         (bitset_not, bitset_merge, bitset_not_merge):
84614         (bitset_mask, re_string_allocate, re_string_construct):
84615         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84616         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84617         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84618         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84619         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84620         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84621         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84622         (re_acquire_state_context):
84623         Remove unnecessary forward decls.
84624         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84625         Put __attribute at function definition,
84626         now that the function decl has been removed.
84627         * lib/regex_internal.c (re_string_peek_byte_case):
84628         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84629         Likewise.
84630
84631 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84632
84633         * m4/regex.m4: Add AC_PREREQ(2.50).
84634         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84635
84636 2005-08-25  Simon Josefsson  <jas@extundo.com>
84637
84638         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84639         __fsetlocking.
84640
84641 2005-08-25  Simon Josefsson  <jas@extundo.com>
84642
84643         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84644         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84645         GLIBC specific code.
84646
84647 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84648
84649         Make regex safe for g++.  This fixes one real bug (an "err"
84650         that should have been "*err").  g++ problem reported by
84651         Sam Steingold.
84652         * lib/regex_internal.h (re_calloc): New macro, consistent with
84653         re_malloc etc.  All callers of calloc changed to use re_calloc.
84654         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84655         not int.  All callers changed.
84656         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84657         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84658         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84659         (find_recover_state): Change "err" to "*err"; this fixes what
84660         appears to be a real bug.
84661         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84662         versus int.
84663
84664 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84665
84666         * modules/regex (Depends-on): Add malloc, since the code
84667         assumes that !malloc(0) means failure.
84668
84669 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84670
84671         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84672
84673         alloca modernization/simplification for regex.
84674         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84675         needs to be at the start of the file, and can be moved into
84676         regex_internal.h and simplified.
84677         * lib/regex_internal.h: Include <alloca.h>.
84678         (__libc_use_alloca) [!defined _LIBC]: New macro.
84679         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84680         now works outside glibc.
84681
84682 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84683
84684         * config/srclist.txt: Add glibc bugs 1241, 1245.
84685
84686 2005-08-25  Jim Meyering  <jim@meyering.net>
84687
84688         * lib/open-safer.c: Include <config.h>.
84689         Otherwise, we'd lose LARGEFILE support in any file using
84690         e.g. "fcntl--.h"
84691
84692 2005-08-25  Bruno Haible  <bruno@clisp.org>
84693
84694         * m4/minmax.m4: Require autoconf 2.52.
84695         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84696         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84697         alternatives of translit over the alphabet.
84698         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84699
84700 2005-08-24  Simon Josefsson  <jas@extundo.com>
84701
84702         * tests/test-getpass.c: New file.
84703
84704 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84705
84706         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84707         for GNU regex features.
84708
84709 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84710
84711         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84712         * lib/regex.h (regerror): Likewise.
84713
84714         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84715         requires this.  (The code never needed it.)
84716
84717         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84718         All uses of recently-renamed identifiers changed to use the new,
84719         POSIX-compliant names.  The code will build and run just fine
84720         without these changes, but it's better to eat our own dog food
84721         and use the standard-conforming names.
84722
84723         * lib/regex.h: Fix a multitude of POSIX name space violations.
84724         These changes have an effect only for programs that define
84725         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84726         do not change anything for programs compiled in the normal way.
84727         Also, there is no effect on the ABI.
84728
84729         (_REGEX_SOURCE): New macro.
84730         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84731         defined and _GNU_SOURCE is not; this fixes a name space violation.
84732
84733         Rename the following macros to obey POSIX requirements.
84734         The old names are still visible as macros if _REGEX_SOURCE is defined.
84735         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84736         RE_BACKSLASH_ESCAPE_IN_LISTS.
84737         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84738         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84739         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84740         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84741         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84742         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84743         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84744         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84745         (REG_INTERVALS): renamed from RE_INTERVALS.
84746         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84747         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84748         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84749         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84750         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84751         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84752         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84753         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84754         RE_UNMATCHED_RIGHT_PAREN_ORD.
84755         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84756         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84757         (REG_DEBUG): renamed from RE_DEBUG.
84758         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84759         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84760         unusual, since we can't clash with the POSIX REG_ICASE.
84761         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84762         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84763         (REG_NO_SUB): renamed from RE_NO_SUB.
84764         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84765         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84766         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84767         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84768         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84769         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84770         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84771         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84772         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84773         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84774         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84775         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84776         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84777         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84778         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84779         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84780         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84781         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84782         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84783         (REG_FIXED): Renamed from REGS_FIXED.
84784         (REG_NREGS): Renamed from RE_NREGS.
84785
84786         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84787         of other REG_* macros, since POSIX says the user is allowed to
84788         #undef these macros selectively.
84789
84790         (reg_errcode_t): Update comment stating what other tables need
84791         to be consistent.
84792
84793         Rename the following enum values to obey POSIX requirements.
84794         The old names are still visible as macros.
84795         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84796         is not defined, since GNU is supposed to be a superset of POSIX as
84797         much as possible, and since we want reg_errcode_t to be a signed
84798         type for implementation consistency.
84799         (_REG_NOERROR): Renamed from REG_NOERROR.
84800         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84801         (_REG_BADPAT): Renamed from REG_BADPAT.
84802         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84803         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84804         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84805         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84806         (_REG_EBRACK): Renamed from REG_EBRACK.
84807         (_REG_EPAREN): Renamed from REG_EPAREN.
84808         (_REG_EBRACE): Renamed from REG_EBRACE.
84809         (_REG_BADBR): Renamed from REG_BADBR.
84810         (_REG_ERANGE): Renamed from REG_ERANGE.
84811         (_REG_ESPACE): Renamed from REG_ESPACE.
84812         (_REG_BADRPT): Renamed from REG_BADRPT.
84813         (_REG_EEND): Renamed from REG_EEND.
84814         (_REG_ESIZE): Renamed from REG_ESIZE.
84815         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84816         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84817         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84818         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84819         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84820
84821         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84822         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84823         changed.  But support the old name if the new one is not defined
84824         and if _REGEX_SOURCE.
84825
84826         Change the following member names in struct re_pattern_buffer.
84827         The old names are still supported if !_REGEX_SOURCE.
84828         The new names are always supported, regardless of _REGEX_SOURCE.
84829         (re_buffer): Renamed from buffer.
84830         (re_allocated): Renamed from allocated.
84831         (re_used): Renamed from used.
84832         (re_syntax): Renamed from syntax.
84833         (re_fastmap): Renamed from fastmap.
84834         (re_translate): Renamed from translate.
84835         (re_can_be_null): Renamed from can_be_null.
84836         (re_regs_allocated): Renamed from regs_allocated.
84837         (re_fastmap_accurate): Renamed from fastmap_accurate.
84838         (re_no_sub): Renamed from no_sub.
84839         (re_not_bol): Renamed from not_bol.
84840         (re_not_eol): Renamed from not_eol.
84841         (re_newline_anchor): Renamed from newline_anchor.
84842
84843         Change the following member names in struct re_registers.
84844         The old names are still supported if !_REGEX_SOURCE.
84845         The new names are always supported, regardless of _REGEX_SOURCE.
84846         (rm_num_regs): Renamed from num_regs.
84847         (rm_start): Renamed from start.
84848         (rm_end): Renamed from end.
84849
84850         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84851         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84852         Prepend __ to parameter names.
84853
84854         Undo yesterday's changes.
84855
84856 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84857
84858         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84859         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84860         lib/regex.c.
84861
84862 2005-08-24  Jim Meyering  <jim@meyering.net>
84863
84864         Sync from coreutils.
84865         * m4/fcntl-safer.m4: New file.
84866
84867         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84868         and object files for this module.
84869
84870 2005-08-24  Jim Meyering  <jim@meyering.net>
84871
84872         Sync from coreutils.
84873         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84874
84875 2005-08-24  Jim Meyering  <jim@meyering.net>
84876
84877         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84878         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84879
84880 2005-08-24  Jim Meyering  <jim@meyering.net>
84881
84882         * modules/fcntl-safer: New module.
84883         * modules/fts (Depends-on): Add fcntl-safer.
84884         * MODULES.html.sh (File descriptor based Input/Output):
84885         Add fcntl-safer.
84886
84887 2005-08-24  Bruno Haible  <bruno@clisp.org>
84888
84889         Support for unit test modules.
84890         * modules/README: Mention tests modules.
84891         * modules/TEMPLATE-TESTS: New file.
84892         * gnulib-tool: New options --extract-tests-module, --with-tests and
84893         --tests-base (unused for the moment).
84894         (testsbase, inctests): New variables.
84895         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84896         (func_verify_module): Exclude TEMPLATE-TESTS.
84897         (func_verify_nontests_module, func_verify_tests_module): New functions.
84898         (func_get_dependencies): Add implicit dependency for tests modules.
84899         (func_get_tests_module): New function.
84900         (func_modules_transitive_closure): When --with-tests was specified,
84901         include the unit tests as well, unless explicitly avoided.
84902         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84903         (func_emit_tests_Makefile_am): New function.
84904         (func_create_testdir): When --with-tests was specified, emit a
84905         tests/ directory.
84906         * MODULES.html.sh (Future developments): Update.
84907
84908 2005-08-24  Bruno Haible  <bruno@clisp.org>
84909
84910         * modules/tls-tests: New file.
84911         * tests/test-tls.c: New file, from GNU gettext.
84912
84913 2005-08-24  Bruno Haible  <bruno@clisp.org>
84914
84915         * modules/lock-tests: New file.
84916         * tests/test-lock.c: New file, from GNU gettext.
84917
84918 2005-08-24  Bruno Haible  <bruno@clisp.org>
84919
84920         * lib/lock.h: Add multiple inclusion guard.
84921         * lib/tls.h: Add multiple inclusion guard.
84922
84923 2005-08-24  Bruno Haible  <bruno@clisp.org>
84924
84925         * gnulib-tool: Add support for the --aux-dir option to
84926         --create-testdir, --create-megatestdir, --test, --megatest.
84927         (func_create_testdir, func_create_megatestdir): Optionally emit a
84928         AC_CONFIG_AUX_DIR directive.
84929         (create-testdir, create-megatestdir, test, megatest): Provide a
84930         default value for $auxdir.
84931
84932 2005-08-24  Bruno Haible  <bruno@clisp.org>
84933
84934         * gnulib-tool (import): Use compound statement instead of subshell
84935         where possible.
84936
84937 2005-08-24  Bruno Haible  <bruno@clisp.org>
84938
84939         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84940
84941 2005-08-24  Bruno Haible  <bruno@clisp.org>
84942
84943         * gnulib-tool (func_version): Update.
84944
84945 2005-08-24  Bruno Haible  <bruno@clisp.org>
84946
84947         * gnulib-tool (func_import, func_create_testdir,
84948         func_create_megatestdir): Quote all autoconf macro arguments.
84949
84950 2005-08-24  Bruno Haible  <bruno@clisp.org>
84951
84952         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84953         option --force, because --force causes the aclocal.m4 of each
84954         subdirectory to be newer than the corresponding config.h.in.
84955
84956 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84959         All contents moved to gl_REGEX.
84960         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84961         assume that it does.
84962
84963 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84964
84965         * lib/regex.h (REG_NOSYS)
84966         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84967         Define, since POSIX requires it as of 2001.
84968         (_REG_ENOSYS)
84969         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84970         New private symbol, used to keep the enum signed in all cases.
84971         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84972         Youngman in
84973         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84974
84975         * lib/regex_internal.c (re_string_skip_chars, register_state):
84976         (calc_state_hash):
84977         Remove forward decls; no longer needed now that we use prototypes.
84978         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84979         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84980         (clean_state_log_if_needed): Likewise.
84981
84982 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84983
84984         * config/srclist.txt: Add glibc bugs 1231-1233.
84985
84986 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84987
84988         Fix problems reported by Sam Steingold in
84989         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84990         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84991         assumed that reg_errcode_t is a signed type, which is not
84992         necessarily true if _XOPEN_SOURCE is not defined.
84993         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84994         since some compilers warn about it otherwise.
84995
84996 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84997
84998         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84999         (init_word_char, create_initial_state, duplicate_node_closure):
85000         (fetch_token, peek_token_bracket, build_range_exp):
85001         (build_collating_symbol): Remove forward decls; no longer needed
85002         now that we use prototypes.
85003
85004         * lib/regcomp.c:
85005         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85006         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85007         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85008         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85009         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85010         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85011         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85012         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85013         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85014         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85015         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85016         (build_charclass, build_charclass_op, fetch_number, create_tree):
85017         (create_token_tree, mark_opt_subexp, duplicate_tree):
85018         Use prototypes rather than old-style definitions.
85019
85020         * lib/regex_internal.c:
85021         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85022         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85023         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85024         (re_string_reconstruct, re_string_peek_byte_case):
85025         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85026         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85027         (re_node_set_init_copy, re_node_set_add_intersect):
85028         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85029         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85030         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85031         (re_acquire_state, re_acquire_state_context, register_state):
85032         (create_ci_newstate, create_cd_newstate, free_state):
85033         Likewise.
85034         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85035         re_search_2):
85036         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85037         (re_search_internal, prune_impossible_nodes):
85038         (acquire_init_state_context, check_matching, static):
85039         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85040         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85041         (update_regs, sift_states_backward, build_sifted_states):
85042         (clean_state_log_if_needed, merge_state_array):
85043         (update_cur_sifted_state, add_epsilon_src_nodes):
85044         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85045         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85046         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85047         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85048         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85049         (check_arrival, check_arrival_add_next_nodes):
85050         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85051         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85052         (check_node_accept_bytes, check_node_accept, extend_buffers):
85053         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85054         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85055         (sift_ctx_init):
85056         Likewise.
85057
85058         * lib/regex_internal.h:
85059         (re_string_allocate, re_string_construct, re_string_reconstruct):
85060         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85061         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85062         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85063         (re_string_context_at, re_string_peek_byte_case):
85064         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85065         is defined, since we now use prototypes always.
85066
85067         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85068         C89 or better.  All uses removed.
85069
85070 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85071
85072         * config/srclist.txt: Add glibc bugs 1220-1227.
85073
85074 2005-08-20  Jim Meyering  <jim@meyering.net>
85075
85076         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85077         of unused local, dfa.
85078
85079 2005-08-20  Bruno Haible  <bruno@clisp.org>
85080
85081         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85082
85083 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85084
85085         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85086         (re_node_set_insert_last, re_dfa_add_node):
85087         Rename local variables to avoid GCC shadowing warnings.
85088
85089 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85090
85091         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85092         [defined lint]: Suppress bogus uninitialized-variable warnings.
85093
85094         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85095         and let the caller return REG_ESPACE if out of space.  This
85096         removes an uninitialied-variable warning with GCC 4.0.1, and also
85097         avoids taking the address of a local variable.  All callers
85098         changed.
85099
85100 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85101
85102         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85103         $LIBCSRC/posix/regexec.c.
85104         Add glibc bug 1217 for regcomp.c.
85105
85106 2005-08-19  Jim Meyering  <jim@meyering.net>
85107
85108         * lib/regexec.c (proceed_next_node): Redo local variables to
85109         avoid GCC shadowing warnings.
85110
85111 2005-08-18  Bruno Haible  <bruno@clisp.org>
85112
85113         * lib/strstr.c (strstr): Fix return value in multibyte case.
85114         * lib/strcasestr.c (strcasestr): Likewise.
85115
85116 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85117
85118         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85119
85120 2005-08-17  Jim Meyering  <jim@meyering.net>
85121
85122         Make the %s format (seconds since the epoch) work for a negative
85123         number and when used with a zero-padded field width, e.g. %015s.
85124
85125         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85126         label so that it precedes the code to set `digits'.  Otherwise,
85127         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85128         print `00-22'.  Now, it prints `-0022', as it should.
85129
85130 2005-08-17  Bruno Haible  <bruno@clisp.org>
85131
85132         * modules/strstr (Files): Add m4/mbrtowc.m4.
85133         (Depends-on): Add mbuiter.
85134
85135 2005-08-17  Bruno Haible  <bruno@clisp.org>
85136
85137         * modules/strcasestr: New file.
85138         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85139         strcasestr.
85140
85141 2005-08-17  Bruno Haible  <bruno@clisp.org>
85142
85143         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85144
85145 2005-08-17  Bruno Haible  <bruno@clisp.org>
85146
85147         * modules/mbuiter: New file.
85148         * MODULES.html.sh (Extended multibyte and wide character utilities):
85149         Add mbuiter.
85150
85151 2005-08-17  Bruno Haible  <bruno@clisp.org>
85152
85153         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85154         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85155
85156 2005-08-17  Bruno Haible  <bruno@clisp.org>
85157
85158         * m4/strcasestr.m4: New file.
85159
85160 2005-08-17  Bruno Haible  <bruno@clisp.org>
85161
85162         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85163         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85164
85165 2005-08-17  Bruno Haible  <bruno@clisp.org>
85166
85167         * lib/strcasestr.h: New file.
85168         * lib/strcasestr.c: New file.
85169
85170 2005-08-17  Bruno Haible  <bruno@clisp.org>
85171
85172         * lib/strcasecmp.c: Use mbuiter.h.
85173
85174 2005-08-17  Bruno Haible  <bruno@clisp.org>
85175
85176         * lib/mbuiter.h: New file.
85177
85178 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85181         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85182         and gl_GETOPT are both invoked via different paths (as happens
85183         with GNU tar CVS because it uses both argp and getopt), the former
85184         wins.
85185
85186 2005-08-16  Bruno Haible  <bruno@clisp.org>
85187
85188         * modules/tls: New file.
85189         * MODULES.html.sh (Multithreading): Add tls.
85190
85191 2005-08-16  Bruno Haible  <bruno@clisp.org>
85192
85193         * modules/strnlen1: New file.
85194         * MODULES.html.sh (String handling): Add strnlen1.
85195
85196 2005-08-16  Bruno Haible  <bruno@clisp.org>
85197
85198         * modules/strcase (Files): Add m4/mbrtowc.m4.
85199         (Depends-on): Add strnlen1, mbchar.
85200
85201 2005-08-16  Bruno Haible  <bruno@clisp.org>
85202
85203         * modules/mbiter: New file.
85204         * MODULES.html.sh (Extended multibyte and wide character utilities):
85205         Add mbiter.
85206
85207 2005-08-16  Bruno Haible  <bruno@clisp.org>
85208
85209         * modules/mbfile: New file.
85210         * MODULES.html.sh (Extended multibyte and wide character utilities):
85211         Add mbfile.
85212
85213 2005-08-16  Bruno Haible  <bruno@clisp.org>
85214
85215         * modules/mbchar: New file.
85216         * MODULES.html.sh (Extended multibyte and wide character utilities):
85217         New section.
85218
85219 2005-08-16  Bruno Haible  <bruno@clisp.org>
85220
85221         * m4/tls.m4: New file, from GNU gettext.
85222
85223 2005-08-16  Bruno Haible  <bruno@clisp.org>
85224
85225         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85226         always.
85227         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85228
85229 2005-08-16  Bruno Haible  <bruno@clisp.org>
85230
85231         * m4/mbiter.m4: New file.
85232
85233 2005-08-16  Bruno Haible  <bruno@clisp.org>
85234
85235         * m4/mbfile.m4: New file.
85236
85237 2005-08-16  Bruno Haible  <bruno@clisp.org>
85238
85239         * m4/mbchar.m4: New file.
85240
85241 2005-08-16  Bruno Haible  <bruno@clisp.org>
85242
85243         * lib/tls.h: New file, from GNU gettext.
85244         * lib/tls.c: New file, from GNU gettext.
85245
85246 2005-08-16  Bruno Haible  <bruno@clisp.org>
85247
85248         * lib/strnlen1.h: New file.
85249         * lib/strnlen1.c: New file.
85250
85251 2005-08-16  Bruno Haible  <bruno@clisp.org>
85252
85253         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85254         (mbi_init): Update.
85255         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85256         NUL byte, not after it.
85257
85258 2005-08-16  Bruno Haible  <bruno@clisp.org>
85259
85260         * lib/strcase.h (strcasecmp): Add note in comments.
85261         * lib/strncasecmp.c: Use code from strcasecmp.c.
85262         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85263         (strcasecmp): Work correctly in multibyte locales.
85264
85265 2005-08-16  Bruno Haible  <bruno@clisp.org>
85266
85267         * lib/mbiter.h: New file.
85268
85269 2005-08-16  Bruno Haible  <bruno@clisp.org>
85270
85271         * lib/mbfile.h: New file.
85272
85273 2005-08-16  Bruno Haible  <bruno@clisp.org>
85274
85275         * lib/mbchar.h: New file.
85276         * lib/mbchar.c: New file.
85277
85278 2005-08-16  Bruno Haible  <bruno@clisp.org>
85279
85280         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85281         the valid ones. Makes the comparison operations transitive:
85282         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85283         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85284
85285 2005-08-15  Simon Josefsson  <jas@extundo.com>
85286
85287         * modules/ssize_t (License): Change to 'unlimited'.
85288
85289         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85290
85291 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85294         Add comments for each pending glibc patch.
85295
85296 2005-08-15  Bruno Haible  <bruno@clisp.org>
85297
85298         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85299         __cplusplus is defined.
85300
85301 2005-08-14  Jim Meyering  <jim@meyering.net>
85302
85303         Sync from coreutils.
85304
85305         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85306         Use the hash-table-based cycle-detection code not just when
85307         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85308         Reported by James Youngman in
85309         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85310         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85311         FTS_TIGHT_CYCLE_CHECK.
85312         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85313         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85314         once again.
85315         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85316         * lib/fts.c (fd_safer): Remove decl.
85317         Include fcntl--.h rather than unistd-safer.h
85318         (fts_safe_changedir): Don't call fd_safer; no longer needed
85319         now that we include fcntl--.h.
85320
85321 2005-08-12  Simon Josefsson  <jas@extundo.com>
85322
85323         * modules/getndelim2: Use ssize_t module.
85324         * modules/getnline: Likewise.
85325         * modules/safe-read: Likewise.
85326         * modules/xreadlink: Likewise.
85327
85328         * modules/ssize_t: New file.
85329
85330 2005-08-12  Simon Josefsson  <jas@extundo.com>
85331
85332         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85333
85334 2005-08-12  Simon Josefsson  <jas@extundo.com>
85335
85336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85337         ssize_t.
85338
85339 2005-08-12  Simon Josefsson  <jas@extundo.com>
85340
85341         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85342         readline, getdelim and check_version.
85343         (Support for systems lacking ISO C 99: Sizes of integer types):
85344         Add size_max.
85345
85346 2005-08-12  Bruno Haible  <bruno@clisp.org>
85347
85348         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85349
85350 2005-08-11  Simon Josefsson  <jas@extundo.com>
85351
85352         * modules/readline: New file.
85353
85354         * modules/strnlen (Files): Add strnlen.h.
85355
85356 2005-08-11  Simon Josefsson  <jas@extundo.com>
85357
85358         * m4/readline.m4: New file.
85359
85360 2005-08-11  Simon Josefsson  <jas@extundo.com>
85361
85362         * lib/readline.h, readline.c: New file.
85363
85364 2005-08-11  Simon Josefsson  <jas@extundo.com>
85365
85366         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85367         gl_AVOID.
85368
85369 2005-08-11  Bruno Haible  <bruno@clisp.org>
85370
85371         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85372
85373 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85374
85375         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85376
85377 2005-08-10  Simon Josefsson  <jas@extundo.com>
85378
85379         * tests/test-iconvme.c: New file.
85380
85381 2005-08-10  Simon Josefsson  <jas@extundo.com>
85382
85383         * m4/strnlen.m4: New file.
85384
85385         * m4/strndup.m4: Don't check for strnlen declaration, done in
85386         strnlen.m4.
85387
85388 2005-08-10  Simon Josefsson  <jas@extundo.com>
85389
85390         * lib/strndup.c: Use strnlen.h.
85391
85392         * lib/strnlen.h: New file.
85393
85394 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85395
85396         * README: Typos.
85397
85398 2005-08-02  Simon Josefsson  <jas@extundo.com>
85399
85400         * modules/readline: New file.
85401
85402 2005-08-02  Simon Josefsson  <jas@extundo.com>
85403
85404         * modules/getdelim: New file.
85405
85406         * modules/getline: Rewrite, don't use getndelim2.
85407
85408 2005-08-02  Simon Josefsson  <jas@extundo.com>
85409
85410         * m4/getline.m4: Separate out getdelim stuff into separate module.
85411
85412         * m4/getdelim.m4: New file.
85413
85414 2005-08-02  Simon Josefsson  <jas@extundo.com>
85415
85416         * lib/getline.h, getline.c: Rewrite.
85417
85418         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85419
85420 2005-07-31  Bruno Haible  <bruno@clisp.org>
85421
85422         * lib/lock.h (gl_lock_initializer): New macro.
85423         (gl_lock_define_initialized): Use it.
85424         (gl_rwlock_initializer): New macro.
85425         (gl_rwlock_define_initialized): Use it.
85426         (gl_recursive_lock_initializer): New macro.
85427         (gl_recursive_lock_define_initialized): Use it.
85428
85429 2005-07-30  Karl Berry  <karl@gnu.org>
85430
85431         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85432         Report from Ben Pfaff, regarding getopt.
85433
85434 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85437         normal way.
85438         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85439         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85440         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85441         (gl_GETOPT): Use the new macros.  Most of the implementation
85442         is moved to the new macros.  This is for programs like Emacs
85443         that don't want all the functionality of gl_GETOPT.
85444
85445 2005-07-26  Bruno Haible  <bruno@clisp.org>
85446
85447         * m4/lock.m4: Update from GNU gettext.
85448
85449 2005-07-26  Bruno Haible  <bruno@clisp.org>
85450
85451         * lib/lock.h: Update from GNU gettext.
85452         * lib/lock.c: Update from GNU gettext.
85453
85454 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85457         obsolescent AC_TRY_RUN.  Include the default includes files, for
85458         'exit'.
85459
85460 2005-07-24  Bruno Haible  <bruno@clisp.org>
85461
85462         * modules/visibility: New file.
85463         * MODULES.html.sh (Misc): Add visibility.
85464
85465 2005-07-24  Bruno Haible  <bruno@clisp.org>
85466
85467         * m4/visibility.m4: New file.
85468
85469 2005-07-24  Bruno Haible  <bruno@clisp.org>
85470
85471         * doc/visibility.texi: New file.
85472
85473 2005-07-22  Bruno Haible  <bruno@clisp.org>
85474
85475         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85476         $(ALLOCA_H), redundant through BUILT_SOURCES.
85477         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85478         redundant through BUILT_SOURCES.
85479         * modules/byteswap (Makefile.am): Remove explicit dependency on
85480         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85481         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85482         $(FNMATCH_H), redundant through BUILT_SOURCES.
85483         * modules/getopt (Makefile.am): Remove explicit dependency on
85484         $(GETOPT_H), redundant through BUILT_SOURCES.
85485         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85486         redundant through BUILT_SOURCES.
85487         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85488         redundant through BUILT_SOURCES.
85489         * modules/stdbool (Makefile.am): Remove explicit dependency on
85490         $(STDBOOL_H), redundant through BUILT_SOURCES.
85491         * modules/stdint (Makefile.am): Remove explicit dependency on
85492         $(STDINT_H), redundant through BUILT_SOURCES.
85493         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85494         Remove explicit dependency on $(SYSEXITS_H).
85495         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85496
85497 2005-07-18  Simon Josefsson  <jas@extundo.com>
85498
85499         * lib/check-version.c (check_version): Accept identical versions too.
85500
85501 2005-07-18  Bruno Haible  <bruno@clisp.org>
85502
85503         * modules/lock: New file.
85504         * MODULES.html.sh (Multithreading): New section.
85505
85506 2005-07-18  Bruno Haible  <bruno@clisp.org>
85507
85508         * m4/lock.m4: New file, from GNU gettext.
85509
85510 2005-07-18  Bruno Haible  <bruno@clisp.org>
85511
85512         * lib/lock.h: New file, from GNU gettext.
85513         * lib/lock.c: New file, from GNU gettext.
85514
85515 2005-07-18  Bruno Haible  <bruno@clisp.org>
85516
85517         * lib/lock.h (gl_once_t): New type.
85518         (gl_once_define, gl_once): New macros.
85519         * lib/lock.c (fresh_once): New variable.
85520         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85521         functions.
85522
85523 2005-07-16  Simon Josefsson  <jas@extundo.com>
85524
85525         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85526         workaround, suggested by Bruno.
85527
85528 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85529
85530         * modules/xalloc (Depends-on): Add xalloc-die.
85531         * modules/xvasprintf (Depends-on): Add xalloc-die.
85532
85533 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85534
85535         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85536         with a minor change.
85537
85538 2005-07-15  Bruno Haible  <bruno@clisp.org>
85539
85540         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85541         When using lib/poll.c, define poll as rpl_poll.
85542
85543 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85544
85545         * modules/argp (Depends-on): Remove unlocked-io.
85546
85547 2005-07-14  Derek Price  <derek@ximbiot.com>
85548
85549         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85550         for glob symlink bug.
85551
85552 2005-07-14  Bruno Haible  <bruno@clisp.org>
85553
85554         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85555         Instead, test for *_unlocked function declarations directly.
85556
85557 2005-07-11  Simon Josefsson  <jas@extundo.com>
85558
85559         * modules/size_max: New file.
85560
85561         * modules/xsize: Depend on size_max module for size_max.m4.
85562
85563 2005-07-11  Simon Josefsson  <jas@extundo.com>
85564
85565         * lib/size_max.h: New file.
85566
85567 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85570         copyright symbol and the year.
85571         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85572         (version_etc_va): Use parameterized copyright notice.
85573         Reword to conform to the current GNU coding standards.
85574
85575 2005-07-11  Karl Berry  <karl@gnu.org>
85576
85577         * doc/gnulib.texi (Quoting): new node.
85578         (Initial import): more info, from Patrice.
85579
85580 2005-07-11  Bruno Haible  <bruno@clisp.org>
85581
85582         * gnulib-tool (func_usage): Document option --avoid.
85583         (Command line options): Handle --avoid.
85584         (func_acceptable): New function.
85585         (func_modules_transitive_closure): Use it.
85586
85587 2005-07-11  Bruno Haible  <bruno@clisp.org>
85588
85589         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85590         Reported by Jim Meyering.
85591
85592 2005-07-10  Bruno Haible  <bruno@clisp.org>
85593
85594         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85595         Needed when size_t is smaller than 'unsigned int'.
85596         Reported by Paul Eggert.
85597
85598 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85599
85600         * modules/argp (Depends-on): Add unlocked-io
85601
85602 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85603
85604         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85605         block of defines.
85606
85607 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85608
85609         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85610         fix now.
85611
85612 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85613         and Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85616         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85617
85618 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         * modules/regex (Files): Add lib/regex_internal.c,
85621         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85622         (Depends-on): Add extensions.
85623         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85624
85625 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85626
85627         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85628         pathconf.
85629         * m4/same.m4 (gl_SAME): Likewise.
85630         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85631
85632         * m4/regex.m4: Adjust to new libc regex implementation.
85633         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85634         all the .c and .h parts of (the new) regex.
85635         Quote the m4 stuff better.
85636         Check for RE_ICASE bug of old gnulib.
85637         Check for REG_STARTEND of recent libc.
85638         Rename local variables from jm_* to gl_*.
85639         Quote operand of "test -f".
85640         Say "recent enough" version of libc, not "version 2".
85641         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85642         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85643         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85644         Remove check for btowc, isascii.
85645         Require AM_LANGINFO_CODESET.
85646
85647 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85648
85649         * lib/regex.c, regex.h: Sync from libc.
85650         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85651         * lib/regexec.c:
85652         New files, synced from libc, except that regex_internal.h
85653         currently has a small porting fix.
85654
85655 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85656
85657         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85658         regex_internal.c, regexec.c.
85659         Add regex_internal.h too, but as a comment, since the libc version
85660         is currently broken in gnulib mode.
85661
85662 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85663
85664         Support programs like Emacs that use gnulib but not gettext.
85665         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85666         * modules/gettext-h: New file.
85667         * modules/gettext (Files): Remove lib/gettext.h.
85668         (Depends-on): Add gettext-h.
85669         (Makefile.am): Remove lib_SOURCES.
85670         * modules/argmatch, modules/c-stack, modules/closeout:
85671         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85672         * modules/execute, modules/file-type, modules/getaddrinfo:
85673         * modules/getopt, modules/human, modules/javacomp:
85674         * modules/javaexec, modules/mkdir-p, modules/obstack:
85675         * modules/openat, modules/pagealign_alloc, modules/pipe:
85676         * modules/quotearg, modules/regex, modules/rpmatch:
85677         * modules/unicodeio, modules/userspec, modules/version-etc:
85678         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85679         * modules/xsetenv:
85680         Depend on gettext-h, not gettext.
85681
85682 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85683
85684         * gnulib-tool (func_import): Add support for 'public domain' license.
85685         * modules/alloca, modules/atexit, modules/memmove:
85686         Now public domain, not GPL.
85687         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85688         * modules/realloc, modules/strerror, modules/strtod:
85689         Now LGPL, not GPL.
85690
85691 2005-07-05  Bruno Haible  <bruno@clisp.org>
85692
85693         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85694         autoconf CVS. Needed for mingw.
85695
85696 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         Remove the dependency of the strftime module on the tzset module.
85699         * modules/strftime (Depends-on): Remove dependency on tzset.
85700
85701 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85702
85703         Remove the dependency of the strftime module on the tzset module.
85704         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85705         gl_FUNC_TZSET_CLOBBER.
85706
85707 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85708
85709         Remove the dependency of the strftime module on the tzset module.
85710         * lib/strftime.c (my_strftime)
85711         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85712         Copy the input structure, to work around some of the bug with
85713         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85714         Solaris releases, you should also use the tzset module, but we won't
85715         require it as a dependency any more since we don't want LGPLed code
85716         to depend on GPLed code.
85717
85718 2005-07-02  Jim Meyering  <jim@meyering.net>
85719
85720         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85721         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85722         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85723         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85724
85725 2005-07-02  Jim Meyering  <jim@meyering.net>
85726
85727         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85728
85729 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85730
85731         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85732         declares only 'struct timespec;' (!).
85733
85734 2005-07-01  Jim Meyering  <jim@meyering.net>
85735
85736         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85737         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85738         * lib/save-cwd.c, tempname.c:
85739         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85740         and don't include <sys/file.h>).
85741
85742 2005-06-29  Jim Meyering  <jim@meyering.net>
85743
85744         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85745         type name.  Use the variable name instead.
85746         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85747         Likewise.
85748
85749 2005-06-28  Simon Josefsson  <jas@extundo.com>
85750
85751         * modules/check-version (Files): Add check-version.m4.
85752
85753 2005-06-28  Simon Josefsson  <jas@extundo.com>
85754
85755         * m4/check-version.m4: New file, suggested by Jim Meyering
85756         <jim@meyering.net>.
85757
85758 2005-06-28  Simon Josefsson  <jas@extundo.com>
85759
85760         * lib/check-version.h, lib/check-version.c: New files.
85761
85762 2005-06-28  Simon Josefsson  <jas@extundo.com>
85763
85764         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85765         collision with global variable.  Better indentation.  Don't
85766         increment buffer pointer beyond buffer end.  Based on comments
85767         from Paul Eggert <eggert@cs.ucla.edu>.
85768
85769         * lib/base64.h: Indent.
85770
85771 2005-06-28  Simon Josefsson  <jas@extundo.com>
85772
85773         * doc/gnulib.texi (Library version handling): New section.
85774
85775 2005-06-28  Jim Meyering  <jim@meyering.net>
85776
85777         * check-module (find_included_lib_files): Hard-code another
85778         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85779         but modules/fts-lgpl (correctly) does not list those files.
85780
85781         * modules/canonicalize (Files): Add lib/pathmax.h.
85782
85783 2005-06-25  Simon Josefsson  <jas@extundo.com>
85784
85785         * modules/check-version: New file.
85786
85787 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85788
85789         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85790         initializer of struct addrinfo, as an indication that we don't
85791         care how many members the structure has.
85792
85793 2005-06-24  Derek Price  <derek@ximbiot.com>
85794         and Bruno Haible  <bruno@clisp.org>
85795
85796         Remove stat module & update lstat.
85797         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85798         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85799         * m4/stat.m4: Remove this file.
85800
85801 2005-06-24  Derek Price  <derek@ximbiot.com>
85802         and Bruno Haible  <bruno@clisp.org>
85803
85804         Remove stat module & update lstat.
85805         * lib/stat.c: Remove this file...
85806         (slash_aware_lstat): ...moving this content and its support...
85807         * lib/lstat.c (rpl_lstat): ...into here.
85808         * lib/lstat.h: New file.
85809
85810 2005-06-24  Derek Price  <derek@ximbiot.com>
85811         and Bruno Haible  <bruno@clisp.org>
85812
85813         Remove stat module & update lstat.
85814         * config/srclist.txt (libc sources): Remove stat.
85815
85816 2005-06-24  Derek Price  <derek@ximbiot.com>
85817         and Bruno Haible  <bruno@clisp.org>
85818
85819         Remove stat module & update lstat.
85820         * MODULES.html.sh (stat): Remove.
85821         * MODULES.html: Regenerated.
85822         * modules/lstat (Description): Correct function name.
85823         (Files): Add "lstat.h".
85824         (Depends-on): Remove stat, add xalloc, stat-macros.
85825         * modules/stat: Remove this file.
85826         (Include): Add "lstat.h", remove <sys/stat.h>.
85827
85828 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85831         (ranged_convert): Don't save conversion in a temporary struct.
85832         This causes a warning with GCC 4.0.0, and anyway in the typical
85833         case it's not worth the extra 100 bytes or so of code.
85834         (ranged_convert, __mktime_internal): When calling a function via a
85835         pointer P, use P () rather than (*P) (), as we now assume C89 or
85836         better.
85837
85838 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85841         "who -r" failed to give output.  Problem reported by Tim Waugh.
85842
85843         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85844         (xcalloc): Use it to avoid needless tests.
85845         Problem reported by Jim Meyering.
85846
85847 2005-06-20  Derek Price  <derek@ximbiot.com>
85848
85849         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85850         unnecessary for Autoconfs > 2.59c.
85851
85852 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85853
85854         * lib/argp.h (__option_is_short): Check upper limit of
85855         __key. Isprint() requires its argument to have the value
85856         of an unsigned char or EOF.
85857
85858 2005-06-16  Jim Meyering  <jim@meyering.net>
85859
85860         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85861         when either N or S is zero.
85862
85863 2005-06-16  Derek Price  <derek@ximbiot.com>
85864
85865         * m4/bison.m4: Declare YACC & YFLAGS precious.
85866
85867 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85870         multibyte string or pattern, fall back on unibyte matching.
85871         Problem reported by James Youngman.
85872
85873 2005-06-08  Bruno Haible  <bruno@clisp.org>
85874
85875         * modules/csharpcomp: New file.
85876         * MODULES.html.sh (C#): Add csharpcomp.
85877
85878 2005-06-08  Bruno Haible  <bruno@clisp.org>
85879
85880         * m4/csharpcomp.m4: New file, from GNU gettext.
85881
85882 2005-06-08  Bruno Haible  <bruno@clisp.org>
85883
85884         * lib/csharpcomp.h: New file, from GNU gettext.
85885         * lib/csharpcomp.c: New file, from GNU gettext.
85886         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85887
85888 2005-06-08  Bruno Haible  <bruno@clisp.org>
85889
85890         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85891         warning on mingw.
85892
85893 2005-06-07  Derek Price  <derek@ximbiot.com>
85894
85895         Sync from CVS.
85896         * lib/glob_.h: Indent nested #ifdef.
85897
85898 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         Sync from coreutils.
85901         Use "file name" when talking about file names, instead of "filename"
85902         or "path", as per the GNU coding standards.
85903         * lib/mkdir-p.c: Renamed from makepath.c.
85904         (make_dir_parents): Renamed from make_path.  All callers changed.
85905         * lib/mkdir-p.h: Likewise.  All includers changed.
85906         * lib/filenamecat.c: Renamed from path-concat.c.
85907         (file_name_concat): Renamed from path_concat.  All callers changed.
85908         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85909         * lib/filenamecat.h: Likewise.  All includers changed.
85910         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85911         in comments or local variable names.
85912         * lib/basename.c: Likewise.
85913         * lib/canonicalize.c, canonicalize.h: Likewise.
85914         * lib/dirname.c, dirname.h: Likewise.
85915         * lib/euidaccess.c: Likewise.
85916         * lib/exclude.c: Likewise
85917         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85918         * lib/fsusage.c, fsuage.h: Likewise.
85919         * lib/fts.c, fts_.h: Likewise.
85920         * lib/getcwd.c: Likewise.
85921         * lib/getloadavg.c: Likewise.
85922         * lib/mkstemp.c: Likewise.
85923         * lib/mountlist.c, mountlist.h: Likewise.
85924         * lib/openat.c, openat.h: Likewise.
85925         * lib/readlink-stub.c: Likewise.
85926         * lib/readutmp.c, readutmp.h: Likewise.
85927         * lib/rename.c: Likewise.
85928         * lib/rmdir.c: Likewise.
85929         * lib/same.c: Likewise.
85930         * lib/savedir.c: Likewise.
85931         * lib/stripslash.c: Likewise.
85932         * lib/tempname.c: Likewise.
85933         * lib/xreadlink.c: Likewise.
85934         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85935         All uses changed.
85936         * lib/exclude.h: Likewise.
85937
85938         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85939         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85940         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85941         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85942         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85943         files have been getting away with it for years (MORE/BSD 4.3
85944         is extinct now).
85945         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85946         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85947
85948         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85949         Define to 256, not 255, as per modern POSIX.
85950
85951 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85952
85953         Sync from coreutils.
85954         Use "file name" when talking about file names, instead of "filename"
85955         or "path", as per the GNU coding standards.
85956         * MODULES.html.sh: mkdir-p renamed from makepath.
85957         filenamecat renamed from path-concat.
85958         * modules/filenamecat: Renamed from modules/path-concat.
85959         (Files): filenamecat.h and filenamecat.c renamed from
85960         path-concat.h and path-concat.c.
85961         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85962         (Include): filenamecat.h, not path-concat.h.
85963         * modules/mkdir-p: Renamed from modules/makepath.
85964         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85965         makepath.c.
85966         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85967         (Include): mkdir-p.h, not makepath.h.
85968
85969 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         Sync from coreutils.
85972         * m4/mkdir-p.m4: Renamed from makepath.m4.
85973         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85974         Rename files from makepath.c to mkdir-p.c, and from
85975         makepath.h to mkdir-p.h.
85976         * m4/filenamecat.m4: Renamed from path-concat.m4.
85977         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85978         Rename files from path-concat.c to filenamecat.c,
85979         and from path-concat.h to filenamecat.h.
85980         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85981         "file name" in local variables or comments.
85982         * m4/rename.m4: Likewise.
85983
85984 2005-06-01  Bruno Haible  <bruno@clisp.org>
85985
85986         * modules/csharpexec: New file.
85987         * MODULES.html.sh (C#): New section.
85988
85989 2005-06-01  Bruno Haible  <bruno@clisp.org>
85990
85991         * m4/csharp.m4: New file, from GNU gettext.
85992         * m4/csharpexec.m4: New file, from GNU gettext.
85993
85994 2005-06-01  Bruno Haible  <bruno@clisp.org>
85995
85996         * lib/csharpexec.h: New file, from GNU gettext.
85997         * lib/csharpexec.c: New file, from GNU gettext.
85998         * lib/csharpexec.sh.in: New file, from GNU gettext.
85999
86000 2005-05-31  Derek Price  <derek@ximbiot.com>
86001             Paul Eggert  <eggert@cs.ucla.edu>
86002
86003         Sync from cvs.
86004         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86005
86006 2005-05-31  Derek Price  <derek@ximbiot.com>
86007             Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         Sync from cvs.
86010         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86011
86012 2005-05-29  Derek Price  <derek@ximbiot.com>
86013
86014         * config/srclist.txt (glob_.h, glob.c): Add these files.
86015
86016 2005-05-29  Derek Price  <derek@ximbiot.com>
86017
86018         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86019         * modules/glob: New file.
86020         * modules/getlogin_r: Add link to POSIX spec in description.
86021
86022 2005-05-29  Derek Price  <derek@ximbiot.com>
86023             Paul Eggert  <eggert@cs.ucla.edu>
86024
86025         * m4/glob.m4: New file.
86026
86027 2005-05-29  Derek Price  <derek@ximbiot.com>
86028             Paul Eggert  <eggert@cs.ucla.edu>
86029
86030         * lib/glob_.h, lib/glob.c: New files.
86031
86032 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86035         * modules/fts-lgpl (Depends-on): Remove gettext.
86036
86037 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86038
86039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86040         and don't require gt_INTTYPES_PRI.
86041
86042 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86043
86044         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86045
86046         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86047         the configuration hassle isn't worth it.
86048         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86049         (LONGEST_MODIFIER, PRIuMAX): Remove.
86050
86051 2005-05-27  Bruno Haible  <bruno@clisp.org>
86052
86053         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86054
86055 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86056
86057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86058         _POSIX_PTHREAD_SEMANTICS for Solaris.
86059
86060 2005-05-25  Derek Price  <derek@ximbiot.com>
86061
86062         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86063
86064 2005-05-25  Derek Price  <derek@ximbiot.com>
86065             Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86068         * lib/getlogin_r.c, getlogin_r.h: New files.
86069
86070 2005-05-25  Bruno Haible  <bruno@clisp.org>
86071             Derek Price  <derek@ximbiot.com>
86072
86073         * lib/getlogin_r.h: Simplify API documentation.
86074
86075 2005-05-23  Derek Price  <derek@ximbiot.com>
86076
86077         * modules/minmax (Files): Add m4/minmax.m4.
86078         (configure.ac): Add gl_MINMAX.
86079
86080 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86081
86082         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86083         so that unistd-safer.h (GPL'ed code) need not be included.
86084
86085 2005-05-22  Bruno Haible  <bruno@clisp.org>
86086
86087         * m4/minmax.m4: New file.
86088         Based on a patch by Derek Price <derek@ximbiot.com>.
86089
86090 2005-05-22  Bruno Haible  <bruno@clisp.org>
86091
86092         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86093         (INT64_MIN): Fix definition.
86094         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86095
86096         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86097         NEED_SIGNED_INT_TYPES.
86098
86099         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86100         HAVE_SYSTEM_INTTYPES.
86101
86102 2005-05-22  Bruno Haible  <bruno@clisp.org>
86103
86104         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86105         Also include <sys/param.h> if it defines MIN, MAX.
86106         Based on a patch by Derek Price <derek@ximbiot.com>.
86107
86108 2005-05-21  Jim Meyering  <jim@meyering.net>
86109
86110         * modules/fts (Files): Add m4/inttypes-pri.m4.
86111         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86112
86113 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86114
86115         New fts module.
86116         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86117         (setup_dir, free_dir): New functions.
86118         (enter_dir, leave_dir): Define trivial
86119         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86120         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86121         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86122         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86123         Move to fts-cycle.c.
86124         (fts_open): Use setup_dir.
86125         (fts_close): Use free_dir.
86126         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86127         This adds a label and some gotos, but the alternatives were messier.
86128         Check for memory allocation failure when entering a dir.
86129         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86130         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86131         (FTS): New member fts_cycle, that is a union that contains the
86132         old active_dir_ht and cycle_state.  All uses changed to mention
86133         fts_cycle.ht and fts_cycle.state.
86134         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86135         fts.c, with the following changes:
86136         (setup_dir, free_dir): New functions.
86137         (enter_dir): Now returns bool.  Return true if successful, false
86138         if memory exhausted.  All callers changed.
86139         Do not bother partly cleaning up on
86140         memory allocation failure; that is free_dir's job.
86141         However, free ad if hash_insert fails, to avoid memory leak.
86142         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86143         fts->fts_options to see which union member to use.
86144
86145 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86146
86147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86148         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86149
86150 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86153
86154 2005-05-20  Jim Meyering  <jim@meyering.net>
86155
86156         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86157         Now a macro, to pacify GCC.
86158
86159 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86160
86161         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86162         of -1.
86163
86164 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86165
86166         * lib/chown.c (rpl_chown): Return -1 on failure.
86167
86168 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86169
86170         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86171         Don't check for stddef.h.
86172         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86173         don't use its results.
86174         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86175         since we include them unconditionally.  Don't require
86176         AM_STDBOOL_H, since stdbool is a prerequisite.
86177         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86178         since we assume C89 or better.
86179         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86180         as we don't use their results.
86181         Don't check for fchdir, memmove, memset, strrchr, as we use
86182         them unconditionally.
86183         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86184         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86185
86186 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86187
86188         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86189         Include <stddef.h> unconditionally, since we assume C89 now.
86190         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86191         * lib/fts.c: Include fts_.h first, to check interface.
86192         Do not include intprops.h; no longer needed.
86193         Include cycle-check.h and hash.h, since fts_.h no longer does.
86194         Remove unnecessary casts of closedir to void.
86195         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86196         decide whether to decrement nlinks.
86197         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86198         (FTS): Use struct hash_table * instead of Hash_table, so that
86199         we no longer need to include hash.h here.
86200
86201 2005-05-18  Jim Meyering  <jim@meyering.net>
86202
86203         * modules/dirfd (License): Change to LGPL.  Most of the code
86204         is already in the public domain.
86205
86206 2005-05-18  Jim Meyering  <jim@meyering.net>
86207
86208         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86209         Reported by Yoann Vandoorselaere.
86210
86211 2005-05-17  Jim Meyering  <jim@meyering.net>
86212
86213         * m4/fts.m4: New file, from coreutils.
86214
86215 2005-05-17  Jim Meyering  <jim@meyering.net>
86216
86217         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86218
86219 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86220
86221         Sync from coreutils.
86222         * m4/unlinkdir.m4: New file.
86223
86224 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86225
86226         Sync from coreutils.
86227         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86228         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86229         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86230         White space changes only.
86231         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86232         special.
86233         * lib/yesno.c: Include getline.h, not ctype.h.
86234         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86235         Use getline to remove arbitrary restriction on response length.
86236
86237 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86238
86239         * config/srclist-update: Spell out "Street" in FSF postal
86240         mail address; this is the style the FSF seems to prefer.
86241
86242         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86243         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86244         this updates FSF postal mail address.
86245
86246         Sync from coreutils.
86247         * modules/unlinkdir: New file.
86248         * modules/yesno (Depends-on): Add getline.
86249         * MODULES.html.sh (File system functions): Add unlinkdir.
86250
86251 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86252
86253         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86254         lib/strsep.h:
86255         Change the initial comment to refer to GPL, not LGPL.
86256         gnulib-tool will change it to LGPL as needed.
86257
86258         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86259         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86260         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86261         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86262         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86263         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86264         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86265         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86266         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86267         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86268         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86269         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86270         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86271         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86272         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86273         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86274         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86275         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86276         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86277         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86278         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86279         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86280         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86281         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86282         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86283         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86284         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86285         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86286         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86287         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86288         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86289         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86290         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86291         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86292         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86293         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86294         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86295         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86296         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86297         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86298         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86299         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86300         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86301         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86302         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86303         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86304         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86305         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86306         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86307         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86308         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86309         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86310         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86311         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86312         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86313         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86314         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86315         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86316         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86317         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86318         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86319         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86320         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86321         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86322         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86323         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86324         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86325         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86326         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86327         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86328         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86329         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86330         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86331         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86332         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86333         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86334         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86335         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86336         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86337         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86338         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86339         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86340         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86341         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86342         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86343         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86344         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86345         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86346         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86347         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86348         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86349         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86350         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86351         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86352         lib/yesno.c, lib/yesno.h:
86353         Update FSF postal mail address.
86354
86355 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86356
86357         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86358         tests/test-memmem.c, tests/test-stpncpy.c:
86359         Update FSF postal mail address.
86360
86361 2005-05-13  Bruno Haible  <bruno@clisp.org>
86362
86363         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86364         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86365         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86366         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86367         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86368         Add support for 64-bit integers in the MSVC compiler.
86369
86370 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86371
86372         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86373
86374 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86375
86376         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86377
86378 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86379
86380         * doc/getdate.texi (General date syntax): Don't say that date
86381         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86382         Problem reported by Nic Ferrier.
86383
86384 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86385
86386         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86387         specified in ai_socktype. Fix invalid ai_protocol
86388         check. ai_protocol is usually set to 0 or depending on
86389         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86390         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86391         ai_socktype / ai_protocol in the returned addrinfo structure.
86392
86393 2005-05-10  Simon Josefsson  <jas@extundo.com>
86394
86395         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86396         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86397
86398 2005-05-10  Karl Berry  <karl@gnu.org>
86399
86400         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86401         (from http://www.gnu.org/licenses).
86402         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86403         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86404         fdl.texi suffices.
86405
86406 2005-05-10  Karl Berry  <karl@gnu.org>
86407
86408         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86409         (COPYING.DOC): remove.
86410
86411         * config/srclist-update: new FSF address.
86412
86413 2005-05-10  Derek Price  <derek@ximbiot.com>
86414
86415         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86416         possible.
86417
86418 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86419             Bruno Haible  <bruno@clisp.org>
86420
86421         * modules/inet_ntop: New file.
86422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86423         inet_ntop.
86424
86425 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86426             Bruno Haible  <bruno@clisp.org>
86427
86428         * m4/inet_ntop.m4: New file.
86429
86430 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86431             Bruno Haible  <bruno@clisp.org>
86432
86433         * lib/inet_ntop.h: New file.
86434         * lib/inet_ntop.c: New file, from glibc with modifications.
86435
86436 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86437
86438         * modules/time_r (License): Change to LGPL.
86439         * modules/extensions (License): Change to LGPL.  Actually,
86440         the license is more permissive than that, but currently gnulib-tool
86441         doesn't know how to handle more-permissive licenses.
86442
86443         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86444         Problem reported by Dave Love.
86445
86446 2005-05-08  Jim Meyering  <jim@meyering.net>
86447
86448         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86449         blank.
86450
86451 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86452
86453         * modules/argmatch (Depends-on): Add stdbool.
86454         * modules/backupfile (Depends-on): Likewise.
86455         * modules/chdir-long (Depends-on): Likewise.
86456         * modules/closeout (Depends-on): Likewise.
86457         * modules/cycle-check (Depends-on): Likewise.
86458         * modules/dirname (Depends-on): Likewise.
86459         * modules/fnmatch (Depends-on): Likewise.
86460         * modules/fsusage (Depends-on): Likewise.
86461         * modules/fwriteerror (Depends-on): Likewise.
86462         * modules/getcwd (Depends-on): Likewise.
86463         * modules/getloadavg (Depends-on): Likewise.
86464         * modules/hard-locale (Depends-on): Likewise.
86465         * modules/makepath (Depends-on): Likewise.
86466         * modules/mountlist (Depends-on): Likewise.
86467         * modules/nanosleep (Depends-on): Likewise.
86468         * modules/posixtm (Depends-on): Likewise.
86469         * modules/quotearg (Depends-on): Likewise.
86470         * modules/readtokens (Depends-on): Likewise.
86471         * modules/readtokens0 (Depends-on): Likewise.
86472         * modules/readutmp (Depends-on): Likewise.
86473         * modules/save-cwd (Depends-on): Likewise.
86474         * modules/strftime (Depends-on): Likewise.
86475         * modules/userspec (Depends-on): Likewise.
86476         * modules/utimecmp (Depends-on): Likewise.
86477         * modules/xgetcwd (Depends-on): Likewise.
86478         * modules/xnanosleep (Depends-on): Likewise.
86479         * modules/xstrtod (Depends-on): Likewise.
86480         * modules/yesno (Depends-on): Likewise.
86481
86482 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86483
86484         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86485         needless checks.
86486
86487 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86488
86489         Merge from coreutils.  Among other things,
86490         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86491         * lib/fd-safer.c: New file.
86492         * lib/fcntl-safer.h, open-safer.c: Remove.
86493         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86494         * lib/dup-safer.c: Include unistd-safer.h first.
86495         Don't include errno.h.
86496         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86497         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86498         * lib/file-type.c: Rely on file-type.h change.
86499         * lib/getloadavg.c: Include unistd-safer.h.
86500         (getloadavg): Use safer open.
86501         * lib/getusershell.c: Include "stdio-safer.h".
86502         (getusershell): Use safer fopen.
86503         * lib/long-options.c (long_options): Use NULL rather than 0.
86504         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86505         'free'.
86506         * lib/modechange.c: Likewise.
86507         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86508         (MODE_DONE): New constant.
86509         (struct mode_change): Remove 'next' member.
86510         (make_node_op_equals): New function; like the old one of the
86511         same name, except it allocates an array.
86512         (mode_compile, mode_create_from_ref): Use it.
86513         (mode_compile): Allocate result as an array, not a linked list.
86514         Parse octal string ourself, so that we catch mistakes like "+0".
86515         (mode_adjust): Arg is an array, not a linked list.
86516         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86517         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86518         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86519         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86520         Remove.  This is now stat-macros.h's job.
86521         (talloc): Remove.  All callers replaced by xalloc, so that
86522         our invokers don't have to worry about reporting memory failures.
86523         (make_node_op_equals): Remove.
86524         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86525         New constants.
86526         (struct mode_change): Moved here from modechange.h.
86527         (mode_append_entry): Remove.
86528         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86529         apps to have incorrect behavior.  Use simpler algorithm for head
86530         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86531         Detect more invalid usages rather than having somewhat-random behavior.
86532         Don't insert an "a=" action, as that leads to incorrect behavior.
86533         (mode_compile, mode_create_from_ref): Return NULL on error instead
86534         of an enum, since now there's only one way to have an error.  All
86535         callers changed.
86536         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86537         at the correct time.  Simplify calculation of "+u" and its ilk.
86538         Don't mishandle "+X".
86539         (mode_free): Remove "register" and localize decls.
86540         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86541         (struct mode_change): Move to modechange.c; callers don't
86542         need to see this stuff.
86543         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86544         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86545         (mode_change, mode_adjust): Reflect the new signatures noted above.
86546         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86547         that might redefine system include files.
86548         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86549         (my_usleep): Use NULL rather than (void *) 0.
86550         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86551         Use siginterrupt to specify that system calls should be interrupted.
86552         (rpl_nanosleep): Move initialization of suspended closer to call of
86553         my_usleep.
86554         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86555         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86556         (desirable_utmp_entry): New function.
86557         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86558         using x2nrealloc, to simplify logic.
86559         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86560         size calculation.  Do not assume utmp file is a regular file.
86561         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86562         (READ_UTMP_CHECK_PIDS): New constant.
86563         * lib/save-cwd.c: Include unistd-safer.h.
86564         (save_cwd): Use fd_safer.
86565         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86566         [!_LIBC] Include "stat-macros.h" instead.
86567         * lib/unistd-safer.h (fd_safer): New decl.
86568
86569 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86570
86571         * modules/getloadavg (Depends-on): Add unistd-safer.
86572         * modules/getusershell (Depends-on): Add stdio-safer.
86573         * modules/lstat (Depends-on): Remove xalloc.
86574         * modules/mkstemp (Depends-on): Add stat-macros.
86575         * modules/modechange (Depends-on): Remove xstrtol.
86576         Add stat-macros, xalloc.
86577         * modules/save-cwd (Depends-on): Add unistd-safer.
86578         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86579         * modules/unistd-safer (Files): Add lib/fd-safer.c
86580         (Makefile.am): Remove lib_SOURCES.
86581
86582         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86583         Remove fcntl-safer; unistd-safer supersedes it.
86584
86585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86586
86587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86588         AC_HEADER_STAT.
86589         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86590         (gl_PREREQ_CHOWN): Remove.
86591         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86592         it.  Don't require AC_HEADER_STAT.
86593         (gl_PREREQ_LSTAT): Remove.
86594         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86595         Don't require AC_HEADER_STAT.
86596         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86597         (gl_PREREQ_RMDIR): Remove.
86598         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86599         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86600         the stat-macros module a prerequisite.
86601         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86602         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86603         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86604         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86605         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86606         variable names.
86607         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86608         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86609         variable prefixes.
86610         * m4/fcntl-safer.m4: Remove.
86611         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86612         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86613         Invoke gl_PREREQ_FD_SAFER.
86614         (gl_PREREQ_FD_SAFER): New macro.
86615         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86616         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86617         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86618         Remove duplicate call to AC_LIBOBJ(readutmp).
86619         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86620
86621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86622         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86623
86624 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86625
86626         * MODULES.html.sh (Misc): Add byteswap.
86627
86628 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86629
86630         * modules/getcwd (Depends-on): Add extensions.
86631         * modules/openat (Depends-on): Likewise.
86632
86633 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86634
86635         * modules/byteswap: New file.
86636
86637 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86638
86639         * m4/byteswap.m4: New file.
86640
86641 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86642
86643         * lib/byteswap_.h: New file.
86644
86645 2005-04-25  Karl Berry  <karl@gnu.org>
86646
86647         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86648
86649 2005-04-25  Albert Chin  <china@thewrittenword.com>
86650
86651         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86652         Toolkit C bug.
86653
86654 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86655
86656         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86657         (func_ln_if_changed): Remove forcibly for no error message
86658         in case file does not exist.
86659
86660 2005-04-19  Simon Josefsson  <jas@extundo.com>
86661
86662         * gnulib-tool (Options): Make --symlink mean --symbolic.
86663
86664 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86665
86666         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86667
86668 2005-04-16  Simon Josefsson  <jas@extundo.com>
86669
86670         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86671
86672 2005-04-15  Simon Josefsson  <jas@extundo.com>
86673
86674         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86675
86676 2005-04-15  Simon Josefsson  <jas@extundo.com>
86677
86678         * gnulib-tool: Rename --symlink to --symbolic.
86679
86680 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86681
86682         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86683         symbolic links to files instead of copying/moving.  Add --aux-dir,
86684         specifying directory relative --dir where auxiliary build tools
86685         are placed.
86686
86687 2005-04-14  Bruno Haible  <bruno@clisp.org>
86688
86689         * modules/allocsa (License): Change to LGPL.
86690         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86691
86692 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86693
86694         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86695         that "UTC +1 second" continues to work.  Problem reported
86696         by Dmitry V. Levin.
86697         (relunit_snumber): New rule.
86698         (relunit): Use it.
86699
86700 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86701
86702         * lib/getdate.y (universal_time_zone_table): New constant.
86703         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86704         universal_time_zone_table.
86705         (lookup_zone): Prefer universal_time_zone_table to
86706         local_time_zone_table, so that "GMT" time stamps are allowed in
86707         London during the summer.  Problem reported by Ian Abbott.
86708
86709 2005-04-12  Jim Meyering  <jim@meyering.net>
86710
86711         * lib/human.c (humblock): Set *options even when returning due to
86712         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86713         warning from gcc-4.
86714
86715 2005-04-09  Jim Meyering  <jim@meyering.net>
86716
86717         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86718         -Wuninitialized: initialize tm0.tm_year.
86719
86720 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86721
86722         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86723         count, since there's no maximum.  All uses changed.
86724         Add member dsts_seen.
86725         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86726         not being INT_MAX.
86727         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86728         Use pc_rels_seen to decide whether a date is absolute.
86729
86730         * lib/getdate.y (number): Don't overwrite year.
86731         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86732         check.
86733
86734 2005-04-02  Simon Josefsson  <jas@extundo.com>
86735
86736         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86737         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86738
86739 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86740
86741         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86742         where no absolute path name can be longer than PATH_MAX.
86743
86744 2005-03-27  Jim Meyering  <jim@meyering.net>
86745
86746         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86747
86748 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86749
86750         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86751         "one's complement" -> "ones' complement" in comment, as per Knuth.
86752         "value of type" -> "type or expression" in comment.
86753         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86754
86755 2005-03-26  Jim Meyering  <jim@meyering.net>
86756
86757         Comment nits.
86758         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86759         Correct typos: s/or/of/.
86760
86761 2005-03-26  Jim Meyering  <jim@meyering.net>
86762
86763         * modules/check-include-files: Move to ../ and rename to...
86764         * check-module: ...this.
86765
86766 2005-03-25  Jim Meyering  <jim@meyering.net>
86767
86768         * modules/xvasprintf (Files): Add xalloc.h.
86769
86770 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86771
86772         * modules/gettext (Files): config/config.rpath ->
86773         build-aux/config.rpath
86774         * modules/iconv (Files): Likewise.
86775         Problem reported by Oskar Liljeblad.
86776
86777 2005-03-23  Jim Meyering  <jim@meyering.net>
86778
86779         * modules/check-include-files: New script to check for
86780         missing dependencies, multiple includes, etc.
86781
86782         * modules/c-strtold (Depends-on): Add xalloc.
86783         * modules/c-strtod (Depends-on): Add xalloc.
86784         * modules/hash (Depends-on): Add xalloc.
86785         (Files): Remove lib/xalloc.h.
86786
86787         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86788         * modules/userspec (Files): Add lib/inttostr.h.
86789
86790 2005-03-23  Jim Meyering  <jim@meyering.net>
86791
86792         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86793
86794 2005-03-22  Jim Meyering  <jim@meyering.net>
86795
86796         * modules/stat-macros: New module.
86797         * modules/canonicalize, modules/euidaccess, modules/file-type,
86798         * modules/filemode, modules/lchown, modules/makepath,
86799         * modules/rmdir, modules/stat: Depend on new stat-macros module
86800         rather than listing lib/stat-macros.h manually.
86801         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86802
86803 2005-03-22  Jim Meyering  <jim@meyering.net>
86804
86805         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86806
86807 2005-03-22  Bruno Haible  <bruno@clisp.org>
86808
86809         * config/srclist.txt: Replace target directory 'config' with
86810         'build-aux'.
86811         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86812         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86813         ../build-aux/.
86814
86815 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86816
86817         * modules/chdir-long (Depends-on): Add mempcpy.
86818
86819         * modules/acl, modules/backupfile, modules/c-strtod,
86820         modules/c-strtold, modules/canon-host, modules/canonicalize,
86821         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86822         modules/exclude, modules/exitfail, modules/file-type,
86823         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86824         modules/getdate, modules/getline, modules/getpagesize,
86825         modules/getpass, modules/getugroups, modules/group-member,
86826         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86827         modules/inttostr, modules/long-options, modules/makepath,
86828         modules/md5, modules/memcasecmp, modules/memcoll,
86829         modules/modechange, modules/mountlist, modules/path-concat,
86830         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86831         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86832         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86833         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86834         modules/strftime, modules/strndup, modules/strverscmp,
86835         modules/timespec, modules/unlocked-io, modules/userspec,
86836         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86837         modules/yesno:
86838         Remove lib_SOURCES line from Makefile.am section, as this is now
86839         done automatically by the corresponding Autoconf macro.
86840
86841 2005-03-21  Jim Meyering  <jim@meyering.net>
86842
86843         Changes imported from coreutils.
86844
86845         * lib/cycle-check.c: Don't include xalloc.h.
86846
86847         * lib/path-concat.c: Don't include assert.h.
86848         (path_concat): Remove assertion that would have triggered
86849         for ABASE starting with more than one slash.
86850         Reported by Andreas Schwab.
86851
86852         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86853         properly when ABASE is an absolute file name.
86854         Correct the description of this function.
86855         Include <assert.h>.
86856         Add an assertion and a test driver.
86857         This fixes a bug introduced on 2004-07-02.
86858         Andreas Schwab reported the resulting failure of cp --parents:
86859         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86860
86861 2005-03-21  Jim Meyering  <jim@meyering.net>
86862
86863         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86864         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86865
86866 2005-03-21  Jim Meyering  <jim@meyering.net>
86867         and  Paul Eggert  <eggert@cs.ucla.edu>
86868
86869         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86870         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86871         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86872         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86873         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86874         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86875         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86876         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86877         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86878         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86879         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86880         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86881         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86882         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86883         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86884         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86885         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86886         for these modules.
86887
86888 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86891         (which shouldn't happen), generate nothing instead of returning 0
86892         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86893
86894 2005-03-16  Bruno Haible  <bruno@clisp.org>
86895
86896         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86897         HAVE_LONGLONG_64BIT.
86898
86899 2005-03-16  Bruno Haible  <bruno@clisp.org>
86900
86901         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86902         HAVE_LONGLONG_64BIT.
86903
86904 2005-03-16  Bruno Haible  <bruno@clisp.org>
86905
86906         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86907         HAVE_LONGLONG_64BIT.
86908
86909 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86912         reliably distinguish strftime failure from empty output on POSIX
86913         hosts.
86914
86915 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86916
86917         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86918         (iconv_string): Don't guess a size-zero buffer, as that might cause
86919         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86920         result would be 'too large', where 'too large' is (heuristically)
86921         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86922         overflow concerns.  This will prevent some unwanted malloc failures
86923         when the inputs are very large.
86924
86925 2005-03-15  Karl Berry  <karl@gnu.org>
86926
86927         * config/srclist.txt (config.rpath): from gettext.
86928         * config/config.rpath: update.
86929
86930 2005-03-15  Bruno Haible  <bruno@clisp.org>
86931
86932         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86933         to 'negate'.
86934
86935         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86936         variable.
86937
86938         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86939         results.
86940
86941 2005-03-14  Simon Josefsson  <jas@extundo.com>
86942
86943         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86944         <fx@gnu.org>.
86945
86946 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86947
86948         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86949         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86950         intprops.h.
86951         * lib/strtol.c: Likewise.
86952
86953 2005-03-14  Jim Meyering  <jim@meyering.net>
86954
86955         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86956         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86957         to be nonzero so that we (and caller) can detect the difference
86958         between a valid zero-length expansion and an error return, even
86959         when the underlying strftime fails before writing anything into
86960         that location.
86961
86962 2005-03-14  Bruno Haible  <bruno@clisp.org>
86963
86964         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86965         Update from GNU gettext 0.14.3.
86966
86967 2005-03-10  Jim Meyering  <jim@meyering.net>
86968
86969         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86970
86971 2005-03-10  Jim Meyering  <jim@meyering.net>
86972
86973         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86974         so that this module works on systems without fchdir.
86975
86976 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86977
86978         Factor int-properties macros into a single file, except for
86979         glibc-related files.
86980         * lib/intprops.h: New file.
86981         * lib/getloadavg.c: Include it instead of limits.h.
86982         (INT_STRLEN_BOUND): Remove.
86983         * lib/human.c: Include intprops.h.
86984         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86985         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86986         302/1000.
86987         * lib/inttostr.h: Include intprops.h instead of limits.h.
86988         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86989         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86990         for consistency with intprops.h.
86991         (time_t_is_integer, twos_complement_arithmetic): Use them.
86992         * lib/sig2str.h: Include <signal.h>, intprops.h.
86993         (INT_STRLEN_BOUND): Remove.
86994         * lib/strftime.c (TYPE_SIGNED): Remove.
86995         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86996         * lib/strtol.c: Adjust comments to match intprops.h.
86997         * lib/userspec.c: Include intprops.h.
86998         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86999         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87000         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87001         instead of rolling our own expressions.
87002         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87003
87004         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87005         instead of int.
87006         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87007         the right thing even if adding 1900 would overflow.  Similarly
87008         for tm_mon + 1 and tm_yday + 1.
87009         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87010         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87011         (DO_SIGNED_NUMBER): New macro.
87012         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87013
87014 2005-03-07  Bruno Haible  <bruno@clisp.org>
87015
87016         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87017
87018 2005-03-07  Bruno Haible  <bruno@clisp.org>
87019
87020         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87021
87022 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87023
87024         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87025         (func_import): Only replace files via --import when they have actually
87026         changed.
87027
87028 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87029
87030         * m4/mmap-anon.m4: New file.
87031         * m4/pagealign_alloc.m4: New file.
87032
87033 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87034             Bruno Haible  <bruno@clisp.org>
87035
87036         * modules/pagealign_alloc: New file.
87037         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87038
87039 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87040             Bruno Haible  <bruno@clisp.org>
87041
87042         * lib/pagealign_alloc.h: New file.
87043         * lib/pagealign_alloc.c: New file.
87044
87045 2005-03-03  Bruno Haible  <bruno@clisp.org>
87046
87047         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87048         Use an all-permissive copyright notice, recommended by RMS.
87049
87050 2005-03-02  Bruno Haible  <bruno@clisp.org>
87051
87052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87053         of AIX, the replacement has to be done only after <string.h> is
87054         included, therefore not in config.h. stpncpy.h does the replacement,
87055         and stpncpy.c uses it.
87056
87057 2005-03-02  Bruno Haible  <bruno@clisp.org>
87058
87059         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87060         stpncpy.c uses it.
87061
87062 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87063
87064         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87065         The workaround isn't strictly needed for POSIX conformance, and
87066         it's too much of a pain to configure and maintain.  We'll ask
87067         people to fix their kernels instead.
87068         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87069         (NANOSLEEP_BUG_WORKAROUND): Remove.
87070         (xnanosleep): Remove the workaround.
87071
87072 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87073
87074         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87075         Reported by Derek Price.
87076         (Include): Add "timespec.h".
87077
87078         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87079
87080 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87081
87082         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87083         to detect nanosleep bug.
87084
87085 2005-03-01  Bruno Haible  <bruno@clisp.org>
87086
87087         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87088
87089 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87090
87091         * modules/gethrxtime: New file.
87092         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87093         (Depends-on): Add gethrxtime.
87094         (configure.ac): Add gl_XNANOSLEEP.
87095         (Makefile.am): Remove lib_SOURCES line.
87096
87097 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87098
87099         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87100         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87101
87102 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87103
87104         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87105         * lib/timespec.h (gettime): Return void, since it always
87106         succeeds now.  All uses changed.
87107         * lib/gettime.c (gettime): Likewise.
87108         [HAVE_NANOTIME]: Prefer nanotime.
87109         Assume gettimeofday succeeds, as POSIX requires.
87110         Assime time () succeeds, since other code already does.
87111         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87112         (timespec_subtract): Remove.
87113         (NANOSLEEP_BUG_WORKAROUND): New constant.
87114         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87115         things considerably.  Use it only on GNU/Linux hosts, since the
87116         workaround shouldn't be needed elsewhere.
87117
87118 2005-02-24  Bruno Haible  <bruno@clisp.org>
87119
87120         * modules/gettext (Files): Add m4/glibc2.m4.
87121
87122 2005-02-24  Bruno Haible  <bruno@clisp.org>
87123
87124         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87125         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87126         * m4/progtest.m4:
87127         Update from GNU gettext 0.14.2.
87128         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87129
87130 2005-02-24  Bruno Haible  <bruno@clisp.org>
87131
87132         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87133         * lib/config.charset: Update from GNU gettext 0.14.2.
87134
87135 2005-02-24  Bruno Haible  <bruno@clisp.org>
87136
87137         * lib/gettext.h: Update from GNU gettext 0.14.2.
87138
87139 2005-02-23  Simon Josefsson  <jas@extundo.com>
87140
87141         * m4/iconvme.m4: New file.
87142
87143 2005-02-23  Jim Meyering  <jim@meyering.net>
87144
87145         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87146         change.
87147         Thanks to Bruno Haible for catching it.
87148
87149 2005-02-22  Simon Josefsson  <jas@extundo.com>
87150
87151         * modules/iconvme: New file.
87152
87153         * MODULES.html.sh: Add iconvme.
87154
87155 2005-02-22  Simon Josefsson  <jas@extundo.com>
87156
87157         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87158
87159 2005-02-22  Simon Josefsson  <jas@extundo.com>
87160
87161         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87162
87163 2005-02-22  Jim Meyering  <jim@meyering.net>
87164
87165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87166         s/ifndef/ifdef/.
87167
87168 2005-02-20  Neil Conway  <neilc@samurai.com>
87169
87170         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87171         returned by OSX/Darwin if the specified buffer is not large
87172         enough for the hostname.
87173
87174 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87175
87176         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87177         pass it to _help, otherwise the latter coredumps trying to
87178         dereference state.root_argp.
87179
87180 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87181
87182         * modules/chdir-long (Depends-on): Add memrchr.
87183         * modules/memrchr (Files): Add lib/memrchr.h.
87184         (Include): "memrchr.h".
87185
87186 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87187
87188         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87189
87190 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87191
87192         * lib/memrchr.h: New file.
87193         * lib/chdir-long.c: Include it.
87194         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87195         Don't bother including stddef.h.
87196
87197 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87198
87199         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87200         inclusion.
87201         Include <sys/types.h>, for dev_t.
87202         (ME_DUMMY, ME_REMOTE): Move from here....
87203         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87204         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87205         Dmitry V. Levin.
87206         Include mountlist.h first, to test the interface.
87207
87208 2005-01-29  Bruno Haible  <bruno@clisp.org>
87209
87210         * lib/progname.c (program_name): Initialize.
87211         Needed when linking statically on MacOS X.
87212
87213 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87214
87215         Sync from coreutils.
87216         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87217         (Depends-on): Add c-strtod.
87218         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87219
87220 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         Sync from coreutils.
87223         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87224
87225         Remove files that are specific to coreutils.
87226         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87227
87228 2005-01-28  Bruno Haible  <bruno@clisp.org>
87229
87230         * modules/javacomp: New file.
87231         * MODULES.html.sh (Java): Add javacomp.
87232
87233 2005-01-28  Bruno Haible  <bruno@clisp.org>
87234
87235         * m4/javacomp.m4: New file, from GNU gettext.
87236
87237 2005-01-28  Bruno Haible  <bruno@clisp.org>
87238
87239         * lib/javacomp.sh.in: New file, from GNU gettext.
87240         * lib/javacomp.h: New file, from GNU gettext.
87241         * lib/javacomp.c: New file, from GNU gettext.
87242
87243 2005-01-26  Simon Josefsson  <jas@extundo.com>
87244
87245         * lib/gai_strerror.c: Use GPL in header.
87246
87247 2005-01-26  Bruno Haible  <bruno@clisp.org>
87248
87249         * modules/javaexec: New file.
87250         * MODULES.html.sh (Java): Add javaexec.
87251
87252 2005-01-26  Bruno Haible  <bruno@clisp.org>
87253
87254         * m4/javaexec.m4: New file, from GNU gettext.
87255
87256 2005-01-26  Bruno Haible  <bruno@clisp.org>
87257
87258         * lib/javaexec.sh.in: New file, from GNU gettext.
87259         * lib/javaexec.h: New file, from GNU gettext.
87260         * lib/javaexec.c: New file, from GNU gettext.
87261
87262 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87263
87264         * modules/lchown (Depends-on): Remove lchown.h
87265
87266 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87267
87268         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87269         must be defined if the header file was not found, in order
87270         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87271
87272 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87273
87274         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87275         initializers for struct pentry_state.
87276         (__argp_error): Check return value of __asprintf
87277         (__argp_failure): Translate error message
87278
87279         * lib/argp-parse.c: Removed braces around the expansion of N_()
87280
87281 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87282
87283         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87284         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87285         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87286         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87287         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87288         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87289         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87290         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87291         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87292         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87293         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87294         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87295         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87296         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87297         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87298         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87299         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87300         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87301         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87302         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87303         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87304         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87305         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87306         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87307         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87308         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87309         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87310         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87311         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87312         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87313         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87314         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87315         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87316         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87317         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87318         Use an all-permissive copyright notice, recommended by RMS.
87319
87320 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87321
87322         * modules/chdir-long (Depends-on): Remove mempcpy.
87323
87324 2005-01-21  Jim Meyering  <jim@meyering.net>
87325
87326         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87327         same value as for Solaris 9.
87328
87329         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87330         component length.  This included changing the parameter to be
87331         of type `char *' rather than `char const *'.
87332         * lib/chdir-long.h (chdir_long): Update prototype.
87333
87334         * lib/openat.c (fdopendir, fstatat): New functions.
87335         * lib/openat.h: Include headers required for use of DIR and struct
87336         stat.
87337         [AT_SYMLINK_NOFOLLOW]: Define.
87338         (fdopendir, fstatat): Add prototypes.
87339
87340 2005-01-21  Bruno Haible  <bruno@clisp.org>
87341
87342         * modules/classpath: New file.
87343         * MODULES.html.sh (Java): Add classpath.
87344
87345 2005-01-21  Bruno Haible  <bruno@clisp.org>
87346
87347         * lib/classpath.h: New file, from GNU gettext.
87348         * lib/classpath.c: New file, from GNU gettext.
87349
87350 2005-01-20  Simon Josefsson  <jas@extundo.com>
87351
87352         * modules/version-etc-fsf: New file.
87353
87354 2005-01-20  Simon Josefsson  <jas@extundo.com>
87355
87356         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87357         * lib/version-etc.c: Remove version_etc_copyright.
87358         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87359         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87360
87361 2005-01-20  Simon Josefsson  <jas@extundo.com>
87362
87363         * lib/base64.h (isbase64): Add.
87364
87365         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87366         using a unsigned prototype, don't inline.
87367         (base64_decode): Use it.
87368
87369 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87370
87371         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87372         it.
87373
87374 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87375
87376         * lib/save-cwd.c (save_cwd): Remove code to support the case
87377         where fchdir is missing or flaky.
87378
87379 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87380
87381         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87382
87383 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87384
87385         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87386         AC_LIBSOURCES now does this.
87387         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87388         with new ullong_max module.
87389
87390 2005-01-19  Bruno Haible  <bruno@clisp.org>
87391
87392         * modules/sh-quote: New file.
87393         * MODULES.html.sh (Executing programs): Add sh-quote.
87394
87395 2005-01-19  Bruno Haible  <bruno@clisp.org>
87396
87397         * lib/sh-quote.h: New file, from GNU gettext.
87398         * lib/sh-quote.c: New file, from GNU gettext.
87399
87400 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87401
87402         Merge from coreutils.
87403         * m4/ullong_max.m4: New file.
87404         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87405         (gl_MACROS): Assume localeconv exists.
87406
87407 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87408
87409         Merge changes from coreutils, as described below in several
87410         changelogs dated today.
87411
87412         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87413         (O_DIRECTORY): Remove; not needed here, since "." must be
87414         a directory.  All uses removed.
87415         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87416         universal on Suns, and we also need to test for IRIX.
87417         Revamp code to use 'if' rather than '#if'.
87418         Avoid unnecessary comparison of cwd->desc to 0.
87419
87420         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87421         for known valid error numbers rather than observed invalid ones.
87422
87423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87424
87425         * modules/ullong_max: New file.
87426
87427         * modules/chdir-long, modules/openat: New files.
87428         * modules/save-cwd (Depends-on): Depend on chdir-long.
87429         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87430
87431 2005-01-18  Jim Meyering  <jim@meyering.net>
87432
87433         Merge from coreutils.
87434         * m4/chdir-long.m4, m4/openat.m4: New files.
87435         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87436         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87437         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87438         is sane and DOES follow symlinks.  Besides, testing 20 different
87439         systems found no broken chown implementations.
87440         Prompted by a change in rsync's copy of this macro.
87441         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87442
87443         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87444
87445         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87446         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87447         NULL-means-set-to-current-time semantics.
87448         Remove temporary file immediately, rather than waiting
87449         for configure's at-exit trap code to do it.
87450
87451 2005-01-18  Jim Meyering  <jim@meyering.net>
87452
87453         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87454
87455         * lib/utimens.c (futimens): Account for the fact that futimes
87456         can also fail with errno == ENOSYS or errno == ENOENT.
87457         Patch from Dmitry V. Levin.
87458
87459         Change the name of the robust chdir function from chdir to chdir_long.
87460         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87461         (restore_cwd): Use chdir_long, not chdir.
87462         * lib/chdir-long.c: Renamed from chdir.c.
87463         * lib/chdir-long.h: Renamed from chdir.h.
87464         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87465         Hurd.
87466
87467 2005-01-18  Bruno Haible  <bruno@clisp.org>
87468
87469         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87470         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87471         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87472         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87473         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87474         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87475         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87476         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87477         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87478         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87479         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87480         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87481         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87482         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87483         Use an all-permissive copyright notice, recommended by RMS.
87484
87485 2005-01-18  Bob Proulx  <bob@proulx.com>
87486
87487         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87488         simplify offsetof() macro construct to avoid compile failure with
87489         native HP-UX 11.0 ANSI C compiler.
87490
87491 2005-01-17  Bruno Haible  <bruno@clisp.org>
87492
87493         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87494         redundant because stpncpy.m4 takes care of it.
87495
87496 2005-01-17  Bruno Haible  <bruno@clisp.org>
87497
87498         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87499
87500 2005-01-17  Bruno Haible  <bruno@clisp.org>
87501
87502         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87503         used.
87504
87505 2005-01-17  Bruno Haible  <bruno@clisp.org>
87506
87507         * lib/fwriteerror.h (fwriteerror): Change specification to include
87508         fclose.
87509         * lib/fwriteerror.c: Include <stdbool.h>.
87510         (fwriteerror): At the end, close the file stream. Record whether
87511         stdout was already closed.
87512
87513 2005-01-17  Bruno Haible  <bruno@clisp.org>
87514
87515         * lib/execute.c (environ): Declare if needed.
87516         * lib/pipe.c (environ): Likewise.
87517         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87518
87519 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87520
87521         * modules/argp: Depend on vsnprintf
87522
87523 2005-01-10  Jim Meyering  <jim@meyering.net>
87524
87525         * modules/closeout (Depends-on): Add atexit.
87526
87527 2005-01-06  Bruno Haible  <bruno@clisp.org>
87528
87529         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87530
87531 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87534         definitions to be after all include files, to avoid collisions.
87535         Problem reported by Bob Proulx.
87536
87537 2005-01-04  Jim Meyering  <jim@meyering.net>
87538
87539         Changes imported from coreutils.
87540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87541         as the mkstemp template, use a temporary directory and an
87542         8.3-friendly template to avoid trouble on systems like DJGPP.
87543         Reported by Juan M. Guerrero via Stepan Kasal.
87544         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87545         close. Remove the temporary directory right away, rather than waiting
87546         for configure's at-exit trap code to do it.
87547         Suggestion from Stepan Kasal.
87548
87549 2005-01-01  Simon Josefsson  <jas@extundo.com>
87550
87551         * gnulib-tool: Print #include directives when --import'ing.
87552
87553 2004-12-28  Simon Josefsson  <jas@extundo.com>
87554
87555         * tests/test-base64.c: Include required header files.  Remove
87556         unused variables.
87557
87558 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87559
87560         * modules/error (Depends-on): Remove gettext.
87561
87562 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87563
87564         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87565         not needed.  This removes a dependency on the gettext module.
87566         [defined _LIBC]: Do not include <libintl.h>; not needed.
87567
87568 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87569
87570         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87571         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87572
87573 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87574
87575         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87576         HAVE_DECL_STRTOLD.
87577
87578 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87579
87580         * modules/getdate (Depends-on): Remove alloca-opt.
87581
87582 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87583
87584         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87585
87586 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87587
87588         * lib/argp-parse.c: Include <stddef.h>.
87589         (alignof, alignto): New macros.
87590         (parser_init): Don't assume that void * is aligned sufficiently
87591         for struct option.
87592
87593         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87594         need to extend the stack.
87595         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87596         large.
87597
87598 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87599
87600         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87601
87602 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87605         (2004-10-24) change.  Apparently this was a false alarm.
87606
87607         * modules/getdate: Depend on alloca-opt, not alloca.
87608
87609 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87610
87611         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87612         Remove now-obsolete comment about AIX.
87613         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87614         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87615         (YYMAXDEPTH): New macro.
87616
87617 2004-12-18  Simon Josefsson  <jas@extundo.com>
87618
87619         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87620
87621 2004-12-18  Bruno Haible  <bruno@clisp.org>
87622
87623         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87624
87625 2004-12-18  Bruno Haible  <bruno@clisp.org>
87626
87627         * lib/fatal-signal.c (fatal_signals): Make non-const.
87628         (init_fatal_signals): New function.
87629         (uninstall_handlers, install_handlers): Ignore signals that were set to
87630         SIG_IGN.
87631         (at_fatal_signal): Call init_fatal_signals.
87632         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87633         SIG_IGN.
87634         Reported by Paul Eggert.
87635
87636 2004-12-18  Bruno Haible  <bruno@clisp.org>
87637
87638         * doc/alloca.texi: New file.
87639         * doc/alloca-opt.texi: New file.
87640
87641 2004-12-17  Jim Meyering  <jim@meyering.net>
87642
87643         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87644         Otherwise, install-sh could exit with improper exit status when
87645         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87646
87647 2004-12-16  Simon Josefsson  <jas@extundo.com>
87648
87649         * tests/test-base64.c: Add license.
87650
87651 2004-12-15  Stepan Kasal  <address@hidden>
87652
87653         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87654
87655 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87656
87657         * modules/getcwd (Files): Add m4/d-ino.m4.
87658         Suggested by Mark D. Baushke.
87659
87660 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87661
87662         * lib/getdate.y (textint): New member "negative".
87663         (time_zone_hhmm): New function.
87664         Expect 14 shift-reduce conflicts, not 13.
87665         (o_colon_minutes): New rule.
87666         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87667         (yylex): Set the "negative" member of signed numbers.
87668
87669 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87670
87671         * doc/getdate.texi (Time of day items, Time zone items):
87672         Describe new formats +00:00, UTC+00:00.
87673
87674 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87675
87676         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87677         spurious "-l"s.  Problem reported by Stepan Kasal.
87678
87679 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87680
87681         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87682         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87683
87684 2004-12-04  Simon Josefsson  <jas@extundo.com>
87685
87686         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87687         Vandoorselaere <yoann@prelude-ids.org>.
87688
87689 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87690
87691         Changes imported from coreutils.
87692         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87693         exist.
87694         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87695
87696 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         Changes imported from coreutils.
87699         * lib/hard-locale.c: Assume <locale.h> exists.
87700         Include "strdup.h".
87701         (GLIBC_VERSION): New macro.
87702         (hard_locale): Assume setlocale exists.
87703         Rewrite to avoid #ifdef.
87704         Use strdup rather than malloc + strcpy.
87705         * lib/human.c: Assume <locale.h> exists.
87706         (human_readable): Assume localeconv exists.
87707
87708 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87709
87710         * modules/hard-locale (Depends-on): Add strdup.
87711
87712 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87713
87714         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87715         convert T2, not T.  (Imported from libc.)
87716
87717 2004-11-30  Simon Josefsson  <jas@extundo.com>
87718
87719         * modules/restrict (License): Change to LGPL.
87720
87721 2004-11-30  Simon Josefsson  <jas@extundo.com>
87722
87723         * m4/restrict.m4: Add copyright and copying conditions.
87724
87725 2004-11-30  Simon Josefsson  <jas@extundo.com>
87726
87727         * m4/base64.m4: New file.
87728
87729 2004-11-30  Simon Josefsson  <jas@extundo.com>
87730
87731         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87732         base64.
87733
87734         * tests/test-base64.c: New file.
87735
87736         * modules/base64: New file.
87737
87738 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87739
87740         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87741         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87742
87743         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87744
87745 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87746
87747         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87748         (__getcwd.c): Don't restore errno; glibc doesn't.
87749         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87750         first, falling back to our code only if its results look suspicious.
87751         Ensure that the resulting buffer is only as large as necessary.
87752
87753         * lib/readutmp.c: Include readutmp.h first.
87754         Include <errno.h>, since readutmp.h no longer does that.
87755         * lib/readutmp.h: Don't include <errno.h>,
87756         <sys/param.h>, <time.h>; not needed to establish interface.
87757         (errno): Remove decl.
87758         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87759         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87760         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87761
87762 2004-11-28  Simon Josefsson  <jas@extundo.com>
87763
87764         * lib/base64.h, base64.c: New file.
87765
87766 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87767
87768         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87769
87770 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87771
87772         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87773         (Depends-on): Remove pathmax, same.  Add mempcpy.
87774         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87775         (Makefile.am): Append getcwd.h to lib_SOURCES.
87776         (Include): Add getcwd.h.
87777         (Maintainer): Change from Jim Meyering to "all, glibc",
87778         since getdate now uses intended-for-glibc code.
87779         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87780         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87781
87782 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87785         HP's ANSI C compiler.
87786         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87787         Declaring int functions causes warnings on some modern systems and
87788         shouldn't be needed to compile on ancient ones.
87789         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87790         defined.
87791
87792         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87793         with the following changes.
87794         (__set_errno): Parenthesize properly.
87795         Include <stdbool.h>.
87796         (MIN, MAX, MATCHING_INO): New macros.
87797         (__getcwd): Define with prototype, not K&R form.
87798         Use heuristics to allocate default buffer on stack if possible.
87799         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87800         behavior, and to avoid the PATH_MAX limit when computing
87801         ../../../../...
87802         Use MATCHING_INO to compare inode number to file.
87803         Check for arithmetic overflow in size calculations.
87804         Fix bug in reallocation of dot array that caused getcwd to fail
87805         on directories nested deeper than 75.
87806         Be more careful about saving errno on error.
87807         Do not use realloc; use only free+malloc, as this is a bit
87808         more flexible and avoids a needless copy operation.
87809         Do not inspect st_dev and st_ino for symbolic links; POSIX
87810         doesn't specify the latter.
87811         Check for closedir errors.
87812         Avoid needless casts.
87813         Use "#ifdef weak_alias" around weak_alias, to be like other
87814         glibc code.
87815         The following changes to getcwd.c have effect only when used in
87816         gnulib; they have no effect inside glibc proper.
87817         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87818         as alloca isn't used.
87819         (alloca, __alloca): Likewise.
87820         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87821         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87822         unconditionally, as gnulib assumes C89 or better.
87823         Do not include <sys/param.h>.
87824         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87825         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87826         better.
87827         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87828         Include <dirent.h> in a way that is compatible with modern Autoconf.
87829         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87830         New macros, if not already defined.
87831         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87832         Use "_LIBC", not "defined _LIBC", for consistency.
87833         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87834         a mempcpy module.
87835         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87836         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87837         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87838         credit only to Jim Meyering and adjust the copyright dates.
87839         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87840         <stdlib.h>, <unistd.h>, "pathmax.h".
87841         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87842         (INITIAL_BUFFER_SIZE): Remove.
87843         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87844
87845 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87846
87847         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87848         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87849         Use the _ONCE methods, for efficiency.
87850         Check for fcntl.h.  In test program, include <errno.h>
87851         and <fcntl.h> if available.  Remove old K&R cruft from
87852         test program.  Check for common errors in GNU/Linux,
87853         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87854         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87855         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87856         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87857         name accordingly.
87858         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87859         accommodate new getcwd.c.
87860         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87861         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87862         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87863         that's all we need now.
87864
87865 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87866
87867         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87868         argp-parse.c depends on getopt internals, that means we should
87869         always use our getopt, to be on the safe side.
87870         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87871         order not to spoil the result of an eventual previous invocation
87872         of gl_GETOPT_SUBSTITUTE.
87873
87874 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87875
87876         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87877         redefinition warnings. To avoid them, include the defines
87878         in `#if !defined __need_getopt ... #endif'. The only place
87879         where __getopt_argv_const is used is in definitions
87880         of getopt_long and getopt_long_only below, which are as well
87881         protected by `#ifndef __need_getopt'.
87882         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87883         __need_getopt after including <stdio.h> and <unistd.h> These
87884         headers might have defined it.
87885
87886 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87887
87888         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87889
87890 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87891
87892         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87893         (futimens): New function, which uses futimes if available.
87894         (futimens, utimens): Support timespec==NULL, with same semantics
87895         as utime and utimens.
87896         * lib/utimens.h (futimens): New decl.
87897
87898 2004-11-23  Jim Meyering  <jim@meyering.net>
87899
87900         * lib/getopt_.h: Remove trailing blanks.
87901
87902 2004-11-23  Jim Meyering  <jim@meyering.net>
87903
87904         * lib/__fpending.c: Add comment.
87905
87906 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * modules/canonicalize (Depends-on): Add xreadlink.
87909         Problem reported by James Youngman.
87910
87911 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87912
87913         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87914         New macros.
87915         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87916         optopt): Use them instead of invoking ## directly; otherwise, the
87917         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87918
87919 2004-11-19  Bruno Haible  <bruno@clisp.org>
87920
87921         * lib/strtok_r.c: Move comments from here...
87922         * lib/strtok_r.h: ... to here.
87923
87924 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87925
87926         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87927         implementations that mishandle size_t overflow.
87928
87929 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87930
87931         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87932         might fail.  Problem reported by Yoann Vandoorselaere.
87933         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87934         implementations that mishandle size_t overflow.
87935
87936 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87937
87938         * modules/canon-host (Depends-on): Add strdup.
87939
87940 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87941
87942         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87943
87944 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87945
87946         * lib/canon-host.c: Include "strdup.h".
87947         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87948         Use strdup instead of malloc/strcpy to duplicate strings.
87949
87950         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87951         (human_space_before_unit): New constant.
87952         * lib/human.c (human_readable): Support it.
87953
87954         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87955         (xgetcwd): Set errno correctly when failing.
87956         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87957         the failure is actually due to a PATH_MAX problem.
87958
87959         Further getopt changes to make it more likely that glibc will
87960         buy the changes back.
87961         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87962         (getopt): Use it, so to preserve glibc semantic
87963         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87964         when compiling for libc.
87965         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87966         (getopt_long, getopt_long_only): Use it.
87967
87968         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87969         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87970         (getopt): Argv is now char * const *, as per standard.
87971         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87972         not char *__getopt_argv_const *.
87973         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87974         _getopt_long_only_r): Likewise.
87975         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87976         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87977         _getopt_long_r, _getopt_long_only_r): Likewise.
87978         * lib/getopt_.h (__getopt_argv_const): Remove.
87979         (getopt): Argv is now char * const *, as per standard.
87980
87981         * lib/getdate.y (tORDINAL): New token.
87982         (day, relunit): Allow it for relative times.
87983         (relative_time_table): Use tORDINAL for ordinals.
87984
87985 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87988         Document that "second" isn't allowed as an ordinal number.
87989
87990 2004-11-16  Jim Meyering  <jim@meyering.net>
87991
87992         * modules/closeout (Depends-on): Add fpending.
87993
87994 2004-11-15  Jim Meyering  <jim@meyering.net>
87995
87996         * lib/closeout.c: Include "__fpending.h" once again.
87997         Include <stdbool.h>.
87998         (close_stdout): Don't fail just because stdout was closed initially,
87999         since some programs don't write to stdout in the normal course of
88000         operation (other than --version and --help), and we don't want this
88001         function to make e.g. `touch file >&-' fail.
88002         But do fail if it was closed and someone has tried to write to it.
88003         E.g., `printf foo >&-' must fail.
88004
88005 2004-11-13  Jim Meyering  <jim@meyering.net>
88006
88007         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88008
88009 2004-11-12  Simon Josefsson  <jas@extundo.com>
88010
88011         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88012         small doc fix is still pending.
88013
88014 2004-11-11  Simon Josefsson  <jas@extundo.com>
88015
88016         * modules/strtok_r: New file.
88017
88018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88019         strtok_r.
88020
88021 2004-11-11  Simon Josefsson  <jas@extundo.com>
88022
88023         * m4/strtok_r.m4: New file.
88024
88025         * m4/getopt.m4: Replace opterr.
88026
88027 2004-11-11  Simon Josefsson  <jas@extundo.com>
88028
88029         * lib/strtok_r.h, strtok_r.c: New file.
88030
88031 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88032
88033         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88034         of replacing opterr, getopt, etc.  This should handle the
88035         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88036
88037 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88038
88039         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88040         we can stop lying to compilers about the constness of argv when we
88041         are compiled outside glibc.
88042         (getopt, getopt_long, getopt_long_only): Use it.
88043         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88044         _getopt_internal, getopt): Likewise.
88045         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88046         _getopt_long_only_r): Likewise.
88047         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88048         _getopt_long_r, _getopt_long_only_r): Likewise.
88049
88050         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88051         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88052         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88053         the other external symbols.
88054         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88055         declaration, since the above renaming now works around collisions.
88056
88057 2004-11-11  Jim Meyering  <jim@meyering.net>
88058
88059         * lib/linebreak.c: Remove trailing blanks.
88060         * lib/alloca_.h: Likewise.
88061         * lib/acosl.c: Likewise.
88062         * lib/euidaccess.c: Likewise.
88063         * lib/allocsa.h: Likewise.
88064
88065 2004-11-10  Simon Josefsson  <jas@extundo.com>
88066
88067         * m4/getaddrinfo.m4: New file.
88068
88069 2004-11-10  Simon Josefsson  <jas@extundo.com>
88070
88071         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88072
88073 2004-11-10  Simon Josefsson  <jas@extundo.com>
88074
88075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88076         getaddrinfo.
88077
88078         * modules/getaddrinfo: New file.
88079
88080 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88081
88082         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88083
88084 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88085
88086         * lib/mktime.c (SHR): New macro, which is a portable
88087         substitute for >> that should work even on Crays.
88088         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88089         Problem reported by Mark D. Baushke in
88090         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88091         * lib/getdate.y (SHR): Likewise.
88092         (tm_diff): Use it.
88093         * lib/strftime.c (SHR): Likewise.
88094         (tm_diff): Use it.
88095         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88096         quote_these_too, so that right shifts are well defined.  All uses
88097         changed.
88098
88099 2004-11-10  Jim Meyering  <jim@meyering.net>
88100
88101         Ensure that no close failure goes unreported.
88102         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88103         return early when it seems there's nothing to flush.
88104         Don't include __fpending.h.
88105
88106 2004-11-10  Jim Meyering  <jim@meyering.net>
88107
88108         * modules/closeout (Depends-on): Remove fpending.
88109
88110 2004-11-10  Jim Meyering  <jim@meyering.net>
88111
88112         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88113
88114 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88115
88116         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88117         gl_FUNC_STRFTIME.
88118         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88119         and AC_REQUIRE when possible, to avoid duplicate checks.
88120         Check for <wchar.h>.
88121
88122 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88123
88124         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88125
88126 2004-11-09  Bruno Haible  <bruno@clisp.org>
88127
88128         * m4/sockpfaf.m4: New file.
88129
88130 2004-11-05  Bruno Haible  <bruno@clisp.org>
88131
88132         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88133         Reported by Mark D. Baushke <mdb@cvshome.org>.
88134
88135 2004-11-04  Bruno Haible  <bruno@clisp.org>
88136
88137         2004-09-11  Bruno Haible  <bruno@clisp.org>
88138                 * allocsa.valgrind: New file.
88139         2004-02-06  Bruno Haible  <bruno@clisp.org>
88140                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88141                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88142                 Reported by Christopher Seip <chris.seip@hp.com>.
88143
88144 2004-11-04  Bruno Haible  <bruno@clisp.org>
88145
88146         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88147         (Makefile.am): Distribute it.
88148
88149 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88152         with errno == ERANGE if the buffer is too small.
88153         Problem reported by Mark D. Baushke.
88154
88155 2004-11-03  Albert Chin  <china@thewrittenword.com>
88156             Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88159         equivalent, substitute $ac_type for equivalent type rather than
88160         blindly using uint32_t *always* which won't work if uint32_t is not
88161         available.  Define _UINT32_T to work around typedef of uint32_t if
88162         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88163         2.5.1.
88164
88165 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88166
88167         * m4/jm-macros.m4: Sync from coreutils.
88168         (gl_MACROS): Check for mbrlen, for pathchk.
88169         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88170
88171 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88172
88173         * lib/xreadlink.c (MAXSIZE): New macro.
88174         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88175         size does not exceed MAXSIZE.  Avoid cast.
88176         As suggested by Mark D. Baushke in
88177         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88178         if readlink fails with buffer size just under MAXSIZE, try again
88179         with MAXSIZE.
88180
88181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88184
88185 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88186         and  Paul Eggert  <eggert@cs.ucla.edu>
88187
88188         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88189         (get_date): Overparenthesize to avoid GCC warning.
88190
88191 2004-11-02  Bruno Haible  <bruno@clisp.org>
88192
88193         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88194         returns void.
88195
88196 2004-11-02  Bruno Haible  <bruno@clisp.org>
88197
88198         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88199         function returns void.
88200
88201 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88202
88203         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88204         fflush_unlocked, flockfile, funlockfile, funlockfile,
88205         fputs_unlocked, putc_unlocked.
88206
88207 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88208
88209         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88210         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88211         already declared.
88212
88213 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88214
88215         * modules/getdate (Files): Add doc/getdate.texi.
88216         (Depends-on): Add setenv, xalloc.
88217
88218 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88219
88220         * lib/getdate.y: Add support for TZ="foo" within a date string.
88221         Fix some bugs near time_t boundaries.  Reject dates with
88222         out-of-range components, e.g., "Sept 31".
88223         Include <stdlib.h>, "setenv.h", "xalloc.h".
88224         (ISDIGIT_LOCALE): Remove; unused.
88225         Note that the TZ and time functions used here are not reentrant.
88226         (mktime_ok, get_tz): New functions.
88227         (TZBUFSIZE): New constant.
88228         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88229         This requires that we sometimes generate our own TZ="XXX..." setting.
88230
88231 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88232
88233         * doc/getdate.texi: New file, from coreutils with modifications for
88234         the new TZ parsing.
88235
88236 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88237
88238         * lib/mktime.c (not_equal_tm): Remove redundant check.
88239
88240 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88241
88242         * modules/regex (lib_SOURCES): Add regex.c.
88243         Reported by James Youngman in
88244         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88245
88246 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88247
88248         * lib/getdate.y: Use Bison 1.875 features, and some minor
88249         code cleanups.  This change does not affect semantics.
88250         Don't include <stdlib.h>; no longer needed.
88251         Don't include unlocked-io.h; only the "#if TEST" code uses
88252         stdio, and performance isn't crucial there.
88253         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88254         Bison 1.875 features as described below.
88255         All uses of "PC." replaced by "pc->".
88256         (YYSTYPE): Add a forward declaration.
88257         (yylex, yyerror): Use full prototypes in forward decls.
88258         Use "%pure-parser" rather than obsolescent "%pure_parser".
88259         Use %parse-param and %lex-param instead of obsolescent
88260         YYPARSE_PARAM and YYLEX_PARAM.
88261         (meridian_table, month_and_day_table, time_units_table,
88262         relative_time_table, time_zone_table, military_table,
88263         lookup_zone, lookup_word, get_date):
88264         Use NULL instead of 0 where appropriate.
88265         (to_hour): Avoid abort (), to avoid a dependency on
88266         stdlib.h.
88267         (yyerror, yylex): Now accepts parser_control * arg.
88268         (main) [TEST]: Use '\0' rather than 0 for char.
88269
88270 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88271
88272         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88273
88274 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88277         It's now the caller's responsibility to handle the case where
88278         !HAVE_GETPAGESIZE && !defined getpagesize.
88279
88280         * lib/mktime.c (leapyear): Arg is long int, not int.
88281
88282 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88283
88284         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88285
88286 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88287
88288         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88289         missing.  Problem reported by James Youngman.
88290
88291 2004-10-16  Simon Josefsson  <jas@extundo.com>
88292
88293         * gnulib-tool: Fix comments.  Fix parse problem.
88294         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88295
88296 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88297
88298         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88299         implementation of getopt_long.  Problem reported by Alexander Taler in:
88300         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88301
88302 2004-10-15  Bruno Haible  <bruno@clisp.org>
88303
88304         * gnulib-tool: Untabify. Initialize supplied_libname.
88305         (func_usage): More homogenous output.
88306         (func_modules_transitive_closure, func_modules_to_filelist,
88307         func_emit_lib_Makefile_am): New functions.
88308         (func_import): New function, extracted from big case statement. Use
88309         func_get_license, func_modules_transitive_closure,
88310         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88311         opt_lgpl. Don't use test -a, as it's not portable.
88312         (func_create_testdir): Use func_modules_transitive_closure,
88313         func_modules_to_filelist, func_emit_lib_Makefile_am.
88314
88315 2004-10-15  Bruno Haible  <bruno@clisp.org>
88316
88317         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88318
88319 2004-10-15  Bruno Haible  <bruno@clisp.org>
88320
88321         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88322         the portions belonging to each module.
88323         Suggested by Derek Robert Price <derek@ximbiot.com>.
88324
88325 2004-10-12  Simon Josefsson  <jas@extundo.com>
88326
88327         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88328         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88329         to real functions.
88330
88331 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88332
88333         * modules/vsnprintf: New file.
88334
88335 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88336
88337         * m4/vsnprintf.m4: New file.
88338
88339 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88340
88341         * lib/vsnprintf.h: New file.
88342         * lib/vsnprintf.c: New file.
88343
88344 2004-10-11  Bruno Haible  <bruno@clisp.org>
88345
88346         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88347         vsnprintf.
88348
88349 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88350
88351         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88352
88353 2004-10-07  Bruno Haible  <bruno@clisp.org>
88354
88355         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88356         fits into the provided buffer.
88357
88358 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88359
88360         * lib/diacrit.c, diacrit.h: Add GPL notice.
88361
88362         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88363         notice.
88364         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88365         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88366         This avoids a potential constant-folding bug.
88367
88368 2004-10-05  Bruno Haible  <bruno@clisp.org>
88369
88370         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88371         for the declaration of strsep.
88372
88373 2004-10-05  Bruno Haible  <bruno@clisp.org>
88374
88375         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88376
88377 2004-10-04  Simon Josefsson  <jas@extundo.com>
88378
88379         * modules/memmem: New file.
88380         * tests/test-memmem.c: New file.
88381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88382
88383 2004-10-04  Simon Josefsson  <jas@extundo.com>
88384
88385         * m4/memmem.m4: New file.
88386
88387 2004-10-04  Simon Josefsson  <jas@extundo.com>
88388
88389         * lib/memmem.h: New file.
88390         * lib/memmem.c: New file, taken from glibc.
88391
88392 2004-10-04  Simon Josefsson  <jas@extundo.com>
88393
88394         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88395         '#ifdef USE_UNLOCKED_IO'.
88396
88397 2004-10-04  Simon Josefsson  <jas@extundo.com>
88398
88399         * config/srclist.txt: Add memmem from glibc.
88400
88401 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88402
88403         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88404
88405         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88406         modules/exclude, modules/getdate, modules/getline,
88407         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88408         modules/getusershell, modules/linebuffer, modules/md5,
88409         modules/mountlist, modules/posixtm, modules/readtokens,
88410         modules/readutmp, modules/regex, modules/sha1,
88411         modules/version-etc, modules/yesno:
88412         Remove dependency on unlocked-io.
88413
88414 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88415
88416         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88417
88418         * m4/unlocked-io.m4: Add copyright notice.
88419         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88420
88421 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88422
88423         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88424         * lib/xmalloc.c (xmemdup): Likewise.
88425         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88426         XFREE): Remove these long-obsolescent macros.
88427         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88428         * lib/xstrdup.c: Remove.
88429
88430         * lib/regex.c (re_comp): Cast gettext return value to char *,
88431         Problem reported by Martin Neitzel via Mark D. Baushke.
88432
88433 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88436         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88437         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88438         regex.c, sha1.c, version-etc.c, yesno.c:
88439         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88440         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88441         the includer's responsibility.
88442
88443         Sync from coreutils.
88444
88445         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88446         points to the start of a string, as the C Standard says the
88447         resulting behavior is undefined.
88448
88449         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88450         simple -> simple_backups, numbered_existing ->
88451         numbered_existing_backups, numbered -> numbered_backups
88452         to avoid shadowing problems.  All uses changed.
88453         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88454         * lib/backupfile.c (check_extension, numbered_backup):
88455         Rename locals to avoid shadowing 'basename'.
88456         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88457         once.
88458
88459         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88460         * lib/.cvsignore: Add getopt.h.
88461
88462 2004-10-04  Bruno Haible  <bruno@clisp.org>
88463
88464         * modules/README: New file.
88465         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88466         not a module.
88467
88468 2004-10-02  Jim Meyering  <jim@meyering.net>
88469
88470         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88471
88472 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88473
88474         * modules/strsep: New file.
88475
88476 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88477
88478         * m4/strsep.m4: New file.
88479
88480 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88481
88482         * lib/strsep.h: New file.
88483         * lib/strsep.c: New file.
88484
88485 2004-10-01  Simon Josefsson  <jas@extundo.com>
88486
88487         * lib/snprintf.c (snprintf): Handle size==0.
88488
88489 2004-10-01  Simon Josefsson  <jas@extundo.com>
88490             Bruno Haible  <bruno@clisp.org>
88491
88492         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88493         (snprintf): Declare 'args'.
88494
88495 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88496
88497         * lib/snprintf.c: Remove comments as to why each header is needed.
88498
88499 2004-10-01  Bruno Haible  <bruno@clisp.org>
88500
88501         * MODULES.html.sh: Add strsep.
88502
88503 2004-09-30  Simon Josefsson  <jas@extundo.com>
88504
88505         * modules/snprintf: New file.
88506
88507 2004-09-30  Simon Josefsson  <jas@extundo.com>
88508
88509         * m4/snprintf.m4: New file.
88510
88511 2004-09-30  Simon Josefsson  <jas@extundo.com>
88512
88513         * lib/snprintf.h, lib/snprintf.c: New files.
88514
88515 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88516
88517         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88518         (hol_entry_help): Never translate an empty string.
88519         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88520         * lib/argp.h (OPTION_NO_TRANS): New option.
88521
88522 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88523
88524         * modules/argp (Maintainer): Replace Simon Josefsson
88525         by Sergey Poznyakoff.
88526
88527 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88528
88529         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88530         changes merged back into glibc.
88531
88532 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88533
88534         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88535
88536 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88537
88538         * lib/xvasprintf.c: Include xalloc.h.
88539         (xvasprintf): Use xalloc_die, not xmalloc_die.
88540
88541 2004-09-29  Bruno Haible  <bruno@clisp.org>
88542
88543         * modules/alloca-opt: New file, derived from modules/alloca.
88544         * modules/allocsa: Depend on alloca-opt instead of alloca.
88545         * modules/setenv: Likewise.
88546         * modules/vasnprintf: Likewise.
88547         * MODULES.html.sh: Add alloca-opt.
88548
88549 2004-09-28  Simon Josefsson  <jas@extundo.com>
88550
88551         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88552         LGPL, and to replace license template from GPL to LGPL.
88553
88554 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88555
88556         * modules/dummy: Change license to LGPL.
88557
88558 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88559
88560         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88561
88562 2004-09-24  Simon Josefsson  <jas@extundo.com>
88563
88564         * modules/minmax (License): Change from GPL to LGPL.
88565
88566 2004-09-23  Simon Josefsson  <jas@extundo.com>
88567
88568         * gnulib-tool (--import): Typo.
88569
88570 2004-09-23  Simon Josefsson  <jas@extundo.com>
88571
88572         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88573
88574 2004-09-22  Bruno Haible  <bruno@clisp.org>
88575
88576         * modules/*: Add 'License' field.
88577         * gnulib-tool: Accept --extract-license option.
88578         (func_get_license): New function.
88579
88580 2004-09-21  Bruno Haible  <bruno@clisp.org>
88581
88582         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88583         Reported by Simon Josefsson.
88584
88585 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88586
88587         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88588         gl_AC_TYPE_LONG_LONG.
88589
88590 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88591
88592         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88593
88594 2004-09-18  Simon Josefsson  <jas@extundo.com>
88595         and  Paul Eggert  <eggert@cs.ucla.edu>
88596
88597         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88598         calls with autoreconf.  Define GL_LIB.
88599
88600 2004-09-14  Karl Berry  <karl@gnu.org>
88601
88602         * config/srclist.txt: unsync setenv.c, sigh.
88603
88604 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88605
88606         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88607         Problem reported by Bruno Haible in:
88608         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88609
88610 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88611
88612         * config/srclist.txt: Comment out argp-pvh.c.
88613
88614 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88615
88616         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88617         in case some system header has #define'd it.  Problem reported by
88618         Soeren D. Schulze in
88619         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88620
88621 2004-09-09  Karl Berry  <karl@gnu.org>
88622
88623         * regex.[ch]: delete from the root.  These were supposed to be
88624                 synced with emacs cvs, but this has not happened for about
88625                 a year, and anyway nothing else uses emacs regex.[ch].
88626                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88627                 lib/regex[.ch] is untouched.
88628
88629 2004-09-09  Bruno Haible  <bruno@clisp.org>
88630
88631         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88632
88633 2004-09-09  Bruno Haible  <bruno@clisp.org>
88634
88635         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88636         modifications.
88637         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88638
88639 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88640
88641         * modules/xvasprintf: New file.
88642         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88643
88644 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88645
88646         * lib/xvasprintf.h: New file.
88647         * lib/xvasprintf.c: New file.
88648         * lib/xasprintf.c: New file.
88649
88650 2004-09-08  Bruno Haible  <bruno@clisp.org>
88651
88652         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88653
88654 2004-09-08  Bruno Haible  <bruno@clisp.org>
88655
88656         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88657         length is > INT_MAX.
88658         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88659         more.
88660
88661 2004-09-08  Bruno Haible  <bruno@clisp.org>
88662
88663         * lib/stdint_.h: New file, taken from GNU clisp.
88664
88665 2004-09-08  Bruno Haible  <bruno@clisp.org>
88666             Oskar Liljeblad  <oskar@osk.mine.nu>
88667
88668         * modules/stdint: New file.
88669         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88670
88671 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88672
88673         Import from coreutils.
88674         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88675         strings on unbounded length.  alloca's performance benefits aren't
88676         that important here.
88677         (V_STRDUP): Remove.
88678         (parse_with_separator): New function, with most of the internals
88679         of the old parse_user_spec.  Allow user to omit both user and group,
88680         for compatibility with FreeBSD.
88681         Clone only the user name, not the entire spec.
88682         Do not set *uid, *gid unless entirely successful.
88683         Avoid memory leak in some failing cases.
88684         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88685         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88686         (parse_user_spec): Rewrite to use parse_with_separator.
88687
88688 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88689
88690         * modules/userspec: Don't depend on alloca.
88691
88692 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88693
88694         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88695
88696 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88697
88698         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88699         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88700         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88701
88702 2004-08-16  Simon Josefsson  <jas@extundo.com>
88703
88704         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88705         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88706         Add --dry-run for --import.
88707         Let user provided command line parameters override configure.ac
88708         settings.
88709
88710 2004-08-12  Simon Josefsson  <jas@extundo.com>
88711
88712         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88713         as discussed with Paul Eggert in threads rooted at
88714         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88715         and
88716         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88717         Before, the test was empty, and relied on ELIDE_CODE in source
88718         code.)
88719         (gl_PREREQ_GETOPT): New macro.
88720         (gl_GETOPT): Use them.
88721
88722 2004-08-12  Simon Josefsson  <jas@extundo.com>
88723
88724         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88725         * lib/getopt_.h: Renamed from getopt.h.
88726
88727 2004-08-12  Simon Josefsson  <jas@extundo.com>
88728
88729         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88730         Change default library name from libfoo to libgnu.
88731         Now, if you have a configure.ac that says:
88732                 gl_SOURCE_BASE(gl)
88733                 gl_M4_BASE(gl/m4)
88734                 gl_MODULES(error getopt etcetera)
88735                 gl_INIT
88736         you can import all you need by running:
88737                 ../gnulib/gnulib-tool --import
88738
88739         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88740         (Makefile.am): Rewrite, use logic from argz.
88741         (Include): Use <getopt.h> instead of "getopt.h".
88742
88743 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88744
88745         * modules/argp (Files): Add m4/unlocked-io.m4.
88746         (Depends-on): Add extensions.
88747
88748 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88749
88750         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88751         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88752         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88753         Check for program_invocation_name, program_invocation_short_name,
88754         flockfile, funlockfile, features.h, _getopt_long_only_r.
88755
88756 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88757
88758         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88759         its complicated substitute.
88760         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88761         and program_invocation_name.
88762         (__argp_basename) [!_LIBC]: Remove; the only use was
88763         replaced by its body.
88764         (__argp_short_program_name): Change condition from
88765         !defined __argp_short_program_name to
88766         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88767         to match argp-namefrob.h.
88768         (__argp_failure): Don't assume strerror_r returns char *.
88769         * lib/argp-parse.c (N_): Define unconditionally.
88770         (argp_default_options): Fill out initializers with 0 to avoid
88771         gcc warnings.
88772
88773 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88776         getopt1.c.
88777
88778 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         Merge from coreutils.
88781
88782         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88783
88784         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88785         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88786
88787 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88788
88789         Merge from coreutils.
88790
88791         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88792         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88793         for Reliant Unix 5.43.
88794
88795         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88796         (union fooround): Use uintmax_t, not long int.
88797         The rest is a merge from libc:
88798         [defined _LIBC]: Include <shlib-compat.h>.
88799         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88800
88801         * lib/settime.c (settime): Recode to avoid warning with
88802         Sun Forte C 6U2.
88803
88804         * lib/strverscmp.c: Convert to UTF-8.
88805
88806 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88807
88808         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88809         m4/uintmax_t.m4.
88810
88811 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88812
88813         * modules/xalloc-die: New file.
88814         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88815
88816         * modules/md5 (Files): Add m4/uint32_t.m4.
88817         * modules/sha1: Renamed from modules/sha.
88818         (Files):
88819         Rename lib/sha.h to lib/sha1.h.
88820         Rename lib/sha.c to lib/sha1.c.
88821         Rename m4/sha.m4 to m4/sha1.m4.
88822         (lib_SOURCES): Likewise.
88823         (configure.ac): Rename gl_SHA to gl_SHA1.
88824         (Include): sha.h -> sha1.h.
88825
88826 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88827
88828         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88829         * m4/sha1.m4: Renamed from sha.m4.
88830         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88831
88832 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88833
88834         * lib/obstack.h (obstack_empty_p):
88835         Don't assume that chunk->contents is suitably aligned.
88836         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88837         Likewise. Problem reported by Benno in
88838         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88839
88840         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88841         readable.  This could be improved further but it'd take some work.
88842
88843 2004-08-08  Simon Josefsson  <jas@extundo.com>
88844
88845         * modules/xgethostname (Depends-on): Remove exit and error (not
88846         used).
88847
88848         * modules/getpass-gnu: Add getpass.h.
88849         (Depends-on): Add stdbool.
88850         * modules/getpass: Add getpass.h.
88851
88852 2004-08-08  Simon Josefsson  <jas@extundo.com>
88853
88854         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88855         Check getpass declaration.
88856
88857 2004-08-08  Simon Josefsson  <jas@extundo.com>
88858
88859         * lib/xgethostname.c: Don't include error.h (not used).
88860
88861         * lib/getpass.h: Add.
88862         * lib/getpass.c: Include getpass.h first.
88863
88864 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88865
88866         * lib/xalloc-die.c: New file.
88867         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88868         All uses removed.
88869         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88870         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88871         xalloc-die.c.
88872         (_, N_, xalloc_die): Move to xalloc-die.c.
88873         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88874         so that we needn't mess with xalloc_msg_memory_exhausted.
88875
88876         * lib/sha1.h: Renamed from sha.h.
88877         (SHA1_H): Renamed from _SHA_H.
88878         (sha1_ctx): Renamed from sha_ctx.
88879         (sha1_init_ctx): Renamed from sha_init_ctx.
88880         (sha1_process_block): Renamed from sha_process_block.
88881         (sha1_process_bytes): Renamed from sha_process_bytes.
88882         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88883         (sha1_read_ctx): Renamed from sha_read_ctx.
88884         (sha1_stream): Renamed from sha_stream.
88885         (sha1_buffer): Renamed from sha_buffer.
88886         * lib/sha1.c: Likewise; renamed from sha.c.
88887         Do not include <sys/types.h>.
88888         Include <stddef.h> rather than <stdlib.h>.
88889
88890 2004-08-08  Bruno Haible  <bruno@clisp.org>
88891
88892         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88893         FILESYSTEM_PREFIX_LEN.
88894         * lib/progreloc.c: Likewise.
88895         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88896
88897 2004-08-06  Simon Josefsson  <jas@extundo.com>
88898
88899         * modules/progname (Depends-on): Don't depend on stdbool.
88900
88901 2004-08-06  Simon Josefsson  <jas@extundo.com>
88902
88903         * modules/getsubopt: New file.
88904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88905         getsubopt.
88906
88907 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88908
88909         More merge from coreutils.
88910
88911         * m4/utimens.m4, m4/utimecmp.m4: New files.
88912         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88913         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88914         prereq.m4, sha.m4: Import changes from coreutils.
88915
88916 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88917
88918         More merge from coreutils.
88919         * modules/raise, modules/readtokens0, modules/utimens:
88920         * modules/utimecmp, module/xnanosleep: New files.
88921         * modules/strftime: Add lib/strftime.h.
88922         Change include from <time.h> to "strftime.h".
88923         * modules/yesno: Add lib/yesno.h.
88924         * modules/backupfile: Remove lib/addext.c.
88925         * modules/euidaccess: Add stat-macros.h.
88926         * modules/canonicalize, modules/euidaccess,
88927         modules/filemode, modules/lchown, modules/makepath,
88928         modules/rmdir, modules/stat: Likewise.
88929
88930 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88931
88932         Merge from tar.
88933         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88934         SIZE_MAX is a valid preprocessor constant.
88935         (__argp_basename): Change from "#ifndef _LIBC"
88936         to "#ifndef __argp_short_program_name", so that
88937         we don't compile these functions for tar.
88938
88939         More merges from coreutils.
88940         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88941         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88942         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88943         * lib/addext.c: Remove; no longer needed.
88944         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88945         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88946         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88947         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88948         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88949         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88950         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88951         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88952         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88953         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88954         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88955         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88956         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88957         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88958         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88959         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88960         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88961         Import changes from coreutils.
88962
88963 2004-08-05  Simon Josefsson  <jas@extundo.com>
88964
88965         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88966
88967 2004-08-05  Simon Josefsson  <jas@extundo.com>
88968
88969         * m4/getsubopt.m4: New file.
88970
88971 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88972
88973         Merge from coreutils.
88974
88975         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88976         * m4/getcwd-path-max.m4: New files.
88977
88978         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88979         FILESYSTEM_PREFIX_LEN ->
88980         FILE_SYSTEM_PREFIX_LEN.
88981         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88982         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88983         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88984         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88985
88986         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88987         prerequisite modules now handle the DOS stuff.
88988         Don't check for unistd.h.
88989
88990 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88991
88992         Merge from coreutils.
88993
88994         * lib/.gdb-history: Remove; this doesn't belong here.
88995
88996         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88997         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88998         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88999         * lib/getcwd.c: New files.
89000
89001         * lib/dirname.h: Include <stdbool.h>.
89002         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89003         for consistency with POSIX terminology.  All uses changed.
89004         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89005         (strip_trailing_slashes): Use bool for booleans.
89006         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89007
89008         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89009         sometimes returns a positive errno value even when it succeeds.
89010         (print_errno_message) [!LIBC]: Fall back on strerror if
89011         __strerror_r fails.
89012
89013         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89014         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89015         (longest_relative_suffix): New function.
89016         (path_concat): Use it.  Assume first argument is not NULL.
89017         Port to DOS.  Omit redundant separators.
89018         Report an error instead of returning NULL.
89019         Use mempcpy instead of memcpy.
89020         (xpath_concat): Remove: not declared or used.
89021
89022         * lib/same.h: Include <stdbool.h>
89023         (same_name): Return bool, not int.
89024         * lib/same.c (same_name): Likewise.
89025         (errno): Don't declare; we assume C89 or better now.
89026
89027         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89028         if not already defined.
89029
89030         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89031         * lib/dup-safer.c (errno): Likewise.
89032
89033 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89034
89035         Merge from coreutils.
89036         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89037         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89038         * modules/path-concat: Don't depend on strdup.
89039
89040 2004-08-03  Simon Josefsson  <jas@extundo.com>
89041
89042         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89043         * lib/progname.h: Don't include stdbool.h.
89044
89045 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89046
89047         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89048         * MODULES.html.sh (func_all_modules): Remove fatal.
89049
89050 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89051
89052         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89053
89054 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89055
89056         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89057         working.
89058
89059 2004-08-02  Simon Josefsson  <jas@extundo.com>
89060
89061         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89062         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89063         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89064
89065 2004-08-01  Simon Josefsson  <jas@extundo.com>
89066
89067         * lib/xgetdomainname.c: Include stdlib.h, for free().
89068
89069 2004-07-19  Bruno Haible  <bruno@clisp.org>
89070
89071         * MODULES.html.sh (func_all_modules): Add dummy.
89072
89073 2004-07-16  Simon Josefsson  <jas@extundo.com>
89074
89075         * modules/dummy: New file.
89076
89077 2004-07-16  Simon Josefsson  <jas@extundo.com>
89078
89079         * lib/dummy.c: New file.
89080
89081 2004-07-16  Bruno Haible  <bruno@clisp.org>
89082
89083         * lib/backupfile.h: Add extern "C" for C++.
89084         * lib/closeout.h: Likewise.
89085         * lib/copy-file.h: Likewise.
89086         * lib/findprog.h: Likewise.
89087         * lib/full-write.h: Likewise.
89088         * lib/pathname.h: Likewise.
89089         * lib/progname.h: Likewise.
89090         * lib/stpcpy.h: Likewise.
89091         * lib/stpncpy.h: Likewise.
89092         * lib/strcase.h: Likewise.
89093         * lib/strstr.h: Likewise.
89094         * lib/xalloc.h: Likewise.
89095
89096         * lib/mbswidth.h: Add extern "C" for C++.
89097         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89098
89099 2004-07-13  Robert Millan  <robertmh@gnu.org>
89100
89101         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89102
89103 2004-07-09  Simon Josefsson  <jas@extundo.com>
89104
89105         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89106         failed without this.)
89107
89108 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89109
89110         * modules/chown (Files): Add lib/fchown-stub.c, since
89111         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89112
89113 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89114
89115         * lib/fchown-stub.c: New file.
89116
89117 2004-06-24  Jim Meyering  <jim@meyering.net>
89118
89119         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89120
89121 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89122
89123         * modules/argz: Omit "#include".
89124
89125         * MODULES.html.sh (func_all_modules): Add calloc, to match
89126         2004-06-01 addition of calloc module.
89127
89128 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89129
89130         * m4/argz.m4: New file, which is autoupdated from libtool.
89131
89132 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89133
89134         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89135         libtool.
89136
89137 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89138
89139         * config/srclist-update: Don't insist on "USA." before the
89140         close-comment, as libtool omits the period and puts the */ on a
89141         separate line.
89142         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89143         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89144
89145 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89146
89147         * modules/argz: New file.
89148         * MODULES.html.sh (func_all_modules): Add argz.
89149
89150 2004-06-12  Jim Meyering  <jim@meyering.net>
89151         and  Paul Eggert  <eggert@cs.ucla.edu>
89152
89153         * modules/hash (Files): Add lib/xalloc.h.
89154         * modules/pipe (Depends-on): Add wait-process.
89155         * modules/stat (Depends-on): Add xalloc.
89156         * modules/userspec (Files): Add lib/userspec.h.
89157         * modules/xstrto
89158
89159         Upgrade from gettext-0.13.
89160         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89161         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89162         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89163
89164 2004-06-10  Jim Meyering  <jim@meyering.net>
89165
89166         * lib/calloc.c: New file.
89167
89168 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89169
89170         * lib/getdate.y (yylex): Allow space between sign and number.
89171         Problem reported by Dan Jacobson.
89172
89173 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89174
89175         Merge from coreutils CVS.
89176
89177         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89178         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89179         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89180         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89181         xstrtol.m4: Fix copyright date and/or serial number.
89182
89183         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89184         See if we need an fchown replacement.
89185         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89186         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89187         and use the replacement function if we detect either defect.
89188
89189         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89190         gl_UTIMECMP.
89191
89192 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89193         and  Jim Meyering  <jim@meyering.net>
89194
89195         Merge from coreutils CVS.
89196
89197         * lib/stat-macros.h: New file, with contents from file-type.h
89198         and coreutils' system.h.
89199         * lib/file-type.c: Include "stat-macros.h".
89200         * lib/file-type.h (file_type): Move all macro definitions to new file,
89201         stat-macros.h.
89202
89203         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89204         Wrap old code with this conditional.
89205         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89206         function that does not dereference symlinks.
89207         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89208
89209         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89210         dependency problems.
89211         (xreadlink): Accept new arg SIZE, for efficiency.
89212         All decls and uses changed.
89213         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89214
89215         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89216         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89217
89218         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89219         sysexits.h.
89220
89221 2004-06-01  Jim Meyering  <jim@meyering.net>
89222
89223         * m4/calloc.m4: New file.
89224
89225 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89226
89227         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89228         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89229         Also, fix a typo in a diagnostic.
89230
89231 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89232
89233         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89234         or AC_FUNC_REALLOC.
89235
89236 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89237
89238         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89239         macros to be defined.
89240         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89241         the allocator returns NULL because the requested size is zero.
89242
89243 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89246         var.  Add comment explaining why libc still defines it.  This
89247         merges the following patch from glibc:
89248         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89249
89250 2004-05-20  Andreas Schwab  <schwab@suse.de>
89251
89252         * m4/free.m4: Replace free if it not known to work, not the other
89253         way round.
89254
89255 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89256
89257         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89258         present in glibc since revision 1.1 of this file.
89259         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89260         obstack_alignment_mask, obstack_alloc, obstack_base,
89261         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89262         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89263         obstack_grow0, obstack_init, obstack_int_grow,
89264         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89265         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89266         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89267         nonexistent functions.
89268
89269 2004-05-18  Karl Berry  <karl@gnu.org>
89270
89271         * config/srclist.txt: break link for vasnprintf.c.
89272
89273 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89274
89275         Port obstack to the AS/400, where pointers are 16 bytes wide and
89276         you cannot cast an integer to a valid pointer.  This patch is
89277         currently waiting to be integrated into glibc; see
89278         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89279
89280         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89281         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89282         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89283         (struct obstack): temp member is now a union of a pointer and
89284         an integer, instead of an integer.  All integer uses changed.
89285         This does not affect the physical layout of struct obstack,
89286         except on hosts (like the AS/400) where the size or alignment of
89287         void * is greater than that of ptrdiff_t.
89288         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89289         __STDC__)]: Store temporary in pointer member of union, not
89290         integer member.
89291         * lib/obstack.c: Include <stddef.h>, for offsetof.
89292         (struct fooalign): Remove; it doesn't need a name.
89293         (union fooround): Change double to long double, and add void *.
89294         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89295         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89296         not a macro.  Hence the values are always int; so remove all
89297         casts-to-int in uses.
89298
89299 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89300
89301         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89302         we can get this patch merged into glibc.
89303
89304 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89305             Paul Eggert  <eggert@cs.ucla.edu>
89306
89307         * m4/argp: Depend on alloca.
89308
89309 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89310             Paul Eggert  <eggert@cs.ucla.edu>
89311
89312         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89313         freecoding.
89314
89315 2004-05-17  Bruno Haible  <bruno@clisp.org>
89316
89317         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89318         precision that consists of a '.' followed by an empty digit string.
89319         Patch by Tor Lillqvist <tml@iki.fi>.
89320
89321 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89322
89323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89324         for backward compatibility with older code.  We need our own
89325         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89326         it under some other name, and our alloca.h will define it.
89327
89328 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89329             Derek Price  <derek@ximbiot.com>
89330
89331         * lib/alloca.c: Include <alloca.h>, to get our interface.
89332         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89333         include <alloca.h> first.  Use C89 prototype for alloca; this
89334         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89335         Use #elif for simplicity, since we can assume C89 now.
89336         Don't try to source the system alloca.h since it will not be found
89337         and to prevent recursively including its replacement.
89338         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89339         * lib/regex.c: Likewise.
89340
89341 2004-05-16  Derek Price  <derek@ximbiot.com>
89342             Paul Eggert  <eggert@cs.ucla.edu>
89343
89344         getline cleanup.  This changes the getndelim2 API: both order of
89345         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89346         no delimiter).
89347
89348         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89349         interface does that.
89350         (getline): Always use getdelim, so that we don't have two
89351         copies of this code.
89352         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89353         if available.
89354         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89355         (GETNDELIM2_MAXIMUM): New macro.
89356         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89357         instead of the old practice of delim2==0.  All callers changed.
89358         Return -1 on overflow, instead of returning junk.
89359         Do not set *linesize unless allocation succeeds.
89360         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89361         that we include sys/types.h.
89362         * lib/getnline.h: Likewise.
89363         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89364         (getndelim2): Reorder arguments.
89365         * lib/getnline.c (getnline, getndelim):
89366         Don't discard the NMAX argument.
89367         (getnline): Invoke getndelim, to avoid code duplication.
89368         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89369         of (size_t) -1 by callers of the getnline family.
89370
89371 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89372
89373         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89374         Check for gettimeofday.
89375         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89376         Check for settimeofday, stime.
89377
89378 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89379
89380         * lib/nanosleep.c (suspended): Change its type from int to
89381         sig_atomic_t volatile.
89382         (first_call): Make it private to rpl_nanosleep, and have it
89383         be zero initially as that's a bit faster.
89384         (my_usleep): Round up fractional times instead of truncating them,
89385         as this is the usual meaning for 'sleep'.
89386
89387         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89388         doesn't work.
89389         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89390         (ENOSYS): Define if not defined.
89391         (settime): Fall back on stime if it exists and settimeofday fails.
89392         But don't bother with fallbacks if a method fails with errno == EPERM.
89393
89394 2004-05-11  Jim Meyering  <jim@meyering.net>
89395
89396         Prior to this change, the save_cwd caller required read access to the
89397         current directory on most systems (ones with the fchdir function).
89398
89399         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89400         fails, try write-only, and finally, resort to using xgetcwd.
89401
89402 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89403
89404         * lib/obstack.c, obstack.h: Import changes from libc.
89405
89406 2004-04-28  Bruno Haible  <bruno@clisp.org>
89407
89408         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89409         also implicitly appends .exe to executables.
89410         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89411         accepts Windows pathnames.
89412         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89413         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89414         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89415         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89416         Reported by Derek Robert Price <derek@ximbiot.com>.
89417
89418 2004-04-21  Karl Berry  <karl@gnu.org>
89419
89420         * config/srclist.txt (localcharset.c): break sync.
89421
89422 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89423
89424         * m4/host-os.m4: Add a copyright notice.
89425
89426 2004-04-20  Jim Meyering  <jim@meyering.net>
89427
89428         Change UTILS_ to gl_ in AC_DEFINE'd names.
89429         Change utils_- and jm_-prefixed variables, too.
89430         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89431         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89433
89434         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89435         Don't emit trailing blanks.
89436         Also rename jm_-prefixed variables to have gl_ prefix.
89437
89438         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89439         Also rename jm_-prefixed variables to have gl_ prefix.
89440
89441         * m4/jm-macros.m4: Reflect the renamings.
89442         * m4/prereq.m4: Likewise.
89443
89444 2004-04-20  Jim Meyering  <jim@meyering.net>
89445
89446         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89447         memory.
89448
89449 2004-04-20  Jim Meyering  <jim@meyering.net>
89450             Bruno Haible  <bruno@clisp.org>
89451
89452         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89453         memory when realloc fails.
89454
89455 2004-04-19  Jim Meyering  <jim@meyering.net>
89456
89457         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89458         now that readutmp.c may call `free (0)'.
89459
89460 2004-04-19  Bruno Haible  <bruno@clisp.org>
89461
89462         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89463         * m4/inttypes_h.m4: Likewise.
89464         * m4/stdint_h.m4: Likewise.
89465         * m4/intmax_t.m4: Likewise.
89466         * m4/uintmax_t.m4: Likewise.
89467
89468 2004-04-18  Jim Meyering  <jim@meyering.net>
89469
89470         * m4/prereq.m4: Don't forbid jm_ prefix.
89471
89472         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89473         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89474         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89475         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89476         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89477         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89478         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89479         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89480         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89481         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89482         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89483         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89484         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89485         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89486         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89487         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89488         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89489         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89490         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89491
89492 2004-04-18  Jim Meyering  <jim@meyering.net>
89493
89494         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89495         failure, don't leak memory and do call END_UTMP_ENT.
89496
89497 2004-04-16  Jim Meyering  <jim@meyering.net>
89498
89499         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89500         coreutils' stat program.
89501         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89502
89503 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89504
89505         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89506         C89.
89507         (CHAR_BIT): Remove, since we assume C89.
89508         Include <stdint.h> if available, as per current Autoconf CVS advice.
89509
89510 2004-03-31  Jim Meyering  <jim@meyering.net>
89511
89512         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89513         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89514         * m4/xalloc.m4: Likewise.
89515
89516 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89517
89518         Merge from coreutils.
89519
89520         * m4/inttostr.m4: New file.
89521         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89522         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89523         Require gl_CLOCK_TIME.
89524         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89525
89526 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89527
89528         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89529         not bool, to be more consistent with Unix conventions.
89530         Suggested by Bruno Haible.
89531
89532         Merge from coreutils.
89533
89534         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89535         * lib/umaxtostr.c: New files.
89536
89537         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89538         the usual <time.h> dance.
89539         (get_date): Change signature to support fractional time stamps.
89540         All callers changed.
89541         * lib/getdate.y: Include "getdate.h" first, as we can now
89542         assume C89 and don't need to worry about 'const'.
89543         Similarly, include "unlocked-io.h" near start, not in middle.
89544         Include <limits.h>.
89545         (textint.value): Use long int rather than int.
89546         (textint.digits): Use size_t rather than int.
89547         (BILLION, LOG10_BILLION): New constants.
89548         (parser_control): New member rel_ns.  Members day_ordinal,
89549         time_zone, month, day, hour, minutes, rel_year, rel_month,
89550         rel_day, rel_hour, rel_minutes, rel_seconds
89551         are now long int, not int.  Member seconds is now struct timespec,
89552         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89553         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89554         not int.
89555         (%union.intval): Now long int, not int.
89556         New member timespec.
89557         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89558         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89559         (spec): Now is a timespec or an item list.
89560         (timespec, items): New nonterminals.
89561         (time, rel, relunit, number, get_date):
89562         Add support for fractional seconds.
89563         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89564         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89565         (to_hour): First arg is now long int, not int.
89566         (to_year): Returns long int, not int.
89567         Don't treat year -70 like 70.
89568         (tm_diff): Returns long int, not int.
89569         (lookup_word): Use bool instead of int when appropriate.
89570         (yylex): Use size_t for count, not int.
89571         Detect overflow when parsing large integer constants.
89572         Add support for fractions.
89573         (get_date): Make pointers 'const' if possible.
89574         Use more-portable code to detect integer overflow.
89575         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89576         Don't use ctime; it's not reliable if the year has >4 digits.
89577
89578         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89579         This is for compatibility with BSD.
89580
89581         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89582         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89583         From coreutils' system.h.
89584
89585         * lib/userspec.c: Don't include "posixver.h".
89586         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89587         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89588         compatible extension.  Simplify code by removing a boolean int
89589         that was always nonzero if a string was nonnull.
89590
89591 2004-03-30  Jim Meyering  <jim@meyering.net>
89592
89593         Merge from coreutils.
89594
89595         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89596         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89597         on some systems one must include <grp.h> before it.
89598         Reported by Christian Krackowizer.
89599
89600 2004-03-30  Jim Meyering  <jim@meyering.net>
89601
89602         Merge from coreutils.
89603
89604         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89605
89606         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89607         an empty input stream.
89608
89609         * lib/readtokens.c: Include <stdbool.h>.
89610         (readtoken): Use `size_t' rather than int/long.
89611         All callers adjusted.
89612         Use `bool' rather than `int' where appropriate.
89613         Use memset rather than an explicit loop.
89614         Use x2nrealloc rather than xrealloc.
89615         Allow the use of `\0' as a delimiter.
89616         (readtokens): Likewise.
89617         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89618
89619 2004-03-30  Jim Meyering  <jim@meyering.net>
89620
89621         * m4/realloc.m4: Remove file, since now it does no more than
89622         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89623         the `configure.ac' section of module/realloc.
89624         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89625
89626 2004-03-30  Bruno Haible  <bruno@clisp.org>
89627
89628         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89629         nonnull.
89630
89631 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89632
89633         Merge changes to getloadavg.c from coreutils and Emacs.
89634
89635         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89636         Define to an expression, not to the empty string.
89637         Include cloexec.h and xalloc.h.
89638         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89639         Use set_cloexec_flag rather than rolling our own.
89640         * lib/cloexec.c, lib/cloexec.h: New files.
89641
89642 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89643
89644         * m4/cloexec.m4: New file.
89645
89646 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89647
89648         * lib/getopt.h: Sync with libc CVS.
89649
89650 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89651             Bruno Haible  <bruno@clisp.org>
89652
89653         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89654         mbswidth.
89655
89656 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89657             Bruno Haible  <bruno@clisp.org>
89658
89659         * lib/mbswidth.h: Include <wchar.h> only if
89660         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89661         <wchar.h>.
89662         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89663
89664 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89665
89666         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89667         Sync with libc CVS.
89668         * lib/getopt_int.h: New file, also synced from libc.
89669
89670 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89671
89672         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89673         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89674         Bring back getopt.c, getopt.h, getopt1.c.
89675
89676 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89677
89678         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89679         All uses changed.  Check for sa_sigaction member; this fixes
89680         a bug first reported by Jason Andrade in
89681         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89682
89683 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89684
89685         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89686         '#if' expressions.  Unlike the code it replaces, it does not
89687         depend on (defined _SC_PAGESIZE).  However, it does depend on
89688         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89689         first reported by Jason Andrade in
89690         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89691
89692 2004-02-25  Simon Josefsson  <jas@extundo.com>
89693
89694         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89695
89696 2004-02-25  Simon Josefsson  <jas@extundo.com>
89697
89698         * lib/strdup.h: New file.
89699         * lib/strdup.c: Include it.
89700         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89701         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89702
89703 2004-02-23  Karl Berry  <karl@gnu.org>
89704
89705         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89706         (from fencepost.gnu.org:/gd/gnuorg).
89707
89708 2004-02-23  Karl Berry  <karl@gnu.org>
89709
89710         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89711         * config/srclist.txt: add maintain/standards documents.
89712
89713 2004-02-18  Bruno Haible  <bruno@clisp.org>
89714
89715         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89716         Reported by Derek Robert Price <derek@ximbiot.com>.
89717
89718 2004-02-16  Karl Berry  <karl@gnu.org>
89719
89720         * config/mkinstalldirs, install-sh: update from automake.
89721
89722 2004-02-06  Karl Berry  <karl@gnu.org>
89723
89724         * m4/po.m4: update from gettext 0.14.1.
89725
89726 2004-02-06  Karl Berry  <karl@gnu.org>
89727
89728         * lib/config.charset: update from gettext 0.14.1.
89729
89730 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89731
89732         Add comments and code, prompted by suggestions from Bruno Haible
89733         for sh-quote.
89734         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89735         describing the enum quoting_style values.
89736         * lib/quotearg.c (quotearg_alloc): New function.
89737         (quotearg_buffer_restyled): Treat lone { and } as special.
89738         Treat = as special.  Work around bug with older shells
89739         that "see" a '\' that is really the 2nd byte of a multibyte char.
89740         Quote empty string with shell_quoting_style.
89741
89742 2004-02-03  Bruno Haible  <bruno@clisp.org>
89743
89744         * m4/pipe.m4: New file, from GNU gettext.
89745
89746 2004-02-03  Bruno Haible  <bruno@clisp.org>
89747
89748         * lib/pipe.h: New file, from GNU gettext.
89749         * lib/pipe.c: New file, from GNU gettext.
89750
89751 2004-01-27  Bruno Haible  <bruno@clisp.org>
89752
89753         * m4/execute.m4: New file, from GNU gettext.
89754
89755 2004-01-27  Bruno Haible  <bruno@clisp.org>
89756
89757         * lib/execute.h: New file, from GNU gettext.
89758         * lib/execute.c: New file, from GNU gettext.
89759         * lib/w32spawn.h: New file, from GNU gettext.
89760
89761 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89762
89763         Merge from diffutils.
89764
89765         * lib/file-type.c (file_type): Add typed memory objects.
89766         * lib/file-type.h (S_TYPEISTMO): New macro.
89767
89768         * lib/c-stack.h (c_stack_action): Remove argv argument.
89769         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89770         (die): Don't calculate message unless segv_action returns.
89771         (get_stack_location, min_address_from_argv, max_address_from_argv,
89772         volatile stack_base, volatile_stack_size): Remove.
89773         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89774         that every segmentation violation is a stack overflow.  (Ouch!)
89775         See Debian bug 136249 (still outstanding) for more info about why
89776         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89777
89778 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89779
89780         Exit-status fix from coreutils.
89781
89782         Use exit_failure consistently in place of EXIT_FAILURE,
89783         so that program exit statuses are consistent on failure.
89784
89785         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89786         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89787         * lib/argmatch.h: Comment fix to match the above.
89788         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89789         Now a macro referring to exit_failure, instead of a separate
89790         variable.  Include "exitfail.h" to get it.
89791         * lib/xstrtol.h: Include "exitfail.h".
89792         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89793
89794         * lib/long-options.c (parse_long_options): Use prototype
89795         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89796         for clarity.
89797
89798 2004-01-21  Jim Meyering  <jim@meyering.net>
89799
89800         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89801         so as not to conflict with a different-sized __mktime_internal
89802         function in GNU libc.
89803         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89804         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89805
89806 2004-01-20  Karl Berry  <karl@gnu.org>
89807
89808         * config/config.guess: update from config.
89809
89810         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89811
89812 2004-01-20  Bruno Haible  <bruno@clisp.org>
89813
89814         Safer stack allocation.
89815         * lib/setenv.c: Include allocsa.h.
89816         (alloca): Remove fallback definition.
89817         (freea): Remove macro.
89818         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89819         instead of freea.
89820
89821 2004-01-20  Bruno Haible  <bruno@clisp.org>
89822
89823         * m4/eealloc.m4: New file, from GNU gettext.
89824
89825 2004-01-20  Bruno Haible  <bruno@clisp.org>
89826
89827         * m4/allocsa.m4: New file, from GNU gettext.
89828
89829 2004-01-20  Bruno Haible  <bruno@clisp.org>
89830
89831         * lib/xallocsa.h: New file, from GNU gettext.
89832         * lib/xallocsa.c: New file, from GNU gettext.
89833
89834 2004-01-20  Bruno Haible  <bruno@clisp.org>
89835
89836         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89837
89838 2004-01-20  Bruno Haible  <bruno@clisp.org>
89839
89840         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89841         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89842         specially.
89843
89844 2004-01-20  Bruno Haible  <bruno@clisp.org>
89845
89846         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89847         patch.
89848
89849 2004-01-20  Bruno Haible  <bruno@clisp.org>
89850
89851         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89852
89853 2004-01-20  Bruno Haible  <bruno@clisp.org>
89854
89855         * lib/eealloc.h: New file.
89856
89857 2004-01-20  Bruno Haible  <bruno@clisp.org>
89858
89859         * lib/binary-io.h: Avoid warnings on Cygwin.
89860
89861 2004-01-20  Bruno Haible  <bruno@clisp.org>
89862
89863         * lib/allocsa.h: New file, from GNU gettext.
89864         * lib/allocsa.c: New file, from GNU gettext.
89865
89866 2004-01-18  Karl Berry  <karl@gnu.org>
89867
89868         * doc/gpl.texi, doc/lgpl.texi: new files.
89869
89870 2004-01-18  Karl Berry  <karl@gnu.org>
89871
89872         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89873         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89874
89875 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89876
89877         Merge from coreutils.
89878
89879         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89880         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89881         (gl_DEFAULT_POSIX2_VERSION): Move
89882         the documentation from 'configure' into 'config.hin',
89883         so that 'configure --help' isn't burdened by it and
89884         we don't have to worry about its formatting there.
89885         Reword the documentation so that it's more succinct
89886         and can be run together into a single paragraph.
89887         * m4/same.m4 (gl_SAME): Check for pathconf.
89888
89889 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89890
89891         Merge from coreutils.
89892
89893         * lib/posixver.c: Include posixver.h.
89894
89895         * lib/same.c: Include <stdbool.h>, <limits.h>.
89896         (_POSIX_NAME_MAX): Define if not defined.
89897         (MIN): New macro.
89898         (same_name): If file names are silently truncated, report
89899         that the file names are the same if they are the same after
89900         the silent truncation.
89901
89902         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89903         conversion function.
89904         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89905         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89906         longer needed.
89907
89908 2004-01-15  Jim Meyering  <jim@meyering.net>
89909
89910         Merge from coreutils.
89911
89912         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89913         if no library is required.
89914         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89915         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89916         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89917         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89918         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89919         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89920         value, $ac_cv_search_crypt, if it's "none required".
89921         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89922         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89923         not gl_FUNC_GETLOADAVG.
89924         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89925         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89926
89927 2004-01-15  Jim Meyering  <jim@meyering.net>
89928
89929         Merge from coreutils.
89930
89931         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89932         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89933         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89934
89935         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89936         optional configure-time default.
89937
89938         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89939
89940         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89941
89942 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89943
89944         Merge from coreutils.
89945
89946         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89947         value, $ac_cv_search_nanosleep, if it's "none required".
89948
89949 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89950
89951         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89952         with like-named macro in fnmatch.c.
89953         (EXT): Use an internal constant instead.
89954
89955         Merge fnmatch patches from glibc.
89956         * lib/fnmatch.c (mbsinit): Remove define.
89957         Add libc_hidden_ver (__fnmatch, fnmatch).
89958         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89959         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89960
89961 2004-01-14  Karl Berry  <karl@gnu.org>
89962
89963         * config/install-sh: update from automake.
89964
89965 2004-01-13  Karl Berry  <karl@gnu.org>
89966
89967         * config/install-sh: update from automake.
89968
89969 2004-01-09  Karl Berry  <karl@gnu.org>
89970
89971         * config/install-sh: update from automake.
89972
89973 2004-01-05  Karl Berry  <karl@gnu.org>
89974
89975         * config/config.{sub,guess}: update from config.
89976
89977 2003-12-31  Karl Berry  <karl@gnu.org>
89978
89979         * config/depcomp: update from automake.
89980
89981 2003-12-14  Karl Berry  <karl@gnu.org>
89982
89983         * lib/config.charset: update from gettext-runtime.
89984
89985 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89986
89987         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89988         Bug reported by Alfred M. Szmidt.
89989
89990 2003-12-03  Bruno Haible  <bruno@clisp.org>
89991
89992         * m4/gettext.m4: Upgrade from gettext-0.13.
89993         * m4/po.m4: Upgrade from gettext-0.13.
89994         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89995         * m4/intmax.m4: New file, from gettext-0.13.
89996         * m4/printf-posix.m4: New file, from gettext-0.13.
89997
89998 2003-11-29  Karl Berry  <karl@gnu.org>
89999
90000         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90001
90002 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90003             Bruno Haible  <bruno@clisp.org>
90004
90005         * lib/printf-parse.h: Don't include sys/types.h.
90006         (ARG_NONE): New macro.
90007         (char_directive): Change type of *arg_index fields to size_t.
90008         * lib/printf-parse.c: Don't include sys/types.h.
90009         (SSIZE_MAX): Remove macro.
90010         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90011         Remove unnecessary overflow check.
90012         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90013         fields.
90014
90015 2003-11-25  Bruno Haible  <bruno@clisp.org>
90016
90017         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90018
90019 2003-11-25  Bruno Haible  <bruno@clisp.org>
90020
90021         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90022         gt_TYPE_SSIZE_T.
90023
90024 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90025
90026         * modules/alloca: Remove dependency on xalloc.
90027
90028 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90029
90030         * lib/alloca.c: Remove dependency on xalloc module.
90031         (xalloc_die): Remove.
90032         (memory_full) [!defined emacs]: New macro.
90033         [!defined emacs]: Don't include xalloc.h.
90034         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90035         address arithmetic overflows.  Change datatypes a bit to avoid
90036         unnecessary casts.
90037
90038 2003-11-22  Jim Meyering  <jim@meyering.net>
90039
90040         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90041         s/size/size_t/.
90042
90043 2003-11-21  Karl Berry  <karl@gnu.org>
90044
90045         * config/config.{sub,guess}: update from config.
90046
90047 2003-11-18  Karl Berry  <karl@gnu.org>
90048
90049         * config/config.{sub,guess}: update from config.
90050
90051         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90052
90053 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90054
90055         * README: Mention that S+T cannot overflow if S is the size of
90056         an existing object and T is sufficiently small.
90057
90058 2003-11-17  Jim Meyering  <jim@meyering.net>
90059
90060         On systems without utime and without a utimes function capable of
90061         dealing with a NULL struct utimbuf* argument, this utime replacement
90062         could -- in unusual circumstances -- leak a file descriptor.
90063         * lib/utime.c: Include <unistd.h> and <errno.h>.
90064         (utime_null): Be sure to close `fd' and to preserve errno.
90065         Reported by Geoff Collyer via Arnold Robbins.
90066
90067 2003-11-17  Bruno Haible  <bruno@clisp.org>
90068
90069         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90070         (Depends-on): Add xsize.
90071
90072 2003-11-17  Bruno Haible  <bruno@clisp.org>
90073
90074         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90075
90076 2003-11-17  Bruno Haible  <bruno@clisp.org>
90077
90078         * lib/vasnprintf.c (alloca): Remove fallback definition.
90079         (freea): Remove definition.
90080         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90081         Reported by Paul Eggert.
90082
90083 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90084             Bruno Haible  <bruno@clisp.org>
90085
90086         Protect against address arithmetic overflow.
90087         * lib/printf-args.h: Include stddef.h.
90088         (arguments): Change type of field 'count' to size_t.
90089         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90090         'unsigned int' where appropriate.
90091         * lib/printf-parse.h: Include sys/types.h.
90092         (char_directive): Change type of *arg_index fields to ssize_t.
90093         (char_directives): Change type of fields 'count', max_*_length to
90094         size_t.
90095         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90096         (SSIZE_MAX): Define fallback value.
90097         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90098         instead of 'int' where appropriate. Check a_allocated, d_allocated
90099         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90100         * lib/vasnprintf.c: Include xsize.h.
90101         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90102         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90103         overflow. Avoid wraparound when converting a width or precision from
90104         decimal to binary.
90105
90106 2003-11-16  Bruno Haible  <bruno@clisp.org>
90107
90108         Update from GNU gettext.
90109         * lib/printf-parse.c: Generalize to it can be compiled for wide
90110         strings.
90111         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90112         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90113         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90114         SNPRINTF): New macros.
90115         Don't include <alloca.h> if the file is used inside libintl.
90116         (local_wcslen): New function, for Solaris 2.5.1.
90117         (VASNPRINTF): Use it instead of wcslen.
90118
90119 2003-11-16  Bruno Haible  <bruno@clisp.org>
90120
90121         * lib/xsize.h (xmax): New function.
90122         (xsum, xsum3, xsum4): Declare as "pure" functions.
90123
90124 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90125
90126         * modules/xalloc (Files): Undo latest change, since xalloc.h
90127         no longer needs SIZE_MAX or PTRDIFF_MAX.
90128
90129 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90130
90131         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90132         gl_PTRDIFF_MAX.
90133
90134 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90135
90136         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90137         "return", to pacify some unknown compiler.  Problem reported
90138         by Joerg Schilling.
90139
90140 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90141
90142         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90143         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90144         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90145         heuristic is just as accurate as far as we know, and it removes a
90146         dependency on size_max.m4 and ptrdiff_max.m4.
90147
90148 2003-11-11  Bruno Haible  <bruno@clisp.org>
90149
90150         * modules/xsize (Files): Add m4/size_max.m4.
90151         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90152
90153 2003-11-11  Bruno Haible  <bruno@clisp.org>
90154
90155         * m4/size_max.m4: New file.
90156         * m4/ptrdiff_max.m4: New file.
90157         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90158         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90159         (gl_XALLOC): Invoke it.
90160
90161 2003-11-11  Bruno Haible  <bruno@clisp.org>
90162
90163         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90164         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90165         defined.
90166
90167 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90168
90169         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90170         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90171         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90172         From Bruno Haible.
90173         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90174         not (size_t) -1, since it's defined here.
90175
90176 2003-11-09  Karl Berry  <karl@gnu.org>
90177
90178         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90179
90180 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90181
90182         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90183         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90184         Reject sizes of exactly SIZE_MAX bytes.
90185         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90186         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90187
90188 2003-11-05  Bruno Haible  <bruno@clisp.org>
90189
90190         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90191         SIZE_MAX defined in <limits.h> on Solaris.
90192
90193 2003-11-04  Jim Meyering  <jim@meyering.net>
90194
90195         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90196         variable names, rather than @VAR@.
90197         * modules/poll: Likewise.
90198
90199 2003-11-04  Bruno Haible  <bruno@clisp.org>
90200
90201         * modules/xsize: New file.
90202         * modules/linebreak: Depend on xsize.
90203         * MODULES.html.sh (func_all_modules): Add xsize.
90204
90205 2003-11-04  Bruno Haible  <bruno@clisp.org>
90206
90207         * m4/xsize.m4: New file.
90208
90209 2003-11-04  Bruno Haible  <bruno@clisp.org>
90210
90211         * lib/xsize.h: New file.
90212         * lib/linebreak.c: Include xsize.h.
90213         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90214         argument for overflow.
90215         Suggested by Paul Eggert.
90216
90217 2003-11-03  Karl Berry  <karl@gnu.org>
90218
90219         * config/config.{guess,sub}: update from config.
90220
90221 2003-11-03  Jim Meyering  <jim@meyering.net>
90222
90223         * modules/userspec (lib_SOURCES): Add userspec.h.
90224         (Include): Add "userspec.h".
90225         Improve description.
90226
90227 2003-11-03  Jim Meyering  <jim@meyering.net>
90228
90229         * lib/userspec.c: Include "userspec.h".
90230         * lib/userspec.h: New file.
90231
90232 2003-11-03  Bruno Haible  <bruno@clisp.org>
90233
90234         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90235
90236 2003-11-03  Bruno Haible  <bruno@clisp.org>
90237
90238         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90239         available, to avoid (extremely rare) race condition.
90240         Suggested by Paul Eggert.
90241
90242 2003-11-02  Karl Berry  <karl@gnu.org>
90243
90244         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90245
90246 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90247
90248         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90249         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90250         (read_filesystem_list): Set and use me_type_malloced.
90251         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90252         whatever the type happens to be), for brevity and consistency.
90253         Check for size calculation overflow on Alphas running OSF/1.
90254
90255 2003-10-31  Jim Meyering  <jim@meyering.net>
90256
90257         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90258
90259         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90260
90261 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90262             Bruno Haible  <bruno@clisp.org>
90263
90264         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90265         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90266
90267 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90268
90269         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90270         netbsd*-gnu*.  Suggested by Robert Millan.
90271
90272 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90273
90274         * modules/group-member: Depend on stdbool.
90275
90276 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90277
90278         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90279
90280 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90281
90282         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90283         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90284         after the 'gnu' in these cases.  This fixes some bugs in the
90285         previous change, and is based on suggestions by Robert Millan.
90286
90287 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90288
90289         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90290         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90291         no longer needed.
90292         * lib/quotearg.c (quotearg_n_options): Use it.
90293         * lib/group-member.c: Include <stdbool.h>.
90294         (free_group_info): Arg is now const *; don't free arg.
90295         (get_group_info): Now returns bool and accepts struct group_info *,
90296         rather than returning a malloc'ed struct group_info *.
90297         All uses changed.  Check for overflow in internal size calculation.
90298
90299         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90300         rather than xmalloc/xrealloc.
90301         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90302         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90303         conformance bug: the old code used a pointer after freeing the
90304         storage that it addressed.
90305         * lib/hash.c (hash_initialize): Simplify the code by using
90306         xalloc_oversized rather than doing it by hand.
90307         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90308         the buffer preserved.  Use free and xmalloc instead.
90309         * lib/quotearg.c (quotearg_n_options): Likewise.
90310         Use a simpler test for size overflow.  Don't use xalloc_oversized
90311         because unsigned int might be wider than size_t (!); this suggests
90312         that we should switch from unsigned int to size_t for slot numbers.
90313
90314 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90315
90316         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90317         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90318         NetBSD kernels.  Requested by Richard Stallman.
90319
90320 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90321
90322         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90323         to allocate the returned structure.  Do not allocate a subarray,
90324         as x2nrealloc will do that.
90325         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90326         instead of xnrealloc.
90327         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90328
90329 2003-10-27  Bruno Haible  <bruno@clisp.org>
90330
90331         * lib/stdbool_.h: Better support for BeOS.
90332
90333 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90334
90335         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90336         now uses inline.
90337
90338 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90339
90340         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90341         callers that want to do their own size-overflow checking.  Include
90342         <stdbool.h>, since xalloc_oversized returns bool.
90343         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90344         to use xalloc_oversized.
90345
90346         Add two functions x2realloc, x2nrealloc, for programs that grow
90347         arrays dynamically by doubling their sizes.
90348         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90349         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90350         New functions.
90351
90352         Port to C99 semantics for 'inline' of external functions.
90353         Bug reported by Bruno Haible.
90354         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90355         with the old contents of xnmalloc.
90356         (xnmalloc, xmalloc): Use it.
90357         (xnrealloc_inline): New static inline function,
90358         with the old contents of xnrealloc.
90359         (xnrealloc, xrealloc): Use it.
90360
90361         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90362         that.
90363
90364 2003-10-26  Karl Berry  <karl@gnu.org>
90365
90366         * config/srclist.txt (COPYING.DOC): no longer available from
90367         /gd/gnuorg; don't know where the ultimate source is.
90368
90369 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90370
90371         Fix several address-calculation bugs in the hash modules,
90372         plus some minor code cleanup.
90373
90374         * lib/hash.h: Include <stdbool.h>, for bool.
90375         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90376         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90377         hash_get_n_entries, hash_get_max_bucket_length,
90378         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90379         hash_rehash): Use size_t rather than unsigned.
90380         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90381         hash_get_n_buckets_used, hash_get_n_entries,
90382         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90383         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90384         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90385         Likewise.
90386         (SIZE_MAX): Define if not defined.
90387         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90388         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90389         hash_print):
90390         Use const * when possible.
90391         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90392         (check_tuning): Fix bug: if tuning parameters were very close to
90393         0 or 1, rounding errors could have caused subscript violations.
90394         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90395         (hash_initialize): Add 'fail:' label
90396         to free table and return NULL, and use it to simplify code.
90397         Use calloc rather than clearing the storage ourself.
90398         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90399         buffer size calculations.
90400         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90401         Include <stddef.h>, for size_t.
90402         * lib/hash-pjw.c (hash_pjw): Likewise.
90403         Switch to method described by Bruno Haible.
90404         Include <limits.h>, for CHAR_BIT.
90405         (SIZE_BITS): New macro.
90406
90407 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90408
90409         * m4/getline.m4 (AM_FUNC_GETLINE):
90410         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90411         hosts.  Problem reported by Derek Robert Price in
90412         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90413         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90414         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90415
90416 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90417
90418         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90419         ceiling the allocation at NMAX bytes rather than silently
90420         discarding input bytes before NMAX is reached.  This makes
90421         a difference only if NMAX exceeds SIZE_MAX / 2.
90422
90423         * lib/obstack.c: Merge from glibc.
90424         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90425         Add libc_hidden_def (_obstack_newchunk).
90426         (_obstack_free) [! defined _LIBC]: Remove.
90427         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90428         a clone of the function body.
90429         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90430         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90431
90432         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90433         glibc.
90434         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90435         arg to memcpy.
90436
90437         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90438         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90439         Don't use lvalue casts, as GCC plans to remove support for them
90440         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90441         was also present in the non-GCC version, indicating that this
90442         code had always been buggy and had never been widely used.
90443         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90444         Use the fast variant of each macro, rather than copying the
90445         definiens of the fast variant; that way, we'll be more likely to
90446         catch future bugs in the fast variants.
90447
90448 2003-10-20  Bruno Haible  <bruno@clisp.org>
90449
90450         * modules/wait-process: New file.
90451         * MODULES.html.sh (func_all_modules): Add wait-process.
90452
90453 2003-10-20  Bruno Haible  <bruno@clisp.org>
90454
90455         * m4/wait-process.m4: New file.
90456
90457 2003-10-20  Bruno Haible  <bruno@clisp.org>
90458
90459         * lib/wait-process.h: New file, from GNU gettext.
90460         * lib/wait-process.c: New file, from GNU gettext.
90461
90462 2003-10-19  Jim Meyering  <jim@meyering.net>
90463
90464         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90465         HPUX 10.20.
90466
90467 2003-10-18  Karl Berry  <karl@gnu.org>
90468
90469         * config/config.guess: update from config.
90470
90471 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90472
90473         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90474         (getgroups): First arg is int, not size_t.
90475         Don't let 'free' mangle errno.
90476
90477 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90478
90479         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90480
90481 2003-10-16  Karl Berry  <karl@gnu.org>
90482
90483         * config/config.{guess,sub}: update from config.
90484
90485 2003-10-16  Jim Meyering  <jim@meyering.net>
90486
90487         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90488         memcpy.
90489
90490 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90491
90492         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90493         (SIZE_MAX): Remove.
90494         (new_exclude, add_exclude_file): Initial size no longer needs to
90495         be a power of 2.
90496         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90497         our own address arithmetic overflow checking.
90498
90499         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90500         (fnmatch): Do not alloca more than 2000 wide characters;
90501         instead, use malloc for large buffers.
90502         Check for address arithmetic overflow, and return -1
90503         with errno set to ENOMEM in that case.
90504         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90505         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90506         instead, return -1.  Check for address arithmetic overflow.
90507
90508 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90509
90510         Handle invalid suffixes and overflow independently, so that
90511         callers can treat them independently as needed.  Fix some bugs in
90512         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90513         suffix for a human-readable blocksize.  The major caller-visible
90514         change is the addition of a new
90515         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90516         that both overflow and suffix chars were found.
90517
90518         * lib/human.c (humblock): Don't check separately for invalid suffix
90519         char; that is xstrtoumax's job (now that its bug is fixed).
90520         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90521         INTMAX_MAX]: New macros.
90522         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90523         TYPE_MAXIMUM): New macros.
90524         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90525         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90526         if overflow occurs, as it's what __strtol does and it's more useful
90527         in practice.
90528         (__xstrtol): If __strtol reports some error other than ERANGE,
90529         reflect it to the caller as LONGINT_INVALID.  If it reports
90530         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90531         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90532         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90533         value.
90534         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90535         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90536         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90537         [defined UINTMAX_MAX]: New macros.
90538
90539 2003-10-14  Bruno Haible  <bruno@clisp.org>
90540
90541         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90542
90543 2003-10-14  Bruno Haible  <bruno@clisp.org>
90544
90545         * m4/sig_atomic_t: New file, from GNU gettext.
90546         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90547
90548 2003-10-14  Bruno Haible  <bruno@clisp.org>
90549
90550         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90551         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90552         Also use volatile where needed.
90553
90554 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90555
90556         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90557         Change maintainer from Bruno Haible to 'all'.
90558
90559 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90560
90561         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90562
90563 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90564
90565         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90566         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90567         and define in terms of the other primitives.
90568         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90569         (SIZE_MAX): Define if not already defined.
90570         (array_size_overflow): New function.
90571         (xalloc_die): Abort instead of exiting if 'error' returns.
90572         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90573         (xmalloc, xrealloc): Use them.
90574         (xcalloc): Check for address arithmetic overflow.
90575         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90576         a bit faster than strcpy.
90577
90578 2003-10-10  Simon Josefsson  <jas@extundo.com>
90579
90580         * modules/argp (Depends-on): Add restrict and strcase.
90581
90582 2003-10-10  Simon Josefsson  <jas@extundo.com>
90583
90584         * m4/argp.m4: Add AC_C_INLINE.
90585
90586 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90587
90588         Merge getpass from libc, plus a few fixes.
90589
90590         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90591         Include <stdbool.h>.
90592         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90593         __fsetlocking to empty.
90594         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90595         do include <bits/libc-lock.h>.
90596         Do not include <fcntl.h>; not needed.
90597         [_LIBC]: Include <wchar.h>.
90598         (NOTCANCEL_MODE): New macro.
90599         (flockfile, funlockfile) [_LIBC]: New macros.
90600         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90601         [!_LIBC]: New macros.
90602         (call_fclose): New function.
90603         (getpass): Use it.  Save tty stream separately; this simplifies the
90604         code and makes it more reliable if stdin happens to equal stdout.
90605         Invoke __fsetlocking on tty.
90606         Handle thread cancellation if needed.
90607         Namespace cleanup (use __tcgetattr, __getline).
90608         Use bool for Booleans.
90609         [USE_IN_LIBIO]: Handle wide streams.
90610         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90611         stream might go where.
90612
90613         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90614         doesn't have to include <stdio.h> before us.
90615         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90616         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90617         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90618         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90619         if not declared, so that we can use getpass.c code from libc without
90620         rewriting it.
90621         (flockfile, ftrylockfile, funlockfile): New macros.
90622
90623 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90624
90625         * modules/getpass: Depend on stdbool.
90626
90627 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90628
90629         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90630
90631 2003-10-07  Karl Berry  <karl@gnu.org>
90632
90633         * config/config.{guess,sub}: update from config.
90634
90635 2003-10-06  Jim Meyering  <jim@meyering.net>
90636             Bruno Haible  <bruno@clisp.org>
90637
90638         This lets translators provide better translations for the
90639         "Written by ..." part of --version output.
90640         * lib/version-etc.h: Include stdarg.h.
90641         (version_etc_copyright): Declare as readonly.
90642         (version_etc): Make this function variadic with a NULL-terminated list
90643         of author name strings.
90644         (version_etc_va): New declaration.
90645         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90646         (version_etc_copyright): Declare as readonly.
90647         (version_etc_va): New function. Provide a different translatable string
90648         for each possible number of authors < 10. Abbreviate when there are 10
90649         authors or more.
90650         (version_etc): Make this function variadic. Call version_etc_va.
90651         Suggestion from Gary V. Vaughan.
90652
90653         * lib/long-options.h (parse_long_options): Change prototype: the
90654         authors string is moved to the end and becomes variadic.
90655         * lib/long-options.c: Include stdarg.h.
90656         (parse_long_options): Make this function variadic, too.
90657         Call version_etc_va, not version_etc.
90658
90659 2003-10-06  Bruno Haible  <bruno@clisp.org>
90660
90661         * modules/version-etc-2: Remove file.
90662         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90663
90664 2003-10-06  Bruno Haible  <bruno@clisp.org>
90665
90666         * modules/fatal-signal: New file.
90667         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90668
90669 2003-10-06  Bruno Haible  <bruno@clisp.org>
90670
90671         * m4/fatal-signal.m4: New file.
90672         * m4/signalblocking.m4: New file, from GNU gettext.
90673
90674 2003-10-06  Bruno Haible  <bruno@clisp.org>
90675
90676         * lib/version-etc-2.h: Remove file.
90677         * lib/version-etc-2.c: Remove file.
90678
90679 2003-10-06  Bruno Haible  <bruno@clisp.org>
90680
90681         * lib/fatal-signal.h: New file, from GNU gettext.
90682         * lib/fatal-signal.c: New file, from GNU gettext.
90683
90684 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90685
90686         * README: Rework advice for preventing empty .o files.
90687         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90688         not <sys/types.h>.
90689
90690 2003-10-04  Karl Berry  <karl@gnu.org>
90691
90692         * lib/argp*: update from libc.
90693
90694 2003-10-04  Karl Berry  <karl@gnu.org>
90695
90696         * config/config.{guess,sub}: update from config.
90697
90698 2003-10-02  Bruno Haible  <bruno@clisp.org>
90699
90700         * modules/lchown (Include): Add lchown.h.
90701         * modules/time_r (Include): Use "..." syntax.
90702         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90703
90704 2003-10-01  Simon Josefsson  <jas@extundo.com>
90705
90706         * MODULES.html.sh (func_all_modules): Move gethostname from section
90707         'based on' to section 'lacking' POSIX:2001.
90708
90709 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90710
90711         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90712         to output mode on the same stream.
90713
90714 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90715
90716         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90717         Fix arg typo in previous patch.
90718
90719 2003-09-28  Jim Meyering  <jim@meyering.net>
90720
90721         * lib/error.c: Correct cpp indentation.
90722
90723 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90724
90725         * modules/free: New file.
90726
90727 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90728
90729         * m4/free.m4: New file.
90730
90731 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90732
90733         * lib/minmax.h (MIN, MAX)
90734         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90735         Omit the special code that used __typeof__, since we worry that
90736         it could be more trouble than it's worth.  See:
90737         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90738         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90739
90740         * lib/free.c: New file.
90741
90742 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90743
90744         Trivial fixes to Makefile.am parts of module listings.
90745         * modules/strstr: Append strstr.h to lib_SOURCES.
90746         * modules/strcase: Likewise, for strcase.h.
90747
90748 2003-09-27  Karl Berry  <karl@gnu.org>
90749
90750         * config/mkinstalldirs: update from automake.
90751
90752 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90753
90754         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90755         (error_tail): Do not loop, reallocating temporary buffer, since
90756         the output cannot contain more wide characters than the input
90757         contains bytes, the size must be big enough already.  This avoids
90758         one potential size overflow calculation.  Check for size overflow
90759         when calculating temporary buffer size.  Free temporary buffer
90760         when done, if it was allocated with malloc; this plugs a memory
90761         leak.  Remove casts from void * to pointers, that are no longer
90762         needed now that we're assuming C89 or better.
90763
90764         Merge error changes from glibc.
90765
90766         * lib/error.c, error.h: Update copyright notice header to match glibc.
90767         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90768         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90769         Disable cancellation while printing error.
90770         * lib/error.h: Prepend __ to parameter names.
90771
90772 2003-09-26  Jim Meyering  <jim@meyering.net>
90773
90774         * lib/error.c (error_tail): Move some declarations
90775         into inner scope where the local variables are used.
90776
90777 2003-09-26  Bruno Haible  <bruno@clisp.org>
90778
90779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90780         stpncpy().
90781         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90782
90783 2003-09-26  Bruno Haible  <bruno@clisp.org>
90784
90785         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90786         (stpncpy): Define as alias for gnu_stpncpy.
90787         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90788
90789 2003-09-25  Simon Josefsson  <jas@extundo.com>
90790
90791         * lib/xgetdomainname.h: New file.
90792         * lib/xgetdomainname.c: New file.
90793
90794 2003-09-25  Simon Josefsson  <jas@extundo.com>
90795             Bruno Haible  <bruno@clisp.org>
90796
90797         * modules/getdomainname: New file.
90798         * modules/xgetdomainname: New file.
90799         * MODULES.html.sh (func_all_modules): Add getdomainname,
90800         xgetdomainname.
90801
90802 2003-09-25  Simon Josefsson  <jas@extundo.com>
90803             Bruno Haible  <bruno@clisp.org>
90804
90805         * m4/getdomainname.m4: New file.
90806
90807 2003-09-25  Simon Josefsson  <jas@extundo.com>
90808             Bruno Haible  <bruno@clisp.org>
90809
90810         * lib/getdomainname.h: New file.
90811         * lib/getdomainname.c: New file.
90812
90813 2003-09-25  Karl Berry  <karl@gnu.org>
90814
90815         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90816
90817 2003-09-25  Karl Berry  <karl@gnu.org>
90818
90819         * config/install-sh: update from automake.
90820
90821 2003-09-25  Bruno Haible  <bruno@clisp.org>
90822
90823         * modules/version-etc-2: New file, from modules/version-etc with
90824         modifications.
90825         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90826
90827 2003-09-25  Bruno Haible  <bruno@clisp.org>
90828
90829         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90830         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90831
90832 2003-09-24  Simon Josefsson  <jas@extundo.com>
90833
90834         * modules/xgethostname: Add xgethostname.h.
90835
90836 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90837
90838         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90839         the buffer associated with the argument.  Bug reported by
90840         Simon Josefsson.
90841
90842 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90843
90844         * README: Document assumptions that 'int' is at least 32 bits
90845         wide, that integer arithmetic is 2's complement without overflow,
90846         that there are no holes in integer values, that adding sizes of
90847         two nonoverlapping objects can't overflow, and that all-bits-zero
90848         yields scalar zero.  Fix spelling and capitalization typos.
90849
90850 2003-09-19  Karl Berry  <karl@gnu.org>
90851
90852         * lib/argp.h: update from libc.
90853
90854 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90855
90856         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90857         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90858         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90859
90860 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90861
90862         * gnulib-tool: Use "test -h", not "test -L", for portability
90863         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90864         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90865         (sed_extract_prog): Issue s commands one-by-one, rather than
90866         using \| in one s command.
90867
90868 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90869
90870         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90871         input error, instead of returning NULL the next time we are called
90872         (and therefore losing track of errno).
90873
90874 2003-09-16  Bruno Haible  <bruno@clisp.org>
90875
90876         * gnulib-tool (func_create_testdir): Warn about duplicated
90877         dependencies.
90878
90879 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90880
90881         * modules/argmatch, modules/fatal, modules/obstack,
90882         modules/xalloc, modules/xgethostname: Sort dependencies by
90883         importance, not alphabetically.
90884
90885 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90886
90887         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90888         fails, so that the caller gets the proper errno.
90889
90890         * lib/readutmp.c (read_utmp): Likewise.
90891         Check for fstat error.  Close stream and free storage
90892         when failing.
90893
90894 2003-09-14  Karl Berry  <karl@gnu.org>
90895
90896         * config/srclist.txt (strdup.c): disable for c89 changes.
90897
90898 2003-09-14  Jim Meyering  <jim@meyering.net>
90899
90900         * lib/getloadavg.c: Correct cpp indentation.
90901         * lib/strdup.c: Likewise.
90902         * lib/vasnprintf.c: Likewise.
90903
90904 2003-09-14  Bruno Haible  <bruno@clisp.org>
90905
90906         * modules/fwriteerror: New file.
90907         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90908
90909 2003-09-14  Bruno Haible  <bruno@clisp.org>
90910
90911         * lib/fwriteerror.h: New file.
90912         * lib/fwriteerror.c: New file.
90913
90914 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90915
90916         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90917         modules/xgethostname, modules/xalloc: Depend on exit.
90918
90919 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90920
90921         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90922
90923         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90924         and AC_MINIX, too, so that their extensions are available.
90925
90926         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90927         This macro has been superseded by gl_BACKUPFILE.
90928
90929         More patches to assume C89 or better.
90930
90931         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90932
90933         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90934         unconditionally.
90935         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90936         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90937         Include <string.h>, <stdlib.h> unconditionally.
90938         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90939         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90940         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90941         headers or for string.h.
90942         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90943         or strtoul.
90944
90945         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90946         headers.
90947         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90948         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90949         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90950         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90951         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90952         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90953         memcpy, memset.
90954         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90955         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90956         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90957         strtol.
90958         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90959         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90960         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90961         strtoul.
90962
90963 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90964
90965         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90966         * lib/obstack.c [!defined _LIBC]: Likewise.
90967         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90968         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90969         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90970
90971         More changes to assume C89 or better.
90972
90973         * lib/error.c (error_tail): Assume vprintf.
90974
90975         * lib/argmatch.c (getenv): Remove decl.
90976         * lib/progreloc.c (get_full_program_name): Define via prototype.
90977         * lib/setenv.c (clearenv): Likewise.
90978         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90979         needed.
90980         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90981         (malloc, memcpy): Remove decls.
90982         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90983         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90984         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90985         (memcpy): Remove macro.
90986         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90987         (__P): Remove.  All uses removed.
90988         (PTR): Remove.  All uses changed to void *.
90989         (CHAR_BIT, NULL): Remove.
90990         (spaces, zeros, memset_space, memset_zero)
90991         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90992         Remove.
90993         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90994         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90995         Define with prototype.
90996         Remove now-unnecessary prototype decl.
90997         (extra_args_spec): Assume ANSI C.  All uses changed.
90998         (extra_args_spec_iso): Remove.
90999         (my_strftime, emacs_strftimeu): Define via prototype.
91000         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91001         unconditionally.
91002         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91003         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91004         (strtoul, strtol): Remove decls.
91005         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91006         LONG_MAX): Remove.
91007         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91008         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91009         (LOCALE_PARAM_PROTO): New macro.
91010         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91011         (INTERNAL (strtol), strtol): Define with a prototype.
91012         (PARAMS): Remove.  All uses removed.
91013         * lib/tempname.c: Include <string.h> unconditionally.
91014         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91015         * lib/xgethostname.c (main): Define with a prototype.
91016         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91017         Include <stdlib.h> unconditionally.
91018         (calloc, malloc, realloc, free): Remove decls.
91019         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91020         Include <stdlib.h> unconditionally.  Sort include file names.
91021         (strtod): Remove.
91022         (xstrtod): Define with a prototype.
91023         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91024         (strtol, strtoul): Remove decls.
91025
91026 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91027
91028         More patches to assume C89 or better.
91029         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91030         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91031         string.h, memchr, STDC_HEADERS.
91032
91033 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91034
91035         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91036         Include <stdlib.h>, <string.h> unconditionally.
91037         Remove now-unnecessary cast to char *.
91038         * lib/strnlen.c: Include <string.h> unconditionally.
91039         * lib/yesno.c (yesno): Define with a prototype.
91040
91041 2003-09-11  Bruno Haible  <bruno@clisp.org>
91042
91043         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91044
91045 2003-09-10  Jim Meyering  <jim@meyering.net>
91046
91047         * lib/error.c: Correct indentation of cpp directives.
91048
91049 2003-09-10  Bruno Haible  <bruno@clisp.org>
91050
91051         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91052         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91053         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91054         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91055         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91056         <stdlib.h> and <string.h> checks.
91057         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91058         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91059
91060 2003-09-10  Bruno Haible  <bruno@clisp.org>
91061
91062         * lib/strcspn.c: Include <string.h> unconditionally.
91063         * lib/strpbrk.c: Include <string.h> unconditionally.
91064         * lib/strstr.c: Include <string.h> unconditionally.
91065         * lib/unicodeio.c: Include <string.h> unconditionally.
91066         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91067         * lib/unsetenv.c: Likewise.
91068         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91069         * lib/yesno.c: Include <stdlib.h> unconditionally.
91070         (rpmatch): Add prototype.
91071
91072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91073
91074         More patches to assume C89 or better.
91075         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91076         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91077         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91078         or for string.h.
91079         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91080         stdlib.h.
91081         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91082         C headers.
91083         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91084         string.h.
91085         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91086         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91087         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91088         or for string.h.
91089         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91090         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91091         C headers.
91092         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91093         memcpy.
91094         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91095         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91096         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91097         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91098         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91099         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91100         string.h, free.
91101         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91102         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91103         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91104         C headers, or for string.h.
91105         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91106         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91107         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91108         headers, memory.h, stdlib.h, string.h, strings.h.
91109         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91110         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91111         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91112         strchr.
91113         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91114         headers, memory.h, string.h.
91115         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91116         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91117         free.
91118         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91119         headers.
91120         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91121         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91122         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91123         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91124         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91125
91126 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91127
91128         More K&R removal.
91129
91130         * lib/acosl.c (main): Use a prototype.
91131         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91132         tanl.c: Likewise.
91133
91134         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91135
91136         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91137         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91138         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91139         with a prototype.
91140         * lib/getopt.c (const): Remove macro.
91141         Include <string.h> unconditionally.
91142         (my_index): Remove; all uses changed to strchr.
91143         (strlen): Remove decl.
91144         (exchange): Remove forward decl; no longer needed.
91145         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91146         Define with prototype.
91147         * lib/getopt1.c (const): Remove macro.
91148         (getopt_long, getopt_long_only, main): Define with prototype.
91149
91150         * lib/getugroups.c: Include <string.h> unconditionally.
91151
91152         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91153         (getusershell, setusershell, endusershell, readname, main):
91154         Define with prototypes.
91155
91156         * lib/group-member.c: Include group-member.h first.
91157         Include <stdlib.h> unconditionally.
91158
91159         * lib/hard-locale.c: Include hard-locale.h first.
91160         Include <stdlib.h>, <string.h> unconditionally.
91161
91162         * lib/hash.c (free, malloc): Remove decls.
91163         Include <stdlib.h> unconditionally.
91164
91165         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91166         (getenv): Do not declare.
91167
91168         * lib/idcache.c: Include <string.h> unconditionally.
91169
91170         * lib/long-options.c: Include long-options.h first, to test interface.
91171         Include <stdlib.h> unconditionally.
91172
91173         * lib/makepath.c: Include makepath.h first, to test interface.
91174         Include <stdlib.h> and <string.h> unconditionally.
91175
91176         * lib/linebuffer.c: Include <stdlib.h>.
91177         (free): Remove decl.
91178
91179         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91180         stddef.h. rpl_malloc returns void *, not char *.
91181         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91182         prototype.
91183
91184         * lib/md5.h: Include <limits.h> unconditionally.
91185         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91186         (__P): Remove; all uses removed.
91187         * lib/md5.c: Include "md5.h" first.
91188         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91189         md5_buffer, md5_process_bytes, md5_process_block):
91190         Define with prototypes.
91191         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91192         * lib/sha.c: Include "sha.h" first.
91193         Include <stdlib.h>, <string.h> unconditionally.
91194
91195         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91196         * lib/memcmp.c (__ptr_t): Likewise.
91197         * lib/memrchr.c (__ptr_t): Likewise.
91198         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91199         Include <string.h> unconditionally.
91200         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91201         * lib/memchr.c: Include <stdlib.h> unconditionally.
91202         * lib/memchr.c (LONG_MAX): Remove.
91203         * lib/memrchr.c (LONG_MAX): Likewise.
91204         * lib/memchr.c (__memchr): Define via a prototype.
91205         * lib/memrchr.c (__memrchr): Likewise.
91206         * lib/memcmp.c (__P): Remove, and remove all uses.
91207         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91208         Remove forward decls; no longer needed.
91209         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91210         Use types required by C89 in prototype.
91211
91212         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91213         * lib/savedir.c: Likewise.
91214         * lib/mkdir.c (free): Remove decl.
91215         * lib/rmdir.c (rmdir): Define with a prototype.
91216         * lib/savedir.c: Include savedir.h first, to test interface.
91217
91218         * lib/mktime.c (STDC_HEADERS): Remove.
91219         Include <stdlib.h>, <string.h> unconditionally.
91220
91221         * lib/modechange.c: Include <stdlib.h> unconditionally.
91222         (malloc): Remove decl.
91223
91224         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91225         (free): Remove decl.
91226
91227         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91228         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91229         (This type really should be intptr_t, but that's a C99ism.)
91230         (_obstack_memcpy): Remove: all uses changed to memcpy.
91231         Include <string.h> unconditionally.
91232         (struct obstack): Assume __STDC__ for types of members
91233         chunkfun, freefun, extra_arg.
91234         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91235         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91236         obstack_begin, obstack_specify_allocation,
91237         obstack_specify_allocation_with_arg, obstack_chunkfun,
91238         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91239         Remove unprototyped decls and the macros that use them.
91240         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91241         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91242         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91243         (defined __STDC__ && __STDC__)]:
91244         Remove nonprototyped code.
91245         Include <stdlib.h> unconditionally.
91246         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91247         _obstack_allocated_p, _obstack_free, obstack_free,
91248         _obstack_memory_used, print_and_abort):
91249         Define using prototypes.
91250         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91251         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91252         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91253         obstack_next_free, obstack_object_size, obstack_room) [0]:
91254         Remove unused, unprototyped code.
91255
91256         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91257
91258         * lib/physmem.c (physmem_total, physmem_available, main): Define
91259         with prototypes.
91260
91261         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91262         (main): Define with a prototype.
91263
91264         * lib/posixver.c (getenv): Remove decl.
91265
91266         * lib/putenv.c (malloc): Returns void *, not char *.
91267         Include <string.h> unconditionally.
91268         (strchr, memcpy, NULL): Do not define.
91269
91270         * lib/readtokens.c: Include readtokens.h first, to test interface.
91271         Include <stdlib.h>, <string.h> unconditionally.
91272         (init_tokenbuffer): Define with a prototype.
91273
91274         * lib/regex.c (PARAMS): Remove.  All uses removed.
91275         All uses of _RE_ARGS removed, too.
91276         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91277         unconditionally.
91278         (bzero): Assume memset exists.
91279         (memcmp, memcpy, NULL): Remove.
91280         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91281         char, or assignments to local vars of type signed char.
91282         (init_syntax_once, PREFIX(extract_number_and_incr),
91283         PREFIX(print_partial_compiled_pattern),
91284         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91285         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91286         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91287         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91288         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91289         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91290         wcs_compile_range, byte_compile_range, truncate_wchar,
91291         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91292         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91293         count_mbs_length, wcs_re_match_2_internal,
91294         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91295         PREFIX(alt_match_null_string_p),
91296         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91297         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91298         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91299         now-unnecessary declaration, if any.
91300         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91301         regcomp, regexec):
91302         Remove now-unnecessary casts among pointer types.
91303         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91304
91305         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91306         (free): Remove decl.
91307
91308         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91309
91310         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91311         (free): Remove decl.
91312
91313         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91314         * lib/xgetcwd.c: Likewise.
91315
91316         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91317         (free): Remove decl.
91318
91319         * lib/strchrnul.c (strchrnul): Define with a prototype.
91320         Fix bug: c_in was not converted to char before searching.
91321
91322         The following changes are not K&R related:
91323
91324         * lib/group-member.h: Include <sys/types.h>, so that this file is
91325         self-contained.
91326         * lib/makepath.h: Likewise.
91327
91328         * lib/getusershell.c (readname, default_index, line_size, readname):
91329         Use size_t, not int, for sizes.
91330         (readname): If the size overflows, report an error instead of
91331         looping forever.
91332
91333 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91334
91335         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91336         libc.
91337
91338 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91339
91340         * README: New section: portability guidelines.
91341
91342 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91343
91344         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91345         C89 spec.
91346
91347 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91348
91349         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91350
91351 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91352
91353         Assume C89 or better; remove K&R cruft.
91354         A few of these changes were first proposed by Derek Robert Price
91355         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91356
91357         * lib/addext.c: Include <string.h> unconditionally.
91358         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91359         Don't declare getenv or malloc.
91360
91361         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91362         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91363         (NULL): Remove.
91364         (find_stack_direction, alloca): Use prototypes.
91365
91366         * lib/atexit.c (atexit): Define using a prototype.
91367
91368         * lib/basename.c, dirname.c, stripslash.c:
91369         Include <string.h> unconditionally.
91370
91371         * lib/bcopy.c: Include <stddef.h>.
91372         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91373
91374         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91375
91376         * lib/error.h (error, error_at_line, error_print_progname)
91377         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91378         * lib/error.c: Include error.h first, to check interface.
91379         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91380         (VA_START): Remove; all uses changeed to va_start.
91381         (exit, strerror): Remove decls.
91382         (error_print_progname): Prototype uncondionally.
91383         Don't include <errno.h>; no longer needed.
91384         (private_strerror): Remove.
91385         (error_tail): Always define.
91386         (error, error_at_line): Assume C89 or better; always use prototypes.
91387         * lib/fatal.c: Include "fatal.h" first, to test interface.
91388         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91389         (VA_START): Remove; all uses changed to va_start.
91390         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91391         this case.
91392         (exit): Remove decl.
91393         (fatal): Prototype unconditionally.  Assume va_start works.
91394         Abort at end, to pacify gcc.
91395
91396         * lib/euidaccess.c (main): Define with a prototype.
91397
91398         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91399
91400         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91401
91402         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91403         prototypes.
91404         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91405         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91406         (getenv): Remove decl.
91407         (fnmatch): Define using a prototype.
91408         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91409         (FCT): Define using a prototype.
91410
91411         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91412
91413         * lib/gethostname.c: Include <stddef.h>.
91414         (gethostname): Define with prototype.  Length is size_t, not int.
91415
91416 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91417
91418         Assume C89 or better; remove K&R cruft.
91419         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91420         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91421         string.h, getenv, malloc.
91422         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91423         headers.
91424         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91425         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91426         do not check for strerror.
91427         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91428         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91429         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91430         do not check for doprnt or vprintf.
91431         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91432         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91433
91434 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91437         getversion.c should have been removed then, but was accidentally
91438         preserved.
91439
91440         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91441         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91442
91443 2003-09-08  Karl Berry  <karl@gnu.org>
91444
91445         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91446                 config, forget about prep.
91447
91448         * config/depcomp, missing: update from automake.
91449
91450 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91451
91452         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91453         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91454
91455 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91456
91457         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91458         copy_tm_result.  Bug reported by Simon Josefsson in
91459         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91460
91461 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91462
91463         * m4/time_r.m4: New file.
91464         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91465         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91466         is. Check for timegm declaration.
91467         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91468         Do not check for gmtime_r.
91469         Replace mktime if __mktime_internal does not exist and if mktime
91470         hasn't been replaced already.
91471
91472 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91473
91474         * lib/time_r.c, lib/time_r.h: New files.
91475
91476         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91477         __localtime_r.
91478         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91479         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91480
91481         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91482         __gmtime_r.
91483         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91484         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91485         Include <time_r.h>.
91486
91487         * lib/timegm.c: Switch to glibc implementation, with the following
91488         changes:
91489         [defined HAVE_CONFIG_H]: Include <config.h>.
91490         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91491         (__mktime_internal) [!defined _LIBC]: New decl.
91492         (__gmtime_r) [!defined _LIBC]: New macro and function.
91493         (timegm): Use a prototype, since gnulib assumes C89.
91494         Do not bother declaring tmp to be const, as it's not really usefu.
91495         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91496         (timegm): Declare only if HAVE_DECL_TIMEGM.
91497
91498 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91499
91500         * MODULES.html.sh (func_all_modules): Add time_r.
91501         * modules/time_r: New file.
91502         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91503         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91504
91505 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91506
91507         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91508         Bug reported by Lute Kamstra in
91509         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91510
91511         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91512         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91513         course with correspondingly smaller numbers for tomorrow and
91514         yesterday.  From Tadayoshi Funaba.  Originally installed into
91515         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91516         coreutils merge?).
91517
91518 2003-08-31  Simon Josefsson  <jas@extundo.com>
91519
91520         * modules/timegm: New file.
91521         * MODULES.html.sh (func_all_modules): Add timegm.
91522
91523 2003-08-31  Simon Josefsson  <jas@extundo.com>
91524
91525         * m4/timegm.m4: New file.
91526
91527 2003-08-31  Simon Josefsson  <jas@extundo.com>
91528
91529         * lib/timegm.h: New file.
91530         * lib/timegm.c: New file.  Based on
91531         wget-1.8.2/src/http.c:mktime_from_utc.
91532
91533 2003-08-31  Karl Berry  <karl@gnu.org>
91534
91535         * lib/argp.h: update from libc.
91536
91537 2003-08-28  Bruno Haible  <bruno@clisp.org>
91538
91539         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91540         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91541         followed by '#define fnmatch fnmatch_posix' gives an error.
91542
91543 2003-08-28  Bruno Haible  <bruno@clisp.org>
91544
91545         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91546         warning on QNX, which defines O_BINARY to 000000.
91547
91548 2003-08-27  Jim Meyering  <jim@meyering.net>
91549
91550         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91551         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91552         would fail after 32.  Reported by Danny Levinson.  Details here:
91553         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91554
91555 2003-08-24  Bruno Haible  <bruno@clisp.org>
91556
91557         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91558         MSVC7 <stdio.h> is included later.
91559
91560 2003-08-22  Simon Josefsson  <jas@extundo.com>
91561
91562         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91563
91564 2003-08-20  Karl Berry  <karl@gnu.org>
91565
91566         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91567
91568 2003-08-20  Bruno Haible  <bruno@clisp.org>
91569
91570         * modules/progname: New file.
91571         * MODULES.html.sh (func_all_modules): Add progname.
91572
91573 2003-08-20  Bruno Haible  <bruno@clisp.org>
91574
91575         * lib/progname.h: New file, from GNU gettext.
91576         * lib/progname.c: New file, from GNU gettext.
91577         * lib/progreloc.c: New file, from GNU gettext.
91578
91579 2003-08-19  Jim Meyering  <jim@meyering.net>
91580
91581         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91582         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91583
91584 2003-08-19  Bruno Haible  <bruno@clisp.org>
91585
91586         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91587         more.
91588
91589 2003-08-19  Bruno Haible  <bruno@clisp.org>
91590
91591         * lib/xstrdup.c: Assume <string.h> exists.
91592
91593 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91594
91595         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91596         in makefile rules.
91597
91598 2003-08-18  Jim Meyering  <jim@meyering.net>
91599
91600         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91601         * m4/lib-ld.m4: Likewise.
91602
91603 2003-08-18  Jim Meyering  <jim@meyering.net>
91604
91605         * lib/setenv.h: Indent nested cpp directive.
91606         * lib/vasnprintf.c: Remove trailing blanks.
91607
91608 2003-08-17  Simon Josefsson  <jas@extundo.com>
91609
91610         * modules/xstrndup: New file.
91611         * MODULES.html.sh (func_all_modules): Add xstrndup.
91612
91613 2003-08-17  Simon Josefsson  <jas@extundo.com>
91614
91615         * modules/argp: Fix autoconf macro name. Add more dependencies.
91616
91617 2003-08-17  Simon Josefsson  <jas@extundo.com>
91618
91619         * m4/xstrndup.m4: New file.
91620
91621 2003-08-17  Simon Josefsson  <jas@extundo.com>
91622
91623         * m4/argp.m4: New file.
91624
91625 2003-08-17  Simon Josefsson  <jas@extundo.com>
91626             Bruno Haible  <bruno@clisp.org>
91627
91628         * lib/xstrndup.h: New file.
91629         * lib/xstrndup.c: New file.
91630
91631 2003-08-17  Bruno Haible  <bruno@clisp.org>
91632
91633         * modules/strndup (Files, Include): Add lib/strndup.h.
91634
91635 2003-08-17  Bruno Haible  <bruno@clisp.org>
91636
91637         * modules/euidaccess (Files): Add lib/euidaccess.h.
91638
91639 2003-08-17  Bruno Haible  <bruno@clisp.org>
91640
91641         * lib/strndup.h: New file.
91642
91643 2003-08-17  Bruno Haible  <bruno@clisp.org>
91644
91645         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91646         like AC_GNU_SOURCE.
91647         * modules/extensions (configure.ac): Comment out the invocation of
91648         gl_USE_SYSTEM_EXTENSIONS.
91649
91650 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91651
91652         Merges from coreutils, etc.
91653         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91654         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91655         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91656         fixing a typo.
91657         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91658         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91659
91660 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91661
91662         Document merge from coreutils.
91663         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91664         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91665         * modules/utime: Add m4/utimes-null.m4.
91666
91667 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91668
91669         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91670         space, undoing this 2003-08-12 change:
91671         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91672
91673 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91674
91675         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91676         strtoul.c from libc, undoing this 2003-08-12 change:
91677         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91678
91679 2003-08-16  Jim Meyering  <jim@meyering.net>
91680
91681         Merges from coreutils.
91682         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91683         prefix.  Adjust cache variables similarly.  Create 500 rather than
91684         just 300 files, to exercise bug on Darwin6.5, too.
91685         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91686         $missing_dir.
91687         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91688         AM_SYS_POSIX_TERMIOS.
91689         Reported by mkc@mathdogs.com.
91690         Also change use of $am_cv_sys_posix_termios
91691         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91692         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91693         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91694         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91695         in /proc/mounts until it finds one with matching device number.  This
91696         is unnecessary when the FILE argument *is* a mount point.  No stat call
91697         is necessary in that case.  So, disable the statvfs-testing code on
91698         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91699         as RedHat bug# 84846.
91700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91701         to 1MB, so as not to render systems with no stack size limit (e.g.,
91702         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91703         Include <unistd.h>.  On some systems,
91704         it is required for the definition of _SC_PAGESIZE.
91705
91706 2003-08-16  Jim Meyering  <jim@meyering.net>
91707
91708         Merge from coreutils.
91709         * lib/xstrtoimax.c: #else #if -> #elif.
91710         * lib/xstrtoumax.c: Likewise.
91711
91712 2003-08-16  Jim Meyering  <jim@meyering.net>
91713
91714         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91715         * m4/utimes.m4: Removed.
91716         * m4/utimes-null.m4: Renamed from utimes.m4.
91717
91718         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91719         to 1MB, so as not to render systems with no stack size limit (e.g.,
91720         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91721         Include <unistd.h>.  On some systems,
91722         it is required for the definition of _SC_PAGESIZE.
91723
91724 2003-08-16  Jim Meyering  <jim@meyering.net>
91725         and Paul Eggert  <eggert@cs.ucla.edu>
91726
91727         Merges from coreutils, etc.
91728
91729         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91730         using the latest version from cvs.  This avoids problems with #line
91731         directives using a vendor (Sun) compiler.
91732         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91733         Don't set GETGROUPS_LIB here; now it's
91734         done via getgroups.m4's wrapper function.
91735         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91736         rather than just in sh-util/configure.in, so that the
91737         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91738         same.
91739         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91740         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91741         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91742         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91743         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91744         Remove code that is now done by the newly-required macros.
91745         Append $(EXEEXT) to DF_PROG.
91746         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91747         Do not invoke or require the following here,
91748         since prereq.m4 or some gnulib .m4 now does this for us:
91749         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91750         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91751         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91752         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91753         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91754         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91755         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91756         AC_FUNC_OBSTACK.
91757         Do not replace the following functions, as this is now the job
91758         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91759         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91760         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91761         atexit getpass, strdup, getpagesize.
91762         Replace 'raise'.
91763         Do not check for the following functions, as this is now the job
91764         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91765         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91766         setregid.
91767         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91768         Check for sys/sysctl.h.
91769         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91770         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91771         of checking for ssize_t ourselves.
91772
91773         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91774         Require every macro that gnulib/modules/* suggests for us.
91775         (jm_PREREQ_ADDEXT): New macro.
91776         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91777         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91778
91779         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91780         (gl_PHYSMEM): Use it.
91781         Also check for `table' function.
91782         Check for new headers and functions.
91783         Add check for sys/sysmp.h.
91784         With suggestions from Kaveh Ghazi.
91785         Ignore headers that are present but cannot be compiled.  This
91786         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91787         C 5.4.
91788
91789 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91790
91791         Document merge from coreutils.
91792         * modules/userspec: Depend on posixver.
91793         * modules/strftime: Depend on tzset.
91794
91795 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91796
91797         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91798         rather than tab, after '#' in shell-script copyright notices.
91799         Suggested by Bruno Haible.
91800
91801 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91802
91803         * config/srclist-update: Use three spaces, rather than tab, after '#'
91804         in shell-script copyright notices.  Suggested by Bruno Haible.
91805         Remove unnecessary parenthesization in regular expression.
91806
91807 2003-08-15  Jim Meyering  <jim@meyering.net>
91808
91809         Merge from coreutils.
91810         * lib/xgethostname.c: Include <stdlib.h>.
91811         (xghostname): Don't exit for anything other than memory-related
91812         failure; just return NULL.
91813         * lib/userspec.c: Include "posixver.h".
91814         (parse_user_spec): Accept `.' as a separator only
91815         in pre-POSIX-200112 mode.
91816         * lib/strtoimax.c: Use #elif rather than #else #if.
91817         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91818         Remove function, now that we can rely on a working tzset function.
91819         [!_LIBC]: Ensure that the required autoconf test has been run.
91820         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91821         Use underlying_strftime for %r.
91822         * lib/sha.c: Merge in some clean-up and optimization changes from
91823         glibc.
91824         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91825         Ensure that it is a multiple of 64.
91826         Rearrange loop exit tests so as to avoid performing an
91827         additional fread after encountering an error or EOF.
91828         * lib/realloc.c: Update copyright date.
91829
91830 2003-08-15  Jim Meyering  <jim@meyering.net>
91831         and Paul Eggert  <eggert@twinsun.com>
91832
91833         Merge from coreutils.
91834         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91835         member but strut utmpx does not.  Needed for AIX 4.3.3.
91836         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91837
91838 2003-08-15  Jim Meyering  <jim@meyering.net>
91839         and Paul Eggert  <eggert@cs.ucla.edu>
91840
91841         Merges from coreutils, etc.
91842         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91843         Require gl_FUNC_TZSET_CLOBBER.
91844         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91845         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91846         members.
91847
91848 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91849
91850         Help the merge from coreutils.
91851         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91852         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91853         * m4/tzset.m4: Use it too.
91854
91855 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91856
91857         * modules/tzset: New file.
91858
91859 2003-08-14  Jim Meyering  <jim@meyering.net>
91860
91861         Merges from coreutils.
91862         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91863         variable names, rather than @FNMATCH_H@.
91864         * modules/alloca: Likewise for $(ALLOCA_H).
91865
91866         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91867         the three copies of the literal target, `fnmatch.h'.
91868         * modules/alloca (alloca.h): Likewise.
91869
91870 2003-08-14  Jim Meyering  <jim@meyering.net>
91871
91872         Merge from coreutils.
91873         * m4/tzset.m4: New file.
91874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91875         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91876         otherwise, AIX 5.1 systems would end up using the latter.
91877         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91878         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91879         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91880         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91881
91882 2003-08-14  Jim Meyering  <jim@meyering.net>
91883
91884         Merge from coreutils.
91885         * lib/obstack.h: Whitespace changes.
91886         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91887         and xcalloc return values.
91888         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91889         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91890         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91891         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91892         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91893         error from mntctl.
91894         Use mntctl's return value to drive the entry-processing loop, since
91895         we can't rely on the value of the vmt_length member in the last
91896         entry.  On some systems doing so could result in exhausting
91897         virtual memory.  Based in part on a patch from Mike Jetzer.
91898
91899 2003-08-14  Jim Meyering  <jim@meyering.net>
91900         and Paul Eggert  <eggert@twinsun.com>
91901
91902         Merges from coreutils, plus other fixes.
91903         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91904         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91905         for credits and details.  Thanks to Kaveh Ghazi for helping
91906         to keep these files in sync.
91907         (ARRAY_SIZE): Define it.
91908         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91909         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91910         (memcasecmp): Don't assume size_t fits in unsigned int.
91911         Remove casts and duplicate code.
91912         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91913         (memcpy): Remove definition.
91914         Merge in some clean-up and optimization changes from glibc.
91915         [BLOCKSIZE]: Move definition to top of file.
91916         Ensure that it is a multiple of 64.
91917         Rearrange loop exit tests so as to avoid performing an
91918         additional fread after encountering an error or EOF.
91919         * lib/md5.h (md5_uintptr): Define.
91920         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91921         return to the initial working directory.  Preserve errno
91922         for caller.
91923         * lib/idcache.c: Include "xalloc.h".
91924         (xmalloc, xrealloc): Remove decls.
91925         (getuser): Remove casts no longer required in C89.
91926         * lib/human.c: Include stdio.h, for sprintf.
91927         * lib/group-member.c: Include "xalloc.h".
91928         (xmalloc, xrealloc): Remove decls.
91929         (get_group_info): Remove casts no longer required in C89.
91930         * lib/getusershell.c (readname): Remove casts no longer required in
91931         C89.
91932         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91933         * lib/getline.c: Whitespace fix, from coreutils.
91934
91935 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91936
91937         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91938         Check for isascii.
91939
91940         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91941         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91942         Undo previous (whitespace-only) change.
91943
91944 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91945
91946         * lib/exclude.c: Include <ctype.h>
91947         (IN_CTYPE_DOMAIN): New macro.
91948         (is_space): New fn.
91949         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91950         and empty lines.
91951
91952         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91953         Undo previous (whitespace-only) change.
91954
91955 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91956
91957         * config/srclist-update: Change update back to the old behavior,
91958         leaving whitespace alone.  Use one 'sed' command rather than a
91959         pipeline.
91960         (fixlicense): Now a variable, not a function.
91961         (remove_trailing_blanks): Remove.
91962         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91963         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91964         Undo previous (whitespace-only) change.
91965
91966 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91967
91968         Merge from coreutils.
91969         * modules/euidaccess: Add lib_SOURCES, include for new
91970         file euidaccess.h
91971
91972 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91973
91974         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91975         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91976         Normalize leading white space and remove trailing white space.
91977
91978         Merge from coreutils
91979         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91980
91981         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91982         0.12.1.  These files are now being upgraded automatically by
91983         ../config/srclist-update.
91984
91985 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91986
91987         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91988         Normalize leading white space and remove trailing white space.
91989         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91990         notice, as per ../config/srclist-update.
91991
91992         Merge from coreutils.
91993         * lib/euidaccess.h: New file.
91994         * lib/euidaccess.c: Include it.
91995         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91996         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91997         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91998
91999 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92000
92001         * config/srclist-update: Add copyright notice.
92002         (remove_id_lines, remove_trailing_blanks): New constants.
92003         (fixfile): Use them to normalize spacing a bit in copied files.
92004         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92005         Normalize leading white space and remove trailing white space.
92006
92007         * config/texinfo.tex: Sync with texinfo.
92008
92009         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92010         strtoul.c from libc, to merge coreutils whitespace changes.
92011
92012         * config/srclist.txt: Get the following m4 files from gettext:
92013         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92014         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92015         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92016         wint_t.m4.
92017
92018 2003-08-12  Karl Berry  <karl@gnu.org>
92019
92020         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92021         been made.
92022
92023 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92024
92025         * modules/gnu-source, m4/gnu-source.m4:
92026         Remove; we're assuming Autoconf 2.54 or later now.
92027         Suggested by Bruno Haible.
92028         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92029
92030 2003-08-11  Bruno Haible  <bruno@clisp.org>
92031
92032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92033
92034 2003-08-11  Bruno Haible  <bruno@clisp.org>
92035
92036         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92037         (vasnprintf): Use it instead of wcslen.
92038
92039 2003-08-11  Bruno Haible  <bruno@clisp.org>
92040
92041         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92042         value to ensure that _Bool promotes to int. Use #define for _Bool when
92043         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92044
92045 2003-08-10  Karl Berry  <karl@gnu.org>
92046
92047         * lib/regex.h: update from libc (whitespace fix).
92048
92049 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92050
92051         Merge some files from coreutils.  These changes were
92052         originally made by Jim Meyering.
92053         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92054         many older Unixes require this.
92055         * lib/alloca.c (alloca): Remove cast to argument of free;
92056         no longer needed in C89.
92057         * lib/alloca_.h, regex.h: Fix white space to match
92058         what GNU indent does.
92059
92060 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92061
92062         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92063         apparently Emacs's Unicode mode got confused before my 2003-08-05
92064         checkin.
92065
92066 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92067
92068         * m4/extensions.m4: New file.
92069         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92070         Require gl_USE_SYSTEM_EXTENSIONS.
92071         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92072         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92073
92074 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92075
92076         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92077         * modules/extensions, modules/gnu-source: New files.
92078         * modules/timespec, modules/unlocked-io: Depend on extensions.
92079
92080 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92081
92082         * modules/restrict: New file.
92083         * MODULES.html.sh (func_all_modules): Add restrict.
92084         * modules/regex: Depend on restrict.
92085
92086 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92087
92088         * m4/restrict.m4: New file.
92089         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92090
92091 2003-08-07  Bruno Haible  <bruno@clisp.org>
92092
92093         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92094         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92095
92096 2003-08-07  Bruno Haible  <bruno@clisp.org>
92097
92098         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92099         makes the module 'getndelim2' compatible with the module 'getline'.
92100
92101 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92102
92103         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92104         byte with "\201" to avoid glitches when editing that source file
92105         with multi-gnome-terminal.
92106
92107 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92108
92109         * lib/bumpalloc.h: Remove.
92110
92111 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92112
92113         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92114         * modules/bumpalloc: Remove.
92115
92116 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92117
92118         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92119         GNU coding style.
92120
92121         Merge from coreutils.
92122         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92123         1. From glibc.
92124         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92125         from Karl Berry, implemented by Jim Meyering.
92126         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92127         from Dmitry V. Levin.
92128         Remove anachronistic cast of xrealloc.
92129         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92130         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92131         type. Otherwise, it wouldn't compile with at least /bin/cc on
92132         ymp-cray-unicos9.0.2.X.
92133         Combine two mostly-identical uses of alloca into one.
92134         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92135
92136 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92137
92138         [From Emacs.]
92139
92140         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92141         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92142         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92143         obsolete NLIST_NAME_UNION.
92144         [__GNU__]: Undef BSD and FSCALE.
92145         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92146
92147 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92148
92149         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92150         an enum type, so that it's guaranteed to promote to int.  See:
92151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92152
92153 2003-08-03  Karl Berry  <karl@gnu.org>
92154
92155         * config/depcomp: update from automake.
92156
92157 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92158
92159         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92160         (strerror): Don't assume that a printable int fits in 14 bytes.
92161
92162 2003-07-31  Bruno Haible  <bruno@clisp.org>
92163
92164         * modules/getpass-gnu: New file.
92165         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92166
92167 2003-07-31  Bruno Haible  <bruno@clisp.org>
92168
92169         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92170
92171 2003-07-24  Karl Berry  <karl@gnu.org>
92172
92173         * config/missing: update from automake.
92174
92175 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92176             Bruno Haible  <bruno@clisp.org>
92177
92178         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92179         * lib/getline.c (getline, getdelim): Likewise.
92180         Remove _GNU_SOURCE define; now it's defined in config.h through
92181         m4/getline.m4.
92182
92183 2003-07-23  Karl Berry  <karl@gnu.org>
92184
92185         * config/config.sub: update from prep.
92186
92187 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92188
92189         * modules/xalloc (Depends-on): Add exitfail.
92190         * modules/xmemcoll: Likewise.
92191
92192 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92193
92194         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92195         over-parenthesization in macros.
92196
92197         Sync with coreutils.
92198
92199         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92200         required by C99.
92201
92202         Use `exit_failure' for xalloc and xmemcoll instead of their own
92203         private exit-failure variables.
92204         * lib/xalloc.h (xalloc_exit_failure): Remove.
92205         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92206         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92207         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92208         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92209         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92210
92211 2003-07-20  Jim Meyering  <jim@meyering.net>
92212
92213         * modules/closeout (Depends-on): Add exitfail.
92214         Suggestion from Bruno Haible.
92215
92216 2003-07-19  Karl Berry  <karl@gnu.org>
92217
92218         * config/config.sub: update from prep.
92219
92220 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92221
92222         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92223         Remove.
92224         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92225         to test that it can stand by itself.  Include "exitfail.h".
92226         Clients should set exit_failure instead.
92227         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92228
92229 2003-07-18  Bruno Haible  <bruno@clisp.org>
92230
92231         * modules/getndelim2: New file.
92232         * modules/getline: Share files with module getndelim2.
92233         * modules/getnline: Depend on getndelim2 instead of sharing files with
92234         it. Add getnline.c to lib_SOURCES.
92235         * MODULES.html.sh (func_all_modules): Add getndelim2.
92236
92237 2003-07-18  Bruno Haible  <bruno@clisp.org>
92238
92239         * m4/getndelim2.m4: New file.
92240         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92241         invoke gl_PREREQ_GETNDELIM2.
92242         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92243         gl_PREREQ_GETNDELIM2.
92244         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92245         gl_GETNDELIM2.
92246
92247 2003-07-18  Bruno Haible  <bruno@clisp.org>
92248
92249         * lib/getndelim2.h: New file.
92250         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92251         getndelim2.h.
92252         (getndelim2): Make non-static. Change return type to ssize_t.
92253         * lib/getline.h: Change argument names.
92254         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92255         * lib/getnline.c: Include getndelim2.h.
92256
92257 2003-07-18  Andreas Schwab  <schwab@suse.de>
92258
92259         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92260
92261 2003-07-17  Karl Berry  <karl@gnu.org>
92262
92263         * config/config.sub: update from prep.
92264
92265 2003-07-17  Bruno Haible  <bruno@clisp.org>
92266
92267         * modules/getnline: New file.
92268         * modules/getline: Add lib/getndelim2.c to source file list.
92269         * MODULES.html.sh (func_all_modules): Add getnline.
92270
92271 2003-07-17  Bruno Haible  <bruno@clisp.org>
92272
92273         * m4/getnline.m4: New file.
92274
92275 2003-07-17  Bruno Haible  <bruno@clisp.org>
92276
92277         * m4/Makefile.am.in: Remove file.
92278         * m4/Makefile.am: Remove file.
92279         * m4/Makefile.in: Remove file.
92280
92281 2003-07-17  Bruno Haible  <bruno@clisp.org>
92282
92283         * lib/getnline.h: New file.
92284         * lib/getnline.c: New file.
92285         * lib/getndelim2.c: New file, extracted from getline.c.
92286         (getndelim2): Renamed from getdelim2, with added nmax argument.
92287         * lib/getline.c: Include getndelim2.c.
92288         (getdelim2): Moved out to getndelim2.c.
92289         (getline, getdelim): Update.
92290
92291 2003-07-17  Bruno Haible  <bruno@clisp.org>
92292
92293         * lib/Makefile.am: Remove file.
92294         * lib/Makefile.in: Remove file.
92295
92296 2003-07-17  Bruno Haible  <bruno@clisp.org>
92297
92298         * configure.in: Remove file.
92299         * Makefile.in: Remove file.
92300
92301 2003-07-17  Bruno Haible  <bruno@clisp.org>
92302
92303         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92304
92305 2003-07-16  Karl Berry  <karl@gnu.org>
92306
92307         * config/srclist-update: was running fixlicense twice, which caused
92308                 texinfo.tex to be nullified for some reason.  Simplify,
92309                 $gplsrc is no longer needed as far as I can see?
92310
92311 2003-07-16  Jim Meyering  <jim@meyering.net>
92312
92313         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92314
92315 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92316
92317         * config/srclist.txt: Get the following files from gettext-runtime/intl
92318         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92319         ref-del.sin.  From Bruno Haible.
92320         * config/srclist-update (fixfile): Change grep pattern again, since the
92321         previous fix didn't work (there was another trailing $).  Use
92322         '[$]' to escape the $s.
92323
92324 2003-07-15  Karl Berry  <karl@gnu.org>
92325
92326         * lib/vasnprintf.c: update from gettext.
92327
92328 2003-07-15  Karl Berry  <karl@gnu.org>
92329
92330         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92331         gets expanded when surrounded by '$'.
92332
92333 2003-07-15  Jim Meyering  <jim@meyering.net>
92334
92335         * modules/save-cwd: Don't depend on error.  From Derek Price.
92336
92337 2003-07-15  Jim Meyering  <jim@meyering.net>
92338
92339         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92340
92341 2003-07-14  Simon Josefsson  <jas@extundo.com>
92342
92343         * modules/mempcpy: New file.
92344         * MODULES.html.sh (func_all_modules): Add mempcpy.
92345
92346 2003-07-14  Simon Josefsson  <jas@extundo.com>
92347
92348         * m4/mempcpy.m4: New file.
92349
92350 2003-07-14  Simon Josefsson  <jas@extundo.com>
92351
92352         * lib/mempcpy.h: New file.
92353         * lib/mempcpy.c: New file.
92354
92355 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92356
92357         * modules/getdate, modules/posixtm: Depend on mktime.
92358
92359 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92360
92361         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92362         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92363         unicodeio.c, unicodeio.h, unlocked-io.h:
92364         Switch from LGPL to GPL.
92365
92366 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92367
92368         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92369         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92370         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92371         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92372         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92373         updated automatically by ../config/srclist-update.  This changes
92374         their license from LPGL to GPL.
92375
92376 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92377
92378         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92379         assumed to refer to the root of the most recent stable gettext version.
92380         * config/srclistvars.sh: Add defaults for eggert.
92381         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92382         Match "This program" as well as "The program".  This is needed
92383         for gettext.
92384
92385 2003-07-14  Jim Meyering  <jim@meyering.net>
92386
92387         Don't emit diagnostics.  Let callers do that.
92388         * lib/save-cwd.c: Don't include "error.h".
92389         (save_cwd): Don't call error.  Ensure that errno is valid
92390         when returning nonzero.
92391
92392         * lib/save-cwd.h (restore_cwd): Update prototype.
92393         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92394         Simplify.  Don't call error upon failure.  Let callers do that.
92395         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92396         when auditing is enabled.  But don't bother updating the #if.
92397
92398 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92399
92400         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92401         it breaks C++ compilation.
92402         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92403
92404 2003-07-10  Simon Josefsson  <jas@extundo.com>
92405
92406         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92407
92408 2003-07-10  Jim Meyering  <jim@meyering.net>
92409
92410         * m4/clock_time.m4: Remove trailing blank.
92411         * m4/intmax_t.m4: Likewise.
92412
92413 2003-07-10  Jim Meyering  <jim@meyering.net>
92414
92415         * lib/vasnprintf.c: Remove trailing blanks.
92416         Make cpp indentation consistent.
92417
92418 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92419
92420         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92421         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92422         Switch from LGPL to GPL.
92423
92424 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92425
92426         * config/srclist.txt: Sort sublists.  Add
92427         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92428         that differ from gnulib for one reason or another; we'd like this list
92429         to be smaller but for now let's document what we have.
92430
92431 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92432
92433         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92434         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92435         and sweeter "eval x=$x".
92436         * config/srclist.txt: Get lib/argp* from glibc.
92437
92438 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92439
92440         * lib/mktime.c: Fix some boundary cases and remove need for floating
92441         point.
92442
92443         Issue a compile-time diagnostic if time_t is floating point, or if
92444         two's complement arithmetic is not in effect, or if arithmetic
92445         right shift does not propagate the sign.  These assumptions were
92446         all in the original code but they weren't checked.
92447
92448         (TIME_T_MIDPOINT, verify): New macros.
92449         (__isleap): Remove; it has integer overflow problems.
92450         (leapyear): New function, without those problems.
92451         (ydhms_tm_diff): Remove; splitting into two parts.
92452         (ydhms_diff): New function, containing the arithmetic part of
92453         the old ydhms_tm_diff function.  Issue a compile-time
92454         diagnostic if we are not using C99 integer division.
92455         Avoid casts when possible.
92456         (guess_time_tm): New function, containing the checking part of
92457         the old ydhms_tm_diff function.  Return the new value, rather than
92458         the difference between it and the old.  Accept a new argument T
92459         so that *T specifies the old value.  Check for overflow in the result.
92460
92461         (__mktime_internal): Use a time_t offset, not a long int offset.
92462         This undoes the 2003-06-04 change, which is no longer needed now
92463         that we have better overflow checking.
92464         (localtime_offset): Likewise.
92465
92466         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92467         and long are 64-bit but int is only 32-bit.
92468         (ydhms_diff): Use long int to store year1 and yday1.
92469         Issue a compile-time diagnostic if long int is not wide enough.
92470
92471         (__mktime_internal): Use long int to store adjusted year and yday.
92472         Use plain C rather than preprocessor commands, if that doesn't
92473         affect efficiency.
92474         Check for overflow (and try to repair) after each probe
92475         rather than checking only at the very end.  This avoids some bugs
92476         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92477         does not equal GMT offset at maximum time).
92478         Use integer to check for overflow rather than floating point; this
92479         is more portable to non-IEEE hosts, and is a tad faster.
92480         When we detect that we are oscillating between two values,
92481         don't check whether tm_isdst has the requested value, since
92482         we already know the answer.  When tm_isdst has the wrong value,
92483         use a different heuristic to find the right one, based on the
92484         extreme values actually observed in practice in tz2003a,
92485         rather than the (overly optimistic) "previous 3 calendar quarters".
92486
92487         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92488         "T const" to accommodate glibc style.
92489         (check_result): Use less-confusing report format.  "long" -> "long int.
92490         (main): Likewise.
92491         Don't loop if the iteration overflows time_t.
92492         Allow a negative step in the iteration.
92493
92494 2003-07-06  Karl Berry  <karl@gnu.org>
92495
92496         * config/depcomp: update from automake.
92497         * config/config.sub: update from prep.
92498
92499 2003-07-03  Karl Berry  <karl@gnu.org>
92500
92501         * config/config.guess: update from prep.
92502
92503 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92504
92505         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92506         xreadlink.c now includes it unconditionally.
92507
92508 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92509
92510         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92511         having it depend on HAVE_SYS_TYPES_H.
92512
92513 2003-07-01  Bruno Haible  <bruno@clisp.org>
92514
92515         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92516         <sys/types.h> should be sufficient.
92517         Reported by Paul Eggert.
92518
92519 2003-06-26  Karl Berry  <karl@gnu.org>
92520
92521         * config/depcomp: update from automake.
92522
92523 2003-06-26  Bruno Haible  <bruno@clisp.org>
92524
92525         * modules/human: Depend on module stdbool.
92526
92527 2003-06-25  Bruno Haible  <bruno@clisp.org>
92528
92529         * modules/readlink: New file.
92530         * modules/xreadlink: Depend on it.
92531         * MODULES.html.sh (func_all_modules): Add readlink.
92532
92533 2003-06-25  Bruno Haible  <bruno@clisp.org>
92534
92535         * m4/readlink.m4: New file.
92536
92537 2003-06-25  Bruno Haible  <bruno@clisp.org>
92538
92539         * lib/readlink.c: New file.
92540
92541 2003-06-22  Karl Berry  <karl@gnu.org>
92542
92543         * config/srclist.txt: update mkinstalldirs from automake.
92544         * config/mkinstalldirs: update.
92545
92546 2003-06-22  Bruno Haible  <bruno@clisp.org>
92547
92548         Portability to mingw32.
92549         * m4/ssize_t.m4: New file, from GNU gettext.
92550         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92551         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92552
92553 2003-06-22  Bruno Haible  <bruno@clisp.org>
92554
92555         * modules/safe-read: Add m4/ssize_t.m4.
92556         * modules/xreadlink: Add m4/ssize_t.m4.
92557
92558 2003-06-20  Bruno Haible  <bruno@clisp.org>
92559
92560         Assume C89, so PARAMS isn't needed.
92561         * lib/unicodeio.h (PARAMS): Remove.
92562         * lib/unicodeio.c: Don't use PARAMS.
92563
92564 2003-06-18  Karl Berry  <karl@gnu.org>
92565
92566         * config/config.{guess,sub}: update from prep.
92567
92568 2003-06-18  Jim Meyering  <jim@meyering.net>
92569
92570         Merge changes from coreutils.
92571         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92572         Remove explicit declarations of xmalloc and realloc.
92573         Include xalloc.h.
92574         (read_utmp): Remove anachronistic cast of xmalloc.
92575
92576 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92577
92578         Assume C89, so PARAMS isn't needed.
92579         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92580         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92581         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92582         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92583         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92584         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92585         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92586         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92587         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92588         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92589         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92590         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92591         no longer needed. Anyway, config.h should always be included before any
92592         other file.
92593
92594 2003-06-11  Simon Josefsson  <jas@extundo.com>
92595
92596         * modules/sysexits: New file.
92597         * MODULES.html.sh (func_all_modules): Add sysexits.
92598
92599 2003-06-11  Simon Josefsson  <jas@extundo.com>
92600
92601         * lib/sysexit_.h: New file.
92602
92603 2003-06-11  Derek Price  <derek@ximbiot.com>
92604
92605         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92606         necessary.
92607
92608 2003-06-11  Bruno Haible  <bruno@clisp.org>
92609
92610         * m4/sysexits.m4: New file.
92611
92612 2003-06-10  Simon Josefsson  <jas@extundo.com>
92613
92614         * lib/argp.h: New file, from glibc.
92615         * lib/argp-ba.c: New file, from glibc.
92616         * lib/argp-eexst.c: New file, from glibc.
92617         * lib/argp-fmtstream.c: New file, from glibc.
92618         * lib/argp-fmtstream.h: New file, from glibc.
92619         * lib/argp-fs-xinl.c: New file, from glibc.
92620         * lib/argp-help.c: New file, from glibc.
92621         * lib/argp-namefrob.h: New file, from glibc.
92622         * lib/argp-parse.c: New file, from glibc.
92623         * lib/argp-pv.c: New file, from glibc.
92624         * lib/argp-pvh.c: New file, from glibc.
92625         * lib/argp-xinl.c: New file, from glibc.
92626
92627 2003-06-10  Simon Josefsson  <jas@extundo.com>
92628
92629         * modules/strchrnul: New file.
92630
92631 2003-06-10  Simon Josefsson  <jas@extundo.com>
92632
92633         * modules/argp: New file.
92634
92635 2003-06-10  Simon Josefsson  <jas@extundo.com>
92636
92637         * m4/strchrnul.m4: New file.
92638
92639 2003-06-10  Simon Josefsson  <jas@extundo.com>
92640
92641         * lib/strchrnul.h: New file.
92642         * lib/strchrnul.c: New file.
92643
92644 2003-06-10  Bruno Haible  <bruno@clisp.org>
92645
92646         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92647
92648 2003-06-07  Karl Berry  <karl@gnu.org>
92649
92650         * config/config.{guess,sub}: update from prep.
92651
92652 2003-06-07  Jim Meyering  <jim@meyering.net>
92653
92654         * modules/strtod: Use $(...) notation, not @...@ for
92655         AC_REPLACE'd variables.
92656         * modules/localcharset: Likewise.
92657
92658 2003-06-07  Jim Meyering  <jim@meyering.net>
92659
92660         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92661         in place of my name in the copyright comment.
92662         Remove definition and uses of __P.
92663
92664         From coreutils.
92665         * lib/stat.c: Don't declare xmalloc explicitly.
92666         Instead, include "xalloc.h".
92667         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92668         xrealloc, and xcalloc return values.
92669         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92670         Improve comment.
92671         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92672
92673 2003-06-07  Bruno Haible  <bruno@clisp.org>
92674
92675         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92676         avoid AC_CONFIG_LINKS.
92677         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92678         fnmatch.h, to avoid AC_CONFIG_LINKS.
92679         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92680
92681 2003-06-07  Bruno Haible  <bruno@clisp.org>
92682
92683         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92684         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92685         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92686         directory.
92687         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92688         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92689         directory.
92690
92691 2003-06-06  Jim Meyering  <jim@meyering.net>
92692
92693         Merge from coreutils.
92694         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92695         Consolidate declarations and initializations of *_base* locals.
92696
92697         Merge from coreutils.
92698         This avoids a core dump on systems without GNU putenv,
92699         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92700         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92701         (unsetenv): New static function, from GNU libc.
92702         (rpl_putenv): Use it.
92703
92704         * lib/modechange.c: Remove trailing blanks.
92705
92706         Merge from coreutils.
92707         * lib/fsusage.c: Remove declaration of statfs.
92708         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92709
92710         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92711
92712 2003-06-06  Jim Meyering  <jim@meyering.net>
92713
92714         * lib/stdbool_.h: Renamed from stdbool.h.in.
92715
92716 2003-06-06  Jim Meyering  <jim@meyering.net>
92717             Bruno Haible  <bruno@clisp.org>
92718
92719         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92720         Adjust Makefile.am snippet not to redirect directly to target.
92721         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92722
92723 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92724
92725         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92726         mismatch, look in future quarters as well as past.  This fixes a
92727         bug when processing fall-backwards gaps immediately after a long
92728         period of daylight-saving time.
92729
92730         * lib/mktime.c: Assume freestanding C89 or better.
92731         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92732         (__P): Remove; not used.
92733         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92734         (mktime, not_equal_tm, print_tm, check_result,
92735         main): Use prototypes.  Use const * where appropriate.
92736         (main): Fix typo in testing code that uncovered by above changes.
92737         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92738
92739 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92740
92741         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92742         locale.h, localeconv.  This merges changes from coreutils.
92743
92744         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92745         It can be removed after the next Autoconf is released.
92746         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92747         needed.
92748
92749 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/mktime.c: Fix Debian bug 177940
92752         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92753         (localtime_offset): Now long int, not time_t, because we want it
92754         to be guaranteed to be signed.  All uses changed.
92755         (__mktime_internal): If overflow would occur when adding offset,
92756         don't add it.
92757
92758         Merge 'human' changes from coreutils.  Rewrite to support
92759         locale-specific notations like thousands separators.
92760         * lib/human.c: Simplify authorship notice.
92761         Include human.h immediately after config.h.
92762         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92763         <limits.h>: Do not include, since human.h does.
92764         (SIZE_MAX, UINTMAX_MAX): New macros.
92765         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92766         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92767         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92768         (power_letter): Renamed from suffixes.
92769         (generate_suffix_backwards): Remove.
92770         (adjust_value): Now takes int style (because of human.h changes)
92771         and long double value (for greater precision on some platforms).
92772         (group_number): New function.
92773         (human_readable): Use it.  Use integer options, not enum.
92774         Put the options before the sizes in the arg list.
92775         Support all the new options.
92776         The old human_readable function has been removed;
92777         use inttostr.h instead.
92778         (human_readable, default_block_size, humblock):
92779         Use uintmax_t, not int, for block sizes.
92780         (human_readable_inexact, block_size_types): Remove.
92781         (block_size_opts): New constant.
92782         (human_options): Renamed from human_block_size, with new signature
92783         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92784         * lib/human.h: Add copyright and authorship notice.
92785         Include <limits.h> and <stdbool.h> unconditionally.
92786         (PARAMS): Remove.  All uses removed.
92787         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92788         (enum human_inexact_style): Remove tag; now a nameless enum.
92789         (human_floor, human_ceiling, human_round_to_even): Now have
92790         values 2, 0, 1 rather than -1, 1, 0.
92791         (human_group_digits, human_suppress_point_zero, human_autoscale,
92792         human_base_1024, human_SI, human_B): New constants.
92793         (human_readable_inexact, human_block_size): Remove.
92794         (human_readable): Size args are now uintmax_t, not int.
92795         (human_options): New decl.
92796
92797         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92798         unnecessary now that we assume C89 or better.  This change
92799         imported from coreutils.
92800
92801         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92802         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92803         in the 2003-05-30 sync from glibc.
92804
92805         .h files should stand alone, but we shouldn't include <sys/types.h>
92806         if we can get away with just <stddef.h>.
92807
92808         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92809         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92810         rather than <sys/types.h>, as we merely need size_t.
92811         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92812         to get size_t.
92813         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92814         Include <stdio.h>, to get FILE.
92815         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92816         memcasecmp.h has included <stddef.h> and all we need is size_t.
92817         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92818         our interface, instead of including <sys/types.h>
92819
92820 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92821
92822         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92823         now, as glibc mktime is buggy on non-glibc systems.
92824
92825 2003-06-03  Karl Berry  <karl@gnu.org>
92826
92827         * config/config.sub: update from prep.
92828
92829 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92830
92831         [from coreutils]
92832         Fix some minor time-related bugs with POSIX time arguments.
92833         Some valid time stamps were being rejected (notably -1, and
92834         time stamps before 1900 on 64-bit hosts).  And some invalid
92835         time stamps were being accepted, e.g. September 31.
92836
92837         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92838         that we can return (time_t) -1 successfully.
92839         * lib/posixtm.c: Likewise.
92840         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92841         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92842         (t): Remove static var.
92843         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92844         of static var.  All uses changed.
92845         (year): Do not reject years before 1900; they can occur with
92846         64-bit time_t.
92847         (posix_time_parse): Do not check for out-of-range components;
92848         that is now the caller's responsibility, since our checks were
92849         only approximations.
92850         (posixtime): Use mktime to check for out-of-range components,
92851         since it knows them exactly.
92852         If mktime returns (time_t) -1, check whether an error actually occurred
92853         by invoking localtime on -1.
92854         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92855         posixtime failures better.
92856         Improve the test data (in comments only).
92857
92858 2003-06-02  Karl Berry  <karl@gnu.org>
92859
92860         * config/mkinstalldirs (version): new variable.
92861         (--version): new option.
92862         (usage): improve message.
92863
92864 2003-05-30  Karl Berry  <karl@gnu.org>
92865
92866         * lib/mktime.c: update from libc.
92867
92868 2003-05-30  Bruno Haible  <bruno@clisp.org>
92869
92870         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92871         * config/config.rpath: Upgrade to gettext-0.12.1.
92872
92873 2003-05-30  Bruno Haible  <bruno@clisp.org>
92874
92875         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92876         * m4/nls.m4: New file, from gettext-0.12.1.
92877         * m4/po.m4: New file, from gettext-0.12.1.
92878         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92879
92880 2003-05-30  Bruno Haible  <bruno@clisp.org>
92881
92882         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92883         * lib/localcharset.h: Likewise.
92884         * lib/localcharset.c: Likewise.
92885
92886 2003-05-29  Karl Berry  <karl@gnu.org>
92887
92888         * config/config.rpath: update from gettext.
92889
92890 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92891
92892         Assume the headers required for C89 freestanding compilers.
92893         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92894         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92895         * m4/human.m4 (gl_HUMAN): Likewise.
92896         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92897         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92898         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92899         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92900         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92901         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92902
92903 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92904
92905         Assume the headers required for C89 freestanding compilers.
92906         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92907         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92908         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92909         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92910         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92911         define, since <limits.h> is guaranteed to do that.
92912         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92913         * lib/exclude.c: Include <stdbool.h> unconditionally.
92914         * lib/tempname.c: Include <stddef.h> unconditionally.
92915         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92916         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92917         <stddef.h> does that.
92918         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92919         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92920         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92921         needed.
92922         * lib/xstrtol.c: Likewise.
92923         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92924         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92925
92926         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92927         warnings on some platforms.
92928
92929         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92930         arbitrarily.
92931
92932 2003-05-26  Jim Meyering  <jim@meyering.net>
92933
92934         Merge in a change from coreutils:
92935         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92936         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92937         that condition, rather than `-1' which is slightly misleading.
92938         Change the name of the cache variable to have the gl_ prefix.
92939         Prompted by a patch from Richard Dawe for DJGPP.
92940
92941 2003-05-24  Karl Berry  <karl@gnu.org>
92942
92943         * config/config.guess: update from prep.
92944
92945 2003-05-22  Karl Berry  <karl@gnu.org>
92946
92947         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92948
92949 2003-05-20  Karl Berry  <karl@gnu.org>
92950
92951         * config/config.guess: update from prep.
92952
92953 2003-05-18  Karl Berry  <karl@gnu.org>
92954
92955         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92956         might actually be set by the user.
92957
92958         * config/depcomp, install-sh, mdate-sh: update from automake.
92959
92960 2003-05-17  Bruno Haible  <bruno@clisp.org>
92961
92962         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92963         invalid expansion for AC_EGREP_CPP.
92964         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92965         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92966         Suggested by Akim Demaille <akim@epita.fr> in
92967         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92968
92969 2003-05-12  Jim Meyering  <jim@meyering.net>
92970
92971         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92972         the space-padded-by-default conversion specifiers, %e, %k, %l.
92973
92974 2003-05-12  Bruno Haible  <bruno@clisp.org>
92975
92976         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92977         the string is longer than 4 KB.
92978
92979 2003-05-11  Karl Berry  <karl@gnu.org>
92980
92981         * config/config.{guess,sub}: update from prep.
92982
92983 2003-05-09  Bruno Haible  <bruno@clisp.org>
92984
92985         * modules/error: Add m4/strerror_r.m4 to file list.
92986
92987 2003-05-03  Bruno Haible  <bruno@clisp.org>
92988
92989         Upgrade to Unicode-4.0.
92990         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92991         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92992         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92993         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92994         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92995         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92996         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92997         Change width of U+E0100..U+E01EF from 1 to 0.
92998
92999 2003-04-25  Jim Meyering  <jim@meyering.net>
93000
93001         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93002         of type size_t, not int.
93003
93004 2003-04-25  Bruno Haible  <bruno@clisp.org>
93005
93006         * lib/copy-file.c: Include <stddef.h>, for size_t.
93007
93008 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93009
93010         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93011         code which expansion is under static control.  Patch imported from
93012         Akim Demaille's patch to Bison; see
93013         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93014
93015 2003-04-14  Bruno Haible  <bruno@clisp.org>
93016
93017         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93018
93019 2003-04-11  Jim Meyering  <jim@meyering.net>
93020
93021         Merge changes from Coreutils.
93022
93023         2003-03-22  Jim Meyering  <jim@meyering.net>
93024
93025         * lib/strftime.c (widen): Cast alloca return value to proper type.
93026
93027         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93028
93029         From GNU libc.
93030         * lib/strftime.c (my_strftime): Handle very large width
93031         specifications for numeric values correctly.  Improve checks for
93032         overflow.
93033
93034         2003-01-19  Jim Meyering  <jim@meyering.net>
93035
93036         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93037         definitions.
93038         (nl_get_alt_digit) [! defined my_strftime]: Define.
93039         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93040         _nl_get_alt_digit and _nl_get_walt_digit.
93041
93042         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93043         libc. These changes have no effect outside of _LIBC.
93044
93045 2003-04-10  Bruno Haible  <bruno@clisp.org>
93046
93047         * modules/findprog: New file.
93048         * MODULES.html.sh (func_all_modules): Add it.
93049
93050 2003-04-10  Bruno Haible  <bruno@clisp.org>
93051
93052         * m4/findprog.m4: New file.
93053         * m4/eaccess.m4: New file.
93054
93055 2003-04-10  Bruno Haible  <bruno@clisp.org>
93056
93057         * lib/findprog.h: New file, from GNU gettext.
93058         * lib/findprog.c: New file, from GNU gettext.
93059
93060 2003-04-05  Jim Meyering  <jim@meyering.net>
93061
93062         Merge changes from Coreutils.
93063
93064         * lib/exclude.h (PARAMS): Remove definition and uses.
93065         * lib/exclude.c: Remove uses of `PARAMS'.
93066
93067         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93068         Add test-cases for DOS filenames. Declare program_name.
93069         (main): Set up program_name.  Patch by Rich Dawe.
93070
93071         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93072         error from mntctl.
93073         Use mntctl's return value to drive the entry-processing loop, since
93074         we can't rely on the value of the vmt_length member in the last
93075         entry.  On some systems doing so could result in exhausting
93076         virtual memory.  Based in part on a patch from Mike Jetzer.
93077
93078 2003-04-04  Bruno Haible  <bruno@clisp.org>
93079
93080         * modules/linebreak: New file.
93081         * MODULES.html.sh (func_all_modules): Add it.
93082
93083 2003-04-04  Bruno Haible  <bruno@clisp.org>
93084
93085         * m4/linebreak.m4: New file.
93086
93087 2003-04-04  Bruno Haible  <bruno@clisp.org>
93088
93089         * lib/linebreak.h: New file, from GNU gettext.
93090         * lib/linebreak.c: New file, from GNU gettext with slight
93091         modifications.
93092         * lib/lbrkprop.h: New file, from GNU gettext.
93093
93094 2003-04-03  Bruno Haible  <bruno@clisp.org>
93095
93096         * modules/utf8-ucs4: New file.
93097         * modules/utf16-ucs4: New file.
93098         * modules/ucs4-utf8: New file.
93099         * modules/ucs4-utf16: New file.
93100         * MODULES.html.sh (func_all_modules): Add them.
93101
93102 2003-04-03  Bruno Haible  <bruno@clisp.org>
93103
93104         * m4/utf-ucs4.m4: New file.
93105         * m4/ucs4-utf.m4: New file.
93106
93107 2003-04-03  Bruno Haible  <bruno@clisp.org>
93108
93109         * lib/utf8-ucs4.h: New file, from GNU gettext.
93110         * lib/utf16-ucs4.h: New file, from GNU gettext.
93111         * lib/ucs4-utf8.h: New file, from GNU gettext.
93112         * lib/ucs4-utf16.h: New file, from GNU gettext.
93113
93114 2003-04-02  Bruno Haible  <bruno@clisp.org>
93115
93116         * modules/binary-io: New file.
93117         * MODULES.html.sh (func_all_modules): Add it.
93118
93119 2003-04-02  Bruno Haible  <bruno@clisp.org>
93120
93121         * lib/binary-io.h: New file, from GNU gettext.
93122
93123 2003-04-01  Bruno Haible  <bruno@clisp.org>
93124
93125         * modules/pathname: New file.
93126         * MODULES.html.sh (func_all_modules): Add it.
93127
93128 2003-04-01  Bruno Haible  <bruno@clisp.org>
93129
93130         * lib/pathname.h: New file, from GNU gettext.
93131         * lib/concatpath.c: New file, from GNU gettext.
93132
93133 2003-03-30  Bruno Haible  <bruno@clisp.org>
93134
93135         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93136
93137 2003-03-30  Bruno Haible  <bruno@clisp.org>
93138
93139         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93140         function chown() doesn't exist.
93141
93142 2003-03-28  Bruno Haible  <bruno@clisp.org>
93143
93144         * modules/copy-file: New file.
93145         * MODULES.html.sh (func_all_modules): Add it.
93146
93147 2003-03-28  Bruno Haible  <bruno@clisp.org>
93148
93149         * m4/copy-file.m4: New file.
93150
93151 2003-03-28  Bruno Haible  <bruno@clisp.org>
93152
93153         * lib/copy-file.h: New file, from GNU gettext.
93154         * lib/copy-file.c: New file, from GNU gettext.
93155
93156 2003-03-18  Jim Meyering  <jim@meyering.net>
93157
93158         * lib/quote.c (quote_n): Fix typo in comment.
93159
93160 2003-03-18  Bruno Haible  <bruno@clisp.org>
93161
93162         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93163         checking.
93164         * m4/onceonly_2_57.m4: Likewise.
93165
93166 2003-03-17  Bruno Haible  <bruno@clisp.org>
93167
93168         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93169         (m4_quote): Remove macro.
93170         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93171
93172 2003-03-14  Jim Meyering  <jim@meyering.net>
93173
93174         Merge changes from Coreutils.
93175         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93176         to be const, in order to avoid warnings.
93177         (obstack_room): Likewise.
93178         (obstack_empty_p): Likewise.
93179
93180 2003-03-14  Bruno Haible  <bruno@clisp.org>
93181
93182         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93183         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93184
93185 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93186
93187         Merge changes from Bison.
93188         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93189         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93190         when compiling Bison 1.875's `bitset bset = obstack_alloc
93191         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93192         * lib/hash.c: Include <stdbool.h> unconditionally.
93193
93194 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93195
93196         * m4/onceonly.m4 (m4_quote): New macro.
93197         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93198         Quote AC_FOREACH variable-expansions properly.
93199
93200 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93201
93202         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93203
93204 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93205
93206         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93207         Reported by Bruce Becker; see:
93208         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93209
93210 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93211             Bruno Haible  <bruno@clisp.org>
93212
93213         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93214         Reported by John Hughes, see
93215         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93216
93217 2003-02-20  Bruno Haible  <bruno@clisp.org>
93218
93219         * MODULES.html.sh (func_all_modules): Add poll.
93220
93221 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93222
93223         * modules/poll: New file.
93224
93225 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93226
93227         * lib/poll_.h: New file.
93228         * lib/poll.c: New file.
93229
93230 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93231
93232         * m4/poll.m4: New file.
93233
93234 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93235
93236         * modules/mathl: New file.
93237
93238 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93239
93240         * lib/mathl.h: New file.
93241         * lib/acosl.c: New file.
93242         * lib/asinl.c: New file.
93243         * lib/atanl.c: New file.
93244         * lib/ceill.c: New file.
93245         * lib/cosl.c: New file.
93246         * lib/expl.c: New file.
93247         * lib/floorl.c: New file.
93248         * lib/frexpl.c: New file.
93249         * lib/ldexpl.c: New file.
93250         * lib/logl.c: New file.
93251         * lib/sincosl.c: New file.
93252         * lib/sinl.c: New file.
93253         * lib/sqrtl.c: New file.
93254         * lib/tanl.c: New file.
93255         * lib/trigl.c: New file.
93256         * lib/trigl.h: New file.
93257
93258 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93259
93260         * m4/mathl.m4: New file.
93261
93262 2003-02-18  Bruno Haible  <bruno@clisp.org>
93263
93264         * MODULES.html.sh (func_all_modules): Add mathl.
93265
93266 2003-02-17  Bruno Haible  <bruno@clisp.org>
93267
93268         * modules/mkdtemp: New module.
93269         * MODULES.html.sh (func_all_modules): Add it.
93270
93271 2003-02-17  Bruno Haible  <bruno@clisp.org>
93272
93273         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93274
93275 2003-02-17  Bruno Haible  <bruno@clisp.org>
93276
93277         * lib/mkdtemp.h: New file, from GNU gettext.
93278         * lib/mkdtemp.c: New file, from GNU gettext.
93279
93280 2003-02-02  Jim Meyering  <jim@meyering.net>
93281
93282         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93283         e.g. glibc-2.2.93.
93284
93285 2003-01-31  Bruno Haible  <bruno@clisp.org>
93286
93287         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93288         'rpl_rename'.
93289         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93290         'rpl_strnlen'.
93291         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93292         'rpl_strtod'.
93293         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93294         'rpl_utime'.
93295
93296 2003-01-31  Bruno Haible  <bruno@clisp.org>
93297
93298         * lib/rename.c: #undef rename before defining rpl_rename.
93299         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93300
93301 2003-01-30  Bruno Haible  <bruno@clisp.org>
93302
93303         * modules/vasnprintf, modules/vasprintf: New modules.
93304         * MODULES.html.sh (func_all_modules): Add them.
93305
93306 2003-01-30  Bruno Haible  <bruno@clisp.org>
93307
93308         * m4/signed.m4: New file, from GNU gettext.
93309         * m4/longdouble.m4: New file, from GNU gettext.
93310         * m4/wchar_t.m4: New file, from GNU gettext.
93311         * m4/wint_t.m4: New file, from GNU gettext.
93312         * m4/vasnprintf.m4: New file.
93313         * m4/vasprintf.m4: New file.
93314
93315 2003-01-30  Bruno Haible  <bruno@clisp.org>
93316
93317         * lib/printf-args.h: New file, from GNU gettext.
93318         * lib/printf-args.c: New file, from GNU gettext.
93319         * lib/printf-parse.h: New file, from GNU gettext.
93320         * lib/printf-parse.c: New file, from GNU gettext.
93321         * lib/vasnprintf.h: New file, from GNU gettext.
93322         * lib/vasnprintf.c: New file, from GNU gettext.
93323         * lib/asnprintf.c: New file, from GNU gettext.
93324         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93325         * lib/vasprintf.c: New file, from GNU gettext.
93326         * lib/asprintf.c: New file, from GNU gettext.
93327
93328 2003-01-29  Bruno Haible  <bruno@clisp.org>
93329
93330         * modules/stpncpy: New module.
93331         * MODULES.html.sh (func_all_modules): Add it.
93332
93333 2003-01-29  Bruno Haible  <bruno@clisp.org>
93334
93335         * m4/stpncpy.m4: New file.
93336
93337 2003-01-29  Bruno Haible  <bruno@clisp.org>
93338
93339         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93340         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93341
93342 2003-01-28  Bruno Haible  <bruno@clisp.org>
93343
93344         * modules/c-ctype: New module.
93345         * MODULES.html.sh (func_all_modules): Add it.
93346
93347 2003-01-28  Bruno Haible  <bruno@clisp.org>
93348
93349         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93350         Paul Eggert.
93351         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93352         Paul Eggert.
93353
93354 2003-01-27  Bruno Haible  <bruno@clisp.org>
93355
93356         * modules/xsetenv: New module.
93357         * MODULES.html.sh (func_all_modules): Add it.
93358
93359 2003-01-27  Bruno Haible  <bruno@clisp.org>
93360
93361         * lib/xsetenv.h: New file, from GNU gettext.
93362         * lib/xsetenv.c: New file, from GNU gettext.
93363
93364 2003-01-23  Jim Meyering  <jim@meyering.net>
93365
93366         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93367         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93368
93369 2003-01-23  Bruno Haible  <bruno@clisp.org>
93370
93371         * modules/minmax: New module.
93372         * MODULES.html.sh (func_all_modules): Add it.
93373
93374 2003-01-23  Bruno Haible  <bruno@clisp.org>
93375
93376         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93377         Eggert.
93378
93379 2003-01-22  Bruno Haible  <bruno@clisp.org>
93380
93381         * modules/exit: New module.
93382         * MODULES.html.sh (func_all_modules): Add it.
93383
93384 2003-01-22  Bruno Haible  <bruno@clisp.org>
93385
93386         * lib/exit.h: New file, from GNU gettext.
93387
93388 2003-01-19  Bruno Haible  <bruno@clisp.org>
93389
93390         * gnulib-tool: Recognize option --extract-maintainer.
93391         (func_get_maintainer): New function.
93392         * modules/*: Add Maintainer entry.
93393
93394 2003-01-16  Jim Meyering  <jim@meyering.net>
93395
93396         * m4/regex.m4: The `regex' struct is both input and output.
93397         Initialize it before each use.  Patch by Tim Waugh.
93398
93399 2003-01-16  Bruno Haible  <bruno@clisp.org>
93400
93401         * MODULES.html.sh: Add a table of contents. Add the module name as
93402         leftmost column. Add hyperlinks.
93403
93404 2003-01-15  Bruno Haible  <bruno@clisp.org>
93405
93406         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93407
93408 2003-01-15  Bruno Haible  <bruno@clisp.org>
93409
93410         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93411         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93412         suffix.
93413
93414 2003-01-15  Bruno Haible  <bruno@clisp.org>
93415
93416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93417
93418 2003-01-15  Bruno Haible  <bruno@clisp.org>
93419
93420         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93421         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93422
93423 2003-01-14  Jim Meyering  <jim@meyering.net>
93424
93425         * lib/same.c (same_name): Tweak a comment.
93426
93427 2003-01-14  Bruno Haible  <bruno@clisp.org>
93428
93429         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93430         when a string comparison is sufficient.
93431
93432 2003-01-14  Bruno Haible  <bruno@clisp.org>
93433
93434         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93435         'unsigned int'.
93436
93437 2003-01-14  Bruno Haible  <bruno@clisp.org>
93438
93439         * lib/hash-pjw.c: Add comment about low quality of this function.
93440
93441 2003-01-13  Bruno Haible  <bruno@clisp.org>
93442
93443         * modules/stpcpy: Distribute lib/stpcpy.h.
93444         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93445
93446 2003-01-13  Bruno Haible  <bruno@clisp.org>
93447
93448         * modules/*: Add a description.
93449         * modules/strpbrk: Fix Makefile.am snippet.
93450         * modules/strtoimax: Fix dependencies.
93451         * modules/strtoumax: Likewise.
93452
93453 2003-01-13  Bruno Haible  <bruno@clisp.org>
93454
93455         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93456         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93457         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93458
93459 2003-01-13  Bruno Haible  <bruno@clisp.org>
93460
93461         * gnulib-tool (func_create_testdir): Store config/* files in the main
93462         directory.
93463         * config.rpath: Move to ...
93464         * config/config.rpath: ... here.
93465         * modules/gettext: Contains config/config.rpath, not config.rpath.
93466         * modules/iconv: Likewise.
93467
93468 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93469
93470         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93471         to avoid collisions with libcurses and libreadline.
93472
93473         * m4/getstr.m4: Remove.
93474         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93475
93476 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93477
93478         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93479         to avoid collisions with libcurses and libreadline.
93480
93481         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93482         * lib/getstr.h, getstr.c: Remove.
93483         * lib/getline.c: Include "getline.h", to check interface.
93484         Move body of old getstr.c here: this defines MIN_CHUNK and
93485         declares getdelim2, which is renamed from getstr.
93486         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93487
93488         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93489         All uses changed.
93490         * lib/linebuffer.h: Likewise.
93491         (readline): Remove backward-compatibility macro.
93492
93493 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93494
93495         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93496         to avoid collisions with libcurses and libreadline.
93497         * getstr: Remove.
93498         * MODULES.html.sh: Remove getstr.
93499         * modules/getline: Depend on unlocked-io, not getstr.
93500
93501 2003-01-12  Jim Meyering  <jim@meyering.net>
93502
93503         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93504
93505 2003-01-10  Bruno Haible  <bruno@clisp.org>
93506
93507         * modules/alloca: Change Makefile.am requirements. Simplify Include
93508         requirements. Add lib/alloca_.h to file list.
93509
93510 2003-01-10  Bruno Haible  <bruno@clisp.org>
93511
93512         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93513
93514 2003-01-10  Bruno Haible  <bruno@clisp.org>
93515
93516         * lib/alloca_.h: New file.
93517         * lib/getdate.y: Unconditionally include alloca.h.
93518         * lib/makepath.c: Likewise.
93519         * lib/setenv.c: Likewise.
93520         * lib/userspec.c: Likewise.
93521
93522 2003-01-09  Karl Berry  <karl@gnu.org>
93523
93524         * MODULES.html.sh: include `dirname $0` in PATH, to find
93525         gnulib-tool.
93526
93527 2003-01-09  Bruno Haible  <bruno@clisp.org>
93528
93529         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93530         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93531
93532 2003-01-09  Bruno Haible  <bruno@clisp.org>
93533
93534         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93535
93536 2003-01-09  Bruno Haible  <bruno@clisp.org>
93537
93538         * lib/stdbool.h.in: New file.
93539
93540 2003-01-09  Bruno Haible  <bruno@clisp.org>
93541
93542         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93543         * MODULES.html.sh: Likewise.
93544
93545 2003-01-08  Jim Meyering  <jim@meyering.net>
93546
93547         * lib/full-write.c: Undefine and define-away `const' after inclusion
93548         of errno.h, not before.  Suggestion from Bruno Haible.
93549
93550 2003-01-08  Bruno Haible  <bruno@clisp.org>
93551
93552         * modules/full-read: Depend on full-write.
93553
93554 2003-01-08  Bruno Haible  <bruno@clisp.org>
93555
93556         * lib/safe-read.c: Include specification header first, to ensure its
93557         selfcontainedness.
93558         * lib/full-write.c: Likewise.
93559
93560 2003-01-07  Jim Meyering  <jim@meyering.net>
93561
93562         * lib/full-write.c: Rework so that it may serve to define full_read,
93563         too.
93564         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93565
93566 2003-01-07  Bruno Haible  <bruno@clisp.org>
93567
93568         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93569         <inttypes.h>.
93570         * lib/xstrtol.h: Likewise.
93571         * lib/xstrtoimax.c: Likewise.
93572         * lib/xstrtoumax.c: Likewise.
93573         * lib/human.h: Likewise.
93574
93575         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93576         on systems that have <inttypes.h> but not <stdint.h>.
93577
93578 2003-01-07  Bruno Haible  <bruno@clisp.org>
93579
93580         * MODULES.html.sh: Add copyright notice.
93581         (missed_files): Omit CVS directory entries.
93582         (func_module): Make it work with sed-3.02.
93583         * MODULES.txt: Remove file.
93584
93585 2003-01-06  Jim Meyering  <jim@meyering.net>
93586
93587         * lib/version-etc.c: Update year in translatable copyright string.
93588
93589 2003-01-03  Karl Berry  <karl@gnu.org>
93590
93591         * config/config.{guess,sub}: update from prep.
93592
93593 2003-01-02  Karl Berry  <karl@gnu.org>
93594
93595         * doc/COPYING.DOC: belatedly updated to 1.2.
93596
93597 2003-01-01  Karl Berry  <karl@gnu.org>
93598
93599         * gnulib-tool (func_verify_module): report module name $module in
93600         error message, not $1.
93601         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93602         be created, only if it doesn't exist.
93603         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93604
93605 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93606
93607         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93608
93609 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93610
93611         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93612         memcmp if strcoll doesn't work.
93613
93614 2002-12-31  Bruno Haible  <bruno@clisp.org>
93615
93616         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93617         nonempty.
93618
93619 2002-12-31  Bruno Haible  <bruno@clisp.org>
93620
93621         * lib/memcoll.c (STRCOLL): New macro.
93622         (memcoll): Use it.
93623
93624 2002-12-31  Bruno Haible  <bruno@clisp.org>
93625
93626         * lib/localcharset.h: New file.
93627         * lib/localcharset.c: Include it.
93628         * lib/unicodeio.c: Likewise.
93629
93630 2002-12-31  Bruno Haible  <bruno@clisp.org>
93631
93632         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93633         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93634
93635 2002-12-31  Bruno Haible  <bruno@clisp.org>
93636
93637         * lib/getline.h: Include <stddef.h>, for size_t.
93638
93639         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93640         * lib/unicodeio.c: Don't include <stddef.h>.
93641
93642 2002-12-31  Bruno Haible  <bruno@clisp.org>
93643
93644         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93645         HAVE_TM_ZONE.
93646
93647 2002-12-24  Karl Berry  <karl@gnu.org>
93648
93649         * config/config.guess: update from prep.
93650
93651 2002-12-24  Bruno Haible  <bruno@clisp.org>
93652
93653         General infrasructure.
93654         * m4/README: Rewritten.
93655         * m4/onceonly.m4: New file.
93656         * m4/onceonly_2_57.m4: New file.
93657
93658         Module atexit.
93659         * m4/atexit.m4: New file.
93660
93661         Module strtod.
93662         * m4/strtod.m4: New file.
93663
93664         Module strtol.
93665         * m4/strtol.m4: New file.
93666
93667         Module strtoul.
93668         * m4/strtoul.m4: New file.
93669
93670         Module memchr.
93671         * m4/memchr.m4: New file.
93672
93673         Module memcmp.
93674         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93675         (jm_FUNC_MEMCMP): Invoke it.
93676
93677         Module memcpy.
93678         * m4/memcpy.m4: New file.
93679
93680         Module memmove.
93681         * m4/memmove.m4: New file.
93682
93683         Module memset.
93684         * m4/memset.m4: New file.
93685
93686         Module strcspn.
93687         * m4/strcspn.m4: New file.
93688
93689         Module strpbrk.
93690         * m4/strpbrk.m4: New file.
93691
93692         Module strstr.
93693         * m4/strstr.m4: New file.
93694
93695         Module strerror.
93696         * m4/strerror.m4: New file.
93697
93698         Module mktime.
93699         * m4/mktime.m4: Renamed from jm-mktime.m4.
93700         (gl_PREREQ_MKTIME): New macro.
93701         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93702
93703         Module malloc.
93704         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93705         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93706         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93707
93708         Module realloc.
93709         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93710         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93711         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93712
93713         Module strftime.
93714         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93715         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93716         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93717         gl_TM_GMTOFF.
93718         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93719
93720         Module xalloc.
93721         * m4/xalloc.m4: New file.
93722
93723         Module alloca.
93724         * m4/alloca.m4: New file.
93725
93726         Module putenv.
93727         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93728         (jm_FUNC_PUTENV): Invoke it.
93729
93730         Module setenv.
93731         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93732         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93733         when invoked twice.
93734         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93735         gt_FUNC_SETENV.
93736
93737         Module memrchr.
93738         * m4/memrchr.m4: New file.
93739
93740         Module stpcpy.
93741         * m4/stpcpy.m4: New file.
93742
93743         Module strcase.
93744         * m4/strcase.m4: New file.
93745
93746         Module strdup.
93747         * m4/strdup.m4: New file.
93748
93749         Module strnlen.
93750         * m4/strnlen.m4: New file.
93751
93752         Module strndup.
93753         * m4/strndup.m4: New file.
93754
93755         Module xstrtod.
93756         * m4/xstrtod.m4: New file.
93757
93758         Module xstrtol.
93759         * m4/xstrtol.m4: New file.
93760
93761         Module getdate.
93762         * m4/getdate.m4: New file.
93763
93764         Module unlocked-io.
93765         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93766         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93767         * m4/jm-glibc-io.m4n: Remove file.
93768
93769         Module long-options.
93770         * m4/long-options.m4: New file.
93771
93772         Module md5.
93773         * m4/md5.m4: New file.
93774
93775         Module sha.
93776         * m4/sha.m4: New file.
93777
93778         Module getstr.
93779         * m4/getstr.m4: New file.
93780
93781         Module getline.
93782         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93783         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93784         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93785         simply getline. Infoke gl_PREREQ_GETLINE.
93786
93787         Module obstack.
93788         * m4/obstack.m4: New file.
93789
93790         Module hash.
93791         * m4/hash.m4: New file.
93792
93793         Module readtokens.
93794         * m4/readtokens.m4: New file.
93795
93796         Module strverscmp.
93797         * m4/strverscmp.m4: New file.
93798
93799         Module stdbool.
93800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93801         OSF/1.
93802
93803         Module strtoll.
93804         * m4/strtoll.m4: New file.
93805
93806         Module strtoull.
93807         * m4/strtoull.m4: New file.
93808
93809         Module strtoimax.
93810         * m4/strtoimax.m4: New file.
93811
93812         Module strtoumax.
93813         * m4/strtoumax.m4: New file.
93814
93815         Module xstrtoimax.
93816         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93817         jm_AC_PREREQ_XSTRTOIMAX.
93818         Moved the strtol prerequisites to strtol.m4.
93819         Moved the strtoll prerequisites to strtoll.m4.
93820         Moved the strtoimax prerequisites to strtoimax.m4.
93821
93822         Module xstrtoumax.
93823         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93824         jm_AC_PREREQ_XSTRTOUMAX.
93825         Moved the strtoul prerequisites to strtoul.m4.
93826         Moved the strtoull prerequisites to strtoull.m4.
93827         Moved the strtoumax prerequisites to strtoumax.m4.
93828
93829         Module chown.
93830         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93831         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93832
93833         Module dup2.
93834         * m4/dup2.m4: New file.
93835
93836         Module ftruncate.
93837         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93838         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93839
93840         Module getgroups.
93841         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93842         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93843
93844         Module gettimeofday.
93845         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93846         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93847         gl_PREREQ_GETTIMEOFDAY.
93848
93849         Module mkdir.
93850         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93851         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93852
93853         Module mkstemp.
93854         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93855         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93856         jm_AC_TYPE_UINTMAX_T.
93857         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93858
93859         Module stat.
93860         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93861         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93862
93863         Module lstat.
93864         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93865         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93866
93867         Module timespec.
93868         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93869         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93870         * m4/st_mtim.m4: Indentation.
93871
93872         Module nanosleep.
93873         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93874         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93875         gl_PREREQ_NANOSLEEP.
93876
93877         Module regex.
93878         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93879         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93880         (gl_REGEX): New macro.
93881
93882         Module rename.
93883         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93884         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93885
93886         Module rmdir.
93887         * m4/rmdir.m4: New file.
93888
93889         Module utime.
93890         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93891         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93892         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93893
93894         Module dirname.
93895         * m4/dirname.m4: New file.
93896
93897         Module getopt.
93898         * m4/getopt.m4: New file.
93899
93900         Module unistd-safer.
93901         * m4/unistd-safer.m4: New file.
93902
93903         Module fnmatch.
93904         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93905         declaration.
93906         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93907         (gl_FUNC_FNMATCH_POSIX): New macro.
93908         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93909         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93910         simply fnmatch.
93911
93912         Module exclude.
93913         * m4/exclude.m4: New file.
93914
93915         Module human.
93916         * m4/human.m4: New file.
93917
93918         Module acl.
93919         * m4/acl.m4: Nop.
93920
93921         Module backupfile.
93922         * m4/backupfile.m4: New file.
93923         * m4/d-ino.m4: Indentation.
93924
93925         Module fsusage.
93926         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93927         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93928         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93929
93930         Module dirfd.
93931         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93932         requirements.
93933
93934         Module euidaccess.
93935         * m4/euidaccess.m4: New file.
93936
93937         Module file-type.
93938         * m4/file-type.m4: New file.
93939
93940         Module fileblocks.
93941         * m4/fileblocks.m4: New file.
93942
93943         Module filemode.
93944         * m4/filemode.m4: New file.
93945
93946         Module isdir.
93947         * m4/isdir.m4: New file.
93948
93949         Module lchown.
93950         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93951         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93952
93953         Module makepath.
93954         * m4/makepath.m4: New file.
93955
93956         Module modechange.
93957         * m4/modechange.m4: New file.
93958
93959         Module mountlist.
93960         * m4/mountlist.m4: New file.
93961         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93962         Indentation.
93963
93964         Module path-concat.
93965         * m4/path-concat.m4: New file.
93966
93967         Module pathmax.
93968         * m4/pathmax.m4: New file.
93969
93970         Module same.
93971         * m4/same.m4: New file.
93972
93973         Module save-cwd.
93974         * m4/save-cwd.m4: New file.
93975
93976         Module savedir.
93977         * m4/savedir.m4: New file.
93978
93979         Module xgetcwd.
93980         * m4/xgetcwd.m4: New file.
93981         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93982
93983         Module xreadlink.
93984         * m4/xreadlink.m4: New file.
93985
93986         Module safe-read.
93987         * m4/safe-read.m4: New file.
93988
93989         Module safe-write.
93990         * m4/safe-write.m4: New file.
93991
93992         Module closeout.
93993         * m4/closeout.m4: New file.
93994
93995         Module stdio-safer.
93996         * m4/stdio-safer.m4: New file.
93997
93998         Module getpass.
93999         * m4/getpass.m4: New file.
94000
94001         Module getugroups.
94002         * m4/getugroups.m4: New file.
94003
94004         Module group-member.
94005         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94006         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94007
94008         Module idcache.
94009         * m4/idcache.m4: New file.
94010
94011         Module userspec.
94012         * m4/userspec.m4: New file.
94013
94014         Module gettime.
94015         * m4/clock_time.m4: New file.
94016         * m4/gettime.m4: New file.
94017
94018         Module settime.
94019         * m4/settime.m4: New file.
94020
94021         Module posixtm.
94022         * m4/posixtm.m4: New file.
94023
94024         Module gethostname.
94025         * m4/gethostname.m4: New file.
94026
94027         Module canon-host.
94028         * m4/canon-host.m4: New file.
94029
94030         Module gettext.
94031         * m4/codeset.m4: New file, from gettext-0.11.5.
94032         * m4/gettext.m4: New file, from gettext-0.11.5.
94033         * m4/glibc21.m4: New file, from gettext-0.11.5.
94034         * m4/iconv.m4: New file, from gettext-0.11.5.
94035         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94036         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94037         * m4/inttypes.m4: New file, from gettext-0.11.5.
94038         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94039         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94040         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94041         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94042         * m4/lib-link.m4: New file, from gettext-0.11.5.
94043         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94044         * m4/progtest.m4: New file, from gettext-0.11.5.
94045         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94046         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94047         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94048
94049         Module localcharset.
94050         * m4/localcharset.m4: New file.
94051
94052         Module hard-locale.
94053         * m4/hard-locale.m4: New file.
94054
94055         Module mbswidth.
94056         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94057         onceonly macros.
94058         * m4/mbrtowc.m4: Add comment.
94059
94060         Module memcasecmp.
94061         * m4/memcasecmp.m4: New file.
94062
94063         Module memcoll.
94064         * m4/memcoll.m4: New file.
94065
94066         Module unicodeio.
94067         * m4/unicodeio.m4: New file.
94068
94069         Module rpmatch.
94070         * m4/rpmatch.m4: New file.
94071
94072         Module yesno.
94073         * m4/yesno.m4: New file.
94074
94075         Module exitfail.
94076         * m4/exitfail.m4: New file.
94077
94078         Module c-stack.
94079         * m4/c-stack.m4 (gl_C_STACK): New macro.
94080         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94081
94082         Module error.
94083         * m4/error.m4 (gl_ERROR): New macro.
94084         (jm_PREREQ_ERROR): Use onceonly macros.
94085
94086         Module fatal.
94087         * m4/fatal.m4: New file.
94088
94089         Module getloadavg.
94090         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94091         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94092
94093         Module getpagesize.
94094         * m4/getpagesize.m4: New file.
94095
94096         Module getusershell.
94097         * m4/getusershell.m4: New file.
94098
94099         Module physmem.
94100         * m4/physmem.m4: New file.
94101
94102         Module posixver.
94103         * m4/posixver.m4: New file.
94104
94105         Module quotearg.
94106         * m4/quotearg.m4: New file.
94107
94108         Module quote.
94109         * m4/quote.m4: New file.
94110
94111         Module readutmp.
94112         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94113
94114         Module sig2str.
94115         * m4/sig2str.m4: New file.
94116
94117         Other.
94118         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94119         ulonglong.m4.
94120         * m4/intmax_t.m4: New file.
94121         * m4/d-type.m4: Indentation.
94122         * m4/jm-macros.m4: Update.
94123         * m4/prereq.m4 (jm_PREREQ): Update.
94124         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94125         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94126         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94127         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94128         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94129         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94130         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94131         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94132         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94133         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94134         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94135         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94136         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94137         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94138         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94139         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94140         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94141         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94142         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94143
94144 2002-12-24  Bruno Haible  <bruno@clisp.org>
94145
94146         * MODULES.txt: Update according to m4/ changes.
94147
94148         Module gettext.
94149         * config.rpath: New file, from gettext-0.11.5.
94150
94151         * modules/*: New module descriptions.
94152         * gnulib-tool: New file.
94153         * MODULES.html.sh: New file.
94154
94155 2002-12-21  Karl Berry  <karl@gnu.org>
94156
94157         * doc/fdl.texi: update to version 1.2.
94158
94159 2002-12-19  Karl Berry  <karl@gnu.org>
94160
94161         * config/config.guess: update from prep.
94162
94163 2002-12-18  Bruno Haible  <bruno@clisp.org>
94164
94165         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94166         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94167
94168 2002-12-17  Bruno Haible  <bruno@clisp.org>
94169
94170         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94171         stdlib.h, string.h.
94172
94173 2002-12-17  Bruno Haible  <bruno@clisp.org>
94174
94175         * lib/canon-host.c (strdup): Remove unused declaration.
94176
94177         * lib/fsusage.c: Include full_read.h.
94178         (get_fs_usage): Use full_read instead of safe_read.
94179
94180         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94181
94182 2002-12-12  Karl Berry  <karl@gnu.org>
94183
94184         * config/config.guess: update from prep.
94185
94186 2002-12-11  Bruno Haible  <bruno@clisp.org>
94187
94188         * m4/setenv.m4: New file, from gettext-0.11.5.
94189
94190 2002-12-11  Bruno Haible  <bruno@clisp.org>
94191
94192         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94193         not unsetenv().
94194         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94195         modifications:
94196
94197         2002-12-11  Bruno Haible  <bruno@clisp.org>
94198
94199                 * setenv.c (alloca): Fall back to malloc.
94200                 (freea): New macro.
94201                 (setenv): Use freea() to free memory allocated with alloca().
94202
94203         2002-11-13  Bruno Haible  <bruno@clisp.org>
94204
94205                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94206                 function declarations.
94207                 * unsetenv.c (unsetenv): Likewise.
94208
94209         2002-03-04  Bruno Haible  <bruno@clisp.org>
94210
94211                 Portability to AIX 4.3.3.
94212                 * unsetenv.c: New file, extracted from setenv.c.
94213                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94214
94215         2001-12-20  Bruno Haible  <bruno@clisp.org>
94216
94217                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94218                 use malloc instead. For SunOS 4.
94219
94220         2001-12-11  Bruno Haible  <bruno@clisp.org>
94221
94222                 * setenv.c: Declare alloca.
94223                 (compar_fn_t): New typedef.
94224                 (KNOWN_VALUE, STORE_VALUE): Use it.
94225
94226         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94227         setenv.h.
94228
94229 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94230
94231         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94232         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94233         Choose values that are less likely to collide with system fnmatch
94234         options.
94235         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94236         defined (e.g., a pure POSIX system).
94237         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94238         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94239
94240 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94241
94242         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94243         a pain in practice to deal with generated m4 files.  This change
94244         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94245
94246         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94247         and jm-glibc-io.m4, as they are no longer a special case.
94248         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94249         kludge and the auto-generation stuff.  Check only whether the
94250         functions are declared, not whether they exist, since older hosts
94251         that don't declare the functions can't use the optimization anyway.
94252
94253 2002-12-06  Jim Meyering  <jim@meyering.net>
94254
94255         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94256
94257         Merge in changes from libc's misc/error.c, in preparation
94258         for the merge of gnulib's changes back into libc.
94259
94260         * lib/error.c (_): Define only if not already defined.
94261         Move definition to follow all #include directives.
94262         Include unlocked-io.h only if !_LIBC.
94263         [_LIBC]: Include <libio/libioP.h>.
94264         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94265         (fflush): Tweak definition to use INTUSE.
94266         (putc): Define.
94267
94268 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94269
94270         * lib/alloca.c [defined emacs]: Include "lisp.h".
94271         (xalloc_die) [defined emacs]: New macro.
94272         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94273         [! defined emacs]: Include <xalloc.h>.
94274         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94275         (pointer): Typedef to POINTER_TYPE *.
94276         (malloc): Remove decl; we now always use xmalloc.
94277         (alloca): Use old-style definition, since Emacs needs this.
94278         Check for arithmetic overflow when computing combined size.
94279
94280 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94281
94282         Do not generate unlocked-io.h automatically, since it's easier to
94283         maintain it by hand.
94284
94285         * lib/unlocked-io.h: New file, from GNU diffutils,
94286         but with proper copyright notice and attribution.
94287         * lib/gen-uio: Remove.
94288         * lib/Makefile.am: Add copyright notice.
94289         (libfetish_a_SOURCES): Add unlocked-io.h.
94290         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94291         (DISTCLEANFILES, io_functions): Remove macros.
94292         (EXTRA_DIST): Remove gen_uio.
94293         (unlocked-io.h): Remove rule.
94294
94295 2002-12-04  Jim Meyering  <jim@meyering.net>
94296
94297         Reflect the fact that stat.c and lstat.c are no longer generated.
94298         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94299         (DISTCLEANFILES): Likewise.
94300         (EXTRA_DIST): Likewise.
94301         (all_local): Don't depend on stat.c or lstat.c.
94302         (stat.c, lstat.c): Remove rules.
94303         (EXTRA_DIST): Remove xstat.in.
94304
94305         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94306         * lib/stat.c: New file.  Contents mostly from xstat.in.
94307         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94308         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94309
94310         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94311         too.
94312         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94313
94314 2002-12-03  Jim Meyering  <jim@meyering.net>
94315
94316         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94317         but not semantics, to minimize the differences between these two files.
94318         (safe_read): Change comment to mention SAFE_READ_ERROR.
94319
94320         * lib/safe-read.c (IS_EINTR): Define.
94321         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94322
94323 2002-12-02  Jim Meyering  <jim@meyering.net>
94324
94325         * lib/safe-read.c (EINTR): Define.
94326         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94327         (INT_MAX): Provide fallback.
94328         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94329
94330         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94331
94332 2002-12-02  Bruno Haible  <bruno@clisp.org>
94333
94334         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94335         Define, taken from safe-read.c.
94336         (INT_MAX): Provide fallback.
94337         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94338         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94339
94340         * lib/safe-read.c (EINTR): Remove definition.
94341         (safe_read): Don't use EINTR if it is absent.
94342
94343 2002-12-01  Jim Meyering  <jim@meyering.net>
94344
94345         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94346         zero.
94347         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94348
94349 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94350
94351         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94352         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94353         with `if (! (value < limit)) abort ();', for readability.
94354
94355 2002-11-26  Karl Berry  <karl@gnu.org>
94356
94357         * lib/strdup.c: copy from libc again, with jim's ok.
94358         * lib/.cppi-disable: re-add strdup.c
94359
94360 2002-11-25  Karl Berry  <karl@gnu.org>
94361
94362         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94363         instead of "strtol.c".
94364
94365 2002-11-25  Karl Berry  <karl@gnu.org>
94366
94367         * config/install-sh: update from automake for variable quoting, $0 in
94368         error msgs, etc.
94369
94370         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94371         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94372         entry.
94373
94374 2002-11-25  Jim Meyering  <jim@meyering.net>
94375
94376         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94377
94378 2002-11-24  Karl Berry  <karl@gnu.org>
94379
94380         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94381         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94382
94383 2002-11-24  Jim Meyering  <jim@meyering.net>
94384
94385         Update from coreutils:
94386
94387         * lib/mktime.c: Merge in changes from libc.
94388
94389         Avoid a link-time failure on some Linux systems.
94390         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94391         (otherwise).
94392         (__mon_yday): Declare with the STATIC attribute.
94393         (__mktime_internal): Likewise.
94394         Based on a report from Greg Schafer.
94395
94396 2002-11-23  Jim Meyering  <jim@meyering.net>
94397
94398         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94399         Use `unsigned', not `int', as type of index.
94400
94401         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94402
94403         * lib/fsusage.c: Remove unneeded parentheses around operands of
94404         `defined'.
94405
94406 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94407
94408         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94409         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94410         so that we can be included first.
94411         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94412         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94413         No need to include stddef.h or sys/types.h any more.
94414         Surround local include files with "", not "<>".
94415         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94416         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94417         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94418         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94419         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94420         (ISPRINT): Remove; no longer needed now that we assume C89.
94421
94422         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94423         Preserve errno.
94424
94425         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94426         quotearg_char): Use SIZE_MAX rather than
94427         (size_t) -1 when we are talking about "infinity".
94428
94429         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94430
94431 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94432
94433         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94434         hint that one should use `if (! x) abort ();' rather than `assert
94435         (x);', and anyway it's one less thing to worry about configuring.
94436         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94437         hash_rehash, hash_insert): Use abort rather than assert.
94438
94439 2002-11-22  Bruno Haible  <bruno@clisp.org>
94440
94441         * lib/safe-read.h: Assume C89. Add comments.
94442         (safe_read): Change return type to size_t.
94443         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94444         byte counts > SSIZE_MAX correctly.
94445         * lib/safe-write.h: New file.
94446         * lib/safe-write.c: New file.
94447         * lib/full-read.h: New file.
94448         * lib/full-read.c: New file.
94449         * lib/full-write.h: Assume C89. Add comments.
94450         * lib/full-write.c: Include safe-write.h.
94451         (full_write): Rewritten to use safe_write.
94452         Suggested by Jim Meyering and Paul Eggert.
94453
94454 2002-11-21  Jim Meyering  <jim@meyering.net>
94455
94456         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94457
94458         Merge in changes from the coreutils.
94459
94460         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94461         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94462         <stdint.h>.
94463         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94464         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94465         int.  Work more efficiently if X is the same width as uintmax_t.
94466         Do not compare X to -1, to avoid bogus compiler warning.
94467         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94468         Don't assume that f_frsize and f_bsize are the same type.
94469
94470         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94471         warning on FreeBSD.
94472
94473         * lib/makepath.c (make_path): Restore umask *before* creating the final
94474         component.
94475         (make_path): Minor reformatting.
94476
94477         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94478         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94479         HAVE_MALLOC/HAVE_REALLOC.
94480
94481         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94482         dummy ones.  At least on GNU/Linux systems, `auto' means something
94483         else.
94484         From Michael Stone.
94485
94486 2002-11-21  Bruno Haible  <bruno@clisp.org>
94487
94488         Remove case insensitive option matching.
94489         * lib/argmatch.h (argcasematch): Remove declaration.
94490         (ARGCASEMATCH): Remove macro.
94491         (__xargmatch_internal): Remove case_sensitive argument.
94492         (XARGMATCH): Update.
94493         (XARGCASEMATCH): Remove macro.
94494         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94495         case_sensitive argument.
94496         (argcasematch): Remove function.
94497         (__xargmatch_internal): Remove case_sensitive argument.
94498         (main): Use XARGMATCH instead of XARGCASEMATCH.
94499
94500         * lib/xmalloc.c: Change compile-time error message. Add comment about
94501         required autoconf version.
94502
94503 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94504
94505         Merge argmatch cleanups from Bison.  Assume C89.
94506
94507         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94508         Include stdlib.h, for EXIT_FAILURE.
94509         Always include <string.h>, since we assume C89.
94510         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94511         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94512         Include <stddef.h> instead, since it's all we need for size_t.
94513         (PARAMS): Remove.  All uses removed.
94514         (ARRAY_CARDINALITY): Do not bother to #undef.
94515         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94516         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94517         Remove unnecessary parentheses.
94518         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94519         Insert necessary parentheses.
94520         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94521         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94522
94523 2002-11-19  Bruno Haible  <bruno@clisp.org>
94524
94525         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94526         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94527
94528         * lib/mbswidth.h (PARAMS): Remove macro.
94529         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94530         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94531
94532         * lib/gcd.h (PARAMS): Remove macro.
94533         (gcd): Use ANSI C function declarations.
94534         * lib/gcd.c (gcd): Likewise.
94535
94536 2002-11-15  Bruno Haible  <bruno@clisp.org>
94537
94538         * lib/strcspn.c: Include <stddef.h>.
94539         (strcspn): Use ANSI C function declaration. Change return type to
94540         size_t. Use NULL.
94541         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94542         (strpbrk): Use NULL.
94543         * lib/strpbrk.h (PARAMS): Remove macro.
94544         (strpbrk): Use ANSI C function declaration.
94545         * lib/strstr.c: Don't include <sys/types.h>.
94546         * lib/strstr.h (PARAMS): Remove macro.
94547         (strstr): Use ANSI C function declarations.
94548
94549 2002-11-14  Karl Berry  <karl@gnu.org>
94550
94551         * config/mkinstalldirs: `do' on separate line, instead of
94552         `for var; do'.
94553
94554 2002-11-06  Bruno Haible  <bruno@clisp.org>
94555
94556         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94557         * lib/gcd.c (gcd): Likewise.
94558
94559 2002-11-05  Bruno Haible  <bruno@clisp.org>
94560
94561         * lib/gcd.h: New file, from gettext-0.11.5.
94562         * lib/gcd.c: New file, from gettext-0.11.5.
94563
94564 2002-11-05  Bruno Haible  <bruno@clisp.org>
94565
94566         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94567         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94568         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94569         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94570
94571         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94572         <libintl.h>.
94573         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94574         <libintl.h>.
94575
94576         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94577         * lib/human.c: Include gettext.h instead of <libintl.h>.
94578         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94579         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94580         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94581         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94582         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94583         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94584         (textdomain): Remove definition.
94585         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94586
94587         * lib/long-options.c: Remove include of <libintl.h> and definition of
94588         _.
94589         * lib/same.c: Remove include of <libintl.h> and definition of _.
94590
94591 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94592
94593         * lib/config.charset: A few additions for Solaris.
94594
94595 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94596
94597         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94598         * lib/localcharset.c (locale_charset): Declare as extern "C".
94599
94600 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94601
94602         * lib/config.charset: msdos in uk_UA uses CP1125.
94603
94604 2002-11-04  Bruno Haible  <bruno@clisp.org>
94605
94606         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94607         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94608         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94609         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94610         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94611
94612 2002-11-04  Bruno Haible  <bruno@clisp.org>
94613
94614         * lib/localcharset.c (locale_charset): Don't return an empty string.
94615
94616 2002-11-04  Bruno Haible  <bruno@clisp.org>
94617
94618         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94619         aliases.
94620
94621 2002-11-04  Bruno Haible  <bruno@clisp.org>
94622
94623         * lib/config.charset: Update for newest glibc. Add canonical names
94624         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94625
94626 2002-11-04  Bruno Haible  <bruno@clisp.org>
94627
94628         * lib/config.charset: Add support for NetBSD.
94629
94630 2002-11-04  Bruno Haible  <bruno@clisp.org>
94631
94632         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94633
94634 2002-11-01  Bruno Haible  <bruno@clisp.org>
94635
94636         * configure.in: Add AC_CONFIG_AUX_DIR call.
94637         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94638         test/Makefile.
94639         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94640
94641 2002-09-28  Karl Berry  <karl@gnu.org>
94642
94643         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94644         installed automake until the next release, since changes have been
94645         made.
94646
94647 2002-09-25  Karl Berry  <karl@gnu.org>
94648
94649         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94650         * lib/getopt*: copy from libc/posix.
94651         * lib/gettext.h: copy from gettext.
94652         * lib/.cppi-disable: add strdup.c, gettext.h.
94653
94654 2002-09-25  Karl Berry  <karl@gnu.org>
94655
94656         * config/srclist.txt: enable gettext.h check.
94657         * config/config.{guess,sub}: update from prep.
94658         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94659                 from automake 1.6.3.
94660         See srclist*.
94661
94662 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94663
94664         * regex.c (PATFETCH): Remove the translating fetch.
94665         (PATFETCH_RAW): Rename to PATFETCH.
94666         (set_image_of_range): New fun.
94667         (SET_RANGE_TABLE_WORK_AREA): Use it.
94668         (regex_compile): Don't translate the pattern chars so eagerly.
94669         Only do it when inserting an `exactn' bytecode or when handling
94670         a char-range.
94671         (mutually_exclusive_p): Avoid empty statement.
94672
94673 2002-07-06  Jim Meyering  <meyering@lucent.com>
94674
94675         * m4/README: Don't mention Makefile.am.in.
94676         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94677
94678 2002-07-01  Jim Meyering  <meyering@lucent.com>
94679
94680         * lib/c-stack.c: Include sys/time.h.
94681         From Volker Borchert.
94682
94683 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94684
94685         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94686
94687 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94688
94689         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94690         New macro.  Use it uniformly instead of
94691         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94692         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94693         reported by Vin Shelton.
94694
94695 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94696
94697         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94698         Do not assume SA_SIGINFO behavior.
94699         Bug reported by Jim Meyering on NetBSD 1.5.2.
94700
94701 2002-06-22  Jim Meyering  <meyering@lucent.com>
94702
94703         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94705
94706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94707         now that configure.ac uses AC_GNU_SOURCE.
94708         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94709         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94710
94711         Update to latest tools.  Suggestions from Paul Eggert.
94712         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94713         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94714         * m4/fnmatch.m4: Likewise.
94715         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94716         to AC_HEADER_STDBOOL
94717
94718 2002-06-22  Jim Meyering  <meyering@lucent.com>
94719
94720         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94721         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94722
94723 2002-06-22  Jim Meyering  <meyering@lucent.com>
94724
94725         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94726
94727         * lib/exitfail.c, exitfail.h: Likewise.
94728         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94729
94730         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94731         of fnmatch.h.
94732         (EXTRA_DIST): Add fnmatch_loop.c.
94733         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94734
94735         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94736         * lib/fnmatch.c: Update from diffutils-2.8.2.
94737         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94738         * lib/fnmatch.h: Remove file.
94739
94740 2002-06-21  Jim Meyering  <meyering@lucent.com>
94741
94742         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94743         * m4/mbrtowc.m4: Likewise.
94744
94745         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94746         * m4/mbswidth.m4: Reflect name change:
94747         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94748         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94749
94750         * m4/lib-link.m4: Update from gettext-0.11.2.
94751         * m4/gettext.m4: Likewise.
94752
94753         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94754         From Alfred M. Szmidt.
94755
94756 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94757
94758         * lib/file-type.h: Report an error if neither S_ISREG nor
94759         S_IFREG is defined, instead of using a test specific to glibc
94760         2.2.  This should be safe, since POSIX requires S_ISREG and
94761         Unix Version 7 had S_IFREG.  We don't need to check for
94762         <sys/types.h> since we don't use any symbols that it defines.
94763
94764 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94765
94766         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94767         $@-t, so that each temporary file name is unique and valid in the first
94768         8 characters, for operation under DOS.
94769
94770 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94771
94772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94773
94774 2002-06-15  Jim Meyering  <meyering@lucent.com>
94775
94776         Work even with DJGPP 2.03, which lacks support for symlinks.
94777         From Richard Dawe.
94778         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94779         is defined.
94780         * lib/lchown.c (S_ISLNK): Likewise.
94781
94782 2002-06-15  Jim Meyering  <meyering@lucent.com>
94783
94784         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94785         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94786         have been included before this file.
94787
94788 2002-06-14  Jim Meyering  <meyering@lucent.com>
94789
94790         * lib/file-type.h: Use the version from diffutils-2.8.2.
94791         * lib/file-type.c: Likewise.
94792
94793 2002-06-07  Jim Meyering  <meyering@lucent.com>
94794
94795         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94796         They're needed at least for NetBSD 1.5.2.
94797         ($statxfs_includes): Include those same headers.
94798         ($statxfs_includes): Include sys/vfs.h if available.
94799         ($statxfs_includes): Likewise for sys/statvfs.h.
94800         Check for the following members in both structs statfs and statvfs:
94801         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94802
94803 2002-06-01  Jim Meyering  <meyering@lucent.com>
94804
94805         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94806         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94807
94808 2002-05-28  Jim Meyering  <meyering@lucent.com>
94809
94810         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94811         Reported by Volker Borchert.
94812
94813 2002-05-27  Jim Meyering  <meyering@lucent.com>
94814
94815         Fix a problem seen only on nonconforming systems whereby ls.c's
94816         use of localtime, and then of gettimeofday would cause trouble:
94817         the localtime call used to initialize rpl_gettimeofday's save
94818         mechanism would clobber ls's current local time information so
94819         that in any long listing the first file would always be listed
94820         with date 1970-01-01.  Analysis by Volker Borchert.
94821
94822         * lib/gettimeofday.c (localtime): Undefine.
94823         (rpl_localtime): New function.
94824
94825 2002-05-27  Jim Meyering  <meyering@lucent.com>
94826
94827         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94828         localtime.
94829
94830         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94831         use the replacement function; it wouldn't resolve at link time.
94832         Reported by Volker Borchert.
94833
94834 2002-05-22  Jim Meyering  <meyering@lucent.com>
94835
94836         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94837         file-type.h.
94838         * lib/file-type.h: New file.
94839         * lib/file-type.c (file_type): New file/function.  Extracted from
94840         diffutils.
94841
94842 2002-04-30  Jim Meyering  <meyering@lucent.com>
94843
94844         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94845
94846 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94847
94848         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94849
94850 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94851
94852         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94853         Do not check for alloca.h (no longer used) or stdbool.h (was never
94854         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94855
94856 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94857
94858         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94859
94860 2002-04-29  Jim Meyering  <meyering@lucent.com>
94861
94862         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94863         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94864         Use AC_FUNC_STRNLEN here instead.
94865
94866         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94867         With autoconf-2.53a, it's part of AC_PROG_CC.
94868
94869 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94870
94871         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94872         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94873
94874 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94875
94876         * lib/sig2str.h, lib/sig2str.c: New files.
94877         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94878
94879 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94880
94881         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94882         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94883         of 127, since 64 is the largest conceivable number for ancient
94884         nonstandard hosts.
94885         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94886
94887 2002-04-28  Jim Meyering  <meyering@lucent.com>
94888
94889         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94890
94891 2002-04-24  Jim Meyering  <meyering@lucent.com>
94892
94893         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94894         (jm_PREREQ): Use it.
94895
94896         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94897         mach/mach.h fcntl.h.
94898         Check for this function: setlocale.
94899
94900 2002-04-24  Jim Meyering  <meyering@lucent.com>
94901
94902         * lib/gettext.h: New file, from Gettext.
94903         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94904         (libfetish_a_SOURCES): Add gettext.h.
94905
94906 2002-04-16  Jim Meyering  <meyering@lucent.com>
94907
94908         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94909         ut_pid, ut_id, ut_exit.
94910
94911 2002-04-16  Jim Meyering  <meyering@lucent.com>
94912
94913         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94914         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94915         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94916
94917 2002-04-12  Jim Meyering  <meyering@lucent.com>
94918
94919         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94920         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94921         existence of the getmntinfo function.  Needed for Darwin 5.3.
94922
94923         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94924         This is necessary at least on Darwin 5.3.
94925
94926         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94927         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94928         strnlen.o in the library, and that makes some versions of ranlib
94929         object.
94930
94931 2002-04-12  Jim Meyering  <meyering@lucent.com>
94932
94933         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94934
94935 2002-04-09  Jim Meyering  <meyering@lucent.com>
94936
94937         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94938         to be more precise.  Rather than saying we're checking whether the
94939         function `works', say what we're testing.
94940         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94941         Reported by Bruno Haible.
94942
94943 2002-03-10  Jim Meyering  <meyering@lucent.com>
94944
94945         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94946         Suggestion from Santiago Vila.
94947
94948 2002-03-08  Jim Meyering  <meyering@lucent.com>
94949
94950         * lib/rename.c: Mention that this wrapper is needed also on
94951         mips-dec-ultrix4.4 systems.
94952
94953 2002-03-02  Jim Meyering  <meyering@lucent.com>
94954
94955         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94956         not HAVE_CLOCK_SETTIME.
94957
94958 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94959
94960         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94961         Check for clock_settime.
94962
94963 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94964
94965         * lib/nanosleep.h: Rename to....
94966         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94967
94968         * lib/gettime.c: New file.
94969         * lib/settime.c: New file.
94970         * lib/stime.c: Remove.
94971
94972         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94973         timespec.h.  Remove nanosleep.h.
94974
94975 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94976
94977         * m4/acl.m4: New file.
94978         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94979         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94980
94981 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94982
94983         * lib/acl.c, lib/acl.h: New files.
94984         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94985
94986 2002-02-24  Jim Meyering  <meyering@lucent.com>
94987
94988         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94989         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94990         cause trouble.  Reported by Nelson Beebe.
94991
94992 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94993
94994         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94995         compilers that don't know that xalloc_die never returns.
94996
94997 2002-02-20  Jim Meyering  <meyering@lucent.com>
94998
94999         * lib/getdate.c: Regenerate using bison-1.33.
95000
95001 2002-02-17  Jim Meyering  <meyering@lucent.com>
95002
95003         * config/config.guess (main): Don't use `head -1'; it's no longer
95004         portable. Use `sed 1q' instead.
95005
95006 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95007
95008         * m4/codeset.m4: Upgrade to gettext-0.11.
95009         * m4/gettext.m4: Upgrade to gettext-0.11.
95010         * m4/glibc21.m4: Upgrade to gettext-0.11.
95011         * m4/iconv.m4: Upgrade to gettext-0.11.
95012         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95013         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95014         * m4/lib-ld.m4: New file, from gettext-0.11.
95015         * m4/lib-link.m4: New file, from gettext-0.11.
95016         * m4/lib-prefix.m4: New file, from gettext-0.11.
95017         * m4/progtest.m4: Upgrade to gettext-0.11.
95018
95019 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95020
95021         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95022         (jm_PREREQ): Use it.
95023
95024 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95025
95026         * lib/posixver.c, lib/posixver.h: New files.
95027         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95028
95029 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95030             Bruno Haible  <bruno@clisp.org>
95031
95032         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95033         (fwrite_success_callback): New declaration.
95034         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95035         print_unicode_char. Call failure callback instead of error.
95036         (fwrite_success_callback): New function.
95037         (exit_failure_callback): New function.
95038         (fallback_failure_callback): New function.
95039         (print_unicode_char): Call unicode_to_mb.
95040
95041 2002-01-26  Jim Meyering  <meyering@lucent.com>
95042
95043         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95044         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95045
95046 2002-01-26  Jim Meyering  <meyering@lucent.com>
95047
95048         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95049
95050 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95051
95052         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95053
95054 2002-01-22  Jim Meyering  <meyering@lucent.com>
95055
95056         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95057         Otherwise, some versions of automake would omit the rule that makes
95058         Makefile from Makefile.in.
95059
95060 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95061
95062         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95063         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95064         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95065         (memcoll): Set errno to zero if there is no error.
95066
95067         * lib/quotearg.c (quotearg_buffer_restyled):
95068         Fix bug with quoting buffers containing NUL when backslashing escapes.
95069         This bug was exposed by the other changes in this patch.
95070         (quotearg_n_options): New arg ARGSIZE.
95071         All callers changed.
95072         (quoting_options_from_style): New function.
95073         (quotearg_n_style): Use it.
95074         (quotearg_n_style_mem): New function.
95075
95076         * lib/quotearg.h (quotearg_n_style_mem): New function.
95077
95078 2002-01-19  Jim Meyering  <meyering@lucent.com>
95079
95080         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95081         Remove useless quotes: DF_PROG="df".
95082         * m4/strnlen.m4: New file.
95083
95084 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95085
95086         * lib/backupfile.c (ISDIGIT): Comment fix.
95087         * lib/getdate.y (ISDIGIT): Likewise.
95088         * lib/posixtm.c (ISDIGIT, year): Likewise.
95089         * lib/strverscmp.c (ISDIGIT): Likewise.
95090         * lib/userspec.c (ISDIGIT): Likewise.
95091
95092 2002-01-16  Jim Meyering  <meyering@lucent.com>
95093
95094         * lib/getdate.y: Add three semicolons, each just before a closing
95095         brace. Bison (as of version 1.31) no longer papers over that mistake.
95096
95097 2002-01-05  Jim Meyering  <meyering@lucent.com>
95098
95099         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95100
95101 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95102
95103         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95104         not silently exit merely because the output buffer happens to
95105         have nothing pending.
95106
95107 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95108
95109         See the big note in ../ChangeLog.
95110         * lib/human.c (suffixes): Prefer K to k for 1024.
95111         (generate_suffix_backwards): New function.
95112         (human_readable_inexact): Use it.
95113         * lib/xstrtol.c (__xstrtol): If there is no number but there
95114         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95115         Accept 'K' as well as 'k'.
95116
95117 2001-12-15  Jim Meyering  <meyering@lucent.com>
95118
95119         * lib/regex.h (__restrict_arr): Update from libc.
95120
95121         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95122         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95123         (STREQ): Define.
95124
95125 2001-12-14  Jim Meyering  <meyering@lucent.com>
95126
95127         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95128         Suggestion from Bruno Haible.
95129
95130 2001-12-10  Jim Meyering  <meyering@lucent.com>
95131
95132         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95133         xrealloc, Instead, include "xalloc.h".
95134         (initbuffer): Don't cast xmalloc return value to char*.
95135         (readline): Reword comment.
95136         Don't cast xrealloc return value to char*
95137         Return NULL, not 0.
95138
95139 2001-12-09  Jim Meyering  <meyering@lucent.com>
95140
95141         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95142         about `signed and unsigned type in conditional expression'.
95143         * lib/posixtm.c (posix_time_parse): Likewise.
95144
95145         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95146
95147         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95148         to avoid a pedantic warning.
95149
95150         * lib/getstr.c: Don't include assert.h.
95151         (getstr): Remove warning-evoking assertions.
95152         Return -1 if offset parameter is out of bounds.
95153         Change the type of a local from int to size_t.
95154
95155         * lib/strftime.c (my_strftime_localtime_r): Include this function
95156         definition in the `#if ! HAVE_TM_GMTOFF' block.
95157
95158         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95159         Include xalloc.h instead.
95160
95161 2001-12-02  Jim Meyering  <meyering@lucent.com>
95162
95163         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95164         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95165         included.
95166
95167         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95168         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95169
95170 2001-11-30  Akim Demaille  <akim@epita.fr>
95171
95172         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95173         before being defined.
95174
95175 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95176
95177         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95178         First arg is int, not unsigned.
95179         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95180         (SIZE_MAX, UINT_MAX): New macros.
95181         (quotearg_n_options): Abort if N is negative.
95182         Avoid overflow check on hosts where size_t is 64 bits and int
95183         is 32 bits, as overflow is impossible there.
95184         Fix off-by-one typo that caused unnecessary reallocation.
95185
95186 2001-11-27  Jim Meyering  <meyering@lucent.com>
95187
95188         * lib/tempname.c: Merge with version from libc.
95189         * lib/regex.c: Likewise.
95190
95191         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95192         systems for which STDC_HEADERS is 0, it was not included, resulting in
95193         a warning about an integer-to-pointer conversion problem with getenv.
95194         Reported by Volker Borchert.
95195
95196 2001-11-26  Jim Meyering  <meyering@lucent.com>
95197
95198         * lib/gtod.h: Remove file.
95199         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95200         * lib/gettimeofday.c: Don't include gtod.h.
95201         (GTOD_init): Remove function.
95202         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95203         Suggestion from Volker Borchert.
95204
95205 2001-11-23  Jim Meyering  <meyering@lucent.com>
95206
95207         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95208         it.
95209         * lib/hash.c (struct hash_table): Define it here instead.
95210
95211 2001-11-22  Jim Meyering  <meyering@lucent.com>
95212
95213         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95214
95215 2001-11-20  Jim Meyering  <meyering@lucent.com>
95216
95217         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95218         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95219
95220 2001-11-19  Jim Meyering  <meyering@lucent.com>
95221
95222         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95223         directory.  Use "conftestXXXXXX" as the template.
95224         Suggestion from Paul Eggert.
95225
95226         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95227         immediately, so the test doesn't mistakenly hit the max-open-files
95228         limit.
95229
95230 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95231
95232         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95233         (TEMPORARIES): New macro.
95234         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95235         removes an artificial limitation (e.g. HP-UX 10.20, where
95236         TMP_MAX is 17576).
95237
95238 2001-11-18  Jim Meyering  <meyering@lucent.com>
95239
95240         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95241
95242 2001-11-18  Jim Meyering  <meyering@lucent.com>
95243
95244         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95245         on SunOS 4.
95246
95247         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95248         files will be created before anything else.
95249
95250 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95251
95252         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95253         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95254
95255 2001-11-17  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95258         Prompted by a report from Bob Proulx.
95259
95260         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95261         Instead, require UTILS_FUNC_MKSTEMP.
95262
95263 2001-11-17  Jim Meyering  <meyering@lucent.com>
95264
95265         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95266         Now, that's done as part of AC_FUNC_STRTOD.
95267
95268 2001-11-17  Jim Meyering  <meyering@lucent.com>
95269
95270         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95271         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95272         rather than group writable.  Patch by Juan F. Codagnone.
95273
95274         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95275         xrealloc, Instead, include "xalloc.h".
95276
95277         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95278         Remove explicit declarations of xmalloc, xrealloc,
95279         and xstrdup.  Instead, include "xalloc.h".
95280
95281         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95282         unlocked-io.h.
95283         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95284         Likewise.
95285         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95286
95287         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95288         Reported by Padraig Brady.
95289
95290         * lib/mkstemp.c: #undef mkstemp.
95291         Include config.h.
95292         (rpl_mkstemp): Rename from mkstemp.
95293         Protoize.
95294
95295 2001-11-16  Jim Meyering  <meyering@lucent.com>
95296
95297         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95298         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95299         determine the amount of total physical memory, use pstat_getstatic.
95300         HPUX-11 doesn't define _SC_PHYS_PAGES.
95301         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95302         If sysconf couldn't be used to determine the amount of available
95303         physical memory, use both pstat_getstatic and pstat_getdynamic.
95304         Based on a patch from Bob Proulx.
95305
95306 2001-11-10  Jim Meyering  <meyering@lucent.com>
95307
95308         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95309         (jm_PREREQ): Use it.
95310
95311 2001-11-09  Jim Meyering  <meyering@lucent.com>
95312
95313         * m4/jm-macros.m4: Require autoconf-2.52f.
95314         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95315         Use these AC_-prefixed names, not the AM_-prefixed ones.
95316
95317         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95318
95319 2001-11-05  Jim Meyering  <meyering@lucent.com>
95320
95321         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95322
95323 2001-11-04  Jim Meyering  <meyering@lucent.com>
95324
95325         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95326         $DEFS.
95327
95328 2001-11-03  Jim Meyering  <meyering@lucent.com>
95329
95330         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95331         of AC_DEFUN.
95332
95333         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95334         know the name of the variable in the macro definition.
95335
95336 2001-11-03  Jim Meyering  <meyering@lucent.com>
95337
95338         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95339         in argmatch_to_argument call.
95340
95341         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95342         argument.
95343
95344         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95345         e.g., a fault due to an attempt to free a NULL pointer.
95346
95347 2001-11-01  Jim Meyering  <meyering@lucent.com>
95348
95349         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95350         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95351
95352 2001-11-01  Jim Meyering  <meyering@lucent.com>
95353
95354         * lib/dirfd.c, lib/dirfd.h: New files.
95355         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95356
95357         * lib/hash.c (hash_print) [TESTING]: Clean up.
95358
95359 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95360
95361         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95362         to avoid a warning if -Wall.
95363
95364 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95365
95366         * README: New file
95367         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95368         (per RMS's instructions, this is now the canonical source)
95369         * lgpl/, gpl/: New directories.
95370
95371 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95372
95373         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95374
95375 2001-10-21  Jim Meyering  <meyering@lucent.com>
95376
95377         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95378         this code would end up calling gettext even in packages built
95379         with --disable-nls.
95380         * lib/getopt.c (_): Likewise.
95381         * lib/regex.c (_): Likewise.
95382
95383 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95384
95385         * m4/error.m4 (jm_PREREQ_ERROR):
95386         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95387         AC_FUNC_STRERROR_R does that.
95388         Check for strerror declaration.
95389
95390         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95391         are supposed to have them these days.
95392         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95393         Merge changes from latest Autoconf CVS.
95394         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95395         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95396         POSIX decided to standardize on the int flavor of strerror_r.
95397
95398 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95399
95400         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95401         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95402         Use strerror_r that is only a macro, even if it is not a function.
95403         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95404         (private_strerror): Use prototypes, not old-style function definition.
95405         (print_errno_message): New function.
95406         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95407         char*-flavored one.
95408         (error_tail, error, error_at_line): Use it.
95409
95410 2001-10-11  Jim Meyering  <meyering@lucent.com>
95411
95412         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95413         and quote_n (1, ... to avoid clobbering a buffer.
95414
95415 2001-10-05  Jim Meyering  <meyering@lucent.com>
95416
95417         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95418         hash-pjw.h.
95419         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95420         * lib/hash-pjw.h: New file.
95421
95422 2001-09-30  Jim Meyering  <meyering@lucent.com>
95423
95424         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95425         `struct fsstat' has the `f_fstypename' member.
95426         Use that to define FS_TYPE, which is now used to make
95427         the getfsstat link test tighter.
95428
95429 2001-09-30  Jim Meyering  <meyering@lucent.com>
95430
95431         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95432         Include <sys/ucred.h>, for Apple Darwin.
95433         Include sys/mount.h and sys/fs_types.h only if available.
95434         (FS_TYPE): Define.
95435         (read_filesystem_list): Use FS_TYPE.
95436
95437 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95438
95439         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95440         a boolean context.
95441
95442 2001-09-29  Jim Meyering  <meyering@lucent.com>
95443
95444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95445         [one-argument getmntent function]): Include stdio.h before mntent.h.
95446         SunOS 4.1.x needs it for the declaration of `FILE'.
95447         Patch by Volker Borchert.
95448
95449         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95450         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95451         sys/fs_types.h, and make the link-test for getfsstat guard #include
95452         directives with appropriate #if HAVE_*_H tests so that we can
95453         detect getfsstat on Apple Darwin1.3.7 systems.
95454         Reported by Nelson Beebe.
95455         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95456
95457 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95458
95459         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95460         #defines strtoimax.  Also treat the other strto* functions
95461         like strtoimax.
95462
95463         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95464         Check for strtoul and strtoumax,
95465         as those declarations are made even in the signed case.
95466         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95467         Likewise, for strtol and strtoimax.
95468
95469 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95470
95471         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95472         #defines strtoimax.  Also treat the other strto* functions
95473         like strtoimax.
95474
95475         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95476         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95477         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95478
95479 2001-09-26  Jim Meyering  <meyering@lucent.com>
95480
95481         Most macros in unlocked-io.h had the wrong number of arguments.
95482         * lib/gen-uio: New script.
95483         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95484         * lib/unlocked-io.hin: Remove file.
95485         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95486         rather than trying to embed it here.
95487         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95488         Reported by Padraig Brady.
95489
95490 2001-09-25  Volker Borchert  <bt@teknon.de>
95491
95492         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95493         `result'.
95494
95495 2001-09-24  Jim Meyering  <meyering@lucent.com>
95496
95497         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95498
95499 2001-09-23  Jim Meyering  <meyering@lucent.com>
95500
95501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95502         instead of the mere test for existence of mntent.h.  The latter
95503         would get a false-positive on AIX 3.4 systems.
95504         In the outer getmntent if-block, don't die if neither of the getmntent
95505         tests succeeds.  Instead, just fall through and continue with the
95506         remaining tests.
95507
95508 2001-09-23  Jim Meyering  <meyering@lucent.com>
95509
95510         * lib/mountlist.c: Remove useless parentheses in #if directives.
95511         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95512         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95513
95514 2001-09-22  Jim Meyering  <meyering@lucent.com>
95515
95516         * m4/gettext.m4: New file.  From gettext.
95517         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95518         * m4/progtest.m4: Likewise
95519         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95520         * m4/glibc21.m4: Likewise.
95521
95522         * m4/libintl.m4: Remove.  No longer used.
95523
95524 2001-09-22  Jim Meyering  <meyering@lucent.com>
95525
95526         * lib/localcharset.c: Update from latest gettext.
95527         * lib/config.charset: Likewise.
95528
95529 2001-09-20  Jim Meyering  <meyering@lucent.com>
95530
95531         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95532         strtoimax.
95533         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95534         strtoumax.
95535
95536 2001-09-20  Jim Meyering  <meyering@lucent.com>
95537
95538         * lib/xstrtol.c (strtoimax): Guard declaration with
95539         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95540         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95541         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95542         (strtoumax): Likewise, for completeness (it wasn't necessary).
95543
95544 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95545
95546         * lib/strtoimax.c (HAVE_LONG_LONG):
95547         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95548         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95549         to work around bug in IBM C compiler.
95550
95551 2001-09-17  Jim Meyering  <meyering@lucent.com>
95552
95553         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95554         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95555         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95556         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95557         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95558         whenever the right hand side need not be expanded by the shell.
95559
95560 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95561
95562         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95563         library.  It's not correct, as some older glibcs are buggy.
95564         fnmatch wasn't fixed until glibc 2.2.
95565
95566         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95567         special shell magic here.
95568
95569 2001-09-16  Jim Meyering  <meyering@lucent.com>
95570
95571         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95572         * m4/jm-macros.m4: Require it.
95573
95574 2001-09-16  Jim Meyering  <meyering@lucent.com>
95575
95576         * lib/mkdir.c: New file.
95577
95578 2001-09-15  Jim Meyering  <meyering@lucent.com>
95579
95580         * m4/jm-macros.m4: Check for help2man.
95581
95582 2001-09-11  Jim Meyering  <meyering@lucent.com>
95583
95584         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95585         The body, by Paul Eggert, was moved here from configure.in.
95586         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95587
95588 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95589
95590         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95591         (jm_PREREQ): Use it.
95592
95593 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95594
95595         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95596         Use ssize_t, not int, to store result of readlink.
95597         Check for ssize_t overflow as well as size_t overflow,
95598         as POSIX says the result of readlink is implementation-defined
95599         when ssize_t overflows.
95600         Remove unnecessary cast to char*.
95601         Use free+malloc instead of realloc, as the storage doesn't need
95602         to be preserved and it's clearer and can be more efficient that way.
95603         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95604         * lib/xreadlink.h (xreadlink): Update prototype.
95605
95606 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95607
95608         * lib/xgetcwd.c: Revert some of the previous change; intead,
95609         fix the HAVE_GETCWD_NULL code to behave more like the
95610         !HAVE_GETCWD_NULL code used to.
95611
95612         Include "xalloc.h".
95613         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95614         invoke xalloc_die.
95615
95616 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95617
95618         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95619         sys/param.h, as pathmax.h includes them.
95620
95621 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95622
95623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95624         (jm_PREREQ_XGETCWD): New macro.
95625
95626         * m4/getcwd.m4: New file.
95627
95628 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95629
95630         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95631         like the HAVE_GETCWD_NULL code.
95632         Include pathmax.h if not HAVE_GETCWD.
95633         Do not include xalloc.h.
95634         (INITIAL_BUFFER_SIZE): New symbol.
95635         Do not use xmalloc / xrealloc, since the caller is responsible for
95636         handling errors.  Preserve errno around `free' during failure.
95637         Do not overrun buffer when using getwd.
95638
95639 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95640
95641         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95642         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95643         getcwd (NULL, 0).
95644
95645 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95646
95647         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95648         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95649         spotted by Jim Meyering.
95650
95651 2001-09-03  Jim Meyering  <meyering@lucent.com>
95652
95653         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95654         failure.
95655
95656 2001-09-02  Jim Meyering  <meyering@lucent.com>
95657
95658         * lib/error.c: Update from GNU libc.
95659
95660 2001-09-01  Jim Meyering  <meyering@lucent.com>
95661
95662         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95663         Used by df.
95664
95665 2001-09-01  Jim Meyering  <meyering@lucent.com>
95666
95667         * lib/xreadlink.c: New file.
95668         * lib/xreadlink.h: New file.
95669         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95670         xreadlink.h.
95671
95672         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95673         doesn't conflict with sparc Solaris 7's definition in
95674         /usr/include/sys/int_types.h.
95675
95676         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95677         files.
95678         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95679         and strncasecmp as r-values.  Unixware didn't have declarations.
95680
95681 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95682
95683         * lib/xstrtol.h: Add copyright notice.
95684         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95685         LONGINT_INVALID_SUFFIX_CHAR.
95686
95687 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95688
95689         * lib/xstrtol.c (strtoimax): New decl.
95690
95691 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95692
95693         * lib/xgetcwd.c: Don't include pathmax.h.
95694         Include stdlib.h and unistd.h if available.
95695         Include xalloc.h.
95696         (xmalloc, xstrdup, free): Remove decls.
95697         (xgetcwd): Don't assume sizes fit in unsigned.
95698         Check for overflow when computing sizes.
95699         Simplify reallocation code.
95700
95701 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95702
95703         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95704         a directory's st_size can have an arbitrary value, so the old
95705         usage could waste an arbitrary amount of memory.  All uses
95706         changed.
95707         * lib/savedir.h: Update prototype.
95708
95709 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95710
95711         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95712
95713         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95714         old strtoimax.c.
95715
95716         Also, make the following further changes to make this file's
95717         configuration more similar to that of strtol.c:
95718         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95719         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95720         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95721         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95722         changed to signed values.
95723
95724         And make the following changes as well:
95725         Fix copyright notice, as 1999 was missing.
95726         (verify): New macro.
95727         (strtoimax): Check sizes at compile-time, not run-time.
95728         Prefer strtol to strtoll if both work.
95729         (main): Remove; it was not that useful and was a pain to maintain.
95730
95731         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95732
95733 2001-08-31  Jim Meyering  <meyering@lucent.com>
95734
95735         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95736         Use an initial, malloc'd, buffer of length 128 rather than
95737         a statically allocated one of length 1024.
95738
95739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95740
95741         Simplify code, partly by assuming autoconf 2.52 semantics.
95742
95743         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95744
95745         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95746         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95747         All uses removed.
95748         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95749         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95750         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95751         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95752         jm_AC_HEADER_INTTYPES_H.
95753         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95754
95755         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95756
95757         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95758         Quote first arg of AC_DEFUN.
95759         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95760         since they are needed to parse the include file even if we need
95761         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95762         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95763         but with opposite signedness.
95764
95765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95766
95767         Merge 'exclude' changes from tar 1.13.22.
95768         This fixes one or two unlikely storage allocation overflow bugs,
95769         but doesn't change user-visible behavior otherwise.
95770
95771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95772
95773         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95774         (jm_PREREQ_EXCLUDE): New macro.
95775
95776 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95777
95778         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95779         tm to be declared.
95780
95781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95782
95783         * lib/hash.c: Remove '2001' from copyright notice.
95784
95785 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95786
95787         * lib/full-write.h: New file.
95788         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95789         * lib/full-write.c: Correct credits, as cccp.c no longer
95790         exists and anyway it was so heavily changed from the old cccp
95791         code as to be unrecognizable.  Include full-write.h.
95792         (full_write): Return size_t, with short writes meaning failure.
95793         All callers changed.  This fixes a bug with large buffers
95794         on 64-bit hosts.
95795         * lib/utime.c: Include full-write.h.
95796
95797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95798
95799         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95800         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95801         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95802         Include if available.
95803         (<xalloc.h>): Include
95804         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95805         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95806         collide with FNM macros.
95807         (struct patopts): New struct.
95808         (struct exclude): Use it, as exclude patterns now come with options.
95809         (new_exclude): Support above changes.
95810         (new_exclude, add_exclude_file):
95811         Initial size must now be a power of two to simplify overflow checking.
95812         (free_exclude, fnmatch_no_wildcards): New function.
95813         (excluded_filename): No longer requires options arg, as the options
95814         are determined by add_exclude.  Now returns bool, not int.
95815         (excluded_filename, add_exclude):
95816         Add support for the fancy new exclusion options.
95817         (add_exclude, add_exclude_file): Now takes int options arg.
95818         Check for arithmetic overflow when computing sizes.
95819         (add_exclude_file): xrealloc might modify errno, so don't
95820         realloc until after errno might be used.
95821
95822         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95823         New macros.
95824         (free_exclude): New decl.
95825         (add_exclude, add_exclude_file): Now takes int options arg.
95826         (excluded_filename): No longer requires options arg, as the options
95827         are determined by add_exclude.  Now returns bool, not int.
95828
95829 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95830
95831         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95832
95833 2001-08-27  Jim Meyering  <meyering@lucent.com>
95834
95835         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95836
95837         * lib/version-etc.c (N_): Remove definition.
95838         Revert most of last change.
95839         Instead, simply don't mark the `Copyright...' string for translation.
95840         Based on advice from Paul Eggert.
95841
95842         * lib/strtoxmax.c: Tweak comment.
95843
95844 2001-08-26  Jim Meyering  <meyering@lucent.com>
95845
95846         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95847
95848         * m4/xstrtoimax.m4: New file.
95849         * m4/xstrtoumax.m4: Add comments explaining why we
95850         AC_REPLACE_FUNCS(strtol).
95851
95852 2001-08-26  Jim Meyering  <meyering@lucent.com>
95853
95854         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95855         of copyright with `%s' so translators don't get an untranslated
95856         message in 2002.
95857         (COPYRIGHT_YEAR): Define.
95858         (version_etc): Use fprintf rather than fputs.
95859         Suggestion from Ulrich Drepper.
95860
95861         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95862
95863         * lib/strtoll.c: New file, from GNU libc.
95864         * lib/xstrtoimax.c: New file.
95865
95866         * lib/xstrtol.h: Add xstrtoimax.
95867         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95868         * lib/strtoimax.c: New file.  Likewise, but first define
95869         STRTOUXMAX_SIGNED.
95870
95871         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95872         ...
95873         * lib/strtoxmax.c: ... then renamed to this.
95874
95875 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95876
95877         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95878         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95879         (jm_AC_TYPE_INTMAX_T): New macro.
95880         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95881
95882         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95883
95884         * m4/longlong.m4: Renamed from ulonglong.m4.
95885         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95886         * m4/uintmax_t.m4: Removed.
95887
95888 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95889
95890         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95891         Port to Solaris 8, where 'sed' requires a space after the 'r'
95892         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95893         Redirect output to $tmp just once.
95894
95895 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95896
95897         * lib/addext.c (<errno.h>): Include.
95898         (errno): Declare if not defined.
95899         (addext): Work correctly when pathconf returns -1 and leaves
95900         errno alone because there is no limit.  Also, work even if
95901         pathconf returns a value greater than SIZE_MAX.
95902
95903 2001-08-12  Jim Meyering  <meyering@lucent.com>
95904
95905         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95906         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95907         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95908         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95909         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95910         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95911         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95912         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95913         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95914         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95915         utime.m4, utimes.m4, xstrtoumax.m4:
95916         Quote the first argument in each use of AC_DEFUN.
95917
95918 2001-08-12  Jim Meyering  <meyering@lucent.com>
95919
95920         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95921         Simply `return getcwd (NULL, 0);'.
95922         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95923         Use 1300 as initial value for length, not PATH_MAX.
95924
95925         * lib/pathmax.h: Clean up cpp syntax.
95926
95927 2001-08-12  Jim Meyering  <meyering@lucent.com>
95928
95929         * lib/gettimeofday.c: New file.
95930         * lib/gtod.h: New file.
95931         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95932
95933 2001-08-05  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/jm-macros.m4: Require autoconf-2.52.
95936
95937 2001-08-04  Jim Meyering  <meyering@lucent.com>
95938
95939         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95940         stmt, to get in sync with glibc.
95941
95942 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95943
95944         The following changes are from gettext 0.10.39 as maintained by
95945         Bruno Haible.
95946
95947         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95948         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95949         with inverted sense.  All uses changed.
95950
95951         * lib/mbswidth.c: Don't include <limits.h>.
95952         Include <stdlib.h> and <string.h> unconditionally.
95953         (iswcntrl, mbsinit, ISCNTRL): New macros.
95954         (mbsnwidth): Use K&R style function declarations.
95955         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95956         can optimize it when MB_CUR_MAX == 1.
95957         The width of control characters is zero, not 1.
95958
95959 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95960
95961         The following changes are from gettext 0.10.39 as maintained by
95962         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95963
95964         * m4/codeset.m4: Upgrade to serial AM1.
95965         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95966         all uses changed.  Quote first arg of AC_DEFUN.
95967         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95968
95969         * m4/iconv.m4: Upgrade to serial AM2.
95970         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95971         Add --with-libconv-prefix.
95972         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95973         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95974         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95975         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95976         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95977
95978         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95979         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95980         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95981         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95982         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95983         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95984         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95985         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95986         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95987
95988         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95989         string.h any more.
95990
95991         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95992         not the default value.
95993
95994         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95995         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95996         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95997         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95998         Also check for iswcntrl, used for wcwidth fallback.
95999         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96000         to Autoconf 2.13.
96001
96002 2001-08-03  Jim Meyering  <meyering@lucent.com>
96003
96004         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96005         as it was in the original.  Reported by Paul Eggert.
96006
96007 2001-07-16  Jim Meyering  <meyering@lucent.com>
96008
96009         * m4/gettimeofday.m4: New file.
96010         Prompted by a report from Bernhard Baehr.
96011
96012 2001-07-15  Jim Meyering  <meyering@lucent.com>
96013
96014         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96015         stuff. Now it's in ../Makefile.cfg.
96016
96017 2001-07-15  Jim Meyering  <meyering@lucent.com>
96018
96019         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96020         (BUILT_SOURCES): Add unlocked-io.h.
96021         (io_functions): Define.
96022         (unlocked-io.h): New rule.
96023         (DISTCLEANFILES): Add unlocked-io.h.
96024         (all-local): Depend on unlocked-io.h, to ensure it is created.
96025
96026         * lib/unlocked-io.hin: New file
96027
96028         * lib/regex.c: Update from glibc.
96029
96030 2001-07-05  Jim Meyering  <meyering@lucent.com>
96031
96032         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96033         recommendation.
96034         (libfetish_a_SOURCES): Put all .h files here instead.
96035         Remove a thus-exposed (better checks in automake) duplicate and
96036         two unnecessary .h files.
96037
96038 2001-07-04  Jim Meyering  <meyering@lucent.com>
96039
96040         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96041         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96042         distcheck failure.
96043
96044 2001-07-02  Jim Meyering  <meyering@lucent.com>
96045
96046         The following changes were prompted by suggestions from Bruno Haible.
96047
96048         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96049         is now generated.
96050         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96051         definition of EXTRA_DIST.
96052         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96053         ensure that the generated file is created/updated whenever the list
96054         of $(unlocked_functions) is changed.
96055         (jm-glibc-io.m4): New rule.
96056         (unlocked-io.h): New rule -- currently unused.
96057
96058 2001-06-24  Jim Meyering  <meyering@lucent.com>
96059
96060         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96061         unmatched right bracket, rather than kludging it with an extra,
96062         falsely-matching quote in a comment.  Patch by Akim Demaille.
96063
96064 2001-06-11  Jim Meyering  <meyering@lucent.com>
96065
96066         * lib/regex.c: Update from GNU libc.
96067
96068 2001-05-27  Jim Meyering  <meyering@lucent.com>
96069
96070         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96071         Check for ut_type in struct utmp.
96072
96073 2001-05-27  Jim Meyering  <meyering@lucent.com>
96074
96075         * lib/readutmp.h (UT_TYPE): Define.
96076
96077 2001-05-24  Jim Meyering  <meyering@lucent.com>
96078
96079         * lib/argmatch.c: Include "quote.h".
96080         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96081         quote function.  Reported by Göran Uddeborg.
96082
96083 2001-05-22  Jim Meyering  <meyering@lucent.com>
96084
96085         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96086         now that we use the package-supplied version unconditionally.
96087         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96088
96089 2001-05-21  Jim Meyering  <meyering@lucent.com>
96090
96091         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96092         shell syntax errors.
96093
96094 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96095
96096         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96097
96098 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96099
96100         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96101         Don't bother to check library strftime, since
96102         we'll be using our own my_strftime function anyway.
96103         Define my_strftime instead of strftime.
96104
96105 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96106
96107         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96108         which is not yet declared.
96109
96110 2001-05-15  Jim Meyering  <meyering@lucent.com>
96111
96112         * m4/regex.m4: Use proper quoting so brackets appear in the test
96113         program.
96114         Reported by, and with help from, Bruno Haible.
96115
96116 2001-05-13  Jim Meyering  <meyering@lucent.com>
96117
96118         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96119         undefined.
96120
96121 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96122
96123         dirname code cleanup.  base_name now behaves more compatibly
96124         with POSIX basename when given file names that have trailing
96125         slashes, and similarly for dir_name.  Add new primitives
96126         base_len and dir_len.  Put the directory-name-related decls
96127         into dirname.h.
96128
96129         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96130         * lib/backupfile.c (base_name): Likewise.
96131         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96132         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96133         * lib/makepath.c (strip_trailing_slashes): Likewise.
96134         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96135         ISSLASH): Likewise.
96136         * lib/rename.c (strip_trailing_slashes): Likewise.
96137         * lib/same.c (base_name): Likewise.
96138         * lib/stripslash.c (ISSLASH): Likewise.
96139
96140         * lib/addext.c: Include <dirname.h> after size_t is defined.
96141         * lib/backupfile.c: Likewise.
96142
96143         * lib/addext.c (addext): Use base_len to trim redundant
96144         trailing slashes instead of doing it ourselves.
96145         But do not trim the last slash if it is not redundant.
96146
96147         * lib/backupfile.c (find_backup_file_name,
96148         max_backup_version): Use base_len instead of rolling it ourselves.
96149         Handle the case of "" and (on DOS) "C:" correctly.
96150
96151         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96152         needed. Include <string.h>, <dirname.h>.
96153         (base_name): Allow file names ending in slashes, other than names
96154         that are all slashes.  In this case, return the basename followed
96155         by the slashes.  This is more general, and can be used in places
96156         where the original base_name purposely had an assertion failure.
96157         (base_len): New function.
96158
96159         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96160         Do not include <assert.h>; no longer needed.
96161         Include xalloc.h.
96162         (memrchr): Remove decl.
96163         (dir_name_r): Remove.
96164         (dir_len): Renamed from dirlen.  All callers changed.
96165         Rewrite in terms of base_name, for simplicity and consistency.
96166         (dir_name): Never return NULL.  All callers changed.
96167         Do not include <stdlib.h> in test program; no longer needed.
96168         return 0; is fine for test program.
96169
96170         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96171         New macros.
96172         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96173
96174         * lib/path-concat.c (path_concat): Use base_len to compute
96175         base length, not strlen; this means we cannot rely on memcpy
96176         to null-terminate.
96177
96178         * lib/same.c (STREQ): Remove.
96179         (same_name): Handle the case where the basename ends in trailing '/'.
96180
96181         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96182         a slash was stripped.  Do not strip the last slash after a
96183         file system prefix.
96184
96185 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96186
96187         * lib/Makefile.am (libfetish_a_SOURCES):
96188         Add strftime.c, since we now compile it on all hosts.
96189
96190         * lib/strftime.c (my_strftime):
96191         Define to nstrftime if emacs, but only if my_strftime is not defined.
96192         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96193         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96194         Add one more extra argument: a nanoseconds value.
96195         All uses changed.
96196         (ns): New macro.
96197         (my_strftime function): Add %N format.
96198         (emacs_strftimeu): Renamed from emacs_strftime,
96199         with extra ut argument.
96200
96201 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96202
96203         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96204
96205 2001-04-21  Jim Meyering  <meyering@lucent.com>
96206
96207         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96208         doesn't interfere.
96209
96210 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96211
96212         * m4/ftruncate.m4: Check for chsize.
96213         Link with ftruncate.o unconditionally if ftruncate is missing.
96214         This was required when cross-compiling to i586-mingw32msvc.
96215
96216 2001-04-08  Jim Meyering  <meyering@lucent.com>
96217
96218         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96219         recomputed; that's necessary when the offset spans a DST transition.
96220         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96221
96222 2001-04-02  Jim Meyering  <meyering@lucent.com>
96223
96224         * lib/regex.h, regex.c: Update from GNU libc.
96225
96226 2001-03-24  Jim Meyering  <meyering@lucent.com>
96227
96228         * m4/jm-macros.m4: Require autoconf-2.49d.
96229
96230 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96231
96232         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96233
96234 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96235
96236         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96237
96238 2001-03-17  Jim Meyering  <meyering@lucent.com>
96239
96240         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96241         now that the version in autoconf is equivalent.
96242         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96243
96244         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96245         Suggestion from Akim Demaille.
96246
96247         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96248         (jm_PREREQ_TEMPNAME): New function.
96249
96250 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96251
96252         * lib/tempname.c (uint64_t): Define to uintmax_t if
96253         not defined, and if UINT64_MAX is not defined.
96254         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96255         Reported by John David Anglin.
96256
96257 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96258
96259         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96260         resolve alias if codeset is empty.
96261         * lib/config.charset (BeOS): Use wildcard syntax.
96262
96263 2001-03-13  Jim Meyering  <meyering@lucent.com>
96264
96265         * lib/path-concat.c (path_concat)
96266         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96267         concatenating e.g., `C:' and `foo'.
96268         From Bruno Haible.
96269
96270 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96271
96272         * lib/localcharset.c (locale_charset): Don't use
96273         setlocale(LC_CTYPE,NULL). Don't return NULL.
96274         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96275
96276 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96277
96278         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96279         support for DOS/DJGPP.
96280
96281 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96282
96283         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96284         lacks mkstemp.  Compile our own tempname.c if we compile our own
96285         mkstemp.c, as mkstemp relies on tempname.
96286
96287 2001-03-01  Jim Meyering  <meyering@lucent.com>
96288
96289         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96290         AH_VERBATIM really does output its argument verbatim.
96291
96292 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96293
96294         * lib/Makefile.am (libfetish_a_SOURCES):
96295         Add dup-safer.c, fopen-safer.c.
96296         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96297
96298         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96299         * lib/unistd-safer.h: New files.
96300
96301 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96302
96303         The mkstemp replacement is taken from glibc 2.2.2, with some
96304         portability fixes for use outside glibc, as follows:
96305
96306         * lib/tempname.c (struct_stat64): New macro.
96307         (direxists, __gen_tempname): Use it.
96308         This avoids a portability problem with Solaris 8.
96309
96310         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96311         (<stddef.h>, <stdint.h>, <string.h>):
96312         Include only if STDC_HEADERS || _LIBC.
96313         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96314         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96315         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96316         (__set_errno): Define this macro if <errno.h> doesn't.
96317         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96318         Define these macros if <stdio.h> doesn't.
96319         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96320         Define these macros if <sys/stat.h>
96321         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96322         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96323         __xstat64): Define if not _LIBC.
96324         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96325         (__gen_tempname): Invoke gettimeofday only if
96326         HAVE_GETTIMEOFDAY || _LIBC;
96327         otherwise, fall back on plain "time".
96328         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96329
96330         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96331
96332         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96333
96334 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96335
96336         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96337
96338 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96339
96340         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96341         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96342         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96344
96345 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96346
96347         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96348         Remove workaround macros for hosts that have mbrtowc but not
96349         mbstate_t, as we now insist on proper declarations for both
96350         before using mbrtowc.
96351
96352 2001-02-17  Jim Meyering  <meyering@lucent.com>
96353
96354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96355         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96356         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96357         UnixWare 7.1.1.
96358
96359         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96360         rather than AC_CACHE_VAL.
96361
96362 2001-02-17  Jim Meyering  <meyering@lucent.com>
96363
96364         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96365         around included file name.
96366
96367         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96368
96369         * lib/strftime.c: Update from GNU libc (the only changes were to
96370         comments).
96371
96372 2001-02-17  Jim Meyering  <meyering@lucent.com>
96373
96374         * lib/regex.c: Update from libc.
96375
96376 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96377
96378         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96379         clash.
96380
96381 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96382
96383         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96384         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96385         Reported by Mark Hounschell via Paul Eggert.
96386
96387 2001-02-07  Jim Meyering  <meyering@lucent.com>
96388
96389         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96390
96391 2001-02-05  Jim Meyering  <meyering@lucent.com>
96392
96393         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96394         it includes the patch required for `large file' support with at least
96395         HP-UX's 10.20 /bin/cc.
96396
96397 2001-02-03  Jim Meyering  <meyering@lucent.com>
96398
96399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96400         AS_IF, now that it works once again (mysteriously).
96401         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96402
96403 2001-01-30  Jim Meyering  <meyering@lucent.com>
96404
96405         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96406         * m4/chown.m4: Rename conftestchown to conftest.chown.
96407         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96408         s/conftestdir2/conftest.d2/.
96409         * m4/utimes.m4: s/conftestdata/conftest.data/
96410         Inspired by Pavel Roskin's change in autoconf.
96411
96412 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96413
96414         * lib/config.charset: Update for FreeBSD 4.2.
96415
96416 2001-01-27  Jim Meyering  <meyering@lucent.com>
96417
96418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96419         a use of AS_IF.
96420         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96421
96422 2001-01-26  Jim Meyering  <meyering@lucent.com>
96423
96424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96425         quotearg.c includes it.
96426
96427 2001-01-26  Jim Meyering  <meyering@lucent.com>
96428
96429         * lib/quotearg.c: Include stddef.h.
96430         * lib/quote.c: Include stddef.h.
96431         Reported by Axel Kittenberger.
96432
96433         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96434         line in double quotes so that it evokes a better diagnostic.
96435         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96436         Reported by Axel Kittenberger.
96437
96438 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96439
96440         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96441         as if it was a `charset'.
96442
96443 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96444
96445         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96446         has const.
96447
96448 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96449
96450         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96451         to avoid a warning.  Add back 'const' to inptr.
96452
96453 2001-01-20  Jim Meyering  <meyering@lucent.com>
96454
96455         Be sure that headers are checked before used in code compiled
96456         for the type checks.
96457         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96458         In place of that, invoke jm_CHECK_ALL_TYPES.
96459         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96460         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96461         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96462         The check for ssize_t was mistakenly run before the test for unistd.h.
96463
96464         The configure-time check for stdbool.h was missing.
96465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96466         (jm_PREREQ_HASH): New function.
96467
96468 2001-01-17  Jim Meyering  <meyering@lucent.com>
96469
96470         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96471         for autoconf-2.49c.
96472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96473
96474 2001-01-16  Jim Meyering  <meyering@lucent.com>
96475
96476         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96477         From Bruno Haible.
96478
96479 2001-01-14  Jim Meyering  <meyering@lucent.com>
96480
96481         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96482         foo and bar.  Create conftestdir/ in the script, not in the C code.
96483         Remove directories in the script, not in the C code.
96484         Remove conftestdir{,2} before trying to create the directory.
96485         Make the entire configure script fail if the mkdir fails.
96486
96487 2001-01-14  Jim Meyering  <meyering@lucent.com>
96488
96489         * lib/rename.c: New file.  From Volker Borchert.
96490         Include stdlib.h, string.h or strings.h, and xalloc.h.
96491         Use strip_trailing_slashes rather than open-coding it.
96492
96493 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96494
96495         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96496
96497 2001-01-03  Jim Meyering  <meyering@lucent.com>
96498
96499         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96500         of local `inptr' to avoid warning with some system declarations of
96501         iconv.
96502
96503 2001-01-02  Volker Borchert  <bt@teknon.de>
96504
96505         * m4/rename.m4: New file.
96506         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96507
96508 2001-01-01  Jim Meyering  <meyering@lucent.com>
96509
96510         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96511         even on systems with utmpx.h.  It's necessary for the declaration of
96512         utmp's ut_user member.  Reported by Andreas Jaeger.
96513
96514         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96515         available. They are required for the declarations of getgrgid and
96516         getpwuid resp.
96517         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96518         Reported by Andreas Jaeger.
96519
96520 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96521
96522         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96523         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96524         so `make install' also works in VPATH builds.
96525
96526 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96527
96528         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96529         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96530         can be used in subdirectories.
96531
96532 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96533
96534         * lib/modechange.c: Do not assume that mode_t uses the
96535         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96536         the other-execute bit of FOO even if S_IXOTH != 1.
96537
96538         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96539         WOTH, XOTH, ALLM): New macros.
96540         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96541          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96542         Use them.
96543         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96544         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96545         (mode_compile):
96546         No need to use uintmax_t; unsigned long is long enough.
96547         Don't bother to get suffix since we don't use it.
96548
96549 2000-12-26  Jim Meyering  <meyering@lucent.com>
96550
96551         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96552         better with autoheader.
96553
96554 2000-12-24  Jim Meyering  <meyering@lucent.com>
96555
96556         * lib/hash.c (is_prime): Return explicit boolean values.
96557         (hash_get_first): Return NULL to appease Irix5.6's 89.
96558         Reported by Nelson Beebe.
96559
96560 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96561
96562         * lib/localcharset.c (locale_charset): Add support for Win32.
96563
96564 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96565
96566         * lib/physmem.h, lib/physmem.c: New files.
96567
96568         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96569         (noinst_HEADERS): Add physmem.h.
96570
96571         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96572         't' for compatibility with Solaris 8 sort.
96573
96574 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96575
96576         * lib/config.charset: Add support for BeOS.
96577
96578 2000-12-17  Jim Meyering  <meyering@lucent.com>
96579
96580         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96581         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96582
96583 2000-12-16  Jim Meyering  <meyering@lucent.com>
96584
96585         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96586         N and M) would have treated it like `chown N:N FILE'.
96587
96588         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96589
96590 2000-12-16  Jim Meyering  <meyering@lucent.com>
96591
96592         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96593         SHELLS_FILE to a file name that's useful on djgpp systems.
96594         Include stdlib.h.
96595         (ADDITIONAL_DEFAULT_SHELLS): Define.
96596         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96597         Based mostly on a patch from Prashant TR.
96598
96599 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96600
96601         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96602         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96603         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96604
96605 2000-12-08  Andreas Schwab  <schwab@suse.de>
96606
96607         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96608         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96609
96610 2000-12-07  Jim Meyering  <meyering@lucent.com>
96611
96612         * lib/stripslash.c (ISSLASH): Define.
96613         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96614         `/'.
96615         From Prashant TR.
96616
96617         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96618         (dir_name_r): Declare this function as static.
96619         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96620         manifest itself on a name containing a mix of slashes and
96621         backslashes.
96622         Make this function work with names starting with a DOS-style
96623         drive letter and colon prefix.
96624         (dir_name): Append `.' if necessary.
96625         Based mostly on patches from Prashant TR and Eli Zaretskii.
96626
96627         * lib/dirname.h (dir_name_r): Remove prototype.
96628
96629 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96630
96631         * m4/off_t-format.m4: Remove this file.
96632         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96633
96634 2000-12-06  Jim Meyering  <meyering@lucent.com>
96635
96636         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96637         replacement strtoull, we may well need the replacement strtoul, too.
96638         Check for declarations of strtoul and strtoull.
96639         Check for strtol.  Mainly as a cue to cause automake to include
96640         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96641         Check for limits.h -- strtol.c needs it.
96642
96643 2000-12-05  Jim Meyering  <meyering@lucent.com>
96644
96645         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96646
96647 2000-12-04  Jim Meyering  <meyering@lucent.com>
96648
96649         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96650         Also include memory.h, stdlib.h, unistd.h if appropriate.
96651         Reported by Andreas Jaeger (conflicting declaration of malloc).
96652
96653 2000-12-02  Jim Meyering  <meyering@lucent.com>
96654
96655         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96656         * m4/jm-macros.m4 (jm_MACROS): require it.
96657
96658 2000-12-02  Jim Meyering  <meyering@lucent.com>
96659
96660         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96661
96662 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96663
96664         * lib/memrchr.c: Include <config.h> before any system include file.
96665
96666 2000-11-30  Jim Meyering  <meyering@lucent.com>
96667
96668         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96669
96670 2000-11-30  Jim Meyering  <meyering@lucent.com>
96671
96672         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96673
96674 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96675
96676         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96677
96678 2000-11-26  Jim Meyering  <meyering@lucent.com>
96679
96680         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96681
96682 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96683
96684         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96685         size of (size_t) -1; it's not portable.
96686
96687 2000-11-17  Jim Meyering  <meyering@lucent.com>
96688
96689         * lib/strstr.c: Update from GNU libc.
96690
96691 2000-11-17  Akim Demaille  <akim@epita.fr>
96692
96693         * lib/obstack.h: Formatting changes.
96694         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96695         prevent type checking.
96696         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96697         cast the value to (void *): assigning a `foo *' to a `void *'
96698         variable is valid.
96699         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96700
96701 2000-11-16  Jim Meyering  <meyering@lucent.com>
96702
96703         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96704
96705 2000-11-11  Jim Meyering  <meyering@lucent.com>
96706
96707         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96708
96709 2000-11-10  Jim Meyering  <meyering@lucent.com>
96710
96711         * lib/obstack.h: Update from GNU libc.
96712         * lib/obstack.c: Likewise.
96713
96714 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96715
96716         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96717
96718 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96719
96720         * lib/getusershell.c (setusershell): Use rewind rather than
96721         fseek/fseeko, to avoid configuration hassles with fseeko.
96722         Don't bother opening SHELLS_FILE if shellstream is NULL;
96723         it's not necessary.
96724
96725 2000-11-05  Jim Meyering  <meyering@lucent.com>
96726
96727         * lib/makepath.h (make_dir): Declare.
96728         * lib/makepath.c (make_dir): Remove `static' attribute.
96729         Tweak a comment.
96730
96731 2000-11-04  Jim Meyering  <meyering@lucent.com>
96732
96733         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96734
96735 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96736
96737         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96738         last one in a bucket, advance to the next bucket.
96739
96740 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96741
96742         * lib/fnmatch.c: Do not comment out all the code if we are using
96743         the GNU C library, because in some cases we are replacing buggy
96744         code in the GNU C library itself.
96745
96746 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96747
96748         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96749         (regex_compile): Catch bogus \(\1\).
96750
96751 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96752
96753         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96754         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96755         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96756
96757 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96758
96759         * lib/error.h, getline.h, modechange.h:
96760         Remove "2000" from Copyright line, as the file hasn't been
96761         changed this year other than in the copyright notice.
96762
96763         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96764         was changed this year.
96765
96766 2000-10-29  Jim Meyering  <meyering@lucent.com>
96767
96768         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96769         renaming.
96770         * m4/ls-mntd-fs.m4: Likewise
96771
96772 2000-10-29  Jim Meyering  <meyering@lucent.com>
96773
96774         * lib/xstat.in: Fix grammar in comment.
96775
96776 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96777
96778         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96779         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96780         doesn't define __restrict_arr.
96781
96782 2000-10-28  Jim Meyering  <meyering@lucent.com>
96783
96784         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96785         (jm_PREREQ_MEMCHR): New function.
96786
96787 2000-10-28  Jim Meyering  <meyering@lucent.com>
96788
96789         * lib/memchr.c: Update from libc.
96790         Adjust for portability:
96791         [HAVE_STDLIB_H]: Include stdlib.h.
96792         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96793         Undef __memchr, too.
96794         [!weak_alias]: Define __memchr to memchr.
96795
96796         * lib/regex.c: Update from libc.
96797         * lib/regex.h: Likewise.
96798         * lib/getopt1.c: Likewise.
96799         * lib/memcmp.c: Likewise.
96800
96801         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96802         Avoid using fseek, when possible -- it's broken by design.
96803         Patch by Ulrich Drepper.
96804
96805 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96806
96807         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96808         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96809         Giving in to popular pressure to shut up the compiler with casts.
96810
96811 2000-10-26  Jim Meyering  <meyering@lucent.com>
96812
96813         * lib/strftime.c: Update from libc.
96814
96815 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96816
96817         * regex.c: More `unsigned char' -> `re_char' changes.
96818         Also change several `int' into `re_wchar_t'.
96819         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96820         (PUSH_FAILURE_POINTER): Don't cast any more.
96821         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96822         We want GCC to complain, since this piece of code makes
96823         re_match non-reentrant, which *should* be fixed.
96824         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96825         (EXTEND_BUFFER): Use RETALLOC.
96826         (SET_LIST_BIT): Don't cast.
96827         (re_wchar_t): New type.
96828         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96829         that those two functions will always properly return.
96830         (IMMEDIATE_QUIT_CHECK): Cast to void.
96831         (analyse_first): Use recursion rather than an explicit stack.
96832         (re_compile_fastmap): Can't fail anymore.
96833         (re_search_2): Don't check re_compile_fastmap for failure.
96834         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96835         Now also sets the new value (passed in a new argument).
96836         (re_match_2_internal): Use it.
96837         Also, use a new var `reg' of type size_t when looping through regs
96838         rather than reuse the inappropriate `mcnt'.
96839
96840 2000-10-25  Jim Meyering  <meyering@lucent.com>
96841
96842         * lib/obstack.c: Update from libc.
96843
96844 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96845
96846         * regex.c (regex_compile): Change the way of handling a range from
96847         a char less than 256 to a char not less than 256.
96848
96849 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96850
96851         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96852         NT-Emacs only.
96853         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96854         so that re_search functions only quit when callers expect them to.
96855
96856 2000-10-23  Jim Meyering  <meyering@lucent.com>
96857
96858         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96859         wrong.  That set_locale call must not have any side effects.
96860         From Paul Eggert.
96861
96862 2000-10-22  Jim Meyering  <meyering@lucent.com>
96863
96864         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96865         [CYCLIC]: Remove now-unused definition.
96866
96867         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96868         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96869         Suggestion from Ulrich Drepper.
96870
96871 2000-10-21  Jim Meyering  <meyering@lucent.com>
96872
96873         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96874         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96875         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96876
96877 2000-10-21  Jim Meyering  <meyering@lucent.com>
96878
96879         * lib/dirname.c (memrchr): Declare if necessary.
96880         (dir_name): Remove the restriction that there be no
96881         trailing slashes.  Now, this code skips past them, effectively
96882         ignoring them.
96883         [TEST_DIRNAME] (main): New unit tests.
96884
96885         * lib/memrchr.c: New file from GNU libc.
96886         Undef __memrchr, too.
96887         [!weak_alias]: Define __memrchr to memrchr.
96888         Guard weak_alias use with `#ifdef weak_alias'.
96889
96890 2000-10-21  Jim Meyering  <meyering@lucent.com>
96891
96892         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96893         (dir_name): Use dir_name_r.
96894         * lib/dirname.h (dir_name_r): Declare it.
96895
96896 2000-10-17  Jim Meyering  <meyering@lucent.com>
96897
96898         * lib/quote.h (PARAMS): Define and use.
96899         Reported by Akim Demaille.
96900
96901         * lib/getopt.c: Update from libc.
96902
96903 2000-10-16  Jim Meyering  <meyering@lucent.com>
96904
96905         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96906         setlocale.
96907         From Jan Fedak.
96908
96909 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96910
96911         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96912
96913 2000-09-25  Jim Meyering  <meyering@lucent.com>
96914
96915         * lib/md5.h (rol): Define (from GnuPG).
96916
96917         * lib/sha.c: Give credit (GnuPG) where due.
96918         (M): Use rol rather than open-coding it.
96919         Add a FIXME comment.
96920
96921 2000-09-21  Jim Meyering  <meyering@lucent.com>
96922
96923         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96924         Reported by Michael Stone.
96925
96926 2000-09-20  Jim Meyering  <meyering@lucent.com>
96927
96928         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96929         (noinst_HEADERS): Add sha.h.
96930         Based on code from Scott G. Miller and from GnuPG.
96931
96932 2000-09-18  Jim Meyering  <meyering@lucent.com>
96933
96934         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96935         LIBS. Otherwise, everyone ends up linking with -lelf for some
96936         configurations.
96937         Reported by Mike Stone.
96938
96939 2000-09-15  Jim Meyering  <meyering@lucent.com>
96940
96941         * lib/regex.c: Update from libc.
96942
96943 2000-09-10  Jim Meyering  <meyering@lucent.com>
96944
96945         * lib/getopt.c (_getopt_internal): Update from glibc.
96946
96947 2000-09-09  Jim Meyering  <meyering@lucent.com>
96948
96949         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96950         think it should be used as a general replacement for isascii.
96951         * lib/fnmatch.c: Likewise.
96952         * lib/mbswidth.c: Likewise
96953         * lib/regex.c: Likewise.
96954
96955         Don't use atoi.
96956         * lib/userspec.c: Include sys/param.h and limits.h.
96957         Include xstrtol.h.
96958         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96959         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96960         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96961         UID, GID.  Check range.
96962
96963 2000-09-06  Jim Meyering  <meyering@lucent.com>
96964
96965         * lib/getopt.c (_getopt_internal): Update from glibc.
96966
96967 2000-08-30  Jim Meyering  <meyering@lucent.com>
96968
96969         * lib/strftime.c: Merge in changes from GNU libc.
96970
96971 2000-08-26  Jim Meyering  <meyering@lucent.com>
96972
96973         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96974         * m4/fpending.m4: New file.
96975
96976 2000-08-26  Jim Meyering  <meyering@lucent.com>
96977
96978         * lib/closeout.c: Include "__fpending.h".
96979         (close_stdout_status): Return right away if there's nothing to flush.
96980
96981         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96982         * lib/__fpending.c: New file.
96983         * lib/__fpending.h: New file.
96984
96985 2000-08-20  Jim Meyering  <meyering@lucent.com>
96986
96987         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96988         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96989         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96990
96991 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96992
96993         Improve fileutils installation on systems where running
96994         programs (like install) can't be unlinked.
96995         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96996         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96997
96998 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96999
97000         Standardize on "memory exhausted" instead of "Memory exhausted"
97001         or "virtual memory exhausted".
97002         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97003         "virtual memory exhausted".
97004         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97005         our own message.
97006         * lib/userspec.c (parse_user_spec): Likewise.
97007         * lib/bumpalloc.h: comment fix
97008         * lib/same.c, userspec.c: Include xalloc.h.
97009
97010         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97011         not char *const and pointing to a constant array.
97012         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97013         (xrealloc): Comment fix.
97014
97015         * lib/userspec.c (parse_user_spec):
97016         Don't translate a message until just before returning,
97017         to avoid unnecessary translation.
97018
97019 2000-08-07  Jim Meyering  <meyering@lucent.com>
97020
97021         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97022         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97023         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97024         getgroups.c, gethostname.c, getopt.h, group-member.c,
97025         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97026         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97027         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97028         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97029         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97030         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97031         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97032         yesno.c: Back out Copyright date changes for each file with no change
97033         this year.  This eases coordination with other programs using the same
97034         source code modules.  From Paul Eggert.
97035
97036 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97037
97038         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97039         not char, for compatibility with glibc 2.1.3 strftime.c.
97040
97041 2000-08-03  Greg McGary  <greg@mcgary.org>
97042
97043         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97044         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97045         (EXTEND_BUFFER): Use them.
97046
97047 2000-08-01  Jim Meyering  <meyering@lucent.com>
97048
97049         * lib/dirname.c (ISSLASH): Define.
97050         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97051         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97052         both `\' and `/' may be use as path separators.
97053         Based on a patch from Prashant TR.
97054
97055 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97056
97057         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97058         slot vector a constant, since it might get modified.
97059
97060 2000-07-31  Jim Meyering  <meyering@lucent.com>
97061
97062         * lib/xmalloc.c: Use `virtual memory exhausted', not
97063         `Memory exhausted'.
97064         * lib/obstack.c (print_and_abort): Likewise.
97065
97066 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97067
97068         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97069         buffer, so that the caller can always quote one small
97070         component of a "memory exhausted" message in slot 0.
97071         From a suggestion by Jim Meyering.
97072
97073 2000-07-30  Jim Meyering  <meyering@lucent.com>
97074
97075         * lib/makepath.c (make_path): Quote the other instance, too.
97076
97077         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97078         (STATIC_BUF_SIZE): Define.
97079         (quotearg_n_options): Use only statically allocated storage when
97080         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97081         than STATIC_BUF_SIZE.
97082
97083 2000-07-29  Jim Meyering  <meyering@lucent.com>
97084
97085         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97086         * lib/dirname.c (dir_name): Likewise.
97087
97088         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97089         `/'.
97090
97091         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97092         (dir_name): Assert that there are no trailing slashes.
97093
97094 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97095
97096         * lib/mbswidth.h (mbswidth): Add a flags argument.
97097         (mbswidth): New declaration.
97098         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97099         * lib/mbswidth.c (mbswidth): Add a flags argument.
97100         (mbsnwidth): New function.
97101
97102 2000-07-24  Jim Meyering  <meyering@lucent.com>
97103
97104         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97105
97106 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97107
97108         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97109
97110 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97111
97112         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97113         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97114         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97115         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97116         invoke multibyte primitives.
97117
97118 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97119
97120         * lib/quotearg.c:
97121         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97122         so that mbstate_t is always defined.
97123
97124         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97125         be 1 in at least one GCC installation, and this configuration
97126         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97127         performance on hosts that have mbrtowc but have only unibyte
97128         locales, but I assume these hosts are rare.
97129
97130 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97131
97132         * lib/mbswidth.c (_XOPEN_SOURCE):
97133         Don't define; this causes problems on Solaris 7.
97134         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97135
97136 2000-07-23  Jim Meyering  <meyering@lucent.com>
97137
97138         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97139         too: getgrgid, getpwuid, getuid.
97140
97141 2000-07-23  Jim Meyering  <meyering@lucent.com>
97142
97143         * lib/basename.c (base_name): Add an assertion.
97144
97145 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97146
97147         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97148         shadow its mbsinit function.
97149
97150 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97151
97152         * lib/mbswidth.h: New file.
97153         * lib/mbswidth.c: New file.
97154         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97155         (noinst_HEADERS): Add mbswidth.h.
97156
97157 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97158
97159         * lib/config.charset: Add support for FreeBSD. Improve support for
97160         HP-UX and IRIX 6.
97161
97162 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97163
97164         * m4/mbswidth.m4: New file.
97165         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97166
97167 2000-07-15  Jim Meyering  <meyering@lucent.com>
97168
97169         * lib/makepath.c: Include quote.h.
97170         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97171         corresponding argument in a `quote (...)' call.
97172         Give better diagnostics.
97173
97174         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97175         (noinst_HEADERS): Add quote.h.
97176
97177         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97178         from tar's src/misc.c.
97179         * lib/quote.h: New file.  Prototypes for same.
97180
97181 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97182
97183         From a suggestion by Bruno Haible.
97184         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97185         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97186         to decide whether to define the BeOS workaround macro;
97187         this adjusts to the change to AC_MBSTATE_T.
97188
97189 2000-07-14  Jim Meyering  <meyering@lucent.com>
97190
97191         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97192         jm_AC_TYPE_UINTMAX_T.
97193
97194 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97195
97196         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97197
97198         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97199         quotearg_buffer_restyled): Add support for
97200         clocale_quoting_style.  Undo previous change to
97201         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97202         and "{RIGHT QUOTATION MARK}" msgids.
97203
97204 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97205
97206         From a suggestion by Bruno Haible.
97207         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97208         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97209         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97210         and mbstate_t, to a single-part test that simply defines mbstate_t.
97211         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97212         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97213
97214 2000-07-10  Jim Meyering  <meyering@lucent.com>
97215
97216         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97217
97218         * m4/gnu-source.m4: Output to confdefs.h directly.
97219         Suggestion from Akim Demaille.
97220
97221 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97222
97223         The old behavior of quoting `like this' doesn't look good with
97224         newer, ISO-style fonts.  See:
97225         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97226
97227         Instead, quote "like this" by default.  Let the translator
97228         tailor the locale-specific quoting behavior by providing
97229         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97230
97231         * lib/quotearg.c (N_): New macro.
97232         (gettext_default): New function.
97233         (quotearg_buffer_restyled): Use
97234         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97235         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97236
97237 2000-07-09  Jim Meyering  <meyering@lucent.com>
97238
97239         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97240         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97241
97242         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97244
97245 2000-07-09  Jim Meyering  <meyering@lucent.com>
97246
97247         * lib/Most files: Update copyright dates to include 2000.
97248
97249 2000-07-08  Jim Meyering  <meyering@lucent.com>
97250
97251         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97252         if not defined.
97253         (xgethostname): Remove now-unnecessary #ifdef.
97254         Move declaration of `err' into loop where it's used.
97255
97256 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97257         and Bruno Haible  <haible@clisp.cons.org>
97258
97259         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97260         only if the test for an object-type mbstate_t fails.  This
97261         prevents us from mistakenly reporting that mbstate_t is a
97262         system object type after we "#define mbstate_t int" to work
97263         around its lack.
97264
97265 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97266         and Bruno Haible  <haible@clisp.cons.org>
97267
97268         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97269
97270 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97271
97272         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97273         to strerror_r.
97274         Include <ctype.h> for use of isalpha.
97275
97276 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97277
97278         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97279         by allocating a larger buffer. Test the gethostname return value for
97280         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97281         returns an error and ENAMETOOLONG isn't defined.
97282
97283 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97284
97285         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97286         dimension.
97287
97288 2000-07-04  Jim Meyering  <meyering@lucent.com>
97289
97290         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97291         of the deprecated AC_CHECKING.
97292
97293 2000-07-04  Jim Meyering  <meyering@lucent.com>
97294
97295         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97296         Reported by Bruno Haible.
97297
97298 2000-07-04  Jim Meyering  <meyering@lucent.com>
97299
97300         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97301         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97302         lacks mbrtowc.
97303
97304 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97305
97306         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97307         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97308
97309 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97310         and Bruno Haible  <haible@clisp.cons.org>
97311
97312         * lib/quotearg.c (mbrtowc):
97313         Assign to *pwc, and return 1 only if result is nonzero.
97314         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97315
97316 2000-07-03  Jim Meyering  <meyering@lucent.com>
97317
97318         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97319
97320 2000-07-03  Jim Meyering  <meyering@lucent.com>
97321
97322         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97323         This is necessary to get a definition of e.g., UTMP_FILE on
97324         HP-UX 10.20.
97325         From Bob Proulx.
97326
97327 2000-07-02  Jim Meyering  <meyering@lucent.com>
97328
97329         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97330
97331         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97332         AC_LIBOBJ(function_name).
97333         * m4/chown.m4: Likewise.
97334         * m4/fnmatch.m4: Likewise.
97335         * m4/ftruncate.m4: Likewise.
97336         * m4/getgroups.m4: Likewise.
97337         * m4/getline.m4: Likewise.
97338         * m4/group-member.m4: Likewise.
97339         * m4/jm-macros.m4: Likewise.
97340         * m4/lstat.m4: Likewise.
97341         * m4/malloc.m4: Likewise.
97342         * m4/memcmp.m4: Likewise.
97343         * m4/nanosleep.m4: Likewise.
97344         * m4/putenv.m4: Likewise.
97345         * m4/realloc.m4: Likewise.
97346         * m4/regex.m4: Likewise.
97347         * m4/stat.m4: Likewise.
97348         * m4/strftime.m4: Likewise.
97349
97350 2000-07-02  Jim Meyering  <meyering@lucent.com>
97351
97352         * lib/quotearg.c (mbstate_t): Don't define here.
97353
97354 2000-07-02  Jim Meyering  <meyering@lucent.com>
97355
97356         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97357
97358 2000-07-01  Jim Meyering  <meyering@lucent.com>
97359
97360         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97361
97362 2000-07-01  Jim Meyering  <meyering@lucent.com>
97363
97364         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97365         problem.
97366
97367 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97368
97369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97370         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97371
97372 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97373
97374         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97375         per change in ../m4/ls-mntd-fs.m4.
97376         (read_filesystem_list): Ignore symbolic links.
97377
97378 2000-06-29  Jim Meyering  <meyering@lucent.com>
97379
97380         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97381         for declaration of strcmp.
97382
97383         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97384
97385         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97386         Avoid warning by casting result to `char *' to remove `const'.
97387
97388 2000-06-28  Jim Meyering  <meyering@lucent.com>
97389
97390         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97391         included by quotearg.c, for which we perform this test.  From
97392         Bruno Haible.
97393
97394 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97395
97396         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97397         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97398         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97399
97400 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97401
97402         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97403
97404 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97405
97406         savedir now sets errno on failure and invokes xmalloc to get memory.
97407         Fix a couple of other minor bugs while we're at it.
97408
97409         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97410         (NAMLEN): Remove macro.
97411         (malloc, realloc): Remove decls.
97412         (stpcpy): Likewise.
97413         ("xalloc.h"): Include.
97414         (NAME_SIZE_DEFAULT): New macro.
97415         (savedir): Use xmalloc / xrealloc to allocate memory.
97416         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97417         Skip "" directory entries.
97418         Use strlen to calculate directory entry length, since the old method
97419         is rarely used these days and isn't worth supporting.
97420         Don't use a pointer after freeing it.
97421         Check for integer overflow when calculating allocation size.
97422         Use memcpy to copy entries, instead of stpcpy.
97423         Set errno properly when returning NULL.
97424         Check for readdir error.
97425
97426 2000-06-26  Jim Meyering  <meyering@lucent.com>
97427
97428         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97429
97430 2000-06-25  Jim Meyering  <meyering@lucent.com>
97431
97432         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97433         Linux header bug when _XOPEN_SOURCE is defined to 500.
97434
97435 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97436
97437         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97438         deficiency.
97439
97440 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97441
97442         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97443         Include xalloc.h.
97444         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97445
97446 2000-06-24  Jim Meyering  <meyering@lucent.com>
97447
97448         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97449         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97450         for which strerror does return char*, but which lacks a conveniently
97451         accessible declaration of the function.  If the compile-test says
97452         strerror_r doesn't work, then resort to a `run'-test that works on
97453         BeOS and segfaults on DEC Unix.
97454
97455 2000-06-24  Jim Meyering  <meyering@lucent.com>
97456
97457         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97458
97459 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97460
97461         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97462         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97463
97464 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97465
97466         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97467         (mbrtowc, mbstate_t): Define substitutes if
97468         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97469         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97470         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97471
97472 2000-06-23  Jim Meyering  <meyering@lucent.com>
97473
97474         * m4/afs.m4: Add missing AC_MSG_RESULT.
97475         Reported by Bruno Haible.
97476
97477         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97478         Suggestion from Bruno Haible.
97479
97480 2000-06-23  Jim Meyering  <meyering@lucent.com>
97481
97482         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97483
97484 2000-06-21  Jim Meyering  <meyering@lucent.com>
97485
97486         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97487
97488 2000-06-21  Jim Meyering  <meyering@lucent.com>
97489
97490         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97491         (noinst_HEADERS): Add getstr.h.
97492
97493         * lib/getline.c (getstr): Move into a separate file.
97494         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97495         the following changes: new parameter, delim2; both delim[12]
97496         parameters have type `int', not `char'.  The latter would lose
97497         with 8-bit delimiters.
97498         * lib/getstr.h: New file.
97499
97500 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97501
97502         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97503         than 1024, return a memory chunk of least possible size, instead
97504         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97505         Use free/xmalloc instead of xrealloc to avoid copying for very long
97506         paths.
97507
97508 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97509
97510         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97511         the empty string.
97512
97513 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97514
97515         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97516         address, not strdup.  Include <stdlib.h> and don't declare free().
97517
97518 2000-06-19  Jim Meyering  <meyering@lucent.com>
97519
97520         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97521
97522 2000-06-18  Jim Meyering  <meyering@lucent.com>
97523
97524         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97525
97526         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97527         `checking whether...' message to be consistent with that of the
97528         lstat test.
97529
97530 2000-06-18  Jim Meyering  <meyering@lucent.com>
97531
97532         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97533         Besides, these days every porting target provides a mkdir function.
97534
97535         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97536         needed. (this snippet comes from src/system.h).
97537
97538 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97539
97540         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97541
97542 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97543
97544         * lib/human.c (adjust_value): New function.
97545         (human_readable_inexact): Apply rounding style even when
97546         printing approximate values.
97547
97548 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97549
97550         * lib/human.c (human_readable_inexact): Allow an input block
97551         size that is not a multiple of the output block size, and vice versa.
97552         Reported by Piergiorgio Sartor.
97553
97554 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97555
97556         * lib/getdate.y (get_date): Apply relative times after time
97557         zone indicator, not before.  Reported by Todd A. Jacobs.
97558
97559 2000-06-13  Jim Meyering  <meyering@lucent.com>
97560
97561         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97562
97563         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97564
97565 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97566
97567         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97568
97569 2000-06-12  Jim Meyering  <meyering@lucent.com>
97570
97571         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97572         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97573         optional argument.
97574         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97575         the optional argument, `lib'.
97576
97577 2000-06-08  Jim Meyering  <meyering@lucent.com>
97578
97579         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97580
97581 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97582
97583         Rewrite largefile configuration so that we don't need to run
97584         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97585         AC_CANONICAL_HOST in configure.in -- jmm]
97586
97587         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97588         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97589         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97590         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97591         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97592         All uses changed.
97593         Instead of inspecting the output of getconf, try to compile the
97594         test program without and with the macro definition.
97595         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97596         for getconf.  Instead, check for the needed flags by compiling
97597         test programs.
97598
97599 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97600
97601         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97602
97603 2000-06-04  Jim Meyering  <meyering@lucent.com>
97604
97605         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97606         SunOS 4.1.4 for which gid_t is an unsigned type.
97607
97608 2000-06-03  Jim Meyering  <meyering@lucent.com>
97609
97610         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97611         now that autoconf requires that.
97612
97613         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97614         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97615         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97616
97617 2000-06-03  Jim Meyering  <meyering@lucent.com>
97618
97619         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97620
97621 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97622
97623         * m4/glibc21.m4: New file.
97624         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97625
97626 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97627
97628         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97629         newer, don't install charset.alias.
97630         * lib/config.charset: Change the Linux/glibc rules so they become empty
97631         on glibc-2.1 or newer.
97632
97633 2000-06-02  Jim Meyering  <meyering@lucent.com>
97634
97635         * lib/mountlist.c: Back out last change.  Instead, do this...
97636         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97637         me_dummy member using the same `ignore'-testing code.
97638         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97639         fs_type strings.
97640         From Mark D. Roth.
97641
97642 2000-05-29  Jim Meyering  <meyering@lucent.com>
97643
97644         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97645         mounts with the `ignore' attribute.  Based on a patch from
97646         Mark D. Roth.
97647
97648 2000-05-28  Jim Meyering  <meyering@lucent.com>
97649
97650         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97651         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97652         * m4/stat.m4: Likewise.
97653         * m4/lstat.m4: Likewise.
97654         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97655
97656         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97657         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97658
97659 2000-05-26  Jim Meyering  <meyering@lucent.com>
97660
97661         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97662
97663 2000-05-24  Jim Meyering  <meyering@lucent.com>
97664
97665         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97666         autoconf requires that.
97667         * m4/lib-check.m4: Likewise.
97668         * m4/jm-macros.m4: Likewise.
97669         * m4/strftime.m4: Likewise.
97670
97671         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97672         AC_CHECK_DECLS, now that autoconf requires that.
97673
97674 2000-05-22  Jim Meyering  <meyering@lucent.com>
97675
97676         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97677         * m4/lstat.m4: Likewise.
97678
97679 2000-05-22  Jim Meyering  <meyering@lucent.com>
97680
97681         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97682
97683 2000-05-20  Jim Meyering  <meyering@lucent.com>
97684
97685         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97686         (jm_PREREQ): Use it.
97687
97688 2000-05-18  Jim Meyering  <meyering@lucent.com>
97689
97690         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97691         back, too, since it may have been modified by allocate_entry.
97692         (hash_delete): Rewrite to use neither the assignment operator
97693         nor the comma operator in an if-expression.
97694
97695 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97696
97697         * lib/closeout.c:
97698         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97699         Remove; no longer needed.
97700         "quotearg.h": Add include.
97701         (file_name): Do not bother to explicitly initialize to NULL; it's less
97702         efficient on some hosts.
97703         (close_stdout_status): Remove test as to whether stdout was already
97704         closed; it breaks for the case "echo x | sort >&-".
97705         Quote file name colons.
97706         Do not assume that _("write error") lacks format strings.
97707
97708 2000-05-15  Jim Meyering  <meyering@lucent.com>
97709
97710         * lib/version-etc.c (version_etc_copyright): Update the copyright
97711         string used in all --version output.
97712
97713 2000-05-14  Jim Meyering  <meyering@lucent.com>
97714
97715         * lib/closeout.c (close_stdout_set_file_name): New function.
97716         (close_stdout_status): Use new file-scoped global.
97717         Return right away if fstat says the stdout file descriptor is invalid.
97718         * lib/closeout.h (close_stdout_set_file_name): Declare.
97719
97720 2000-05-10  Jim Meyering  <meyering@lucent.com>
97721
97722         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97723         (close_stdout_set_status): New function.
97724         * lib/closeout.h (close_stdout_set_status): Declare.
97725
97726 2000-05-09  Jim Meyering  <meyering@lucent.com>
97727
97728         * m4/gettext.m4: Rename this...
97729         * m4/libintl.m4: ...to this.
97730
97731 2000-05-08  Jim Meyering  <meyering@lucent.com>
97732
97733         * lib/long-options.c: Don't include closeout.h.
97734         (parse_long_options): Don't call close_stdout for --version.
97735
97736 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97737
97738         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97739         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97740         2.1.3 bug.  This avoids a clash when files like regex.c define
97741         _GNU_SOURCE.
97742
97743 2000-05-06  Jim Meyering  <meyering@lucent.com>
97744
97745         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97746         (AC_REPLACE_FUNCS): Add strnlen.
97747
97748         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97749         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97750
97751         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97752         AC_SEARCH_LIBS call for nanosleep.
97753         (LIB_NANOSLEEP): Set and AC_SUBST.
97754
97755 2000-05-06  Jim Meyering  <meyering@lucent.com>
97756
97757         * lib/strnlen.c: Undefine __strnlen and strnlen.
97758         [!weak_alias]: Define __strnlen to strnlen.
97759
97760         * lib/atexit.c: New file, from libiberty.
97761
97762 2000-05-06  Jim Meyering  <meyering@lucent.com>
97763
97764         * lib/closeout.c (close_stdout_status): Also check for errors on the
97765         stderr stream.
97766
97767 2000-05-05  Jim Meyering  <meyering@lucent.com>
97768
97769         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97770         AC_SEARCH_LIBS call for clock_gettime.
97771         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97772
97773         * m4/search-libs.m4: Update from autoconf.
97774
97775         su doesn't work on Solaris 2.6.
97776         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97777         <shadow.h>.  Reported by Dragos Harabor.
97778
97779 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97780
97781         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97782         memcpy instead of xmalloc, xrealloc, path_concat.
97783         (locale_charset): Treat empty environment variables as absent.
97784         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97785
97786 2000-05-04  Jim Meyering  <meyering@lucent.com>
97787
97788         * lib/getopt.c: Update from glibc.
97789         * lib/obstack.c: Likewise.
97790         * lib/obstack.h: Likewise.
97791         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97792         file
97793
97794         * lib/regex.h: Likewise.
97795         * lib/strndup.c: Likewise.
97796         * lib/strnlen.c: New file, from glibc.
97797
97798 2000-05-03  Jim Meyering  <meyering@lucent.com>
97799
97800         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97801
97802 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97803
97804         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97805         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97806         compile-time test, rather than inspecting host and OS, to
97807         decide whether to define _LARGEFILE_SOURCE.
97808
97809 2000-05-01  Jim Meyering  <meyering@lucent.com>
97810
97811         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97812
97813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97814         Based on a patch from Bruno Haible.
97815
97816 2000-05-01  Jim Meyering  <meyering@lucent.com>
97817
97818         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97819
97820 2000-04-29  Jim Meyering  <meyering@lucent.com>
97821
97822         * lib/path-concat.c: Declare strdup only if it's not defined.
97823         * lib/canon-host.c: Likewise.
97824
97825 2000-04-28  Jim Meyering  <meyering@lucent.com>
97826
97827         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97828         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97829         is included first, then limits.h is included by locale.h by libintl.h.
97830         From John David Anglin.
97831
97832 2000-04-25  Jim Meyering  <meyering@lucent.com>
97833
97834         * lib/makepath.c (S_IRWXUGO): Define.
97835         (make_path): Always perform explicit chmod if MODE specifies any
97836         of the `special' permission bits.  Prompted by a bug report against
97837         install from Mate Wierdl and Joost van Baal.
97838
97839 2000-04-18  Jim Meyering  <meyering@lucent.com>
97840
97841         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97842         (jm_PREREQ): Use it.
97843
97844 2000-04-18  Jim Meyering  <meyering@lucent.com>
97845
97846         * lib/README: New file.
97847
97848         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97849         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97850
97851 2000-04-17  Jim Meyering  <meyering@lucent.com>
97852
97853         Get it right :-)
97854         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97855         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97856         Suggestion from Akim Demaille.
97857
97858 2000-04-17  Jim Meyering  <meyering@lucent.com>
97859
97860         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97861         the definition of it to rpl_strftime also defined-away the system's
97862         declaration.
97863
97864 2000-04-15  Jim Meyering  <meyering@lucent.com>
97865
97866         Use `C' to denote so-called `contiguous' files, the same way
97867         that tar does.
97868         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97869         (ftypelet): Use S_ISCTG.
97870         From Michael Deutschmann.
97871
97872 2000-04-14  Jim Meyering  <meyering@lucent.com>
97873
97874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97875         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97876         clobbered.
97877
97878 2000-04-14  Jim Meyering  <meyering@lucent.com>
97879
97880         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97881
97882 2000-04-13  Jim Meyering  <meyering@lucent.com>
97883
97884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97885         AH_VERBATIM to insert required #ifndef into config.h.in.
97886         Suggestion from Akim Demaille.
97887
97888 2000-04-12  Jim Meyering  <meyering@lucent.com>
97889
97890         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97891         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97892         Christian Krackowizer.
97893
97894         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97895         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97896         (AC_SYS_LARGEFILE): Require.
97897         (AM_C_PROTOTYPES): Require.
97898
97899 2000-04-08  Jim Meyering  <meyering@lucent.com>
97900
97901         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97902         names don't conflict.  Reported by Eli Zaretskii.
97903
97904 2000-04-07  Jim Meyering  <meyering@lucent.com>
97905
97906         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97907         sys/types.h, to work around system header problems on AIX 3.2.5.
97908         From Bruno Haible.
97909
97910 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97911
97912         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97913         bug.  Deal with the different error behavior of Irix iconv.
97914
97915 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97916
97917         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97918         IRIX if the installer said otherwise.
97919
97920 2000-04-05  Jim Meyering  <meyering@lucent.com>
97921
97922         Portability tweaks required for ultrix4.3.
97923         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97924         (jm_CHECK_DECLS): Add getutent to the list of functions.
97925         (_jm_DECL_HEADERS): Add utmpx.h.
97926         From John David Anglin.
97927
97928         * m4/strftime.m4: Back out the 2000-04-02 change.
97929         Instead of that change, simply undefine putenv in the test program.
97930
97931 2000-04-05  Jim Meyering  <meyering@lucent.com>
97932
97933         Portability tweaks required for ultrix4.3.
97934         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97935         getutent.
97936         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97937         * lib/canon-host.c: Declare strdup.
97938         * lib/path-concat.c: Likewise.
97939         From John David Anglin.
97940
97941 2000-04-04  Jim Meyering  <meyering@lucent.com>
97942
97943         Be more DOS 8.3-friendly.
97944         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97945         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97946         * lib/Makefile.am: Reflect renaming.
97947         Reported by Eli Zaretskii.
97948
97949         Use a temporary file name that won't clash with `charset.alias'
97950         in the DOS 8.3 name space.
97951         * lib/Makefile.am (charset_tmp): Define.
97952         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97953         (uninstall-local): Likewise.
97954         Reported by Eli Zaretskii.
97955
97956 2000-04-03  Jim Meyering  <meyering@lucent.com>
97957
97958         * m4/gettext.m4: Fix typo in comment.
97959
97960         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97961         textutils/configure.in).  Suggestion from Paul Eggert.
97962         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97963
97964 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97965
97966         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97967         variable in the shell rather than using putenv, which isn't
97968         portable.  This avoids the configure-time inter-test dependency
97969         on the potentially-renamed putenv function.
97970
97971 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97972
97973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97974         before checking struct stat.st_blksize, so that
97975         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97976
97977 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97978
97979         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97980         since strftime.c uses HAVE_STRFTIME to decide whether to use
97981         the underlying strftime.
97982
97983 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97984
97985         * lib/time/strftime.c (my_strftime): Make sure we call the system
97986         strftime, not ourselves, when invoking the underlying strftime.
97987
97988 2000-03-24  Jim Meyering  <meyering@lucent.com>
97989
97990         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97991         (charset_alias): Define.
97992         (install-exec-local): Factor out common code.
97993         (uninstall-local): Split lines longer than 80.
97994         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97995         (SUFFIXES): Define.
97996         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97997         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97998
97999 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98000
98001         * lib/config.charset: Output a line containing "Packages using this
98002         file".
98003         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98004         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98005         ref-del.sed): New rules.
98006
98007 2000-03-17  Jim Meyering  <meyering@lucent.com>
98008
98009         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98010         Otherwise, include <strings.h>
98011
98012 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98013
98014         * lib/unicodeio.c (utf8_wctomb): New function.
98015         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98016         format instead of in UCS-4 with platform dependent endianness.
98017
98018 2000-03-10  Jim Meyering  <meyering@lucent.com>
98019
98020         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98021         From Marco Franzen.
98022
98023 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98024
98025         * lib/savedir.c (savedir): Work even if directory size is
98026         negative; this can happen with some screwy NFS configurations.
98027
98028 2000-03-06  Jim Meyering  <meyering@lucent.com>
98029
98030         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98031         if it's NULL (because we ran out of memory).  From Bruno Haible.
98032
98033 2000-03-05  Jim Meyering  <meyering@lucent.com>
98034
98035         * lib/localcharset.c ("path-concat.h"): Include.
98036         (get_charset_aliases): Use path_concat instead of ANSI string
98037         concatenation.
98038
98039         * lib/unicodeio.h (PARAMS): Define.
98040         Use it to guard prototype.
98041
98042 2000-03-04  Jim Meyering  <meyering@lucent.com>
98043
98044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98045         for lib/localcharset.c.
98046
98047 2000-03-04  Jim Meyering  <meyering@lucent.com>
98048
98049         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98050         installing into it.
98051         (uninstall-local): Uncomment this rule so `make distcheck' works
98052         once again.
98053
98054         * lib/unicodeio.c (<errno.h>): Include it.
98055         (errno): Declare if not defined.
98056
98057         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98058
98059         * lib/config.charset: New version, incorporating remarks from a linux
98060         i18n mailing list.  From Bruno Haible.
98061
98062 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98063
98064         * m4/codeset.m4: New file.
98065         * m4/iconv.m4: New file.
98066         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98067
98068 2000-03-03  Jim Meyering  <meyering@lucent.com>
98069
98070         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98071
98072 2000-03-02  Jim Meyering  <meyering@lucent.com>
98073
98074         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98075         the messages come out on separate lines.
98076
98077         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98078         rather than jm_CHECK_DECLARATIONS.
98079         * m4/decl.m4: Remove now-unused file.
98080
98081         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98082         geteuid.
98083
98084 2000-03-02  Jim Meyering  <meyering@lucent.com>
98085
98086         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98087
98088 2000-03-01  Jim Meyering  <meyering@lucent.com>
98089
98090         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98091         * lib/unicodeio.c: Likewise.
98092
98093 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98094
98095         * lib/config.charset: New file.
98096         * lib/localcharset.c: New file.
98097         * lib/unicodeio.h, lib/unicodeio.c: New files.
98098         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98099         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98100         (noinst_HEADERS): Add unicodeio.h.
98101         (all-local, install-exec-local, charset.alias): New targets.
98102
98103 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98104
98105         * lib/quotearg.c (ALERT_CHAR): New macro.
98106         (quotearg_buffer_restyled): Use it.
98107
98108 2000-02-27  Jim Meyering  <meyering@lucent.com>
98109
98110         * m4/check-decl.m4: Add getenv to the list.
98111
98112 2000-02-27  Jim Meyering  <meyering@lucent.com>
98113
98114         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98115         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98116
98117         * lib/backupfile.c: Guard inclusion of stdlib.h with
98118         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98119         Declare malloc if needed.
98120
98121         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98122         `#ifndef HAVE_DECL..'
98123         now that autoconf always defines the HAVE_DECL_ symbols.
98124         * lib/human.c: Likewise.
98125         * lib/same.c: Likewise.
98126         * lib/strtoumax.c: Likewise.
98127
98128         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98129         declaration check was not run.
98130         * lib/hash.c: Likewise.
98131         * lib/human.c: Likewise.
98132         * lib/same.c: Likewise.
98133         * lib/strtoumax.c: Likewise.
98134
98135         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98136         `.', then first look up the entire `.'-containing string as a login
98137         name.
98138
98139 2000-02-23  Jim Meyering  <meyering@lucent.com>
98140
98141         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98142         in place of my hack.
98143
98144 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98145
98146         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98147         (textint): New typedef.
98148         (parser_control): Member year changed from int to textint.
98149         All uses changed.
98150         (YYSTYPE): Removed; replaced by %union with int and textint members.
98151         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98152         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98153         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98154         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98155         (date, number, to_year): Use width of number in digits, not its value,
98156         to determine whether it's a 2-digit year, or a 2-digit time.
98157         (yylex): Store number of digits of numeric tokens.
98158         Reported by John Kendall.
98159
98160         (parser_control): Changed from struct parser_control to typedef (for
98161         consistency).  All uses changed.
98162
98163         (tID): Removed; not used.
98164         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98165
98166 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98167
98168         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98169         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98170
98171 2000-02-12  Jim Meyering  <meyering@lucent.com>
98172
98173         * lib/userspec.c (ISDIGIT): Define it.
98174         (isdigit): Remove definition.
98175         (is_number): Use ISDIGIT, not isdigit.
98176         <libintl.h>: Include.
98177         (_ and N_): Define.
98178         (parse_user_spec): Mark translatable strings.
98179
98180 2000-02-10  Jim Meyering  <meyering@lucent.com>
98181
98182         With these changes, nanosleep.[ch] are finally enough like the other
98183         lib/* replacement files to compile on a few more losing systems.
98184
98185         * lib/nanosleep.h: Don't include config.h.
98186         Remove prototype from declaration of nanosleep.
98187         (PARAMS): Remove now-unneeded definition.
98188         * lib/nanosleep.c: #undef nanosleep.
98189         (rpl_nanosleep): Rename from nanosleep.
98190
98191 2000-02-10  Jim Meyering  <meyering@lucent.com>
98192
98193         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98194         gnu_nanosleep to rpl_nanosleep.
98195
98196 2000-02-09  Jim Meyering  <meyering@lucent.com>
98197
98198         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98199         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98200
98201 2000-02-08  Akim Demaille  <akim@epita.fr>
98202
98203         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98204         `[' and `]' and remove uses of `changequote'.
98205         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98206         (AC_SYS_LARGEFILE): Likewise.
98207         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98208         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98209         of changequote.
98210         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98211         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98212         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98213         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98214
98215 2000-02-05  Jim Meyering  <meyering@lucent.com>
98216
98217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98218         Remove explicit use of AC_HEADER_TIME.  It is required by
98219         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98220         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98221         in autoconf whereby the expansion of the latter ended up preceding
98222         the expansion of its prerequisite, AC_HEADER_TIME.
98223         Reported by Volker Borchert.
98224
98225 2000-02-03  Jim Meyering  <meyering@lucent.com>
98226
98227         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98228
98229 2000-02-03  Jim Meyering  <meyering@lucent.com>
98230
98231         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98232         rather than with `#if HAVE_UTMPNAME'.
98233
98234 2000-02-02  Jim Meyering  <meyering@lucent.com>
98235
98236         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98237         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98238         Reported by Eli Zaretskii.
98239
98240 2000-02-01  Jim Meyering  <meyering@lucent.com>
98241
98242         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98243
98244 2000-01-31  Jim Meyering  <meyering@lucent.com>
98245
98246         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98247         functions.  Add the time.h and sys/time.h headers along with the
98248         AC_REQUIRE'ment of AC_HEADER_TIME.
98249
98250 2000-01-31  Jim Meyering  <meyering@lucent.com>
98251
98252         * lib/nanosleep.h (nanosleep): Guard declaration with
98253         `#if ! HAVE_DECL_NANOSLEEP'.
98254         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98255         the declaration in that vendor's sys/timers.h.
98256         Reported by Christian Krackowizer.
98257
98258         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98259         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98260         (ISPRINT): Likewise.
98261         Reported by Tom Tromey.
98262
98263 2000-01-30  Jim Meyering  <meyering@lucent.com>
98264
98265         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98266
98267         * m4/prereq.m4 (utmp_includes): Define.
98268         Check for ut_user and ut_name members in both struct utmpx
98269         and struct utmp.
98270
98271 2000-01-30  Jim Meyering  <meyering@lucent.com>
98272
98273         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98274         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98275         header files where only utmpx.ut_user is declared.
98276
98277         * lib/readutmp.h (UT_USER): Define.
98278
98279 2000-01-29  Jim Meyering  <meyering@lucent.com>
98280
98281         * m4/lib-check.m4: New file containing library-related checks from
98282         fileutils and sh-utils (textutils had none).
98283
98284 2000-01-28  Jim Meyering  <meyering@lucent.com>
98285
98286         * m4/perl.m4: Change format of warning message to look more like that
98287         from the missing script.  Suggestion from François Pinard.
98288
98289 2000-01-25  Jim Meyering  <meyering@lucent.com>
98290
98291         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98292         well as time.h in the compile check.
98293         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98294         Fix typo in cross-compiling case: s/yes/no/.
98295
98296 2000-01-23  Jim Meyering  <meyering@lucent.com>
98297
98298         * m4/jm-macros.m4: Move df-related tests here from
98299         fileutils/configure.in
98300
98301         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98302         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98303
98304         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98305         s/space/ac_fsusage_space/.
98306         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98307
98308         * m4/ftruncate.m4: New file (derived from part of
98309         fileutils/configure.in).
98310         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98311         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98312
98313         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98314         AC_SUBST these here, rather than just in sh-util/configure.in, so
98315         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98316         all the same.
98317         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98318         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98319         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98320         (AC_SUBST(POW_LIBM)): Likewise.
98321         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98322
98323 2000-01-23  Jim Meyering  <meyering@lucent.com>
98324
98325         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98326         obstack.c.
98327
98328 2000-01-22  Jim Meyering  <meyering@lucent.com>
98329
98330         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98331
98332         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98333
98334         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98335         configure.in
98336         (AC_CHECK_HEADERS): Likewise for sh-utils.
98337         (AC_CHECK_HEADERS): Likewise for textutils.
98338         Merge the three lists of headers.
98339
98340         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98341         from fileutils' configure.in.
98342
98343         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98344         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98345         check-decl.m4.
98346
98347         * m4/check-decl.m4: Use #if rather than #ifdef.
98348         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98349         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98350         (_jm_DECL_HEADERS): Define new function.
98351         (jm_CHECK_DECLARATIONS): Require it.
98352
98353 2000-01-22  Jim Meyering  <meyering@lucent.com>
98354
98355         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98356         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98357         Required for some AIX systems.  Reported by Christian Krackowizer.
98358         [TESTING] (main): New function.
98359
98360         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98361         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98362         letters.
98363
98364         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98365         iswprint.
98366
98367         * lib/strverscmp.c (ISDIGIT): Define.
98368         (strverscmp): Use ISDIGIT, not isdigit.
98369
98370 2000-01-19  Jim Meyering  <meyering@lucent.com>
98371
98372         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98373         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98374         defines `struct timespec' in <sys/time.h>
98375
98376         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98377         Thanks to Akim for explaining.
98378
98379 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98380
98381         * lib/nanosleep.c (nanosleep):
98382         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98383         POSIX.1 doesn't require SA_INTERRUPT and some systems
98384         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98385         it's been part of POSIX.1 since day 1 (in 1988).
98386
98387 2000-01-17  Jim Meyering  <meyering@lucent.com>
98388
98389         * lib/interlock: Remove unused file.  Reported by François Pinard.
98390
98391 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98392
98393         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98394         alert, backslash, formfeed, and vertical tab unnecessarily in
98395         shell quoting style.
98396
98397 2000-01-16  Jim Meyering  <meyering@lucent.com>
98398
98399         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98400         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98401         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98402         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98403
98404 2000-01-16  Jim Meyering  <meyering@lucent.com>
98405
98406         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98407         because the latter didn't work.
98408
98409 2000-01-15  Jim Meyering  <meyering@lucent.com>
98410
98411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98412         (AC_REPLACE_FUNCS): Add memcpy and memset.
98413         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98414         Add strpbrk.
98415         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98416
98417 2000-01-12  Jim Meyering  <meyering@lucent.com>
98418
98419         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98420         (jm_PREREQ): Use it.
98421         (jm_PREREQ_READUTMP): New macro.
98422         (jm_PREREQ): Use it.
98423
98424 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98425
98426         Quote multibyte characters correctly.
98427         * m4/c-bs-a.m4: New file.
98428         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98429         (jm_PREREQ): Use it.
98430
98431 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98432
98433         * m4/uintmax_t.m4: Port to autoconf 2.13.
98434
98435 2000-01-08  Jim Meyering  <meyering@ascend.com>
98436
98437         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98438         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98439
98440 2000-01-04  Jim Meyering  <meyering@ascend.com>
98441
98442         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98443         jm_STRUCT_DIRENT_D_TYPE.
98444         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98445         jm_STRUCT_DIRENT_D_INO.
98446         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98447         jm_STRUCT_UTIMBUF.
98448         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98449         renamings.
98450         * m4/utime.m4: Likewise.
98451
98452         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98453         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98454
98455 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98456
98457         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98458         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98459
98460 2000-01-02  Jim Meyering  <meyering@ascend.com>
98461
98462         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98463         remember if this is necessary.
98464
98465 1999-12-26  Jim Meyering  <meyering@ascend.com>
98466
98467         * m4/jm-macros.m4: Use it here.
98468         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98469
98470 1999-12-23  Jim Meyering  <meyering@ascend.com>
98471
98472         * m4/jm-macros.m4: Check for clock_gettime (moved from
98473         fileutils/configure.in)
98474         Check for gettimeofday.
98475
98476 1999-12-20  Jim Meyering  <meyering@ascend.com>
98477
98478         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98479         autoconf-2.14a-1999-12-20.
98480
98481 1999-12-19  Jim Meyering  <meyering@ascend.com>
98482
98483         * m4/lstat-slash.m4: New file.
98484         * m4/jm-macros.m4: Use the new macro:
98485         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98486
98487 1999-12-07  Jim Meyering  <meyering@ascend.com>
98488
98489         * m4/perl.m4: Require that File::Compare be available, too.
98490         Too many systems seem to lack it.
98491
98492         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98493         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98494
98495 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98496
98497         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98498         problem with the QNX 4.25 shell, which doesn't propagate exit
98499         status of failed commands inside shell assignments.
98500
98501 1999-11-17  Jim Meyering  <meyering@ascend.com>
98502
98503         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98504
98505 1999-11-07  Jim Meyering  <meyering@ascend.com>
98506
98507         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98508
98509 1999-11-06  Jim Meyering  <meyering@ascend.com>
98510
98511         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98512         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98513
98514 1999-11-05  Jim Meyering  <meyering@ascend.com>
98515
98516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98517         configure.in of textutils, fileutils, and sh-utils into this one
98518         (shared between those packages) file.
98519         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98520         AC_STRUCT_ST_BLKSIZE.
98521
98522 1999-11-03  Jim Meyering  <meyering@ascend.com>
98523
98524         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98525         of AC_CHECK_TYPE checks includes unistd.h.
98526         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98527         Suggestion from Akim Demaille.
98528
98529 1999-10-30  Jim Meyering  <meyering@ascend.com>
98530
98531         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98532         m4-quoted string.
98533         * m4/ls-mntd-fs.m4: Likewise.
98534         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98535         * m4/jm-winsz1.m4: Likewise.
98536
98537         * m4/const.m4: Remove file, since the fix made it into the experimental
98538         version of autoconf.
98539         * m4/mktime.m4: Likewise.
98540
98541         * m4/check-type.m4: Remove file, now that the latest version of
98542         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98543
98544         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98545         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98546         AC_CHECK_TYPE.
98547
98548 1999-10-04  Jim Meyering  <meyering@ascend.com>
98549
98550         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98551
98552 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98553
98554         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98555         2.95.1 bug with HP-UX 10.20.
98556
98557 1999-09-17  Jim Meyering  <meyering@ascend.com>
98558
98559         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98560         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98561         due to missing strdup (against sh-utils-2.0).
98562
98563 1999-08-29  Jim Meyering  <meyering@ascend.com>
98564
98565         * m4/jm-macros.m4: Require jm_BISON.
98566         * m4/bison.m4: New file.
98567
98568 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98569
98570         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98571         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98572
98573 1999-08-05  Jim Meyering  <meyering@ascend.com>
98574
98575         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98576         to avoid conflicts with `conftest' on 8+3 filesystems.
98577         Suggestion from Eli Zaretskii.
98578
98579 1999-08-04  Jim Meyering  <meyering@ascend.com>
98580
98581         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98582         fileutils and sh-utils (textutils's getline test was inadequate).
98583         (AM_FUNC_GETLINE): Run this test.
98584         (AC_CHECK_FUNCS): Check for getdelim.
98585         Reported by Bob Proulx.
98586
98587 1999-08-02  Jim Meyering  <meyering@ascend.com>
98588
98589         * m4/jm-macros.m4: Add a comment.
98590
98591 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98592
98593         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98594         <inttypes.h> defines strtoumax as a macro (and not as a
98595         function).
98596
98597 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98598
98599         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98600         that we can shift, multiply and divide unsigned long long
98601         values; Ultrix cc can't do it.
98602
98603 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98604
98605         * m4/mktime.m4: New file, which is a preview of what should appear
98606         in the next public autoconf release.
98607
98608 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98609
98610         * m4/lfs.m4: Remove this file.
98611         * m4/largefile.m4: New file.  It contains the old contents of
98612         lfs.m4, except that all names with prefix AC_LFS have been
98613         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98614         compatible with future autoconf versions.  Also, some minor m4
98615         quoting problems have been fixed.
98616
98617 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98618
98619         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98620         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98621         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98622         and simplify the shell code.
98623
98624 1999-08-01  Jim Meyering  <meyering@ascend.com>
98625
98626         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98627         m4.
98628
98629 1999-07-20  Jim Meyering  <meyering@ascend.com>
98630
98631         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98632
98633 1999-07-15  Jim Meyering  <meyering@ascend.com>
98634
98635         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98636
98637 1999-05-22  Jim Meyering  <meyering@ascend.com>
98638
98639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98640
98641 1999-05-20  Jim Meyering  <meyering@ascend.com>
98642
98643         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98644         Add a colon after each `then' in case $4 is empty.
98645
98646 1999-05-16  Jim Meyering  <meyering@ascend.com>
98647
98648         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98649
98650 1999-05-10  Jim Meyering  <meyering@ascend.com>
98651
98652         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98653
98654         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98655         AC_FUNC_MKTIME.
98656
98657 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98658
98659         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98660
98661 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98662
98663         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98664         not CPPFLAGS, so that linking works correctly in IRIX.
98665
98666 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98667
98668         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98669
98670 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98671
98672         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98673         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98675         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98676         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98677
98678         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98679
98680 1999-04-20  Jim Meyering  <meyering@ascend.com>
98681
98682         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98683         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98684         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98685
98686 1999-04-18  Jim Meyering  <meyering@ascend.com>
98687
98688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98689         * m4/jm-macros.m4: Use it.
98690
98691 1999-04-06  Jim Meyering  <meyering@ascend.com>
98692
98693         * m4/strftime.m4: Remove test for %f.
98694
98695 1999-03-29  Jim Meyering  <meyering@ascend.com>
98696
98697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98698         superset of the AC_TYPE_* checks in the textutils, fileutils,
98699         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98700         AC_TYPE_PID_T.
98701
98702 1999-03-28  Jim Meyering  <meyering@ascend.com>
98703
98704         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98705         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98706         replaced e.g., in the *.sh files of the sh-utils.
98707
98708 1999-03-20  Jim Meyering  <meyering@ascend.com>
98709
98710         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98711         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98712         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98713
98714 1999-03-19  Jim Meyering  <meyering@ascend.com>
98715
98716         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98717
98718 1999-03-12  Jim Meyering  <meyering@ascend.com>
98719
98720         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98721
98722 1999-03-07  Jim Meyering  <meyering@ascend.com>
98723
98724         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98725         declared.
98726
98727 1999-02-17  Jim Meyering  <meyering@ascend.com>
98728
98729         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98730         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98731
98732 1999-02-07  Jim Meyering  <meyering@ascend.com>
98733
98734         * m4/group-member.m4: New file -- extracted from sh-utils'
98735         configure.in.
98736
98737         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98738         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98739
98740 1999-02-06  Jim Meyering  <meyering@ascend.com>
98741
98742         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98743         * m4/fnmatch.m4: Likewise.
98744         * m4/getgroups.m4: Likewise.
98745         * m4/lstat.m4: Likewise.
98746         * m4/malloc.m4: Likewise.
98747         * m4/putenv.m4: Likewise.
98748         * m4/realloc.m4: Likewise.
98749         * m4/regex.m4: Likewise.
98750         * m4/stat.m4: Likewise.
98751         * m4/strftime.m4: Likewise.
98752         Suggestion from Alain Magloire.
98753
98754         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98755         * m4/fnmatch.m4: Likewise.
98756         * m4/getgroups.m4: Likewise.
98757         * m4/getline.m4: Likewise.
98758         * m4/lstat.m4: Likewise.
98759         * m4/malloc.m4: Likewise.
98760         * m4/memcmp.m4: Likewise.
98761         * m4/putenv.m4: Likewise.
98762         * m4/realloc.m4: Likewise.
98763         * m4/regex.m4: Likewise.
98764         * m4/stat.m4: Likewise.
98765         * m4/strftime.m4: Likewise.
98766         Suggestion from Alain Magloire.
98767
98768         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98769         an argument.
98770
98771         * m4/regex.m4: Add a run-time Test for proper operation of
98772         re_compile_pattern.
98773
98774 1999-01-31  Jim Meyering  <meyering@ascend.com>
98775
98776         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98777
98778 1999-01-30  Jim Meyering  <meyering@ascend.com>
98779
98780         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98781
98782         * m4/jm-mktime.m4: Make this a wrapper around the official
98783         AM_FUNC_MKTIME rather than my private copy, now that the official one
98784         is up to date.
98785         * m4/mktime.m4: Remove file.
98786
98787         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98788         * m4/uptime.m4: Likewise.
98789         * m4/uintmax_t.m4: Likewise.
98790
98791 1999-01-28  Jim Meyering  <meyering@ascend.com>
98792
98793         * m4/jm-macros.m4: Use jm_AFS.
98794         * m4/afs.m4: New file (from fileutils' configure.in).
98795
98796         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98797         * m4/chown.m4: Likewise.
98798         * m4/d-ino.m4: Likewise.
98799         * m4/d-type.m4: Likewise.
98800         * m4/fnmatch.m4: Likewise.
98801         * m4/getgroups.m4: Likewise.
98802         * m4/gettext.m4: Likewise.
98803         * m4/jm-mktime.m4: Likewise.
98804         * m4/jm-winsz2.m4: Likewise.
98805         * m4/lcmessage.m4: Likewise.
98806         * m4/ls-mntd-fs.m4: Likewise.
98807         * m4/malloc.m4: Likewise.
98808         * m4/memcmp.m4: Likewise.
98809         * m4/putenv.m4: Likewise.
98810         * m4/realloc.m4: Likewise.
98811         * m4/st_mtim.m4: Likewise.
98812         * m4/strftime.m4: Likewise.
98813
98814 1999-01-16  Jim Meyering  <meyering@ascend.com>
98815
98816         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98817         (ARGMATCH_DIE_DECL): Define.
98818
98819 1999-01-12  Jim Meyering  <meyering@ascend.com>
98820
98821         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98822         Reported by Lars Hecking.
98823
98824 1999-01-10  Jim Meyering  <meyering@ascend.com>
98825
98826         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98827         gross kludge.
98828         * m4/inttypes_h.m4: Likewise.
98829         * m4/lstat.m4: Likewise.
98830         * m4/malloc.m4: Likewise.
98831         * m4/readdir.m4: Likewise.
98832         * m4/realloc.m4: Likewise.
98833         * m4/st_dm_mode.m4: Likewise.
98834         * m4/stat.m4: Likewise.
98835         * m4/utimbuf.m4: Likewise.
98836         * m4/utimes.m4: Likewise.
98837
98838         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98839         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98840         comments in config.h.in are meaningful.
98841
98842         * m4/jm-macros.m4: Require autoconf-2.13 here.
98843
98844         * m4/regex.m4: By default, don't use the included regex.c on systems
98845         with glibc 2.  Suggestion from Uli Drepper.
98846
98847 1999-01-02  Jim Meyering  <meyering@ascend.com>
98848
98849         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98850
98851 1998-12-18  Jim Meyering  <meyering@ascend.com>
98852
98853         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98854         Based on a suggestion from Lars Hecking.
98855
98856 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98857
98858         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98859
98860 1998-11-16  Jim Meyering  <meyering@ascend.com>
98861
98862         * m4/lfs.m4: Double-quote the `uname...` expression.
98863
98864 1998-11-14  Jim Meyering  <meyering@ascend.com>
98865
98866         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98867         * m4/stat.m4: Likewise.
98868
98869 1998-11-03  Jim Meyering  <meyering@ascend.com>
98870
98871         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98872         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98873
98874 1998-10-18  Jim Meyering  <meyering@ascend.com>
98875
98876         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98877
98878 1998-10-17  Jim Meyering  <meyering@ascend.com>
98879
98880         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98881         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98882         calls for those previously hard-coded headers.  Instead, take a new
98883         parameter.
98884         (jm_CHECK_DECLARATIONS): Reflect interface change.
98885         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98886         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98887
98888         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98889
98890 1998-10-14  Jim Meyering  <meyering@ascend.com>
98891
98892         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98893         instead of "TZ=America/Vancouver".  From Paul Eggert.
98894
98895 1998-10-11  Jim Meyering  <meyering@ascend.com>
98896
98897         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98898         This adds a test for a recently added compatibility fix for mktime.c.
98899         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98900
98901 1998-09-27  Jim Meyering  <meyering@ascend.com>
98902
98903         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98904
98905         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98906         ../configure.in, including a change from Gordon Matzigkeit to allow
98907         cross-compiling for the Hurd.
98908
98909         * m4/glibc.m4: New file/macro to test for the GNU C Library
98910         versions 1 and 2.  From Gordon Matzigkeit.
98911         Indent.
98912
98913 1998-09-21  Jim Meyering  <meyering@ascend.com>
98914
98915         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98916
98917 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98918
98919         Port nanosecond-resolution times to UnixWare 2.1.2 and
98920         pedantic Solaris 2.6.
98921
98922         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98923         AC_STRUCT_ST_MTIM.
98924         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98925         Generate name of ns member, instead of just 1 or undef.
98926         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98927
98928 1998-08-15  Jim Meyering  <meyering@ascend.com>
98929
98930         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98931         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98932         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98933         instead of jm_TYPE_SSIZE_T.
98934
98935 1998-08-12  Jim Meyering  <meyering@ascend.com>
98936
98937         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98938
98939 1998-08-02  Jim Meyering  <meyering@ascend.com>
98940
98941         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98942         in acconfig.h manually.
98943
98944 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98945
98946         * m4/st_mtim.m4: New file.
98947
98948 1998-07-28  Jim Meyering  <meyering@ascend.com>
98949
98950         * m4/utimes.m4: Undef stat.
98951
98952 1998-07-25  Jim Meyering  <meyering@ascend.com>
98953
98954         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98955         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98956
98957 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98958
98959         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98960         uid and gid actually remain unchanged.
98961
98962 1998-07-07  Jim Meyering  <meyering@ascend.com>
98963
98964         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98965
98966 1998-07-04  Jim Meyering  <meyering@ascend.com>
98967
98968         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98969         to prove that this macro can be used in packages without regex.c.
98970
98971 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98972
98973         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98974         is to be used.
98975
98976 1998-07-03  Jim Meyering  <meyering@ascend.com>
98977
98978         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98979
98980         * m4/gettext.m4: New file -- from gettext-0.10.35.
98981         * m4/lcmessage.m4: Likewise.
98982         * m4/progtest.m4: Likewise.
98983
98984         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98985         * m4/jm-macros.m4: Require the new macro.
98986
98987 1998-06-29  Jim Meyering  <meyering@ascend.com>
98988
98989         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98990         for the definition of NGROUPS (used in a system header included
98991         by sys/mount.h).
98992
98993 1998-06-28  Jim Meyering  <meyering@ascend.com>
98994
98995         * m4/ls-mntd-fs.m4: New file.
98996         * m4/fstypename.m4: New file.
98997
98998         * m4/jm-macros.m4: Require the new macro.
98999         * m4/jm-glibc-io.m4: New file.
99000
99001 1998-05-19  Jim Meyering  <meyering@ascend.com>
99002
99003         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99004         * m4/lchown.m4: New file.
99005
99006         * m4/Makefile.am.in: New file.
99007         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99008
99009 1998-05-14  Jim Meyering  <meyering@ascend.com>
99010
99011         * m4/Makefile.am (EXTRA_DIST): Add them.
99012         * m4/jm-macros.m4: New file.
99013         * m4/utimbuf.m4: New file.
99014
99015 1998-05-12  Jim Meyering  <meyering@ascend.com>
99016
99017         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99018
99019 1998-05-11  Jim Meyering  <meyering@ascend.com>
99020
99021         * m4/isc-posix.m4: New file.
99022
99023 1998-05-10  Jim Meyering  <meyering@ascend.com>
99024
99025         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99026
99027 1998-05-09  Jim Meyering  <meyering@ascend.com>
99028
99029         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99030         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99031         with automake.
99032
99033         * m4/ssize_t.m4: New file.
99034         * m4/mktime.m4: Remove file -- the new automake has this now.
99035
99036 1998-04-26  Jim Meyering  <meyering@ascend.com>
99037
99038         * m4/assert.m4: New file.
99039         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99040
99041 1998-04-05  Jim Meyering  <meyering@ascend.com>
99042
99043         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99044         (jm_PREREQ): Use it here.
99045
99046 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99047
99048         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99049         in acconfig.h.
99050
99051 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99052
99053         * m4/prereq.m4: New file.
99054         * m4/error.m4: New file.
99055         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99056
99057 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99058
99059         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99060         cache-check for the same variable -- that defeated the purpose of
99061         the test; the test program was never run.  This was a problem only
99062         on systems with losing getline functions -- HP-UX 10.20 is one.
99063         Reported by Bjorn Helgaas.
99064
99065 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99066
99067         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99068
99069 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99070
99071         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99072
99073         * m4/const.m4: New file.  Use an initializer in this declaration
99074         typedef int charset[2]; const charset x;
99075         Reported by Bob Glickstein.
99076
99077 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99078
99079         * m4/chown.m4: Fix reversed types on -1 args to chown.
99080         From Kaveh Ghazi.
99081
99082 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99083
99084         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99085         Add lseek and memchr.
99086
99087         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99088         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99089         have a 20-character limit on names.
99090
99091 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99092
99093         * m4/inttypes_h.m4: New file.
99094         * m4/uintmax_t.m4: New file.
99095         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99096
99097
99098         -----
99099
99100         Local Variables:
99101         coding: utf-8
99102         End:
99103
99104         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99105
99106         Copying and distribution of this file, with or without
99107         modification, are permitted provided the copyright notice
99108         and this notice are preserved.